var PSe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var G3t=PSe((YNt,yF)=>{function FSe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ap=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eae={exports:{}},zS={};/* object-assign (c) Sindre Sorhus @license MIT */var UV=Object.getOwnPropertySymbols,LSe=Object.prototype.hasOwnProperty,BSe=Object.prototype.propertyIsEnumerable;function $Se(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function USe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var wae=USe()?Object.assign:function(e,t){for(var n,r=$Se(e),i,a=1;a"u"&&JD!==void 0,Qae={all:JD,IS_HTMLDDA:fbe},Zae=Qae,pbe=Zae.all,Is=Zae.IS_HTMLDDA?function(e){return typeof e=="function"||e===pbe}:function(e){return typeof e=="function"},qV=Is,Xae=Qae,mbe=Xae.all,r1=Xae.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:qV(e)||e===mbe}:function(e){return typeof e=="object"?e!==null:qV(e)},dI=Tu,hbe=Is,gbe=function(e){return hbe(e)?e:void 0},WS=function(e,t){return arguments.length<2?gbe(dI[e]):dI[e]&&dI[e][t]},vbe=wl,ybe=vbe({}.isPrototypeOf),Sbe=WS,bbe=Sbe("navigator","userAgent")||"",eoe=Tu,fI=bbe,WV=eoe.process,jV=eoe.Deno,GV=WV&&WV.versions||jV&&jV.version,JV=GV&&GV.v8,Qs,Fw;JV&&(Qs=JV.split("."),Fw=Qs[0]>0&&Qs[0]<4?1:+(Qs[0]+Qs[1]));!Fw&&fI&&(Qs=fI.match(/Edge\/(\d+)/),(!Qs||Qs[1]>=74)&&(Qs=fI.match(/Chrome\/(\d+)/),Qs&&(Fw=+Qs[1])));var Tbe=Fw,YV=Tbe,_be=yc,toe=!!Object.getOwnPropertySymbols&&!_be(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YV&&YV<41}),Ebe=toe,noe=Ebe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wbe=WS,kbe=Is,Abe=ybe,Cbe=noe,Nbe=Object,roe=Cbe?function(e){return typeof e=="symbol"}:function(e){var t=wbe("Symbol");return kbe(t)&&Abe(t.prototype,Nbe(e))},Ibe=String,Obe=function(e){try{return Ibe(e)}catch{return"Object"}},Dbe=Is,xbe=Obe,Mbe=TypeError,NF=function(e){if(Dbe(e))return e;throw Mbe(xbe(e)+" is not a function")},Rbe=NF,Pbe=Yae,Fbe=function(e,t){var n=e[t];return Pbe(n)?void 0:Rbe(n)},pI=CF,mI=Is,hI=r1,Lbe=TypeError,Bbe=function(e,t){var n,r;if(t==="string"&&mI(n=e.toString)&&!hI(r=pI(n,e))||mI(n=e.valueOf)&&!hI(r=pI(n,e))||t!=="string"&&mI(n=e.toString)&&!hI(r=pI(n,e)))return r;throw Lbe("Can't convert object to primitive value")},ioe={exports:{}},KV=Tu,$be=Object.defineProperty,IF=function(e,t){try{$be(KV,e,{value:t,configurable:!0,writable:!0})}catch{KV[e]=t}return t},Ube=Tu,Hbe=IF,QV="__core-js_shared__",Vbe=Ube[QV]||Hbe(QV,{}),OF=Vbe,ZV=OF;(ioe.exports=function(e,t){return ZV[e]||(ZV[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var aoe=ioe.exports,zbe=Kae,qbe=Object,Y6=function(e){return qbe(zbe(e))},Wbe=wl,jbe=Y6,Gbe=Wbe({}.hasOwnProperty),$p=Object.hasOwn||function(t,n){return Gbe(jbe(t),n)},Jbe=wl,Ybe=0,Kbe=Math.random(),Qbe=Jbe(1 .toString),ooe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qbe(++Ybe+Kbe,36)},Zbe=Tu,Xbe=aoe,XV=$p,eTe=ooe,ez=toe,soe=noe,pm=Xbe("wks"),x0=Zbe.Symbol,tz=x0&&x0.for,tTe=soe?x0:x0&&x0.withoutSetter||eTe,jS=function(e){if(!XV(pm,e)||!(ez||typeof pm[e]=="string")){var t="Symbol."+e;ez&&XV(x0,e)?pm[e]=x0[e]:soe&&tz?pm[e]=tz(t):pm[e]=tTe(t)}return pm[e]},nTe=CF,nz=r1,rz=roe,rTe=Fbe,iTe=Bbe,aTe=jS,oTe=TypeError,sTe=aTe("toPrimitive"),lTe=function(e,t){if(!nz(e)||rz(e))return e;var n=rTe(e,sTe),r;if(n){if(t===void 0&&(t="default"),r=nTe(n,e,t),!nz(r)||rz(r))return r;throw oTe("Can't convert object to primitive value")}return t===void 0&&(t="number"),iTe(e,t)},uTe=lTe,cTe=roe,loe=function(e){var t=uTe(e,"string");return cTe(t)?t:t+""},dTe=Tu,iz=r1,YD=dTe.document,fTe=iz(YD)&&iz(YD.createElement),uoe=function(e){return fTe?YD.createElement(e):{}},pTe=bf,mTe=yc,hTe=uoe,coe=!pTe&&!mTe(function(){return Object.defineProperty(hTe("div"),"a",{get:function(){return 7}}).a!=7}),gTe=bf,vTe=CF,yTe=Vae,STe=Wae,bTe=J6,TTe=loe,_Te=$p,ETe=coe,az=Object.getOwnPropertyDescriptor;kF.f=gTe?az:function(t,n){if(t=bTe(t),n=TTe(n),ETe)try{return az(t,n)}catch{}if(_Te(t,n))return STe(!vTe(yTe.f,t,n),t[n])};var i1={},wTe=bf,kTe=yc,doe=wTe&&kTe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),ATe=r1,CTe=String,NTe=TypeError,K6=function(e){if(ATe(e))return e;throw NTe(CTe(e)+" is not an object")},ITe=bf,OTe=coe,DTe=doe,uT=K6,oz=loe,xTe=TypeError,gI=Object.defineProperty,MTe=Object.getOwnPropertyDescriptor,vI="enumerable",yI="configurable",SI="writable";i1.f=ITe?DTe?function(t,n,r){if(uT(t),n=oz(n),uT(r),typeof t=="function"&&n==="prototype"&&"value"in r&&SI in r&&!r[SI]){var i=MTe(t,n);i&&i[SI]&&(t[n]=r.value,r={configurable:yI in r?r[yI]:i[yI],enumerable:vI in r?r[vI]:i[vI],writable:!1})}return gI(t,n,r)}:gI:function(t,n,r){if(uT(t),n=oz(n),uT(r),OTe)try{return gI(t,n,r)}catch{}if("get"in r||"set"in r)throw xTe("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var RTe=bf,PTe=i1,FTe=Wae,foe=RTe?function(e,t,n){return PTe.f(e,t,FTe(1,n))}:function(e,t,n){return e[t]=n,e},poe={exports:{}},KD=bf,LTe=$p,moe=Function.prototype,BTe=KD&&Object.getOwnPropertyDescriptor,DF=LTe(moe,"name"),$Te=DF&&(function(){}).name==="something",UTe=DF&&(!KD||KD&&BTe(moe,"name").configurable),HTe={EXISTS:DF,PROPER:$Te,CONFIGURABLE:UTe},VTe=wl,zTe=Is,QD=OF,qTe=VTe(Function.toString);zTe(QD.inspectSource)||(QD.inspectSource=function(e){return qTe(e)});var hoe=QD.inspectSource,WTe=Tu,jTe=Is,sz=WTe.WeakMap,GTe=jTe(sz)&&/native code/.test(String(sz)),JTe=aoe,YTe=ooe,lz=JTe("keys"),goe=function(e){return lz[e]||(lz[e]=YTe(e))},xF={},KTe=GTe,voe=Tu,QTe=r1,ZTe=foe,bI=$p,TI=OF,XTe=goe,e_e=xF,uz="Object already initialized",ZD=voe.TypeError,t_e=voe.WeakMap,Lw,b2,Bw,n_e=function(e){return Bw(e)?b2(e):Lw(e,{})},r_e=function(e){return function(t){var n;if(!QTe(t)||(n=b2(t)).type!==e)throw ZD("Incompatible receiver, "+e+" required");return n}};if(KTe||TI.state){var xl=TI.state||(TI.state=new t_e);xl.get=xl.get,xl.has=xl.has,xl.set=xl.set,Lw=function(e,t){if(xl.has(e))throw ZD(uz);return t.facade=e,xl.set(e,t),t},b2=function(e){return xl.get(e)||{}},Bw=function(e){return xl.has(e)}}else{var mm=XTe("state");e_e[mm]=!0,Lw=function(e,t){if(bI(e,mm))throw ZD(uz);return t.facade=e,ZTe(e,mm,t),t},b2=function(e){return bI(e,mm)?e[mm]:{}},Bw=function(e){return bI(e,mm)}}var i_e={set:Lw,get:b2,has:Bw,enforce:n_e,getterFor:r_e},a_e=yc,o_e=Is,cT=$p,XD=bf,s_e=HTe.CONFIGURABLE,l_e=hoe,yoe=i_e,u_e=yoe.enforce,c_e=yoe.get,L_=Object.defineProperty,d_e=XD&&!a_e(function(){return L_(function(){},"length",{value:8}).length!==8}),f_e=String(String).split("String"),p_e=poe.exports=function(e,t,n){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!cT(e,"name")||s_e&&e.name!==t)&&(XD?L_(e,"name",{value:t,configurable:!0}):e.name=t),d_e&&n&&cT(n,"arity")&&e.length!==n.arity&&L_(e,"length",{value:n.arity});try{n&&cT(n,"constructor")&&n.constructor?XD&&L_(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=u_e(e);return cT(r,"source")||(r.source=f_e.join(typeof t=="string"?t:"")),e};Function.prototype.toString=p_e(function(){return o_e(this)&&c_e(this).source||l_e(this)},"toString");var m_e=poe.exports,h_e=Is,g_e=i1,v_e=m_e,y_e=IF,S_e=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(h_e(n)&&v_e(n,a,r),r.global)i?e[t]=n:y_e(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=n:g_e.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Soe={},b_e=Math.ceil,T_e=Math.floor,__e=Math.trunc||function(t){var n=+t;return(n>0?T_e:b_e)(n)},E_e=__e,Q6=function(e){var t=+e;return t!==t||t===0?0:E_e(t)},w_e=Q6,k_e=Math.max,A_e=Math.min,C_e=function(e,t){var n=w_e(e);return n<0?k_e(n+t,0):A_e(n,t)},N_e=Q6,I_e=Math.min,O_e=function(e){return e>0?I_e(N_e(e),9007199254740991):0},D_e=O_e,GS=function(e){return D_e(e.length)},x_e=J6,M_e=C_e,R_e=GS,cz=function(e){return function(t,n,r){var i=x_e(t),a=R_e(i),o=M_e(r,a),s;if(e&&n!=n){for(;a>o;)if(s=i[o++],s!=s)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}},P_e={includes:cz(!0),indexOf:cz(!1)},F_e=wl,_I=$p,L_e=J6,B_e=P_e.indexOf,$_e=xF,dz=F_e([].push),boe=function(e,t){var n=L_e(e),r=0,i=[],a;for(a in n)!_I($_e,a)&&_I(n,a)&&dz(i,a);for(;t.length>r;)_I(n,a=t[r++])&&(~B_e(i,a)||dz(i,a));return i},MF=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],U_e=boe,H_e=MF,V_e=H_e.concat("length","prototype");Soe.f=Object.getOwnPropertyNames||function(t){return U_e(t,V_e)};var Toe={};Toe.f=Object.getOwnPropertySymbols;var z_e=WS,q_e=wl,W_e=Soe,j_e=Toe,G_e=K6,J_e=q_e([].concat),Y_e=z_e("Reflect","ownKeys")||function(t){var n=W_e.f(G_e(t)),r=j_e.f;return r?J_e(n,r(t)):n},fz=$p,K_e=Y_e,Q_e=kF,Z_e=i1,X_e=function(e,t,n){for(var r=K_e(t),i=Z_e.f,a=Q_e.f,o=0;ogEe)throw hEe("Maximum allowed index exceeded");return e},yEe=G6,SEe=wl,bEe=function(e){if(yEe(e)==="Function")return SEe(e)},pz=bEe,TEe=NF,_Ee=AF,EEe=pz(pz.bind),wEe=function(e,t){return TEe(e),t===void 0?e:_Ee?EEe(e,t):function(){return e.apply(t,arguments)}},kEe=_oe,AEe=GS,CEe=vEe,NEe=wEe,Eoe=function(e,t,n,r,i,a,o,s){for(var l=i,u=0,c=o?NEe(o,s):!1,d,f;u0&&kEe(d)?(f=AEe(d),l=Eoe(e,t,d,f,l,a-1)-1):(CEe(l+1),e[l]=d),l++),u++;return l},woe=Eoe,IEe=jS,OEe=IEe("toStringTag"),koe={};koe[OEe]="z";var DEe=String(koe)==="[object z]",xEe=DEe,MEe=Is,B_=G6,REe=jS,PEe=REe("toStringTag"),FEe=Object,LEe=B_(function(){return arguments}())=="Arguments",BEe=function(e,t){try{return e[t]}catch{}},$Ee=xEe?B_:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=BEe(t=FEe(e),PEe))=="string"?n:LEe?B_(t):(r=B_(t))=="Object"&&MEe(t.callee)?"Arguments":r},UEe=wl,HEe=yc,Aoe=Is,VEe=$Ee,zEe=WS,qEe=hoe,Coe=function(){},WEe=[],Noe=zEe("Reflect","construct"),PF=/^\s*(?:class|function)\b/,jEe=UEe(PF.exec),GEe=!PF.exec(Coe),J1=function(t){if(!Aoe(t))return!1;try{return Noe(Coe,WEe,t),!0}catch{return!1}},Ioe=function(t){if(!Aoe(t))return!1;switch(VEe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return GEe||!!jEe(PF,qEe(t))}catch{return!0}};Ioe.sham=!0;var JEe=!Noe||HEe(function(){var e;return J1(J1.call)||!J1(Object)||!J1(function(){e=!0})||e})?Ioe:J1,mz=_oe,YEe=JEe,KEe=r1,QEe=jS,ZEe=QEe("species"),hz=Array,XEe=function(e){var t;return mz(e)&&(t=e.constructor,YEe(t)&&(t===hz||mz(t.prototype))?t=void 0:KEe(t)&&(t=t[ZEe],t===null&&(t=void 0))),t===void 0?hz:t},ewe=XEe,Ooe=function(e,t){return new(ewe(e))(t===0?0:t)},twe=RF,nwe=woe,rwe=Y6,iwe=GS,awe=Q6,owe=Ooe;twe({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,n=rwe(this),r=iwe(n),i=owe(n,0);return i.length=nwe(i,n,n,r,0,t===void 0?1:awe(t)),i}});var Doe={},swe=boe,lwe=MF,uwe=Object.keys||function(t){return swe(t,lwe)},cwe=bf,dwe=doe,fwe=i1,pwe=K6,mwe=J6,hwe=uwe;Doe.f=cwe&&!dwe?Object.defineProperties:function(t,n){pwe(t);for(var r=mwe(n),i=hwe(n),a=i.length,o=0,s;a>o;)fwe.f(t,s=i[o++],r[s]);return t};var gwe=WS,vwe=gwe("document","documentElement"),ywe=K6,Swe=Doe,gz=MF,bwe=xF,Twe=vwe,_we=uoe,Ewe=goe,vz=">",yz="<",e9="prototype",t9="script",xoe=Ewe("IE_PROTO"),wI=function(){},Moe=function(e){return yz+t9+vz+e+yz+"/"+t9+vz},Sz=function(e){e.write(Moe("")),e.close();var t=e.parentWindow.Object;return e=null,t},wwe=function(){var e=_we("iframe"),t="java"+t9+":",n;return e.style.display="none",Twe.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(Moe("document.F=Object")),n.close(),n.F},dT,$_=function(){try{dT=new ActiveXObject("htmlfile")}catch{}$_=typeof document<"u"?document.domain&&dT?Sz(dT):wwe():Sz(dT);for(var e=gz.length;e--;)delete $_[e9][gz[e]];return $_()};bwe[xoe]=!0;var kwe=Object.create||function(t,n){var r;return t!==null?(wI[e9]=ywe(t),r=new wI,wI[e9]=null,r[xoe]=t):r=$_(),n===void 0?r:Swe.f(r,n)},Awe=jS,Cwe=kwe,Nwe=i1.f,n9=Awe("unscopables"),r9=Array.prototype;r9[n9]==null&&Nwe(r9,n9,{configurable:!0,value:Cwe(null)});var FF=function(e){r9[n9][e]=!0},Iwe=FF;Iwe("flat");var Owe=Tu,Dwe=wl,LF=function(e,t){return Dwe(Owe[e].prototype[t])},xwe=LF;xwe("Array","flat");var Mwe=RF,Rwe=woe,Pwe=NF,Fwe=Y6,Lwe=GS,Bwe=Ooe;Mwe({target:"Array",proto:!0},{flatMap:function(t){var n=Fwe(this),r=Lwe(n),i;return Pwe(t),i=Bwe(n,0),i.length=Rwe(i,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),i}});var $we=FF;$we("flatMap");var Uwe=LF;Uwe("Array","flatMap");var Hwe=RF,Vwe=Y6,zwe=GS,qwe=Q6,Wwe=FF;Hwe({target:"Array",proto:!0},{at:function(t){var n=Vwe(this),r=zwe(n),i=qwe(t),a=i>=0?i:r+i;return a<0||a>=r?void 0:n[a]}});Wwe("at");var jwe=LF;jwe("Array","at");const Roe=Object.prototype.toString;function BF(e){switch(Roe.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return op(e,Error)}}function a1(e,t){return Roe.call(e)===`[object ${t}]`}function Poe(e){return a1(e,"ErrorEvent")}function bz(e){return a1(e,"DOMError")}function Gwe(e){return a1(e,"DOMException")}function sc(e){return a1(e,"String")}function $F(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function UF(e){return e===null||$F(e)||typeof e!="object"&&typeof e!="function"}function rg(e){return a1(e,"Object")}function Z6(e){return typeof Event<"u"&&op(e,Event)}function Jwe(e){return typeof Element<"u"&&op(e,Element)}function Ywe(e){return a1(e,"RegExp")}function X6(e){return!!(e&&e.then&&typeof e.then=="function")}function Kwe(e){return rg(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function op(e,t){try{return e instanceof t}catch{return!1}}function Foe(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ah(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Tz(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rQwe(e,r,n))}function Zwe(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!op(o.originalException,Error))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=Xwe(i9(e,t,i,o.originalException,r,a.exception.values,s,0),n))}function i9(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let l=[...a];if(op(r[i],Error)){_z(o,s);const u=e(t,r[i]),c=l.length;Ez(u,i,c,s),l=i9(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(op(u,Error)){_z(o,s);const d=e(t,u),f=l.length;Ez(d,`errors[${c}]`,f,s),l=i9(e,t,n,u,i,[d,...l],d,f)}}),l}function _z(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Ez(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Xwe(e,t){return e.map(n=>(n.value&&(n.value=Ah(n.value,t)),n))}function Loe(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const M0="8.33.1",sn=globalThis;function tC(e,t,n){const r=n||sn,i=r.__SENTRY__=r.__SENTRY__||{},a=i[M0]=i[M0]||{};return a[e]||(a[e]=t())}const HF=sn,eke=80;function Boe(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",l=s.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||eke;for(;n&&a++1&&o+i.length*l+u.length>=d));)i.push(u),o+=u.length,n=n.parentNode;return i.reverse().join(s)}catch{return""}}function tke(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(HF.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(i&&i.length)i.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&sc(o)){const s=o.split(/\s+/);for(const l of s)r.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const o of a){const s=n.getAttribute(o);s&&r.push(`[${o}="${s}"]`)}return r.join("")}function nke(){try{return HF.document.location.href}catch{return""}}function rke(e){if(!HF.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"u"||__SENTRY_DEBUG__,ike="Sentry Logger ",a9=["debug","info","warn","error","log","assert","trace"],$w={};function KS(e){if(!("console"in sn))return e();const t=sn.console,n={},r=Object.keys($w);r.forEach(i=>{const a=$w[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function ake(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return YS?a9.forEach(n=>{t[n]=(...r)=>{e&&KS(()=>{sn.console[n](`${ike}[${n}]:`,...r)})}}):a9.forEach(n=>{t[n]=()=>{}}),t}const kt=tC("logger",ake),oke=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ske(e){return e==="http"||e==="https"}function nC(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${o}`}function lke(e){const t=oke.exec(e);if(!t){KS(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a="",o="",s=""]=t.slice(1);let l="",u=s;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return $oe({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function $oe(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function uke(e){if(!YS)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(kt.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?ske(r)?t&&isNaN(parseInt(t,10))?(kt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cke(e){const t=typeof e=="string"?lke(e):$oe(e);if(!(!t||!uke(t)))return t}class zl extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function bo(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Uoe(i,r),e[t]=i}function sp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{YS&&kt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Uoe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,sp(e,"__sentry_original__",t)}catch{}}function VF(e){return e.__sentry_original__}function dke(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Hoe(e){if(BF(e))return{message:e.message,name:e.name,stack:e.stack,...kz(e)};if(Z6(e)){const t={type:e.type,target:wz(e.target),currentTarget:wz(e.currentTarget),...kz(e)};return typeof CustomEvent<"u"&&op(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function wz(e){try{return Jwe(e)?Boe(e):Object.prototype.toString.call(e)}catch{return""}}function kz(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function fke(e,t=40){const n=Object.keys(Hoe(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ah(r,t);for(let i=n.length;i>0;i--){const a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:Ah(a,t)}return""}function fs(e){return o9(e,new Map)}function o9(e,t){if(pke(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.getOwnPropertyNames(e))typeof e[i]<"u"&&(r[i]=o9(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(o9(i,t))}),r}return e}function pke(e){if(!rg(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Voe=50,lp="?",Az=/\(error: (.*)\)/,Cz=/captureMessage|captureException/;function zoe(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const a=[],o=n.split(` `);for(let s=r;s1024)continue;const u=Az.test(l)?l.replace(Az,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const d=c(u);if(d){a.push(d);break}}if(a.length>=Voe+i)break}}return hke(a.slice(i))}}function mke(e){return Array.isArray(e)?zoe(...e):e}function hke(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(fT(t).function||"")&&t.pop(),t.reverse(),Cz.test(fT(t).function||"")&&(t.pop(),Cz.test(fT(t).function||"")&&t.pop()),t.slice(0,Voe).map(n=>({...n,filename:n.filename||fT(t).filename,function:n.function||lp}))}function fT(e){return e[e.length-1]||{}}const kI="";function Vd(e){try{return!e||typeof e!="function"?kI:e.name||kI}catch{return kI}}function Nz(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const U_={},Iz={};function Up(e,t){U_[e]=U_[e]||[],U_[e].push(t)}function Hp(e,t){Iz[e]||(t(),Iz[e]=!0)}function ll(e,t){const n=e&&U_[e];if(n)for(const r of n)try{r(t)}catch(i){YS&&kt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Vd(r)} Error:`,i)}}function gke(e){const t="console";Up(t,e),Hp(t,vke)}function vke(){"console"in sn&&a9.forEach(function(e){e in sn.console&&bo(sn.console,e,function(t){return $w[e]=t,function(...n){ll("console",{args:n,level:e});const i=$w[e];i&&i.apply(sn.console,n)}})})}const s9=sn;function qoe(){if(!("fetch"in s9))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function l9(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yke(){if(typeof EdgeRuntime=="string")return!0;if(!qoe())return!1;if(l9(s9.fetch))return!0;let e=!1;const t=s9.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=l9(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){YS&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const Woe=1e3;function QS(){return Date.now()/Woe}function Ske(){const{performance:e}=sn;if(!e||!e.now)return QS;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Woe}const lc=Ske();(()=>{const{performance:e}=sn;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=iTke(void 0,t))}function Tke(e,t=!1){t&&!yke()||bo(sn,"fetch",function(n){return function(...r){const{method:i,url:a}=_ke(r),o={args:r,fetchData:{method:i,url:a},startTimestamp:lc()*1e3};e||ll("fetch",{...o});const s=new Error().stack;return n.apply(sn,r).then(async l=>(e?e(l):ll("fetch",{...o,endTimestamp:lc()*1e3,response:l}),l),l=>{throw ll("fetch",{...o,endTimestamp:lc()*1e3,error:l}),BF(l)&&l.stack===void 0&&(l.stack=s,sp(l,"framesToPop",1)),l})}})}function u9(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Oz(e){return typeof e=="string"?e:e?u9(e,"url")?e.url:e.toString?e.toString():"":""}function _ke(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Oz(n),method:u9(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Oz(t),method:u9(t,"method")?String(t.method).toUpperCase():"GET"}}let pT=null;function Eke(e){const t="error";Up(t,e),Hp(t,wke)}function wke(){pT=sn.onerror,sn.onerror=function(e,t,n,r,i){return ll("error",{column:r,error:i,line:n,msg:e,url:t}),pT&&!pT.__SENTRY_LOADER__?pT.apply(this,arguments):!1},sn.onerror.__SENTRY_INSTRUMENTED__=!0}let mT=null;function kke(e){const t="unhandledrejection";Up(t,e),Hp(t,Ake)}function Ake(){mT=sn.onunhandledrejection,sn.onunhandledrejection=function(e){return ll("unhandledrejection",e),mT&&!mT.__SENTRY_LOADER__?mT.apply(this,arguments):!0},sn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Cke(){return"npm"}function Nke(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;aMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function joe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Bc(e){const{message:t,event_id:n}=e;if(t)return t;const r=joe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c9(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function T2(e,t){const n=joe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Dz(e){if(e&&e.__sentry_captured__)return!0;try{sp(e,"__sentry_captured__",!0)}catch{}return!1}function Goe(e){return Array.isArray(e)?e:[e]}function $c(e,t=100,n=1/0){try{return d9("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Joe(e,t=3,n=100*1024){const r=$c(e,t);return xke(r)>n?Joe(e,t-1,n):r}function d9(e,t,n=1/0,r=1/0,i=Nke()){const[a,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const s=Ike(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return s.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return d9("",p,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const f=Hoe(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){c[p]="[MaxProperties ~]";break}const m=f[p];c[p]=d9(p,m,l-1,r,i),d++}return o(t),c}function Ike(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Foe(t))return"[VueViewModel]";if(Kwe(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Vd(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Oke(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Oke(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Dke(e){return~-encodeURI(e).split(/%..|./).length}function xke(e){return Dke(JSON.stringify(e))}var $u;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})($u||($u={}));function up(e){return new Qo(t=>{t(e)})}function Uw(e){return new Qo((t,n)=>{n(e)})}class Qo{constructor(t){Qo.prototype.__init.call(this),Qo.prototype.__init2.call(this),Qo.prototype.__init3.call(this),Qo.prototype.__init4.call(this),this._state=$u.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Qo((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(o){i(o)}},a=>{if(!n)i(a);else try{r(n(a))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Qo((n,r)=>{let i,a;return this.then(o=>{a=!1,i=o,t&&t()},o=>{a=!0,i=o,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult($u.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult($u.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===$u.PENDING){if(X6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===$u.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$u.RESOLVED&&n[1](this._value),this._state===$u.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Mke(e){const t=[];function n(){return e===void 0||t.lengthr(s)).then(null,()=>r(s).then(null,()=>{})),s}function a(o){return new Qo((s,l)=>{let u=t.length;if(!u)return s(!0);const c=setTimeout(()=>{o&&o>0&&s(!1)},o);t.forEach(d=>{up(d).then(()=>{--u||(clearTimeout(c),s(!0))},l)})})}return{$:t,add:i,drain:a}}function AI(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Rke=["fatal","error","warning","log","info","debug"];function Pke(e){return e==="warn"?"warning":Rke.includes(e)?e:"log"}const Fke="sentry-",Lke=/^sentry-/;function Bke(e){const t=$ke(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Lke)){const o=i.slice(Fke.length);r[o]=a}return r},{});if(Object.keys(n).length>0)return n}function $ke(e){if(!(!e||!sc(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=xz(n);return Object.entries(r).forEach(([i,a])=>{t[i]=a}),t},{}):xz(e)}function xz(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function ZS(e,t=[]){return[e,t]}function Uke(e,t){const[n,r]=e;return[n,[...r,t]]}function Mz(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function f9(e){return sn.__SENTRY__&&sn.__SENTRY__.encodePolyfill?sn.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Hke(e){const[t,n]=e;let r=JSON.stringify(t);function i(a){typeof r=="string"?r=typeof a=="string"?r+a:[f9(r),a]:r.push(typeof a=="string"?f9(a):a)}for(const a of n){const[o,s]=a;if(i(` ${JSON.stringify(o)} `),typeof s=="string"||s instanceof Uint8Array)i(s);else{let l;try{l=JSON.stringify(s)}catch{l=JSON.stringify($c(s))}i(l)}}return typeof r=="string"?r:Vke(r)}function Vke(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function zke(e){const t=typeof e.data=="string"?f9(e.data):e.data;return[fs({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const qke={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Rz(e){return qke[e]}function Yoe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Wke(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:nC(r)},...i&&{trace:fs({...i})}}}function jke(e,t,n){const r=[{type:"client_report"},{timestamp:n||QS(),discarded_events:e}];return ZS(t?{dsn:t}:{},[r])}const Gke=60*1e3;function Jke(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Gke:r-t}function Yke(e,t){return e[t]||e.all||0}function Kke(e,t,n=Date.now()){return Yke(e,t)>n}function Qke(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const s of a.trim().split(",")){const[l,u,,,c]=s.split(":",5),d=parseInt(l,10),f=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[p]=r+f):i[p]=r+f}else o?i.all=r+Jke(o,r):t===429&&(i.all=r+60*1e3);return i}function Pz(){return{traceId:Ss(),spanId:Ss().substring(16)}}const hT=sn;function Zke(){const e=hT.chrome,t=e&&e.app&&e.app.runtime,n="history"in hT&&!!hT.history.pushState&&!!hT.history.replaceState;return!t&&n}const Dn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function rC(){return zF(sn),sn}function zF(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||M0,t[M0]=t[M0]||{}}function Xke(e){const t=lc(),n={sid:Ss(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>t3e(n)};return e&&ig(n,e),n}function ig(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||lc(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ss()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function e3e(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ig(e,n)}function t3e(e){return fs({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const p9="_sentrySpan";function Fz(e,t){t?sp(e,p9,t):delete e[p9]}function Lz(e){return e[p9]}const n3e=100;class qF{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Pz()}clone(){const t=new qF;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Fz(t,Lz(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ig(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,i]=n instanceof zd?[n.getScopeData(),n.getRequestSession()]:rg(n)?[t,t.requestSession]:[],{tags:a,extra:o,user:s,contexts:l,level:u,fingerprint:c=[],propagationContext:d}=r||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Fz(this,void 0),this._attachments=[],this._propagationContext=Pz(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:n3e;if(r<=0)return this;const i={timestamp:QS(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lz(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ss();if(!this._client)return kt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Ss();if(!this._client)return kt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ss();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(kt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const zd=qF;function r3e(){return tC("defaultCurrentScope",()=>new zd)}function i3e(){return tC("defaultIsolationScope",()=>new zd)}class a3e{constructor(t,n){let r;t?r=t:r=new zd;let i;n?i=n:i=new zd,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return X6(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ag(){const e=rC(),t=zF(e);return t.stack=t.stack||new a3e(r3e(),i3e())}function o3e(e){return ag().withScope(e)}function s3e(e,t){const n=ag();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Bz(e){return ag().withScope(()=>e(ag().getIsolationScope()))}function l3e(){return{withIsolationScope:Bz,withScope:o3e,withSetScope:s3e,withSetIsolationScope:(e,t)=>Bz(t),getCurrentScope:()=>ag().getScope(),getIsolationScope:()=>ag().getIsolationScope()}}function WF(e){const t=zF(e);return t.acs?t.acs:l3e()}function Tf(){const e=rC();return WF(e).getCurrentScope()}function o1(){const e=rC();return WF(e).getIsolationScope()}function u3e(){return tC("globalScope",()=>new zd)}function Koe(...e){const t=rC(),n=WF(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Zi(){return Tf().getClient()}const c3e="_sentryMetrics";function d3e(e){const t=e[c3e];if(!t)return;const n={};for(const[,[r,i]]of t)(n[r]||(n[r]=[])).push(fs(i));return n}const f3e="sentry.source",p3e="sentry.sample_rate",m3e="sentry.op",h3e="sentry.origin",g3e=0,v3e=1,y3e=1;function S3e(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=Hw(e);return fs({parent_span_id:r,span_id:t,trace_id:n})}function $z(e){return typeof e=="number"?Uz(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Uz(e.getTime()):lc()}function Uz(e){return e>9999999999?e/1e3:e}function Hw(e){if(T3e(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(b3e(e)){const{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:l}=e;return fs({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:$z(i),timestamp:$z(o)||void 0,status:E3e(l),op:r[m3e],origin:r[h3e],_metrics_summary:d3e(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function b3e(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function T3e(e){return typeof e.getSpanJSON=="function"}function _3e(e){const{traceFlags:t}=e.spanContext();return t===y3e}function E3e(e){if(!(!e||e.code===g3e))return e.code===v3e?"ok":e.message||"unknown_error"}const w3e="_sentryRootSpan";function Qoe(e){return e[w3e]||e}function k3e(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Zi(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const jF="production",A3e="_frozenDsc";function Zoe(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=fs({environment:n.environment||jF,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function C3e(e){const t=Zi();if(!t)return{};const n=Zoe(Hw(e).trace_id||"",t),r=Qoe(e),i=r[A3e];if(i)return i;const a=r.spanContext().traceState,o=a&&a.get("sentry.dsc"),s=o&&Bke(o);if(s)return s;const l=Hw(r),u=l.data||{},c=u[p3e];c!=null&&(n.sample_rate=`${c}`);const d=u[f3e],f=l.description;return d!=="url"&&f&&(n.transaction=f),k3e()&&(n.sampled=String(_3e(r))),t.emit("createDsc",n,r),n}function N3e(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Dn&&kt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function I3e(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function O3e(e,t,n,r){const i=Yoe(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:nC(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ZS(a,[o])}function D3e(e,t,n,r){const i=Yoe(n),a=e.type&&e.type!=="replay_event"?e.type:"event";I3e(e,n&&n.sdk);const o=Wke(e,i,r,t);return delete e.sdkProcessingMetadata,ZS(o,[[{type:a},e]])}function m9(e,t,n,r=0){return new Qo((i,a)=>{const o=e[r];if(t===null||typeof o!="function")i(t);else{const s=o({...t},n);Dn&&o.id&&s===null&&kt.log(`Event processor "${o.id}" dropped event`),X6(s)?s.then(l=>m9(e,l,n,r+1).then(i)).then(null,a):m9(e,s,n,r+1).then(i).then(null,a)}})}function x3e(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;M3e(e,t),r&&F3e(e,r),L3e(e,n),R3e(e,i),P3e(e,a)}function Hz(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:p,span:m}=t;Y1(e,"extra",n),Y1(e,"tags",r),Y1(e,"user",i),Y1(e,"contexts",a),Y1(e,"sdkProcessingMetadata",s),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Y1(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function M3e(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,l=fs(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=fs(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=fs(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const d=fs(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&e.type!=="transaction"&&(e.transaction=s)}function R3e(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function P3e(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function F3e(e,t){e.contexts={trace:S3e(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:C3e(t),...e.sdkProcessingMetadata};const n=Qoe(t),r=Hw(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function L3e(e,t){e.fingerprint=e.fingerprint?Goe(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function B3e(e,t,n,r,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Ss(),timestamp:t.timestamp||QS()},u=n.integrations||e.integrations.map(g=>g.name);$3e(l,e),V3e(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&U3e(l,e.stackParser);const c=q3e(r,n.captureContext);n.mechanism&&T2(l,n.mechanism);const d=i?i.getEventProcessors():[],f=u3e().getScopeData();if(a){const g=a.getScopeData();Hz(f,g)}if(c){const g=c.getScopeData();Hz(f,g)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),x3e(l,f);const m=[...d,...f.eventProcessors];return m9(m,l,n).then(g=>(g&&H3e(g),typeof o=="number"&&o>0?z3e(g,o,s):g))}function $3e(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:jF),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Ah(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Ah(o.value,a));const s=e.request;s&&s.url&&(s.url=Ah(s.url,a))}const Vz=new WeakMap;function U3e(e,t){const n=sn._sentryDebugIds;if(!n)return;let r;const i=Vz.get(t);i?r=i:(r=new Map,Vz.set(t,r));const a=Object.entries(n).reduce((o,[s,l])=>{let u;const c=r.get(s);c?u=c:(u=t(s),r.set(s,u));for(let d=u.length-1;d>=0;d--){const f=u[d];if(f.filename){o[f.filename]=l;break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch{}}function H3e(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function V3e(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function z3e(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:$c(i.data,t,n)}}))},...e.user&&{user:$c(e.user,t,n)},...e.contexts&&{contexts:$c(e.contexts,t,n)},...e.extra&&{extra:$c(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=$c(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:$c(i.data,t,n)}}))),r}function q3e(e,t){if(!t)return e;const n=e?e.clone():new zd;return n.update(t),n}function W3e(e){if(e)return j3e(e)?{captureContext:e}:J3e(e)?{captureContext:e}:e}function j3e(e){return e instanceof zd||typeof e=="function"}const G3e=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function J3e(e){return Object.keys(e).some(t=>G3e.includes(t))}function Xoe(e,t){return Tf().captureException(e,W3e(t))}function ese(e,t){return Tf().captureEvent(e,t)}function Y3e(e,t){o1().setTag(e,t)}function zz(e){const t=Zi(),n=o1(),r=Tf(),{release:i,environment:a=jF}=t&&t.getOptions()||{},{userAgent:o}=sn.navigator||{},s=Xke({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&l.status==="ok"&&ig(l,{status:"exited"}),tse(),n.setSession(s),r.setSession(s),s}function tse(){const e=o1(),t=Tf(),n=t.getSession()||e.getSession();n&&e3e(n),nse(),e.setSession(),t.setSession()}function nse(){const e=o1(),t=Tf(),n=Zi(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function qz(e=!1){if(e){tse();return}nse()}const K3e="7";function Q3e(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Z3e(e){return`${Q3e(e)}${e.projectId}/envelope/`}function X3e(e,t){return dke({sentry_key:e.publicKey,sentry_version:K3e,...t&&{sentry_client:`${t.name}/${t.version}`}})}function eAe(e,t,n){return t||`${Z3e(e)}?${X3e(e,n)}`}const Wz=[];function tAe(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function nAe(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Goe(n(t)):r=t;const i=tAe(r),a=i.findIndex(o=>o.name==="Debug");if(a>-1){const[o]=i.splice(a,1);i.push(o)}return i}function rAe(e,t){const n={};return t.forEach(r=>{r&&rse(e,r,n)}),n}function jz(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function rse(e,t,n){if(n[t.name]){Dn&&kt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Wz.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Wz.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,o)=>r(a,o,e),{id:t.name});e.addEventProcessor(i)}Dn&&kt.log(`Integration installed: ${t.name}`)}const Gz="Not capturing exception because it's already been captured.";class iAe{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=cke(t.dsn):Dn&&kt.warn("No DSN provided, client will not send events."),this._dsn){const n=eAe(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=Ss();if(Dz(t))return Dn&&kt.log(Gz),i;const a={event_id:i,...n};return this._process(this.eventFromException(t,a).then(o=>this._captureEvent(o,a,r))),a.event_id}captureMessage(t,n,r,i){const a={event_id:Ss(),...r},o=$F(t)?t:String(t),s=UF(t)?this.eventFromMessage(o,n,a):this.eventFromException(t,a);return this._process(s.then(l=>this._captureEvent(l,a,i))),a.event_id}captureEvent(t,n,r){const i=Ss();if(n&&n.originalException&&Dz(n.originalException))return Dn&&kt.log(Gz),i;const a={event_id:i,...n},s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,a,s||r)),a.event_id}captureSession(t){typeof t.release!="string"?Dn&&kt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ig(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):up(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];rse(this,t,this._integrations),n||jz(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=D3e(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=Uke(r,zke(a));const i=this.sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=O3e(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;Dn&&kt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Dn&&kt.error("Error while sending event:",n),n)):(Dn&&kt.error("Transport disabled"),up({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=rAe(this,t),jz(this,t)}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(ig(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Qo(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=o1()){const a=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),B3e(a,t,n,r,this,i).then(s=>{if(s===null)return s;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:c,spanId:d,parentSpanId:f,dsc:p}=l;s.contexts={trace:fs({trace_id:c,span_id:d,parent_span_id:f}),...s.contexts};const m=p||Zoe(c,this);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Dn){const a=i;a.logLevel==="log"?kt.log(a.message):kt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,o=ase(t),s=ise(t),l=t.type||"error",u=`before send for type \`${l}\``,c=typeof a>"u"?void 0:N3e(a);if(s&&typeof c=="number"&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",t),Uw(new zl(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",d,t),new zl("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const g=oAe(this,i,m,n);return aAe(g,u)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",d,t),o){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw new zl(`${u} returned \`null\`, will not send event.`,"log")}const h=r&&r.getSession();if(!o&&h&&this._updateSessionFromEvent(h,m),o){const v=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,y=m.spans?m.spans.length:0,b=v-y;b>0&&this.recordDroppedEvent("before_send","span",b)}const g=m.transaction_info;if(o&&g&&m.transaction!==t.transaction){const v="custom";m.transaction_info={...g,source:v}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof zl?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new zl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:r}})}_flushOutcomes(){Dn&&kt.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Dn&&kt.log("No outcomes to send");return}if(!this._dsn){Dn&&kt.log("No dsn provided, will not send outcomes");return}Dn&&kt.log("Sending outcomes:",t);const n=jke(t,this._options.tunnel&&nC(this._dsn));this.sendEnvelope(n)}}function aAe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(X6(e))return e.then(r=>{if(!rg(r)&&r!==null)throw new zl(n);return r},r=>{throw new zl(`${t} rejected with ${r}`)});if(!rg(e)&&e!==null)throw new zl(n);return e}function oAe(e,t,n,r){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o}=t;if(ise(n)&&i)return i(n,r);if(ase(n)){if(n.spans&&o){const s=[];for(const l of n.spans){const u=o(l);u?s.push(u):e.recordDroppedEvent("before_send","span")}n.spans=s}if(a){if(n.spans){const s=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:s}}return a(n,r)}}return n}function ise(e){return e.type===void 0}function ase(e){return e.type==="transaction"}function sAe(e,t){t.debug===!0&&(Dn?kt.enable():KS(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Tf().update(t.initialScope);const r=new e(t);return lAe(r),r.init(),r}function lAe(e){Tf().setClient(e)}const uAe=64;function cAe(e,t,n=Mke(e.bufferSize||uAe)){let r={};const i=o=>n.drain(o);function a(o){const s=[];if(Mz(o,(d,f)=>{const p=Rz(f);if(Kke(r,p)){const m=Jz(d,f);e.recordDroppedEvent("ratelimit_backoff",p,m)}else s.push(d)}),s.length===0)return up({});const l=ZS(o[0],s),u=d=>{Mz(l,(f,p)=>{const m=Jz(f,p);e.recordDroppedEvent(d,Rz(p),m)})},c=()=>t({body:Hke(l)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&Dn&&kt.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Qke(r,d),d),d=>{throw u("network_error"),d});return n.add(c).then(d=>d,d=>{if(d instanceof zl)return Dn&&kt.error("Skipped sending event because buffer is full."),u("queue_overflow"),up({});throw d})}return{send:a,flush:i}}function Jz(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function dAe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:M0})),version:M0}),e._metadata=i}const fAe=100;function cp(e,t){const n=Zi(),r=o1();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=fAe}=n.getOptions();if(a<=0)return;const s={timestamp:QS(),...e},l=i?KS(()=>i(s,t)):s;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,a))}let Yz;const pAe="FunctionToString",Kz=new WeakMap,mAe=()=>({name:pAe,setupOnce(){Yz=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=VF(this),n=Kz.has(Zi())&&t!==void 0?t:this;return Yz.apply(n,e)}}catch{}},setup(e){Kz.set(e,!0)}}),hAe=mAe,gAe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],vAe="InboundFilters",yAe=(e={})=>({name:vAe,processEvent(t,n,r){const i=r.getOptions(),a=bAe(e,i);return TAe(t,a)?null:t}}),SAe=yAe;function bAe(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gAe],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function TAe(e,t){return t.ignoreInternal&&CAe(e)?(Dn&&kt.warn(`Event dropped due to being internal Sentry Error. Event: ${Bc(e)}`),!0):_Ae(e,t.ignoreErrors)?(Dn&&kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Bc(e)}`),!0):IAe(e)?(Dn&&kt.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Bc(e)}`),!0):EAe(e,t.ignoreTransactions)?(Dn&&kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Bc(e)}`),!0):wAe(e,t.denyUrls)?(Dn&&kt.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Bc(e)}. Url: ${Vw(e)}`),!0):kAe(e,t.allowUrls)?!1:(Dn&&kt.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Bc(e)}. Url: ${Vw(e)}`),!0)}function _Ae(e,t){return e.type||!t||!t.length?!1:AAe(e).some(n=>eC(n,t))}function EAe(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?eC(n,t):!1}function wAe(e,t){if(!t||!t.length)return!1;const n=Vw(e);return n?eC(n,t):!1}function kAe(e,t){if(!t||!t.length)return!0;const n=Vw(e);return n?eC(n,t):!0}function AAe(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function CAe(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function NAe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Vw(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?NAe(t):null}catch{return Dn&&kt.error(`Cannot extract url for event ${Bc(e)}`),null}}function IAe(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const OAe="Dedupe",DAe=()=>{let e;return{name:OAe,processEvent(t){if(t.type)return t;try{if(MAe(t,e))return Dn&&kt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},xAe=DAe;function MAe(e,t){return t?!!(RAe(e,t)||PAe(e,t)):!1}function RAe(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!sse(e,t)||!ose(e,t))}function PAe(e,t){const n=Qz(t),r=Qz(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!sse(e,t)||!ose(e,t))}function ose(e,t){let n=Nz(e),r=Nz(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i0}function FAe(){h9++,setTimeout(()=>{h9--})}function og(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(VF(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(o=>og(o,t));return e.apply(this,a)}catch(a){throw FAe(),Koe(o=>{o.addEventProcessor(s=>(t.mechanism&&(c9(s,void 0,void 0),T2(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),Xoe(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Uoe(r,e),sp(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const XS=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function GF(e,t){const n=JF(e,t),r={type:t&&t.name,value:HAe(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function LAe(e,t,n,r){const i=Zi(),a=i&&i.getOptions().normalizeDepth,o=jAe(t),s={__serialized__:Joe(t,a)};if(o)return{exception:{values:[GF(e,o)]},extra:s};const l={exception:{values:[{type:Z6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:qAe(t,{isUnhandledRejection:r})}]},extra:s};if(n){const u=JF(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function CI(e,t){return{exception:{values:[GF(e,t)]}}}function JF(e,t){const n=t.stacktrace||t.stack||"",r=$Ae(t),i=UAe(t);try{return e(n,r,i)}catch{}return[]}const BAe=/Minified React error #\d+;/i;function $Ae(e){return e&&BAe.test(e.message)?1:0}function UAe(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function HAe(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function VAe(e,t,n,r){const i=n&&n.syntheticException||void 0,a=YF(e,t,i,r);return T2(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),up(a)}function zAe(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,o=g9(e,t,a,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),up(o)}function YF(e,t,n,r,i){let a;if(Poe(t)&&t.error)return CI(e,t.error);if(bz(t)||Gwe(t)){const o=t;if("stack"in t)a=CI(e,t);else{const s=o.name||(bz(o)?"DOMError":"DOMException"),l=o.message?`${s}: ${o.message}`:s;a=g9(e,l,n,r),c9(a,l)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return BF(t)?CI(e,t):rg(t)||Z6(t)?(a=LAe(e,t,n,i),T2(a,{synthetic:!0}),a):(a=g9(e,t,n,r),c9(a,`${t}`,void 0),T2(a,{synthetic:!0}),a)}function g9(e,t,n,r){const i={};if(r&&n){const a=JF(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if($F(t)){const{__sentry_template_string__:a,__sentry_template_values__:o}=t;return i.logentry={message:a,params:o},i}return i.message=t,i}function qAe(e,{isUnhandledRejection:t}){const n=fke(e),r=t?"promise rejection":"exception";return Poe(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Z6(e)?`Event \`${WAe(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function WAe(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function jAe(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function GAe(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:nC(r)}},a=JAe(e);return ZS(i,[a])}function JAe(e){return[{type:"user_report"},e]}class YAe extends iAe{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Mn.SENTRY_SDK_SOURCE||Cke();dAe(n,"browser",["browser"],r),super(n),n.sendClientReports&&Mn.document&&Mn.document.addEventListener("visibilitychange",()=>{Mn.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return VAe(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return zAe(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){XS&&kt.warn("SDK not enabled, will not capture user feedback.");return}const n=GAe(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const KAe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vi=sn,QAe=1e3;let Zz,v9,y9;function ZAe(e){const t="dom";Up(t,e),Hp(t,XAe)}function XAe(){if(!Vi.document)return;const e=ll.bind(null,"dom"),t=Xz(e,!0);Vi.document.addEventListener("click",t,!1),Vi.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Vi[n]&&Vi[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(bo(r,"addEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const d=Xz(e);c.handler=d,i.call(this,a,d,s)}c.refCount++}catch{}return i.call(this,a,o,s)}}),bo(r,"removeEventListener",function(i){return function(a,o,s){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(i.call(this,a,c.handler,s),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,o,s)}}))})}function e6e(e){if(e.type!==v9)return!1;try{if(!e.target||e.target._sentryId!==y9)return!1}catch{}return!0}function t6e(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Xz(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=n6e(n);if(t6e(n.type,r))return;sp(n,"_sentryCaptured",!0),r&&!r._sentryId&&sp(r,"_sentryId",Ss());const i=n.type==="keypress"?"input":n.type;e6e(n)||(e({event:n,name:i,global:t}),v9=n.type,y9=r?r._sentryId:void 0),clearTimeout(Zz),Zz=Vi.setTimeout(()=>{y9=void 0,v9=void 0},QAe)}}function n6e(e){try{return e.target}catch{return null}}let gT;function use(e){const t="history";Up(t,e),Hp(t,r6e)}function r6e(){if(!Zke())return;const e=Vi.onpopstate;Vi.onpopstate=function(...n){const r=Vi.location.href,i=gT;if(gT=r,ll("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=gT,o=String(i);gT=o,ll("history",{from:a,to:o})}return n.apply(this,r)}}bo(Vi.history,"pushState",t),bo(Vi.history,"replaceState",t)}const H_={};function i6e(e){const t=H_[e];if(t)return t;let n=Vi[e];if(l9(n))return H_[e]=n.bind(Vi);const r=Vi.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(i){KAe&&kt.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(H_[e]=n.bind(Vi))}function eq(e){H_[e]=void 0}const qv="__sentry_xhr_v3__";function a6e(e){const t="xhr";Up(t,e),Hp(t,o6e)}function o6e(){if(!Vi.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=lc()*1e3,a=sc(r[0])?r[0].toUpperCase():void 0,o=s6e(r[1]);if(!a||!o)return t.apply(n,r);n[qv]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=()=>{const l=n[qv];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const u={endTimestamp:lc()*1e3,startTimestamp:i,xhr:n};ll("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,u,c){return s(),l.apply(u,c)}}):n.addEventListener("readystatechange",s),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,u,c){const[d,f]=c,p=u[qv];return p&&sc(d)&&sc(f)&&(p.request_headers[d.toLowerCase()]=f),l.apply(u,c)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[qv];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const a={startTimestamp:lc()*1e3,xhr:n};return ll("xhr",a),t.apply(n,r)}})}function s6e(e){if(sc(e))return e;try{return e.toString()}catch{}}function l6e(e,t=i6e("fetch")){let n=0,r=0;function i(a){const o=a.body.length;n+=o,r++;const s={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return eq("fetch"),Uw("No fetch implementation available");try{return t(e.url,s).then(l=>(n-=o,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return eq("fetch"),n-=o,r--,Uw(l)}}return cAe(e,i)}const u6e=30,c6e=50;function S9(e,t,n,r){const i={filename:e,function:t===""?lp:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const d6e=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,f6e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,p6e=/\((\S*)(?::(\d+))(?::(\d+))\)/,m6e=e=>{const t=d6e.exec(e);if(t){const[,r,i,a]=t;return S9(r,lp,+i,+a)}const n=f6e.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const o=p6e.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}const[i,a]=cse(n[1]||lp,n[2]);return S9(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},h6e=[u6e,m6e],g6e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,v6e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,y6e=e=>{const t=g6e.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=v6e.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||lp;return[i,r]=cse(i,r),S9(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},S6e=[c6e,y6e],b6e=[h6e,S6e],T6e=zoe(...b6e),cse=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:lp,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vT=1024,_6e="Breadcrumbs",E6e=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:_6e,setup(n){t.console&&gke(C6e(n)),t.dom&&ZAe(A6e(n,t.dom)),t.xhr&&a6e(N6e(n)),t.fetch&&bke(I6e(n)),t.history&&use(O6e(n)),t.sentry&&n.on("beforeSendEvent",k6e(n))}}},w6e=E6e;function k6e(e){return function(n){Zi()===e&&cp({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Bc(n)},{event:n})}}function A6e(e,t){return function(r){if(Zi()!==e)return;let i,a,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>vT&&(XS&&kt.warn(`\`dom.maxStringLength\` cannot exceed ${vT}, but a value of ${s} was configured. Sentry will use ${vT} instead.`),s=vT),typeof o=="string"&&(o=[o]);try{const u=r.event,c=D6e(u)?u.target:u;i=Boe(c,{keyAttrs:o,maxStringLength:s}),a=rke(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),cp(l,{event:r.event,name:r.name,global:r.global})}}function C6e(e){return function(n){if(Zi()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Pke(n.level),message:Tz(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Tz(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;cp(r,{input:n.args,level:n.level})}}function N6e(e){return function(n){if(Zi()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[qv];if(!r||!i||!a)return;const{method:o,url:s,status_code:l,body:u}=a,c={method:o,url:s,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},f=Loe(l);cp({category:"xhr",data:c,type:"http",level:f},d)}}function I6e(e){return function(n){if(Zi()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};cp({category:"fetch",data:a,level:"error",type:"http"},o)}else{const a=n.response,o={...n.fetchData,status_code:a&&a.status},s={input:n.args,response:a,startTimestamp:r,endTimestamp:i},l=Loe(o.status_code);cp({category:"fetch",data:o,type:"http",level:l},s)}}}function O6e(e){return function(n){if(Zi()!==e)return;let r=n.from,i=n.to;const a=AI(Mn.location.href);let o=r?AI(r):void 0;const s=AI(i);(!o||!o.path)&&(o=a),a.protocol===s.protocol&&a.host===s.host&&(i=s.relative),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),cp({category:"navigation",data:{from:r,to:i}})}}function D6e(e){return!!e&&!!e.target}const x6e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],M6e="BrowserApiErrors",R6e=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:M6e,setupOnce(){t.setTimeout&&bo(Mn,"setTimeout",tq),t.setInterval&&bo(Mn,"setInterval",tq),t.requestAnimationFrame&&bo(Mn,"requestAnimationFrame",F6e),t.XMLHttpRequest&&"XMLHttpRequest"in Mn&&bo(XMLHttpRequest.prototype,"send",L6e);const n=t.eventTarget;n&&(Array.isArray(n)?n:x6e).forEach(B6e)}}},P6e=R6e;function tq(e){return function(...t){const n=t[0];return t[0]=og(n,{mechanism:{data:{function:Vd(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function F6e(e){return function(t){return e.apply(this,[og(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Vd(e)},handled:!1,type:"instrument"}})])}}function L6e(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&bo(n,i,function(a){const o={mechanism:{data:{function:i,handler:Vd(a)},handled:!1,type:"instrument"}},s=VF(a);return s&&(o.mechanism.data.handler=Vd(s)),og(a,o)})}),e.apply(this,t)}}function B6e(e){const t=Mn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(bo(n,"addEventListener",function(r){return function(i,a,o){try{typeof a.handleEvent=="function"&&(a.handleEvent=og(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Vd(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,og(a,{mechanism:{data:{function:"addEventListener",handler:Vd(a),target:e},handled:!1,type:"instrument"}}),o])}}),bo(n,"removeEventListener",function(r){return function(i,a,o){const s=a;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,o)}catch{}return r.call(this,i,s,o)}}))}const $6e="GlobalHandlers",U6e=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:$6e,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(V6e(n),nq("onerror")),t.onunhandledrejection&&(z6e(n),nq("onunhandledrejection"))}}},H6e=U6e;function V6e(e){Eke(t=>{const{stackParser:n,attachStacktrace:r}=dse();if(Zi()!==e||lse())return;const{msg:i,url:a,line:o,column:s,error:l}=t,u=j6e(YF(n,l||i,void 0,r,!1),a,o,s);u.level="error",ese(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function z6e(e){kke(t=>{const{stackParser:n,attachStacktrace:r}=dse();if(Zi()!==e||lse())return;const i=q6e(t),a=UF(i)?W6e(i):YF(n,i,void 0,r,!0);a.level="error",ese(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function q6e(e){if(UF(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function W6e(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function j6e(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=sc(t)&&t.length>0?t:nke();return l.length===0&&l.push({colno:u,filename:d,function:lp,in_app:!0,lineno:c}),e}function nq(e){XS&&kt.log(`Global Handler attached: ${e}`)}function dse(){const e=Zi();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const G6e=()=>({name:"HttpContext",preprocessEvent(e){if(!Mn.navigator&&!Mn.location&&!Mn.document)return;const t=e.request&&e.request.url||Mn.location&&Mn.location.href,{referrer:n}=Mn.document||{},{userAgent:r}=Mn.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),J6e="cause",Y6e=5,K6e="LinkedErrors",Q6e=(e={})=>{const t=e.limit||Y6e,n=e.key||J6e;return{name:K6e,preprocessEvent(r,i,a){const o=a.getOptions();Zwe(GF,o.stackParser,o.maxValueLength,n,t,r,i)}}},Z6e=Q6e;function X6e(e){return[SAe(),hAe(),P6e(),w6e(),H6e(),Z6e(),xAe(),G6e()]}function eCe(e={}){const t={defaultIntegrations:X6e(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Mn.SENTRY_RELEASE&&Mn.SENTRY_RELEASE.id?Mn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function tCe(){const e=typeof Mn.window<"u"&&Mn;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=Mn.location&&Mn.location.href||"",a=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],o=!!r&&Mn===Mn.top&&a.some(l=>i.startsWith(`${l}//`)),s=typeof e.nw<"u";return!!r&&!o&&!s}function nCe(e={}){const t=eCe(e);if(tCe()){KS(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}XS&&(qoe()||kt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:mke(t.stackParser||T6e),integrations:nAe(t),transport:t.transport||l6e},r=sAe(YAe,n);return t.autoSessionTracking&&rCe(),r}function rCe(){if(typeof Mn.document>"u"){XS&&kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}zz({ignoreDuration:!0}),qz(),use(({from:e,to:t})=>{e!==void 0&&e!==t&&(zz({ignoreDuration:!0}),qz())})}var iC={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Zu=console,Nm={};Object.keys(iC).forEach(function(e){Nm[e]=Zu[e]});var K1="Datadog Browser SDK:",Jt={debug:Nm.debug.bind(Zu,K1),log:Nm.log.bind(Zu,K1),info:Nm.info.bind(Zu,K1),warn:Nm.warn.bind(Zu,K1),error:Nm.error.bind(Zu,K1)},eb="https://docs.datadoghq.com";function fse(e,t){return function(){for(var n=[],r=0;r=0&&e<=100}function s1(e){return typeof e=="number"}var Ea=1e3,oo=60*Ea,pse=60*oo,iCe=24*pse,aCe=365*iCe;function KF(e){return{relative:e,timeStamp:sCe(e)}}function oCe(e){return{relative:QF(e),timeStamp:e}}function sCe(e){var t=cu()-performance.now();return t>tb()?Math.round(l1(t,e)):uCe(e)}function lCe(){return Math.round(cu()-l1(tb(),performance.now()))}function zn(e){return s1(e)?zw(e*1e6,0):e}function cu(){return new Date().getTime()}function Di(){return cu()}function gl(){return performance.now()}function ga(){return{relative:gl(),timeStamp:Di()}}function mse(){return{relative:0,timeStamp:tb()}}function ji(e,t){return t-e}function l1(e,t){return e+t}function QF(e){return e-tb()}function uCe(e){return Math.round(l1(tb(),e))}function cCe(e){return e=0;n-=1){var r=e[n];if(t(r,n,e))return r}}function mCe(e,t){Array.prototype.forEach.call(e,t)}function aC(e){return Object.keys(e).map(function(t){return e[t]})}function eL(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function nb(e,t){return e.slice(0,t.length)===t}function hCe(e,t){return e.slice(-t.length)===t}function xt(e){for(var t=[],n=1;n>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,wa)}var qw=/([\w-]+)\s*=\s*([^;]+)/g;function w2(e,t){for(qw.lastIndex=0;;){var n=qw.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function bCe(e){var t=new Map;for(qw.lastIndex=0;;){var n=qw.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function yse(e,t,n){n===void 0&&(n="");var r=e.charCodeAt(t-1),i=r>=55296&&r<=56319,a=i?t+1:t;return e.length<=a?e:"".concat(e.slice(0,a)).concat(n)}function TCe(){return tL()===0}function _Ce(){return tL()===1}function ECe(){return tL()===2}var yT;function tL(){return yT??(yT=wCe())}function wCe(e){var t;e===void 0&&(e=window);var n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?1:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:e.document.documentMode?0:3}function rb(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var a="expires=".concat(i.toUTCString()),o=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",l=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(a,";path=/;samesite=").concat(o).concat(s).concat(l).concat(u)}function nL(e){return w2(document.cookie,e)}var II;function id(e){return II||(II=bCe(document.cookie)),II.get(e)}function Sse(e,t){rb(e,"",0,t)}function kCe(e){if(document.cookie===void 0||document.cookie===null)return!1;try{var t="dd_cookie_test_".concat(wa()),n="test";rb(t,n,oo,e);var r=nL(t)===n;return Sse(t,e),r}catch(i){return Jt.error(i),!1}}var OI;function ACe(){if(OI===void 0){for(var e="dd_site_test_".concat(wa()),t="test",n=window.location.hostname.split("."),r=n.pop();n.length&&!nL(e);)r="".concat(n.pop(),".").concat(r),rb(e,t,Ea,{domain:r});Sse(e,{domain:r}),OI=r}return OI}var c1="_dd_s",Vp=4*pse,bse=15*oo,Tse=/^([a-zA-Z]+)=([a-z0-9-]+)$/,rL="&",CCe="1";function l0(){return{isExpired:CCe}}function V_(e){return dp(e)}function _se(e){return!V_(e)}function Ww(e){return e.isExpired!==void 0||!NCe(e)}function NCe(e){return(e.created===void 0||cu()-Number(e.created)=JCe){rq(t);return}var u,c=l();if(i){if(c.lock){ST(e,t,n);return}if(u=wa(),s(c.session),c=l(),c.lock!==u){ST(e,t,n);return}}var d=e.process(c.session);if(i&&(c=l(),c.lock!==u)){ST(e,t,n);return}if(d&&(Ww(d)?o():(Ese(d),i?s(d):a(d))),i&&!(d&&Ww(d))){if(c=l(),c.lock!==u){ST(e,t,n);return}a(c.session),d=c.session}(r=e.after)===null||r===void 0||r.call(e,d||c.session),rq(t)}function ST(e,t,n){Ai(function(){u0(e,t,n+1)},GCe)}function rq(e){z_=void 0;var t=Ase.shift();t&&u0(t,e)}var iq=Ea;function YCe(e){var t=FCe(e);return!t&&e.allowFallbackToLocalStorage&&(t=zCe()),t}function KCe(e,t,n){var r=new On,i=new On,a=new On,o=e.type==="Cookie"?LCe(e.cookieOptions):qCe(),s=o.expireSession,l=u1(m,iq),u;g();var c=Ef(function(){u0({process:function(k){if(!V_(k)){var A=h(k);return v(A),A}},after:function(k){_se(k)&&!y()&&_(k),u=k}},o)},iq),d=c.throttled,f=c.cancel;function p(){u0({process:function(k){return y()?h(k):void 0}},o)}function m(){u0({process:function(k){return Ww(k)?l0():void 0},after:h},o)}function h(k){return Ww(k)&&(k=l0()),y()&&(b(k)?T():(a.notify({previousState:u,newState:k}),u=k)),k}function g(){u0({process:function(k){if(V_(k))return l0()},after:function(k){u=k}},o)}function v(k){if(V_(k))return!1;var A=n(k[t]),D=A.trackingType,R=A.isTracked;k[t]=D,delete k.isExpired,R&&!k.id&&(k.id=wa(),k.created=String(cu()))}function y(){return u[t]!==void 0}function b(k){return u.id!==k.id||u[t]!==k[t]}function T(){u=l0(),i.notify()}function _(k){u=k,r.notify()}function E(k){u0({process:function(A){return xt({},A,k)},after:h},o)}return{expandOrRenewSession:d,expandSession:p,getSession:function(){return u},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:a,restartSession:g,expire:function(){f(),s(),h(l0())},stop:function(){oC(l)},updateSessionState:E}}var _9={GRANTED:"granted",NOT_GRANTED:"not-granted"};function QCe(e){var t=new On;return{tryToInit:function(n){e||(e=n)},update:function(n){e=n,t.notify()},isGranted:function(){return e===_9.GRANTED},observable:t}}function zp(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);var r=Jm(Object.prototype),i=Jm(Array.prototype),a=Jm(Object.getPrototypeOf(e)),o=Jm(e);try{return JSON.stringify(e,t,n)}catch{return""}finally{r(),i(),a(),o()}}function Jm(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):In}function aL(e){return sC(e,location.href).href}function ZCe(e){try{return!!sC(e)}catch{return!1}}function XCe(e){var t=sC(e).pathname;return t[0]==="/"?t:"/".concat(t)}function sC(e,t){var n=eNe();if(n)try{return t!==void 0?new n(e,t):new n(e)}catch(o){throw new Error("Failed to construct URL: ".concat(String(o)," ").concat(zp({url:e,base:t})))}if(t===void 0&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(t!==void 0){r=document.implementation.createHTMLDocument("");var a=r.createElement("base");a.href=t,r.head.appendChild(a),r.body.appendChild(i)}return i.href=e,i}var aq=URL,bT;function eNe(){if(bT===void 0)try{var e=new aq("http://test/path");bT=e.href==="http://test/path"}catch{bT=!1}return bT?aq:void 0}var Cse="datad0g.com",tNe="dd0g-gov.com",ad="datadoghq.com",nNe="datadoghq.eu",rNe="ddog-gov.com",Nse="pci.browser-intake-datadoghq.com";function ky(e,t,n){var r=iNe(e,t);return{build:function(i,a){var o=oNe(e,t,n,i,a);return r(o)},urlPrefix:r(""),trackType:t}}function iNe(e,t){var n="/api/v2/".concat(t),r=e.proxy;if(typeof r=="string"){var i=aL(r);return function(o){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(o)))}}if(typeof r=="function")return function(o){return r({path:n,parameters:o})};var a=aNe(t,e);return function(o){return"https://".concat(a).concat(n,"?").concat(o)}}function aNe(e,t){var n=t.site,r=n===void 0?ad:n,i=t.internalAnalyticsSubdomain;if(e==="logs"&&t.usePciIntake&&r===ad)return Nse;if(i&&r===ad)return"".concat(i,".").concat(ad);if(r===tNe)return"http-intake.logs.".concat(r);var a=r.split("."),o=a.pop();return"browser-intake-".concat(a.join("-"),".").concat(o)}function oNe(e,t,n,r,i){var a=e.clientToken,o=e.internalAnalyticsSubdomain,s=i.retry,l=i.encoding,u=["sdk_version:".concat("5.23.0"),"api:".concat(r)].concat(n);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var c=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.23.0")),"dd-evp-origin=browser","dd-request-id=".concat(wa())];return l&&c.push("dd-evp-encoding=".concat(l)),t==="rum"&&c.push("batch_time=".concat(Di())),o&&c.reverse(),c.join("&")}var sNe=200;function lNe(e){var t=e.env,n=e.service,r=e.version,i=e.datacenter,a=[];return t&&a.push(TT("env",t)),n&&a.push(TT("service",n)),r&&a.push(TT("version",r)),i&&a.push(TT("datacenter",i)),a}var uNe=/[^a-z0-9_:./-]/;function TT(e,t){var n=sNe-e.length-1;(t.length>n||uNe.test(t))&&Jt.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. More details: ").concat(eb,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function cNe(e){var t=e.site||ad,n=lNe(e),r=dNe(e,n),i=pNe(r,t),a=fNe(e,i,n);return xt({isIntakeUrl:function(o){return i.some(function(s){return o.indexOf(s)===0})},replica:a,site:t},r)}function dNe(e,t){return{logsEndpointBuilder:ky(e,"logs",t),rumEndpointBuilder:ky(e,"rum",t),sessionReplayEndpointBuilder:ky(e,"replay",t)}}function fNe(e,t,n){if(e.replica){var r=xt({},e,{site:ad,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:ky(r,"logs",n),rumEndpointBuilder:ky(r,"rum",n)};return t.push.apply(t,aC(i).map(function(a){return a.urlPrefix})),xt({applicationId:e.replica.applicationId},i)}}function pNe(e,t){var n=aC(e).map(function(r){return r.urlPrefix});return t===ad&&n.push("https://".concat(Nse,"/")),n}var Ay={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},E9={ALL:"all",SAMPLED:"sampled"};function DI(e,t){return e!=null&&typeof e!="string"?(Jt.error("".concat(t," must be defined as a string")),!1):!0}function mNe(e){return/(datadog|ddog|datad0g|dd0g)/.test(e)}function hNe(e){var t,n,r,i,a;if(!e||!e.clientToken){Jt.error("Client Token is not configured, we will not send any data.");return}if(e.sessionSampleRate!==void 0&&!Gm(e.sessionSampleRate)){Jt.error("Session Sample Rate should be a number between 0 and 100");return}if(e.telemetrySampleRate!==void 0&&!Gm(e.telemetrySampleRate)){Jt.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(e.telemetryConfigurationSampleRate!==void 0&&!Gm(e.telemetryConfigurationSampleRate)){Jt.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}if(e.telemetryUsageSampleRate!==void 0&&!Gm(e.telemetryUsageSampleRate)){Jt.error("Telemetry Usage Sample Rate should be a number between 0 and 100");return}if(DI(e.version,"Version")&&DI(e.env,"Env")&&DI(e.service,"Service")){if(e.trackingConsent!==void 0&&!E2(_9,e.trackingConsent)){Jt.error('Tracking Consent should be either "granted" or "not-granted"');return}if(e.site&&!mNe(e.site)){Jt.error("Site should be a valid Datadog site. Learn more here: ".concat(eb,"/getting_started/site/."));return}return xt({beforeSend:e.beforeSend&&fse(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:YCe(e),sessionSampleRate:(t=e.sessionSampleRate)!==null&&t!==void 0?t:100,telemetrySampleRate:(n=e.telemetrySampleRate)!==null&&n!==void 0?n:20,telemetryConfigurationSampleRate:(r=e.telemetryConfigurationSampleRate)!==null&&r!==void 0?r:5,telemetryUsageSampleRate:(i=e.telemetryUsageSampleRate)!==null&&i!==void 0?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(a=e.trackingConsent)!==null&&a!==void 0?a:_9.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*qd,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Ea,batchMessagesLimit:50,messageBytesLimit:256*qd},cNe(e))}}function gNe(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent}}var yl;(function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.CUSTOM_VITALS="custom_vitals",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name",e.PLUGINS="plugins"})(yl||(yl={}));var oL=new Set;function vNe(e){Array.isArray(e)&&yNe(e.filter(function(t){return E2(yl,t)}))}function yNe(e){e.forEach(function(t){oL.add(t)})}function Gd(e){return oL.has(e)}function SNe(){return oL}var ib="?";function wf(e){var t=[],n=xI(e,"stack"),r=String(e);return n&&nb(n,r)&&(n=n.slice(r.length)),n&&n.split(` `).forEach(function(i){var a=_Ne(i)||wNe(i)||ANe(i)||INe(i);a&&(!a.func&&a.line&&(a.func=ib),t.push(a))}),{message:xI(e,"message"),name:xI(e,"name"),stack:t}}var Ise="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",sg="(?::(\\d+))",bNe=new RegExp("^\\s*at (.*?) ?\\(".concat(Ise).concat(sg,"?").concat(sg,"?\\)?\\s*$"),"i"),TNe=new RegExp("\\((\\S*)".concat(sg).concat(sg,"\\)"));function _Ne(e){var t=bNe.exec(e);if(t){var n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,i=TNe.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ib,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}var ENe=new RegExp("^\\s*at ?".concat(Ise).concat(sg,"?").concat(sg,"??\\s*$"),"i");function wNe(e){var t=ENe.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:ib,line:t[2]?+t[2]:void 0,url:t[1]}}var kNe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function ANe(e){var t=kNe.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ib,line:+t[3],url:t[2]}}var CNe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,NNe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function INe(e){var t=CNe.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=NNe.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ib,line:t[4]?+t[4]:void 0,url:t[3]}}}function xI(e,t){if(!(typeof e!="object"||!e||!(t in e))){var n=e[t];return typeof n=="string"?n:void 0}}function ONe(e,t,n,r){var i=[{url:t,column:r,line:n}],a=xNe(e),o=a.name,s=a.message;return{name:o,message:s,stack:i}}var DNe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function xNe(e){var t,n,r;return{}.toString.call(e)==="[object String]"&&(t=DNe.exec(e),n=t[1],r=t[2]),{name:n,message:r}}function jw(){var e=2,t=new Error,n;if(!t.stack)try{throw t}catch{}return fp(function(){var r=wf(t);r.stack=r.stack.slice(e),n=d1(r)}),n}function d1(e){var t=Ose(e);return e.stack.forEach(function(n){var r=n.func==="?"?"":n.func,i=n.args&&n.args.length>0?"(".concat(n.args.join(", "),")"):"",a=n.line?":".concat(n.line):"",o=n.line&&n.column?":".concat(n.column):"";t+=` at `.concat(r).concat(i," @ ").concat(n.url).concat(a).concat(o)}),t}function Ose(e){return"".concat(e.name||"Error",": ").concat(e.message)}function Ja(e,t,n,r){var i=r===void 0?{}:r,a=i.computeHandlingStack,o=e[t];if(typeof o!="function")if(nb(t,"on"))o=In;else return{stop:In};var s=!1,l=function(){if(s)return o.apply(this,arguments);var u=XF(arguments),c;fp(n,null,[{target:this,parameters:u,onPostCall:function(f){c=f},handlingStack:a?jw():void 0}]);var d=o.apply(this,u);return c&&fp(c,null,[d]),d};return e[t]=l,{stop:function(){s=!0,e[t]===l&&(e[t]=o)}}}function Q1(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:In};var i=In,a=function(s,l){Ai(function(){a!==i&&n(s,l)},0)},o=function(s){r.set.call(this,s),a(this,s)};return Object.defineProperty(e,t,{set:o}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(e,t))===null||s===void 0?void 0:s.set)===o&&Object.defineProperty(e,t,r),a=i}}}var MNe=220*qd,RNe="$",PNe=3;function ei(e,t){var n;t===void 0&&(t=MNe);var r=Jm(Object.prototype),i=Jm(Array.prototype),a=[],o=new WeakMap,s=MI(e,RNe,void 0,a,o),l=((n=JSON.stringify(s))===null||n===void 0?void 0:n.length)||0;if(l>t){RI(t,"discarded",e);return}for(;a.length>0&&lt){RI(t,"truncated",e);break}u.target[d]=f}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var f=MI(u.source[d],u.path,d,a,o);if(f!==void 0&&(l+=JSON.stringify(f).length+c+d.length+PNe,c=1),l>t){RI(t,"truncated",e);break}u.target[d]=f}}return r(),i(),s}function MI(e,t,n,r,i){var a=BNe(e);if(!a||typeof a!="object")return FNe(a);var o=LNe(a);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var l=n!==void 0?"".concat(t,".").concat(n):t,u=Array.isArray(a)?[]:{};return i.set(s,l),r.push({source:a,target:u,path:l}),u}function FNe(e){return typeof e=="bigint"?"[BigInt] ".concat(e.toString()):typeof e=="function"?"[Function] ".concat(e.name||"unknown"):typeof e=="symbol"?"[Symbol] ".concat(e.description||e.toString()):e}function LNe(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e),n=t.match(/\[object (.*)\]/);if(n&&n[1])return"[".concat(n[1],"]")}catch{}return"[Unserializable]"}function BNe(e){var t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function RI(e,t,n){Jt.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var Dse="No stack, consider using an instance of Error";function xse(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,a=e.nonErrorPrefix,o=e.source,s=e.handling,l=n instanceof Error,u=$Ne(t,l,a,n),c=UNe(l,t)?d1(t):Dse,d=l?Rse(n,o):void 0,f=t==null?void 0:t.name,p=Mse(n);return{startClocks:i,source:o,handling:s,handlingStack:r,originalError:n,type:f,message:u,stack:c,causes:d,fingerprint:p}}function $Ne(e,t,n,r){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":"".concat(n," ").concat(zp(ei(r)))}function UNe(e,t){return t===void 0?!1:e?!0:t.stack.length>0&&(t.stack.length>1||t.stack[0].url!==void 0)}function Mse(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Rse(e,t){for(var n=e,r=[];(n==null?void 0:n.cause)instanceof Error&&r.length<10;){var i=wf(n.cause);r.push({message:n.cause.message,source:t,type:i==null?void 0:i.name,stack:i&&d1(i)}),n=n.cause}return r.length?r:void 0}var f1={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function HNe(e){var t=function(i,a){var o=xse({stackTrace:i,originalError:a,startClocks:ga(),nonErrorPrefix:"Uncaught",source:f1.SOURCE,handling:"unhandled"});e.notify(o)},n=VNe(t).stop,r=zNe(t).stop;return{stop:function(){n(),r()}}}function VNe(e){return Ja(window,"onerror",function(t){var n=t.parameters,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l;s instanceof Error?l=wf(s):l=ONe(r,i,a,o),e(l,s??r)})}function zNe(e){return Ja(window,"onunhandledrejection",function(t){var n=t.parameters[0],r=n.reason||"Empty reason",i=wf(r);e(i,r)})}function qNe(e){var t=xt({version:"5.23.0",onReady:function(n){n()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return SCe},enumerable:!1}),t}function WNe(e,t,n){var r=e[t];r&&!r.q&&r.version&&Jt.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(function(i){return fse(i,"onReady callback threw an error:")()})}function Pse(e,t){t.silentMultipleInit||Jt.error("".concat(e," is already initialized."))}var He;(function(e){e.BEFORE_UNLOAD="beforeunload",e.CLICK="click",e.DBL_CLICK="dblclick",e.KEY_DOWN="keydown",e.LOAD="load",e.POP_STATE="popstate",e.SCROLL="scroll",e.TOUCH_START="touchstart",e.TOUCH_END="touchend",e.TOUCH_MOVE="touchmove",e.VISIBILITY_CHANGE="visibilitychange",e.PAGE_SHOW="pageshow",e.FREEZE="freeze",e.RESUME="resume",e.DOM_CONTENT_LOADED="DOMContentLoaded",e.POINTER_DOWN="pointerdown",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.HASH_CHANGE="hashchange",e.PAGE_HIDE="pagehide",e.MOUSE_DOWN="mousedown",e.MOUSE_UP="mouseup",e.MOUSE_MOVE="mousemove",e.FOCUS="focus",e.BLUR="blur",e.CONTEXT_MENU="contextmenu",e.RESIZE="resize",e.CHANGE="change",e.INPUT="input",e.PLAY="play",e.PAUSE="pause",e.SECURITY_POLICY_VIOLATION="securitypolicyviolation",e.SELECTION_CHANGE="selectionchange",e.STORAGE="storage"})(He||(He={}));function Ln(e,t,n,r,i){return No(e,t,[n],r,i)}function No(e,t,n,r,i){var a=i===void 0?{}:i,o=a.once,s=a.capture,l=a.passive,u=_t(function(p){!p.isTrusted&&!p.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),r(p))}),c=l?{capture:s,passive:l}:s,d=jd(t,"addEventListener");n.forEach(function(p){return d.call(t,p,u,c)});function f(){var p=jd(t,"removeEventListener");n.forEach(function(m){return p.call(t,m,u,c)})}return{stop:f}}var lg={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function jNe(e,t){var n=[];vl(t,lg.cspViolation)&&n.push(JNe(e));var r=t.filter(function(i){return i!==lg.cspViolation});return r.length&&n.push(GNe(r)),vse.apply(void 0,n)}function GNe(e){return new On(function(t){if(window.ReportingObserver){var n=_t(function(i,a){return i.forEach(function(o){t.notify(YNe(o))})}),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}})}function JNe(e){return new On(function(t){var n=Ln(e,document,He.SECURITY_POLICY_VIOLATION,function(r){t.notify(KNe(r))}).stop;return n})}function YNe(e){var t=e.type,n=e.body;return{type:t,subtype:n.id,message:"".concat(t,": ").concat(n.message),originalReport:e,stack:Fse(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}function KNe(e){var t=lg.cspViolation,n="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:lg.cspViolation,subtype:e.effectiveDirective,message:"".concat(t,": ").concat(n),stack:Fse(e.effectiveDirective,e.originalPolicy?"".concat(n,' of the policy "').concat(yse(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber),originalReport:e}}function Fse(e,t,n,r,i){return n?d1({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}function sL(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function kf(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Gw(e,t,n){if(n===void 0&&(n=QNe()),t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],a=0;a=0;return r||t.push(n),r}}}function Lse(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function Bse(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var ZNe=500,$se=function(){function e(){this.buffer=[]}return e.prototype.add=function(t){var n=this.buffer.push(t);n>ZNe&&this.buffer.splice(0,1)},e.prototype.remove=function(t){Bse(this.buffer,t)},e.prototype.drain=function(t){this.buffer.forEach(function(n){return n(t)}),this.buffer.length=0},e}(),P0={log:"log",configuration:"configuration",usage:"usage"},XNe=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],eIe=[rNe],Use=new $se,p1=function(e){Use.add(function(){return p1(e)})};function tIe(e,t){var n,r,i=new On,a=new Set,o=!vl(eIe,t.site)&&R0(t.telemetrySampleRate),s=(n={},n[P0.log]=o,n[P0.configuration]=o&&R0(t.telemetryConfigurationSampleRate),n[P0.usage]=o&&R0(t.telemetryUsageSampleRate),n),l=nIe();p1=function(c){var d=zp(c);if(s[c.type]&&a.size=this.maxEntries&&this.entries.pop(),this.entries.unshift(i),i},e.prototype.find=function(t,n){t===void 0&&(t=_T),n===void 0&&(n={returnInactive:!1});for(var r=0,i=this.entries;r0&&this.entries[this.entries.length-1].endTime=500}function gIe(e){try{return e.clone()}catch{return}}var vIe=80*qd,yIe=32,Hse=3*hse,SIe=oo,Vse=Ea;function zse(e,t,n,r,i){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?Wse(e,t,n,{onSuccess:function(){return jse(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),qse(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function qse(e,t,n,r){e.transportStatus===2&&Ai(function(){var i=e.queuedPayloads.first();Wse(i,e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Vse,jse(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(SIe,e.currentBackoffTime*2),qse(e,t,n,r)}})},e.currentBackoffTime)}function Wse(e,t,n,r){var i=r.onSuccess,a=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(o){t.bandwidthMonitor.remove(e),bIe(o)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:o.status},a()):(t.transportStatus=0,i())})}function jse(e,t,n,r,i){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(Hse/hse,"MiB"),source:f1.AGENT,startClocks:ga()}),t.queueFullReported=!0);var a=t.queuedPayloads;for(t.queuedPayloads=Gse();a.size()>0;)zse(a.dequeue(),t,n,r,i)}function bIe(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||hIe(e.status))}function TIe(){return{transportStatus:0,currentBackoffTime:Vse,bandwidthMonitor:_Ie(),queuedPayloads:Gse(),queueFullReported:!1}}function Gse(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=Hse}}}function _Ie(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=vIe&&this.ongoingRequestCount=this.messageBytesLimit){Jt.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB. More details: ").concat(eb,"/real_user_monitoring/browser/troubleshooting/#technical-limitations"));return}this.hasMessageFor(n)&&this.remove(n),this.push(r,i,n)},e.prototype.push=function(t,n,r){var i=this;this.flushController.notifyBeforeAddMessage(n),r!==void 0?(this.upsertBuffer[r]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:` `.concat(t),function(a){i.flushController.notifyAfterAddMessage(a-n)})},e.prototype.remove=function(t){var n=this.upsertBuffer[t];delete this.upsertBuffer[t];var r=this.encoder.estimateEncodedBytesCount(n);this.flushController.notifyAfterRemoveMessage(r)},e.prototype.hasMessageFor=function(t){return t!==void 0&&this.upsertBuffer[t]!==void 0},e}();function sq(e){var t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function OIe(e){var t=e.messagesLimit,n=e.bytesLimit,r=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,o=i.subscribe(function(h){return d(h.reason)}),s=a.subscribe(function(){return d("session_expire")}),l=new On(function(){return function(){o.unsubscribe(),s.unsubscribe()}}),u=0,c=0;function d(h){if(c!==0){var g=c,v=u;c=0,u=0,m(),l.notify({reason:h,messagesCount:g,bytesCount:v})}}var f;function p(){f===void 0&&(f=Ai(function(){d("duration_limit")},r))}function m(){el(f),f=void 0}return{flushObservable:l,get messagesCount(){return c},notifyBeforeAddMessage:function(h){u+h>=n&&d("bytes_limit"),c+=1,u+=h,p()},notifyAfterAddMessage:function(h){h===void 0&&(h=0),u+=h,c>=t?d("messages_limit"):u>=n&&d("bytes_limit")},notifyAfterRemoveMessage:function(h){u-=h,c-=1,c===0&&m()}}}function DIe(e,t,n,r,i,a){var o=l(e,t),s=n&&l(e,n);function l(u,c){var d=c.endpoint,f=c.encoder;return new IIe(f,Jse(u,d,u.batchBytesLimit,r),OIe({messagesLimit:u.batchMessagesLimit,bytesLimit:u.batchBytesLimit,durationLimit:u.flushTimeout,pageExitObservable:i,sessionExpireObservable:a}),u.messageBytesLimit)}return{flushObservable:o.flushController.flushObservable,add:function(u,c){c===void 0&&(c=!0),o.add(u),s&&c&&s.add(n.transformMessage?n.transformMessage(u):u)},upsert:function(u,c){o.upsert(u,c),s&&s.upsert(n.transformMessage?n.transformMessage(u):u,c)},stop:function(){o.stop(),s==null||s.stop()}}}function xIe(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var i=ZF(n);t+=i,e+=n,r&&r(i)},finish:function(n){n(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(n){return n.length}}}var MIe=function(){function e(){this.callbacks={}}return e.prototype.notify=function(t,n){var r=this.callbacks[t];r&&r.forEach(function(i){return i(n)})},e.prototype.subscribe=function(t,n){var r=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:function(){r.callbacks[t]=r.callbacks[t].filter(function(i){return n!==i})}}},e}();function PI(e,t,n){var r=0,i=!1;return{isLimitReached:function(){if(r===0&&Ai(function(){r=0},oo),r+=1,r<=t||i)return i=!1,!1;if(r===t+1){i=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:f1.AGENT,startClocks:ga()})}finally{i=!1}}return!0}}}function uL(e,t,n){if(document.readyState===t||document.readyState==="complete")n();else{var r=t==="complete"?He.LOAD:He.DOM_CONTENT_LOADED;Ln(e,window,r,n,{once:!0})}}var FI,cL=new WeakMap;function RIe(e){return FI||(FI=PIe(e)),FI}function PIe(e){return new On(function(t){var n=Ja(XMLHttpRequest.prototype,"open",FIe).stop,r=Ja(XMLHttpRequest.prototype,"send",function(a){LIe(a,e,t)},{computeHandlingStack:!0}).stop,i=Ja(XMLHttpRequest.prototype,"abort",BIe).stop;return function(){n(),r(),i()}})}function FIe(e){var t=e.target,n=e.parameters,r=n[0],i=n[1];cL.set(t,{state:"open",method:String(r).toUpperCase(),url:aL(String(i))})}function LIe(e,t,n){var r=e.target,i=e.handlingStack,a=cL.get(r);if(a){var o=a;o.state="start",o.startClocks=ga(),o.isAborted=!1,o.xhr=r,o.handlingStack=i;var s=!1,l=Ja(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){if(c(),l(),!s){s=!0;var d=a;d.state="complete",d.duration=ji(o.startClocks.timeStamp,Di()),d.status=r.status,n.notify(_2(d))}},c=Ln(t,r,"loadend",u).stop;n.notify(o)}}function BIe(e){var t=e.target,n=cL.get(t);n&&(n.isAborted=!0)}var LI;function Qse(){return LI||(LI=$Ie()),LI}function $Ie(){return new On(function(e){if(window.fetch){var t=Ja(window,"fetch",function(n){return UIe(n,e)},{computeHandlingStack:!0}).stop;return t}})}function UIe(e,t){var n=e.parameters,r=e.onPostCall,i=e.handlingStack,a=n[0],o=n[1],s=o&&o.method;s===void 0&&a instanceof Request&&(s=a.method);var l=s!==void 0?String(s).toUpperCase():"GET",u=a instanceof Request?a.url:aL(String(a)),c=ga(),d={state:"start",init:o,input:a,method:l,startClocks:c,url:u,handlingStack:i};t.notify(d),n[0]=d.input,n[1]=d.init,r(function(f){return HIe(t,f,d)})}function HIe(e,t,n){var r=function(i){var a=n;a.state="resolve","stack"in i||i instanceof Error?(a.status=0,a.isAborted=i instanceof DOMException&&i.code===DOMException.ABORT_ERR,a.error=i):"status"in i&&(a.response=i,a.responseType=i.type,a.status=i.status,a.isAborted=!1),e.notify(a)};t.then(_t(r),_t(r))}var BI={};function VIe(e){var t=e.map(function(n){return BI[n]||(BI[n]=zIe(n)),BI[n]});return vse.apply(void 0,t)}function zIe(e){return new On(function(t){var n=Zu[e];return Zu[e]=function(){for(var r=[],i=0;ia&&(XIe(a),n=!0)}}return{createDetachedTracker:function(){var i=cq(function(){return r(i.getBytesCount())});return i},getOrCreateTracker:function(i){return t.has(i)||t.set(i,cq(r)),t.get(i)},setCompressionStatus:function(i){e===0&&(e=i,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(i){return i.stop()}),t.clear()}}}function cq(e){var t=0,n=Ef(function(o){t=ZF(zp(o)),e()},QIe),r=n.throttled,i=n.cancel,a=function(){i(),t=0};return{updateCustomerData:function(o){dp(o)?a():r(o)},resetCustomerData:a,getBytesCount:function(){return t},stop:function(){i()}}}function XIe(e){Jt.warn("Customer data exceeds the recommended ".concat(e/qd,"KiB threshold. More details: ").concat(eb,"/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}function e4e(e,t,n){var r=e.getReader(),i=[],a=0;o();function o(){r.read().then(_t(function(l){if(l.done){s();return}n.collectStreamBody&&i.push(l.value),a+=l.value.length,a>n.bytesLimit?s():o()}),_t(function(l){return t(l)}))}function s(){r.cancel().catch(In);var l,u;if(n.collectStreamBody){var c;if(i.length===1)c=i[0];else{c=new Uint8Array(a);var d=0;i.forEach(function(f){c.set(f,d),d+=f.length})}l=c.slice(0,n.bytesLimit),u=c.length>n.bytesLimit}t(void 0,l,u)}}var t4e="datadog-synthetics-public-id",n4e="datadog-synthetics-result-id",r4e="datadog-synthetics-injects-rum";function Zse(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||id(r4e))}function i4e(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||id(t4e);return typeof e=="string"?e:void 0}function a4e(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||id(n4e);return typeof e=="string"?e:void 0}function dq(e){var t=xt({},e),n=["id","name","email"];return n.forEach(function(r){r in t&&(t[r]=String(t[r]))}),t}function o4e(e){var t=kf(e)==="object";return t||Jt.error("Unsupported user:",e),t}function dL(e){var t=kf(e);return t==="string"||t==="function"||e instanceof RegExp}function Xse(e,t,n){return n===void 0&&(n=!1),e.some(function(r){try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?nb(t,r):r===t}catch(i){Jt.error(i)}return!1})}function s4e(e,t,n){return{context:e.getContext(),user:t.getContext(),hasReplay:n.isRecording()?!0:void 0}}function l4e(e){var t=e;return kf(t)==="object"&&dL(t.match)&&Array.isArray(t.propagatorTypes)}function u4e(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function c4e(e,t){return{clearTracingIfNeeded:u4e,traceFetch:function(n){return fq(e,n,t,function(r){var i;if(n.input instanceof Request&&!(!((i=n.init)===null||i===void 0)&&i.headers))n.input=new Request(n.input),Object.keys(r).forEach(function(o){n.input.headers.append(o,r[o])});else{n.init=_2(n.init);var a=[];n.init.headers instanceof Headers?n.init.headers.forEach(function(o,s){a.push([s,o])}):Array.isArray(n.init.headers)?n.init.headers.forEach(function(o){a.push(o)}):n.init.headers&&Object.keys(n.init.headers).forEach(function(o){a.push([o,n.init.headers[o]])}),n.init.headers=a.concat(eL(r))}})},traceXhr:function(n,r){return fq(e,n,t,function(i){Object.keys(i).forEach(function(a){r.setRequestHeader(a,i[a])})})}}}function fq(e,t,n,r){if(!(!d4e()||!n.findTrackedSession())){var i=Wd(e.allowedTracingUrls,function(a){return Xse([a.match],t.url,!0)});i&&(t.traceSampled=!s1(e.traceSampleRate)||R0(e.traceSampleRate),!(!t.traceSampled&&e.traceContextInjection!==E9.ALL)&&(t.traceId=new k9,t.spanId=new k9,r(f4e(t.traceId,t.spanId,t.traceSampled,i.propagatorTypes))))}}function d4e(){return ele()!==void 0}function ele(){return window.crypto||window.msCrypto}function f4e(e,t,n,r){var i={};return r.forEach(function(a){switch(a){case"datadog":{xt(i,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toDecimalString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toDecimalString()});break}case"tracecontext":{xt(i,{traceparent:"00-0000000000000000".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-0").concat(n?"1":"0")});break}case"b3":{xt(i,{b3:"".concat(e.toPaddedHexadecimalString(),"-").concat(t.toPaddedHexadecimalString(),"-").concat(n?"1":"0")});break}case"b3multi":{xt(i,{"X-B3-TraceId":e.toPaddedHexadecimalString(),"X-B3-SpanId":t.toPaddedHexadecimalString(),"X-B3-Sampled":n?"1":"0"});break}}}),i}var k9=function(){function e(){this.buffer=new Uint8Array(8),ele().getRandomValues(this.buffer),this.buffer[0]=this.buffer[0]&127}return e.prototype.toString=function(t){var n=this.readInt32(0),r=this.readInt32(4),i="";do{var a=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(a/t),i=(a%t).toString(t)+i}while(n||r);return i},e.prototype.toDecimalString=function(){return this.toString(10)},e.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},e.prototype.readInt32=function(t){return this.buffer[t]*16777216+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},e}(),tle=["tracecontext","datadog"];function p4e(e){var t,n;if(!e.applicationId){Jt.error("Application ID is not configured, no RUM data will be collected.");return}if(e.sessionReplaySampleRate!==void 0&&!Gm(e.sessionReplaySampleRate)){Jt.error("Session Replay Sample Rate should be a number between 0 and 100");return}if(e.traceSampleRate!==void 0&&!Gm(e.traceSampleRate)){Jt.error("Trace Sample Rate should be a number between 0 and 100");return}if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Jt.error("Excluded Activity Urls should be an array");return}var r=m4e(e);if(r){var i=hNe(e);if(i)return xt({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:(t=e.sessionReplaySampleRate)!==null&&t!==void 0?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:(n=e.excludedActivityUrls)!==null&&n!==void 0?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:E2(Ay,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Ay.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:E2(E9,e.traceContextInjection)?e.traceContextInjection:E9.ALL,plugins:Gd(yl.PLUGINS)&&e.plugins||[]},i)}}function m4e(e){if(e.allowedTracingUrls!==void 0){if(!Array.isArray(e.allowedTracingUrls)){Jt.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Jt.error("Service needs to be configured when tracing is enabled");return}var t=[];return e.allowedTracingUrls.forEach(function(n){dL(n)?t.push({match:n,propagatorTypes:tle}):l4e(n)?t.push(n):Jt.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}return[]}function h4e(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(function(n){dL(n)?tle.forEach(function(r){return t.add(r)}):kf(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(function(r){return t.add(r)})}),XF(t)}function g4e(e){var t,n=gNe(e);return xt({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:h4e(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(function(r){var i;return xt({name:r.name},(i=r.getConfigurationTelemetry)===null||i===void 0?void 0:i.call(r))})},n)}var v4e="https://d3uc069fcn7uxw.cloudfront.net/configuration";function y4e(e,t){b4e(e,function(n){t(S4e(e,n))})}function S4e(e,t){return xt({},e,t)}function b4e(e,t){var n=new XMLHttpRequest;Ln(e,n,"load",function(){n.status===200?t(JSON.parse(n.responseText)):pq()}),Ln(e,n,"error",function(){pq()}),n.open("GET","".concat(v4e,"/").concat(encodeURIComponent(e.remoteConfigurationId),".json")),n.send()}function pq(){Jt.error("Error fetching the remote configuration.")}function T4e(e,t){function n(i){return!t.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function r(i){n(i)&&e.notify(12,E4e(i,!0))}return{addDurationVital:r,startDurationVital:function(i){return nle(function(a){r(a)},i)}}}function nle(e,t){var n=ga(),r;return{stop:function(i){r||(r=ga(),e(_4e(t,n,i,r)))}}}function _4e(e,t,n,r){var i;return n===void 0&&(n={}),{name:e.name,type:"duration",startClocks:t,duration:ji(t.timeStamp,r.timeStamp),context:du(e.context,n.context),details:(i=n.details)!==null&&i!==void 0?i:e.details}}function E4e(e,t){var n={date:e.startClocks.timeStamp,vital:{id:wa(),type:e.type,name:e.name,duration:zn(e.duration),details:e.details},type:"vital"};return t&&(n._dd={vital:{computed_value:!0}}),{rawRumEvent:n,startTime:e.startClocks.relative,customerContext:e.context,domainContext:{}}}function w4e(e,t,n){if(e)for(var r=0,i=e;re[n])return!1;return!0}function x4e(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function M4e(e){var t=e.duration,n=e.startTime,r=e.responseEnd;return t===0&&ne.startTime}function hm(e,t,n){if(e<=t&&t<=n)return{duration:zn(ji(t,n)),start:zn(ji(e,t))}}function F4e(e){if(e.startTime0&&n.notify(u)};r=new PerformanceObserver(_t(function(l){a?i=Ai(function(){return o(l.getEntries())}):o(l.getEntries())}));try{r.observe(t)}catch{var s=[zt.RESOURCE,zt.NAVIGATION,zt.LONG_TASK,zt.PAINT];vl(s,t.type)&&(t.buffered&&(i=Ai(function(){return o(performance.getEntriesByType(t.type))})),r.observe({entryTypes:[t.type]}))}a=!1}return B4e(e),function(){r==null||r.disconnect(),i&&el(i)}})}var Z1;function B4e(e){return!Z1&&$4e()&&"addEventListener"in performance&&(Z1=Ln(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){Z1==null||Z1.stop()}}function $4e(){return window.performance!==void 0&&"getEntries"in performance}function k2(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function U4e(e,t){return t.filter(function(n){return H4e(e,n)})}function H4e(e,t){return t.entryType===zt.RESOURCE&&fL(e,t.name)}function vq(){return window.performance!==void 0&&"getEntries"in performance}function V4e(e,t){var n=[];if(vq()){var r=performance.getEntries();Ai(function(){return ET(e,r)})}if(window.PerformanceObserver){var i=_t(function(c){return ET(e,c.getEntries())}),a=[zt.NAVIGATION,zt.LONG_TASK,zt.PAINT],o=[zt.LARGEST_CONTENTFUL_PAINT,zt.FIRST_INPUT,zt.LAYOUT_SHIFT,zt.EVENT];try{o.forEach(function(c){var d=new window.PerformanceObserver(i);d.observe({type:c,buffered:!0,durationThreshold:40}),n.push(function(){return d.disconnect()})})}catch{a.push.apply(a,o)}var s=new PerformanceObserver(i);if(s.observe({entryTypes:a}),n.push(function(){return s.disconnect()}),vq()&&"addEventListener"in performance){var l=Ln(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;n.push(l)}}if(k2(zt.NAVIGATION)||z4e(t,function(c){ET(e,[c])}),!k2(zt.FIRST_INPUT)){var u=q4e(t,function(c){ET(e,[c])}).stop;n.push(u)}return{stop:function(){n.forEach(function(c){return c()})}}}function z4e(e,t){function n(){t(xt(lle(),{entryType:zt.NAVIGATION}))}uL(e,"complete",function(){Ai(n)})}function q4e(e,t){var n=cu(),r=!1,i=No(e,window,[He.CLICK,He.MOUSE_DOWN,He.KEY_DOWN,He.TOUCH_START,He.POINTER_DOWN],function(s){if(s.cancelable){var l={entryType:zt.FIRST_INPUT,processingStart:gl(),processingEnd:gl(),startTime:s.timeStamp,duration:0,name:""};s.type===He.POINTER_DOWN?a(e,l):o(l)}},{passive:!0,capture:!0}).stop;return{stop:i};function a(s,l){No(s,window,[He.POINTER_UP,He.POINTER_CANCEL],function(u){u.type===He.POINTER_UP&&o(l)},{once:!0})}function o(s){if(!r){r=!0,i();var l=s.processingStart-s.startTime;l>=0&&l0})}})}function UI(e,t){return Xse(e.excludedActivityUrls,t)}function cOe(e){return Ja(window,"open",e)}function Jd(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,n){return n?t==="\0"?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function Ym(e,t){return e.matches?e.matches(t):e.msMatchesSelector?e.msMatchesSelector(t):!1}function ab(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}function dOe(e){var t;if(e.classList)return e.classList;var n=(t=e.getAttribute("class"))===null||t===void 0?void 0:t.trim();return n?n.split(/\s+/):[]}var bq=1,fOe=function(){function e(t){var n=this;this.map=new WeakMap,t&&t.forEach(function(r){return n.map.set(r,bq)})}return e.prototype.add=function(t){return this.map.set(t,bq),this},e.prototype.delete=function(t){return this.map.delete(t)},e.prototype.has=function(t){return this.map.has(t)},e}();function gle(e){return e.nodeType===Node.TEXT_NODE}function pOe(e){return e.nodeType===Node.COMMENT_NODE}function v1(e){return e.nodeType===Node.ELEMENT_NODE}function lC(e){return v1(e)&&!!e.shadowRoot}function mL(e){var t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&v1(t.host)}function mOe(e){return e.childNodes.length>0||lC(e)}function vle(e,t){for(var n=e.firstChild;n;)t(n),n=n.nextSibling;lC(e)&&t(e.shadowRoot)}function uC(e){return mL(e)?e.host:e.parentNode}var vt={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Ay.ALLOW,MASK:Ay.MASK,MASK_USER_INPUT:Ay.MASK_USER_INPUT},hL="data-dd-privacy",hOe="hidden",gOe="dd-privacy-",od="***",Tq="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",vOe={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},yOe="x";function _u(e,t,n){if(n&&n.has(e))return n.get(e);var r=uC(e),i=r?_u(r,t,n):t,a=Sle(e),o=yle(a,i);return n&&n.set(e,o),o}function yle(e,t){switch(t){case vt.HIDDEN:case vt.IGNORE:return t}switch(e){case vt.ALLOW:case vt.MASK:case vt.MASK_USER_INPUT:case vt.HIDDEN:case vt.IGNORE:return e;default:return t}}function Sle(e){if(v1(e)){if(e.tagName==="BASE")return vt.ALLOW;if(e.tagName==="INPUT"){var t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return vt.MASK;var n=t.getAttribute("autocomplete");if(n&&n.indexOf("cc-")===0)return vt.MASK}if(Ym(e,Km(vt.HIDDEN)))return vt.HIDDEN;if(Ym(e,Km(vt.MASK)))return vt.MASK;if(Ym(e,Km(vt.MASK_USER_INPUT)))return vt.MASK_USER_INPUT;if(Ym(e,Km(vt.ALLOW)))return vt.ALLOW;if(bOe(e))return vt.IGNORE}}function cC(e,t){switch(t){case vt.MASK:case vt.HIDDEN:case vt.IGNORE:return!0;case vt.MASK_USER_INPUT:return gle(e)?_q(e.parentNode):_q(e);default:return!1}}function _q(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;var t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!vOe[t.tagName]}var SOe=function(e){return e.replace(/\S/g,yOe)};function ble(e,t,n){var r,i=(r=e.parentElement)===null||r===void 0?void 0:r.tagName,a=e.textContent||"";if(!(t&&!a.trim())){var o=n,s=i==="SCRIPT";if(s)a=od;else if(o===vt.HIDDEN)a=od;else if(cC(e,o))if(i==="DATALIST"||i==="SELECT"||i==="OPTGROUP"){if(!a.trim())return}else i==="OPTION"?a=od:a=SOe(a);return a}}function bOe(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){var t=i("rel");return/preload|prefetch/i.test(t)&&i("as")==="script"||t==="shortcut icon"||t==="icon"}if(e.nodeName==="META"){var n=i("name"),t=i("rel"),r=i("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||t==="icon"||t==="apple-touch-icon"||t==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(r)||/^product:/.test(r)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function i(a){return(e.getAttribute(a)||"").toLowerCase()}return!1}function Km(e){return"[".concat(hL,'="').concat(e,'"], .').concat(gOe).concat(e)}var gL="data-dd-action-name",TOe="Masked Element";function _Oe(e,t,n){var r=t.enablePrivacyForActionName,i=t.actionNameAttribute,a=Eq(e,gL)||i&&Eq(e,i);return n===vt.MASK?a||TOe:a||wq(e,i,EOe,r)||wq(e,i,wOe,r)||""}function Eq(e,t){var n;if(IOe())n=e.closest("[".concat(t,"]"));else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=ab(r)}if(n){var i=n.getAttribute(t);return _le(Tle(i.trim()))}}var EOe=[function(e,t,n){if(NOe()){if("labels"in e&&e.labels&&e.labels.length>0)return Im(e.labels[0],t)}else if(e.id){var r=e.ownerDocument&&Wd(e.ownerDocument.querySelectorAll("label"),function(i){return i.htmlFor===e.id});return r&&Im(r,t,n)}},function(e){if(e.nodeName==="INPUT"){var t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return t.value}},function(e,t,n){if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Im(e,t,n)},function(e){return e.getAttribute("aria-label")},function(e,t,n){var r=e.getAttribute("aria-labelledby");if(r)return r.split(/\s+/).map(function(i){return AOe(e,i)}).filter(function(i){return!!i}).map(function(i){return Im(i,t,n)}).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return Im(e.options[0],t)}],wOe=[function(e,t,n){return Im(e,t,n)}],kOe=10;function wq(e,t,n,r){for(var i=e,a=0;a<=kOe&&i&&i.nodeName!=="BODY"&&i.nodeName!=="HTML"&&i.nodeName!=="HEAD";){for(var o=0,s=n;o100?"".concat(yse(e,100)," [...]"):e}function AOe(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Im(e,t,n){if(!e.isContentEditable){if("innerText"in e){var r=e.innerText,i=function(a){for(var o=e.querySelectorAll(a),s=0;s0&&(r=r.replace(u,""))}}};return COe()||i("script, style"),i("[".concat(gL,"]")),t&&i("[".concat(t,"]")),n&&i("".concat(Km(vt.HIDDEN),", ").concat(Km(vt.MASK))),r}return e.textContent}}function COe(){return!TCe()}var HI;function NOe(){return HI===void 0&&(HI="labels"in HTMLInputElement.prototype),HI}var VI;function IOe(){return VI===void 0&&(VI="closest"in HTMLElement.prototype),VI}var Ele=[gL,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],OOe=[kle,xOe],DOe=[kle,MOe,ROe];function ob(e,t){if($Oe(e)){for(var n,r=e;r&&r.nodeName!=="HTML";){var i=kq(r,OOe,FOe,t,n);if(i)return i;var a=kq(r,DOe,LOe,t,n);n=a||A2(POe(r),n),r=ab(r)}return n}}function wle(e){return/[0-9]/.test(e)}function xOe(e){if(e.id&&!wle(e.id))return"#".concat(Jd(e.id))}function MOe(e){if(e.tagName!=="BODY")for(var t=dOe(e),n=0;n").concat(t):e}var wT;function BOe(){if(wT===void 0)try{document.querySelector(":scope"),wT=!0}catch{wT=!1}return wT}function $Oe(e){return"isConnected"in e?e.isConnected:e.ownerDocument.documentElement.contains(e)}var Ale=Ea,UOe=100;function HOe(e,t){var n=[],r=0,i;a(e);function a(l){l.stopObservable.subscribe(o),n.push(l),el(i),i=Ai(s,Ale)}function o(){r===1&&n.every(function(l){return l.isStopped()})&&(r=2,t(n))}function s(){el(i),r===0&&(r=1,o())}return{tryAppend:function(l){return r!==0?!1:n.length>0&&!VOe(n[n.length-1].event,l.event)?(s(),!1):(a(l),!0)},stop:function(){s()}}}function VOe(e,t){return e.target===t.target&&zOe(e,t)<=UOe&&e.timeStamp-t.timeStamp<=Ale}function zOe(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function qOe(e,t){var n=t.onPointerDown,r=t.onPointerUp,i,a={selection:!1,input:!1,scroll:!1},o,s=[Ln(e,window,He.POINTER_DOWN,function(l){Cq(l)&&(i=Aq(),a={selection:!1,input:!1,scroll:!1},o=n(l))},{capture:!0}),Ln(e,window,He.SELECTION_CHANGE,function(){(!i||!Aq())&&(a.selection=!0)},{capture:!0}),Ln(e,window,He.SCROLL,function(){a.scroll=!0},{capture:!0,passive:!0}),Ln(e,window,He.POINTER_UP,function(l){if(Cq(l)&&o){var u=a;r(o,l,function(){return u}),o=void 0}},{capture:!0}),Ln(e,window,He.INPUT,function(){a.input=!0},{capture:!0})];return{stop:function(){s.forEach(function(l){return l.stop()})}}}function Aq(){var e=window.getSelection();return!e||e.isCollapsed}function Cq(e){return e.target instanceof Element&&e.isPrimary!==!1}var Nq=3;function WOe(e,t){if(jOe(e))return t.addFrustration("rage_click"),e.some(Iq)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var n=e.some(function(r){return r.getUserActivity().selection});return e.forEach(function(r){r.hasError&&r.addFrustration("error_click"),Iq(r)&&!n&&r.addFrustration("dead_click")}),{isRage:!1}}function jOe(e){if(e.some(function(n){return n.getUserActivity().selection||n.getUserActivity().scroll}))return!1;for(var t=0;t0},get hasPageActivity(){return c!==void 0},getUserActivity:n,addFrustration:function(m){d.push(m)},startClocks:o,isStopped:function(){return u===1||u===2},clone:function(){return Cle(e,t,n,r,i)},validate:function(m){if(p(),u===1){var h=l.eventCounts,g=h.resourceCount,v=h.errorCount,y=h.longTaskCount,b=xt({type:"click",duration:c&&ji(o.timeStamp,c),startClocks:o,id:a,frustrationTypes:d,counts:{resourceCount:g,errorCount:v,longTaskCount:y},events:m??[i],event:i},r);e.notify(1,b),u=2}},discard:function(){p(),u=2}}}function eDe(e,t){var n=WOe(e,t).isRage;n?(e.forEach(function(r){return r.discard()}),t.stop(Di()),t.validate(e.map(function(r){return r.event}))):(t.discard(),e.forEach(function(r){return r.validate()}))}function tDe(e,t,n,r){e.subscribe(1,function(a){return e.notify(12,Oq(a,r))});var i={findActionId:In};return n.trackUserInteractions&&(i=KOe(e,t,n).actionContexts),{addAction:function(a,o){e.notify(12,xt({savedCommonContext:o},Oq(a,r)))},actionContexts:i}}function Oq(e,t){var n=kT(e)?{action:{id:e.id,loading_time:ple(zn(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,r=kT(e)?void 0:e.context,i=du({action:{id:wa(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},n),a=kT(e)?{events:e.events}:{};return!kT(e)&&e.handlingStack&&(a.handlingStack=e.handlingStack),{customerContext:r,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:a}}function kT(e){return e.type!=="custom"}function nDe(e){var t=VIe([iC.error]).subscribe(function(n){return e.notify({startClocks:ga(),message:n.message,stack:n.stack,fingerprint:n.fingerprint,source:f1.CONSOLE,handling:"handled",handlingStack:n.handlingStack})});return{stop:function(){t.unsubscribe()}}}function rDe(e,t){var n=jNe(e,[lg.cspViolation,lg.intervention]).subscribe(function(r){var i={startClocks:ga(),message:r.message,stack:r.stack,type:r.subtype,source:f1.REPORT,handling:"unhandled",originalError:r.originalReport};return r.originalReport.type==="securitypolicyviolation"&&(i.csp={disposition:r.originalReport.disposition}),t.notify(i)});return{stop:function(){n.unsubscribe()}}}function iDe(e,t,n,r){var i=new On;return nDe(i),HNe(i),rDe(t,i),i.subscribe(function(a){return e.notify(14,{error:a})}),aDe(e,n,r)}function aDe(e,t,n){return e.subscribe(14,function(r){var i=r.error,a=r.customerContext,o=r.savedCommonContext;e.notify(12,xt({customerContext:a,savedCommonContext:o},oDe(i,t,n)))}),{addError:function(r,i){var a=r.error,o=r.handlingStack,s=r.startClocks,l=r.context,u=a instanceof Error?wf(a):void 0,c=xse({stackTrace:u,originalError:a,handlingStack:o,startClocks:s,nonErrorPrefix:"Provided",source:f1.CUSTOM,handling:"handled"});e.notify(14,{customerContext:l,savedCommonContext:i,error:c})}}}function oDe(e,t,n){var r={date:e.startClocks.timeStamp,error:{id:wa(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},i=n.findFeatureFlagEvaluations(e.startClocks.relative);i&&!dp(i)&&(r.feature_flags=i);var a={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:r,startTime:e.startClocks.relative,domainContext:a}}function sDe(e,t){e.subscribe(0,function(n){for(var r=0,i=n;r=t-r&&Nle(e)<=l1(n,r)}var cDe=2*oo;function dDe(e){var t=fDe(e)||pDe(e);if(!(!t||t.traceTime<=cu()-cDe))return t.traceId}function fDe(e){var t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Ile(t&&t.content,n&&n.content)}function pDe(e){var t=mDe(e);if(t)return Ile(w2(t,"trace-id"),w2(t,"trace-time"))}function Ile(e,t){var n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function mDe(e){for(var t=0;t=0;t-=1){var r=e.body.childNodes[t],n=xq(r);if(n)return n;if(!gle(r))break}}function xq(e){if(e&&pOe(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function hDe(e,t){uL(e,"interactive",function(){var n,r={entryType:zt.RESOURCE,initiatorType:ile,traceId:dDe(document),toJSON:function(){return xt({},n,{toJSON:void 0})}};if(k2(zt.NAVIGATION)&&performance.getEntriesByType(zt.NAVIGATION).length>0){var i=performance.getEntriesByType(zt.NAVIGATION)[0];n=xt(i.toJSON(),r)}else{var a=lle();n=xt(a,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:a.responseEnd,name:window.location.href,startTime:0},r)}t(n)})}function gDe(e,t,n){e.subscribe(8,function(i){var a=vDe(i,t,n);a&&e.notify(12,a)});var r=ule(t,{type:zt.RESOURCE,buffered:!0}).subscribe(function(i){for(var a=0,o=i;a=0?s:0,time:o.startTime,targetSelector:l})}}).unsubscribe;return{stop:i}}function ADe(e,t){var n=e.subscribe(0,function(r){for(var i=0,a=r;i=0&&o.responseStart<=gl()?o.responseStart:void 0})}}).unsubscribe;return{stop:n}}var CDe=10*oo;function NDe(e,t,n,r,i){var a=1/0,o=No(t,r,[He.POINTER_DOWN,He.KEY_DOWN],function(u){a=u.timeStamp},{capture:!0,once:!0}).stop,s=0,l=e.subscribe(0,function(u){var c=pCe(u,function(f){return f.entryType===zt.LARGEST_CONTENTFUL_PAINT&&f.startTimes});if(c){var d=void 0;c.element&&(d=ob(c.element,t.actionNameAttribute)),i({value:c.startTime,targetSelector:d}),s=c.size}}).unsubscribe;return{stop:function(){o(),l()}}}function IDe(e,t){t===void 0&&(t=window);var n,r;return document.visibilityState==="hidden"?n=0:(n=1/0,r=No(e,t,[He.PAGE_HIDE,He.VISIBILITY_CHANGE],function(i){(i.type===He.PAGE_HIDE||document.visibilityState==="hidden")&&(n=i.timeStamp,r())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){r==null||r()}}}function ODe(e,t,n,r){var i={},a=ADe(e,function(d){n(d.loadEvent),i.navigationTimings=d,r()}).stop,o=IDe(t),s=wDe(e,o,function(d){i.firstContentfulPaint=d,r()}).stop,l=NDe(e,t,o,window,function(d){i.largestContentfulPaint=d,r()}).stop,u=kDe(e,t,o,function(d){i.firstInput=d,r()}).stop;function c(){a(),s(),l(),u(),o.stop()}return{stop:c,initialViewMetrics:i}}function DDe(e,t,n,r){if(!FDe())return{stop:In};var i=0,a,o;r({value:0});var s=PDe(),l=t.subscribe(0,function(u){for(var c=0,d=u;ci){i=m;var g=a==null?void 0:a.deref();r({value:zw(i,4),targetSelector:g&&ob(g,e.actionNameAttribute),time:o})}}}}).unsubscribe;return{stop:l}}function xDe(e){var t;if(e)return(t=Wd(e,function(n){return!!n.node&&v1(n.node)}))===null||t===void 0?void 0:t.node}var MDe=5*Ea,RDe=Ea;function PDe(){var e=0,t,n,r=0;return{update:function(i){var a=t===void 0||i.startTime-n>=RDe||i.startTime-t>=MDe,o;return a?(t=n=i.startTime,r=e=i.value,o=!0):(e+=i.value,n=i.startTime,o=i.value>r,o&&(r=i.value)),{cumulatedValue:e,isMaxValue:o}}}}function FDe(){return k2(zt.LAYOUT_SHIFT)}var q_,xle=0,zI=1/0,qI=0;function LDe(){"interactionCount"in performance||q_||(q_=new window.PerformanceObserver(_t(function(e){e.getEntries().forEach(function(t){var n=t;n.interactionId&&(zI=Math.min(zI,n.interactionId),qI=Math.max(qI,n.interactionId),xle=(qI-zI)/7+1)})})),q_.observe({type:"event",buffered:!0,durationThreshold:0}))}var Rq=function(){return q_?xle:window.performance.interactionCount||0},Pq=10,BDe=1*oo;function $De(e,t,n,r){if(!VDe())return{getInteractionToNextPaint:function(){},setViewEnd:In,stop:In};var i=HDe(n),a=i.getViewInteractionCount,o=i.stopViewInteractionCount,s=1/0,l=UDe(a),u=-1,c,d,f=r.subscribe(0,function(p){for(var m=0,h=p;m=t&&g.startTime<=s&&l.process(g)}var v=l.estimateP98Interaction();v&&v.duration!==u&&(u=v.duration,d=ji(t,v.startTime),v.target&&v1(v.target)?c=ob(v.target,e.actionNameAttribute):c=void 0)}).unsubscribe;return{getInteractionToNextPaint:function(){if(u>=0)return{value:Math.min(u,BDe),targetSelector:c,time:d};if(a())return{value:0}},setViewEnd:function(p){s=p,o()},stop:f}}function UDe(e){var t=[];function n(){t.sort(function(r,i){return i.duration-r.duration}).splice(Pq)}return{process:function(r){var i=t.findIndex(function(o){return r.interactionId===o.interactionId}),a=t[t.length-1];i!==-1?r.duration>t[i].duration&&(t[i]=r,n()):(t.lengtha.duration)&&(t.push(r),n())},estimateP98Interaction:function(){var r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function HDe(e){LDe();var t=e==="initial_load"?0:Rq(),n={stopped:!1};function r(){return Rq()-t}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}function VDe(){return k2(zt.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function zDe(e,t,n,r,i,a){var o=r==="initial_load",s=!0,l=[];function u(){!s&&!o&&l.length>0&&a(Math.max.apply(Math,l))}var c=pL(e,t,n,function(d){s&&(s=!1,d.hadActivity&&l.push(ji(i.timeStamp,d.end)),u())}).stop;return{stop:c,setLoadEvent:function(d){o&&(o=!1,l.push(d),u())}}}function Mle(){var e,t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function vL(){var e,t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}var WI;function Rle(e){return WI||(WI=qDe(e)),WI}function qDe(e){return new On(function(t){var n=Ef(function(){t.notify(dC())},200).throttled;return Ln(e,window,He.RESIZE,n,{capture:!0,passive:!0}).stop})}function dC(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var WDe=Ea;function jDe(e,t,n,r){r===void 0&&(r=JDe(e));var i=0,a=0,o=0,s=r.subscribe(function(l){var u=l.scrollDepth,c=l.scrollTop,d=l.scrollHeight,f=!1;if(u>i&&(i=u,f=!0),d>a){a=d;var p=gl();o=ji(t.relative,p),f=!0}f&&n({maxDepth:Math.min(i,a),maxDepthScrollTop:c,maxScrollHeight:a,maxScrollHeightTime:o})});return{stop:function(){return s.unsubscribe()}}}function GDe(){var e=vL(),t=dC().height,n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function JDe(e,t){return t===void 0&&(t=WDe),new On(function(n){function r(){n.notify(GDe())}if(window.ResizeObserver){var i=Ef(r,t,{leading:!1,trailing:!0}),a=document.scrollingElement||document.documentElement,o=new ResizeObserver(_t(i.throttled));o.observe(a);var s=Ln(e,window,He.SCROLL,i.throttled,{passive:!0});return function(){i.cancel(),o.unobserve(a),s.stop()}}})}function YDe(e,t,n,r,i,a){var o={},s=zDe(e,t,n,i,a,function(g){o.loadingTime=g,r()}),l=s.stop,u=s.setLoadEvent,c=jDe(n,a,function(g){o.scroll=g}).stop,d=DDe(n,e,a.relative,function(g){o.cumulativeLayoutShift=g,r()}).stop,f=$De(n,a.relative,i,e),p=f.stop,m=f.getInteractionToNextPaint,h=f.setViewEnd;return{stop:function(){l(),d(),c()},stopINPTracking:p,setLoadEvent:u,setViewEnd:h,getCommonViewMetrics:function(){return o.interactionToNextPaint=m(),o}}}var KDe=3e3,QDe=5*oo,ZDe=5*oo;function XDe(e,t,n,r,i,a,o){var s=new Set,l=c("initial_load",mse(),o);d();var u;a&&(u=f(i));function c(p,m,h){var g=e9e(t,n,r,e,p,m,h);return s.add(g),g.stopObservable.subscribe(function(){s.delete(g)}),g}function d(){t.subscribe(10,function(){l=c("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),t.subscribe(9,function(){l.end({sessionIsActive:!1})}),t.subscribe(11,function(p){p.reason===Ch.UNLOADING&&l.end()})}function f(p){return p.subscribe(function(m){var h=m.oldLocation,g=m.newLocation;n9e(h,g)&&(l.end(),l=c("route_change"))})}return{addTiming:function(p,m){m===void 0&&(m=Di()),l.addTiming(p,m)},startView:function(p,m){l.end({endClocks:m}),l=c("route_change",m,p)},updateViewName:function(p){l.updateViewName(p)},stop:function(){u==null||u.unsubscribe(),l.end(),s.forEach(function(p){return p.stop()})}}}function e9e(e,t,n,r,i,a,o){a===void 0&&(a=ga());var s=wa(),l=new On,u={},c=0,d,f=_2(r),p=!0,m,h,g;o&&(m=o.name,h=o.service||void 0,g=o.version||void 0);var v={id:s,name:m,startClocks:a,service:h,version:g};e.notify(2,v),e.notify(3,v);var y=Ef(X,KDe,{leading:!1}),b=y.throttled,T=y.cancel,_=YDe(e,t,n,b,i,a),E=_.setLoadEvent,k=_.setViewEnd,A=_.stop,D=_.stopINPTracking,R=_.getCommonViewMetrics,B=i==="initial_load"?ODe(e,n,E,b):{stop:In,initialViewMetrics:{}},H=B.stop,L=B.initialViewMetrics,V=_De(e,s,b),U=V.stop,J=V.eventCounts,re=u1(X,QDe);X();function X(){T(),c+=1;var j=d===void 0?Di():d.timeStamp;e.notify(4,{customTimings:u,documentVersion:c,id:s,name:m,service:h,version:g,loadingType:i,location:f,startClocks:a,commonViewMetrics:R(),initialViewMetrics:L,duration:ji(a.timeStamp,j),isActive:d===void 0,sessionIsActive:p,eventCounts:J})}return{get name(){return m},service:h,version:g,stopObservable:l,end:function(j){var te=this,M,W;j===void 0&&(j={}),!d&&(d=(M=j.endClocks)!==null&&M!==void 0?M:ga(),p=(W=j.sessionIsActive)!==null&&W!==void 0?W:!0,e.notify(5,{endClocks:d}),e.notify(6,{endClocks:d}),oC(re),k(d.relative),A(),X(),Ai(function(){te.stop()},ZDe))},stop:function(){H(),U(),D(),l.notify()},addTiming:function(j,te){if(!d){var M=cCe(te)?te:ji(a.timeStamp,te);u[t9e(j)]=M,b()}},updateViewName:function(j){Gd(yl.UPDATE_VIEW_NAME)&&(m=j,X())}}}function t9e(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Jt.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(t)),t}function n9e(e,t){return e.pathname!==t.pathname||!r9e(t.hash)&&Fq(t.hash)!==Fq(e.hash)}function r9e(e){var t=e.substring(1);return t!==""&&!!document.getElementById(t)}function Fq(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function i9e(e,t,n,r,i,a,o,s,l){return e.subscribe(4,function(u){return e.notify(12,a9e(u,t,a,s,o))}),XDe(n,e,r,t,i,!t.trackViewsManually,l)}function a9e(e,t,n,r,i){var a,o,s,l,u,c,d,f,p,m,h,g,v,y,b,T,_=r.getReplayStats(e.id),E=n.findFeatureFlagEvaluations(e.startClocks.relative),k=i.findAll(e.startClocks.relative,e.duration),A={_dd:{document_version:e.documentVersion,replay_stats:_,page_states:k,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.value,cumulative_layout_shift_time:zn((o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.targetSelector,first_byte:zn((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.firstByte),dom_complete:zn((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:zn((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.domContentLoaded),dom_interactive:zn((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:zn(e.initialViewMetrics.firstContentfulPaint),first_input_delay:zn((f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:zn((p=e.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.time),first_input_target_selector:(m=e.initialViewMetrics.firstInput)===null||m===void 0?void 0:m.targetSelector,interaction_to_next_paint:zn((h=e.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.value),interaction_to_next_paint_time:zn((g=e.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.time),interaction_to_next_paint_target_selector:(v=e.commonViewMetrics.interactionToNextPaint)===null||v===void 0?void 0:v.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:zn((y=e.initialViewMetrics.largestContentfulPaint)===null||y===void 0?void 0:y.value),largest_contentful_paint_target_selector:(b=e.initialViewMetrics.largestContentfulPaint)===null||b===void 0?void 0:b.targetSelector,load_event:zn((T=e.initialViewMetrics.navigationTimings)===null||T===void 0?void 0:T.loadEvent),loading_time:ple(zn(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:zn(e.duration)},feature_flags:E&&!dp(E)?E:void 0,display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:zn(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:_?!0:void 0,is_active:e.sessionIsActive?void 0:!1},privacy:{replay_level:t.defaultPrivacyLevel}};return dp(e.customTimings)||(A.view.custom_timings=gCe(e.customTimings,zn)),{rawRumEvent:A,startTime:e.startClocks.relative,domainContext:{location:e.location}}}var o9e="rum";function s9e(e,t,n){var r=dIe(e,o9e,function(i){return u9e(e,i)},n);return r.expireObservable.subscribe(function(){t.notify(9)}),r.renewObservable.subscribe(function(){t.notify(10)}),r.sessionStateUpdateObservable.subscribe(function(i){var a=i.previousState,o=i.newState;if(!a.forcedReplay&&o.forcedReplay){var s=r.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:function(i){var a=r.findSession(i);if(!(!a||!Ple(a.trackingType)))return{id:a.id,sessionReplay:a.trackingType==="1"?1:a.isReplayForced?2:0}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:function(){return r.updateSessionState({forcedReplay:"1"})}}}function l9e(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Yse("records")?1:0};return{findTrackedSession:function(){return e},expire:In,expireObservable:new On,setForcedReplay:In}}function u9e(e,t){var n;return c9e(t)?n=t:R0(e.sessionSampleRate)?R0(e.sessionReplaySampleRate)?n="1":n="2":n="0",{trackingType:n,isTracked:Ple(n)}}function c9e(e){return e==="0"||e==="1"||e==="2"}function Ple(e){return e==="2"||e==="1"}function d9e(e,t,n,r,i,a,o){var s=e.replica,l=DIe(e,{endpoint:e.rumEndpointBuilder,encoder:o(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(u){return du(u,{application:{id:s.applicationId}})},encoder:o(3)},r,i,a);return t.subscribe(13,function(u){u.type==="view"?l.upsert(u,u.view.id):l.add(u)}),n.subscribe(function(u){return l.add(u,iIe(e))}),l}function f9e(e){var t=g1();e.subscribe(13,function(n){t.send("rum",n)})}var p9e=Vp;function m9e(e,t,n){var r=new h1(p9e),i;e.subscribe(2,function(s){var l=s.startClocks,u=n.href;r.add(o({url:u,referrer:i||document.referrer}),l.relative),i=u}),e.subscribe(6,function(s){var l=s.endClocks;r.closeActive(l.relative)});var a=t.subscribe(function(s){var l=s.newLocation,u=r.find();if(u){var c=gl();r.closeActive(c),r.add(o({url:l.href,referrer:u.referrer}),c)}});function o(s){var l=s.url,u=s.referrer;return{url:l,referrer:u}}return{findUrl:function(s){return r.find(s)},stop:function(){a.unsubscribe(),r.stop()}}}function h9e(e,t){var n=_2(t);return new On(function(r){var i=g9e(e,o).stop,a=v9e(e,o).stop;function o(){if(n.href!==t.href){var s=_2(t);r.notify({newLocation:s,oldLocation:n}),n=s}}return function(){i(),a()}})}function g9e(e,t){var n=Ja(history,"pushState",function(a){var o=a.onPostCall;o(t)}).stop,r=Ja(history,"replaceState",function(a){var o=a.onPostCall;o(t)}).stop,i=Ln(e,window,He.POP_STATE,t).stop;return{stop:function(){n(),r(),i()}}}function v9e(e,t){return Ln(e,window,He.HASH_CHANGE,t)}var y9e=Vp;function S9e(e,t){var n=new h1(y9e);return e.subscribe(2,function(r){var i=r.startClocks;n.add({},i.relative),t.resetCustomerData()}),e.subscribe(6,function(r){var i=r.endClocks;n.closeActive(i.relative)}),{findFeatureFlagEvaluations:function(r){return n.find(r)},addFeatureFlagEvaluation:function(r,i){var a=n.find();a&&(a[r]=i,t.updateCustomerData(a))},stop:function(){return t.stop()}}}var b9e=10*Ea,Gu,e0,A9;function T9e(e,t,n,r,i){var a=t.enabled&&R0(e.customerDataTelemetrySampleRate);a&&(Fle(),Lq(),n.subscribe(13,function(o){A9=!0,ev(e0.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),ev(e0.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),ev(e0.featureFlagBytes,vl(["view","error"],o.type)?r.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(o){var s=o.bytesCount,l=o.messagesCount;A9&&(Gu.batchCount+=1,ev(Gu.batchBytesCount,s),ev(Gu.batchMessagesCount,l),jI(Gu.globalContextBytes,e0.globalContextBytes),jI(Gu.userContextBytes,e0.userContextBytes),jI(Gu.featureFlagBytes,e0.featureFlagBytes),Lq())}),u1(_9e,b9e))}function _9e(){Gu.batchCount!==0&&(m1("Customer data measures",Gu),Fle())}function Yc(){return{min:1/0,max:0,sum:0}}function ev(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function jI(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function Fle(){Gu={batchCount:0,batchBytesCount:Yc(),batchMessagesCount:Yc(),globalContextBytes:Yc(),userContextBytes:Yc(),featureFlagBytes:Yc()}}function Lq(){A9=!1,e0={globalContextBytes:Yc(),userContextBytes:Yc(),featureFlagBytes:Yc()}}var E9e=4e3,w9e=500,k9e=Vp;function A9e(e,t){t===void 0&&(t=w9e);var n=new h1(k9e,E9e),r;a(Lle(),gl());var i=No(e,window,[He.PAGE_SHOW,He.FOCUS,He.BLUR,He.VISIBILITY_CHANGE,He.RESUME,He.FREEZE,He.PAGE_HIDE],function(s){a(C9e(s),s.timeStamp)},{capture:!0}).stop;function a(s,l){l===void 0&&(l=gl()),s!==r&&(r=s,n.closeActive(l),n.add({state:r,startTime:l},l))}var o={findAll:function(s,l){var u=n.findAll(s,l);if(u.length!==0){for(var c=[],d=Math.max(0,u.length-t),f=u.length-1;f>=d;f--){var p=u[f],m=ji(s,p.startTime);c.push({state:p.state,start:zn(m)})}return c}},wasInPageStateAt:function(s,l){return o.wasInPageStateDuringPeriod(s,l,0)},wasInPageStateDuringPeriod:function(s,l,u){return n.findAll(l,u).some(function(c){return c.state===s})},addPageState:a,stop:function(){i(),n.stop()}};return o}function C9e(e){return e.type===He.FREEZE?"frozen":e.type===He.PAGE_HIDE?e.persisted?"frozen":"terminated":Lle()}function Lle(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function N9e(e){var t=dC(),n=Rle(e).subscribe(function(r){t=r}).unsubscribe;return{get:function(){return{viewport:t}},stop:n}}function I9e(e,t){var n=window.cookieStore?O9e(e):x9e;return new On(function(r){return n(t,function(i){return r.notify(i)})})}function O9e(e){return function(t,n){var r=Ln(e,window.cookieStore,He.CHANGE,function(i){var a=Wd(i.changed,function(o){return o.name===t})||Wd(i.deleted,function(o){return o.name===t});a&&n(a.value)});return r.stop}}var D9e=Ea;function x9e(e,t){var n=w2(document.cookie,e),r=u1(function(){var i=w2(document.cookie,e);i!==n&&t(i)},D9e);return function(){oC(r)}}var Bq="datadog-ci-visibility-test-execution-id";function M9e(e,t){var n;t===void 0&&(t=I9e(e,Bq));var r=id(Bq)||((n=window.Cypress)===null||n===void 0?void 0:n.env("traceId")),i=t.subscribe(function(a){r=a});return{get:function(){if(typeof r=="string")return{test_execution_id:r}},stop:function(){return i.unsubscribe()}}}function R9e(e,t,n,r,i,a,o){var s=[],l=new eOe;l.subscribe(13,function(j){return sL("rum",j)});var u=P9e(e);u.setContextProvider(function(){var j,te;return{application:{id:e.applicationId},session:{id:(j=m.findTrackedSession())===null||j===void 0?void 0:j.id},view:{id:(te=T.findView())===null||te===void 0?void 0:te.id},action:{id:E.findActionId()}}});var c=function(j){l.notify(14,{error:j}),m1("Error reported to customer",{"error.message":j.message})},d=S9e(l,n.getOrCreateTracker(0)),f=NIe(e),p=f.subscribe(function(j){l.notify(11,j)});s.push(function(){return p.unsubscribe()});var m=pp()?l9e():s9e(e,l,o);if(pp())f9e(l);else{var h=d9e(e,l,u.observable,c,f,m.expireObservable,a);s.push(function(){return h.stop()}),T9e(e,u,l,n,h.flushObservable)}var g=I4e(),v=h9e(e,location),y=A9e(e),b=F9e(l,e,location,m,y,v,g,r,c),T=b.viewContexts,_=b.urlContexts,E=b.actionContexts,k=b.addAction,A=b.stop;s.push(A),rIe();var D=i9e(l,e,location,g,v,d,y,t,i),R=D.addTiming,B=D.startView,H=D.updateViewName,L=D.stop;s.push(L);var V=gDe(l,e,y).stop;s.push(V),sDe(l,e);var U=iDe(l,e,y,d).addError;rOe(l,e,m);var J=V4e(l,e).stop;s.push(J);var re=T4e(l,y),X=X4e(e.applicationId,m,T,E,_);return{addAction:k,addError:U,addTiming:R,addFeatureFlagEvaluation:d.addFeatureFlagEvaluation,startView:B,updateViewName:H,lifeCycle:l,viewContexts:T,session:m,stopSession:function(){return m.expire()},getInternalContext:X.get,startDurationVital:re.startDurationVital,addDurationVital:re.addDurationVital,stop:function(){s.forEach(function(j){return j()})}}}function P9e(e){var t=tIe("browser-rum-sdk",e);if(pp()){var n=g1();t.observable.subscribe(function(r){return n.send("internal_telemetry",r)})}return t}function F9e(e,t,n,r,i,a,o,s,l){var u=nOe(e),c=m9e(e,a,n),d=tDe(e,o,t,i),f=d.addAction,p=d.actionContexts,m=N9e(t),h=M9e(t);return K4e(t,e,r,u,c,p,m,h,s,l),{viewContexts:u,pageStateHistory:i,urlContexts:c,addAction:f,actionContexts:p,stop:function(){h.stop(),m.stop(),i.stop(),c.stop(),u.stop(),i.stop()}}}function L9e(e,t){var n=t.session,r=t.viewContext,i=t.errorType,a=n?n.id:"no-session-id",o=[];i!==void 0&&o.push("error-type=".concat(i)),r&&(o.push("seed=".concat(r.id)),o.push("from=".concat(r.startClocks.timeStamp)));var s=B9e(e),l="/rum/replay/sessions/".concat(a);return"".concat(s).concat(l,"?").concat(o.join("&"))}function B9e(e){var t=e.site,n=e.subdomain||$9e(e);return"https://".concat(n?"".concat(n,"."):"").concat(t)}function $9e(e){switch(e.site){case ad:case nNe:return"app";case Cse:return"dd";default:return}}var U9e=10,la;function H9e(e){return fC(e).segments_count}function V9e(e){fC(e).segments_count+=1}function z9e(e){fC(e).records_count+=1}function q9e(e,t){fC(e).segments_total_raw_size+=t}function W9e(e){return la==null?void 0:la.get(e)}function fC(e){la||(la=new Map);var t;return la.has(e)?t=la.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},la.set(e,t),la.size>U9e&&j9e()),t}function j9e(){if(la)if(la.keys)la.delete(la.keys().next().value);else{var e=!0;la.forEach(function(t,n){e&&(la.delete(n),e=!1)})}}var yL=new WeakMap;function ou(e){return yL.has(e)}function G9e(e){for(var t=e;t;){if(!ou(t)&&!mL(t))return!1;t=uC(t)}return!0}function ja(e){return yL.get(e)}function J9e(e,t){yL.set(e,t)}function SL(e,t){var n=e.tagName,r=e.value;if(cC(e,t)){var i=e.type;return n==="INPUT"&&(i==="button"||i==="submit"||i==="reset")?r:!r||n==="OPTION"?void 0:od}if(n==="OPTION"||n==="SELECT")return e.value;if(!(n!=="INPUT"&&n!=="TEXTAREA"))return r}var Y9e=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,K9e=/^[A-Za-z]+:|^\/\//,Q9e=/^data:.*,/i;function Z9e(e,t){return e.replace(Y9e,function(n,r,i,a,o,s){var l=i||o||s;if(!t||!l||K9e.test(l)||Q9e.test(l))return n;var u=r||a||"";return"url(".concat(u).concat(X9e(l,t)).concat(u,")")})}function X9e(e,t){try{return sC(e,t).href}catch{return e}}var e8e=/[^a-z1-6-_]/;function Ble(e){var t=e.toLowerCase().trim();return e8e.test(t)?"div":t}function $q(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}var ec={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},mp={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},ps={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Hs={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Uq={Play:0,Pause:1};function $le(e){if(!(e===void 0||e.length===0))return e.map(function(t){var n=t.cssRules||t.rules,r=Array.from(n,function(a){return a.cssText}),i={cssRules:r,disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0};return i})}function Ule(e,t,n,r){if(t===vt.HIDDEN)return null;var i=e.getAttribute(n);if(t===vt.MASK&&n!==hL&&!Ele.includes(n)&&n!==r.actionNameAttribute){var a=e.tagName;switch(n){case"title":case"alt":case"placeholder":return od}if(a==="IMG"&&(n==="src"||n==="srcset")){var o=e;if(o.naturalWidth>0)return $q(o.naturalWidth,o.naturalHeight);var s=e.getBoundingClientRect(),l=s.width,u=s.height;return l>0||u>0?$q(l,u):Tq}if(a==="SOURCE"&&(n==="src"||n==="srcset"))return Tq;if(a==="A"&&n==="href"||i&&nb(n,"data-")||a==="IFRAME"&&n==="srcdoc")return od}return!i||typeof i!="string"?i:ole(i)?sle(i):i}function t8e(e,t,n){var r;if(t===vt.HIDDEN)return{};for(var i={},a=Ble(e.tagName),o=e.ownerDocument,s=0;sHq||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>Hq}var v8e=function(e,t){var n=window.visualViewport,r={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};if(n)g8e(n)?(r.layoutViewportX=Math.round(e+n.offsetLeft),r.layoutViewportY=Math.round(t+n.offsetTop)):(r.visualViewportX=Math.round(e-n.offsetLeft),r.visualViewportY=Math.round(t-n.offsetTop));else return r;return r},y8e=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function nl(e,t){return{data:xt({source:e},t),type:ec.IncrementalSnapshot,timestamp:Di()}}var S8e=50;function b8e(e,t){var n=Ef(function(o){var s=sb(o);if(ou(s)){var l=zle(o);if(!l)return;var u={id:ja(s),timeOffset:0,x:l.x,y:l.y};t(nl(Vle(o)?ps.TouchMove:ps.MouseMove,{positions:[u]}))}},S8e,{trailing:!1}),r=n.throttled,i=n.cancel,a=No(e,document,[He.MOUSE_MOVE,He.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return{stop:function(){a(),i()}}}function zle(e){var t=Vle(e)?e.changedTouches[0]:e,n=t.clientX,r=t.clientY;if(window.visualViewport){var i=v8e(n,r),a=i.visualViewportX,o=i.visualViewportY;n=a,r=o}if(!Number.isFinite(n)||!Number.isFinite(r)){e.isTrusted&&m1("mouse/touch event without x/y");return}return{x:n,y:r}}var Rs,Vq=(Rs={},Rs[He.POINTER_UP]=Hs.MouseUp,Rs[He.MOUSE_DOWN]=Hs.MouseDown,Rs[He.CLICK]=Hs.Click,Rs[He.CONTEXT_MENU]=Hs.ContextMenu,Rs[He.DBL_CLICK]=Hs.DblClick,Rs[He.FOCUS]=Hs.Focus,Rs[He.BLUR]=Hs.Blur,Rs[He.TOUCH_START]=Hs.TouchStart,Rs[He.TOUCH_END]=Hs.TouchEnd,Rs);function T8e(e,t,n){var r=function(i){var a=sb(i);if(!(_u(a,e.defaultPrivacyLevel)===vt.HIDDEN||!ou(a))){var o=ja(a),s=Vq[i.type],l;if(s!==Hs.Blur&&s!==Hs.Focus){var u=zle(i);if(!u)return;l={id:o,type:s,x:u.x,y:u.y}}else l={id:o,type:s};var c=xt({id:n.getIdForEvent(i)},nl(ps.MouseInteraction,l));t(c)}};return No(e,document,Object.keys(Vq),r,{capture:!0,passive:!0})}var _8e=100;function qle(e,t,n,r){r===void 0&&(r=document);var i=Ef(function(l){var u=sb(l);if(!(!u||_u(u,e.defaultPrivacyLevel)===vt.HIDDEN||!ou(u))){var c=ja(u),d=u===document?{scrollTop:vL(),scrollLeft:Mle()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};n.set(u,d),t(nl(ps.Scroll,{id:c,x:d.scrollLeft,y:d.scrollTop}))}},_8e),a=i.throttled,o=i.cancel,s=Ln(e,r,He.SCROLL,a,{capture:!0,passive:!0}).stop;return{stop:function(){s(),o()}}}function zq(e,t){var n=Rle(e).subscribe(function(r){t(nl(ps.ViewportResize,r))});return{stop:function(){n.unsubscribe()}}}function E8e(e,t){return No(e,document,[He.PLAY,He.PAUSE],function(n){var r=sb(n);!r||_u(r,e.defaultPrivacyLevel)===vt.HIDDEN||!ou(r)||t(nl(ps.MediaInteraction,{id:ja(r),type:n.type===He.PLAY?Uq.Play:Uq.Pause}))},{capture:!0,passive:!0})}function w8e(e){function t(i,a){i&&ou(i.ownerNode)&&a(ja(i.ownerNode))}var n=[Ja(CSSStyleSheet.prototype,"insertRule",function(i){var a=i.target,o=i.parameters,s=o[0],l=o[1];t(a,function(u){return e(nl(ps.StyleSheetRule,{id:u,adds:[{rule:s,index:l}]}))})}),Ja(CSSStyleSheet.prototype,"deleteRule",function(i){var a=i.target,o=i.parameters[0];t(a,function(s){return e(nl(ps.StyleSheetRule,{id:s,removes:[{index:o}]}))})})];typeof CSSGroupingRule<"u"?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(i){n.push(Ja(i.prototype,"insertRule",function(a){var o=a.target,s=a.parameters,l=s[0],u=s[1];t(o.parentStyleSheet,function(c){var d=qq(o);d&&(d.push(u||0),e(nl(ps.StyleSheetRule,{id:c,adds:[{rule:l,index:d}]})))})}),Ja(i.prototype,"deleteRule",function(a){var o=a.target,s=a.parameters[0];t(o.parentStyleSheet,function(l){var u=qq(o);u&&(u.push(s),e(nl(ps.StyleSheetRule,{id:l,removes:[{index:u}]})))})}))}return{stop:function(){n.forEach(function(i){return i.stop()})}}}function qq(e){for(var t=[],n=e;n.parentRule;){var r=Array.from(n.parentRule.cssRules),i=r.indexOf(n);t.unshift(i),n=n.parentRule}if(n.parentStyleSheet){var a=Array.from(n.parentStyleSheet.cssRules),o=a.indexOf(n);return t.unshift(o),t}}function k8e(e,t){return No(e,window,[He.FOCUS,He.BLUR],function(){t({data:{has_focus:document.hasFocus()},type:ec.Focus,timestamp:Di()})})}function A8e(e,t,n){var r=e.subscribe(12,function(i){var a,o,s;i.rawRumEvent.type==="action"&&i.rawRumEvent.action.type==="click"&&(!((o=(a=i.rawRumEvent.action.frustration)===null||a===void 0?void 0:a.type)===null||o===void 0)&&o.length)&&"events"in i.domainContext&&(!((s=i.domainContext.events)===null||s===void 0)&&s.length)&&t({timestamp:i.rawRumEvent.date,type:ec.FrustrationRecord,data:{frustrationTypes:i.rawRumEvent.action.frustration.type,recordIds:i.domainContext.events.map(function(l){return n.getIdForEvent(l)})}})});return{stop:function(){r.unsubscribe()}}}function C8e(e,t){var n=e.subscribe(5,function(){t({timestamp:Di(),type:ec.ViewEnd})});return{stop:function(){n.unsubscribe()}}}function Wle(e,t,n){n===void 0&&(n=document);var r=e.defaultPrivacyLevel,i=new WeakMap,a=n!==document,o=No(e,n,a?[He.CHANGE]:[He.INPUT,He.CHANGE],function(d){var f=sb(d);(f instanceof HTMLInputElement||f instanceof HTMLTextAreaElement||f instanceof HTMLSelectElement)&&u(f)},{capture:!0,passive:!0}).stop,s;if(a)s=In;else{var l=[Q1(HTMLInputElement.prototype,"value",u),Q1(HTMLInputElement.prototype,"checked",u),Q1(HTMLSelectElement.prototype,"value",u),Q1(HTMLTextAreaElement.prototype,"value",u),Q1(HTMLSelectElement.prototype,"selectedIndex",u)];s=function(){l.forEach(function(d){return d.stop()})}}return{stop:function(){s(),o()}};function u(d){var f=_u(d,r);if(f!==vt.HIDDEN){var p=d.type,m;if(p==="radio"||p==="checkbox"){if(cC(d,f))return;m={isChecked:d.checked}}else{var h=SL(d,f);if(h===void 0)return;m={text:h}}c(d,m);var g=d.name;p==="radio"&&g&&d.checked&&mCe(document.querySelectorAll('input[type="radio"][name="'.concat(Jd(g),'"]')),function(v){v!==d&&c(v,{isChecked:!1})})}}function c(d,f){if(ou(d)){var p=i.get(d);(!p||p.text!==f.text||p.isChecked!==f.isChecked)&&(i.set(d,f),t(nl(ps.Input,xt({id:ja(d)},f))))}}}var N8e=100,I8e=16;function O8e(e){var t=In,n=[];function r(){t(),e(n),n=[]}var i=Ef(r,I8e,{leading:!1}),a=i.throttled,o=i.cancel;return{addMutations:function(s){n.length===0&&(t=D8e(a,{timeout:N8e})),n.push.apply(n,s)},flush:r,stop:function(){t(),o()}}}function D8e(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(_t(e),t);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(_t(e));return function(){return window.cancelAnimationFrame(r)}}function jle(e,t,n,r){var i=rle();if(!i)return{stop:In,flush:In};var a=O8e(function(s){x8e(s.concat(o.takeRecords()),e,t,n)}),o=new i(_t(a.addMutations));return o.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),a.stop()},flush:function(){a.flush()}}}function x8e(e,t,n,r){var i=new Map;e.filter(function(f){return f.type==="childList"}).forEach(function(f){f.removedNodes.forEach(function(p){Gle(p,r.removeShadowRoot)})});var a=e.filter(function(f){return f.target.isConnected&&G9e(f.target)&&_u(f.target,n.defaultPrivacyLevel,i)!==vt.HIDDEN}),o=M8e(a.filter(function(f){return f.type==="childList"}),n,r,i),s=o.adds,l=o.removes,u=o.hasBeenSerialized,c=R8e(a.filter(function(f){return f.type==="characterData"&&!u(f.target)}),n,i),d=P8e(a.filter(function(f){return f.type==="attributes"&&!u(f.target)}),n,i);!c.length&&!d.length&&!l.length&&!s.length||t(nl(ps.Mutation,{adds:s,removes:l,texts:c,attributes:d}))}function M8e(e,t,n,r){for(var i=new Set,a=new Map,o=function(E){E.addedNodes.forEach(function(k){i.add(k)}),E.removedNodes.forEach(function(k){i.has(k)||a.set(k,E.target),i.delete(k)})},s=0,l=e;sJle&&s("segment_bytes_limit")})}},stop:function(){s("stop"),a(),o()}}}function G8e(e,t,n){var r=t.findTrackedSession(),i=n.findView();if(!(!r||!i))return{application:{id:e},session:{id:r.id},view:{id:i.id}}}function J8e(e){var t=g1();return{addRecord:function(n){var r=e.findView();t.send("record",n,r.id)}}}function Y8e(e,t,n,r,i,a){var o=[],s=function(f){e.notify(14,{error:f}),m1("Error reported to customer",{"error.message":f.message})},l=a||Jse(t,t.sessionReplayEndpointBuilder,Jle,s),u;if(pp())u=J8e(r).addRecord;else{var c=W8e(e,t,n,r,l,i);u=c.addRecord,o.push(c.stop)}var d=H8e({emit:u,configuration:t,lifeCycle:e,viewContexts:r}).stop;return o.push(d),{stop:function(){o.forEach(function(f){return f()})}}}function Yle(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function K8e(e,t,n,r){var i=t.findTrackedSession(),a=Q8e(i,r),o=n.findView();return L9e(e,{viewContext:o,errorType:a,session:i})}function Q8e(e,t){if(!Yle())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function Kle(e,t,n){var r=0,i=[],a,o=0,s=[],l=Ln(e,t,"message",function(d){var f=d.data;if(!(f.type!=="wrote"||f.streamId!==n)){r+=f.additionalBytesCount,i.push(f.result),a=f.trailer;var p=s.shift();p&&p.id===f.id?p.writeCallback?p.writeCallback(f.result.byteLength):p.finishCallback&&p.finishCallback():(l(),m1("Worker responses received out of order."))}}).stop;function u(){var d=i.length===0?new Uint8Array(0):fCe(i.concat(a)),f={rawBytesCount:r,output:d,outputBytesCount:d.byteLength,encoding:"deflate"};return r=0,i=[],f}function c(){o>0&&(t.postMessage({action:"reset",streamId:n}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write:function(d,f){t.postMessage({action:"write",id:o,data:d,streamId:n}),s.push({id:o,writeCallback:f,data:d}),o+=1},finish:function(d){c(),s.length?(s.forEach(function(f){delete f.writeCallback}),s[s.length-1].finishCallback=function(){return d(u())}):d(u())},finishSync:function(){c();var d=s.map(function(f){return delete f.writeCallback,delete f.finishCallback,f.data}).join("");return xt(u(),{pendingData:d})},estimateEncodedBytesCount:function(d){return d.length/8},stop:function(){l()}}}var Z8e=10*Ea;function Qle(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;l>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&is){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var wr={status:0};function Zle(e,t,n,r){switch(r===void 0&&(r=Qle),wr.status===0&&X8e(e,t,r),wr.status){case 1:return wr.initializationFailureCallbacks.push(n),wr.worker;case 3:return wr.worker}}function Wq(){return wr.status}function X8e(e,t,n){n===void 0&&(n=Qle);try{var r=n(e),i=Ln(e,r,"error",function(s){GI(e,t,s)}).stop,a=Ln(e,r,"message",function(s){var l=s.data;l.type==="errored"?GI(e,t,l.error,l.streamId):l.type==="initialized"&&txe(l.version)}).stop;r.postMessage({action:"init"}),Ai(function(){return exe(t)},Z8e);var o=function(){i(),a()};wr={status:1,worker:r,stop:o,initializationFailureCallbacks:[]}}catch(s){GI(e,t,s)}}function exe(e){wr.status===1&&(Jt.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),wr.initializationFailureCallbacks.forEach(function(t){return t()}),wr={status:2})}function txe(e){wr.status===1&&(wr={status:3,worker:wr.worker,stop:wr.stop,version:e})}function GI(e,t,n,r){if(wr.status===1||wr.status===0){if(Jt.error("".concat(t," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&nxe(n.message)){var i=void 0;e.workerUrl?i="Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):i="Please make sure CSP is correctly configured.",Jt.error("".concat(i," See documentation at ").concat(eb,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Jw(n);wr.status===1&&wr.initializationFailureCallbacks.forEach(function(a){return a()}),wr={status:2}}else Jw(n,{worker_version:wr.status===3&&wr.version,stream_id:r})}function nxe(e){return vl(e,"Content Security Policy")||vl(e,"requires 'TrustedScriptURL'")}function rxe(e,t){if(pp()&&!Yse("records")||!Yle())return{start:In,stop:In,getReplayStats:function(){},onRumStart:In,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}},a=In;return{start:function(o){return r(o)},stop:function(){return i()},getSessionReplayLink:function(){return a()},onRumStart:function(o,s,l,u,c){s.startSessionReplayRecordingManually&&(n={status:0}),o.subscribe(9,function(){(n.status===2||n.status===3)&&(i(),n={status:1})}),o.subscribe(11,function(p){p.reason===Ch.UNLOADING&&i()}),o.subscribe(10,function(){n.status===1&&r()});var d;function f(){return d||(c||(c=Zle(s,"Datadog Session Replay",function(){i()},t)),c&&(d=Kle(s,c,1))),d}r=function(p){var m=l.findTrackedSession();if(!m||m.sessionReplay===0&&!(p!=null&&p.force)){n={status:1};return}n.status===2||n.status===3||(n={status:2},uL(s,"interactive",function(){if(n.status===2){var h=f();if(!h){n={status:0};return}var g=e(o,s,l,u,h).stop;n={status:3,stopRecording:g}}}),p!=null&&p.force&&m.sessionReplay===0&&l.setForcedReplay())},i=function(){n.status!==0&&(n.status===3&&n.stopRecording(),n={status:0})},a=function(){return K8e(s,l,u,n.status!==0)},n.status===1&&r()},isRecording:function(){return Wq()===3&&n.status===3},getReplayStats:function(o){return Wq()===3?W9e(o):void 0}}}var ixe=rxe(Y8e),ug=C4e(R9e,ixe,{startDeflateWorker:Zle,createDeflateEncoder:Kle});WNe(_f(),"DD_RUM",ug);var axe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.wnd,r=n===void 0?window:n;(function(i,a,o,s,l,u,c,d){var f=function(h){return h in i?(i.console&&i.console.log&&i.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'),!1):!0}(o);if(!f)return;function p(m){var h=[],g;function v(){g&&(h.forEach(function(T){var _;try{_=T[g[0]]&&T[g[0]](g[1])}catch(E){T[3]&&T[3](E);return}_&&_.then?_.then(T[2],T[3]):T[2]&&T[2](_)}),h.length=0)}function y(T){return function(_){g||(g=[T,_],v())}}m(y(0),y(1));function b(T,_){return p(function(E,k){h.push([T,_,E,k]),v()})}return{then:b}}c=i[o]=function(){var h=function(y,b,T,_){_=_||2;function E(D,R){g(y,b,T,D,R,_)}var k=/Async$/;if(k.test(y))return y=y.replace(k,""),typeof Promise=="function"?new Promise(E):p(E);var A;return g(y,b,T,A,A,_)};function g(v,y,b,T,_,E){return h._api?h._api(v,y,b,T,_,E):(h.q&&h.q.push([v,y,b,T,_,E]),null)}return h.q=[],h}(),d=function(){return function(h){function g(b){typeof b[4]=="function"&&b[4](new Error(h))}var v=c.q;if(v){for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:{},n=t.shouldInsertScript,r=n===void 0?!0:n,i=t.globalVar,a=i===void 0?"window":i,o=t.apiVersion,s=o===void 0?"1.3.0":o;return`(function(m,n,e,t,l,o,g,y){ if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;} g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];`.concat(r?` o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script; y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);`:"",` g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)}; g.anonymize=function(){g.identify(!!0)}; g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)}; g.log = function(a,b){g("log",[a,b])}; g.consent=function(a){g("consent",!arguments.length||a)}; g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)}; g.clearUserCookie=function(){}; g.setVars=function(n, p){g('setVars',[n,p]);}; g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y]; if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)}; g._v="`).concat(s,`"; })(`).concat(a,",").concat(oxe(a),",").concat(a,"['_fs_namespace'],'script','user');")},lxe=function(t){var n=t.orgId,r=t.namespace,i=r===void 0?"FS":r,a=t.host,o=a===void 0?"fullstory.com":a,s=t.script,l=s===void 0?"edge.fullstory.com/s/fs.js":s;if(!n)throw new Error("FullStory orgId is a required parameter");window._fs_host=o,window._fs_script=l,window._fs_org=n,window._fs_namespace=i,axe()};sxe();var N9=function(){return N9=Object.assign||function(t){for(var n,r=1,i=arguments.length;r element)");return}n.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),n.appHost&&(window._fs_app_host=n.appHost),n.assetMapId&&(window._fs_asset_map_id=n.assetMapId),n.startCaptureManually&&(window._fs_capture_on_startup=!1),n.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),n.cookieDomain&&(window._fs_cookie_domain=n.cookieDomain),n.debug===!0&&(n.script?console.warn("Ignoring `debug = true` because `script` is set"):n.script="edge.fullstory.com/s/fs-debug.js"),lxe(n);var r=Yw();if(!r){console.warn("Failed to initialize FS snippet");return}if(t&&r("observe",{type:"start",callback:t}),n.devMode===!0){var i="FullStory was initialized in devMode and will stop recording";r("trackEvent",{name:"FullStory Dev Mode",properties:{message:i}}),r("shutdown"),window._fs_dev_mode=!0,console.warn(i)}},cxe=function(e){return function(t,n){if(window._fs_initialized){e&&console.warn(e);return}uxe(t,n),window._fs_initialized=!0}},dxe=cxe("FullStory init has already been called once, additional invocations are ignored"),fxe=function(){for(var e=[],t=0;te.includes(t))?!0:Math.random()<=.1}function yxe(){Y3e("full_story_session_url",eue("getSession",{format:"url.now"}))}function Sxe(){Gq&&jq&&Jq&&(ug.init({clientToken:Gq,applicationId:jq,version:"22a3be054271ef665005577d88fa2e795f4e7d7d".toString(),env:Jq,service:"frontend-non-user",allowedTracingUrls:["https://app.ashbyhq.com","https://jobs.ashbyhq.com","https://you.ashbyhq.com","https://app.ashbystg.com","https://jobs.ashbystg.com","https://you.ashbystg.com"],trackResources:!0,trackLongTasks:!0,trackUserInteractions:!0,defaultPrivacyLevel:"allow",startSessionReplayRecordingManually:!0,sessionReplaySampleRate:100}),ug.startSessionReplayRecording())}var I9=function(e,t){return I9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},I9(e,t)};function Eu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");I9(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var le=function(){return le=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Txe(){for(var e=[],t=0;t=Exe){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=AT("debug"),e.log=AT("log"),e.warn=AT("warn"),e.error=AT("error")})(xe||(xe={}));function Ju(e){try{return e()}catch{}}const Kq=Ju(function(){return globalThis})||Ju(function(){return window})||Ju(function(){return self})||Ju(function(){return global})||Ju(function(){return Ju.constructor("return this")()});var Qq="__",Zq=[Qq,Qq].join("DEV");function wxe(){try{return!!__DEV__}catch{return Object.defineProperty(Kq,Zq,{value:Ju(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),Kq[Zq]}}const YI=wxe();function Uc(e){try{return e()}catch{}}var O9=Uc(function(){return globalThis})||Uc(function(){return window})||Uc(function(){return self})||Uc(function(){return global})||Uc(function(){return Uc.constructor("return this")()}),D9=!1;function kxe(){O9&&!Uc(function(){return"production"})&&!Uc(function(){return process})&&(Object.defineProperty(O9,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),D9=!0)}kxe();function Xq(){D9&&(delete O9.process,D9=!1)}function W_(e,t){if(!!!e)throw new Error(t)}const nue={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Axe=new Set(Object.keys(nue));function eW(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&Axe.has(t)}var tW;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(tW||(tW={}));var x9;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(x9||(x9={}));function nW(e){return e===9||e===32}function Cxe(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(p=>p.length===0||nW(p.charCodeAt(0))),o=n.endsWith('\\"""'),s=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=s||l,c=!(t!=null&&t.minimize)&&(!i||e.length>70||u||a||o);let d="";const f=i&&nW(e.charCodeAt(0));return(c&&!f||a)&&(d+=` `),d+=n,(c||u)&&(d+=` `),'"""'+d+'"""'}const Nxe=10,rue=2;function iue(e){return pC(e,[])}function pC(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ixe(e,t);default:return String(e)}}function Ixe(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(Oxe(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:pC(r,n)}else if(Array.isArray(e))return xxe(e,n);return Dxe(e,n)}function Oxe(e){return typeof e.toJSON=="function"}function Dxe(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>rue?"["+Mxe(e)+"]":"{ "+n.map(([i,a])=>i+": "+pC(a,t)).join(", ")+" }"}function xxe(e,t){if(e.length===0)return"[]";if(t.length>rue)return"[Array]";const n=Math.min(Nxe,e.length),r=e.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Mxe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}class Rxe{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||W_(!1,`Body must be a string. Received: ${iue(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||W_(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||W_(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Pxe(e){return`"${e.replace(Fxe,Lxe)}"`}const Fxe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Lxe(e){return Bxe[e.charCodeAt(0)]}const Bxe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],aue=Object.freeze({});function wu(e,t,n=nue){const r=new Map;for(const v of Object.values(x9))r.set(v,$xe(t,v));let i,a=Array.isArray(e),o=[e],s=-1,l=[],u=e,c,d;const f=[],p=[];do{s++;const v=s===o.length,y=v&&l.length!==0;if(v){if(c=p.length===0?void 0:f[f.length-1],u=d,d=p.pop(),y)if(a){u=u.slice();let T=0;for(const[_,E]of l){const k=_-T;E===null?(u.splice(k,1),T++):u[k]=E}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,_]of l)u[T]=_}s=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(d){if(c=a?s:o[s],u=d[c],u==null)continue;f.push(c)}let b;if(!Array.isArray(u)){var m,h;eW(u)||W_(!1,`Invalid AST Node: ${iue(u)}.`);const T=v?(m=r.get(u.kind))===null||m===void 0?void 0:m.leave:(h=r.get(u.kind))===null||h===void 0?void 0:h.enter;if(b=T==null?void 0:T.call(t,u,c,d,f,p),b===aue)break;if(b===!1){if(!v){f.pop();continue}}else if(b!==void 0&&(l.push([c,b]),!v))if(eW(b))u=b;else{f.pop();continue}}if(b===void 0&&y&&l.push([c,u]),v)f.pop();else{var g;i={inArray:a,index:s,keys:o,edits:l,prev:i},a=Array.isArray(u),o=a?u:(g=n[u.kind])!==null&&g!==void 0?g:[],s=-1,l=[],d&&p.push(d),d=u}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function $xe(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Uxe(e){return wu(e,Vxe)}const Hxe=80,Vxe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ke(e.definitions,` `)},OperationDefinition:{leave(e){const t=Ht("(",Ke(e.variableDefinitions,", "),")"),n=Ke([e.operation,Ke([e.name,t]),Ke(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ht(" = ",n)+Ht(" ",Ke(r," "))},SelectionSet:{leave:({selections:e})=>Ps(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=Ht("",e,": ")+t;let o=a+Ht("(",Ke(n,", "),")");return o.length>Hxe&&(o=a+Ht(`( `,j_(Ke(n,` `)),` )`)),Ke([o,Ke(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ht(" ",Ke(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ke(["...",Ht("on ",e),Ke(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ht("(",Ke(n,", "),")")} on ${t} ${Ht("",Ke(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Cxe(e):Pxe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ke(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ke(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ht("(",Ke(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ht("",e,` `)+Ke(["schema",Ke(t," "),Ps(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ht("",e,` `)+Ke(["scalar",t,Ke(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ht("",e,` `)+Ke(["type",t,Ht("implements ",Ke(n," & ")),Ke(r," "),Ps(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ht("",e,` `)+t+(rW(n)?Ht(`( `,j_(Ke(n,` `)),` )`):Ht("(",Ke(n,", "),")"))+": "+r+Ht(" ",Ke(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ht("",e,` `)+Ke([t+": "+n,Ht("= ",r),Ke(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ht("",e,` `)+Ke(["interface",t,Ht("implements ",Ke(n," & ")),Ke(r," "),Ps(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ht("",e,` `)+Ke(["union",t,Ke(n," "),Ht("= ",Ke(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ht("",e,` `)+Ke(["enum",t,Ke(n," "),Ps(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ht("",e,` `)+Ke([t,Ke(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ht("",e,` `)+Ke(["input",t,Ke(n," "),Ps(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ht("",e,` `)+"directive @"+t+(rW(n)?Ht(`( `,j_(Ke(n,` `)),` )`):Ht("(",Ke(n,", "),")"))+(r?" repeatable":"")+" on "+Ke(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ke(["extend schema",Ke(e," "),Ps(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ke(["extend scalar",e,Ke(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend type",e,Ht("implements ",Ke(t," & ")),Ke(n," "),Ps(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend interface",e,Ht("implements ",Ke(t," & ")),Ke(n," "),Ps(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ke(["extend union",e,Ke(t," "),Ht("= ",Ke(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ke(["extend enum",e,Ke(t," "),Ps(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ke(["extend input",e,Ke(t," "),Ps(n)]," ")}};function Ke(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Ps(e){return Ht(`{ `,j_(Ke(e,` `)),` }`)}function Ht(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function j_(e){return Ht(" ",e.replace(/\n/g,` `))}function rW(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` `)))!==null&&t!==void 0?t:!1}function zxe(){return Xq()}function qxe(){__DEV__?xe(typeof YI=="boolean",YI):xe(typeof YI=="boolean",36)}zxe();qxe();function mC(e,t){var n=e.directives;return!n||!n.length?!0:Jxe(n).every(function(r){var i=r.directive,a=r.ifArgument,o=!1;return a.value.kind==="Variable"?(o=t&&t[a.value.name.value],__DEV__?xe(o!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):xe(o!==void 0,37)):o=a.value.value,i.name.value==="skip"?!o:o})}function Wxe(e){var t=[];return wu(e,{Directive:function(n){t.push(n.name.value)}}),t}function M9(e,t){return Wxe(t).some(function(n){return e.indexOf(n)>-1})}function jxe(e){return e&&M9(["client"],e)&&M9(["export"],e)}function Gxe(e){var t=e.name.value;return t==="skip"||t==="include"}function Jxe(e){var t=[];return e&&e.length&&e.forEach(function(n){if(Gxe(n)){var r=n.arguments,i=n.name.value;__DEV__?xe(r&&r.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):xe(r&&r.length===1,38);var a=r[0];__DEV__?xe(a.name&&a.name.value==="if","Invalid argument for the @".concat(i," directive.")):xe(a.name&&a.name.value==="if",39);var o=a.value;__DEV__?xe(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):xe(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),40),t.push({directive:n,ifArgument:a})}}),t}function Yxe(e,t){var n=t,r=[];e.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw __DEV__?new Rn("Found a ".concat(a.operation," operation").concat(a.name?" named '".concat(a.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Rn(41);a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(__DEV__?xe(r.length===1,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):xe(r.length===1,42),n=r[0].name.value);var i=le(le({},e),{definitions:Kw([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function hC(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function _L(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=t&&t[e.name.value];return __DEV__?xe(n,"No fragment named ".concat(e.name.value,".")):xe(n,43),n}default:return null}}function Tr(e){return e!==null&&typeof e=="object"}function Nh(e){return{__ref:String(e)}}function Tn(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function Kxe(e){return Tr(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Qxe(e){return e.kind==="StringValue"}function Zxe(e){return e.kind==="BooleanValue"}function Xxe(e){return e.kind==="IntValue"}function eMe(e){return e.kind==="FloatValue"}function tMe(e){return e.kind==="Variable"}function nMe(e){return e.kind==="ObjectValue"}function rMe(e){return e.kind==="ListValue"}function iMe(e){return e.kind==="EnumValue"}function aMe(e){return e.kind==="NullValue"}function cg(e,t,n,r){if(Xxe(n)||eMe(n))e[t.value]=Number(n.value);else if(Zxe(n)||Qxe(n))e[t.value]=n.value;else if(nMe(n)){var i={};n.fields.map(function(o){return cg(i,o.name,o.value,r)}),e[t.value]=i}else if(tMe(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(rMe(n))e[t.value]=n.values.map(function(o){var s={};return cg(s,t,o,r),s[t.value]});else if(iMe(n))e[t.value]=n.value;else if(aMe(n))e[t.value]=null;else throw __DEV__?new Rn('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Rn(52)}function oMe(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,s=a.value;return cg(n[i.name.value],o,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var a=i.name,o=i.value;return cg(r,a,o,t)})),EL(e.name.value,r,n)}var sMe=["connection","include","skip","client","rest","export"],EL=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(s){i[s]=t[s]}),"".concat(n.connection.key,"(").concat(tv(i),")")}else return n.connection.key;var a=e;if(t){var o=tv(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(s){sMe.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?a+="@".concat(s,"(").concat(tv(n[s]),")"):a+="@".concat(s))}),a},{setStringify:function(e){var t=tv;return tv=e,t}}),tv=function(t){return JSON.stringify(t,lMe)};function lMe(e,t){return Tr(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function gC(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,a=r.value;return cg(n,i,a,t)}),n}return null}function hp(e){return e.alias?e.alias.value:e.name.value}function R9(e,t,n){if(typeof e.__typename=="string")return e.__typename;for(var r=0,i=t.selections;r1)for(var r=new ub,i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bMe(e,t){if(e){if(typeof e=="string")return lW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lW(e,t)}}function lW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,s=!1,l=arguments[1],u=l;return new a(function(c){return i.subscribe({next:function(d){var f=!s;if(s=!0,!f||o)try{u=r(u,d)}catch(p){return c.error(p)}else u=d},error:function(d){c.error(d)},complete:function(){if(!s&&!o)return c.error(new TypeError("Cannot reduce an empty sequence"));c.next(u),c.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o=0&&s.splice(f,1),u()}});s.push(d)},error:function(c){o.error(c)},complete:function(){u()}});function u(){l.closed&&s.length===0&&o.complete()}return function(){s.forEach(function(c){return c.unsubscribe()}),l.unsubscribe()}})},t[P9]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var a=Qw(r,P9);if(a){var o=a.call(r);if(Object(o)!==o)throw new TypeError(o+" is not an object");return _Me(o)&&o.constructor===i?o:new i(function(s){return o.subscribe(s)})}if(OL("iterator")&&(a=Qw(r,TMe),a))return new i(function(s){G_(function(){if(!s.closed){for(var l=SMe(a.call(r)),u;!(u=l()).done;){var c=u.value;if(s.next(c),s.closed)return}s.complete()}})});if(Array.isArray(r))return new i(function(s){G_(function(){if(!s.closed){for(var l=0;l0}function J_(e){return e.errors&&e.errors.length>0||!1}function xL(){for(var e=[],t=0;t")}function F0(e,t){return xL(e,t,t.variables&&{variables:le(le({},e.variables),t.variables)})}function mW(e){return new qn(function(t){t.error(e)})}var hW=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function xMe(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n=300&&hW(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!vW.call(n,"data")&&!vW.call(n,"errors")&&hW(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var U9=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new Rn("Network request failed. ".concat(t," is not serializable: ").concat(i.message)):new Rn(21);throw r.parseError=i,r}return n},BMe={includeQuery:!0,includeExtensions:!1},$Me={accept:"*/*","content-type":"application/json"},UMe={method:"POST"},HMe={http:BMe,headers:$Me,options:UMe},VMe=function(e,t){return t(e)};function zMe(e,t){for(var n=[],r=2;r"u")throw __DEV__?new Rn(` "fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example: import fetch from 'cross-fetch'; import { ApolloClient, HttpLink } from '@apollo/client'; const client = new ApolloClient({ link: new HttpLink({ uri: '/graphql', fetch }) }); `):new Rn(20)},jMe=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},GMe=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function JMe(e,t){var n=[],r=function(d,f){n.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=U9(t.variables,"Variables map")}catch(d){return{parseError:d}}r("variables",i)}if(t.extensions){var a=void 0;try{a=U9(t.extensions,"Extensions map")}catch(d){return{parseError:d}}r("extensions",a)}var o="",s=e,l=e.indexOf("#");l!==-1&&(o=e.substr(l),s=e.substr(0,l));var u=s.indexOf("?")===-1?"?":"&",c=s+u+n.join("&")+o;return{newURI:c}}var yW=Ju(function(){return fetch}),YMe=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,a=i===void 0?VMe:i,o=e.includeExtensions,s=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,c=Yd(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&WMe(r||yW);var d={http:{includeExtensions:o},options:c.fetchOptions,credentials:c.credentials,headers:c.headers};return new cb(function(f){var p=GMe(f,n),m=f.getContext(),h={};if(m.clientAwareness){var g=m.clientAwareness,v=g.name,y=g.version;v&&(h["apollographql-client-name"]=v),y&&(h["apollographql-client-version"]=y)}var b=le(le({},h),m.headers),T={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:b},_=zMe(f,a,HMe,d,T),E=_.options,k=_.body;if(k.variables&&!u){var A=new Set(Object.keys(k.variables));wu(f.query,{Variable:function(re,X,j){j&&j.kind!=="VariableDefinition"&&A.delete(re.name.value)}}),A.size&&(k.variables=le({},k.variables),A.forEach(function(re){delete k.variables[re]}))}var D;if(!E.signal){var R=jMe(),B=R.controller,H=R.signal;D=B,D&&(E.signal=H)}var L=function(re){return re.kind==="OperationDefinition"&&re.operation==="mutation"};if(s&&!f.query.definitions.some(L)&&(E.method="GET"),E.method==="GET"){var V=JMe(p,k),U=V.newURI,J=V.parseError;if(J)return mW(J);p=U}else try{E.body=U9(k,"Payload")}catch(re){return mW(re)}return new qn(function(re){var X=r||Ju(function(){return fetch})||yW;return X(p,E).then(function(j){return f.setContext({response:j}),j}).then(LMe(f)).then(function(j){return re.next(j),re.complete(),j}).catch(function(j){j.name!=="AbortError"&&(j.result&&j.result.errors&&j.result.data&&re.next(j.result),re.error(j))}),function(){D&&D.abort()}})})},yue=function(e){Eu(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,YMe(n).request)||this;return r.options=n,r}return t}(cb),Sue=Object.prototype,SW=Sue.toString,KMe=Sue.hasOwnProperty,bW=Function.prototype.toString,H9=new Map;function tr(e,t){try{return V9(e,t)}finally{H9.clear()}}function V9(e,t){if(e===t)return!0;var n=SW.call(e),r=SW.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(_W(e,t))return!0;var i=TW(e),a=TW(t),o=i.length;if(o!==a.length)return!1;for(var s=0;s=0&&e.indexOf(t,n)===n}function _W(e,t){var n=H9.get(e);if(n){if(n.has(t))return!0}else H9.set(e,n=new Set);return n.add(t),!1}var eRe=function(){return Object.create(null)},bue=Array.prototype,tRe=bue.forEach,nRe=bue.slice,db=function(){function e(t,n){t===void 0&&(t=!0),n===void 0&&(n=eRe),this.weakness=t,this.makeData=n}return e.prototype.lookup=function(){for(var t=[],n=0;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(t){var n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1},e}(),bC=new SC,e4,lRe=Object.prototype.hasOwnProperty,ML=(e4=Array.from,e4===void 0?function(e){var t=[];return e.forEach(function(n){return t.push(n)}),t}:e4);function Zw(e){var t=e.unsubscribe;typeof t=="function"&&(e.unsubscribe=void 0,t())}var I2=[],uRe=100;function fg(e,t){if(!e)throw new Error(t||"assertion failure")}function cRe(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Tue(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function dRe(e){return e.slice(0)}var fRe=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(this.value.length===1&&!Kd(this))return wW(this),this.value[0]},e.prototype.recompute=function(t){return fg(!this.recomputing,"already recomputing"),wW(this),Kd(this)?pRe(this,t):Tue(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,_ue(this),Zw(this))},e.prototype.dispose=function(){var t=this;this.setDirty(),Cue(this),RL(this,function(n,r){n.setDirty(),Nue(n,t)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=I2.pop()||new Set),this.deps.add(t)},e.prototype.forgetDeps=function(){var t=this;this.deps&&(ML(this.deps).forEach(function(n){return n.delete(t)}),this.deps.clear(),I2.push(this.deps),this.deps=null)},e.count=0,e}();function wW(e){var t=bC.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Kd(e)?wue(t,e):kue(t,e),t}function pRe(e,t){return Cue(e),bC.withValue(e,mRe,[e,t]),gRe(e,t)&&hRe(e),Tue(e.value)}function mRe(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Kd(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function hRe(e){e.dirty=!1,!Kd(e)&&Eue(e)}function _ue(e){RL(e,wue)}function Eue(e){RL(e,kue)}function RL(e,t){var n=e.parents.size;if(n)for(var r=ML(e.parents),i=0;i0&&e.childValues.forEach(function(t,n){Nue(e,n)}),e.forgetDeps(),fg(e.dirtyChildren===null)}function Nue(e,t){t.parents.delete(e),e.childValues.delete(t),Aue(e,t)}function gRe(e,t){if(typeof e.subscribe=="function")try{Zw(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var vRe={setDirty:!0,dispose:!0,forget:!0};function Iue(e){var t=new Map,n=e&&e.subscribe;function r(i){var a=bC.getValue();if(a){var o=t.get(i);o||t.set(i,o=new Set),a.dependOn(o),typeof n=="function"&&(Zw(o),o.unsubscribe=n(i))}}return r.dirty=function(a,o){var s=t.get(a);if(s){var l=o&&lRe.call(vRe,o)?o:"setDirty";ML(s).forEach(function(u){return u[l]()}),t.delete(a),Zw(s)}},r}function Oue(){var e=new db(typeof WeakMap=="function");return function(){return e.lookupArray(arguments)}}Oue();var t4=new Set;function Xw(e,t){t===void 0&&(t=Object.create(null));var n=new sRe(t.max||Math.pow(2,16),function(u){return u.dispose()}),r=t.keyArgs,i=t.makeCacheKey||Oue(),a=function(){var u=i.apply(null,r?r.apply(null,arguments):arguments);if(u===void 0)return e.apply(null,arguments);var c=n.get(u);c||(n.set(u,c=new fRe(e)),c.subscribe=t.subscribe,c.forget=function(){return n.delete(u)});var d=c.recompute(Array.prototype.slice.call(arguments));return n.set(u,c),t4.add(n),bC.hasValue()||(t4.forEach(function(f){return f.clean()}),t4.clear()),d};Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1});function o(u){var c=n.get(u);c&&c.setDirty()}a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))};function s(u){var c=n.get(u);if(c)return c.peek()}a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))};function l(u){return n.delete(u)}return a.forgetKey=l,a.forget=function(){return l(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var yRe=function(){function e(){this.getFragmentDoc=Xw(Yxe)}return e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.transformForLink=function(t){return t},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(le(le({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(le(le({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=Yd(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,a=t.fragmentName,o=Yd(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),a=n(i);return a==null?i:(r.writeQuery(le(le({},t),{data:a})),a)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),a=n(i);return a==null?i:(r.writeFragment(le(le({},t),{data:a})),a)}})},e}(),Due=function(){function e(t,n,r,i){this.message=t,this.path=n,this.query=r,this.variables=i}return e}(),ti=Object.prototype.hasOwnProperty;function xue(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=r!==void 0?{id:r}:i!==void 0?{_id:i}:void 0),r===void 0&&(r=i),r!==void 0))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var Mue={dataIdFromObject:xue,addTypename:!0,resultCaching:!0,canonizeResults:!1};function SRe(e){return xL(Mue,e)}function Rue(e){var t=e.canonizeResults;return t===void 0?Mue.canonizeResults:t}function bRe(e,t){return Tn(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Pue=/^[_a-z][_0-9a-z]*/i;function Qd(e){var t=e.match(Pue);return t?t[0]:e}function z9(e,t,n){return Tr(t)?Ar(t)?t.every(function(r){return z9(e,r,n)}):e.selections.every(function(r){if(pc(r)&&mC(r,n)){var i=hp(r);return ti.call(t,i)&&(!r.selectionSet||z9(r.selectionSet,t[i],n))}return!0}):!1}function Qm(e){return Tr(e)&&!Tn(e)&&!Ar(e)}function TRe(){return new ub}var Ar=function(e){return Array.isArray(e)},Y_=Object.create(null),n4=function(){return Y_},kW=Object.create(null),O2=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return N2(Tn(i)?r.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return Tn(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return Nh(i);if(Tn(i))return i;var o=r.policies.identify(i)[0];if(o){var s=Nh(o);return a&&r.merge(o,i),s}}}return e.prototype.toObject=function(){return le({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),ti.call(this.data,t)){var r=this.data[t];if(r&&ti.call(r,n))return r[n]}if(n==="__typename"&&ti.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Mc)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),ti.call(this.data,t))return this.data[t];if(this instanceof Mc)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;Tn(t)&&(t=t.__ref),Tn(n)&&(n=n.__ref);var a=typeof t=="string"?this.lookup(i=t):t,o=typeof n=="string"?this.lookup(i=n):n;if(o){__DEV__?xe(typeof i=="string","store.merge expects a string ID"):xe(typeof i=="string",1);var s=new ub(ERe).merge(a,o);if(this.data[i]=s,s!==a&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(o).forEach(function(u){if(!a||a[u]!==s[u]){l[u]=1;var c=Qd(u);c!==u&&!r.policies.hasKeyArgs(s.__typename,c)&&(l[c]=1),s[u]===void 0&&!(r instanceof Mc)&&delete s[u]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var a=Object.create(null),o=!1,s=!0,l={DELETE:Y_,INVALIDATE:kW,isReference:Tn,toReference:this.toReference,canRead:this.canRead,readField:function(u,c){return r.policies.readField(typeof u=="string"?{fieldName:u,from:c||Nh(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var c=Qd(u),d=i[u];if(d!==void 0){var f=typeof n=="function"?n:n[u]||n[c];if(f){var p=f===n4?Y_:f(N2(d),le(le({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(t,u)}));p===kW?r.group.dirty(t,u):(p===Y_&&(p=void 0),p!==d&&(a[u]=p,o=!0,d=p))}d!==void 0&&(s=!1)}}),o)return this.merge(t,a),s&&(this instanceof Mc?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,a=this.lookup(t);if(a){var o=this.getFieldValue(a,"__typename"),s=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(t,s?(i={},i[s]=n4,i):n4)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(ti.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Mc&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){ti.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(a){t&&ti.call(t,a)||n.delete(a)}),t){var r=t.__META,i=Yd(t,["__META"]);Object.keys(i).forEach(function(a){n.merge(a,i[a])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Mc?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(o){ti.call(r,o)&&(Object.keys(t.findChildRefIds(o)).forEach(n.add,n),delete r[o])});var i=Object.keys(r);if(i.length){for(var a=this;a instanceof Mc;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},e.prototype.findChildRefIds=function(t){if(!ti.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(a){Tn(a)&&(n[a.__ref]=!0),Tr(a)&&Object.keys(a).forEach(function(o){var s=a[o];Tr(s)&&i.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Fue=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Iue():null,this.keyMaker=new db(Af)},e.prototype.depend=function(t,n){if(this.d){this.d(r4(t,n));var r=Qd(n);r!==n&&this.d(r4(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(r4(t,n),n==="__exists"?"forget":"setDirty")},e}();function r4(e,t){return t+"#"+e}function AW(e,t){Ny(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){Eu(r,n);function r(i){var a=i.policies,o=i.resultCaching,s=o===void 0?!0:o,l=i.seed,u=n.call(this,a,new Fue(s))||this;return u.stump=new _Re(u),u.storageTrie=new db(Af),l&&u.replace(l),u}return r.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(O2||(O2={}));var Mc=function(e){Eu(t,e);function t(n,r,i,a){var o=e.call(this,r.policies,a)||this;return o.id=n,o.parent=r,o.replay=i,o.group=a,i(o),o}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=r.data[a],s=i.lookup(a);s?o?o!==s&&Object.keys(o).forEach(function(l){tr(o[l],s[l])||r.group.dirty(a,l)}):(r.group.dirty(a,"__exists"),Object.keys(s).forEach(function(l){r.group.dirty(a,l)})):r.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return le(le({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return ti.call(this.data,n)?le(le({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(O2),_Re=function(e){Eu(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Fue(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Mc);function ERe(e,t,n){var r=e[n],i=t[n];return tr(r,i)?r:i}function Ny(e){return!!(e instanceof O2&&e.group.caching)}function wRe(e){return Tr(e)?Ar(e)?e.slice(0):le({__proto__:Object.getPrototypeOf(e)},e):e}var q9=function(){function e(){this.known=new(OMe?WeakSet:Set),this.pool=new db(Af),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return Tr(t)&&this.known.has(t)},e.prototype.pass=function(t){if(Tr(t)){var n=wRe(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(Tr(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var a=t.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),__DEV__&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),l=[s],u=this.sortedKeys(t);l.push(u.json);var c=l.length;u.sorted.forEach(function(p){l.push(n.admit(t[p]))});var o=this.pool.lookupArray(l);if(!o.object){var d=o.object=Object.create(s);this.known.add(d),u.sorted.forEach(function(p,m){d[p]=l[c+m]}),__DEV__&&Object.freeze(d)}return o.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}(),L0=Object.assign(function(e){if(Tr(e)){W9===void 0&&CW();var t=W9.admit(e),n=j9.get(t);return n===void 0&&j9.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:CW}),W9,j9;function CW(){W9=new q9,j9=new(Af?WeakMap:Map)}function NW(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var kRe=function(){function e(t){var n=this;this.knownResults=new(Af?WeakMap:Map),this.config=xL(t,{addTypename:t.addTypename!==!1,canonizeResults:Rue(t)}),this.canon=t.canon||new q9,this.executeSelectionSet=Xw(function(r){var i,a=r.context.canonizeResults,o=NW(r);o[3]=!a;var s=(i=n.executeSelectionSet).peek.apply(i,o);return s?a?le(le({},s),{result:n.canon.admit(s.result)}):s:(AW(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:NW,makeCacheKey:function(r,i,a,o){if(Ny(a.store))return a.store.makeCacheKey(r,Tn(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=Xw(function(r){return AW(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,a=r.array,o=r.context;if(Ny(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return e.prototype.resetCanon=function(){this.canon=new q9},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,a=i===void 0?"ROOT_QUERY":i,o=t.variables,s=t.returnPartialData,l=s===void 0?!0:s,u=t.canonizeResults,c=u===void 0?this.config.canonizeResults:u,d=this.config.cache.policies;o=le(le({},kL(sue(r))),o);var f=Nh(a),p=new ub,m=this.executeSelectionSet({selectionSet:wL(r).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:n,query:r,policies:d,variables:o,varString:L0(o),canonizeResults:c,fragmentMap:hC(yC(r)),merge:function(g,v){return p.merge(g,v)}}}),h;if(m.missing&&(h=[new Due(ARe(m.missing),m.missing,r,o)],!l))throw h[0];return{result:m.result,complete:!h,missing:h}},e.prototype.isFresh=function(t,n,r,i){if(Ny(i.store)&&this.knownResults.get(t)===r){var a=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,a=t.enclosingRef,o=t.context;if(Tn(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,l=o.policies,u=o.store,c=u.getFieldValue(i,"__typename"),d={},f;this.config.addTypename&&typeof c=="string"&&!l.rootIdsByTypename[c]&&(d={__typename:c});function p(v,y){var b;return v.missing&&(f=o.merge(f,(b={},b[y]=v.missing,b))),v.result}var m=new Set(r.selections);m.forEach(function(v){var y,b;if(mC(v,s))if(pc(v)){var T=l.readField({fieldName:v.name.value,field:v,variables:o.variables,from:i},o),_=hp(v);T===void 0?CL.added(v)||(f=o.merge(f,(y={},y[_]="Can't find field '".concat(v.name.value,"' on ").concat(Tn(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),y))):Ar(T)?T=p(n.executeSubSelectedArray({field:v,array:T,enclosingRef:a,context:o}),_):v.selectionSet?T!=null&&(T=p(n.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:T,enclosingRef:Tn(T)?T:a,context:o}),_)):o.canonizeResults&&(T=n.canon.pass(T)),T!==void 0&&(d=o.merge(d,(b={},b[_]=T,b)))}else{var E=_L(v,o.fragmentMap);E&&l.fragmentMatches(E,c)&&E.selectionSet.selections.forEach(m.add,m)}});var h={result:d,missing:f},g=o.canonizeResults?this.canon.admit(h):N2(h);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,a=t.enclosingRef,o=t.context,s;function l(u,c){var d;return u.missing&&(s=o.merge(s,(d={},d[c]=u.missing,d))),u.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(u,c){return u===null?null:Ar(u)?l(n.executeSubSelectedArray({field:r,array:u,enclosingRef:a,context:o}),c):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:Tn(u)?u:a,context:o}),c):(__DEV__&&CRe(o.store,r,u),u)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:s}},e}();function ARe(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function CRe(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){Tr(i)&&(__DEV__?xe(!Tn(i),"Missing selection set for object of type ".concat(bRe(e,i)," returned for query field ").concat(t.name.value)):xe(!Tn(i),5),Object.values(i).forEach(r.add,r))})}}var PL=new SC,IW=new WeakMap;function Iy(e){var t=IW.get(e);return t||IW.set(e,t={vars:new Set,dep:Iue()}),t}function OW(e){Iy(e).vars.forEach(function(t){return t.forgetCache(e)})}function NRe(e){Iy(e).vars.forEach(function(t){return t.attachCache(e)})}function IRe(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(l){Iy(l).dep.dirty(r),ORe(l)});var o=Array.from(n);n.clear(),o.forEach(function(l){return l(e)})}}else{var s=PL.getValue();s&&(i(s),Iy(s).dep(r))}return e};r.onNextChange=function(a){return n.add(a),function(){n.delete(a)}};var i=r.attachCache=function(a){return t.add(a),Iy(a).vars.add(r),r};return r.forgetCache=function(a){return t.delete(a)},r}function ORe(e){e.broadcastWatches&&e.broadcastWatches()}var DW=Object.create(null);function FL(e){var t=JSON.stringify(e);return DW[t]||(DW[t]=Object.create(null))}function xW(e){var t=FL(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(o,s){return r.readField(s,o)},a=r.keyObject=LL(e,function(o){var s=Ih(r.storeObject,o,i);return s===void 0&&n!==r.storeObject&&ti.call(n,o[0])&&(s=Ih(n,o,Bue)),__DEV__?xe(s!==void 0,"Missing field '".concat(o.join("."),"' while extracting keyFields from ").concat(JSON.stringify(n))):xe(s!==void 0,2),s});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function MW(e){var t=FL(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,a=r.variables,o=r.fieldName,s=LL(e,function(u){var c=u[0],d=c.charAt(0);if(d==="@"){if(i&&mc(i.directives)){var f=c.slice(1),p=i.directives.find(function(v){return v.name.value===f}),m=p&&gC(p,a);return m&&Ih(m,u.slice(1))}return}if(d==="$"){var h=c.slice(1);if(a&&ti.call(a,h)){var g=u.slice(0);return g[0]=h,Ih(a,g)}return}if(n)return Ih(n,u)}),l=JSON.stringify(s);return(n||l!=="{}")&&(o+=":"+l),o})}function LL(e,t){var n=new ub;return Lue(e).reduce(function(r,i){var a,o=t(i);if(o!==void 0){for(var s=i.length-1;s>=0;--s)o=(a={},a[i[s]]=o,a);r=n.merge(r,o)}return r},Object.create(null))}function Lue(e){var t=FL(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,a){Ar(i)?(Lue(i).forEach(function(o){return n.push(r.concat(o))}),r.length=0):(r.push(i),Ar(e[a+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Bue(e,t){return e[t]}function Ih(e,t,n){return n=n||Bue,$ue(t.reduce(function r(i,a){return Ar(i)?i.map(function(o){return r(o,a)}):i&&n(i,a)},e))}function $ue(e){return Tr(e)?Ar(e)?e.map($ue):LL(Object.keys(e).sort(),function(t){return Ih(e,t)}):e}EL.setStringify(L0);function G9(e){return e.args!==void 0?e.args:e.field?gC(e.field,e.variables):null}var DRe=function(){},RW=function(e,t){return t.fieldName},PW=function(e,t,n){var r=n.mergeObjects;return r(e,t)},FW=function(e,t){return t},xRe=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=le({dataIdFromObject:xue},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,a=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o=n&&n.storeObject||t,s=le(le({},n),{typename:a,storeObject:o,readField:n&&n.readField||function(){var f=BL(arguments,o);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),l,u=a&&this.getTypePolicy(a),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(t,s);if(Ar(d))c=xW(d);else{l=d;break}}return l=l?String(l):void 0,s.keyObject?[l,s.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],a=i.queryType,o=i.mutationType,s=i.subscriptionType,l=Yd(i,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",r),o&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),ti.call(n.toBeAdded,r)?n.toBeAdded[r].push(l):n.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),a=n.keyFields,o=n.fields;function s(l,u){l.merge=typeof u=="function"?u:u===!0?PW:u===!1?FW:l.merge}s(i,n.merge),i.keyFn=a===!1?DRe:Ar(a)?xW(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(l){var u=r.getFieldPolicy(t,l,!0),c=o[l];if(typeof c=="function")u.read=c;else{var d=c.keyArgs,f=c.read,p=c.merge;u.keyFn=d===!1?RW:Ar(d)?MW(d):typeof d=="function"?d:u.keyFn,typeof f=="function"&&(u.read=f),s(u,p)}u.read&&u.merge&&(u.keyFn=u.keyFn||RW)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(__DEV__?xe(!i||i===t,"Cannot change root ".concat(t," __typename more than once")):xe(!i||i===t,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var a=i.match(Pue);(!a||a[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!ti.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);i&&i.size&&i.forEach(function(o){var s=n.getTypePolicy(o),l=s.fields,u=Yd(s,["fields"]);Object.assign(r,u),Object.assign(r.fields,l)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(o){n.updateTypePolicy(t,o)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var o=t.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(n,!0),l=[s],u=function(m){var h=a.getSupertypeSet(m,!1);h&&h.size&&l.indexOf(h)<0&&l.push(h)},c=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f1?i:t}:(o=le({},r),ti.call(o,"from")||(o.from=t)),__DEV__&&o.from===void 0&&__DEV__&&xe.warn("Undefined 'from' passed to readField with arguments ".concat(DMe(Array.from(e)))),o.variables===void 0&&(o.variables=n),o}function Uue(e){return function(n,r){if(Ar(n)||Ar(r))throw __DEV__?new Rn("Cannot automatically merge arrays"):new Rn(4);if(Tr(n)&&Tr(r)){var i=e.getFieldValue(n,"__typename"),a=e.getFieldValue(r,"__typename"),o=i&&a&&i!==a;if(o)return r;if(Tn(n)&&Qm(r))return e.merge(n.__ref,r),n;if(Qm(n)&&Tn(r))return e.merge(n,r.__ref),r;if(Qm(n)&&Qm(r))return le(le({},n),r)}return r}}function i4(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:le(le({},e),{clientOnly:t,deferred:n})),i}var MRe=function(){function e(t,n){this.cache=t,this.reader=n}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,a=n.result,o=n.dataId,s=n.variables,l=n.overwrite,u=lb(i),c=TRe();s=le(le({},kL(u)),s);var d={store:t,written:Object.create(null),merge:function(p,m){return c.merge(p,m)},variables:s,varString:L0(s),fragmentMap:hC(yC(i)),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:d});if(!Tn(f))throw __DEV__?new Rn("Could not identify object ".concat(JSON.stringify(a))):new Rn(6);return d.incomingById.forEach(function(p,m){var h=p.storeObject,g=p.mergeTree,v=p.fieldNodeSet,y=Nh(m);if(g&&g.map.size){var b=r.applyMerges(g,y,h,d);if(Tn(b))return;h=b}if(__DEV__&&!d.overwrite){var T=Object.create(null);v.forEach(function(k){k.selectionSet&&(T[k.name.value]=!0)});var _=function(k){return T[Qd(k)]===!0},E=function(k){var A=g&&g.map.get(k);return!!(A&&A.info&&A.info.merge)};Object.keys(h).forEach(function(k){_(k)&&!E(k)&&RRe(y,h,k,d.store)})}t.merge(m,h)}),t.retain(f.__ref),f},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,a=t.selectionSet,o=t.context,s=t.mergeTree,l=this.cache.policies,u=Object.create(null),c=r&&l.rootTypenamesById[r]||R9(i,a,o.fragmentMap)||r&&o.store.get(r,"__typename");typeof c=="string"&&(u.__typename=c);var d=function(){var b=BL(arguments,u,o.variables);if(Tn(b.from)){var T=o.incomingById.get(b.from.__ref);if(T){var _=l.readField(le(le({},b),{from:T.storeObject}),o);if(_!==void 0)return _}}return l.readField(b,o)},f=new Set;this.flattenFields(a,i,o,c).forEach(function(b,T){var _,E=hp(T),k=i[E];if(f.add(T),k!==void 0){var A=l.getStoreFieldName({typename:c,fieldName:T.name.value,field:T,variables:b.variables}),D=BW(s,A),R=n.processFieldValue(k,T,T.selectionSet?i4(b,!1,!1):b,D),B=void 0;T.selectionSet&&(Tn(R)||Qm(R))&&(B=d("__typename",R));var H=l.getMergeFunction(c,T.name.value,B);H?D.info={field:T,typename:c,merge:H}:$W(s,A),u=b.merge(u,(_={},_[A]=R,_))}else __DEV__&&!b.clientOnly&&!b.deferred&&!CL.added(T)&&!l.getReadFunction(c,T.name.value)&&__DEV__&&xe.error("Missing field '".concat(hp(T),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var p=l.identify(i,{typename:c,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:u,readField:d}),m=p[0],h=p[1];r=r||m,h&&(u=o.merge(u,h))}catch(b){if(!r)throw b}if(typeof r=="string"){var g=Nh(r),v=o.written[r]||(o.written[r]=[]);if(v.indexOf(a)>=0||(v.push(a),this.reader&&this.reader.isFresh(i,g,a,o)))return g;var y=o.incomingById.get(r);return y?(y.storeObject=o.merge(y.storeObject,u),y.mergeTree=J9(y.mergeTree,s),f.forEach(function(b){return y.fieldNodeSet.add(b)})):o.incomingById.set(r,{storeObject:u,mergeTree:ek(s)?void 0:s,fieldNodeSet:f}),g}return u},e.prototype.processFieldValue=function(t,n,r,i){var a=this;return!n.selectionSet||t===null?__DEV__?hue(t):t:Ar(t)?t.map(function(o,s){var l=a.processFieldValue(o,n,r,BW(i,s));return $W(i,s),l}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=R9(n,t,r.fragmentMap));var a=new Map,o=this.cache.policies,s=new db(!1);return function l(u,c){var d=s.lookup(u,c.clientOnly,c.deferred);d.visited||(d.visited=!0,u.selections.forEach(function(f){if(mC(f,r.variables)){var p=c.clientOnly,m=c.deferred;if(!(p&&m)&&mc(f.directives)&&f.directives.forEach(function(v){var y=v.name.value;if(y==="client"&&(p=!0),y==="defer"){var b=gC(v,r.variables);(!b||b.if!==!1)&&(m=!0)}}),pc(f)){var h=a.get(f);h&&(p=p&&h.clientOnly,m=m&&h.deferred),a.set(f,i4(r,p,m))}else{var g=_L(f,r.fragmentMap);g&&o.fragmentMatches(g,i,n,r.variables)&&l(g.selectionSet,i4(r,p,m))}}}))}(t,r),a},e.prototype.applyMerges=function(t,n,r,i,a){var o,s=this;if(t.map.size&&!Tn(r)){var l=!Ar(r)&&(Tn(n)||Qm(n))?n:void 0,u=r;l&&!a&&(a=[Tn(l)?l.__ref:l]);var c,d=function(f,p){return Ar(f)?typeof p=="number"?f[p]:void 0:i.store.getFieldValue(f,String(p))};t.map.forEach(function(f,p){var m=d(l,p),h=d(u,p);if(h!==void 0){a&&a.push(p);var g=s.applyMerges(f,m,h,i,a);g!==h&&(c=c||new Map,c.set(p,g)),a&&xe(a.pop()===p)}}),c&&(r=Ar(u)?u.slice(0):le({},u),c.forEach(function(f,p){r[p]=f}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,a&&(o=i.store).getStorage.apply(o,a)):r},e}(),Hue=[];function BW(e,t){var n=e.map;return n.has(t)||n.set(t,Hue.pop()||{map:new Map}),n.get(t)}function J9(e,t){if(e===t||!t||ek(t))return e;if(!e||ek(e))return t;var n=e.info&&t.info?le(le({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,a={info:n,map:i};if(r){var o=new Set(t.map.keys());e.map.forEach(function(s,l){a.map.set(l,J9(s,t.map.get(l))),o.delete(l)}),o.forEach(function(s){a.map.set(s,J9(t.map.get(s),e.map.get(s)))})}return a}function ek(e){return!e||!(e.info||e.map.size)}function $W(e,t){var n=e.map,r=n.get(t);r&&ek(r)&&(Hue.push(r),n.delete(t))}var UW=new Set;function RRe(e,t,n,r){var i=function(d){var f=r.getFieldValue(d,n);return typeof f=="object"&&f},a=i(e);if(a){var o=i(t);if(o&&!Tn(a)&&!tr(a,o)&&!Object.keys(a).every(function(d){return r.getFieldValue(o,d)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Qd(n),u="".concat(s,".").concat(l);if(!UW.has(u)){UW.add(u);var c=[];!Ar(a)&&!Ar(o)&&[a,o].forEach(function(d){var f=r.getFieldValue(d,"__typename");typeof f=="string"&&!c.includes(f)&&c.push(f)}),__DEV__&&xe.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s,` object. To address this problem (which is not a bug in Apollo Client), `).concat(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u,` field, so InMemoryCache can safely merge these objects: existing: `).concat(JSON.stringify(a).slice(0,1e3),` incoming: `).concat(JSON.stringify(o).slice(0,1e3),` For more information about these options, please refer to the documentation: * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects `))}}}}var PRe=function(e){Eu(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=IRe,r.txCount=0,r.config=SRe(n),r.addTypename=!!r.config.addTypename,r.policies=new xRe({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new O2.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader;this.storeWriter=new MRe(this,this.storeReader=new kRe({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Rue(this.config),canon:n?void 0:i&&i.canon})),this.maybeBroadcastWatch=Xw(function(a,o){return r.broadcastWatch(a,o)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var o=a.optimistic?r.optimisticData:r.data;if(Ny(o)){var s=a.optimistic,l=a.rootId,u=a.variables;return o.makeCacheKey(a.query,a.callback,L0({optimistic:s,rootId:l,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(le(le({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof Due)return null;throw a}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(ti.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(le(le({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||NRe(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&OW(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){L0.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(Tn(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){__DEV__&&xe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(ti.call(n,"id"))return!1;n=le(le({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),L0.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),OW(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,a=n.optimistic,o=a===void 0?!0:a,s=n.removeOptimistic,l=n.onWatchUpdated,u,c=function(f){var p=r,m=p.data,h=p.optimisticData;++r.txCount,f&&(r.data=r.optimisticData=f);try{return u=i(r)}finally{--r.txCount,r.data=m,r.optimisticData=h}},d=new Set;return l&&!this.txCount&&this.broadcastWatches(le(le({},n),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,c):o===!1?c(this.data):c(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&d.size?(this.broadcastWatches(le(le({},n),{onWatchUpdated:function(f,p){var m=l.call(this,f,p);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return r.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){if(this.addTypename){var r=this.typenameDocumentCache.get(n);return r||(r=CL(n),this.typenameDocumentCache.set(n,r),this.typenameDocumentCache.set(r,r)),r}return n},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,a=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,i)===!1)||(!i||!tr(i.result,a.result))&&n.callback(n.lastDiff=a,i)},t}(yRe);function FRe(e){return e.hasOwnProperty("graphQLErrors")}var LRe=function(e){var t="";if(mc(e.graphQLErrors)||mc(e.clientErrors)){var n=(e.graphQLErrors||[]).concat(e.clientErrors||[]);n.forEach(function(r){var i=r?r.message:"Error message not found.";t+="".concat(i,` `)})}return e.networkError&&(t+="".concat(e.networkError.message,` `)),t=t.replace(/\n$/,""),t},es=function(e){Eu(t,e);function t(n){var r=n.graphQLErrors,i=n.clientErrors,a=n.networkError,o=n.errorMessage,s=n.extraInfo,l=e.call(this,o)||this;return l.graphQLErrors=r||[],l.clientErrors=i||[],l.networkError=a||null,l.message=o||LRe(l),l.extraInfo=s,l.__proto__=t.prototype,l}return t}(Error),on;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(on||(on={}));function D2(e){return e?e<7:!1}var BRe=Object.assign,$Re=Object.hasOwnProperty,Y9=function(e){Eu(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=e.call(this,function(l){try{var u=l._subscription._observer;u&&!u.error&&(u.error=URe)}catch{}var c=!o.observers.size;o.observers.add(l);var d=o.last;return d&&d.error?l.error&&l.error(d.error):d&&d.result&&l.next&&l.next(d.result),c&&o.reobserve().catch(function(){}),function(){o.observers.delete(l)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=i,o.queryManager=r,o.isTornDown=!1,o.options=le({initialFetchPolicy:a.fetchPolicy||"cache-first"},a),o.queryId=i.queryId||r.generateQueryId();var s=lb(o.query);return o.queryName=s&&s.name&&s.name.value,o}return Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,i){var a={next:function(s){r(s),n.observers.delete(a),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=n.subscribe(a)})},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||on.ready,a=le(le({},r),{loading:D2(i),networkStatus:i}),o=this.options.fetchPolicy,s=o===void 0?"cache-first":o;if(!(s==="network-only"||s==="no-cache"||s==="standby"||this.queryManager.transform(this.options.query).hasForcedResolvers)){var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(a.data=l.result),tr(a.data,{})&&(a.data=void 0),l.complete?(delete a.partial,l.complete&&a.networkStatus===on.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=on.ready,a.loading=!1)):a.partial=!0,__DEV__&&!l.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&zue(l.missing)}return n&&this.updateLastResult(a),a},t.prototype.isDifferentFromLastResult=function(n){return!this.last||!tr(this.last.result,n)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||tr(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="cache-and-network"?i.fetchPolicy=a:a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",__DEV__&&n&&$Re.call(n,"variables")){var o=sue(this.query),s=o.variableDefinitions;(!s||!s.some(function(l){return l.variable.name.value==="variables"}))&&__DEV__&&xe.warn("Called refetch(".concat(JSON.stringify(n),") for query ").concat(((r=o.name)===null||r===void 0?void 0:r.value)||JSON.stringify(o),`, which does not declare a $variables variable. Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return n&&!tr(this.options.variables,n)&&(i.variables=this.options.variables=le(le({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,on.refetch)},t.prototype.fetchMore=function(n){var r=this,i=le(le({},n.query?n:le(le(le(le({},this.options),{query:this.query}),n),{variables:le(le({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"}),a=this.queryManager.generateQueryId(),o=this.queryInfo,s=o.networkStatus;o.networkStatus=on.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set;return this.queryManager.fetchQuery(a,i,on.fetchMore).then(function(u){return r.queryManager.removeQuery(a),o.networkStatus===on.fetchMore&&(o.networkStatus=s),r.queryManager.cache.batch({update:function(c){var d=n.updateQuery;d?c.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:u.data,variables:i.variables})}):c.writeQuery({query:i.query,variables:i.variables,data:u.data})},onWatchUpdated:function(c){l.add(c.query)}}),u}).finally(function(){l.has(r.query)||Vue(r)})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(a){var o=n.updateQuery;o&&r.updateQuery(function(s,l){var u=l.variables;return o(s,{subscriptionData:a,variables:u})})},error:function(a){if(n.onError){n.onError(a);return}__DEV__&&xe.error("Unhandled GraphQL subscription error",a)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.setVariables=function(n){return tr(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},on.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,a=n(i,{variables:this.variables});a&&(r.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,a=i===void 0?"cache-first":i,o=r.initialFetchPolicy,s=o===void 0?a:o;typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(a,{reason:n,options:r,observable:this,initialFetchPolicy:s}):n==="variables-changed"?r.fetchPolicy=s:r.fetchPolicy=r.nextFetchPolicy}return r.fetchPolicy},t.prototype.fetch=function(n,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,n,r)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,a=r.options.pollInterval;if(!a){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){__DEV__?xe(a,"Attempted to start a polling query without a polling interval."):xe(a,10);var o=i||(this.pollingInfo={});o.interval=a;var s=function(){n.pollingInfo&&(D2(n.queryInfo.networkStatus)?l():n.reobserve({fetchPolicy:"network-only"},on.poll).then(l,l))},l=function(){var u=n.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(s,u.interval))};l()}}},t.prototype.updateLastResult=function(n,r){return r===void 0&&(r=this.variables),this.last=le(le({},this.last),{result:this.queryManager.assumeImmutableResults?n:hue(n),variables:r}),mc(n.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(n,r){var i=this;this.isTornDown=!1;var a=r===on.refetch||r===on.fetchMore||r===on.poll,o=this.options.variables,s=this.options.fetchPolicy,l=F0(this.options,n||{}),u=a?l:BRe(this.options,l);a||(this.updatePolling(),n&&n.variables&&!tr(n.variables,o)&&(!n.fetchPolicy||n.fetchPolicy===s)&&(this.applyNextFetchPolicy("variables-changed",u),r===void 0&&(r=on.setVariables)));var c=u.variables&&le({},u.variables),d=this.fetch(u,r),f={next:function(p){i.reportResult(p,c)},error:function(p){i.reportError(p,c)}};return a||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=d,this.observer=f),d.addObserver(f),d.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var i=this.getLastError();(i||this.isDifferentFromLastResult(n))&&((i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),Cy(this.observers,"next",n))},t.prototype.reportError=function(n,r){var i=le(le({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:on.error,loading:!1});this.updateLastResult(i,r),Cy(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(qn);vue(Y9);function Vue(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,typeof r=="function"?r.apply(this,arguments):n}}):e.reobserve()}function URe(e){__DEV__&&xe.error("Unhandled error",e.message,e.stack)}function zue(e){__DEV__&&e&&__DEV__&&xe.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}var que=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,a=t.fragmentMatcher;this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=sW(n.resolvers,r)}):this.resolvers=sW(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var n=t.document,r=t.remoteResult,i=t.context,a=t.variables,o=t.onlyRunForcedResolvers,s=o===void 0?!1:o;return Zo(this,void 0,void 0,function(){return Xo(this,function(l){return n?[2,this.resolveDocument(n,r.data,i,a,this.fragmentMatcher,s).then(function(u){return le(le({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return M9(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return gMe(t)},e.prototype.prepareContext=function(t){var n=this.cache;return le(le({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t,n,r){return n===void 0&&(n={}),r===void 0&&(r={}),Zo(this,void 0,void 0,function(){return Xo(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(a){return le(le({},n),a.exportedVariables)})]:[2,le({},n)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return wu(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return aue}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:hMe(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,a,o){return r===void 0&&(r={}),i===void 0&&(i={}),a===void 0&&(a=function(){return!0}),o===void 0&&(o=!1),Zo(this,void 0,void 0,function(){var s,l,u,c,d,f,p,m,h;return Xo(this,function(g){return s=wL(t),l=yC(t),u=hC(l),c=s.operation,d=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,p=f.cache,m=f.client,h={fragmentMap:u,context:le(le({},r),{cache:p,client:m}),variables:i,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,n,h).then(function(v){return{result:v,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r){return Zo(this,void 0,void 0,function(){var i,a,o,s,l,u=this;return Xo(this,function(c){return i=r.fragmentMap,a=r.context,o=r.variables,s=[n],l=function(d){return Zo(u,void 0,void 0,function(){var f,p;return Xo(this,function(m){return mC(d,o)?pc(d)?[2,this.resolveField(d,n,r).then(function(h){var g;typeof h<"u"&&s.push((g={},g[hp(d)]=h,g))})]:(oue(d)?f=d:(f=i[d.name.value],__DEV__?xe(f,"No fragment named ".concat(d.name.value)):xe(f,9)),f&&f.typeCondition&&(p=f.typeCondition.name.value,r.fragmentMatcher(n,p,a))?[2,this.resolveSelectionSet(f.selectionSet,n,r).then(function(h){s.push(h)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(l)).then(function(){return due(s)})]})})},e.prototype.resolveField=function(t,n,r){return Zo(this,void 0,void 0,function(){var i,a,o,s,l,u,c,d,f,p=this;return Xo(this,function(m){return i=r.variables,a=t.name.value,o=hp(t),s=a!==o,l=n[o]||n[a],u=Promise.resolve(l),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(c=n.__typename||r.defaultOperationType,d=this.resolvers&&this.resolvers[c],d&&(f=d[s?a:o],f&&(u=Promise.resolve(PL.withValue(this.cache,f,[n,gC(t,i),r.context,{field:t,fragmentMap:r.fragmentMap}]))))),[2,u.then(function(h){if(h===void 0&&(h=l),t.directives&&t.directives.forEach(function(g){g.name.value==="export"&&g.arguments&&g.arguments.forEach(function(v){v.name.value==="as"&&v.value.kind==="StringValue"&&(r.exportedVariables[v.value.value]=h)})}),!t.selectionSet||h==null)return h;if(Array.isArray(h))return p.resolveSubSelectedArray(t,h,r);if(t.selectionSet)return p.resolveSelectionSet(t.selectionSet,h,r)})]})})},e.prototype.resolveSubSelectedArray=function(t,n,r){var i=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return i.resolveSubSelectedArray(t,a,r);if(t.selectionSet)return i.resolveSelectionSet(t.selectionSet,a,r)}))},e}(),Zm=new(Af?WeakMap:Map);function a4(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Zm.set(e,(Zm.get(e)+1)%1e15),n.apply(this,arguments)})}function HW(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var o4=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;Zm.has(r)||(Zm.set(r,0),a4(r,"evict"),a4(r,"modify"),a4(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||on.loading;return this.variables&&this.networkStatus!==on.loading&&!tr(this.variables,t.variables)&&(n=on.setVariables),tr(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){HW(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(t){t===void 0&&(t=this.variables);var n=this.getDiffOptions(t);if(this.lastDiff&&tr(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var i=this.cache.diff(n);return this.updateLastDiff(i,n),i},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!tr(r&&r.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():Vue(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;HW(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(D2(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(n){return n.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=le(le({},this.getDiffOptions(t)),{watcher:this,callback:function(a){return n.setDiff(a)}});(!this.lastWatch||!tr(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Zm.get(this.cache)&&tr(n,r.variables)&&tr(t.data,r.result.data))},e.prototype.markResult=function(t,n,r){var i=this;this.graphQLErrors=mc(t.errors)?t.errors:[],this.reset(),n.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(n.variables)):r!==0&&(K9(t,n.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(t,n.variables))a.writeQuery({query:i.document,data:t.data,variables:n.variables,overwrite:r===1}),i.lastWrite={result:t,variables:n.variables,dmCount:Zm.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){t.data=i.lastDiff.diff.result;return}var o=i.getDiffOptions(n.variables),s=a.diff(o);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(s,o),s.complete&&(t.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=on.ready},e.prototype.markError=function(t){return this.networkStatus=on.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function K9(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!J_(e);return!r&&n&&e.data&&(r=!0),r}var HRe=Object.prototype.hasOwnProperty,VRe=function(){function e(t){var n=t.cache,r=t.link,i=t.defaultOptions,a=t.queryDeduplication,o=a===void 0?!1:a,s=t.onBroadcast,l=t.ssrMode,u=l===void 0?!1:l,c=t.clientAwareness,d=c===void 0?{}:c,f=t.localState,p=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Af?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=o,this.clientAwareness=d,this.localState=f||new que({cache:n}),this.ssrMode=u,this.assumeImmutableResults=!!p,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new Rn("QueryManager stopped while query was in flight"):new Rn(11))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,a=t.variables,o=t.optimisticResponse,s=t.updateQueries,l=t.refetchQueries,u=l===void 0?[]:l,c=t.awaitRefetchQueries,d=c===void 0?!1:c,f=t.update,p=t.onQueryUpdated,m=t.fetchPolicy,h=m===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.fetchPolicy)||"network-only":m,g=t.errorPolicy,v=g===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.errorPolicy)||"none":g,y=t.keepRootFields,b=t.context;return Zo(this,void 0,void 0,function(){var T,_,E;return Xo(this,function(k){switch(k.label){case 0:return __DEV__?xe(i,"mutation option is required. You must specify your GraphQL document in the mutation option."):xe(i,12),__DEV__?xe(h==="network-only"||h==="no-cache","Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):xe(h==="network-only"||h==="no-cache",13),T=this.generateMutationId(),i=this.transform(i).document,a=this.getVariables(i,a),this.transform(i).hasClientExports?[4,this.localState.addExportedVariables(i,a,b)]:[3,2];case 1:a=k.sent(),k.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[T]={mutation:i,variables:a,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:T,document:i,variables:a,fetchPolicy:h,errorPolicy:v,context:b,updateQueries:s,update:f,keepRootFields:y}),this.broadcastQueries(),E=this,[2,new Promise(function(A,D){return QI(E.getObservableFromLink(i,le(le({},b),{optimisticResponse:o}),a,!1),function(R){if(J_(R)&&v==="none")throw new es({graphQLErrors:R.errors});_&&(_.loading=!1,_.error=null);var B=le({},R);return typeof u=="function"&&(u=u(B)),v==="ignore"&&J_(B)&&delete B.errors,E.markMutationResult({mutationId:T,result:B,document:i,variables:a,fetchPolicy:h,errorPolicy:v,context:b,update:f,updateQueries:s,awaitRefetchQueries:d,refetchQueries:u,removeOptimistic:o?T:void 0,onQueryUpdated:p,keepRootFields:y})}).subscribe({next:function(R){E.broadcastQueries(),A(R)},error:function(R){_&&(_.loading=!1,_.error=R),o&&E.cache.removeOptimistic(T),E.broadcastQueries(),D(R instanceof es?R:new es({networkError:R}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,a=[],o=t.fetchPolicy==="no-cache";if(!o&&K9(i,t.errorPolicy)){a.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});var s=t.updateQueries;s&&this.queries.forEach(function(u,c){var d=u.observableQuery,f=d&&d.queryName;if(!(!f||!HRe.call(s,f))){var p=s[f],m=r.queries.get(c),h=m.document,g=m.variables,v=n.diff({query:h,variables:g,returnPartialData:!0,optimistic:!1}),y=v.result,b=v.complete;if(b&&y){var T=p(y,{mutationResult:i,queryName:h&&C2(h)||void 0,queryVariables:g});T&&a.push({result:T,dataId:"ROOT_QUERY",query:h,variables:g})}}})}if(a.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(u){o||a.forEach(function(f){return u.write(f)});var c=t.update;if(c){if(!o){var d=u.diff({id:"ROOT_MUTATION",query:r.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});d.complete&&(i=le(le({},i),{data:d.result}))}c(u,i,{context:t.context,variables:t.variables})}!o&&!t.keepRootFields&&u.modify({id:"ROOT_MUTATION",fields:function(f,p){var m=p.fieldName,h=p.DELETE;return m==="__typename"?f:h}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(u){return l.push(u)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult(le(le({},n),{result:{data:i}}),a)}catch(o){__DEV__&&xe.error(o)}},n.mutationId)},e.prototype.fetchQuery=function(t,n,r){return this.fetchQueryObservable(t,n,r).promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){var n=this.transformCache;if(!n.has(t)){var r=this.cache.transformDocument(t),i=dMe(this.cache.transformForLink(r)),a=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:jxe(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:o,defaultVars:kL(lb(r)),asQuery:le(le({},r),{definitions:r.definitions.map(function(u){return u.kind==="OperationDefinition"&&u.operation!=="query"?le(le({},u),{operation:"query"}):u})})},l=function(u){u&&!n.has(u)&&n.set(u,s)};l(t),l(r),l(a),l(o)}return n.get(t)},e.prototype.getVariables=function(t,n){return le(le({},this.transform(t).defaultVars),n)},e.prototype.watchQuery=function(t){t=le(le({},t),{variables:this.getVariables(t.query,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var n=new o4(this),r=new Y9({queryManager:this,queryInfo:n,options:t});return this.queries.set(r.queryId,n),n.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),__DEV__?xe(t.query,"query option is required. You must specify your GraphQL document in the query option."):xe(t.query,14),__DEV__?xe(t.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):xe(t.query.kind==="Document",15),__DEV__?xe(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):xe(!t.returnPartialData,16),__DEV__?xe(!t.pollInterval,"pollInterval option only supported on watchQuery."):xe(!t.pollInterval,17),this.fetchQuery(n,t).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Rn("Store reset while query was in flight (not completed in link chain)"):new Rn(18)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=on.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,a=new Set;return Array.isArray(t)&&t.forEach(function(o){typeof o=="string"?i.set(o,!1):Kxe(o)?i.set(n.transform(o).document,!1):Tr(o)&&o.query&&a.add(o)}),this.queries.forEach(function(o,s){var l=o.observableQuery,u=o.document;if(l){if(t==="all"){r.set(s,l);return}var c=l.queryName,d=l.options.fetchPolicy;if(d==="standby"||t==="active"&&!l.hasObservers())return;(t==="active"||c&&i.has(c)||u&&i.has(u))&&(r.set(s,l),c&&i.set(c,!0),u&&i.set(u,!0))}}),a.size&&a.forEach(function(o){var s=B9("legacyOneTimeQuery"),l=n.getQuery(s).init({document:o.query,variables:o.variables}),u=new Y9({queryManager:n,queryInfo:l,options:le(le({},o),{fetchPolicy:"network-only"})});xe(u.queryId===s),l.setObservableQuery(u),r.set(s,u)}),__DEV__&&i.size&&i.forEach(function(o,s){o||__DEV__&&xe.warn("Unknown query ".concat(typeof s=="string"?"named ":"").concat(JSON.stringify(s,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(t||o!=="standby"&&o!=="cache-only")&&r.push(i.refetch()),n.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.fetchPolicy,a=t.errorPolicy,o=t.variables,s=t.context,l=s===void 0?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(d){return n.getObservableFromLink(r,l,d).map(function(f){if(i!=="no-cache"&&(K9(f,a)&&n.cache.write({query:r,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),n.broadcastQueries()),J_(f))throw new es({graphQLErrors:f.errors});return f})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,l).then(u);return new qn(function(d){var f=null;return c.then(function(p){return f=p.subscribe(d)},d.error),function(){return f&&f.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i){var a=this,o;i===void 0&&(i=(o=n==null?void 0:n.queryDeduplication)!==null&&o!==void 0?o:this.queryDeduplication);var s,l=this.transform(t).serverQuery;if(l){var u=this,c=u.inFlightLinkObservables,d=u.link,f={query:l,variables:r,operationName:C2(l)||void 0,context:this.prepareContext(le(le({},n),{forceFetch:!i}))};if(n=f.context,i){var p=c.get(l)||new Map;c.set(l,p);var m=L0(r);if(s=p.get(m),!s){var h=new Wv([$9(d,f)]);p.set(m,s=h),h.cleanup(function(){p.delete(m)&&p.size<1&&c.delete(l)})}}else s=new Wv([$9(d,f)])}else s=new Wv([qn.of({data:{}})]),n=this.prepareContext(n);var g=this.transform(t).clientQuery;return g&&(s=QI(s,function(v){return a.localState.runResolvers({document:g,remoteResult:v,context:n,variables:r})})),s},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId();return QI(this.getObservableFromLink(t.document,r.context,r.variables),function(a){var o=mc(a.errors);if(i>=t.lastRequestId){if(o&&r.errorPolicy==="none")throw t.markError(new es({graphQLErrors:a.errors}));t.markResult(a,r,n),t.markReady()}var s={data:a.data,loading:!1,networkStatus:on.ready};return o&&r.errorPolicy!=="ignore"&&(s.errors=a.errors,s.networkStatus=on.error),s},function(a){var o=FRe(a)?a:new es({networkError:a});throw i>=t.lastRequestId&&t.markError(o),o})},e.prototype.fetchQueryObservable=function(t,n,r){var i=this;r===void 0&&(r=on.loading);var a=this.transform(n.query).document,o=this.getVariables(a,n.variables),s=this.getQuery(t),l=this.defaultOptions.watchQuery,u=n.fetchPolicy,c=u===void 0?l&&l.fetchPolicy||"cache-first":u,d=n.errorPolicy,f=d===void 0?l&&l.errorPolicy||"none":d,p=n.returnPartialData,m=p===void 0?!1:p,h=n.notifyOnNetworkStatusChange,g=h===void 0?!1:h,v=n.context,y=v===void 0?{}:v,b=Object.assign({},n,{query:a,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:g,context:y}),T=function(E){return b.variables=E,i.fetchQueryByPolicy(s,b,r)};this.fetchCancelFns.set(t,function(E){setTimeout(function(){return _.cancel(E)})});var _=new Wv(this.transform(b.query).hasClientExports?this.localState.addExportedVariables(b.query,b.variables,b.context).then(T):T(b.variables));return _.cleanup(function(){i.fetchCancelFns.delete(t),s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n)}),_},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,a=t.optimistic,o=a===void 0?!1:a,s=t.removeOptimistic,l=s===void 0?o?B9("refetchQueries"):void 0:s,u=t.onQueryUpdated,c=new Map;i&&this.getObservableQueries(i).forEach(function(f,p){c.set(p,{oq:f,lastDiff:n.getQuery(p).getDiff()})});var d=new Map;return r&&this.cache.batch({update:r,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(f,p,m){var h=f.watcher instanceof o4&&f.watcher.observableQuery;if(h){if(u){c.delete(h.queryId);var g=u(h,p,m);return g===!0&&(g=h.refetch()),g!==!1&&d.set(h,g),g}u!==null&&c.set(h.queryId,{oq:h,lastDiff:m,diff:p})}}}),c.size&&c.forEach(function(f,p){var m=f.oq,h=f.lastDiff,g=f.diff,v;if(u){if(!g){var y=m.queryInfo;y.reset(),g=y.getDiff()}v=u(m,g,h)}(!u||v===!0)&&(v=m.refetch()),v!==!1&&d.set(m,v),p.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(p)}),l&&this.cache.removeOptimistic(l),d},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,a=n.query,o=n.variables,s=n.fetchPolicy,l=n.refetchWritePolicy,u=n.errorPolicy,c=n.returnPartialData,d=n.context,f=n.notifyOnNetworkStatusChange,p=t.networkStatus;t.init({document:this.transform(a).document,variables:o,networkStatus:r});var m=function(){return t.getDiff(o)},h=function(T,_){_===void 0&&(_=t.networkStatus||on.loading);var E=T.result;__DEV__&&!c&&!tr(E,{})&&zue(T.missing);var k=function(A){return qn.of(le({data:A,loading:D2(_),networkStatus:_},T.complete?null:{partial:!0}))};return E&&i.transform(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:E},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(A){return k(A.data||void 0)}):k(E)},g=s==="no-cache"?0:r===on.refetch&&l!=="merge"?1:2,v=function(){return i.getResultsFromLink(t,g,{variables:o,context:d,fetchPolicy:s,errorPolicy:u})},y=f&&typeof p=="number"&&p!==r&&D2(r);switch(s){default:case"cache-first":{var b=m();return b.complete?[h(b,t.markReady())]:c||y?[h(b),v()]:[v()]}case"cache-and-network":{var b=m();return b.complete||c||y?[h(b),v()]:[v()]}case"cache-only":return[h(m(),t.markReady())];case"network-only":return y?[h(m()),v()]:[v()];case"no-cache":return y?[h(t.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new o4(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return le(le({},n),{clientAwareness:this.clientAwareness})},e}(),VW=!1,zRe=function(){function e(t){var n=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.uri,i=t.credentials,a=t.headers,o=t.cache,s=t.ssrMode,l=s===void 0?!1:s,u=t.ssrForceFetchDelay,c=u===void 0?0:u,d=t.connectToDevTools,f=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:d,p=t.queryDeduplication,m=p===void 0?!0:p,h=t.defaultOptions,g=t.assumeImmutableResults,v=g===void 0?!1:g,y=t.resolvers,b=t.typeDefs,T=t.fragmentMatcher,_=t.name,E=t.version,k=t.link;if(k||(k=r?new yue({uri:r,credentials:i,headers:a}):cb.empty()),!o)throw __DEV__?new Rn(`To initialize Apollo Client, you must specify a 'cache' property in the options object. For more information, please visit: https://go.apollo.dev/c/docs`):new Rn(7);if(this.link=k,this.cache=o,this.disableNetworkFetches=l||c>0,this.queryDeduplication=m,this.defaultOptions=h||Object.create(null),this.typeDefs=b,c&&setTimeout(function(){return n.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!VW&&__DEV__&&(VW=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var A=window.navigator,D=A&&A.userAgent,R=void 0;typeof D=="string"&&(D.indexOf("Chrome/")>-1?R="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":D.indexOf("Firefox/")>-1&&(R="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),R&&__DEV__&&xe.log("Download the Apollo DevTools for a better development experience: "+R)}this.version=FMe,this.localState=new que({cache:o,client:this,resolvers:y,fragmentMatcher:T}),this.queryManager=new VRe({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:m,ssrMode:l,clientAwareness:{name:_,version:E},localState:this.localState,assumeImmutableResults:v,onBroadcast:f?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=F0(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=le(le({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=F0(this.defaultOptions.query,t)),__DEV__?xe(t.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):xe(t.fetchPolicy!=="cache-and-network",8),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=le(le({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=F0(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return $9(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(o,s){r.push(s),i.push(o)});var a=Promise.all(i);return a.queries=r,a.results=i,a.catch(function(o){__DEV__&&xe.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(o))}),a},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}(),zW=gue?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function $L(){var e=N.createContext[zW];return e||(Object.defineProperty(N.createContext,zW,{value:e=N.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var Wue=function(e){var t=e.client,n=e.children,r=$L();return N.createElement(r.Consumer,null,function(i){return i===void 0&&(i={}),t&&i.client!==t&&(i=Object.assign({},i,{client:t})),__DEV__?xe(i.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):xe(i.client,26),N.createElement(r.Provider,{value:i},n)})};function UL(e){var t=N.useContext($L()),n=e||t.client;return __DEV__?xe(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.'):xe(!!n,29),n}var jue={exports:{}},Gue={};/** * @license React * use-sync-external-store-shim.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 pg=N;function qRe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var WRe=typeof Object.is=="function"?Object.is:qRe,jRe=pg.useState,GRe=pg.useEffect,JRe=pg.useLayoutEffect,YRe=pg.useDebugValue;function KRe(e,t){var n=t(),r=jRe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return JRe(function(){i.value=n,i.getSnapshot=t,s4(i)&&a({inst:i})},[e,n,t]),GRe(function(){return s4(i)&&a({inst:i}),e(function(){s4(i)&&a({inst:i})})},[e]),YRe(n),n}function s4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!WRe(e,n)}catch{return!0}}function QRe(e,t){return t()}var ZRe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QRe:KRe;Gue.useSyncExternalStore=pg.useSyncExternalStore!==void 0?pg.useSyncExternalStore:ZRe;jue.exports=Gue;var XRe=jue.exports,su;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(su||(su={}));var qW=new Map;function WW(e){var t;switch(e){case su.Query:t="Query";break;case su.Mutation:t="Mutation";break;case su.Subscription:t="Subscription";break}return t}function e5e(e){var t=qW.get(e);if(t)return t;var n,r,i;__DEV__?xe(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):xe(!!e&&!!e.kind,30);for(var a=[],o=[],s=[],l=[],u=0,c=e.definitions;u0?new es({graphQLErrors:_}):void 0;if(h===o.current.mutationId&&!g.ignoreResults){var k={called:!0,loading:!1,data:T,error:E,client:d};o.current.isMounted&&!tr(o.current.result,k)&&a(o.current.result=k)}return(y=m.onCompleted)===null||y===void 0||y.call(m,v.data),(b=u.onCompleted)===null||b===void 0||b.call(u,v.data),v}).catch(function(v){var y,b;if(h===o.current.mutationId&&o.current.isMounted){var T={loading:!1,error:v,data:void 0,called:!0,client:d};tr(o.current.result,T)||a(o.current.result=T)}if(m.onError||g.onError)return(y=m.onError)===null||y===void 0||y.call(m,v),(b=u.onError)===null||b===void 0||b.call(u,v),{data:void 0,errors:v};throw v})},[]),l=N.useCallback(function(){a({called:!1,loading:!1,client:n})},[]);return N.useEffect(function(){return o.current.isMounted=!0,function(){o.current.isMounted=!1}},[]),[s,le({reset:l},i)]}var Kue={exports:{}},Os={},Que={exports:{}},Zue={};/** @license React v0.20.2 * scheduler.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. */(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,u=null,c=function(){if(l!==null)try{var M=e.unstable_now();l(!0,M),l=null}catch(W){throw setTimeout(c,0),W}};t=function(M){l!==null?setTimeout(t,0,M):(l=M,setTimeout(c,0))},n=function(M,W){u=setTimeout(M,W)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof p!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,h=null,g=-1,v=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(M){0>M||125>>1,he=M[ue];if(he!==void 0&&0A(fe,ce))de!==void 0&&0>A(de,fe)?(M[ue]=de,M[ge]=ce,ue=ge):(M[ue]=fe,M[Ce]=ce,ue=Ce);else if(de!==void 0&&0>A(de,ce))M[ue]=de,M[ge]=ce,ue=ge;else break e}}return W}return null}function A(M,W){var ce=M.sortIndex-W.sortIndex;return ce!==0?ce:M.id-W.id}var D=[],R=[],B=1,H=null,L=3,V=!1,U=!1,J=!1;function re(M){for(var W=E(R);W!==null;){if(W.callback===null)k(R);else if(W.startTime<=M)k(R),W.sortIndex=W.expirationTime,_(D,W);else break;W=E(R)}}function X(M){if(J=!1,re(M),!U)if(E(D)!==null)U=!0,t(j);else{var W=E(R);W!==null&&n(X,W.startTime-M)}}function j(M,W){U=!1,J&&(J=!1,r()),V=!0;var ce=L;try{for(re(W),H=E(D);H!==null&&(!(H.expirationTime>W)||M&&!e.unstable_shouldYield());){var ue=H.callback;if(typeof ue=="function"){H.callback=null,L=H.priorityLevel;var he=ue(H.expirationTime<=W);W=e.unstable_now(),typeof he=="function"?H.callback=he:H===E(D)&&k(D),re(W)}else k(D);H=E(D)}if(H!==null)var Ce=!0;else{var fe=E(R);fe!==null&&n(X,fe.startTime-W),Ce=!1}return Ce}finally{H=null,L=ce,V=!1}}var te=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){U||V||(U=!0,t(j))},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return E(D)},e.unstable_next=function(M){switch(L){case 1:case 2:case 3:var W=3;break;default:W=L}var ce=L;L=W;try{return M()}finally{L=ce}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=te,e.unstable_runWithPriority=function(M,W){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ce=L;L=M;try{return W()}finally{L=ce}},e.unstable_scheduleCallback=function(M,W,ce){var ue=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0ue?(M.sortIndex=ce,_(R,M),E(D)===null&&M===E(R)&&(J?r():J=!0,n(X,ce-ue))):(M.sortIndex=he,_(D,M),U||V||(U=!0,t(j))),M},e.unstable_wrapCallback=function(M){var W=L;return function(){var ce=L;L=W;try{return M.apply(this,arguments)}finally{L=ce}}}})(Zue);Que.exports=Zue;var r5e=Que.exports;/** @license React v17.0.2 * react-dom.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 TC=N,ir=wae,si=r5e;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i5e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,GW=Object.prototype.hasOwnProperty,JW={},YW={};function a5e(e){return GW.call(YW,e)?!0:GW.call(JW,e)?!1:i5e.test(e)?YW[e]=!0:(JW[e]=!0,!1)}function o5e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s5e(e,t,n,r){if(t===null||typeof t>"u"||o5e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ka(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var xi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xi[e]=new ka(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xi[t]=new ka(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xi[e]=new ka(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xi[e]=new ka(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xi[e]=new ka(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xi[e]=new ka(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xi[e]=new ka(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xi[e]=new ka(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xi[e]=new ka(e,5,!1,e.toLowerCase(),null,!1,!1)});var HL=/[\-:]([a-z])/g;function VL(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(HL,VL);xi[t]=new ka(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(HL,VL);xi[t]=new ka(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(HL,VL);xi[t]=new ka(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xi[e]=new ka(e,1,!1,e.toLowerCase(),null,!1,!1)});xi.xlinkHref=new ka("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xi[e]=new ka(e,1,!1,e.toLowerCase(),null,!0,!0)});function zL(e,t,n,r){var i=xi.hasOwnProperty(t)?xi[t]:null,a=i!==null?i.type===0:r?!1:!(!(2s||i[o]!==a[s])return` `+i[o].replace(" at new "," at ");while(1<=o&&0<=s);break}}}finally{u4=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gv(e):""}function l5e(e){switch(e.tag){case 5:return Gv(e.type);case 16:return Gv("Lazy");case 13:return Gv("Suspense");case 19:return Gv("SuspenseList");case 0:case 2:case 15:return e=NT(e.type,!1),e;case 11:return e=NT(e.type.render,!1),e;case 22:return e=NT(e.type._render,!1),e;case 1:return e=NT(e.type,!0),e;default:return""}}function Oh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Kc:return"Fragment";case T0:return"Portal";case Oy:return"Profiler";case qL:return"StrictMode";case Dy:return"Suspense";case tk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jL:return(e.displayName||"Context")+".Consumer";case WL:return(e._context.displayName||"Context")+".Provider";case _C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case EC:return Oh(e.type);case JL:return Oh(e._render);case GL:t=e._payload,e=e._init;try{return Oh(e(t))}catch{}}return null}function Zd(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function tce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u5e(e){var t=tce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function IT(e){e._valueTracker||(e._valueTracker=u5e(e))}function nce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tce(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nk(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Z9(e,t){var n=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function QW(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rce(e,t){t=t.checked,t!=null&&zL(e,"checked",t,!1)}function X9(e,t){rce(e,t);var n=Zd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?e8(e,t.type,n):t.hasOwnProperty("defaultValue")&&e8(e,t.type,Zd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ZW(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function e8(e,t,n){(t!=="number"||nk(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function c5e(e){var t="";return TC.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function t8(e,t){return e=ir({children:void 0},t),(t=c5e(t.children))&&(e.children=t),e}function Dh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i=n.length))throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zd(n)}}function ice(e,t){var n=Zd(t.value),r=Zd(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ej(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var r8={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ace(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function i8(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ace(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var OT,oce=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==r8.svg||"innerHTML"in e)e.innerHTML=t;else{for(OT=OT||document.createElement("div"),OT.innerHTML=""+t.valueOf().toString()+"",t=OT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function M2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xy={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d5e=["Webkit","ms","Moz","O"];Object.keys(xy).forEach(function(e){d5e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xy[t]=xy[e]})});function sce(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xy.hasOwnProperty(e)&&xy[e]?(""+t).trim():t+"px"}function lce(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sce(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var f5e=ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function a8(e,t){if(t){if(f5e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function o8(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function QL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var s8=null,xh=null,Mh=null;function tj(e){if(e=pb(e)){if(typeof s8!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=IC(t),s8(e.stateNode,e.type,t))}}function uce(e){xh?Mh?Mh.push(e):Mh=[e]:xh=e}function cce(){if(xh){var e=xh,t=Mh;if(Mh=xh=null,tj(e),t)for(e=0;er?0:1<n;n++)t.push(e);return t}function kC(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Xd(t),e[t]=n}var Xd=Math.clz32?Math.clz32:N5e,A5e=Math.log,C5e=Math.LN2;function N5e(e){return e===0?32:31-(A5e(e)/C5e|0)|0}var I5e=si.unstable_UserBlockingPriority,O5e=si.unstable_runWithPriority,Q_=!0;function D5e(e,t,n,r){_0||XL();var i=iB,a=_0;_0=!0;try{dce(i,e,t,n,r)}finally{(_0=a)||eB()}}function x5e(e,t,n,r){O5e(I5e,iB.bind(null,e,t,n,r))}function iB(e,t,n,r){if(Q_){var i;if((i=(t&4)===0)&&0=Ry),dj=String.fromCharCode(32),fj=!1;function Nce(e,t){switch(e){case"keyup":return t7e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ice(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eh=!1;function r7e(e,t){switch(e){case"compositionend":return Ice(t);case"keypress":return t.which!==32?null:(fj=!0,dj);case"textInput":return e=t.data,e===dj&&fj?null:e;default:return null}}function i7e(e,t){if(eh)return e==="compositionend"||!uB&&Nce(e,t)?(e=Ace(),Z_=oB=sd=null,eh=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gj(n)}}function Mce(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mce(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yj(){for(var e=window,t=nk();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nk(e.document)}return t}function f8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var m7e=hc&&"documentMode"in document&&11>=document.documentMode,th=null,p8=null,Fy=null,m8=!1;function Sj(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;m8||th==null||th!==nk(r)||(r=th,"selectionStart"in r&&f8(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fy&&$2(Fy,r)||(Fy=r,r=ok(p8,"onSelect"),0rh||(e.current=g8[rh],g8[rh]=null,rh--)}function br(e,t){rh++,g8[rh]=e.current,e.current=t}var ef={},Gi=Cf(ef),Ka=Cf(!1),vp=ef;function hg(e,t){var n=e.type.contextTypes;if(!n)return ef;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qa(e){return e=e.childContextTypes,e!=null}function uk(){Gn(Ka),Gn(Gi)}function Nj(e,t,n){if(Gi.current!==ef)throw Error(Oe(168));br(Gi,t),br(Ka,n)}function Hce(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Oe(108,Oh(t)||"Unknown",i));return ir({},n,r)}function eE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ef,vp=Gi.current,br(Gi,e),br(Ka,Ka.current),!0}function Ij(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=Hce(e,t,vp),r.__reactInternalMemoizedMergedChildContext=e,Gn(Ka),Gn(Gi),br(Gi,e)):Gn(Ka),br(Ka,n)}var dB=null,B0=null,v7e=si.unstable_runWithPriority,fB=si.unstable_scheduleCallback,v8=si.unstable_cancelCallback,y7e=si.unstable_shouldYield,Oj=si.unstable_requestPaint,y8=si.unstable_now,S7e=si.unstable_getCurrentPriorityLevel,OC=si.unstable_ImmediatePriority,Vce=si.unstable_UserBlockingPriority,zce=si.unstable_NormalPriority,qce=si.unstable_LowPriority,Wce=si.unstable_IdlePriority,_4={},b7e=Oj!==void 0?Oj:function(){},Yu=null,tE=null,E4=!1,Dj=y8(),qi=1e4>Dj?y8:function(){return y8()-Dj};function gg(){switch(S7e()){case OC:return 99;case Vce:return 98;case zce:return 97;case qce:return 96;case Wce:return 95;default:throw Error(Oe(332))}}function jce(e){switch(e){case 99:return OC;case 98:return Vce;case 97:return zce;case 96:return qce;case 95:return Wce;default:throw Error(Oe(332))}}function yp(e,t){return e=jce(e),v7e(e,t)}function H2(e,t,n){return e=jce(e),fB(e,t,n)}function ku(){if(tE!==null){var e=tE;tE=null,v8(e)}Gce()}function Gce(){if(!E4&&Yu!==null){E4=!0;var e=0;try{var t=Yu;yp(99,function(){for(;ek?(A=E,E=null):A=E.sibling;var D=f(g,E,y[k],b);if(D===null){E===null&&(E=A);break}e&&E&&D.alternate===null&&t(g,E),v=a(D,v,k),_===null?T=D:_.sibling=D,_=D,E=A}if(k===y.length)return n(g,E),T;if(E===null){for(;kk?(A=E,E=null):A=E.sibling;var R=f(g,E,D.value,b);if(R===null){E===null&&(E=A);break}e&&E&&R.alternate===null&&t(g,E),v=a(R,v,k),_===null?T=R:_.sibling=R,_=R,E=A}if(D.done)return n(g,E),T;if(E===null){for(;!D.done;k++,D=y.next())D=d(g,D.value,b),D!==null&&(v=a(D,v,k),_===null?T=D:_.sibling=D,_=D);return T}for(E=r(g,E);!D.done;k++,D=y.next())D=p(E,g,k,D.value,b),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?k:D.key),v=a(D,v,k),_===null?T=D:_.sibling=D,_=D);return e&&E.forEach(function(B){return t(g,B)}),T}return function(g,v,y,b){var T=typeof y=="object"&&y!==null&&y.type===Kc&&y.key===null;T&&(y=y.props.children);var _=typeof y=="object"&&y!==null;if(_)switch(y.$$typeof){case jv:e:{for(_=y.key,T=v;T!==null;){if(T.key===_){switch(T.tag){case 7:if(y.type===Kc){n(g,T.sibling),v=i(T,y.props.children),v.return=g,g=v;break e}break;default:if(T.elementType===y.type){n(g,T.sibling),v=i(T,y.props),v.ref=cv(g,T,y),v.return=g,g=v;break e}}n(g,T);break}else t(g,T);T=T.sibling}y.type===Kc?(v=$h(y.props.children,g.mode,b,y.key),v.return=g,g=v):(b=aE(y.type,y.key,y.props,null,g.mode,b),b.ref=cv(g,v,y),b.return=g,g=b)}return o(g);case T0:e:{for(T=y.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(g,v.sibling),v=i(v,y.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=I4(y,g.mode,b),v.return=g,g=v}return o(g)}if(typeof y=="string"||typeof y=="number")return y=""+y,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,y),v.return=g,g=v):(n(g,v),v=N4(y,g.mode,b),v.return=g,g=v),o(g);if(MT(y))return m(g,v,y,b);if(iv(y))return h(g,v,y,b);if(_&&RT(g,y),typeof y>"u"&&!T)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Oe(152,Oh(g.type)||"Component"))}return n(g,v)}}var mk=Zce(!0),Xce=Zce(!1),mb={},lu=Cf(mb),z2=Cf(mb),q2=Cf(mb);function w0(e){if(e===mb)throw Error(Oe(174));return e}function b8(e,t){switch(br(q2,t),br(z2,e),br(lu,mb),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:i8(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=i8(t,e)}Gn(lu),br(lu,t)}function vg(){Gn(lu),Gn(z2),Gn(q2)}function Fj(e){w0(q2.current);var t=w0(lu.current),n=i8(t,e.type);t!==n&&(br(z2,e),br(lu,n))}function gB(e){z2.current===e&&(Gn(lu),Gn(z2))}var vr=Cf(0);function hk(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tc=null,ud=null,uu=!1;function ede(e,t){var n=ls(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Lj(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function T8(e){if(uu){var t=ud;if(t){var n=t;if(!Lj(e,t)){if(t=Rh(n.nextSibling),!t||!Lj(e,t)){e.flags=e.flags&-1025|2,uu=!1,tc=e;return}ede(tc,n)}tc=e,ud=Rh(t.firstChild)}else e.flags=e.flags&-1025|2,uu=!1,tc=e}}function Bj(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tc=e}function PT(e){if(e!==tc)return!1;if(!uu)return Bj(e),uu=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!h8(t,e.memoizedProps))for(t=ud;t;)ede(e,t),t=Rh(t.nextSibling);if(Bj(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ud=Rh(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ud=null}}else ud=tc?Rh(e.stateNode.nextSibling):null;return!0}function w4(){ud=tc=null,uu=!1}var Fh=[];function vB(){for(var e=0;ea))throw Error(Oe(301));a+=1,yi=Bi=null,t.updateQueue=null,Ly.current=k7e,e=n(r,i)}while(By)}if(Ly.current=bk,t=Bi!==null&&Bi.next!==null,W2=0,yi=Bi=Dr=null,gk=!1,t)throw Error(Oe(300));return e}function k0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yi===null?Dr.memoizedState=yi=e:yi=yi.next=e,yi}function Gp(){if(Bi===null){var e=Dr.alternate;e=e!==null?e.memoizedState:null}else e=Bi.next;var t=yi===null?Dr.memoizedState:yi.next;if(t!==null)yi=t,Bi=e;else{if(e===null)throw Error(Oe(310));Bi=e,e={memoizedState:Bi.memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},yi===null?Dr.memoizedState=yi=e:yi=yi.next=e}return yi}function Zl(e,t){return typeof t=="function"?t(e):t}function dv(e){var t=Gp(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=Bi,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=o=a=null,l=i;do{var u=l.lane;if((W2&u)===u)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(o=s=c,a=r):s=s.next=c,Dr.lanes|=u,hb|=u}l=l.next}while(l!==null&&l!==i);s===null?a=r:s.next=o,ss(r,t.memoizedState)||(rl=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fv(e){var t=Gp(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);ss(a,t.memoizedState)||(rl=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function $j(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(W2&e)===e)&&(t._workInProgressVersionPrimary=r,Fh.push(t))),e)return n(t._source);throw Fh.push(t),Error(Oe(350))}function tde(e,t,n,r){var i=ma;if(i===null)throw Error(Oe(349));var a=t._getVersion,o=a(t._source),s=Ly.current,l=s.useState(function(){return $j(i,t,n)}),u=l[1],c=l[0];l=yi;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,m=d.source;d=d.subscribe;var h=Dr;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var g=a(t._source);if(!ss(o,g)){g=n(t._source),ss(c,g)||(u(g),g=Id(h),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var v=i.entanglements,y=g;0n?98:n,function(){e(!0)}),yp(97<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ld]=t,e[lk]=r,cde(e,t,!1,!1),t.stateNode=e,o=o8(n,r),n){case"dialog":Hn("cancel",e),Hn("close",e),i=r;break;case"iframe":case"object":case"embed":Hn("load",e),i=r;break;case"video":case"audio":for(i=0;iD8&&(t.flags|=64,a=!0,mv(r,!1),t.lanes=33554432)}else{if(!a)if(e=hk(o),e!==null){if(t.flags|=64,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mv(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!uu)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*qi()-r.renderingStartTime>D8&&n!==1073741824&&(t.flags|=64,a=!0,mv(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(n=r.last,n!==null?n.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qi(),n.sibling=null,t=vr.current,br(vr,a?t&1|2:t&1),n):null;case 23:case 24:return CB(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Oe(156,t.tag))}function N7e(e){switch(e.tag){case 1:Qa(e.type)&&uk();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(vg(),Gn(Ka),Gn(Gi),vB(),t=e.flags,t&64)throw Error(Oe(285));return e.flags=t&-4097|64,e;case 5:return gB(e),null;case 13:return Gn(vr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Gn(vr),null;case 4:return vg(),null;case 10:return mB(e),null;case 23:case 24:return CB(),null;default:return null}}function EB(e,t){try{var n="",r=t;do n+=l5e(r),r=r.return;while(r);var i=n}catch(a){i=` Error generating stack: `+a.message+` `+a.stack}return{value:e,source:t,stack:i}}function A8(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var I7e=typeof WeakMap=="function"?WeakMap:Map;function pde(e,t,n){n=Cd(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_k||(_k=!0,x8=r),A8(e,t)},n}function mde(e,t,n){n=Cd(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return A8(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Xl===null?Xl=new Set([this]):Xl.add(this),A8(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}var O7e=typeof WeakSet=="function"?WeakSet:Set;function Zj(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Dd(e,n)}else t.current=null}function D7e(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:zs(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&cB(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Oe(163))}function x7e(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(Ede(n,e),U7e(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:zs(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Mj(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Mj(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&$ce(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&yce(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Oe(163))}function Xj(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=sce("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function eG(e,t){if(B0&&typeof B0.onCommitFiberUnmount=="function")try{B0.onCommitFiberUnmount(dB,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Ede(t,n);else{r=t;try{i()}catch(a){Dd(r,a)}}n=n.next}while(n!==e)}break;case 1:if(Zj(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Dd(t,a)}break;case 5:Zj(t);break;case 4:hde(e,t)}}function tG(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function nG(e){return e.tag===5||e.tag===3||e.tag===4}function rG(e){e:{for(var t=e.return;t!==null;){if(nG(t))break e;t=t.return}throw Error(Oe(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(Oe(161))}n.flags&16&&(M2(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||nG(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?C8(e,n,t):N8(e,n,t)}function C8(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sk));else if(r!==4&&(e=e.child,e!==null))for(C8(e,t,n),e=e.sibling;e!==null;)C8(e,t,n),e=e.sibling}function N8(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(N8(e,t,n),e=e.sibling;e!==null;)N8(e,t,n),e=e.sibling}function hde(e,t){for(var n=t,r=!1,i,a;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Oe(160));switch(i=r.stateNode,r.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var o=e,s=n,l=s;;)if(eG(o,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}a?(o=i,s=n.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,a=!0,n.child.return=n,n=n.child;continue}}else if(eG(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function C4(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(n[lk]=r,e==="input"&&r.type==="radio"&&r.name!=null&&rce(n,r),o8(e,i),t=o8(e,r),i=0;ii&&(i=o),n&=~a}if(n=i,n=qi()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*R7e(n/1960))-n,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Si!==5&&(Si=2),l=EB(l,s),f=o;do{switch(f.tag){case 3:a=l,f.flags|=4096,t&=-t,f.lanes|=t;var _=pde(f,a,t);xj(f,_);break e;case 1:a=l;var E=f.type,k=f.stateNode;if(!(f.flags&64)&&(typeof E.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Xl===null||!Xl.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t;var A=mde(f,a,t);xj(f,A);break e}}f=f.return}while(f!==null)}_de(n)}catch(D){t=D,Hr===n&&n!==null&&(Hr=n=n.return);continue}break}while(1)}function bde(){var e=Tk.current;return Tk.current=bk,e===null?bk:e}function Kv(e,t){var n=yt;yt|=16;var r=bde();ma===e&&Wi===t||Bh(e,t);do try{F7e();break}catch(i){Sde(e,i)}while(1);if(pB(),yt=n,Tk.current=r,Hr!==null)throw Error(Oe(261));return ma=null,Wi=0,Si}function F7e(){for(;Hr!==null;)Tde(Hr)}function L7e(){for(;Hr!==null&&!y7e();)Tde(Hr)}function Tde(e){var t=wde(e.alternate,e,Sp);e.memoizedProps=e.pendingProps,t===null?_de(e):Hr=t,wB.current=null}function _de(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=N7e(t),n!==null){n.flags&=2047,Hr=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=C7e(n,t,Sp),n!==null){Hr=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Sp&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1o&&(s=o,o=_,_=s),s=vj(y,_),a=vj(y,o),s&&a&&(T.rangeCount!==1||T.anchorNode!==s.node||T.anchorOffset!==s.offset||T.focusNode!==a.node||T.focusOffset!==a.offset)&&(b=b.createRange(),b.setStart(s.node,s.offset),T.removeAllRanges(),_>o?(T.addRange(b),T.extend(a.node,a.offset)):(b.setEnd(a.node,a.offset),T.addRange(b)))))),b=[],T=y;T=T.parentNode;)T.nodeType===1&&b.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yqi()-AB?Bh(e,0):kB|=n),As(e,t)}function z7e(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Xu===0&&(Xu=b1),t=xm(62914560&~Xu),t===0&&(t=4194304)):t=gg()===99?1:2:t=1),n=Eo(),e=MC(e,t),e!==null&&(kC(e,t,n),As(e,n))}var wde;wde=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ka.current)rl=!0;else if(n&r)rl=!!(e.flags&16384);else{switch(rl=!1,t.tag){case 3:Wj(t),w4();break;case 5:Fj(t);break;case 1:Qa(t.type)&&eE(t);break;case 4:b8(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;br(ck,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?jj(e,t,n):(br(vr,vr.current&1),t=nc(e,t,n),t!==null?t.sibling:null);br(vr,vr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Qj(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),br(vr,vr.current),r)break;return null;case 23:case 24:return t.lanes=0,k4(e,t,n)}return nc(e,t,n)}else rl=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hg(t,Gi.current),Ph(t,n),i=SB(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qa(r)){var a=!0;eE(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hB(t);var o=r.getDerivedStateFromProps;typeof o=="function"&&pk(t,r,o,e),i.updater=DC,t.stateNode=i,i._reactInternals=t,S8(t,r,e,n),t=w8(null,t,r,!0,a,n)}else t.tag=0,Ba(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=W7e(i),e=zs(i,e),a){case 0:t=E8(null,t,i,e,n);break e;case 1:t=qj(null,t,i,e,n);break e;case 11:t=Vj(null,t,i,e,n);break e;case 14:t=zj(null,t,i,zs(i.type,e),r,n);break e}throw Error(Oe(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zs(r,i),E8(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zs(r,i),qj(e,t,r,i,n);case 3:if(Wj(t),r=t.updateQueue,e===null||r===null)throw Error(Oe(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Yce(e,t),V2(t,r,null,n),r=t.memoizedState.element,r===i)w4(),t=nc(e,t,n);else{if(i=t.stateNode,(a=i.hydrate)&&(ud=Rh(t.stateNode.containerInfo.firstChild),tc=t,a=uu=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ade)}catch(e){console.error(e)}}Ade(),Kue.exports=Os;var Jp=Kue.exports;const Z7e=ao(Jp);function L8(e,t){return L8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},L8(e,t)}function Io(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L8(e,t)}var Cde={exports:{}},X7e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ePe=X7e,tPe=ePe;function Nde(){}function Ide(){}Ide.resetWarningCache=Nde;var nPe=function(){function e(r,i,a,o,s,l){if(l!==tPe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ide,resetWarningCache:Nde};return n.PropTypes=n,n};Cde.exports=nPe();var Ode=Cde.exports;const Zn=ao(Ode);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;c--){var d=r[c];d==="."?D4(r,c):d===".."?(D4(r,c),u++):u&&(D4(r,c),u--)}if(!o)for(;u--;u)r.unshift("..");o&&r[0]!==""&&(!r[0]||!$T(r[0]))&&r.unshift("");var f=r.join("/");return s&&f.substr(-1)!=="/"&&(f+="/"),f}function sG(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function oE(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(i,a){return oE(i,t[a])});if(typeof e=="object"||typeof t=="object"){var n=sG(e),r=sG(t);return n!==e||r!==t?oE(n,r):Object.keys(Object.assign({},e,t)).every(function(i){return oE(e[i],t[i])})}return!1}var iPe=!0,x4="Invariant failed";function If(e,t){if(!e){if(iPe)throw new Error(x4);var n=typeof t=="function"?t():t,r=n?x4+": "+n:x4;throw new Error(r)}}function Vy(e){return e.charAt(0)==="/"?e:"/"+e}function lG(e){return e.charAt(0)==="/"?e.substr(1):e}function aPe(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Dde(e,t){return aPe(e,t)?e.substr(t.length):e}function xde(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function oPe(e){var t=e||"/",n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return a!==-1&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function $a(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function da(e,t,n,r){var i;typeof e=="string"?(i=oPe(e),i.state=t):(i=dr({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=rPe(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function sPe(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&oE(e.state,t.state)}function xB(){var e=null;function t(o){return e=o,function(){e===o&&(e=null)}}function n(o,s,l,u){if(e!=null){var c=typeof e=="function"?e(o,s):e;typeof c=="string"?typeof l=="function"?l(c,u):u(!0):u(c!==!1)}else u(!0)}var r=[];function i(o){var s=!0;function l(){s&&o.apply(void 0,arguments)}return r.push(l),function(){s=!1,r=r.filter(function(u){return u!==l})}}function a(){for(var o=arguments.length,s=new Array(o),l=0;lV?U.splice(V,U.length-V,B):U.push(B),c({action:R,location:B,index:V,entries:U})}})}function g(A,D){var R="REPLACE",B=da(A,D,d(),k.location);u.confirmTransitionTo(B,R,n,function(H){H&&(k.entries[k.index]=B,c({action:R,location:B}))})}function v(A){var D=pG(k.index+A,0,k.entries.length-1),R="POP",B=k.entries[D];u.confirmTransitionTo(B,R,n,function(H){H?c({action:R,location:B,index:D}):c()})}function y(){v(-1)}function b(){v(1)}function T(A){var D=k.index+A;return D>=0&&D-1?"[^"+A0(e)+"]+?":A0(t)+"|(?:(?!"+A0(t)+")[^"+A0(e)+"])+?"}function bPe(e,t){return Fde(MB(e,t),t)}function TPe(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function _Pe(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Fde(e,t){for(var n=new Array(e.length),r=0;r"u"&&(Sg=HB);function KPe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var QPe=Sg(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=vb(e,["innerRef","navigate","onClick"]),o=a.target,s=dr({},a,{onClick:function(u){try{i&&i(u)}catch(c){throw u.preventDefault(),c}!u.defaultPrevented&&u.button===0&&(!o||o==="_self")&&!KPe(u)&&(u.preventDefault(),r())}});return HB!==Sg?s.ref=t||n:s.ref=n,Z.createElement("a",s)}),JC=Sg(function(e,t){var n=e.component,r=n===void 0?QPe:n,i=e.replace,a=e.to,o=e.innerRef,s=vb(e,["component","replace","to","innerRef"]);return Z.createElement(fu.Consumer,null,function(l){l||If(!1);var u=l.history,c=$8(B8(a,l.location),l.location),d=c?u.createHref(c):"",f=dr({},s,{href:d,navigate:function(){var m=B8(a,l.location),h=$a(l.location)===$a($8(m)),g=i||h?u.replace:u.push;g(m)}});return HB!==Sg?f.ref=t||o:f.innerRef=o,Z.createElement(r,f)})}),Gde=function(t){return t},kk=Z.forwardRef;typeof kk>"u"&&(kk=Gde);function ZPe(){for(var e=arguments.length,t=new Array(e),n=0;n"u"?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(a,o){return function(s,l){typeof a[s]!="function"&&Object.defineProperty(a,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,u={create:o?function(){return ft(Object.create(null))}:s?function(){return ft({__proto__:null})}:function(){return ft({})},has:l?function($,ee){return n.call($,ee)}:function($,ee){return ee in $},get:l?function($,ee){return n.call($,ee)?$[ee]:void 0}:function($,ee){return $[ee]}},c=Object.getPrototypeOf(Function),d=typeof process=="object"&&{}&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",f=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ye(),p=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Te(),m=!d&&typeof WeakMap=="function"?WeakMap:Ye(),h=new m;function g($,ee,pe,I){if(M(pe)){if(!Re($))throw new TypeError;if(!Me(ee))throw new TypeError;return R($,ee)}else{if(!Re($))throw new TypeError;if(!ue(ee))throw new TypeError;if(!ue(I)&&!M(I)&&!W(I))throw new TypeError;return W(I)&&(I=void 0),pe=de(pe),B($,ee,pe,I)}}t("decorate",g);function v($,ee){function pe(I,w){if(!ue(I))throw new TypeError;if(!M(w)&&!Ve(w))throw new TypeError;re($,ee,I,w)}return pe}t("metadata",v);function y($,ee,pe,I){if(!ue(pe))throw new TypeError;return M(I)||(I=de(I)),re($,ee,pe,I)}t("defineMetadata",y);function b($,ee,pe){if(!ue(ee))throw new TypeError;return M(pe)||(pe=de(pe)),L($,ee,pe)}t("hasMetadata",b);function T($,ee,pe){if(!ue(ee))throw new TypeError;return M(pe)||(pe=de(pe)),V($,ee,pe)}t("hasOwnMetadata",T);function _($,ee,pe){if(!ue(ee))throw new TypeError;return M(pe)||(pe=de(pe)),U($,ee,pe)}t("getMetadata",_);function E($,ee,pe){if(!ue(ee))throw new TypeError;return M(pe)||(pe=de(pe)),J($,ee,pe)}t("getOwnMetadata",E);function k($,ee){if(!ue($))throw new TypeError;return M(ee)||(ee=de(ee)),X($,ee)}t("getMetadataKeys",k);function A($,ee){if(!ue($))throw new TypeError;return M(ee)||(ee=de(ee)),j($,ee)}t("getOwnMetadataKeys",A);function D($,ee,pe){if(!ue(ee))throw new TypeError;M(pe)||(pe=de(pe));var I=H(ee,pe,!1);if(M(I)||!I.delete($))return!1;if(I.size>0)return!0;var w=h.get(ee);return w.delete(pe),w.size>0||h.delete(ee),!0}t("deleteMetadata",D);function R($,ee){for(var pe=$.length-1;pe>=0;--pe){var I=$[pe],w=I(ee);if(!M(w)&&!W(w)){if(!Me(w))throw new TypeError;ee=w}}return ee}function B($,ee,pe,I){for(var w=$.length-1;w>=0;--w){var C=$[w],x=C(ee,pe,I);if(!M(x)&&!W(x)){if(!ue(x))throw new TypeError;I=x}}return I}function H($,ee,pe){var I=h.get($);if(M(I)){if(!pe)return;I=new f,h.set($,I)}var w=I.get(ee);if(M(w)){if(!pe)return;w=new f,I.set(ee,w)}return w}function L($,ee,pe){var I=V($,ee,pe);if(I)return!0;var w=Se(ee);return W(w)?!1:L($,w,pe)}function V($,ee,pe){var I=H(ee,pe,!1);return M(I)?!1:fe(I.has($))}function U($,ee,pe){var I=V($,ee,pe);if(I)return J($,ee,pe);var w=Se(ee);if(!W(w))return U($,w,pe)}function J($,ee,pe){var I=H(ee,pe,!1);if(!M(I))return I.get($)}function re($,ee,pe,I){var w=H(pe,I,!0);w.set($,ee)}function X($,ee){var pe=j($,ee),I=Se($);if(I===null)return pe;var w=X(I,ee);if(w.length<=0)return pe;if(pe.length<=0)return w;for(var C=new p,x=[],z=0,Q=pe;z=0&&z=this._keys.length?(this._index=-1,this._keys=ee,this._values=ee):this._index++,{value:Q,done:!1}}return{value:void 0,done:!0}},x.prototype.throw=function(z){throw this._index>=0&&(this._index=-1,this._keys=ee,this._values=ee),z},x.prototype.return=function(z){return this._index>=0&&(this._index=-1,this._keys=ee,this._values=ee),{value:z,done:!0}},x}();return function(){function x(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return Object.defineProperty(x.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),x.prototype.has=function(z){return this._find(z,!1)>=0},x.prototype.get=function(z){var Q=this._find(z,!1);return Q>=0?this._values[Q]:void 0},x.prototype.set=function(z,Q){var ae=this._find(z,!0);return this._values[ae]=Q,this},x.prototype.delete=function(z){var Q=this._find(z,!1);if(Q>=0){for(var ae=this._keys.length,Fe=Q+1;Fe"u"}function bp(e){return typeof e=="number"}function KC(e){return typeof e=="number"&&e%1===0}function uFe(e){return typeof e=="string"}function cFe(e){return Object.prototype.toString.call(e)==="[object Date]"}function pu(){try{return typeof Intl<"u"&&Intl.DateTimeFormat}catch{return!1}}function yb(){return!Qt(Intl.DateTimeFormat.prototype.formatToParts)}function Zde(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dFe(e){return Array.isArray(e)?e:[e]}function EG(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Xde(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function bg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rc(e,t,n){return KC(e)&&e>=t&&e<=n}function fFe(e,t){return e-t*Math.floor(e/t)}function ah(e,t=2){const n=e<0?"-":"",r=n?e*-1:e;let i;return r.toString().length=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function Nk(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function U8(e){return e>99?e:e>60?1900+e:2e3+e}function efe(e,t,n,r=null){const i=new Date(e),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o=Object.assign({timeZoneName:t},a),s=pu();if(s&&yb()){const l=new Intl.DateTimeFormat(n,o).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}else if(s){const l=new Intl.DateTimeFormat(n,a).format(i);return new Intl.DateTimeFormat(n,o).format(i).substring(l.length).replace(/^[, \u200e]+/,"")}else return null}function QC(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function tfe(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new ts(`Invalid unit value ${e}`);return t}function Ik(e,t,n){const r={};for(const i in e)if(bg(e,i)){if(n.indexOf(i)>=0)continue;const a=e[i];if(a==null)continue;r[t(i)]=tfe(a)}return r}function Ok(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${ah(n,2)}:${ah(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${ah(n,2)}${ah(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ZC(e){return Xde(e,["hour","minute","second","millisecond"])}const nfe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ar(e){return JSON.stringify(e,Object.keys(e).sort())}const pFe=["January","February","March","April","May","June","July","August","September","October","November","December"],rfe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mFe=["J","F","M","A","M","J","J","A","S","O","N","D"];function ife(e){switch(e){case"narrow":return[...mFe];case"short":return[...rfe];case"long":return[...pFe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const afe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ofe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hFe=["M","T","W","T","F","S","S"];function sfe(e){switch(e){case"narrow":return[...hFe];case"short":return[...ofe];case"long":return[...afe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const lfe=["AM","PM"],gFe=["Before Christ","Anno Domini"],vFe=["BC","AD"],yFe=["B","A"];function ufe(e){switch(e){case"narrow":return[...yFe];case"short":return[...vFe];case"long":return[...gFe];default:return null}}function SFe(e){return lfe[e.hour<12?0:1]}function bFe(e,t){return sfe(t)[e.weekday-1]}function TFe(e,t){return ife(t)[e.month-1]}function _Fe(e,t){return ufe(t)[e.year<0?0:1]}function EFe(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${i[e][0]}`;case-1:return d?"yesterday":`last ${i[e][0]}`;case 0:return d?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function wFe(e){const t=Xde(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]),n=ar(t),r="EEEE, LLLL d, yyyy, h:mm a";switch(n){case ar(Ak):return"M/d/yyyy";case ar(qB):return"LLL d, yyyy";case ar(Kde):return"EEE, LLL d, yyyy";case ar(WB):return"LLLL d, yyyy";case ar(jB):return"EEEE, LLLL d, yyyy";case ar(GB):return"h:mm a";case ar(JB):return"h:mm:ss a";case ar(YB):return"h:mm a";case ar(KB):return"h:mm a";case ar(QB):return"HH:mm";case ar(ZB):return"HH:mm:ss";case ar(XB):return"HH:mm";case ar(e$):return"HH:mm";case ar(t$):return"M/d/yyyy, h:mm a";case ar(r$):return"LLL d, yyyy, h:mm a";case ar(a$):return"LLLL d, yyyy, h:mm a";case ar(s$):return r;case ar(n$):return"M/d/yyyy, h:mm:ss a";case ar(i$):return"LLL d, yyyy, h:mm:ss a";case ar(Qde):return"EEE, d LLL yyyy, h:mm a";case ar(o$):return"LLLL d, yyyy, h:mm:ss a";case ar(l$):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return r}}function wG(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const kFe={D:Ak,DD:qB,DDD:WB,DDDD:jB,t:GB,tt:JB,ttt:YB,tttt:KB,T:QB,TT:ZB,TTT:XB,TTTT:e$,f:t$,ff:r$,fff:a$,ffff:s$,F:n$,FF:i$,FFF:o$,FFFF:l$};let eu=class Zv{static create(t,n={}){return new Zv(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o0&&a.push({literal:i,val:r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:!1,val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i,val:r}),a}static macroTokenToFormatOpts(t){return kFe[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,n)).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return ah(t,n);const r=Object.assign({},this.opts);return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory"&&yb(),a=(p,m)=>this.loc.extract(t,p,m),o=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",s=()=>r?SFe(t):a({hour:"numeric",hour12:!0},"dayperiod"),l=(p,m)=>r?TFe(t,p):a(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>r?bFe(t,p):a(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{const m=Zv.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(t,m):p},d=p=>r?_Fe(t,p):a({era:p},"era"),f=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(p)}};return wG(Zv.parseFormat(n),f)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{const c=r(u);return c?this.num(l.get(c),u.length):u},a=Zv.parseFormat(n),o=a.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),s=t.shiftTo(...o.map(r).filter(l=>l));return wG(a,i(s))}},il=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},bb=class{get type(){throw new Ac}get name(){throw new Ac}get universal(){throw new Ac}offsetName(t,n){throw new Ac}formatOffset(t,n){throw new Ac}offset(t){throw new Ac}equals(t){throw new Ac}get isValid(){throw new Ac}},L4=null,AFe=class cfe extends bb{static get instance(){return L4===null&&(L4=new cfe),L4}get type(){return"local"}get name(){return pu()?new Intl.DateTimeFormat().resolvedOptions().timeZone:"local"}get universal(){return!1}offsetName(t,{format:n,locale:r}){return efe(t,n,r)}formatOffset(t,n){return Ok(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="local"}get isValid(){return!0}};const CFe=RegExp(`^${nfe.source}$`);let sE={};function NFe(e){return sE[e]||(sE[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),sE[e]}const IFe={year:0,month:1,day:2,hour:3,minute:4,second:5};function OFe(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u]=r;return[o,i,a,s,l,u]}function DFe(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i=0?p:1e3+p,(d-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},B4=null,ms=class Xv extends bb{static get utcInstance(){return B4===null&&(B4=new Xv(0)),B4}static instance(t){return t===0?Xv.utcInstance:new Xv(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Xv(QC(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ok(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Ok(this.fixed,n)}get universal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},kG=class extends bb{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get universal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function c0(e,t){let n;if(Qt(e)||e===null)return t;if(e instanceof bb)return e;if(uFe(e)){const r=e.toLowerCase();return r==="local"?t:r==="utc"||r==="gmt"?ms.utcInstance:(n=xr.parseGMTOffset(e))!=null?ms.instance(n):xr.isValidSpecifier(r)?xr.create(e):ms.parseSpecifier(r)||new kG(e)}else return bp(e)?ms.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new kG(e)}let AG=()=>Date.now(),$4=null,CG=null,NG=null,IG=null,OG=!1,Mr=class dfe{static get now(){return AG}static set now(t){AG=t}static get defaultZoneName(){return dfe.defaultZone.name}static set defaultZoneName(t){t?$4=c0(t):$4=null}static get defaultZone(){return $4||AFe.instance}static get defaultLocale(){return CG}static set defaultLocale(t){CG=t}static get defaultNumberingSystem(){return NG}static set defaultNumberingSystem(t){NG=t}static get defaultOutputCalendar(){return IG}static set defaultOutputCalendar(t){IG=t}static get throwOnInvalid(){return OG}static set throwOnInvalid(t){OG=t}static resetCaches(){ri.resetCache(),xr.resetCache()}},V8={};function z8(e,t={}){const n=JSON.stringify([e,t]);let r=V8[n];return r||(r=new Intl.DateTimeFormat(e,t),V8[n]=r),r}let q8={};function xFe(e,t={}){const n=JSON.stringify([e,t]);let r=q8[n];return r||(r=new Intl.NumberFormat(e,t),q8[n]=r),r}let W8={};function MFe(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=W8[i];return a||(a=new Intl.RelativeTimeFormat(e,t),W8[i]=a),a}let n0=null;function RFe(){if(n0)return n0;if(pu()){const e=new Intl.DateTimeFormat().resolvedOptions().locale;return n0=!e||e==="und"?"en-US":e,n0}else return n0="en-US",n0}function PFe(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const r=e.substring(0,t);try{n=z8(e).resolvedOptions()}catch{n=z8(r).resolvedOptions()}const{numberingSystem:i,calendar:a}=n;return[r,i,a]}}function FFe(e,t,n){return pu()?((n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e):[]}function LFe(e){const t=[];for(let n=1;n<=12;n++){const r=Ue.utc(2016,n,1);t.push(e(r))}return t}function BFe(e){const t=[];for(let n=1;n<=7;n++){const r=Ue.utc(2016,11,13+n);t.push(e(r))}return t}function VT(e,t,n,r,i){const a=e.listingMode(n);return a==="error"?null:a==="en"?r(t):i(t)}function $Fe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||pu()&&new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}let UFe=class{constructor(t,n,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!n&&pu()){const i={useGrouping:!1};r.padTo>0&&(i.minimumIntegerDigits=r.padTo),this.inf=xFe(t,i)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):c$(t,3);return ah(n,this.padTo)}}},HFe=class{constructor(t,n,r){this.opts=r,this.hasIntl=pu();let i;if(t.zone.universal&&this.hasIntl){const a=-1*(t.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`,s=xr.isValidZone(o);t.offset!==0&&s?(i=o,this.dt=t):(i="UTC",r.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Ue.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="local"?this.dt=t:(this.dt=t,i=t.zone.name);if(this.hasIntl){const a=Object.assign({},this.opts);i&&(a.timeZone=i),this.dtf=z8(n,a)}}format(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());{const t=wFe(this.opts),n=ri.create("en-US");return eu.create(n).formatDateTimeFromString(this.dt,t)}}formatToParts(){return this.hasIntl&&yb()?this.dtf.formatToParts(this.dt.toJSDate()):[]}resolvedOptions(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}}},VFe=class{constructor(t,n,r){this.opts=Object.assign({style:"long"},r),!n&&Zde()&&(this.rtf=MFe(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):EFe(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},ri=class ey{static fromOpts(t){return ey.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const a=t||Mr.defaultLocale,o=a||(i?"en-US":RFe()),s=n||Mr.defaultNumberingSystem,l=r||Mr.defaultOutputCalendar;return new ey(o,s,l,a)}static resetCache(){n0=null,V8={},q8={},W8={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return ey.create(t,n,r)}constructor(t,n,r,i){const[a,o,s]=PFe(t);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||s||null,this.intl=FFe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=$Fe(this)),this.fastNumbersCached}listingMode(t=!0){const n=pu(),r=n&&yb(),i=this.isEnglish(),a=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return!r&&!(i&&a)&&!t?"error":!r||i&&a?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:ey.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(Object.assign({},t,{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Object.assign({},t,{defaultToEN:!1}))}months(t,n=!1,r=!0){return VT(this,t,r,ife,()=>{const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";return this.monthsCache[a][t]||(this.monthsCache[a][t]=LFe(o=>this.extract(o,i,"month"))),this.monthsCache[a][t]})}weekdays(t,n=!1,r=!0){return VT(this,t,r,sfe,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},a=n?"format":"standalone";return this.weekdaysCache[a][t]||(this.weekdaysCache[a][t]=BFe(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[a][t]})}meridiems(t=!0){return VT(this,void 0,t,()=>lfe,()=>{if(!this.meridiemCache){const n={hour:"numeric",hour12:!0};this.meridiemCache=[Ue.utc(2016,11,13,9),Ue.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return VT(this,t,n,ufe,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ue.utc(-40,1,1),Ue.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new UFe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new HFe(t,this.intl,n)}relFormatter(t={}){return new VFe(this.intl,this.isEnglish(),t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||pu()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}};function w1(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function Kp(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[Object.assign(n,o),r||s,l]},[{},null,1]).slice(0,2)}function k1(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function ffe(...e){return(t,n)=>{const r={};let i;for(i=0;ip!==void 0&&(m||p&&c)?-p:p;return[{years:f(oa(n)),months:f(oa(r)),weeks:f(oa(i)),days:f(oa(a)),hours:f(oa(o)),minutes:f(oa(s)),seconds:f(oa(l),l==="-0"),milliseconds:f(u$(u),d)}]}const XFe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function m$(e,t,n,r,i,a,o){const s={year:t.length===2?U8(oa(t)):oa(t),month:rfe.indexOf(n)+1,day:oa(r),hour:oa(i),minute:oa(a)};return o&&(s.second=oa(o)),e&&(s.weekday=e.length>3?afe.indexOf(e)+1:ofe.indexOf(e)+1),s}const eLe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tLe(e){const[,t,n,r,i,a,o,s,l,u,c,d]=e,f=m$(t,i,r,n,a,o,s);let p;return l?p=XFe[l]:u?p=0:p=QC(c,d),[f,new ms(p)]}function nLe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rLe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,iLe=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,aLe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function DG(e){const[,t,n,r,i,a,o,s]=e;return[m$(t,i,r,n,a,o,s),ms.utcInstance]}function oLe(e){const[,t,n,r,i,a,o,s]=e;return[m$(t,s,n,r,i,a,o),ms.utcInstance]}const sLe=w1(zFe,p$),lLe=w1(qFe,p$),uLe=w1(WFe,p$),cLe=w1(mfe),dLe=Kp(gfe,Qp,A1),fLe=Kp(jFe,Qp,A1),pLe=Kp(GFe,Qp,A1),mLe=Kp(Qp,A1);function hLe(e){return k1(e,[sLe,dLe],[lLe,fLe],[uLe,pLe],[cLe,mLe])}function gLe(e){return k1(nLe(e),[eLe,tLe])}function vLe(e){return k1(e,[rLe,DG],[iLe,DG],[aLe,oLe])}function yLe(e){return k1(e,[QFe,ZFe])}const SLe=Kp(Qp);function bLe(e){return k1(e,[KFe,SLe])}const TLe=w1(JFe,YFe),_Le=w1(hfe),ELe=Kp(gfe,Qp,A1,vfe),wLe=Kp(Qp,A1,vfe);function kLe(e){return k1(e,[TLe,ELe],[_Le,wLe])}const ALe="Invalid Duration",yfe={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},CLe=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},yfe),Ho=146097/400,ym=146097/4800,NLe=Object.assign({years:{quarters:4,months:12,weeks:Ho/7,days:Ho,hours:Ho*24,minutes:Ho*24*60,seconds:Ho*24*60*60,milliseconds:Ho*24*60*60*1e3},quarters:{months:3,weeks:Ho/28,days:Ho/4,hours:Ho*24/4,minutes:Ho*24*60/4,seconds:Ho*24*60*60/4,milliseconds:Ho*24*60*60*1e3/4},months:{weeks:ym/7,days:ym,hours:ym*24,minutes:ym*24*60,seconds:ym*24*60*60,milliseconds:ym*24*60*60*1e3}},yfe),Mm=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ILe=Mm.slice(0).reverse();function Wf(e,t,n=!1){const r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Za(r)}function OLe(e){return e<0?Math.floor(e):Math.ceil(e)}function Sfe(e,t,n,r,i){const a=e[i][n],o=t[n]/a,s=Math.sign(o)===Math.sign(r[i]),l=!s&&r[i]!==0&&Math.abs(o)<=1?OLe(o):Math.trunc(o);r[i]+=l,t[n]-=l*a}function DLe(e,t){ILe.reduce((n,r)=>Qt(t[r])?n:(n&&Sfe(e,t,n,t,r),r),null)}let Za=class qo{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||ri.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?NLe:CLe,this.isLuxonDuration=!0}static fromMillis(t,n){return qo.fromObject(Object.assign({milliseconds:t},n))}static fromObject(t){if(t==null||typeof t!="object")throw new ts(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new qo({values:Ik(t,qo.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ri.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromISO(t,n){const[r]=yLe(t);if(r){const i=Object.assign(r,n);return qo.fromObject(i)}else return qo.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=bLe(t);if(r){const i=Object.assign(r,n);return qo.fromObject(i)}else return qo.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new ts("need to specify a reason the Duration is invalid");const r=t instanceof il?t:new il(t,n);if(Mr.throwOnInvalid)throw new lFe(r);return new qo({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Yde(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r=Object.assign({},n,{floor:n.round!==!1&&n.floor!==!1});return this.isValid?eu.create(this.loc,r).formatDurationFromString(this,t):ALe}toObject(t={}){if(!this.isValid)return{};const n=Object.assign({},this.values);return t.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=c$(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const r=this.shiftTo("hours","minutes","seconds","milliseconds");let i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(i+=".SSS"));let a=r.toFormat(i);return t.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=$0(t),r={};for(const i of Mm)(bg(n.values,i)||bg(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Wf(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=$0(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=tfe(t(this.values[r],r));return Wf(this,{values:n},!0)}get(t){return this[qo.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n=Object.assign(this.values,Ik(t,qo.normalizeUnit,[]));return Wf(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n}),a={loc:i};return r&&(a.conversionAccuracy=r),Wf(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return DLe(this.matrix,t),Wf(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>qo.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of Mm)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;bp(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=s-l;for(const u in i)Mm.indexOf(u)>Mm.indexOf(o)&&Sfe(this.matrix,i,u,n,o)}else bp(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return Wf(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=-this.values[n];return Wf(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of Mm)if(!n(this.values[r],t.values[r]))return!1;return!0}};function $0(e){if(bp(e))return Za.fromMillis(e);if(Za.isDuration(e))return e;if(typeof e=="object")return Za.fromObject(e);throw new ts(`Unknown duration argument ${e} of type ${typeof e}`)}const vv="Invalid Interval";function xLe(e,t){return!e||!e.isValid?lE.invalid("missing or invalid start"):!t||!t.isValid?lE.invalid("missing or invalid end"):tt:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Kr.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(bv).filter(o=>this.contains(o)).sort(),r=[];let{s:i}=this,a=0;for(;i+this.e?this.e:o;r.push(Kr.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=$0(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;rl*i));a=+s>+this.e?this.e:s,o.push(Kr.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e=r?null:Kr.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.st.e?this.e:t.e;return Kr.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(Kr.fromDateTimes(n,l.time)),n=null);return Kr.merge(i)}difference(...t){return Kr.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:vv}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:vv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:vv}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:vv}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:vv}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Za.invalid(this.invalidReason)}mapEndpoints(t){return Kr.fromDateTimes(t(this.s),t(this.e))}},zT=class{static hasDST(t=Mr.defaultZone){const n=Ue.now().setZone(t).set({month:12});return!t.universal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return xr.isValidSpecifier(t)&&xr.isValidZone(t)}static normalizeZone(t){return c0(t,Mr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||ri.create(n,r,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||ri.create(n,r,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||ri.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||ri.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return ri.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return ri.create(n,null,"gregory").eras(t)}static features(){let t=!1,n=!1,r=!1,i=!1;if(pu()){t=!0,n=yb(),i=Zde();try{r=new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone==="America/New_York"}catch{r=!1}}return{intl:t,intlTokens:n,zones:r,relative:i}}};function xG(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Za.fromMillis(r).as("days"))}function MLe(e,t,n){const r=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const u=xG(s,l);return(u-u%7)/7}],["days",xG]],i={};let a,o;for(const[s,l]of r)if(n.indexOf(s)>=0){a=s;let u=l(e,t);o=e.plus({[s]:u}),o>t?(e=e.plus({[s]:u-1}),u-=1):e=o,i[s]=u}return[e,i,o,a]}function RLe(e,t,n,r){let[i,a,o,s]=MLe(e,t,n);const l=t-i,u=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o0?Za.fromMillis(l,r).shiftTo(...u).plus(c):c}const h$={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},MG={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},PLe=h$.hanidec.replace(/[\[|\]]/g,"").split("");function FLe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}function Fs({numberingSystem:e},t=""){return new RegExp(`${h$[e||"latn"]}${t}`)}const LLe="missing Intl.DateTimeFormat.formatToParts support";function cn(e,t=n=>n){return{regex:e,deser:([n])=>t(FLe(n))}}const BLe=String.fromCharCode(160),bfe=`( |${BLe})`,Tfe=new RegExp(bfe,"g");function $Le(e){return e.replace(/\./g,"\\.?").replace(Tfe,bfe)}function RG(e){return e.replace(/\./g,"").replace(Tfe," ").toLowerCase()}function Ls(e,t){return e===null?null:{regex:RegExp(e.map($Le).join("|")),deser:([n])=>e.findIndex(r=>RG(n)===RG(r))+t}}function PG(e,t){return{regex:e,deser:([,n,r])=>QC(n,r),groups:t}}function FG(e){return{regex:e,deser:([t])=>t}}function ULe(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function HLe(e,t){const n=Fs(t),r=Fs(t,"{2}"),i=Fs(t,"{3}"),a=Fs(t,"{4}"),o=Fs(t,"{6}"),s=Fs(t,"{1,2}"),l=Fs(t,"{1,3}"),u=Fs(t,"{1,6}"),c=Fs(t,"{1,9}"),d=Fs(t,"{2,4}"),f=Fs(t,"{4,6}"),p=g=>({regex:RegExp(ULe(g.val)),deser:([v])=>v,literal:!0}),h=(g=>{if(e.literal)return p(g);switch(g.val){case"G":return Ls(t.eras("short",!1),0);case"GG":return Ls(t.eras("long",!1),0);case"y":return cn(u);case"yy":return cn(d,U8);case"yyyy":return cn(a);case"yyyyy":return cn(f);case"yyyyyy":return cn(o);case"M":return cn(s);case"MM":return cn(r);case"MMM":return Ls(t.months("short",!0,!1),1);case"MMMM":return Ls(t.months("long",!0,!1),1);case"L":return cn(s);case"LL":return cn(r);case"LLL":return Ls(t.months("short",!1,!1),1);case"LLLL":return Ls(t.months("long",!1,!1),1);case"d":return cn(s);case"dd":return cn(r);case"o":return cn(l);case"ooo":return cn(i);case"HH":return cn(r);case"H":return cn(s);case"hh":return cn(r);case"h":return cn(s);case"mm":return cn(r);case"m":return cn(s);case"q":return cn(s);case"qq":return cn(r);case"s":return cn(s);case"ss":return cn(r);case"S":return cn(l);case"SSS":return cn(i);case"u":return FG(c);case"a":return Ls(t.meridiems(),0);case"kkkk":return cn(a);case"kk":return cn(d,U8);case"W":return cn(s);case"WW":return cn(r);case"E":case"c":return cn(n);case"EEE":return Ls(t.weekdays("short",!1,!1),1);case"EEEE":return Ls(t.weekdays("long",!1,!1),1);case"ccc":return Ls(t.weekdays("short",!0,!1),1);case"cccc":return Ls(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return PG(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return PG(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return FG(/[a-z_+-/]{1,256}?/i);default:return p(g)}})(e)||{invalidReason:LLe};return h.token=e,h}const VLe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function zLe(e,t,n){const{type:r,value:i}=e;if(r==="literal")return{literal:!0,val:i};const a=n[r];let o=VLe[r];if(typeof o=="object"&&(o=o[a]),o)return{literal:!1,val:o}}function qLe(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function WLe(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(bg(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function jLe(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n;return Qt(e.Z)?Qt(e.z)?n=null:n=xr.create(e.z):n=new ms(e.Z),Qt(e.q)||(e.M=(e.q-1)*3+1),Qt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Qt(e.u)||(e.S=u$(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n]}let U4=null;function GLe(){return U4||(U4=Ue.fromMillis(1555555555555)),U4}function JLe(e,t){if(e.literal)return e;const n=eu.macroTokenToFormatOpts(e.val);if(!n)return e;const a=eu.create(t,n).formatDateTimeParts(GLe()).map(o=>zLe(o,t,n));return a.includes(void 0)?e:a}function YLe(e,t){return Array.prototype.concat(...e.map(n=>JLe(n,t)))}function _fe(e,t,n){const r=YLe(eu.parseFormat(n),e),i=r.map(o=>HLe(o,e)),a=i.find(o=>o.invalidReason);if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};{const[o,s]=qLe(i),l=RegExp(o,"i"),[u,c]=WLe(t,l,s),[d,f]=c?jLe(c):[null,null];if(bg(c,"a")&&bg(c,"H"))throw new Qv("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:c,result:d,zone:f}}}function KLe(e,t,n){const{result:r,zone:i,invalidReason:a}=_fe(e,t,n);return[r,i,a]}const Efe=[0,31,59,90,120,151,181,212,243,273,304,334],wfe=[0,31,60,91,121,152,182,213,244,274,305,335];function hs(e,t){return new il("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function kfe(e,t,n){const r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return r===0?7:r}function Afe(e,t,n){return n+(Sb(e)?wfe:Efe)[t-1]}function Cfe(e,t){const n=Sb(e)?wfe:Efe,r=n.findIndex(a=>aNk(t)?(s=t+1,o=1):s=t,Object.assign({weekYear:s,weekNumber:o,weekday:a},ZC(e))}function LG(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=kfe(t,1,4),a=zy(t);let o=n*7+r-i-3,s;o<1?(s=t-1,o+=zy(s)):o>a?(s=t+1,o-=zy(t)):s=t;const{month:l,day:u}=Cfe(s,o);return Object.assign({year:s,month:l,day:u},ZC(e))}function H4(e){const{year:t,month:n,day:r}=e,i=Afe(t,n,r);return Object.assign({year:t,ordinal:i},ZC(e))}function BG(e){const{year:t,ordinal:n}=e,{month:r,day:i}=Cfe(t,n);return Object.assign({year:t,month:r,day:i},ZC(e))}function QLe(e){const t=KC(e.weekYear),n=rc(e.weekNumber,1,Nk(e.weekYear)),r=rc(e.weekday,1,7);return t?n?r?!1:hs("weekday",e.weekday):hs("week",e.week):hs("weekYear",e.weekYear)}function ZLe(e){const t=KC(e.year),n=rc(e.ordinal,1,zy(e.year));return t?n?!1:hs("ordinal",e.ordinal):hs("year",e.year)}function Nfe(e){const t=KC(e.year),n=rc(e.month,1,12),r=rc(e.day,1,Ck(e.year,e.month));return t?n?r?!1:hs("day",e.day):hs("month",e.month):hs("year",e.year)}function Ife(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=rc(t,0,23)||t===24&&n===0&&r===0&&i===0,o=rc(n,0,59),s=rc(r,0,59),l=rc(i,0,999);return a?o?s?l?!1:hs("millisecond",i):hs("second",r):hs("minute",n):hs("hour",t)}const V4="Invalid DateTime",$G=864e13;function qT(e){return new il("unsupported zone",`the zone "${e.name}" is not supported`)}function z4(e){return e.weekData===null&&(e.weekData=j8(e.c)),e.weekData}function yv(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ue(Object.assign({},n,t,{old:n}))}function Ofe(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function UG(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function uE(e,t,n){return Ofe(d$(e),t,n)}function HG(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,Ck(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=Za.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=d$(a);let[l,u]=Ofe(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Sv(e,t,n,r,i){const{setZone:a,zone:o}=n;if(e&&Object.keys(e).length!==0){const s=t||o,l=Ue.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return a?l:l.setZone(o)}else return Ue.invalid(new il("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Rm(e,t,n=!0){return e.isValid?eu.create(ri.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function VG(e,{suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r,includePrefix:i=!1,includeZone:a=!1,spaceZone:o=!1,format:s="extended"}){let l=s==="basic"?"HHmm":"HH:mm";(!t||e.second!==0||e.millisecond!==0)&&(l+=s==="basic"?"ss":":ss",(!n||e.millisecond!==0)&&(l+=".SSS")),(a||r)&&o&&(l+=" "),a?l+="z":r&&(l+=s==="basic"?"ZZZ":"ZZ");let u=Rm(e,l);return i&&(u="T"+u),u}const Dfe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},XLe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},eBe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},xfe=["year","month","day","hour","minute","second","millisecond"],tBe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nBe=["year","ordinal","hour","minute","second","millisecond"];function zG(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Yde(e);return t}function qG(e,t){for(const s of xfe)Qt(e[s])&&(e[s]=Dfe[s]);const n=Nfe(e)||Ife(e);if(n)return Ue.invalid(n);const r=Mr.now(),i=t.offset(r),[a,o]=uE(e,i,t);return new Ue({ts:a,zone:t,o})}function WG(e,t,n){const r=Qt(n.round)?!0:n.round,i=(o,s)=>(o=c$(o,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(o,s)),a=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const s=a(o);if(Math.abs(s)>=1)return i(s,o)}return i(e>t?-0:0,n.units[n.units.length-1])}let Ue=class Qn{constructor(t){const n=t.zone||Mr.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new il("invalid input"):null)||(n.isValid?null:qT(n));this.ts=Qt(t.ts)?Mr.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const s=n.offset(this.ts);i=UG(this.ts,s),r=Number.isNaN(i.year)?new il("invalid input"):null,i=r?null:i,a=r?null:s}this._zone=n,this.loc=t.loc||ri.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Qn({})}static local(t,n,r,i,a,o,s){return Qt(t)?Qn.now():qG({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},Mr.defaultZone)}static utc(t,n,r,i,a,o,s){return Qt(t)?new Qn({ts:Mr.now(),zone:ms.utcInstance}):qG({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},ms.utcInstance)}static fromJSDate(t,n={}){const r=cFe(t)?t.valueOf():NaN;if(Number.isNaN(r))return Qn.invalid("invalid input");const i=c0(n.zone,Mr.defaultZone);return i.isValid?new Qn({ts:r,zone:i,loc:ri.fromObject(n)}):Qn.invalid(qT(i))}static fromMillis(t,n={}){if(bp(t))return t<-$G||t>$G?Qn.invalid("Timestamp out of range"):new Qn({ts:t,zone:c0(n.zone,Mr.defaultZone),loc:ri.fromObject(n)});throw new ts(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(bp(t))return new Qn({ts:t*1e3,zone:c0(n.zone,Mr.defaultZone),loc:ri.fromObject(n)});throw new ts("fromSeconds requires a numerical input")}static fromObject(t){const n=c0(t.zone,Mr.defaultZone);if(!n.isValid)return Qn.invalid(qT(n));const r=Mr.now(),i=n.offset(r),a=Ik(t,zG,["zone","locale","outputCalendar","numberingSystem"]),o=!Qt(a.ordinal),s=!Qt(a.year),l=!Qt(a.month)||!Qt(a.day),u=s||l,c=a.weekYear||a.weekNumber,d=ri.fromObject(t);if((u||o)&&c)throw new Qv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Qv("Can't mix ordinal dates with month/day");const f=c||a.weekday&&!u;let p,m,h=UG(r,i);f?(p=tBe,m=XLe,h=j8(h)):o?(p=nBe,m=eBe,h=H4(h)):(p=xfe,m=Dfe);let g=!1;for(const k of p){const A=a[k];Qt(A)?g?a[k]=m[k]:a[k]=h[k]:g=!0}const v=f?QLe(a):o?ZLe(a):Nfe(a),y=v||Ife(a);if(y)return Qn.invalid(y);const b=f?LG(a):o?BG(a):a,[T,_]=uE(b,i,n),E=new Qn({ts:T,zone:n,o:_,loc:d});return a.weekday&&u&&t.weekday!==E.weekday?Qn.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${E.toISO()}`):E}static fromISO(t,n={}){const[r,i]=hLe(t);return Sv(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=gLe(t);return Sv(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=vLe(t);return Sv(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Qt(t)||Qt(n))throw new ts("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=ri.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u]=KLe(o,t,n);return u?Qn.invalid(u):Sv(s,l,r,`format ${n}`,t)}static fromString(t,n,r={}){return Qn.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=kLe(t);return Sv(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new ts("need to specify a reason the DateTime is invalid");const r=t instanceof il?t:new il(t,n);if(Mr.throwOnInvalid)throw new oFe(r);return new Qn({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?z4(this).weekYear:NaN}get weekNumber(){return this.isValid?z4(this).weekNumber:NaN}get weekday(){return this.isValid?z4(this).weekday:NaN}get ordinal(){return this.isValid?H4(this.c).ordinal:NaN}get monthShort(){return this.isValid?zT.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?zT.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?zT.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?zT.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.universal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Sb(this.year)}get daysInMonth(){return Ck(this.year,this.month)}get daysInYear(){return this.isValid?zy(this.year):NaN}get weeksInWeekYear(){return this.isValid?Nk(this.weekYear):NaN}resolvedLocaleOpts(t={}){const{locale:n,numberingSystem:r,calendar:i}=eu.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(ms.instance(t),n)}toLocal(){return this.setZone(Mr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=c0(t,Mr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=uE(o,a,t)}return yv(this,{ts:i,zone:t})}else return Qn.invalid(qT(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return yv(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Ik(t,zG,[]),r=!Qt(n.weekYear)||!Qt(n.weekNumber)||!Qt(n.weekday),i=!Qt(n.ordinal),a=!Qt(n.year),o=!Qt(n.month)||!Qt(n.day),s=a||o,l=n.weekYear||n.weekNumber;if((s||i)&&l)throw new Qv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new Qv("Can't mix ordinal dates with month/day");let u;r?u=LG(Object.assign(j8(this.c),n)):Qt(n.ordinal)?(u=Object.assign(this.toObject(),n),Qt(n.day)&&(u.day=Math.min(Ck(u.year,u.month),u.day))):u=BG(Object.assign(H4(this.c),n));const[c,d]=uE(u,this.o,this.zone);return yv(this,{ts:c,o:d})}plus(t){if(!this.isValid)return this;const n=$0(t);return yv(this,HG(this,n))}minus(t){if(!this.isValid)return this;const n=$0(t).negate();return yv(this,HG(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=Za.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?eu.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):V4}toLocaleString(t=Ak){return this.isValid?eu.create(this.loc.clone(t),t).formatDateTime(this):V4}toLocaleParts(t={}){return this.isValid?eu.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(t={}){return this.isValid?`${this.toISODate(t)}T${this.toISOTime(t)}`:null}toISODate({format:t="extended"}={}){let n=t==="basic"?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Rm(this,n)}toISOWeekDate(){return Rm(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,format:a="extended"}={}){return VG(this,{suppressSeconds:n,suppressMilliseconds:t,includeOffset:r,includePrefix:i,format:a})}toRFC2822(){return Rm(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rm(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return Rm(this,"yyyy-MM-dd")}toSQLTime({includeOffset:t=!0,includeZone:n=!1}={}){return VG(this,{includeOffset:t,includeZone:n,spaceZone:!0})}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():V4}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n=Object.assign({},this.c);return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Za.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");const i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},r),a=dFe(n).map(Za.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=RLe(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Qn.now(),t,n)}until(t){return this.isValid?lE.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Qn.fromObject({zone:this.zone}),r=t.padding?thisn.valueOf(),Math.min)}static max(...t){if(!t.every(Qn.isDateTime))throw new ts("max requires all arguments be DateTimes");return EG(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=ri.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return _fe(o,t,n)}static fromStringExplain(t,n,r={}){return Qn.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return Ak}static get DATE_MED(){return qB}static get DATE_MED_WITH_WEEKDAY(){return Kde}static get DATE_FULL(){return WB}static get DATE_HUGE(){return jB}static get TIME_SIMPLE(){return GB}static get TIME_WITH_SECONDS(){return JB}static get TIME_WITH_SHORT_OFFSET(){return YB}static get TIME_WITH_LONG_OFFSET(){return KB}static get TIME_24_SIMPLE(){return QB}static get TIME_24_WITH_SECONDS(){return ZB}static get TIME_24_WITH_SHORT_OFFSET(){return XB}static get TIME_24_WITH_LONG_OFFSET(){return e$}static get DATETIME_SHORT(){return t$}static get DATETIME_SHORT_WITH_SECONDS(){return n$}static get DATETIME_MED(){return r$}static get DATETIME_MED_WITH_SECONDS(){return i$}static get DATETIME_MED_WITH_WEEKDAY(){return Qde}static get DATETIME_FULL(){return a$}static get DATETIME_FULL_WITH_SECONDS(){return o$}static get DATETIME_HUGE(){return s$}static get DATETIME_HUGE_WITH_SECONDS(){return l$}};function bv(e){if(Ue.isDateTime(e))return e;if(e&&e.valueOf&&bp(e.valueOf()))return Ue.fromJSDate(e);if(e&&typeof e=="object")return Ue.fromObject(e);throw new ts(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function WT(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Mfe={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){return function(){function n(r,i,a){function o(u,c){if(!i[u]){if(!r[u]){var d=typeof WT=="function"&&WT;if(!c&&d)return d(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=i[u]={exports:{}};r[u][0].call(p.exports,function(m){var h=r[u][1][m];return o(h||m)},p,p.exports,n,r,i,a)}return i[u].exports}for(var s=typeof WT=="function"&&WT,l=0;l=1",["23","0","0","s"],"0","-"],["1917","only","-","Mar","24",["23","0","0","s"],"60","S"],["1918","only","-","Mar","9",["23","0","0","s"],"60","S"],["1919","only","-","Mar","1",["23","0","0","s"],"60","S"],["1920","only","-","Feb","14",["23","0","0","s"],"60","S"],["1920","only","-","Oct","23",["23","0","0","s"],"0","-"],["1921","only","-","Mar","14",["23","0","0","s"],"60","S"],["1921","only","-","Jun","21",["23","0","0","s"],"0","-"],["1939","only","-","Sep","11",["23","0","0","s"],"60","S"],["1939","only","-","Nov","19",["1","0","0",null],"0","-"],["1944","1945","-","Apr","Mon>=1",["2","0","0",null],"60","S"],["1944","only","-","Oct","8",["2","0","0",null],"0","-"],["1945","only","-","Sep","16",["1","0","0",null],"0","-"],["1971","only","-","Apr","25",["23","0","0","s"],"60","S"],["1971","only","-","Sep","26",["23","0","0","s"],"0","-"],["1977","only","-","May","6",["0","0","0",null],"60","S"],["1977","only","-","Oct","21",["0","0","0",null],"0","-"],["1978","only","-","Mar","24",["1","0","0",null],"60","S"],["1978","only","-","Sep","22",["3","0","0",null],"0","-"],["1980","only","-","Apr","25",["0","0","0",null],"60","S"],["1980","only","-","Oct","31",["2","0","0",null],"0","-"]],Egypt:[["1940","only","-","Jul","15",["0","0","0",null],"60","S"],["1940","only","-","Oct","1",["0","0","0",null],"0","-"],["1941","only","-","Apr","15",["0","0","0",null],"60","S"],["1941","only","-","Sep","16",["0","0","0",null],"0","-"],["1942","1944","-","Apr","1",["0","0","0",null],"60","S"],["1942","only","-","Oct","27",["0","0","0",null],"0","-"],["1943","1945","-","Nov","1",["0","0","0",null],"0","-"],["1945","only","-","Apr","16",["0","0","0",null],"60","S"],["1957","only","-","May","10",["0","0","0",null],"60","S"],["1957","1958","-","Oct","1",["0","0","0",null],"0","-"],["1958","only","-","May","1",["0","0","0",null],"60","S"],["1959","1981","-","May","1",["1","0","0",null],"60","S"],["1959","1965","-","Sep","30",["3","0","0",null],"0","-"],["1966","1994","-","Oct","1",["3","0","0",null],"0","-"],["1982","only","-","Jul","25",["1","0","0",null],"60","S"],["1983","only","-","Jul","12",["1","0","0",null],"60","S"],["1984","1988","-","May","1",["1","0","0",null],"60","S"],["1989","only","-","May","6",["1","0","0",null],"60","S"],["1990","1994","-","May","1",["1","0","0",null],"60","S"],["1995","2010","-","Apr","lastFri",["0","0","0","s"],"60","S"],["1995","2005","-","Sep","lastThu",["24","0","0",null],"0","-"],["2006","only","-","Sep","21",["24","0","0",null],"0","-"],["2007","only","-","Sep","Thu>=1",["24","0","0",null],"0","-"],["2008","only","-","Aug","lastThu",["24","0","0",null],"0","-"],["2009","only","-","Aug","20",["24","0","0",null],"0","-"],["2010","only","-","Aug","10",["24","0","0",null],"0","-"],["2010","only","-","Sep","9",["24","0","0",null],"60","S"],["2010","only","-","Sep","lastThu",["24","0","0",null],"0","-"],["2014","only","-","May","15",["24","0","0",null],"60","S"],["2014","only","-","Jun","26",["24","0","0",null],"0","-"],["2014","only","-","Jul","31",["24","0","0",null],"60","S"],["2014","only","-","Sep","lastThu",["24","0","0",null],"0","-"],["2023","max","-","Apr","lastFri",["0","0","0",null],"60","S"],["2023","max","-","Oct","lastThu",["24","0","0",null],"0","-"]],Libya:[["1951","only","-","Oct","14",["2","0","0",null],"60","S"],["1952","only","-","Jan","1",["0","0","0",null],"0","-"],["1953","only","-","Oct","9",["2","0","0",null],"60","S"],["1954","only","-","Jan","1",["0","0","0",null],"0","-"],["1955","only","-","Sep","30",["0","0","0",null],"60","S"],["1956","only","-","Jan","1",["0","0","0",null],"0","-"],["1982","1984","-","Apr","1",["0","0","0",null],"60","S"],["1982","1985","-","Oct","1",["0","0","0",null],"0","-"],["1985","only","-","Apr","6",["0","0","0",null],"60","S"],["1986","only","-","Apr","4",["0","0","0",null],"60","S"],["1986","only","-","Oct","3",["0","0","0",null],"0","-"],["1987","1989","-","Apr","1",["0","0","0",null],"60","S"],["1987","1989","-","Oct","1",["0","0","0",null],"0","-"],["1997","only","-","Apr","4",["0","0","0",null],"60","S"],["1997","only","-","Oct","4",["0","0","0",null],"0","-"],["2013","only","-","Mar","lastFri",["1","0","0",null],"60","S"],["2013","only","-","Oct","lastFri",["2","0","0",null],"0","-"]],Mauritius:[["1982","only","-","Oct","10",["0","0","0",null],"60","-"],["1983","only","-","Mar","21",["0","0","0",null],"0","-"],["2008","only","-","Oct","lastSun",["2","0","0",null],"60","-"],["2009","only","-","Mar","lastSun",["2","0","0",null],"0","-"]],Morocco:[["1939","only","-","Sep","12",["0","0","0",null],"60","-"],["1939","only","-","Nov","19",["0","0","0",null],"0","-"],["1940","only","-","Feb","25",["0","0","0",null],"60","-"],["1945","only","-","Nov","18",["0","0","0",null],"0","-"],["1950","only","-","Jun","11",["0","0","0",null],"60","-"],["1950","only","-","Oct","29",["0","0","0",null],"0","-"],["1967","only","-","Jun","3",["12","0","0",null],"60","-"],["1967","only","-","Oct","1",["0","0","0",null],"0","-"],["1974","only","-","Jun","24",["0","0","0",null],"60","-"],["1974","only","-","Sep","1",["0","0","0",null],"0","-"],["1976","1977","-","May","1",["0","0","0",null],"60","-"],["1976","only","-","Aug","1",["0","0","0",null],"0","-"],["1977","only","-","Sep","28",["0","0","0",null],"0","-"],["1978","only","-","Jun","1",["0","0","0",null],"60","-"],["1978","only","-","Aug","4",["0","0","0",null],"0","-"],["2008","only","-","Jun","1",["0","0","0",null],"60","-"],["2008","only","-","Sep","1",["0","0","0",null],"0","-"],["2009","only","-","Jun","1",["0","0","0",null],"60","-"],["2009","only","-","Aug","21",["0","0","0",null],"0","-"],["2010","only","-","May","2",["0","0","0",null],"60","-"],["2010","only","-","Aug","8",["0","0","0",null],"0","-"],["2011","only","-","Apr","3",["0","0","0",null],"60","-"],["2011","only","-","Jul","31",["0","0","0",null],"0","-"],["2012","2013","-","Apr","lastSun",["2","0","0",null],"60","-"],["2012","only","-","Jul","20",["3","0","0",null],"0","-"],["2012","only","-","Aug","20",["2","0","0",null],"60","-"],["2012","only","-","Sep","30",["3","0","0",null],"0","-"],["2013","only","-","Jul","7",["3","0","0",null],"0","-"],["2013","only","-","Aug","10",["2","0","0",null],"60","-"],["2013","2018","-","Oct","lastSun",["3","0","0",null],"0","-"],["2014","2018","-","Mar","lastSun",["2","0","0",null],"60","-"],["2014","only","-","Jun","28",["3","0","0",null],"0","-"],["2014","only","-","Aug","2",["2","0","0",null],"60","-"],["2015","only","-","Jun","14",["3","0","0",null],"0","-"],["2015","only","-","Jul","19",["2","0","0",null],"60","-"],["2016","only","-","Jun","5",["3","0","0",null],"0","-"],["2016","only","-","Jul","10",["2","0","0",null],"60","-"],["2017","only","-","May","21",["3","0","0",null],"0","-"],["2017","only","-","Jul","2",["2","0","0",null],"60","-"],["2018","only","-","May","13",["3","0","0",null],"0","-"],["2018","only","-","Jun","17",["2","0","0",null],"60","-"],["2019","only","-","May","5",["3","0","0",null],"-60","-"],["2019","only","-","Jun","9",["2","0","0",null],"0","-"],["2020","only","-","Apr","19",["3","0","0",null],"-60","-"],["2020","only","-","May","31",["2","0","0",null],"0","-"],["2021","only","-","Apr","11",["3","0","0",null],"-60","-"],["2021","only","-","May","16",["2","0","0",null],"0","-"],["2022","only","-","Mar","27",["3","0","0",null],"-60","-"],["2022","only","-","May","8",["2","0","0",null],"0","-"],["2023","only","-","Mar","19",["3","0","0",null],"-60","-"],["2023","only","-","Apr","23",["2","0","0",null],"0","-"],["2024","only","-","Mar","10",["3","0","0",null],"-60","-"],["2024","only","-","Apr","14",["2","0","0",null],"0","-"],["2025","only","-","Feb","23",["3","0","0",null],"-60","-"],["2025","only","-","Apr","6",["2","0","0",null],"0","-"],["2026","only","-","Feb","15",["3","0","0",null],"-60","-"],["2026","only","-","Mar","22",["2","0","0",null],"0","-"],["2027","only","-","Feb","7",["3","0","0",null],"-60","-"],["2027","only","-","Mar","14",["2","0","0",null],"0","-"],["2028","only","-","Jan","23",["3","0","0",null],"-60","-"],["2028","only","-","Mar","5",["2","0","0",null],"0","-"],["2029","only","-","Jan","14",["3","0","0",null],"-60","-"],["2029","only","-","Feb","18",["2","0","0",null],"0","-"],["2029","only","-","Dec","30",["3","0","0",null],"-60","-"],["2030","only","-","Feb","10",["2","0","0",null],"0","-"],["2030","only","-","Dec","22",["3","0","0",null],"-60","-"],["2031","only","-","Jan","26",["2","0","0",null],"0","-"],["2031","only","-","Dec","14",["3","0","0",null],"-60","-"],["2032","only","-","Jan","18",["2","0","0",null],"0","-"],["2032","only","-","Nov","28",["3","0","0",null],"-60","-"],["2033","only","-","Jan","9",["2","0","0",null],"0","-"],["2033","only","-","Nov","20",["3","0","0",null],"-60","-"],["2033","only","-","Dec","25",["2","0","0",null],"0","-"],["2034","only","-","Nov","5",["3","0","0",null],"-60","-"],["2034","only","-","Dec","17",["2","0","0",null],"0","-"],["2035","only","-","Oct","28",["3","0","0",null],"-60","-"],["2035","only","-","Dec","9",["2","0","0",null],"0","-"],["2036","only","-","Oct","19",["3","0","0",null],"-60","-"],["2036","only","-","Nov","23",["2","0","0",null],"0","-"],["2037","only","-","Oct","4",["3","0","0",null],"-60","-"],["2037","only","-","Nov","15",["2","0","0",null],"0","-"],["2038","only","-","Sep","26",["3","0","0",null],"-60","-"],["2038","only","-","Oct","31",["2","0","0",null],"0","-"],["2039","only","-","Sep","18",["3","0","0",null],"-60","-"],["2039","only","-","Oct","23",["2","0","0",null],"0","-"],["2040","only","-","Sep","2",["3","0","0",null],"-60","-"],["2040","only","-","Oct","14",["2","0","0",null],"0","-"],["2041","only","-","Aug","25",["3","0","0",null],"-60","-"],["2041","only","-","Sep","29",["2","0","0",null],"0","-"],["2042","only","-","Aug","10",["3","0","0",null],"-60","-"],["2042","only","-","Sep","21",["2","0","0",null],"0","-"],["2043","only","-","Aug","2",["3","0","0",null],"-60","-"],["2043","only","-","Sep","13",["2","0","0",null],"0","-"],["2044","only","-","Jul","24",["3","0","0",null],"-60","-"],["2044","only","-","Aug","28",["2","0","0",null],"0","-"],["2045","only","-","Jul","9",["3","0","0",null],"-60","-"],["2045","only","-","Aug","20",["2","0","0",null],"0","-"],["2046","only","-","Jul","1",["3","0","0",null],"-60","-"],["2046","only","-","Aug","5",["2","0","0",null],"0","-"],["2047","only","-","Jun","23",["3","0","0",null],"-60","-"],["2047","only","-","Jul","28",["2","0","0",null],"0","-"],["2048","only","-","Jun","7",["3","0","0",null],"-60","-"],["2048","only","-","Jul","19",["2","0","0",null],"0","-"],["2049","only","-","May","30",["3","0","0",null],"-60","-"],["2049","only","-","Jul","4",["2","0","0",null],"0","-"],["2050","only","-","May","15",["3","0","0",null],"-60","-"],["2050","only","-","Jun","26",["2","0","0",null],"0","-"],["2051","only","-","May","7",["3","0","0",null],"-60","-"],["2051","only","-","Jun","18",["2","0","0",null],"0","-"],["2052","only","-","Apr","28",["3","0","0",null],"-60","-"],["2052","only","-","Jun","2",["2","0","0",null],"0","-"],["2053","only","-","Apr","13",["3","0","0",null],"-60","-"],["2053","only","-","May","25",["2","0","0",null],"0","-"],["2054","only","-","Apr","5",["3","0","0",null],"-60","-"],["2054","only","-","May","10",["2","0","0",null],"0","-"],["2055","only","-","Mar","28",["3","0","0",null],"-60","-"],["2055","only","-","May","2",["2","0","0",null],"0","-"],["2056","only","-","Mar","12",["3","0","0",null],"-60","-"],["2056","only","-","Apr","23",["2","0","0",null],"0","-"],["2057","only","-","Mar","4",["3","0","0",null],"-60","-"],["2057","only","-","Apr","8",["2","0","0",null],"0","-"],["2058","only","-","Feb","17",["3","0","0",null],"-60","-"],["2058","only","-","Mar","31",["2","0","0",null],"0","-"],["2059","only","-","Feb","9",["3","0","0",null],"-60","-"],["2059","only","-","Mar","23",["2","0","0",null],"0","-"],["2060","only","-","Feb","1",["3","0","0",null],"-60","-"],["2060","only","-","Mar","7",["2","0","0",null],"0","-"],["2061","only","-","Jan","16",["3","0","0",null],"-60","-"],["2061","only","-","Feb","27",["2","0","0",null],"0","-"],["2062","only","-","Jan","8",["3","0","0",null],"-60","-"],["2062","only","-","Feb","12",["2","0","0",null],"0","-"],["2062","only","-","Dec","31",["3","0","0",null],"-60","-"],["2063","only","-","Feb","4",["2","0","0",null],"0","-"],["2063","only","-","Dec","16",["3","0","0",null],"-60","-"],["2064","only","-","Jan","27",["2","0","0",null],"0","-"],["2064","only","-","Dec","7",["3","0","0",null],"-60","-"],["2065","only","-","Jan","11",["2","0","0",null],"0","-"],["2065","only","-","Nov","22",["3","0","0",null],"-60","-"],["2066","only","-","Jan","3",["2","0","0",null],"0","-"],["2066","only","-","Nov","14",["3","0","0",null],"-60","-"],["2066","only","-","Dec","26",["2","0","0",null],"0","-"],["2067","only","-","Nov","6",["3","0","0",null],"-60","-"],["2067","only","-","Dec","11",["2","0","0",null],"0","-"],["2068","only","-","Oct","21",["3","0","0",null],"-60","-"],["2068","only","-","Dec","2",["2","0","0",null],"0","-"],["2069","only","-","Oct","13",["3","0","0",null],"-60","-"],["2069","only","-","Nov","17",["2","0","0",null],"0","-"],["2070","only","-","Oct","5",["3","0","0",null],"-60","-"],["2070","only","-","Nov","9",["2","0","0",null],"0","-"],["2071","only","-","Sep","20",["3","0","0",null],"-60","-"],["2071","only","-","Nov","1",["2","0","0",null],"0","-"],["2072","only","-","Sep","11",["3","0","0",null],"-60","-"],["2072","only","-","Oct","16",["2","0","0",null],"0","-"],["2073","only","-","Aug","27",["3","0","0",null],"-60","-"],["2073","only","-","Oct","8",["2","0","0",null],"0","-"],["2074","only","-","Aug","19",["3","0","0",null],"-60","-"],["2074","only","-","Sep","30",["2","0","0",null],"0","-"],["2075","only","-","Aug","11",["3","0","0",null],"-60","-"],["2075","only","-","Sep","15",["2","0","0",null],"0","-"],["2076","only","-","Jul","26",["3","0","0",null],"-60","-"],["2076","only","-","Sep","6",["2","0","0",null],"0","-"],["2077","only","-","Jul","18",["3","0","0",null],"-60","-"],["2077","only","-","Aug","22",["2","0","0",null],"0","-"],["2078","only","-","Jul","10",["3","0","0",null],"-60","-"],["2078","only","-","Aug","14",["2","0","0",null],"0","-"],["2079","only","-","Jun","25",["3","0","0",null],"-60","-"],["2079","only","-","Aug","6",["2","0","0",null],"0","-"],["2080","only","-","Jun","16",["3","0","0",null],"-60","-"],["2080","only","-","Jul","21",["2","0","0",null],"0","-"],["2081","only","-","Jun","1",["3","0","0",null],"-60","-"],["2081","only","-","Jul","13",["2","0","0",null],"0","-"],["2082","only","-","May","24",["3","0","0",null],"-60","-"],["2082","only","-","Jun","28",["2","0","0",null],"0","-"],["2083","only","-","May","16",["3","0","0",null],"-60","-"],["2083","only","-","Jun","20",["2","0","0",null],"0","-"],["2084","only","-","Apr","30",["3","0","0",null],"-60","-"],["2084","only","-","Jun","11",["2","0","0",null],"0","-"],["2085","only","-","Apr","22",["3","0","0",null],"-60","-"],["2085","only","-","May","27",["2","0","0",null],"0","-"],["2086","only","-","Apr","14",["3","0","0",null],"-60","-"],["2086","only","-","May","19",["2","0","0",null],"0","-"],["2087","only","-","Mar","30",["3","0","0",null],"-60","-"],["2087","only","-","May","11",["2","0","0",null],"0","-"]],Namibia:[["1994","only","-","Mar","21",["0","0","0",null],"-60","WAT"],["1994","2017","-","Sep","Sun>=1",["2","0","0",null],"0","CAT"],["1995","2017","-","Apr","Sun>=1",["2","0","0",null],"-60","WAT"]],SA:[["1942","1943","-","Sep","Sun>=15",["2","0","0",null],"60","-"],["1943","1944","-","Mar","Sun>=15",["2","0","0",null],"0","-"]],Sudan:[["1970","only","-","May","1",["0","0","0",null],"60","S"],["1970","1985","-","Oct","15",["0","0","0",null],"0","-"],["1971","only","-","Apr","30",["0","0","0",null],"60","S"],["1972","1985","-","Apr","lastSun",["0","0","0",null],"60","S"]],Tunisia:[["1939","only","-","Apr","15",["23","0","0","s"],"60","S"],["1939","only","-","Nov","18",["23","0","0","s"],"0","-"],["1940","only","-","Feb","25",["23","0","0","s"],"60","S"],["1941","only","-","Oct","6",["0","0","0",null],"0","-"],["1942","only","-","Mar","9",["0","0","0",null],"60","S"],["1942","only","-","Nov","2",["3","0","0",null],"0","-"],["1943","only","-","Mar","29",["2","0","0",null],"60","S"],["1943","only","-","Apr","17",["2","0","0",null],"0","-"],["1943","only","-","Apr","25",["2","0","0",null],"60","S"],["1943","only","-","Oct","4",["2","0","0",null],"0","-"],["1944","1945","-","Apr","Mon>=1",["2","0","0",null],"60","S"],["1944","only","-","Oct","8",["0","0","0",null],"0","-"],["1945","only","-","Sep","16",["0","0","0",null],"0","-"],["1977","only","-","Apr","30",["0","0","0","s"],"60","S"],["1977","only","-","Sep","24",["0","0","0","s"],"0","-"],["1978","only","-","May","1",["0","0","0","s"],"60","S"],["1978","only","-","Oct","1",["0","0","0","s"],"0","-"],["1988","only","-","Jun","1",["0","0","0","s"],"60","S"],["1988","1990","-","Sep","lastSun",["0","0","0","s"],"0","-"],["1989","only","-","Mar","26",["0","0","0","s"],"60","S"],["1990","only","-","May","1",["0","0","0","s"],"60","S"],["2005","only","-","May","1",["0","0","0","s"],"60","S"],["2005","only","-","Sep","30",["1","0","0","s"],"0","-"],["2006","2008","-","Mar","lastSun",["2","0","0","s"],"60","S"],["2006","2008","-","Oct","lastSun",["2","0","0","s"],"0","-"]],Troll:[["2005","max","-","Mar","lastSun",["1","0","0","u"],"120","+02"],["2004","max","-","Oct","lastSun",["1","0","0","u"],"0","+00"]],EUAsia:[["1981","max","-","Mar","lastSun",["1","0","0","u"],"60","S"],["1979","1995","-","Sep","lastSun",["1","0","0","u"],"0","-"],["1996","max","-","Oct","lastSun",["1","0","0","u"],"0","-"]],"E-EurAsia":[["1981","max","-","Mar","lastSun",["0","0","0",null],"60","-"],["1979","1995","-","Sep","lastSun",["0","0","0",null],"0","-"],["1996","max","-","Oct","lastSun",["0","0","0",null],"0","-"]],RussiaAsia:[["1981","1984","-","Apr","1",["0","0","0",null],"60","-"],["1981","1983","-","Oct","1",["0","0","0",null],"0","-"],["1984","1995","-","Sep","lastSun",["2","0","0","s"],"0","-"],["1985","2010","-","Mar","lastSun",["2","0","0","s"],"60","-"],["1996","2010","-","Oct","lastSun",["2","0","0","s"],"0","-"]],Armenia:[["2011","only","-","Mar","lastSun",["2","0","0","s"],"60","-"],["2011","only","-","Oct","lastSun",["2","0","0","s"],"0","-"]],Azer:[["1997","2015","-","Mar","lastSun",["4","0","0",null],"60","-"],["1997","2015","-","Oct","lastSun",["5","0","0",null],"0","-"]],Dhaka:[["2009","only","-","Jun","19",["23","0","0",null],"60","-"],["2009","only","-","Dec","31",["24","0","0",null],"0","-"]],Shang:[["1919","only","-","Apr","12",["24","0","0",null],"60","D"],["1919","only","-","Sep","30",["24","0","0",null],"0","S"],["1940","only","-","Jun","1",["0","0","0",null],"60","D"],["1940","only","-","Oct","12",["24","0","0",null],"0","S"],["1941","only","-","Mar","15",["0","0","0",null],"60","D"],["1941","only","-","Nov","1",["24","0","0",null],"0","S"],["1942","only","-","Jan","31",["0","0","0",null],"60","D"],["1945","only","-","Sep","1",["24","0","0",null],"0","S"],["1946","only","-","May","15",["0","0","0",null],"60","D"],["1946","only","-","Sep","30",["24","0","0",null],"0","S"],["1947","only","-","Apr","15",["0","0","0",null],"60","D"],["1947","only","-","Oct","31",["24","0","0",null],"0","S"],["1948","1949","-","May","1",["0","0","0",null],"60","D"],["1948","1949","-","Sep","30",["24","0","0",null],"0","S",""]],PRC:[["1986","only","-","May","4",["2","0","0",null],"60","D"],["1986","1991","-","Sep","Sun>=11",["2","0","0",null],"0","S"],["1987","1991","-","Apr","Sun>=11",["2","0","0",null],"60","D"]],HK:[["1946","only","-","Apr","21",["0","0","0",null],"60","S"],["1946","only","-","Dec","1",["3","30","0","s"],"0","-"],["1947","only","-","Apr","13",["3","30","0","s"],"60","S"],["1947","only","-","Nov","30",["3","30","0","s"],"0","-"],["1948","only","-","May","2",["3","30","0","s"],"60","S"],["1948","1952","-","Oct","Sun>=28",["3","30","0","s"],"0","-"],["1949","1953","-","Apr","Sun>=1",["3","30","0",null],"60","S"],["1953","1964","-","Oct","Sun>=31",["3","30","0",null],"0","-"],["1954","1964","-","Mar","Sun>=18",["3","30","0",null],"60","S"],["1965","1976","-","Apr","Sun>=16",["3","30","0",null],"60","S"],["1965","1976","-","Oct","Sun>=16",["3","30","0",null],"0","-"],["1973","only","-","Dec","30",["3","30","0",null],"60","S"],["1979","only","-","May","13",["3","30","0",null],"60","S"],["1979","only","-","Oct","21",["3","30","0",null],"0","-"]],Taiwan:[["1946","only","-","May","15",["0","0","0",null],"60","D"],["1946","only","-","Oct","1",["0","0","0",null],"0","S"],["1947","only","-","Apr","15",["0","0","0",null],"60","D"],["1947","only","-","Nov","1",["0","0","0",null],"0","S"],["1948","1951","-","May","1",["0","0","0",null],"60","D"],["1948","1951","-","Oct","1",["0","0","0",null],"0","S"],["1952","only","-","Mar","1",["0","0","0",null],"60","D"],["1952","1954","-","Nov","1",["0","0","0",null],"0","S"],["1953","1959","-","Apr","1",["0","0","0",null],"60","D"],["1955","1961","-","Oct","1",["0","0","0",null],"0","S"],["1960","1961","-","Jun","1",["0","0","0",null],"60","D"],["1974","1975","-","Apr","1",["0","0","0",null],"60","D"],["1974","1975","-","Oct","1",["0","0","0",null],"0","S"],["1979","only","-","Jul","1",["0","0","0",null],"60","D"],["1979","only","-","Oct","1",["0","0","0",null],"0","S"]],Macau:[["1942","1943","-","Apr","30",["23","0","0",null],"60","-"],["1942","only","-","Nov","17",["23","0","0",null],"0","-"],["1943","only","-","Sep","30",["23","0","0",null],"0","S"],["1946","only","-","Apr","30",["23","0","0","s"],"60","D"],["1946","only","-","Sep","30",["23","0","0","s"],"0","S"],["1947","only","-","Apr","19",["23","0","0","s"],"60","D"],["1947","only","-","Nov","30",["23","0","0","s"],"0","S"],["1948","only","-","May","2",["23","0","0","s"],"60","D"],["1948","only","-","Oct","31",["23","0","0","s"],"0","S"],["1949","1950","-","Apr","Sat>=1",["23","0","0","s"],"60","D"],["1949","1950","-","Oct","lastSat",["23","0","0","s"],"0","S"],["1951","only","-","Mar","31",["23","0","0","s"],"60","D"],["1951","only","-","Oct","28",["23","0","0","s"],"0","S"],["1952","1953","-","Apr","Sat>=1",["23","0","0","s"],"60","D"],["1952","only","-","Nov","1",["23","0","0","s"],"0","S"],["1953","1954","-","Oct","lastSat",["23","0","0","s"],"0","S"],["1954","1956","-","Mar","Sat>=17",["23","0","0","s"],"60","D"],["1955","only","-","Nov","5",["23","0","0","s"],"0","S"],["1956","1964","-","Nov","Sun>=1",["3","30","0",null],"0","S"],["1957","1964","-","Mar","Sun>=18",["3","30","0",null],"60","D"],["1965","1973","-","Apr","Sun>=16",["3","30","0",null],"60","D"],["1965","1966","-","Oct","Sun>=16",["2","30","0",null],"0","S"],["1967","1976","-","Oct","Sun>=16",["3","30","0",null],"0","S"],["1973","only","-","Dec","30",["3","30","0",null],"60","D"],["1975","1976","-","Apr","Sun>=16",["3","30","0",null],"60","D"],["1979","only","-","May","13",["3","30","0",null],"60","D"],["1979","only","-","Oct","Sun>=16",["3","30","0",null],"0","S"]],Cyprus:[["1975","only","-","Apr","13",["0","0","0",null],"60","S"],["1975","only","-","Oct","12",["0","0","0",null],"0","-"],["1976","only","-","May","15",["0","0","0",null],"60","S"],["1976","only","-","Oct","11",["0","0","0",null],"0","-"],["1977","1980","-","Apr","Sun>=1",["0","0","0",null],"60","S"],["1977","only","-","Sep","25",["0","0","0",null],"0","-"],["1978","only","-","Oct","2",["0","0","0",null],"0","-"],["1979","1997","-","Sep","lastSun",["0","0","0",null],"0","-"],["1981","1998","-","Mar","lastSun",["0","0","0",null],"60","S"]],Iran:[["1910","only","-","Jan","1",["0","0","0",null],"0","-"],["1977","only","-","Mar","21",["23","0","0",null],"60","-"],["1977","only","-","Oct","20",["24","0","0",null],"0","-"],["1978","only","-","Mar","24",["24","0","0",null],"60","-"],["1978","only","-","Aug","5",["1","0","0",null],"0","-"],["1979","only","-","May","26",["24","0","0",null],"60","-"],["1979","only","-","Sep","18",["24","0","0",null],"0","-"],["1980","only","-","Mar","20",["24","0","0",null],"60","-"],["1980","only","-","Sep","22",["24","0","0",null],"0","-"],["1991","only","-","May","2",["24","0","0",null],"60","-"],["1992","1995","-","Mar","21",["24","0","0",null],"60","-"],["1991","1995","-","Sep","21",["24","0","0",null],"0","-"],["1996","only","-","Mar","20",["24","0","0",null],"60","-"],["1996","only","-","Sep","20",["24","0","0",null],"0","-"],["1997","1999","-","Mar","21",["24","0","0",null],"60","-"],["1997","1999","-","Sep","21",["24","0","0",null],"0","-"],["2000","only","-","Mar","20",["24","0","0",null],"60","-"],["2000","only","-","Sep","20",["24","0","0",null],"0","-"],["2001","2003","-","Mar","21",["24","0","0",null],"60","-"],["2001","2003","-","Sep","21",["24","0","0",null],"0","-"],["2004","only","-","Mar","20",["24","0","0",null],"60","-"],["2004","only","-","Sep","20",["24","0","0",null],"0","-"],["2005","only","-","Mar","21",["24","0","0",null],"60","-"],["2005","only","-","Sep","21",["24","0","0",null],"0","-"],["2008","only","-","Mar","20",["24","0","0",null],"60","-"],["2008","only","-","Sep","20",["24","0","0",null],"0","-"],["2009","2011","-","Mar","21",["24","0","0",null],"60","-"],["2009","2011","-","Sep","21",["24","0","0",null],"0","-"],["2012","only","-","Mar","20",["24","0","0",null],"60","-"],["2012","only","-","Sep","20",["24","0","0",null],"0","-"],["2013","2015","-","Mar","21",["24","0","0",null],"60","-"],["2013","2015","-","Sep","21",["24","0","0",null],"0","-"],["2016","only","-","Mar","20",["24","0","0",null],"60","-"],["2016","only","-","Sep","20",["24","0","0",null],"0","-"],["2017","2019","-","Mar","21",["24","0","0",null],"60","-"],["2017","2019","-","Sep","21",["24","0","0",null],"0","-"],["2020","only","-","Mar","20",["24","0","0",null],"60","-"],["2020","only","-","Sep","20",["24","0","0",null],"0","-"],["2021","2022","-","Mar","21",["24","0","0",null],"60","-"],["2021","2022","-","Sep","21",["24","0","0",null],"0","-"]],Iraq:[["1982","only","-","May","1",["0","0","0",null],"60","-"],["1982","1984","-","Oct","1",["0","0","0",null],"0","-"],["1983","only","-","Mar","31",["0","0","0",null],"60","-"],["1984","1985","-","Apr","1",["0","0","0",null],"60","-"],["1985","1990","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1986","1990","-","Mar","lastSun",["1","0","0","s"],"60","-"],["1991","2007","-","Apr","1",["3","0","0","s"],"60","-"],["1991","2007","-","Oct","1",["3","0","0","s"],"0","-"]],Zion:[["1940","only","-","May","31",["24","0","0","u"],"60","D"],["1940","only","-","Sep","30",["24","0","0","u"],"0","S"],["1940","only","-","Nov","16",["24","0","0","u"],"60","D"],["1942","1946","-","Oct","31",["24","0","0","u"],"0","S"],["1943","1944","-","Mar","31",["24","0","0","u"],"60","D"],["1945","1946","-","Apr","15",["24","0","0","u"],"60","D"],["1948","only","-","May","22",["24","0","0","u"],"120","DD"],["1948","only","-","Aug","31",["24","0","0","u"],"60","D"],["1948","1949","-","Oct","31",["24","0","0","u"],"0","S"],["1949","only","-","Apr","30",["24","0","0","u"],"60","D"],["1950","only","-","Apr","15",["24","0","0","u"],"60","D"],["1950","only","-","Sep","14",["24","0","0","u"],"0","S"],["1951","only","-","Mar","31",["24","0","0","u"],"60","D"],["1951","only","-","Nov","10",["24","0","0","u"],"0","S"],["1952","only","-","Apr","19",["24","0","0","u"],"60","D"],["1952","only","-","Oct","18",["24","0","0","u"],"0","S"],["1953","only","-","Apr","11",["24","0","0","u"],"60","D"],["1953","only","-","Sep","12",["24","0","0","u"],"0","S"],["1954","only","-","Jun","12",["24","0","0","u"],"60","D"],["1954","only","-","Sep","11",["24","0","0","u"],"0","S"],["1955","only","-","Jun","11",["24","0","0","u"],"60","D"],["1955","only","-","Sep","10",["24","0","0","u"],"0","S"],["1956","only","-","Jun","2",["24","0","0","u"],"60","D"],["1956","only","-","Sep","29",["24","0","0","u"],"0","S"],["1957","only","-","Apr","27",["24","0","0","u"],"60","D"],["1957","only","-","Sep","21",["24","0","0","u"],"0","S"],["1974","only","-","Jul","6",["24","0","0",null],"60","D"],["1974","only","-","Oct","12",["24","0","0",null],"0","S"],["1975","only","-","Apr","19",["24","0","0",null],"60","D"],["1975","only","-","Aug","30",["24","0","0",null],"0","S"],["1980","only","-","Aug","2",["24","0","0","s"],"60","D"],["1980","only","-","Sep","13",["24","0","0","s"],"0","S"],["1984","only","-","May","5",["24","0","0","s"],"60","D"],["1984","only","-","Aug","25",["24","0","0","s"],"0","S"],["1985","only","-","Apr","13",["24","0","0",null],"60","D"],["1985","only","-","Aug","31",["24","0","0",null],"0","S"],["1986","only","-","May","17",["24","0","0",null],"60","D"],["1986","only","-","Sep","6",["24","0","0",null],"0","S"],["1987","only","-","Apr","14",["24","0","0",null],"60","D"],["1987","only","-","Sep","12",["24","0","0",null],"0","S"],["1988","only","-","Apr","9",["24","0","0",null],"60","D"],["1988","only","-","Sep","3",["24","0","0",null],"0","S"],["1989","only","-","Apr","29",["24","0","0",null],"60","D"],["1989","only","-","Sep","2",["24","0","0",null],"0","S"],["1990","only","-","Mar","24",["24","0","0",null],"60","D"],["1990","only","-","Aug","25",["24","0","0",null],"0","S"],["1991","only","-","Mar","23",["24","0","0",null],"60","D"],["1991","only","-","Aug","31",["24","0","0",null],"0","S"],["1992","only","-","Mar","28",["24","0","0",null],"60","D"],["1992","only","-","Sep","5",["24","0","0",null],"0","S"],["1993","only","-","Apr","2",["0","0","0",null],"60","D"],["1993","only","-","Sep","5",["0","0","0",null],"0","S"],["1994","only","-","Apr","1",["0","0","0",null],"60","D"],["1994","only","-","Aug","28",["0","0","0",null],"0","S"],["1995","only","-","Mar","31",["0","0","0",null],"60","D"],["1995","only","-","Sep","3",["0","0","0",null],"0","S"],["1996","only","-","Mar","14",["24","0","0",null],"60","D"],["1996","only","-","Sep","15",["24","0","0",null],"0","S"],["1997","only","-","Mar","20",["24","0","0",null],"60","D"],["1997","only","-","Sep","13",["24","0","0",null],"0","S"],["1998","only","-","Mar","20",["0","0","0",null],"60","D"],["1998","only","-","Sep","6",["0","0","0",null],"0","S"],["1999","only","-","Apr","2",["2","0","0",null],"60","D"],["1999","only","-","Sep","3",["2","0","0",null],"0","S"],["2000","only","-","Apr","14",["2","0","0",null],"60","D"],["2000","only","-","Oct","6",["1","0","0",null],"0","S"],["2001","only","-","Apr","9",["1","0","0",null],"60","D"],["2001","only","-","Sep","24",["1","0","0",null],"0","S"],["2002","only","-","Mar","29",["1","0","0",null],"60","D"],["2002","only","-","Oct","7",["1","0","0",null],"0","S"],["2003","only","-","Mar","28",["1","0","0",null],"60","D"],["2003","only","-","Oct","3",["1","0","0",null],"0","S"],["2004","only","-","Apr","7",["1","0","0",null],"60","D"],["2004","only","-","Sep","22",["1","0","0",null],"0","S"],["2005","2012","-","Apr","Fri<=1",["2","0","0",null],"60","D"],["2005","only","-","Oct","9",["2","0","0",null],"0","S"],["2006","only","-","Oct","1",["2","0","0",null],"0","S"],["2007","only","-","Sep","16",["2","0","0",null],"0","S"],["2008","only","-","Oct","5",["2","0","0",null],"0","S"],["2009","only","-","Sep","27",["2","0","0",null],"0","S"],["2010","only","-","Sep","12",["2","0","0",null],"0","S"],["2011","only","-","Oct","2",["2","0","0",null],"0","S"],["2012","only","-","Sep","23",["2","0","0",null],"0","S"],["2013","max","-","Mar","Fri>=23",["2","0","0",null],"60","D"],["2013","max","-","Oct","lastSun",["2","0","0",null],"0","S"]],Japan:[["1948","only","-","May","Sat>=1",["24","0","0",null],"60","D"],["1948","1951","-","Sep","Sat>=8",["25","0","0",null],"0","S"],["1949","only","-","Apr","Sat>=1",["24","0","0",null],"60","D"],["1950","1951","-","May","Sat>=1",["24","0","0",null],"60","D"]],Jordan:[["1973","only","-","Jun","6",["0","0","0",null],"60","S"],["1973","1975","-","Oct","1",["0","0","0",null],"0","-"],["1974","1977","-","May","1",["0","0","0",null],"60","S"],["1976","only","-","Nov","1",["0","0","0",null],"0","-"],["1977","only","-","Oct","1",["0","0","0",null],"0","-"],["1978","only","-","Apr","30",["0","0","0",null],"60","S"],["1978","only","-","Sep","30",["0","0","0",null],"0","-"],["1985","only","-","Apr","1",["0","0","0",null],"60","S"],["1985","only","-","Oct","1",["0","0","0",null],"0","-"],["1986","1988","-","Apr","Fri>=1",["0","0","0",null],"60","S"],["1986","1990","-","Oct","Fri>=1",["0","0","0",null],"0","-"],["1989","only","-","May","8",["0","0","0",null],"60","S"],["1990","only","-","Apr","27",["0","0","0",null],"60","S"],["1991","only","-","Apr","17",["0","0","0",null],"60","S"],["1991","only","-","Sep","27",["0","0","0",null],"0","-"],["1992","only","-","Apr","10",["0","0","0",null],"60","S"],["1992","1993","-","Oct","Fri>=1",["0","0","0",null],"0","-"],["1993","1998","-","Apr","Fri>=1",["0","0","0",null],"60","S"],["1994","only","-","Sep","Fri>=15",["0","0","0",null],"0","-"],["1995","1998","-","Sep","Fri>=15",["0","0","0","s"],"0","-"],["1999","only","-","Jul","1",["0","0","0","s"],"60","S"],["1999","2002","-","Sep","lastFri",["0","0","0","s"],"0","-"],["2000","2001","-","Mar","lastThu",["0","0","0","s"],"60","S"],["2002","2012","-","Mar","lastThu",["24","0","0",null],"60","S"],["2003","only","-","Oct","24",["0","0","0","s"],"0","-"],["2004","only","-","Oct","15",["0","0","0","s"],"0","-"],["2005","only","-","Sep","lastFri",["0","0","0","s"],"0","-"],["2006","2011","-","Oct","lastFri",["0","0","0","s"],"0","-"],["2013","only","-","Dec","20",["0","0","0",null],"0","-"],["2014","2021","-","Mar","lastThu",["24","0","0",null],"60","S"],["2014","2022","-","Oct","lastFri",["0","0","0","s"],"0","-"],["2022","only","-","Feb","lastThu",["24","0","0",null],"60","S"]],Kyrgyz:[["1992","1996","-","Apr","Sun>=7",["0","0","0","s"],"60","-"],["1992","1996","-","Sep","lastSun",["0","0","0",null],"0","-"],["1997","2005","-","Mar","lastSun",["2","30","0",null],"60","-"],["1997","2004","-","Oct","lastSun",["2","30","0",null],"0","-"]],ROK:[["1948","only","-","Jun","1",["0","0","0",null],"60","D"],["1948","only","-","Sep","12",["24","0","0",null],"0","S"],["1949","only","-","Apr","3",["0","0","0",null],"60","D"],["1949","1951","-","Sep","Sat>=7",["24","0","0",null],"0","S"],["1950","only","-","Apr","1",["0","0","0",null],"60","D"],["1951","only","-","May","6",["0","0","0",null],"60","D"],["1955","only","-","May","5",["0","0","0",null],"60","D"],["1955","only","-","Sep","8",["24","0","0",null],"0","S"],["1956","only","-","May","20",["0","0","0",null],"60","D"],["1956","only","-","Sep","29",["24","0","0",null],"0","S"],["1957","1960","-","May","Sun>=1",["0","0","0",null],"60","D"],["1957","1960","-","Sep","Sat>=17",["24","0","0",null],"0","S"],["1987","1988","-","May","Sun>=8",["2","0","0",null],"60","D"],["1987","1988","-","Oct","Sun>=8",["3","0","0",null],"0","S"]],Lebanon:[["1920","only","-","Mar","28",["0","0","0",null],"60","S"],["1920","only","-","Oct","25",["0","0","0",null],"0","-"],["1921","only","-","Apr","3",["0","0","0",null],"60","S"],["1921","only","-","Oct","3",["0","0","0",null],"0","-"],["1922","only","-","Mar","26",["0","0","0",null],"60","S"],["1922","only","-","Oct","8",["0","0","0",null],"0","-"],["1923","only","-","Apr","22",["0","0","0",null],"60","S"],["1923","only","-","Sep","16",["0","0","0",null],"0","-"],["1957","1961","-","May","1",["0","0","0",null],"60","S"],["1957","1961","-","Oct","1",["0","0","0",null],"0","-"],["1972","only","-","Jun","22",["0","0","0",null],"60","S"],["1972","1977","-","Oct","1",["0","0","0",null],"0","-"],["1973","1977","-","May","1",["0","0","0",null],"60","S"],["1978","only","-","Apr","30",["0","0","0",null],"60","S"],["1978","only","-","Sep","30",["0","0","0",null],"0","-"],["1984","1987","-","May","1",["0","0","0",null],"60","S"],["1984","1991","-","Oct","16",["0","0","0",null],"0","-"],["1988","only","-","Jun","1",["0","0","0",null],"60","S"],["1989","only","-","May","10",["0","0","0",null],"60","S"],["1990","1992","-","May","1",["0","0","0",null],"60","S"],["1992","only","-","Oct","4",["0","0","0",null],"0","-"],["1993","max","-","Mar","lastSun",["0","0","0",null],"60","S"],["1993","1998","-","Sep","lastSun",["0","0","0",null],"0","-"],["1999","max","-","Oct","lastSun",["0","0","0",null],"0","-"]],NBorneo:[["1935","1941","-","Sep","14",["0","0","0",null],"20","-"],["1935","1941","-","Dec","14",["0","0","0",null],"0","-"]],Mongol:[["1983","1984","-","Apr","1",["0","0","0",null],"60","-"],["1983","only","-","Oct","1",["0","0","0",null],"0","-"],["1985","1998","-","Mar","lastSun",["0","0","0",null],"60","-"],["1984","1998","-","Sep","lastSun",["0","0","0",null],"0","-"],["2001","only","-","Apr","lastSat",["2","0","0",null],"60","-"],["2001","2006","-","Sep","lastSat",["2","0","0",null],"0","-"],["2002","2006","-","Mar","lastSat",["2","0","0",null],"60","-"],["2015","2016","-","Mar","lastSat",["2","0","0",null],"60","-"],["2015","2016","-","Sep","lastSat",["0","0","0",null],"0","-"]],Pakistan:[["2002","only","-","Apr","Sun>=2",["0","0","0",null],"60","S"],["2002","only","-","Oct","Sun>=2",["0","0","0",null],"0","-"],["2008","only","-","Jun","1",["0","0","0",null],"60","S"],["2008","2009","-","Nov","1",["0","0","0",null],"0","-"],["2009","only","-","Apr","15",["0","0","0",null],"60","S"]],EgyptAsia:[["1957","only","-","May","10",["0","0","0",null],"60","S"],["1957","1958","-","Oct","1",["0","0","0",null],"0","-"],["1958","only","-","May","1",["0","0","0",null],"60","S"],["1959","1967","-","May","1",["1","0","0",null],"60","S"],["1959","1965","-","Sep","30",["3","0","0",null],"0","-"],["1966","only","-","Oct","1",["3","0","0",null],"0","-"]],Palestine:[["1999","2005","-","Apr","Fri>=15",["0","0","0",null],"60","S"],["1999","2003","-","Oct","Fri>=15",["0","0","0",null],"0","-"],["2004","only","-","Oct","1",["1","0","0",null],"0","-"],["2005","only","-","Oct","4",["2","0","0",null],"0","-"],["2006","2007","-","Apr","1",["0","0","0",null],"60","S"],["2006","only","-","Sep","22",["0","0","0",null],"0","-"],["2007","only","-","Sep","13",["2","0","0",null],"0","-"],["2008","2009","-","Mar","lastFri",["0","0","0",null],"60","S"],["2008","only","-","Sep","1",["0","0","0",null],"0","-"],["2009","only","-","Sep","4",["1","0","0",null],"0","-"],["2010","only","-","Mar","26",["0","0","0",null],"60","S"],["2010","only","-","Aug","11",["0","0","0",null],"0","-"],["2011","only","-","Apr","1",["0","1","0",null],"60","S"],["2011","only","-","Aug","1",["0","0","0",null],"0","-"],["2011","only","-","Aug","30",["0","0","0",null],"60","S"],["2011","only","-","Sep","30",["0","0","0",null],"0","-"],["2012","2014","-","Mar","lastThu",["24","0","0",null],"60","S"],["2012","only","-","Sep","21",["1","0","0",null],"0","-"],["2013","only","-","Sep","27",["0","0","0",null],"0","-"],["2014","only","-","Oct","24",["0","0","0",null],"0","-"],["2015","only","-","Mar","28",["0","0","0",null],"60","S"],["2015","only","-","Oct","23",["1","0","0",null],"0","-"],["2016","2018","-","Mar","Sat<=30",["1","0","0",null],"60","S"],["2016","2018","-","Oct","Sat<=30",["1","0","0",null],"0","-"],["2019","only","-","Mar","29",["0","0","0",null],"60","S"],["2019","only","-","Oct","Sat<=30",["0","0","0",null],"0","-"],["2020","2021","-","Mar","Sat<=30",["0","0","0",null],"60","S"],["2020","only","-","Oct","24",["1","0","0",null],"0","-"],["2021","only","-","Oct","29",["1","0","0",null],"0","-"],["2022","only","-","Mar","27",["0","0","0",null],"60","S"],["2022","2035","-","Oct","Sat<=30",["2","0","0",null],"0","-"],["2023","only","-","Apr","29",["2","0","0",null],"60","S"],["2024","only","-","Apr","13",["2","0","0",null],"60","S"],["2025","only","-","Apr","5",["2","0","0",null],"60","S"],["2026","2054","-","Mar","Sat<=30",["2","0","0",null],"60","S"],["2036","only","-","Oct","18",["2","0","0",null],"0","-"],["2037","only","-","Oct","10",["2","0","0",null],"0","-"],["2038","only","-","Sep","25",["2","0","0",null],"0","-"],["2039","only","-","Sep","17",["2","0","0",null],"0","-"],["2039","only","-","Oct","22",["2","0","0",null],"60","S"],["2039","2067","-","Oct","Sat<=30",["2","0","0",null],"0","-"],["2040","only","-","Sep","1",["2","0","0",null],"0","-"],["2040","only","-","Oct","13",["2","0","0",null],"60","S"],["2041","only","-","Aug","24",["2","0","0",null],"0","-"],["2041","only","-","Sep","28",["2","0","0",null],"60","S"],["2042","only","-","Aug","16",["2","0","0",null],"0","-"],["2042","only","-","Sep","20",["2","0","0",null],"60","S"],["2043","only","-","Aug","1",["2","0","0",null],"0","-"],["2043","only","-","Sep","12",["2","0","0",null],"60","S"],["2044","only","-","Jul","23",["2","0","0",null],"0","-"],["2044","only","-","Aug","27",["2","0","0",null],"60","S"],["2045","only","-","Jul","15",["2","0","0",null],"0","-"],["2045","only","-","Aug","19",["2","0","0",null],"60","S"],["2046","only","-","Jun","30",["2","0","0",null],"0","-"],["2046","only","-","Aug","11",["2","0","0",null],"60","S"],["2047","only","-","Jun","22",["2","0","0",null],"0","-"],["2047","only","-","Jul","27",["2","0","0",null],"60","S"],["2048","only","-","Jun","6",["2","0","0",null],"0","-"],["2048","only","-","Jul","18",["2","0","0",null],"60","S"],["2049","only","-","May","29",["2","0","0",null],"0","-"],["2049","only","-","Jul","3",["2","0","0",null],"60","S"],["2050","only","-","May","21",["2","0","0",null],"0","-"],["2050","only","-","Jun","25",["2","0","0",null],"60","S"],["2051","only","-","May","6",["2","0","0",null],"0","-"],["2051","only","-","Jun","17",["2","0","0",null],"60","S"],["2052","only","-","Apr","27",["2","0","0",null],"0","-"],["2052","only","-","Jun","1",["2","0","0",null],"60","S"],["2053","only","-","Apr","12",["2","0","0",null],"0","-"],["2053","only","-","May","24",["2","0","0",null],"60","S"],["2054","only","-","Apr","4",["2","0","0",null],"0","-"],["2054","only","-","May","16",["2","0","0",null],"60","S"],["2055","only","-","May","1",["2","0","0",null],"60","S"],["2056","only","-","Apr","22",["2","0","0",null],"60","S"],["2057","only","-","Apr","7",["2","0","0",null],"60","S"],["2058","max","-","Mar","Sat<=30",["2","0","0",null],"60","S"],["2068","only","-","Oct","20",["2","0","0",null],"0","-"],["2069","only","-","Oct","12",["2","0","0",null],"0","-"],["2070","only","-","Oct","4",["2","0","0",null],"0","-"],["2071","only","-","Sep","19",["2","0","0",null],"0","-"],["2072","only","-","Sep","10",["2","0","0",null],"0","-"],["2072","only","-","Oct","15",["2","0","0",null],"60","S"],["2073","only","-","Sep","2",["2","0","0",null],"0","-"],["2073","only","-","Oct","7",["2","0","0",null],"60","S"],["2074","only","-","Aug","18",["2","0","0",null],"0","-"],["2074","only","-","Sep","29",["2","0","0",null],"60","S"],["2075","only","-","Aug","10",["2","0","0",null],"0","-"],["2075","only","-","Sep","14",["2","0","0",null],"60","S"],["2075","max","-","Oct","Sat<=30",["2","0","0",null],"0","-"],["2076","only","-","Jul","25",["2","0","0",null],"0","-"],["2076","only","-","Sep","5",["2","0","0",null],"60","S"],["2077","only","-","Jul","17",["2","0","0",null],"0","-"],["2077","only","-","Aug","28",["2","0","0",null],"60","S"],["2078","only","-","Jul","9",["2","0","0",null],"0","-"],["2078","only","-","Aug","13",["2","0","0",null],"60","S"],["2079","only","-","Jun","24",["2","0","0",null],"0","-"],["2079","only","-","Aug","5",["2","0","0",null],"60","S"],["2080","only","-","Jun","15",["2","0","0",null],"0","-"],["2080","only","-","Jul","20",["2","0","0",null],"60","S"],["2081","only","-","Jun","7",["2","0","0",null],"0","-"],["2081","only","-","Jul","12",["2","0","0",null],"60","S"],["2082","only","-","May","23",["2","0","0",null],"0","-"],["2082","only","-","Jul","4",["2","0","0",null],"60","S"],["2083","only","-","May","15",["2","0","0",null],"0","-"],["2083","only","-","Jun","19",["2","0","0",null],"60","S"],["2084","only","-","Apr","29",["2","0","0",null],"0","-"],["2084","only","-","Jun","10",["2","0","0",null],"60","S"],["2085","only","-","Apr","21",["2","0","0",null],"0","-"],["2085","only","-","Jun","2",["2","0","0",null],"60","S"],["2086","only","-","Apr","13",["2","0","0",null],"0","-"],["2086","only","-","May","18",["2","0","0",null],"60","S"]],Phil:[["1936","only","-","Nov","1",["0","0","0",null],"60","D"],["1937","only","-","Feb","1",["0","0","0",null],"0","S"],["1954","only","-","Apr","12",["0","0","0",null],"60","D"],["1954","only","-","Jul","1",["0","0","0",null],"0","S"],["1978","only","-","Mar","22",["0","0","0",null],"60","D"],["1978","only","-","Sep","21",["0","0","0",null],"0","S"]],Syria:[["1920","1923","-","Apr","Sun>=15",["2","0","0",null],"60","S"],["1920","1923","-","Oct","Sun>=1",["2","0","0",null],"0","-"],["1962","only","-","Apr","29",["2","0","0",null],"60","S"],["1962","only","-","Oct","1",["2","0","0",null],"0","-"],["1963","1965","-","May","1",["2","0","0",null],"60","S"],["1963","only","-","Sep","30",["2","0","0",null],"0","-"],["1964","only","-","Oct","1",["2","0","0",null],"0","-"],["1965","only","-","Sep","30",["2","0","0",null],"0","-"],["1966","only","-","Apr","24",["2","0","0",null],"60","S"],["1966","1976","-","Oct","1",["2","0","0",null],"0","-"],["1967","1978","-","May","1",["2","0","0",null],"60","S"],["1977","1978","-","Sep","1",["2","0","0",null],"0","-"],["1983","1984","-","Apr","9",["2","0","0",null],"60","S"],["1983","1984","-","Oct","1",["2","0","0",null],"0","-"],["1986","only","-","Feb","16",["2","0","0",null],"60","S"],["1986","only","-","Oct","9",["2","0","0",null],"0","-"],["1987","only","-","Mar","1",["2","0","0",null],"60","S"],["1987","1988","-","Oct","31",["2","0","0",null],"0","-"],["1988","only","-","Mar","15",["2","0","0",null],"60","S"],["1989","only","-","Mar","31",["2","0","0",null],"60","S"],["1989","only","-","Oct","1",["2","0","0",null],"0","-"],["1990","only","-","Apr","1",["2","0","0",null],"60","S"],["1990","only","-","Sep","30",["2","0","0",null],"0","-"],["1991","only","-","Apr","1",["0","0","0",null],"60","S"],["1991","1992","-","Oct","1",["0","0","0",null],"0","-"],["1992","only","-","Apr","8",["0","0","0",null],"60","S"],["1993","only","-","Mar","26",["0","0","0",null],"60","S"],["1993","only","-","Sep","25",["0","0","0",null],"0","-"],["1994","1996","-","Apr","1",["0","0","0",null],"60","S"],["1994","2005","-","Oct","1",["0","0","0",null],"0","-"],["1997","1998","-","Mar","lastMon",["0","0","0",null],"60","S"],["1999","2006","-","Apr","1",["0","0","0",null],"60","S"],["2006","only","-","Sep","22",["0","0","0",null],"0","-"],["2007","only","-","Mar","lastFri",["0","0","0",null],"60","S"],["2007","only","-","Nov","Fri>=1",["0","0","0",null],"0","-"],["2008","only","-","Apr","Fri>=1",["0","0","0",null],"60","S"],["2008","only","-","Nov","1",["0","0","0",null],"0","-"],["2009","only","-","Mar","lastFri",["0","0","0",null],"60","S"],["2010","2011","-","Apr","Fri>=1",["0","0","0",null],"60","S"],["2012","2022","-","Mar","lastFri",["0","0","0",null],"60","S"],["2009","2022","-","Oct","lastFri",["0","0","0",null],"0","-"]],Aus:[["1917","only","-","Jan","1",["2","0","0","s"],"60","D"],["1917","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["1942","only","-","Jan","1",["2","0","0","s"],"60","D"],["1942","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["1942","only","-","Sep","27",["2","0","0","s"],"60","D"],["1943","1944","-","Mar","lastSun",["2","0","0","s"],"0","S"],["1943","only","-","Oct","3",["2","0","0","s"],"60","D"]],AW:[["1974","only","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1975","only","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1983","only","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1984","only","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1991","only","-","Nov","17",["2","0","0","s"],"60","D"],["1992","only","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["2006","only","-","Dec","3",["2","0","0","s"],"60","D"],["2007","2009","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2007","2008","-","Oct","lastSun",["2","0","0","s"],"60","D"]],AQ:[["1971","only","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1972","only","-","Feb","lastSun",["2","0","0","s"],"0","S"],["1989","1991","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1990","1992","-","Mar","Sun>=1",["2","0","0","s"],"0","S"]],Holiday:[["1992","1993","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1993","1994","-","Mar","Sun>=1",["2","0","0","s"],"0","S"]],AS:[["1971","1985","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1986","only","-","Oct","19",["2","0","0","s"],"60","D"],["1987","2007","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1972","only","-","Feb","27",["2","0","0","s"],"0","S"],["1973","1985","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1986","1990","-","Mar","Sun>=15",["2","0","0","s"],"0","S"],["1991","only","-","Mar","3",["2","0","0","s"],"0","S"],["1992","only","-","Mar","22",["2","0","0","s"],"0","S"],["1993","only","-","Mar","7",["2","0","0","s"],"0","S"],["1994","only","-","Mar","20",["2","0","0","s"],"0","S"],["1995","2005","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2006","only","-","Apr","2",["2","0","0","s"],"0","S"],["2007","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2008","max","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2008","max","-","Oct","Sun>=1",["2","0","0","s"],"60","D"]],AT:[["1916","only","-","Oct","Sun>=1",["2","0","0","s"],"60","D"],["1917","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["1917","1918","-","Oct","Sun>=22",["2","0","0","s"],"60","D"],["1918","1919","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1967","only","-","Oct","Sun>=1",["2","0","0","s"],"60","D"],["1968","only","-","Mar","Sun>=29",["2","0","0","s"],"0","S"],["1968","1985","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1969","1971","-","Mar","Sun>=8",["2","0","0","s"],"0","S"],["1972","only","-","Feb","lastSun",["2","0","0","s"],"0","S"],["1973","1981","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1982","1983","-","Mar","lastSun",["2","0","0","s"],"0","S"],["1984","1986","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1986","only","-","Oct","Sun>=15",["2","0","0","s"],"60","D"],["1987","1990","-","Mar","Sun>=15",["2","0","0","s"],"0","S"],["1987","only","-","Oct","Sun>=22",["2","0","0","s"],"60","D"],["1988","1990","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1991","1999","-","Oct","Sun>=1",["2","0","0","s"],"60","D"],["1991","2005","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2000","only","-","Aug","lastSun",["2","0","0","s"],"60","D"],["2001","max","-","Oct","Sun>=1",["2","0","0","s"],"60","D"],["2006","only","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2007","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2008","max","-","Apr","Sun>=1",["2","0","0","s"],"0","S"]],AV:[["1971","1985","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1972","only","-","Feb","lastSun",["2","0","0","s"],"0","S"],["1973","1985","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1986","1990","-","Mar","Sun>=15",["2","0","0","s"],"0","S"],["1986","1987","-","Oct","Sun>=15",["2","0","0","s"],"60","D"],["1988","1999","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1991","1994","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1995","2005","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2000","only","-","Aug","lastSun",["2","0","0","s"],"60","D"],["2001","2007","-","Oct","lastSun",["2","0","0","s"],"60","D"],["2006","only","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2007","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2008","max","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2008","max","-","Oct","Sun>=1",["2","0","0","s"],"60","D"]],AN:[["1971","1985","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1972","only","-","Feb","27",["2","0","0","s"],"0","S"],["1973","1981","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1982","only","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["1983","1985","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1986","1989","-","Mar","Sun>=15",["2","0","0","s"],"0","S"],["1986","only","-","Oct","19",["2","0","0","s"],"60","D"],["1987","1999","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1990","1995","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1996","2005","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2000","only","-","Aug","lastSun",["2","0","0","s"],"60","D"],["2001","2007","-","Oct","lastSun",["2","0","0","s"],"60","D"],["2006","only","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2007","only","-","Mar","lastSun",["2","0","0","s"],"0","S"],["2008","max","-","Apr","Sun>=1",["2","0","0","s"],"0","S"],["2008","max","-","Oct","Sun>=1",["2","0","0","s"],"60","D"]],LH:[["1981","1984","-","Oct","lastSun",["2","0","0",null],"60","-"],["1982","1985","-","Mar","Sun>=1",["2","0","0",null],"0","-"],["1985","only","-","Oct","lastSun",["2","0","0",null],"30","-"],["1986","1989","-","Mar","Sun>=15",["2","0","0",null],"0","-"],["1986","only","-","Oct","19",["2","0","0",null],"30","-"],["1987","1999","-","Oct","lastSun",["2","0","0",null],"30","-"],["1990","1995","-","Mar","Sun>=1",["2","0","0",null],"0","-"],["1996","2005","-","Mar","lastSun",["2","0","0",null],"0","-"],["2000","only","-","Aug","lastSun",["2","0","0",null],"30","-"],["2001","2007","-","Oct","lastSun",["2","0","0",null],"30","-"],["2006","only","-","Apr","Sun>=1",["2","0","0",null],"0","-"],["2007","only","-","Mar","lastSun",["2","0","0",null],"0","-"],["2008","max","-","Apr","Sun>=1",["2","0","0",null],"0","-"],["2008","max","-","Oct","Sun>=1",["2","0","0",null],"30","-"]],Fiji:[["1998","1999","-","Nov","Sun>=1",["2","0","0",null],"60","-"],["1999","2000","-","Feb","lastSun",["3","0","0",null],"0","-"],["2009","only","-","Nov","29",["2","0","0",null],"60","-"],["2010","only","-","Mar","lastSun",["3","0","0",null],"0","-"],["2010","2013","-","Oct","Sun>=21",["2","0","0",null],"60","-"],["2011","only","-","Mar","Sun>=1",["3","0","0",null],"0","-"],["2012","2013","-","Jan","Sun>=18",["3","0","0",null],"0","-"],["2014","only","-","Jan","Sun>=18",["2","0","0",null],"0","-"],["2014","2018","-","Nov","Sun>=1",["2","0","0",null],"60","-"],["2015","2021","-","Jan","Sun>=12",["3","0","0",null],"0","-"],["2019","only","-","Nov","Sun>=8",["2","0","0",null],"60","-"],["2020","only","-","Dec","20",["2","0","0",null],"60","-"]],Guam:[["1959","only","-","Jun","27",["2","0","0",null],"60","D"],["1961","only","-","Jan","29",["2","0","0",null],"0","S"],["1967","only","-","Sep","1",["2","0","0",null],"60","D"],["1969","only","-","Jan","26",["0","1","0",null],"0","S"],["1969","only","-","Jun","22",["2","0","0",null],"60","D"],["1969","only","-","Aug","31",["2","0","0",null],"0","S"],["1970","1971","-","Apr","lastSun",["2","0","0",null],"60","D"],["1970","1971","-","Sep","Sun>=1",["2","0","0",null],"0","S"],["1973","only","-","Dec","16",["2","0","0",null],"60","D"],["1974","only","-","Feb","24",["2","0","0",null],"0","S"],["1976","only","-","May","26",["2","0","0",null],"60","D"],["1976","only","-","Aug","22",["2","1","0",null],"0","S"],["1977","only","-","Apr","24",["2","0","0",null],"60","D"],["1977","only","-","Aug","28",["2","0","0",null],"0","S"]],NC:[["1977","1978","-","Dec","Sun>=1",["0","0","0",null],"60","-"],["1978","1979","-","Feb","27",["0","0","0",null],"0","-"],["1996","only","-","Dec","1",["2","0","0","s"],"60","-"],["1997","only","-","Mar","2",["2","0","0","s"],"0","-"]],NZ:[["1927","only","-","Nov","6",["2","0","0",null],"60","S"],["1928","only","-","Mar","4",["2","0","0",null],"0","M"],["1928","1933","-","Oct","Sun>=8",["2","0","0",null],"30","S"],["1929","1933","-","Mar","Sun>=15",["2","0","0",null],"0","M"],["1934","1940","-","Apr","lastSun",["2","0","0",null],"0","M"],["1934","1940","-","Sep","lastSun",["2","0","0",null],"30","S"],["1946","only","-","Jan","1",["0","0","0",null],"0","S"],["1974","only","-","Nov","Sun>=1",["2","0","0","s"],"60","D"],["1975","only","-","Feb","lastSun",["2","0","0","s"],"0","S"],["1975","1988","-","Oct","lastSun",["2","0","0","s"],"60","D"],["1976","1989","-","Mar","Sun>=1",["2","0","0","s"],"0","S"],["1989","only","-","Oct","Sun>=8",["2","0","0","s"],"60","D"],["1990","2006","-","Oct","Sun>=1",["2","0","0","s"],"60","D"],["1990","2007","-","Mar","Sun>=15",["2","0","0","s"],"0","S"],["2007","max","-","Sep","lastSun",["2","0","0","s"],"60","D"],["2008","max","-","Apr","Sun>=1",["2","0","0","s"],"0","S"]],Chatham:[["1974","only","-","Nov","Sun>=1",["2","45","0","s"],"60","-"],["1975","only","-","Feb","lastSun",["2","45","0","s"],"0","-"],["1975","1988","-","Oct","lastSun",["2","45","0","s"],"60","-"],["1976","1989","-","Mar","Sun>=1",["2","45","0","s"],"0","-"],["1989","only","-","Oct","Sun>=8",["2","45","0","s"],"60","-"],["1990","2006","-","Oct","Sun>=1",["2","45","0","s"],"60","-"],["1990","2007","-","Mar","Sun>=15",["2","45","0","s"],"0","-"],["2007","max","-","Sep","lastSun",["2","45","0","s"],"60","-"],["2008","max","-","Apr","Sun>=1",["2","45","0","s"],"0","-"]],Cook:[["1978","only","-","Nov","12",["0","0","0",null],"30","-"],["1979","1991","-","Mar","Sun>=1",["0","0","0",null],"0","-"],["1979","1990","-","Oct","lastSun",["0","0","0",null],"30","-"]],WS:[["2010","only","-","Sep","lastSun",["0","0","0",null],"60","-"],["2011","only","-","Apr","Sat>=1",["4","0","0",null],"0","-"],["2011","only","-","Sep","lastSat",["3","0","0",null],"60","-"],["2012","2021","-","Apr","Sun>=1",["4","0","0",null],"0","-"],["2012","2020","-","Sep","lastSun",["3","0","0",null],"60","-"]],Tonga:[["1999","only","-","Oct","7",["2","0","0","s"],"60","-"],["2000","only","-","Mar","19",["2","0","0","s"],"0","-"],["2000","2001","-","Nov","Sun>=1",["2","0","0",null],"60","-"],["2001","2002","-","Jan","lastSun",["2","0","0",null],"0","-"],["2016","only","-","Nov","Sun>=1",["2","0","0",null],"60","-"],["2017","only","-","Jan","Sun>=15",["3","0","0",null],"0","-"]],Vanuatu:[["1973","only","-","Dec","22",["12","0","0","u"],"60","-"],["1974","only","-","Mar","30",["12","0","0","u"],"0","-"],["1983","1991","-","Sep","Sat>=22",["24","0","0",null],"60","-"],["1984","1991","-","Mar","Sat>=22",["24","0","0",null],"0","-"],["1992","1993","-","Jan","Sat>=22",["24","0","0",null],"0","-"],["1992","only","-","Oct","Sat>=22",["24","0","0",null],"60","-"]],"GB-Eire":[["1916","only","-","May","21",["2","0","0","s"],"60","BST"],["1916","only","-","Oct","1",["2","0","0","s"],"0","GMT"],["1917","only","-","Apr","8",["2","0","0","s"],"60","BST"],["1917","only","-","Sep","17",["2","0","0","s"],"0","GMT"],["1918","only","-","Mar","24",["2","0","0","s"],"60","BST"],["1918","only","-","Sep","30",["2","0","0","s"],"0","GMT"],["1919","only","-","Mar","30",["2","0","0","s"],"60","BST"],["1919","only","-","Sep","29",["2","0","0","s"],"0","GMT"],["1920","only","-","Mar","28",["2","0","0","s"],"60","BST"],["1920","only","-","Oct","25",["2","0","0","s"],"0","GMT"],["1921","only","-","Apr","3",["2","0","0","s"],"60","BST"],["1921","only","-","Oct","3",["2","0","0","s"],"0","GMT"],["1922","only","-","Mar","26",["2","0","0","s"],"60","BST"],["1922","only","-","Oct","8",["2","0","0","s"],"0","GMT"],["1923","only","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1923","1924","-","Sep","Sun>=16",["2","0","0","s"],"0","GMT"],["1924","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1925","1926","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1925","1938","-","Oct","Sun>=2",["2","0","0","s"],"0","GMT"],["1927","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1928","1929","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1930","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1931","1932","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1933","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1934","only","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1935","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1936","1937","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1938","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1939","only","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1939","only","-","Nov","Sun>=16",["2","0","0","s"],"0","GMT"],["1940","only","-","Feb","Sun>=23",["2","0","0","s"],"60","BST"],["1941","only","-","May","Sun>=2",["1","0","0","s"],"120","BDST"],["1941","1943","-","Aug","Sun>=9",["1","0","0","s"],"60","BST"],["1942","1944","-","Apr","Sun>=2",["1","0","0","s"],"120","BDST"],["1944","only","-","Sep","Sun>=16",["1","0","0","s"],"60","BST"],["1945","only","-","Apr","Mon>=2",["1","0","0","s"],"120","BDST"],["1945","only","-","Jul","Sun>=9",["1","0","0","s"],"60","BST"],["1945","1946","-","Oct","Sun>=2",["2","0","0","s"],"0","GMT"],["1946","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1947","only","-","Mar","16",["2","0","0","s"],"60","BST"],["1947","only","-","Apr","13",["1","0","0","s"],"120","BDST"],["1947","only","-","Aug","10",["1","0","0","s"],"60","BST"],["1947","only","-","Nov","2",["2","0","0","s"],"0","GMT"],["1948","only","-","Mar","14",["2","0","0","s"],"60","BST"],["1948","only","-","Oct","31",["2","0","0","s"],"0","GMT"],["1949","only","-","Apr","3",["2","0","0","s"],"60","BST"],["1949","only","-","Oct","30",["2","0","0","s"],"0","GMT"],["1950","1952","-","Apr","Sun>=14",["2","0","0","s"],"60","BST"],["1950","1952","-","Oct","Sun>=21",["2","0","0","s"],"0","GMT"],["1953","only","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1953","1960","-","Oct","Sun>=2",["2","0","0","s"],"0","GMT"],["1954","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1955","1956","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1957","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1958","1959","-","Apr","Sun>=16",["2","0","0","s"],"60","BST"],["1960","only","-","Apr","Sun>=9",["2","0","0","s"],"60","BST"],["1961","1963","-","Mar","lastSun",["2","0","0","s"],"60","BST"],["1961","1968","-","Oct","Sun>=23",["2","0","0","s"],"0","GMT"],["1964","1967","-","Mar","Sun>=19",["2","0","0","s"],"60","BST"],["1968","only","-","Feb","18",["2","0","0","s"],"60","BST"],["1972","1980","-","Mar","Sun>=16",["2","0","0","s"],"60","BST"],["1972","1980","-","Oct","Sun>=23",["2","0","0","s"],"0","GMT"],["1981","1995","-","Mar","lastSun",["1","0","0","u"],"60","BST"],["1981","1989","-","Oct","Sun>=23",["1","0","0","u"],"0","GMT"],["1990","1995","-","Oct","Sun>=22",["1","0","0","u"],"0","GMT"]],Eire:[["1971","only","-","Oct","31",["2","0","0","u"],"-60","-"],["1972","1980","-","Mar","Sun>=16",["2","0","0","u"],"0","-"],["1972","1980","-","Oct","Sun>=23",["2","0","0","u"],"-60","-"],["1981","max","-","Mar","lastSun",["1","0","0","u"],"0","-"],["1981","1989","-","Oct","Sun>=23",["1","0","0","u"],"-60","-"],["1990","1995","-","Oct","Sun>=22",["1","0","0","u"],"-60","-"],["1996","max","-","Oct","lastSun",["1","0","0","u"],"-60","-"]],EU:[["1977","1980","-","Apr","Sun>=1",["1","0","0","u"],"60","S"],["1977","only","-","Sep","lastSun",["1","0","0","u"],"0","-"],["1978","only","-","Oct","1",["1","0","0","u"],"0","-"],["1979","1995","-","Sep","lastSun",["1","0","0","u"],"0","-"],["1981","max","-","Mar","lastSun",["1","0","0","u"],"60","S"],["1996","max","-","Oct","lastSun",["1","0","0","u"],"0","-"]],"W-Eur":[["1977","1980","-","Apr","Sun>=1",["1","0","0","s"],"60","S"],["1977","only","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1978","only","-","Oct","1",["1","0","0","s"],"0","-"],["1979","1995","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1981","max","-","Mar","lastSun",["1","0","0","s"],"60","S"],["1996","max","-","Oct","lastSun",["1","0","0","s"],"0","-"]],"C-Eur":[["1916","only","-","Apr","30",["23","0","0",null],"60","S"],["1916","only","-","Oct","1",["1","0","0",null],"0","-"],["1917","1918","-","Apr","Mon>=15",["2","0","0","s"],"60","S"],["1917","1918","-","Sep","Mon>=15",["2","0","0","s"],"0","-"],["1940","only","-","Apr","1",["2","0","0","s"],"60","S"],["1942","only","-","Nov","2",["2","0","0","s"],"0","-"],["1943","only","-","Mar","29",["2","0","0","s"],"60","S"],["1943","only","-","Oct","4",["2","0","0","s"],"0","-"],["1944","1945","-","Apr","Mon>=1",["2","0","0","s"],"60","S"],["1944","only","-","Oct","2",["2","0","0","s"],"0","-"],["1945","only","-","Sep","16",["2","0","0","s"],"0","-"],["1977","1980","-","Apr","Sun>=1",["2","0","0","s"],"60","S"],["1977","only","-","Sep","lastSun",["2","0","0","s"],"0","-"],["1978","only","-","Oct","1",["2","0","0","s"],"0","-"],["1979","1995","-","Sep","lastSun",["2","0","0","s"],"0","-"],["1981","max","-","Mar","lastSun",["2","0","0","s"],"60","S"],["1996","max","-","Oct","lastSun",["2","0","0","s"],"0","-"]],"E-Eur":[["1977","1980","-","Apr","Sun>=1",["0","0","0",null],"60","S"],["1977","only","-","Sep","lastSun",["0","0","0",null],"0","-"],["1978","only","-","Oct","1",["0","0","0",null],"0","-"],["1979","1995","-","Sep","lastSun",["0","0","0",null],"0","-"],["1981","max","-","Mar","lastSun",["0","0","0",null],"60","S"],["1996","max","-","Oct","lastSun",["0","0","0",null],"0","-"]],Russia:[["1917","only","-","Jul","1",["23","0","0",null],"60","MST",""],["1917","only","-","Dec","28",["0","0","0",null],"0","MMT",""],["1918","only","-","May","31",["22","0","0",null],"120","MDST",""],["1918","only","-","Sep","16",["1","0","0",null],"60","MST"],["1919","only","-","May","31",["23","0","0",null],"120","MDST"],["1919","only","-","Jul","1",["0","0","0","u"],"60","MSD"],["1919","only","-","Aug","16",["0","0","0",null],"0","MSK"],["1921","only","-","Feb","14",["23","0","0",null],"60","MSD"],["1921","only","-","Mar","20",["23","0","0",null],"120","+05"],["1921","only","-","Sep","1",["0","0","0",null],"60","MSD"],["1921","only","-","Oct","1",["0","0","0",null],"0","-"],["1981","1984","-","Apr","1",["0","0","0",null],"60","S"],["1981","1983","-","Oct","1",["0","0","0",null],"0","-"],["1984","1995","-","Sep","lastSun",["2","0","0","s"],"0","-"],["1985","2010","-","Mar","lastSun",["2","0","0","s"],"60","S"],["1996","2010","-","Oct","lastSun",["2","0","0","s"],"0","-"]],Albania:[["1940","only","-","Jun","16",["0","0","0",null],"60","S"],["1942","only","-","Nov","2",["3","0","0",null],"0","-"],["1943","only","-","Mar","29",["2","0","0",null],"60","S"],["1943","only","-","Apr","10",["3","0","0",null],"0","-"],["1974","only","-","May","4",["0","0","0",null],"60","S"],["1974","only","-","Oct","2",["0","0","0",null],"0","-"],["1975","only","-","May","1",["0","0","0",null],"60","S"],["1975","only","-","Oct","2",["0","0","0",null],"0","-"],["1976","only","-","May","2",["0","0","0",null],"60","S"],["1976","only","-","Oct","3",["0","0","0",null],"0","-"],["1977","only","-","May","8",["0","0","0",null],"60","S"],["1977","only","-","Oct","2",["0","0","0",null],"0","-"],["1978","only","-","May","6",["0","0","0",null],"60","S"],["1978","only","-","Oct","1",["0","0","0",null],"0","-"],["1979","only","-","May","5",["0","0","0",null],"60","S"],["1979","only","-","Sep","30",["0","0","0",null],"0","-"],["1980","only","-","May","3",["0","0","0",null],"60","S"],["1980","only","-","Oct","4",["0","0","0",null],"0","-"],["1981","only","-","Apr","26",["0","0","0",null],"60","S"],["1981","only","-","Sep","27",["0","0","0",null],"0","-"],["1982","only","-","May","2",["0","0","0",null],"60","S"],["1982","only","-","Oct","3",["0","0","0",null],"0","-"],["1983","only","-","Apr","18",["0","0","0",null],"60","S"],["1983","only","-","Oct","1",["0","0","0",null],"0","-"],["1984","only","-","Apr","1",["0","0","0",null],"60","S"]],Austria:[["1920","only","-","Apr","5",["2","0","0","s"],"60","S"],["1920","only","-","Sep","13",["2","0","0","s"],"0","-"],["1946","only","-","Apr","14",["2","0","0","s"],"60","S"],["1946","only","-","Oct","7",["2","0","0","s"],"0","-"],["1947","1948","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1947","only","-","Apr","6",["2","0","0","s"],"60","S"],["1948","only","-","Apr","18",["2","0","0","s"],"60","S"],["1980","only","-","Apr","6",["0","0","0",null],"60","S"],["1980","only","-","Sep","28",["0","0","0",null],"0","-"]],Belgium:[["1918","only","-","Mar","9",["0","0","0","s"],"60","S"],["1918","1919","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1919","only","-","Mar","1",["23","0","0","s"],"60","S"],["1920","only","-","Feb","14",["23","0","0","s"],"60","S"],["1920","only","-","Oct","23",["23","0","0","s"],"0","-"],["1921","only","-","Mar","14",["23","0","0","s"],"60","S"],["1921","only","-","Oct","25",["23","0","0","s"],"0","-"],["1922","only","-","Mar","25",["23","0","0","s"],"60","S"],["1922","1927","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1923","only","-","Apr","21",["23","0","0","s"],"60","S"],["1924","only","-","Mar","29",["23","0","0","s"],"60","S"],["1925","only","-","Apr","4",["23","0","0","s"],"60","S"],["1926","only","-","Apr","17",["23","0","0","s"],"60","S"],["1927","only","-","Apr","9",["23","0","0","s"],"60","S"],["1928","only","-","Apr","14",["23","0","0","s"],"60","S"],["1928","1938","-","Oct","Sun>=2",["2","0","0","s"],"0","-"],["1929","only","-","Apr","21",["2","0","0","s"],"60","S"],["1930","only","-","Apr","13",["2","0","0","s"],"60","S"],["1931","only","-","Apr","19",["2","0","0","s"],"60","S"],["1932","only","-","Apr","3",["2","0","0","s"],"60","S"],["1933","only","-","Mar","26",["2","0","0","s"],"60","S"],["1934","only","-","Apr","8",["2","0","0","s"],"60","S"],["1935","only","-","Mar","31",["2","0","0","s"],"60","S"],["1936","only","-","Apr","19",["2","0","0","s"],"60","S"],["1937","only","-","Apr","4",["2","0","0","s"],"60","S"],["1938","only","-","Mar","27",["2","0","0","s"],"60","S"],["1939","only","-","Apr","16",["2","0","0","s"],"60","S"],["1939","only","-","Nov","19",["2","0","0","s"],"0","-"],["1940","only","-","Feb","25",["2","0","0","s"],"60","S"],["1944","only","-","Sep","17",["2","0","0","s"],"0","-"],["1945","only","-","Apr","2",["2","0","0","s"],"60","S"],["1945","only","-","Sep","16",["2","0","0","s"],"0","-"],["1946","only","-","May","19",["2","0","0","s"],"60","S"],["1946","only","-","Oct","7",["2","0","0","s"],"0","-"]],Bulg:[["1979","only","-","Mar","31",["23","0","0",null],"60","S"],["1979","only","-","Oct","1",["1","0","0",null],"0","-"],["1980","1982","-","Apr","Sat>=1",["23","0","0",null],"60","S"],["1980","only","-","Sep","29",["1","0","0",null],"0","-"],["1981","only","-","Sep","27",["2","0","0",null],"0","-"]],Czech:[["1945","only","-","Apr","Mon>=1",["2","0","0","s"],"60","S"],["1945","only","-","Oct","1",["2","0","0","s"],"0","-"],["1946","only","-","May","6",["2","0","0","s"],"60","S"],["1946","1949","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1947","1948","-","Apr","Sun>=15",["2","0","0","s"],"60","S"],["1949","only","-","Apr","9",["2","0","0","s"],"60","S"]],Thule:[["1991","1992","-","Mar","lastSun",["2","0","0",null],"60","D"],["1991","1992","-","Sep","lastSun",["2","0","0",null],"0","S"],["1993","2006","-","Apr","Sun>=1",["2","0","0",null],"60","D"],["1993","2006","-","Oct","lastSun",["2","0","0",null],"0","S"],["2007","max","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["2007","max","-","Nov","Sun>=1",["2","0","0",null],"0","S"]],Finland:[["1942","only","-","Apr","2",["24","0","0",null],"60","S"],["1942","only","-","Oct","4",["1","0","0",null],"0","-"],["1981","1982","-","Mar","lastSun",["2","0","0",null],"60","S"],["1981","1982","-","Sep","lastSun",["3","0","0",null],"0","-"]],France:[["1916","only","-","Jun","14",["23","0","0","s"],"60","S"],["1916","1919","-","Oct","Sun>=1",["23","0","0","s"],"0","-"],["1917","only","-","Mar","24",["23","0","0","s"],"60","S"],["1918","only","-","Mar","9",["23","0","0","s"],"60","S"],["1919","only","-","Mar","1",["23","0","0","s"],"60","S"],["1920","only","-","Feb","14",["23","0","0","s"],"60","S"],["1920","only","-","Oct","23",["23","0","0","s"],"0","-"],["1921","only","-","Mar","14",["23","0","0","s"],"60","S"],["1921","only","-","Oct","25",["23","0","0","s"],"0","-"],["1922","only","-","Mar","25",["23","0","0","s"],"60","S"],["1922","1938","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1923","only","-","May","26",["23","0","0","s"],"60","S"],["1924","only","-","Mar","29",["23","0","0","s"],"60","S"],["1925","only","-","Apr","4",["23","0","0","s"],"60","S"],["1926","only","-","Apr","17",["23","0","0","s"],"60","S"],["1927","only","-","Apr","9",["23","0","0","s"],"60","S"],["1928","only","-","Apr","14",["23","0","0","s"],"60","S"],["1929","only","-","Apr","20",["23","0","0","s"],"60","S"],["1930","only","-","Apr","12",["23","0","0","s"],"60","S"],["1931","only","-","Apr","18",["23","0","0","s"],"60","S"],["1932","only","-","Apr","2",["23","0","0","s"],"60","S"],["1933","only","-","Mar","25",["23","0","0","s"],"60","S"],["1934","only","-","Apr","7",["23","0","0","s"],"60","S"],["1935","only","-","Mar","30",["23","0","0","s"],"60","S"],["1936","only","-","Apr","18",["23","0","0","s"],"60","S"],["1937","only","-","Apr","3",["23","0","0","s"],"60","S"],["1938","only","-","Mar","26",["23","0","0","s"],"60","S"],["1939","only","-","Apr","15",["23","0","0","s"],"60","S"],["1939","only","-","Nov","18",["23","0","0","s"],"0","-"],["1940","only","-","Feb","25",["2","0","0",null],"60","S"],["1941","only","-","May","5",["0","0","0",null],"120","M",""],["1941","only","-","Oct","6",["0","0","0",null],"60","S"],["1942","only","-","Mar","9",["0","0","0",null],"120","M"],["1942","only","-","Nov","2",["3","0","0",null],"60","S"],["1943","only","-","Mar","29",["2","0","0",null],"120","M"],["1943","only","-","Oct","4",["3","0","0",null],"60","S"],["1944","only","-","Apr","3",["2","0","0",null],"120","M"],["1944","only","-","Oct","8",["1","0","0",null],"60","S"],["1945","only","-","Apr","2",["2","0","0",null],"120","M"],["1945","only","-","Sep","16",["3","0","0",null],"0","-"],["1976","only","-","Mar","28",["1","0","0",null],"60","S"],["1976","only","-","Sep","26",["1","0","0",null],"0","-"]],Germany:[["1946","only","-","Apr","14",["2","0","0","s"],"60","S"],["1946","only","-","Oct","7",["2","0","0","s"],"0","-"],["1947","1949","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1947","only","-","Apr","6",["3","0","0","s"],"60","S"],["1947","only","-","May","11",["2","0","0","s"],"120","M"],["1947","only","-","Jun","29",["3","0","0",null],"60","S"],["1948","only","-","Apr","18",["2","0","0","s"],"60","S"],["1949","only","-","Apr","10",["2","0","0","s"],"60","S"]],SovietZone:[["1945","only","-","May","24",["2","0","0",null],"120","M",""],["1945","only","-","Sep","24",["3","0","0",null],"60","S"],["1945","only","-","Nov","18",["2","0","0","s"],"0","-"]],Greece:[["1932","only","-","Jul","7",["0","0","0",null],"60","S"],["1932","only","-","Sep","1",["0","0","0",null],"0","-"],["1941","only","-","Apr","7",["0","0","0",null],"60","S"],["1942","only","-","Nov","2",["3","0","0",null],"0","-"],["1943","only","-","Mar","30",["0","0","0",null],"60","S"],["1943","only","-","Oct","4",["0","0","0",null],"0","-"],["1952","only","-","Jul","1",["0","0","0",null],"60","S"],["1952","only","-","Nov","2",["0","0","0",null],"0","-"],["1975","only","-","Apr","12",["0","0","0","s"],"60","S"],["1975","only","-","Nov","26",["0","0","0","s"],"0","-"],["1976","only","-","Apr","11",["2","0","0","s"],"60","S"],["1976","only","-","Oct","10",["2","0","0","s"],"0","-"],["1977","1978","-","Apr","Sun>=1",["2","0","0","s"],"60","S"],["1977","only","-","Sep","26",["2","0","0","s"],"0","-"],["1978","only","-","Sep","24",["4","0","0",null],"0","-"],["1979","only","-","Apr","1",["9","0","0",null],"60","S"],["1979","only","-","Sep","29",["2","0","0",null],"0","-"],["1980","only","-","Apr","1",["0","0","0",null],"60","S"],["1980","only","-","Sep","28",["0","0","0",null],"0","-"]],Hungary:[["1918","1919","-","Apr","15",["2","0","0",null],"60","S"],["1918","1920","-","Sep","Mon>=15",["3","0","0",null],"0","-"],["1920","only","-","Apr","5",["2","0","0",null],"60","S"],["1945","only","-","May","1",["23","0","0",null],"60","S"],["1945","only","-","Nov","1",["1","0","0",null],"0","-"],["1946","only","-","Mar","31",["2","0","0","s"],"60","S"],["1946","only","-","Oct","7",["2","0","0",null],"0","-"],["1947","1949","-","Apr","Sun>=4",["2","0","0","s"],"60","S"],["1947","1949","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1954","only","-","May","23",["0","0","0",null],"60","S"],["1954","only","-","Oct","3",["0","0","0",null],"0","-"],["1955","only","-","May","22",["2","0","0",null],"60","S"],["1955","only","-","Oct","2",["3","0","0",null],"0","-"],["1956","1957","-","Jun","Sun>=1",["2","0","0",null],"60","S"],["1956","1957","-","Sep","lastSun",["3","0","0",null],"0","-"],["1980","only","-","Apr","6",["0","0","0",null],"60","S"],["1980","only","-","Sep","28",["1","0","0",null],"0","-"],["1981","1983","-","Mar","lastSun",["0","0","0",null],"60","S"],["1981","1983","-","Sep","lastSun",["1","0","0",null],"0","-"]],Italy:[["1916","only","-","Jun","3",["24","0","0",null],"60","S"],["1916","1917","-","Sep","30",["24","0","0",null],"0","-"],["1917","only","-","Mar","31",["24","0","0",null],"60","S"],["1918","only","-","Mar","9",["24","0","0",null],"60","S"],["1918","only","-","Oct","6",["24","0","0",null],"0","-"],["1919","only","-","Mar","1",["24","0","0",null],"60","S"],["1919","only","-","Oct","4",["24","0","0",null],"0","-"],["1920","only","-","Mar","20",["24","0","0",null],"60","S"],["1920","only","-","Sep","18",["24","0","0",null],"0","-"],["1940","only","-","Jun","14",["24","0","0",null],"60","S"],["1942","only","-","Nov","2",["2","0","0","s"],"0","-"],["1943","only","-","Mar","29",["2","0","0","s"],"60","S"],["1943","only","-","Oct","4",["2","0","0","s"],"0","-"],["1944","only","-","Apr","2",["2","0","0","s"],"60","S"],["1944","only","-","Sep","17",["2","0","0","s"],"0","-"],["1945","only","-","Apr","2",["2","0","0",null],"60","S"],["1945","only","-","Sep","15",["1","0","0",null],"0","-"],["1946","only","-","Mar","17",["2","0","0","s"],"60","S"],["1946","only","-","Oct","6",["2","0","0","s"],"0","-"],["1947","only","-","Mar","16",["0","0","0","s"],"60","S"],["1947","only","-","Oct","5",["0","0","0","s"],"0","-"],["1948","only","-","Feb","29",["2","0","0","s"],"60","S"],["1948","only","-","Oct","3",["2","0","0","s"],"0","-"],["1966","1968","-","May","Sun>=22",["0","0","0","s"],"60","S"],["1966","only","-","Sep","24",["24","0","0",null],"0","-"],["1967","1969","-","Sep","Sun>=22",["0","0","0","s"],"0","-"],["1969","only","-","Jun","1",["0","0","0","s"],"60","S"],["1970","only","-","May","31",["0","0","0","s"],"60","S"],["1970","only","-","Sep","lastSun",["0","0","0","s"],"0","-"],["1971","1972","-","May","Sun>=22",["0","0","0","s"],"60","S"],["1971","only","-","Sep","lastSun",["0","0","0","s"],"0","-"],["1972","only","-","Oct","1",["0","0","0","s"],"0","-"],["1973","only","-","Jun","3",["0","0","0","s"],"60","S"],["1973","1974","-","Sep","lastSun",["0","0","0","s"],"0","-"],["1974","only","-","May","26",["0","0","0","s"],"60","S"],["1975","only","-","Jun","1",["0","0","0","s"],"60","S"],["1975","1977","-","Sep","lastSun",["0","0","0","s"],"0","-"],["1976","only","-","May","30",["0","0","0","s"],"60","S"],["1977","1979","-","May","Sun>=22",["0","0","0","s"],"60","S"],["1978","only","-","Oct","1",["0","0","0","s"],"0","-"],["1979","only","-","Sep","30",["0","0","0","s"],"0","-"]],Latvia:[["1989","1996","-","Mar","lastSun",["2","0","0","s"],"60","S"],["1989","1996","-","Sep","lastSun",["2","0","0","s"],"0","-"]],Malta:[["1973","only","-","Mar","31",["0","0","0","s"],"60","S"],["1973","only","-","Sep","29",["0","0","0","s"],"0","-"],["1974","only","-","Apr","21",["0","0","0","s"],"60","S"],["1974","only","-","Sep","16",["0","0","0","s"],"0","-"],["1975","1979","-","Apr","Sun>=15",["2","0","0",null],"60","S"],["1975","1980","-","Sep","Sun>=15",["2","0","0",null],"0","-"],["1980","only","-","Mar","31",["2","0","0",null],"60","S"]],Moldova:[["1997","max","-","Mar","lastSun",["2","0","0",null],"60","S"],["1997","max","-","Oct","lastSun",["3","0","0",null],"0","-"]],Poland:[["1918","1919","-","Sep","16",["2","0","0","s"],"0","-"],["1919","only","-","Apr","15",["2","0","0","s"],"60","S"],["1944","only","-","Apr","3",["2","0","0","s"],"60","S"],["1944","only","-","Oct","4",["2","0","0",null],"0","-"],["1945","only","-","Apr","29",["0","0","0",null],"60","S"],["1945","only","-","Nov","1",["0","0","0",null],"0","-"],["1946","only","-","Apr","14",["0","0","0","s"],"60","S"],["1946","only","-","Oct","7",["2","0","0","s"],"0","-"],["1947","only","-","May","4",["2","0","0","s"],"60","S"],["1947","1949","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1948","only","-","Apr","18",["2","0","0","s"],"60","S"],["1949","only","-","Apr","10",["2","0","0","s"],"60","S"],["1957","only","-","Jun","2",["1","0","0","s"],"60","S"],["1957","1958","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1958","only","-","Mar","30",["1","0","0","s"],"60","S"],["1959","only","-","May","31",["1","0","0","s"],"60","S"],["1959","1961","-","Oct","Sun>=1",["1","0","0","s"],"0","-"],["1960","only","-","Apr","3",["1","0","0","s"],"60","S"],["1961","1964","-","May","lastSun",["1","0","0","s"],"60","S"],["1962","1964","-","Sep","lastSun",["1","0","0","s"],"0","-"]],Port:[["1916","only","-","Jun","17",["23","0","0",null],"60","S"],["1916","only","-","Nov","1",["1","0","0",null],"0","-"],["1917","only","-","Feb","28",["23","0","0","s"],"60","S"],["1917","1921","-","Oct","14",["23","0","0","s"],"0","-"],["1918","only","-","Mar","1",["23","0","0","s"],"60","S"],["1919","only","-","Feb","28",["23","0","0","s"],"60","S"],["1920","only","-","Feb","29",["23","0","0","s"],"60","S"],["1921","only","-","Feb","28",["23","0","0","s"],"60","S"],["1924","only","-","Apr","16",["23","0","0","s"],"60","S"],["1924","only","-","Oct","14",["23","0","0","s"],"0","-"],["1926","only","-","Apr","17",["23","0","0","s"],"60","S"],["1926","1929","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1927","only","-","Apr","9",["23","0","0","s"],"60","S"],["1928","only","-","Apr","14",["23","0","0","s"],"60","S"],["1929","only","-","Apr","20",["23","0","0","s"],"60","S"],["1931","only","-","Apr","18",["23","0","0","s"],"60","S"],["1931","1932","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1932","only","-","Apr","2",["23","0","0","s"],"60","S"],["1934","only","-","Apr","7",["23","0","0","s"],"60","S"],["1934","1938","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1935","only","-","Mar","30",["23","0","0","s"],"60","S"],["1936","only","-","Apr","18",["23","0","0","s"],"60","S"],["1937","only","-","Apr","3",["23","0","0","s"],"60","S"],["1938","only","-","Mar","26",["23","0","0","s"],"60","S"],["1939","only","-","Apr","15",["23","0","0","s"],"60","S"],["1939","only","-","Nov","18",["23","0","0","s"],"0","-"],["1940","only","-","Feb","24",["23","0","0","s"],"60","S"],["1940","1941","-","Oct","5",["23","0","0","s"],"0","-"],["1941","only","-","Apr","5",["23","0","0","s"],"60","S"],["1942","1945","-","Mar","Sat>=8",["23","0","0","s"],"60","S"],["1942","only","-","Apr","25",["22","0","0","s"],"120","M",""],["1942","only","-","Aug","15",["22","0","0","s"],"60","S"],["1942","1945","-","Oct","Sat>=24",["23","0","0","s"],"0","-"],["1943","only","-","Apr","17",["22","0","0","s"],"120","M"],["1943","1945","-","Aug","Sat>=25",["22","0","0","s"],"60","S"],["1944","1945","-","Apr","Sat>=21",["22","0","0","s"],"120","M"],["1946","only","-","Apr","Sat>=1",["23","0","0","s"],"60","S"],["1946","only","-","Oct","Sat>=1",["23","0","0","s"],"0","-"],["1947","1965","-","Apr","Sun>=1",["2","0","0","s"],"60","S"],["1947","1965","-","Oct","Sun>=1",["2","0","0","s"],"0","-"],["1977","only","-","Mar","27",["0","0","0","s"],"60","S"],["1977","only","-","Sep","25",["0","0","0","s"],"0","-"],["1978","1979","-","Apr","Sun>=1",["0","0","0","s"],"60","S"],["1978","only","-","Oct","1",["0","0","0","s"],"0","-"],["1979","1982","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1980","only","-","Mar","lastSun",["0","0","0","s"],"60","S"],["1981","1982","-","Mar","lastSun",["1","0","0","s"],"60","S"],["1983","only","-","Mar","lastSun",["2","0","0","s"],"60","S"]],Romania:[["1932","only","-","May","21",["0","0","0","s"],"60","S"],["1932","1939","-","Oct","Sun>=1",["0","0","0","s"],"0","-"],["1933","1939","-","Apr","Sun>=2",["0","0","0","s"],"60","S"],["1979","only","-","May","27",["0","0","0",null],"60","S"],["1979","only","-","Sep","lastSun",["0","0","0",null],"0","-"],["1980","only","-","Apr","5",["23","0","0",null],"60","S"],["1980","only","-","Sep","lastSun",["1","0","0",null],"0","-"],["1991","1993","-","Mar","lastSun",["0","0","0","s"],"60","S"],["1991","1993","-","Sep","lastSun",["0","0","0","s"],"0","-"]],Spain:[["1918","only","-","Apr","15",["23","0","0",null],"60","S"],["1918","1919","-","Oct","6",["24","0","0","s"],"0","-"],["1919","only","-","Apr","6",["23","0","0",null],"60","S"],["1924","only","-","Apr","16",["23","0","0",null],"60","S"],["1924","only","-","Oct","4",["24","0","0","s"],"0","-"],["1926","only","-","Apr","17",["23","0","0",null],"60","S"],["1926","1929","-","Oct","Sat>=1",["24","0","0","s"],"0","-"],["1927","only","-","Apr","9",["23","0","0",null],"60","S"],["1928","only","-","Apr","15",["0","0","0",null],"60","S"],["1929","only","-","Apr","20",["23","0","0",null],"60","S"],["1937","only","-","Jun","16",["23","0","0",null],"60","S"],["1937","only","-","Oct","2",["24","0","0","s"],"0","-"],["1938","only","-","Apr","2",["23","0","0",null],"60","S"],["1938","only","-","Apr","30",["23","0","0",null],"120","M"],["1938","only","-","Oct","2",["24","0","0",null],"60","S"],["1939","only","-","Oct","7",["24","0","0","s"],"0","-"],["1942","only","-","May","2",["23","0","0",null],"60","S"],["1942","only","-","Sep","1",["1","0","0",null],"0","-"],["1943","1946","-","Apr","Sat>=13",["23","0","0",null],"60","S"],["1943","1944","-","Oct","Sun>=1",["1","0","0",null],"0","-"],["1945","1946","-","Sep","lastSun",["1","0","0",null],"0","-"],["1949","only","-","Apr","30",["23","0","0",null],"60","S"],["1949","only","-","Oct","2",["1","0","0",null],"0","-"],["1974","1975","-","Apr","Sat>=12",["23","0","0",null],"60","S"],["1974","1975","-","Oct","Sun>=1",["1","0","0",null],"0","-"],["1976","only","-","Mar","27",["23","0","0",null],"60","S"],["1976","1977","-","Sep","lastSun",["1","0","0",null],"0","-"],["1977","only","-","Apr","2",["23","0","0",null],"60","S"],["1978","only","-","Apr","2",["2","0","0","s"],"60","S"],["1978","only","-","Oct","1",["2","0","0","s"],"0","-"]],SpainAfrica:[["1967","only","-","Jun","3",["12","0","0",null],"60","S"],["1967","only","-","Oct","1",["0","0","0",null],"0","-"],["1974","only","-","Jun","24",["0","0","0",null],"60","S"],["1974","only","-","Sep","1",["0","0","0",null],"0","-"],["1976","1977","-","May","1",["0","0","0",null],"60","S"],["1976","only","-","Aug","1",["0","0","0",null],"0","-"],["1977","only","-","Sep","28",["0","0","0",null],"0","-"],["1978","only","-","Jun","1",["0","0","0",null],"60","S"],["1978","only","-","Aug","4",["0","0","0",null],"0","-"]],Swiss:[["1941","1942","-","May","Mon>=1",["1","0","0",null],"60","S"],["1941","1942","-","Oct","Mon>=1",["2","0","0",null],"0","-"]],Turkey:[["1916","only","-","May","1",["0","0","0",null],"60","S"],["1916","only","-","Oct","1",["0","0","0",null],"0","-"],["1920","only","-","Mar","28",["0","0","0",null],"60","S"],["1920","only","-","Oct","25",["0","0","0",null],"0","-"],["1921","only","-","Apr","3",["0","0","0",null],"60","S"],["1921","only","-","Oct","3",["0","0","0",null],"0","-"],["1922","only","-","Mar","26",["0","0","0",null],"60","S"],["1922","only","-","Oct","8",["0","0","0",null],"0","-"],["1924","only","-","May","13",["0","0","0",null],"60","S"],["1924","1925","-","Oct","1",["0","0","0",null],"0","-"],["1925","only","-","May","1",["0","0","0",null],"60","S"],["1940","only","-","Jul","1",["0","0","0",null],"60","S"],["1940","only","-","Oct","6",["0","0","0",null],"0","-"],["1940","only","-","Dec","1",["0","0","0",null],"60","S"],["1941","only","-","Sep","21",["0","0","0",null],"0","-"],["1942","only","-","Apr","1",["0","0","0",null],"60","S"],["1945","only","-","Oct","8",["0","0","0",null],"0","-"],["1946","only","-","Jun","1",["0","0","0",null],"60","S"],["1946","only","-","Oct","1",["0","0","0",null],"0","-"],["1947","1948","-","Apr","Sun>=16",["0","0","0",null],"60","S"],["1947","1951","-","Oct","Sun>=2",["0","0","0",null],"0","-"],["1949","only","-","Apr","10",["0","0","0",null],"60","S"],["1950","only","-","Apr","16",["0","0","0",null],"60","S"],["1951","only","-","Apr","22",["0","0","0",null],"60","S"],["1962","only","-","Jul","15",["0","0","0",null],"60","S"],["1963","only","-","Oct","30",["0","0","0",null],"0","-"],["1964","only","-","May","15",["0","0","0",null],"60","S"],["1964","only","-","Oct","1",["0","0","0",null],"0","-"],["1973","only","-","Jun","3",["1","0","0",null],"60","S"],["1973","1976","-","Oct","Sun>=31",["2","0","0",null],"0","-"],["1974","only","-","Mar","31",["2","0","0",null],"60","S"],["1975","only","-","Mar","22",["2","0","0",null],"60","S"],["1976","only","-","Mar","21",["2","0","0",null],"60","S"],["1977","1978","-","Apr","Sun>=1",["2","0","0",null],"60","S"],["1977","1978","-","Oct","Sun>=15",["2","0","0",null],"0","-"],["1978","only","-","Jun","29",["0","0","0",null],"0","-"],["1983","only","-","Jul","31",["2","0","0",null],"60","S"],["1983","only","-","Oct","2",["2","0","0",null],"0","-"],["1985","only","-","Apr","20",["1","0","0","s"],"60","S"],["1985","only","-","Sep","28",["1","0","0","s"],"0","-"],["1986","1993","-","Mar","lastSun",["1","0","0","s"],"60","S"],["1986","1995","-","Sep","lastSun",["1","0","0","s"],"0","-"],["1994","only","-","Mar","20",["1","0","0","s"],"60","S"],["1995","2006","-","Mar","lastSun",["1","0","0","s"],"60","S"],["1996","2006","-","Oct","lastSun",["1","0","0","s"],"0","-"]],US:[["1918","1919","-","Mar","lastSun",["2","0","0",null],"60","D"],["1918","1919","-","Oct","lastSun",["2","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","30",["2","0","0",null],"0","S"],["1967","2006","-","Oct","lastSun",["2","0","0",null],"0","S"],["1967","1973","-","Apr","lastSun",["2","0","0",null],"60","D"],["1974","only","-","Jan","6",["2","0","0",null],"60","D"],["1975","only","-","Feb","lastSun",["2","0","0",null],"60","D"],["1976","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1987","2006","-","Apr","Sun>=1",["2","0","0",null],"60","D"],["2007","max","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["2007","max","-","Nov","Sun>=1",["2","0","0",null],"0","S"]],NYC:[["1920","only","-","Mar","lastSun",["2","0","0",null],"60","D"],["1920","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1921","1966","-","Apr","lastSun",["2","0","0",null],"60","D"],["1921","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1955","1966","-","Oct","lastSun",["2","0","0",null],"0","S"]],Chicago:[["1920","only","-","Jun","13",["2","0","0",null],"60","D"],["1920","1921","-","Oct","lastSun",["2","0","0",null],"0","S"],["1921","only","-","Mar","lastSun",["2","0","0",null],"60","D"],["1922","1966","-","Apr","lastSun",["2","0","0",null],"60","D"],["1922","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1955","1966","-","Oct","lastSun",["2","0","0",null],"0","S"]],Denver:[["1920","1921","-","Mar","lastSun",["2","0","0",null],"60","D"],["1920","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1921","only","-","May","22",["2","0","0",null],"0","S"],["1965","1966","-","Apr","lastSun",["2","0","0",null],"60","D"],["1965","1966","-","Oct","lastSun",["2","0","0",null],"0","S"]],CA:[["1948","only","-","Mar","14",["2","1","0",null],"60","D"],["1949","only","-","Jan","1",["2","0","0",null],"0","S"],["1950","1966","-","Apr","lastSun",["1","0","0",null],"60","D"],["1950","1961","-","Sep","lastSun",["2","0","0",null],"0","S"],["1962","1966","-","Oct","lastSun",["2","0","0",null],"0","S"]],Indianapolis:[["1941","only","-","Jun","22",["2","0","0",null],"60","D"],["1941","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1946","1954","-","Apr","lastSun",["2","0","0",null],"60","D"]],Marengo:[["1951","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1951","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1954","1960","-","Apr","lastSun",["2","0","0",null],"60","D"],["1954","1960","-","Sep","lastSun",["2","0","0",null],"0","S"]],Vincennes:[["1946","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1953","1954","-","Apr","lastSun",["2","0","0",null],"60","D"],["1953","1959","-","Sep","lastSun",["2","0","0",null],"0","S"],["1955","only","-","May","1",["0","0","0",null],"60","D"],["1956","1963","-","Apr","lastSun",["2","0","0",null],"60","D"],["1960","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1961","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1962","1963","-","Oct","lastSun",["2","0","0",null],"0","S"]],Perry:[["1955","only","-","May","1",["0","0","0",null],"60","D"],["1955","1960","-","Sep","lastSun",["2","0","0",null],"0","S"],["1956","1963","-","Apr","lastSun",["2","0","0",null],"60","D"],["1961","1963","-","Oct","lastSun",["2","0","0",null],"0","S"]],Pike:[["1955","only","-","May","1",["0","0","0",null],"60","D"],["1955","1960","-","Sep","lastSun",["2","0","0",null],"0","S"],["1956","1964","-","Apr","lastSun",["2","0","0",null],"60","D"],["1961","1964","-","Oct","lastSun",["2","0","0",null],"0","S"]],Starke:[["1947","1961","-","Apr","lastSun",["2","0","0",null],"60","D"],["1947","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1955","1956","-","Oct","lastSun",["2","0","0",null],"0","S"],["1957","1958","-","Sep","lastSun",["2","0","0",null],"0","S"],["1959","1961","-","Oct","lastSun",["2","0","0",null],"0","S"]],Pulaski:[["1946","1960","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1955","1956","-","Oct","lastSun",["2","0","0",null],"0","S"],["1957","1960","-","Sep","lastSun",["2","0","0",null],"0","S"]],Louisville:[["1921","only","-","May","1",["2","0","0",null],"60","D"],["1921","only","-","Sep","1",["2","0","0",null],"0","S"],["1941","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1941","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1946","only","-","Apr","lastSun",["0","1","0",null],"60","D"],["1946","only","-","Jun","2",["2","0","0",null],"0","S"],["1950","1961","-","Apr","lastSun",["2","0","0",null],"60","D"],["1950","1955","-","Sep","lastSun",["2","0","0",null],"0","S"],["1956","1961","-","Oct","lastSun",["2","0","0",null],"0","S"]],Detroit:[["1948","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1948","only","-","Sep","lastSun",["2","0","0",null],"0","S"]],Menominee:[["1946","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1966","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1966","only","-","Oct","lastSun",["2","0","0",null],"0","S"]],Canada:[["1918","only","-","Apr","14",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","30",["2","0","0",null],"0","S"],["1974","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1974","2006","-","Oct","lastSun",["2","0","0",null],"0","S"],["1987","2006","-","Apr","Sun>=1",["2","0","0",null],"60","D"],["2007","max","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["2007","max","-","Nov","Sun>=1",["2","0","0",null],"0","S"]],StJohns:[["1917","only","-","Apr","8",["2","0","0",null],"60","D"],["1917","only","-","Sep","17",["2","0","0",null],"0","S"],["1919","only","-","May","5",["23","0","0",null],"60","D"],["1919","only","-","Aug","12",["23","0","0",null],"0","S"],["1920","1935","-","May","Sun>=1",["23","0","0",null],"60","D"],["1920","1935","-","Oct","lastSun",["23","0","0",null],"0","S"],["1936","1941","-","May","Mon>=9",["0","0","0",null],"60","D"],["1936","1941","-","Oct","Mon>=2",["0","0","0",null],"0","S"],["1946","1950","-","May","Sun>=8",["2","0","0",null],"60","D"],["1946","1950","-","Oct","Sun>=2",["2","0","0",null],"0","S"],["1951","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1951","1959","-","Sep","lastSun",["2","0","0",null],"0","S"],["1960","1986","-","Oct","lastSun",["2","0","0",null],"0","S"],["1987","only","-","Apr","Sun>=1",["0","1","0",null],"60","D"],["1987","2006","-","Oct","lastSun",["0","1","0",null],"0","S"],["1988","only","-","Apr","Sun>=1",["0","1","0",null],"120","DD"],["1989","2006","-","Apr","Sun>=1",["0","1","0",null],"60","D"],["2007","2011","-","Mar","Sun>=8",["0","1","0",null],"60","D"],["2007","2010","-","Nov","Sun>=1",["0","1","0",null],"0","S"]],Halifax:[["1916","only","-","Apr","1",["0","0","0",null],"60","D"],["1916","only","-","Oct","1",["0","0","0",null],"0","S"],["1920","only","-","May","9",["0","0","0",null],"60","D"],["1920","only","-","Aug","29",["0","0","0",null],"0","S"],["1921","only","-","May","6",["0","0","0",null],"60","D"],["1921","1922","-","Sep","5",["0","0","0",null],"0","S"],["1922","only","-","Apr","30",["0","0","0",null],"60","D"],["1923","1925","-","May","Sun>=1",["0","0","0",null],"60","D"],["1923","only","-","Sep","4",["0","0","0",null],"0","S"],["1924","only","-","Sep","15",["0","0","0",null],"0","S"],["1925","only","-","Sep","28",["0","0","0",null],"0","S"],["1926","only","-","May","16",["0","0","0",null],"60","D"],["1926","only","-","Sep","13",["0","0","0",null],"0","S"],["1927","only","-","May","1",["0","0","0",null],"60","D"],["1927","only","-","Sep","26",["0","0","0",null],"0","S"],["1928","1931","-","May","Sun>=8",["0","0","0",null],"60","D"],["1928","only","-","Sep","9",["0","0","0",null],"0","S"],["1929","only","-","Sep","3",["0","0","0",null],"0","S"],["1930","only","-","Sep","15",["0","0","0",null],"0","S"],["1931","1932","-","Sep","Mon>=24",["0","0","0",null],"0","S"],["1932","only","-","May","1",["0","0","0",null],"60","D"],["1933","only","-","Apr","30",["0","0","0",null],"60","D"],["1933","only","-","Oct","2",["0","0","0",null],"0","S"],["1934","only","-","May","20",["0","0","0",null],"60","D"],["1934","only","-","Sep","16",["0","0","0",null],"0","S"],["1935","only","-","Jun","2",["0","0","0",null],"60","D"],["1935","only","-","Sep","30",["0","0","0",null],"0","S"],["1936","only","-","Jun","1",["0","0","0",null],"60","D"],["1936","only","-","Sep","14",["0","0","0",null],"0","S"],["1937","1938","-","May","Sun>=1",["0","0","0",null],"60","D"],["1937","1941","-","Sep","Mon>=24",["0","0","0",null],"0","S"],["1939","only","-","May","28",["0","0","0",null],"60","D"],["1940","1941","-","May","Sun>=1",["0","0","0",null],"60","D"],["1946","1949","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","1949","-","Sep","lastSun",["2","0","0",null],"0","S"],["1951","1954","-","Apr","lastSun",["2","0","0",null],"60","D"],["1951","1954","-","Sep","lastSun",["2","0","0",null],"0","S"],["1956","1959","-","Apr","lastSun",["2","0","0",null],"60","D"],["1956","1959","-","Sep","lastSun",["2","0","0",null],"0","S"],["1962","1973","-","Apr","lastSun",["2","0","0",null],"60","D"],["1962","1973","-","Oct","lastSun",["2","0","0",null],"0","S"]],Moncton:[["1933","1935","-","Jun","Sun>=8",["1","0","0",null],"60","D"],["1933","1935","-","Sep","Sun>=8",["1","0","0",null],"0","S"],["1936","1938","-","Jun","Sun>=1",["1","0","0",null],"60","D"],["1936","1938","-","Sep","Sun>=1",["1","0","0",null],"0","S"],["1939","only","-","May","27",["1","0","0",null],"60","D"],["1939","1941","-","Sep","Sat>=21",["1","0","0",null],"0","S"],["1940","only","-","May","19",["1","0","0",null],"60","D"],["1941","only","-","May","4",["1","0","0",null],"60","D"],["1946","1972","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","1956","-","Sep","lastSun",["2","0","0",null],"0","S"],["1957","1972","-","Oct","lastSun",["2","0","0",null],"0","S"],["1993","2006","-","Apr","Sun>=1",["0","1","0",null],"60","D"],["1993","2006","-","Oct","lastSun",["0","1","0",null],"0","S"]],Toronto:[["1919","only","-","Mar","30",["23","30","0",null],"60","D"],["1919","only","-","Oct","26",["0","0","0",null],"0","S"],["1920","only","-","May","2",["2","0","0",null],"60","D"],["1920","only","-","Sep","26",["0","0","0",null],"0","S"],["1921","only","-","May","15",["2","0","0",null],"60","D"],["1921","only","-","Sep","15",["2","0","0",null],"0","S"],["1922","1923","-","May","Sun>=8",["2","0","0",null],"60","D"],["1922","1926","-","Sep","Sun>=15",["2","0","0",null],"0","S"],["1924","1927","-","May","Sun>=1",["2","0","0",null],"60","D"],["1927","1937","-","Sep","Sun>=25",["2","0","0",null],"0","S"],["1928","1937","-","Apr","Sun>=25",["2","0","0",null],"60","D"],["1938","1940","-","Apr","lastSun",["2","0","0",null],"60","D"],["1938","1939","-","Sep","lastSun",["2","0","0",null],"0","S"],["1945","1946","-","Sep","lastSun",["2","0","0",null],"0","S"],["1946","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1947","1949","-","Apr","lastSun",["0","0","0",null],"60","D"],["1947","1948","-","Sep","lastSun",["0","0","0",null],"0","S"],["1949","only","-","Nov","lastSun",["0","0","0",null],"0","S"],["1950","1973","-","Apr","lastSun",["2","0","0",null],"60","D"],["1950","only","-","Nov","lastSun",["2","0","0",null],"0","S"],["1951","1956","-","Sep","lastSun",["2","0","0",null],"0","S"],["1957","1973","-","Oct","lastSun",["2","0","0",null],"0","S"]],Winn:[["1916","only","-","Apr","23",["0","0","0",null],"60","D"],["1916","only","-","Sep","17",["0","0","0",null],"0","S"],["1918","only","-","Apr","14",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1937","only","-","May","16",["2","0","0",null],"60","D"],["1937","only","-","Sep","26",["2","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1946","only","-","May","12",["2","0","0",null],"60","D"],["1946","only","-","Oct","13",["2","0","0",null],"0","S"],["1947","1949","-","Apr","lastSun",["2","0","0",null],"60","D"],["1947","1949","-","Sep","lastSun",["2","0","0",null],"0","S"],["1950","only","-","May","1",["2","0","0",null],"60","D"],["1950","only","-","Sep","30",["2","0","0",null],"0","S"],["1951","1960","-","Apr","lastSun",["2","0","0",null],"60","D"],["1951","1958","-","Sep","lastSun",["2","0","0",null],"0","S"],["1959","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1960","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1963","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1963","only","-","Sep","22",["2","0","0",null],"0","S"],["1966","1986","-","Apr","lastSun",["2","0","0","s"],"60","D"],["1966","2005","-","Oct","lastSun",["2","0","0","s"],"0","S"],["1987","2005","-","Apr","Sun>=1",["2","0","0","s"],"60","D"]],Regina:[["1918","only","-","Apr","14",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1930","1934","-","May","Sun>=1",["0","0","0",null],"60","D"],["1930","1934","-","Oct","Sun>=1",["0","0","0",null],"0","S"],["1937","1941","-","Apr","Sun>=8",["0","0","0",null],"60","D"],["1937","only","-","Oct","Sun>=8",["0","0","0",null],"0","S"],["1938","only","-","Oct","Sun>=1",["0","0","0",null],"0","S"],["1939","1941","-","Oct","Sun>=8",["0","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1946","only","-","Apr","Sun>=8",["2","0","0",null],"60","D"],["1946","only","-","Oct","Sun>=8",["2","0","0",null],"0","S"],["1947","1957","-","Apr","lastSun",["2","0","0",null],"60","D"],["1947","1957","-","Sep","lastSun",["2","0","0",null],"0","S"],["1959","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1959","only","-","Oct","lastSun",["2","0","0",null],"0","S"]],Swift:[["1957","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1957","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1959","1961","-","Apr","lastSun",["2","0","0",null],"60","D"],["1959","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1960","1961","-","Sep","lastSun",["2","0","0",null],"0","S"]],Edm:[["1918","1919","-","Apr","Sun>=8",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1919","only","-","May","27",["2","0","0",null],"0","S"],["1920","1923","-","Apr","lastSun",["2","0","0",null],"60","D"],["1920","only","-","Oct","lastSun",["2","0","0",null],"0","S"],["1921","1923","-","Sep","lastSun",["2","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1947","only","-","Apr","lastSun",["2","0","0",null],"60","D"],["1947","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["1972","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1972","2006","-","Oct","lastSun",["2","0","0",null],"0","S"]],Vanc:[["1918","only","-","Apr","14",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","30",["2","0","0",null],"0","S"],["1946","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1946","only","-","Sep","29",["2","0","0",null],"0","S"],["1947","1961","-","Sep","lastSun",["2","0","0",null],"0","S"],["1962","2006","-","Oct","lastSun",["2","0","0",null],"0","S"]],NT_YK:[["1918","only","-","Apr","14",["2","0","0",null],"60","D"],["1918","only","-","Oct","27",["2","0","0",null],"0","S"],["1919","only","-","May","25",["2","0","0",null],"60","D"],["1919","only","-","Nov","1",["0","0","0",null],"0","S"],["1942","only","-","Feb","9",["2","0","0",null],"60","W",""],["1945","only","-","Aug","14",["23","0","0","u"],"60","P",""],["1945","only","-","Sep","30",["2","0","0",null],"0","S"],["1972","1986","-","Apr","lastSun",["2","0","0",null],"60","D"],["1972","2006","-","Oct","lastSun",["2","0","0",null],"0","S"],["1987","2006","-","Apr","Sun>=1",["2","0","0",null],"60","D"]],Yukon:[["1965","only","-","Apr","lastSun",["0","0","0",null],"120","DD"],["1965","only","-","Oct","lastSun",["2","0","0",null],"0","S"]],Mexico:[["1931","only","-","May","1",["23","0","0",null],"60","D"],["1931","only","-","Oct","1",["0","0","0",null],"0","S"],["1939","only","-","Feb","5",["0","0","0",null],"60","D"],["1939","only","-","Jun","25",["0","0","0",null],"0","S"],["1940","only","-","Dec","9",["0","0","0",null],"60","D"],["1941","only","-","Apr","1",["0","0","0",null],"0","S"],["1943","only","-","Dec","16",["0","0","0",null],"60","W",""],["1944","only","-","May","1",["0","0","0",null],"0","S"],["1950","only","-","Feb","12",["0","0","0",null],"60","D"],["1950","only","-","Jul","30",["0","0","0",null],"0","S"],["1996","2000","-","Apr","Sun>=1",["2","0","0",null],"60","D"],["1996","2000","-","Oct","lastSun",["2","0","0",null],"0","S"],["2001","only","-","May","Sun>=1",["2","0","0",null],"60","D"],["2001","only","-","Sep","lastSun",["2","0","0",null],"0","S"],["2002","2022","-","Apr","Sun>=1",["2","0","0",null],"60","D"],["2002","2022","-","Oct","lastSun",["2","0","0",null],"0","S"]],Barb:[["1942","only","-","Apr","19",["5","0","0","u"],"60","D"],["1942","only","-","Aug","31",["6","0","0","u"],"0","S"],["1943","only","-","May","2",["5","0","0","u"],"60","D"],["1943","only","-","Sep","5",["6","0","0","u"],"0","S"],["1944","only","-","Apr","10",["5","0","0","u"],"30","-"],["1944","only","-","Sep","10",["6","0","0","u"],"0","S"],["1977","only","-","Jun","12",["2","0","0",null],"60","D"],["1977","1978","-","Oct","Sun>=1",["2","0","0",null],"0","S"],["1978","1980","-","Apr","Sun>=15",["2","0","0",null],"60","D"],["1979","only","-","Sep","30",["2","0","0",null],"0","S"],["1980","only","-","Sep","25",["2","0","0",null],"0","S"]],Belize:[["1918","1941","-","Oct","Sat>=1",["24","0","0",null],"30","-0530"],["1919","1942","-","Feb","Sat>=8",["24","0","0",null],"0","CST"],["1942","only","-","Jun","27",["24","0","0",null],"60","CWT"],["1945","only","-","Aug","14",["23","0","0","u"],"60","CPT"],["1945","only","-","Dec","15",["24","0","0",null],"0","CST"],["1947","1967","-","Oct","Sat>=1",["24","0","0",null],"30","-0530"],["1948","1968","-","Feb","Sat>=8",["24","0","0",null],"0","CST"],["1973","only","-","Dec","5",["0","0","0",null],"60","CDT"],["1974","only","-","Feb","9",["0","0","0",null],"0","CST"],["1982","only","-","Dec","18",["0","0","0",null],"60","CDT"],["1983","only","-","Feb","12",["0","0","0",null],"0","CST"]],Bermuda:[["1917","only","-","Apr","5",["24","0","0",null],"60","-"],["1917","only","-","Sep","30",["24","0","0",null],"0","-"],["1918","only","-","Apr","13",["24","0","0",null],"60","-"],["1918","only","-","Sep","15",["24","0","0",null],"0","S"],["1942","only","-","Jan","11",["2","0","0",null],"60","D"],["1942","only","-","Oct","18",["2","0","0",null],"0","S"],["1943","only","-","Mar","21",["2","0","0",null],"60","D"],["1943","only","-","Oct","31",["2","0","0",null],"0","S"],["1944","1945","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["1944","1945","-","Nov","Sun>=1",["2","0","0",null],"0","S"],["1947","only","-","May","Sun>=15",["2","0","0",null],"60","D"],["1947","only","-","Sep","Sun>=8",["2","0","0",null],"0","S"],["1948","1952","-","May","Sun>=22",["2","0","0",null],"60","D"],["1948","1952","-","Sep","Sun>=1",["2","0","0",null],"0","S"],["1956","only","-","May","Sun>=22",["2","0","0",null],"60","D"],["1956","only","-","Oct","lastSun",["2","0","0",null],"0","S"]],CR:[["1979","1980","-","Feb","lastSun",["0","0","0",null],"60","D"],["1979","1980","-","Jun","Sun>=1",["0","0","0",null],"0","S"],["1991","1992","-","Jan","Sat>=15",["0","0","0",null],"60","D"],["1991","only","-","Jul","1",["0","0","0",null],"0","S"],["1992","only","-","Mar","15",["0","0","0",null],"0","S"]],Cuba:[["1928","only","-","Jun","10",["0","0","0",null],"60","D"],["1928","only","-","Oct","10",["0","0","0",null],"0","S"],["1940","1942","-","Jun","Sun>=1",["0","0","0",null],"60","D"],["1940","1942","-","Sep","Sun>=1",["0","0","0",null],"0","S"],["1945","1946","-","Jun","Sun>=1",["0","0","0",null],"60","D"],["1945","1946","-","Sep","Sun>=1",["0","0","0",null],"0","S"],["1965","only","-","Jun","1",["0","0","0",null],"60","D"],["1965","only","-","Sep","30",["0","0","0",null],"0","S"],["1966","only","-","May","29",["0","0","0",null],"60","D"],["1966","only","-","Oct","2",["0","0","0",null],"0","S"],["1967","only","-","Apr","8",["0","0","0",null],"60","D"],["1967","1968","-","Sep","Sun>=8",["0","0","0",null],"0","S"],["1968","only","-","Apr","14",["0","0","0",null],"60","D"],["1969","1977","-","Apr","lastSun",["0","0","0",null],"60","D"],["1969","1971","-","Oct","lastSun",["0","0","0",null],"0","S"],["1972","1974","-","Oct","8",["0","0","0",null],"0","S"],["1975","1977","-","Oct","lastSun",["0","0","0",null],"0","S"],["1978","only","-","May","7",["0","0","0",null],"60","D"],["1978","1990","-","Oct","Sun>=8",["0","0","0",null],"0","S"],["1979","1980","-","Mar","Sun>=15",["0","0","0",null],"60","D"],["1981","1985","-","May","Sun>=5",["0","0","0",null],"60","D"],["1986","1989","-","Mar","Sun>=14",["0","0","0",null],"60","D"],["1990","1997","-","Apr","Sun>=1",["0","0","0",null],"60","D"],["1991","1995","-","Oct","Sun>=8",["0","0","0","s"],"0","S"],["1996","only","-","Oct","6",["0","0","0","s"],"0","S"],["1997","only","-","Oct","12",["0","0","0","s"],"0","S"],["1998","1999","-","Mar","lastSun",["0","0","0","s"],"60","D"],["1998","2003","-","Oct","lastSun",["0","0","0","s"],"0","S"],["2000","2003","-","Apr","Sun>=1",["0","0","0","s"],"60","D"],["2004","only","-","Mar","lastSun",["0","0","0","s"],"60","D"],["2006","2010","-","Oct","lastSun",["0","0","0","s"],"0","S"],["2007","only","-","Mar","Sun>=8",["0","0","0","s"],"60","D"],["2008","only","-","Mar","Sun>=15",["0","0","0","s"],"60","D"],["2009","2010","-","Mar","Sun>=8",["0","0","0","s"],"60","D"],["2011","only","-","Mar","Sun>=15",["0","0","0","s"],"60","D"],["2011","only","-","Nov","13",["0","0","0","s"],"0","S"],["2012","only","-","Apr","1",["0","0","0","s"],"60","D"],["2012","max","-","Nov","Sun>=1",["0","0","0","s"],"0","S"],["2013","max","-","Mar","Sun>=8",["0","0","0","s"],"60","D"]],DR:[["1966","only","-","Oct","30",["0","0","0",null],"60","EDT"],["1967","only","-","Feb","28",["0","0","0",null],"0","EST"],["1969","1973","-","Oct","lastSun",["0","0","0",null],"30","-0430"],["1970","only","-","Feb","21",["0","0","0",null],"0","EST"],["1971","only","-","Jan","20",["0","0","0",null],"0","EST"],["1972","1974","-","Jan","21",["0","0","0",null],"0","EST"]],Salv:[["1987","1988","-","May","Sun>=1",["0","0","0",null],"60","D"],["1987","1988","-","Sep","lastSun",["0","0","0",null],"0","S"]],Guat:[["1973","only","-","Nov","25",["0","0","0",null],"60","D"],["1974","only","-","Feb","24",["0","0","0",null],"0","S"],["1983","only","-","May","21",["0","0","0",null],"60","D"],["1983","only","-","Sep","22",["0","0","0",null],"0","S"],["1991","only","-","Mar","23",["0","0","0",null],"60","D"],["1991","only","-","Sep","7",["0","0","0",null],"0","S"],["2006","only","-","Apr","30",["0","0","0",null],"60","D"],["2006","only","-","Oct","1",["0","0","0",null],"0","S"]],Haiti:[["1983","only","-","May","8",["0","0","0",null],"60","D"],["1984","1987","-","Apr","lastSun",["0","0","0",null],"60","D"],["1983","1987","-","Oct","lastSun",["0","0","0",null],"0","S"],["1988","1997","-","Apr","Sun>=1",["1","0","0","s"],"60","D"],["1988","1997","-","Oct","lastSun",["1","0","0","s"],"0","S"],["2005","2006","-","Apr","Sun>=1",["0","0","0",null],"60","D"],["2005","2006","-","Oct","lastSun",["0","0","0",null],"0","S"],["2012","2015","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["2012","2015","-","Nov","Sun>=1",["2","0","0",null],"0","S"],["2017","max","-","Mar","Sun>=8",["2","0","0",null],"60","D"],["2017","max","-","Nov","Sun>=1",["2","0","0",null],"0","S"]],Hond:[["1987","1988","-","May","Sun>=1",["0","0","0",null],"60","D"],["1987","1988","-","Sep","lastSun",["0","0","0",null],"0","S"],["2006","only","-","May","Sun>=1",["0","0","0",null],"60","D"],["2006","only","-","Aug","Mon>=1",["0","0","0",null],"0","S"]],Nic:[["1979","1980","-","Mar","Sun>=16",["0","0","0",null],"60","D"],["1979","1980","-","Jun","Mon>=23",["0","0","0",null],"0","S"],["2005","only","-","Apr","10",["0","0","0",null],"60","D"],["2005","only","-","Oct","Sun>=1",["0","0","0",null],"0","S"],["2006","only","-","Apr","30",["2","0","0",null],"60","D"],["2006","only","-","Oct","Sun>=1",["1","0","0",null],"0","S"]],Arg:[["1930","only","-","Dec","1",["0","0","0",null],"60","-"],["1931","only","-","Apr","1",["0","0","0",null],"0","-"],["1931","only","-","Oct","15",["0","0","0",null],"60","-"],["1932","1940","-","Mar","1",["0","0","0",null],"0","-"],["1932","1939","-","Nov","1",["0","0","0",null],"60","-"],["1940","only","-","Jul","1",["0","0","0",null],"60","-"],["1941","only","-","Jun","15",["0","0","0",null],"0","-"],["1941","only","-","Oct","15",["0","0","0",null],"60","-"],["1943","only","-","Aug","1",["0","0","0",null],"0","-"],["1943","only","-","Oct","15",["0","0","0",null],"60","-"],["1946","only","-","Mar","1",["0","0","0",null],"0","-"],["1946","only","-","Oct","1",["0","0","0",null],"60","-"],["1963","only","-","Oct","1",["0","0","0",null],"0","-"],["1963","only","-","Dec","15",["0","0","0",null],"60","-"],["1964","1966","-","Mar","1",["0","0","0",null],"0","-"],["1964","1966","-","Oct","15",["0","0","0",null],"60","-"],["1967","only","-","Apr","2",["0","0","0",null],"0","-"],["1967","1968","-","Oct","Sun>=1",["0","0","0",null],"60","-"],["1968","1969","-","Apr","Sun>=1",["0","0","0",null],"0","-"],["1974","only","-","Jan","23",["0","0","0",null],"60","-"],["1974","only","-","May","1",["0","0","0",null],"0","-"],["1988","only","-","Dec","1",["0","0","0",null],"60","-"],["1989","1993","-","Mar","Sun>=1",["0","0","0",null],"0","-"],["1989","1992","-","Oct","Sun>=15",["0","0","0",null],"60","-"],["1999","only","-","Oct","Sun>=1",["0","0","0",null],"60","-"],["2000","only","-","Mar","3",["0","0","0",null],"0","-"],["2007","only","-","Dec","30",["0","0","0",null],"60","-"],["2008","2009","-","Mar","Sun>=15",["0","0","0",null],"0","-"],["2008","only","-","Oct","Sun>=15",["0","0","0",null],"60","-"]],SanLuis:[["2008","2009","-","Mar","Sun>=8",["0","0","0",null],"0","-"],["2007","2008","-","Oct","Sun>=8",["0","0","0",null],"60","-"]],Brazil:[["1931","only","-","Oct","3",["11","0","0",null],"60","-"],["1932","1933","-","Apr","1",["0","0","0",null],"0","-"],["1932","only","-","Oct","3",["0","0","0",null],"60","-"],["1949","1952","-","Dec","1",["0","0","0",null],"60","-"],["1950","only","-","Apr","16",["1","0","0",null],"0","-"],["1951","1952","-","Apr","1",["0","0","0",null],"0","-"],["1953","only","-","Mar","1",["0","0","0",null],"0","-"],["1963","only","-","Dec","9",["0","0","0",null],"60","-"],["1964","only","-","Mar","1",["0","0","0",null],"0","-"],["1965","only","-","Jan","31",["0","0","0",null],"60","-"],["1965","only","-","Mar","31",["0","0","0",null],"0","-"],["1965","only","-","Dec","1",["0","0","0",null],"60","-"],["1966","1968","-","Mar","1",["0","0","0",null],"0","-"],["1966","1967","-","Nov","1",["0","0","0",null],"60","-"],["1985","only","-","Nov","2",["0","0","0",null],"60","-"],["1986","only","-","Mar","15",["0","0","0",null],"0","-"],["1986","only","-","Oct","25",["0","0","0",null],"60","-"],["1987","only","-","Feb","14",["0","0","0",null],"0","-"],["1987","only","-","Oct","25",["0","0","0",null],"60","-"],["1988","only","-","Feb","7",["0","0","0",null],"0","-"],["1988","only","-","Oct","16",["0","0","0",null],"60","-"],["1989","only","-","Jan","29",["0","0","0",null],"0","-"],["1989","only","-","Oct","15",["0","0","0",null],"60","-"],["1990","only","-","Feb","11",["0","0","0",null],"0","-"],["1990","only","-","Oct","21",["0","0","0",null],"60","-"],["1991","only","-","Feb","17",["0","0","0",null],"0","-"],["1991","only","-","Oct","20",["0","0","0",null],"60","-"],["1992","only","-","Feb","9",["0","0","0",null],"0","-"],["1992","only","-","Oct","25",["0","0","0",null],"60","-"],["1993","only","-","Jan","31",["0","0","0",null],"0","-"],["1993","1995","-","Oct","Sun>=11",["0","0","0",null],"60","-"],["1994","1995","-","Feb","Sun>=15",["0","0","0",null],"0","-"],["1996","only","-","Feb","11",["0","0","0",null],"0","-"],["1996","only","-","Oct","6",["0","0","0",null],"60","-"],["1997","only","-","Feb","16",["0","0","0",null],"0","-"],["1997","only","-","Oct","6",["0","0","0",null],"60","-"],["1998","only","-","Mar","1",["0","0","0",null],"0","-"],["1998","only","-","Oct","11",["0","0","0",null],"60","-"],["1999","only","-","Feb","21",["0","0","0",null],"0","-"],["1999","only","-","Oct","3",["0","0","0",null],"60","-"],["2000","only","-","Feb","27",["0","0","0",null],"0","-"],["2000","2001","-","Oct","Sun>=8",["0","0","0",null],"60","-"],["2001","2006","-","Feb","Sun>=15",["0","0","0",null],"0","-"],["2002","only","-","Nov","3",["0","0","0",null],"60","-"],["2003","only","-","Oct","19",["0","0","0",null],"60","-"],["2004","only","-","Nov","2",["0","0","0",null],"60","-"],["2005","only","-","Oct","16",["0","0","0",null],"60","-"],["2006","only","-","Nov","5",["0","0","0",null],"60","-"],["2007","only","-","Feb","25",["0","0","0",null],"0","-"],["2007","only","-","Oct","Sun>=8",["0","0","0",null],"60","-"],["2008","2017","-","Oct","Sun>=15",["0","0","0",null],"60","-"],["2008","2011","-","Feb","Sun>=15",["0","0","0",null],"0","-"],["2012","only","-","Feb","Sun>=22",["0","0","0",null],"0","-"],["2013","2014","-","Feb","Sun>=15",["0","0","0",null],"0","-"],["2015","only","-","Feb","Sun>=22",["0","0","0",null],"0","-"],["2016","2019","-","Feb","Sun>=15",["0","0","0",null],"0","-"],["2018","only","-","Nov","Sun>=1",["0","0","0",null],"60","-"]],Chile:[["1927","1931","-","Sep","1",["0","0","0",null],"60","-"],["1928","1932","-","Apr","1",["0","0","0",null],"0","-"],["1968","only","-","Nov","3",["4","0","0","u"],"60","-"],["1969","only","-","Mar","30",["3","0","0","u"],"0","-"],["1969","only","-","Nov","23",["4","0","0","u"],"60","-"],["1970","only","-","Mar","29",["3","0","0","u"],"0","-"],["1971","only","-","Mar","14",["3","0","0","u"],"0","-"],["1970","1972","-","Oct","Sun>=9",["4","0","0","u"],"60","-"],["1972","1986","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["1973","only","-","Sep","30",["4","0","0","u"],"60","-"],["1974","1987","-","Oct","Sun>=9",["4","0","0","u"],"60","-"],["1987","only","-","Apr","12",["3","0","0","u"],"0","-"],["1988","1990","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["1988","1989","-","Oct","Sun>=9",["4","0","0","u"],"60","-"],["1990","only","-","Sep","16",["4","0","0","u"],"60","-"],["1991","1996","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["1991","1997","-","Oct","Sun>=9",["4","0","0","u"],"60","-"],["1997","only","-","Mar","30",["3","0","0","u"],"0","-"],["1998","only","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["1998","only","-","Sep","27",["4","0","0","u"],"60","-"],["1999","only","-","Apr","4",["3","0","0","u"],"0","-"],["1999","2010","-","Oct","Sun>=9",["4","0","0","u"],"60","-"],["2000","2007","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["2008","only","-","Mar","30",["3","0","0","u"],"0","-"],["2009","only","-","Mar","Sun>=9",["3","0","0","u"],"0","-"],["2010","only","-","Apr","Sun>=1",["3","0","0","u"],"0","-"],["2011","only","-","May","Sun>=2",["3","0","0","u"],"0","-"],["2011","only","-","Aug","Sun>=16",["4","0","0","u"],"60","-"],["2012","2014","-","Apr","Sun>=23",["3","0","0","u"],"0","-"],["2012","2014","-","Sep","Sun>=2",["4","0","0","u"],"60","-"],["2016","2018","-","May","Sun>=9",["3","0","0","u"],"0","-"],["2016","2018","-","Aug","Sun>=9",["4","0","0","u"],"60","-"],["2019","max","-","Apr","Sun>=2",["3","0","0","u"],"0","-"],["2019","2021","-","Sep","Sun>=2",["4","0","0","u"],"60","-"],["2022","only","-","Sep","Sun>=9",["4","0","0","u"],"60","-"],["2023","max","-","Sep","Sun>=2",["4","0","0","u"],"60","-"]],CO:[["1992","only","-","May","3",["0","0","0",null],"60","-"],["1993","only","-","Feb","6",["24","0","0",null],"0","-"]],Ecuador:[["1992","only","-","Nov","28",["0","0","0",null],"60","-"],["1993","only","-","Feb","5",["0","0","0",null],"0","-"]],Falk:[["1937","1938","-","Sep","lastSun",["0","0","0",null],"60","-"],["1938","1942","-","Mar","Sun>=19",["0","0","0",null],"0","-"],["1939","only","-","Oct","1",["0","0","0",null],"60","-"],["1940","1942","-","Sep","lastSun",["0","0","0",null],"60","-"],["1943","only","-","Jan","1",["0","0","0",null],"0","-"],["1983","only","-","Sep","lastSun",["0","0","0",null],"60","-"],["1984","1985","-","Apr","lastSun",["0","0","0",null],"0","-"],["1984","only","-","Sep","16",["0","0","0",null],"60","-"],["1985","2000","-","Sep","Sun>=9",["0","0","0",null],"60","-"],["1986","2000","-","Apr","Sun>=16",["0","0","0",null],"0","-"],["2001","2010","-","Apr","Sun>=15",["2","0","0",null],"0","-"],["2001","2010","-","Sep","Sun>=1",["2","0","0",null],"60","-"]],Para:[["1975","1988","-","Oct","1",["0","0","0",null],"60","-"],["1975","1978","-","Mar","1",["0","0","0",null],"0","-"],["1979","1991","-","Apr","1",["0","0","0",null],"0","-"],["1989","only","-","Oct","22",["0","0","0",null],"60","-"],["1990","only","-","Oct","1",["0","0","0",null],"60","-"],["1991","only","-","Oct","6",["0","0","0",null],"60","-"],["1992","only","-","Mar","1",["0","0","0",null],"0","-"],["1992","only","-","Oct","5",["0","0","0",null],"60","-"],["1993","only","-","Mar","31",["0","0","0",null],"0","-"],["1993","1995","-","Oct","1",["0","0","0",null],"60","-"],["1994","1995","-","Feb","lastSun",["0","0","0",null],"0","-"],["1996","only","-","Mar","1",["0","0","0",null],"0","-"],["1996","2001","-","Oct","Sun>=1",["0","0","0",null],"60","-"],["1997","only","-","Feb","lastSun",["0","0","0",null],"0","-"],["1998","2001","-","Mar","Sun>=1",["0","0","0",null],"0","-"],["2002","2004","-","Apr","Sun>=1",["0","0","0",null],"0","-"],["2002","2003","-","Sep","Sun>=1",["0","0","0",null],"60","-"],["2004","2009","-","Oct","Sun>=15",["0","0","0",null],"60","-"],["2005","2009","-","Mar","Sun>=8",["0","0","0",null],"0","-"],["2010","max","-","Oct","Sun>=1",["0","0","0",null],"60","-"],["2010","2012","-","Apr","Sun>=8",["0","0","0",null],"0","-"],["2013","max","-","Mar","Sun>=22",["0","0","0",null],"0","-"]],Peru:[["1938","only","-","Jan","1",["0","0","0",null],"60","-"],["1938","only","-","Apr","1",["0","0","0",null],"0","-"],["1938","1939","-","Sep","lastSun",["0","0","0",null],"60","-"],["1939","1940","-","Mar","Sun>=24",["0","0","0",null],"0","-"],["1986","1987","-","Jan","1",["0","0","0",null],"60","-"],["1986","1987","-","Apr","1",["0","0","0",null],"0","-"],["1990","only","-","Jan","1",["0","0","0",null],"60","-"],["1990","only","-","Apr","1",["0","0","0",null],"0","-"],["1994","only","-","Jan","1",["0","0","0",null],"60","-"],["1994","only","-","Apr","1",["0","0","0",null],"0","-"]],Uruguay:[["1923","1925","-","Oct","1",["0","0","0",null],"30","-"],["1924","1926","-","Apr","1",["0","0","0",null],"0","-"],["1933","1938","-","Oct","lastSun",["0","0","0",null],"30","-"],["1934","1941","-","Mar","lastSat",["24","0","0",null],"0","-"],["1939","only","-","Oct","1",["0","0","0",null],"30","-"],["1940","only","-","Oct","27",["0","0","0",null],"30","-"],["1941","only","-","Aug","1",["0","0","0",null],"30","-"],["1942","only","-","Dec","14",["0","0","0",null],"30","-"],["1943","only","-","Mar","14",["0","0","0",null],"0","-"],["1959","only","-","May","24",["0","0","0",null],"30","-"],["1959","only","-","Nov","15",["0","0","0",null],"0","-"],["1960","only","-","Jan","17",["0","0","0",null],"60","-"],["1960","only","-","Mar","6",["0","0","0",null],"0","-"],["1965","only","-","Apr","4",["0","0","0",null],"60","-"],["1965","only","-","Sep","26",["0","0","0",null],"0","-"],["1968","only","-","May","27",["0","0","0",null],"30","-"],["1968","only","-","Dec","1",["0","0","0",null],"0","-"],["1970","only","-","Apr","25",["0","0","0",null],"60","-"],["1970","only","-","Jun","14",["0","0","0",null],"0","-"],["1972","only","-","Apr","23",["0","0","0",null],"60","-"],["1972","only","-","Jul","16",["0","0","0",null],"0","-"],["1974","only","-","Jan","13",["0","0","0",null],"90","-"],["1974","only","-","Mar","10",["0","0","0",null],"30","-"],["1974","only","-","Sep","1",["0","0","0",null],"0","-"],["1974","only","-","Dec","22",["0","0","0",null],"60","-"],["1975","only","-","Mar","30",["0","0","0",null],"0","-"],["1976","only","-","Dec","19",["0","0","0",null],"60","-"],["1977","only","-","Mar","6",["0","0","0",null],"0","-"],["1977","only","-","Dec","4",["0","0","0",null],"60","-"],["1978","1979","-","Mar","Sun>=1",["0","0","0",null],"0","-"],["1978","only","-","Dec","17",["0","0","0",null],"60","-"],["1979","only","-","Apr","29",["0","0","0",null],"60","-"],["1980","only","-","Mar","16",["0","0","0",null],"0","-"],["1987","only","-","Dec","14",["0","0","0",null],"60","-"],["1988","only","-","Feb","28",["0","0","0",null],"0","-"],["1988","only","-","Dec","11",["0","0","0",null],"60","-"],["1989","only","-","Mar","5",["0","0","0",null],"0","-"],["1989","only","-","Oct","29",["0","0","0",null],"60","-"],["1990","only","-","Feb","25",["0","0","0",null],"0","-"],["1990","1991","-","Oct","Sun>=21",["0","0","0",null],"60","-"],["1991","1992","-","Mar","Sun>=1",["0","0","0",null],"0","-"],["1992","only","-","Oct","18",["0","0","0",null],"60","-"],["1993","only","-","Feb","28",["0","0","0",null],"0","-"],["2004","only","-","Sep","19",["0","0","0",null],"60","-"],["2005","only","-","Mar","27",["2","0","0",null],"0","-"],["2005","only","-","Oct","9",["2","0","0",null],"60","-"],["2006","2015","-","Mar","Sun>=8",["2","0","0",null],"0","-"],["2006","2014","-","Oct","Sun>=1",["2","0","0",null],"60","-"]]}}},{}]},{},[])("timezonecomplete")})})(Mfe);var rBe=Mfe.exports;const g$=ao(rBe);function Rfe({date:e,fiscalYearSpec:t}){const n=e.setZone(t.timezone),r=Pfe({fiscalYearSpec:t,calendarYear:n.year});let i=r;return n=r&&(i=i.plus({year:1})),i.minus(1).setZone(e.zoneName)}function Pfe({fiscalYearSpec:e,calendarYear:t}){return Ue.fromObject({day:e.day,month:e.month,year:t,zone:e.timezone})}function Ffe({date:e,fiscalYearSpec:t}){return Rfe({date:e,fiscalYearSpec:t}).setZone(t.timezone)}function aBe({date:e,fiscalYearSpec:t}){const n=Ffe({date:e,fiscalYearSpec:t});for(let r=1;r<=4;r++){const i=n.plus({months:r*3});if(eArray.isArray(t)).map(([e,t])=>e).filter(e=>/\//.test(e)&&!/Etc\//.test(e)&&xr.isValidZone(e)).sort();Object.keys(g$.zones).filter(e=>Ue.fromObject({day:1,month:1,year:2024}).setZone(e).isValid).sort();function $fe(e){return e.replace(/_/g," ").replace("Europe/Kiev","Europe/Kyiv")}const dBe=Dk.map(e=>({label:$fe(e),value:e}));Dk.map(e=>xr.create(e));function fBe(e){var t;if(Dk.includes(e))return e;const n=(t=Object.entries(g$.zones).find(([r,i])=>r===e))===null||t===void 0?void 0:t.at(1);if(typeof n=="string"&&Dk.includes(n))return n}var hn;(function(e){e.Week="1 WEEK",e.Month="1 MONTH",e.Quarter="3 MONTH",e.FiscalQuarter="3 FISCAL MONTH",e.Year="1 YEAR",e.FiscalYear="1 FISCAL YEAR",e.Day="1 DAY"})(hn||(hn={}));function pBe(e){return Object.values(hn).includes(e)}function v$(e,t){let n="";switch(e){case hn.Day:n="Day";break;case hn.Month:n="Month";break;case hn.Quarter:n="Quarter";break;case hn.FiscalQuarter:n="Fiscal Quarter";break;case hn.Week:n="Week";break;case hn.Year:n="Year";break;case hn.FiscalYear:n="Fiscal Year";break;default:(r=>{throw new Error(`timeIntervalFormat does not support TimeInterval ${r}`)})(e)}return t?`${n}s`:n}Object.values(hn).map(e=>({label:v$(e),value:e}));Object.values(hn).map(e=>({label:v$(e,!0),value:e}));function Tb(e){switch(e){case hn.Day:return"day";case hn.Week:return"week";case hn.Month:return"month";case hn.Quarter:case hn.FiscalQuarter:return"quarter";case hn.Year:case hn.FiscalYear:return"year"}}function Ufe(e,t,n){if(n!=null&&t===hn.FiscalYear)return Rfe({date:e,fiscalYearSpec:n});if(n!=null&&t===hn.FiscalQuarter)return aBe({date:e,fiscalYearSpec:n});{const r=Tb(t);return e.startOf(r)}}function Hfe(e,t,n){if(n!=null&&t===hn.FiscalYear)return iBe({date:e,fiscalYearSpec:n});if(n!=null&&t===hn.FiscalQuarter)return oBe({date:e,fiscalYearSpec:n});{const r=Tb(t);return e.endOf(r)}}function jG(e,t){return e.get("year")===t.get("year")&&e.get("month")===t.get("month")&&e.get("day")===t.get("day")}function Vfe({startIsoOrLuxon:e,endIsoOrLuxon:t,timezoneName:n,includeStartDay:r,hasBriefZoneName:i}){const a=e instanceof Ue?e:ua(e,n),o=t instanceof Ue?t:ua(t,n);let s="";(r==="if_not_today"&&!jG(a,Ue.local().setZone(n))||r==="always")&&(s=`${a.toLocaleString(Ue.DATE_MED_WITH_WEEKDAY)} `);let l="";return jG(a,o)||(l=` ${o.toLocaleString(Ue.DATE_MED_WITH_WEEKDAY)}`),`${s}${_i(a)} - ${_i(o)}${l}${i?` ${a.toFormat("ZZZZ")}`:""}`}class Fn{constructor(t){this.dateOnly=t}static fromISO(t){return new Fn(t)}static fromJSDate(t,{timezone:n}={}){return new Fn(Ue.fromJSDate(t,{zone:n}).toISODate())}static fromDateTime(t){return new Fn(t.toISODate())}static now(t={}){var n;let r=(n=t.now)!==null&&n!==void 0?n:Ue.now();return t.timezone&&(r=r.setZone(t.timezone)),new Fn(r.toISODate())}static local(t,n,r){const i=Ue.local(t,n,r);return new Fn(i.toISODate())}static fromObject({timezone:t,...n}){return new Fn(Ue.fromObject({...n,zone:t}).toISODate())}get isValid(){return Ue.fromISO(this.dateOnly).isValid}toISO(){return this.dateOnly}toISODate(){return Ue.fromISO(this.dateOnly,{zone:al}).toISODate()}toString(){return this.toISO()}toJSON(){return this.toISO()}toJSDate(t={}){return this.toDateTime(t).toJSDate()}toDateTime({timezone:t,...n}={}){return Ue.fromISO(this.dateOnly,{zone:t}).set(n)}plus(t){return new Fn(this.toDateTime({timezone:al}).plus(t).toISODate())}minus(t){return new Fn(this.toDateTime({timezone:al}).minus(t).toISODate())}toLocaleString(t){return this.toDateTime({timezone:t==null?void 0:t.timezone}).toLocaleString({...t,timeStyle:void 0,hour:void 0,hour12:void 0,hourCycle:void 0,minute:void 0,second:void 0,fractionalSecondDigits:void 0,timeZone:void 0,timeZoneName:void 0})}}function Lr(e){const t=hBe(zfe);return J8(e,t)}function mBe(e,t){return{[e.name]:class extends e{constructor(...r){super(...r),Object.assign(this,t)}}}[e.name]}function ne(e){return t=>{const n=G8.get(t.name);let r;if(n){r=new Map;for(const o of n)r.set(o.key,o.typeMarker)}const i=mBe(t,{__autoSerializationID:e}),a={constructorFunction:i,originalTypeName:t.name,autoSerializationID:e,typeMarkers:r};return zfe.push(a),i}}function Aa(e){return(t,n)=>{let r;if(e)r=e;else{const s=Reflect.getMetadata("design:type",t,n);if(s.name==="Date")r=jn.DateTypeMarker;else if(s.name==="DateOnly")r=jn.DateOnlyTypeMarker;else if(s.name==="Map")r=jn.MapTypeMarker;else return}const i=t.constructor.name,a={key:n,typeMarker:r},o=G8.get(i);o?o.push(a):G8.set(i,[a])}}var jn;(function(e){e.DateTypeMarker="DateTypeMarker",e.DateOnlyTypeMarker="DateOnlyTypeMarker",e.DateOrNullTypeMarker="DateOrNullTypeMarker",e.MapTypeMarker="MapTypeMarker",e.AnonymousObjectTypeMarker="AnonymousObjectTypeMarker"})(jn||(jn={}));const zfe=[],G8=new Map;function hBe(e){const t=new Map;for(const n of e)t.set(n.autoSerializationID,n);return t}function gBe(e){return e instanceof Object&&Object.keys(e).length===0}function J8(e,t,n,r){if(n&&r&&n.typeMarkers){const i=n.typeMarkers.get(r);if(i!=null)switch(i){case jn.DateTypeMarker:return new Date(e);case jn.DateOnlyTypeMarker:return e instanceof Fn?e:e!=null?Fn.fromISO(e):e;case jn.DateOrNullTypeMarker:return e?new Date(e):null;case jn.MapTypeMarker:const a=[...e instanceof Map?e.entries():e instanceof Object?Object.entries(e):[]];return new zB(a);case jn.AnonymousObjectTypeMarker:return e}}if(vBe(e)||gBe(e)||e===null||e===void 0){if(!n||!r)throw new Error(`Invalid root object. Only arrays and object types are allowed; found ${JSON.stringify(e)}`);return e}else{if(Array.isArray(e))return e.map(i=>J8(i,t,n,r));if(e instanceof Object){if(!e.__autoSerializationID)return e;const i=t.get(e.__autoSerializationID);if(!i)throw new Error(`Did not find type map entry for autodeserializable type! ${JSON.stringify(e.__autoSerializationID)}`);const a=i.constructorFunction,o=new a({});for(const s in e)o[s]=J8(e[s],t,i,s);return o.onDecodeComplete&&typeof o.onDecodeComplete=="function"&&o.onDecodeComplete(),o}}}function vBe(e){return["string","boolean","number"].indexOf(typeof e)>-1||e instanceof String||e===String||e instanceof Number||e===Number||e instanceof Boolean||e===Boolean}var Y8={exports:{}},K8={exports:{}},Q8={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(o){return typeof o}:n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(i)}function r(i){var a=typeof i=="string"||i instanceof String;if(!a){var o=n(i);throw i===null?o="null":o==="object"&&(o=i.constructor.name),new TypeError("Expected a string but received a ".concat(o))}}e.exports=t.default,e.exports.default=t.default})(Q8,Q8.exports);var Ae=Q8.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a=Date.parse(a),isNaN(a)?null:new Date(a)}e.exports=t.default,e.exports.default=t.default})(K8,K8.exports);var y$=K8.exports,Z8={exports:{}},C1={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.commaDecimal=er.dotDecimal=er.bengaliLocales=er.farsiLocales=er.arabicLocales=er.englishLocales=er.decimal=er.alphanumeric=er.alpha=void 0;var ya={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};er.alpha=ya;var Sa={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};er.alphanumeric=Sa;var Ji={"en-US":".",ar:"٫"};er.decimal=Ji;var X8=["AU","GB","HK","IN","NZ","ZA","ZM"];er.englishLocales=X8;for(var GT,q4=0;q4=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||rt.gt)}var TBe=Object.keys(qfe.decimal);C1.locales=TBe;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(C1);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a)?parseFloat(a):NaN}e.exports=t.default,e.exports.default=t.default})(Z8,Z8.exports);var Wfe=Z8.exports,ax={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){return(0,n.default)(a),parseInt(a,o||10)}e.exports=t.default,e.exports.default=t.default})(ax,ax.exports);var _Be=ax.exports,ox={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){return(0,n.default)(a),o?a==="1"||/^true$/i.test(a):a!=="0"&&!/^false$/i.test(a)&&a!==""}e.exports=t.default,e.exports.default=t.default})(ox,ox.exports);var EBe=ox.exports,sx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){return(0,n.default)(a),a===o}e.exports=t.default,e.exports.default=t.default})(sx,sx.exports);var wBe=sx.exports,lx={exports:{}},ux={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(o){return typeof o}:n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(i)}function r(i){return n(i)==="object"&&i!==null?typeof i.toString=="function"?i=i.toString():i="[object Object]":(i===null||typeof i>"u"||isNaN(i)&&!i.length)&&(i=""),String(i)}e.exports=t.default,e.exports.default=t.default})(ux,ux.exports);var jfe=ux.exports,cx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var a in i)typeof r[a]>"u"&&(r[a]=i[a]);return r}e.exports=t.default,e.exports.default=t.default})(cx,cx.exports);var Ca=cx.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Ae),r=a(jfe),i=a(Ca);function a(l){return l&&l.__esModule?l:{default:l}}var o={ignoreCase:!1,minOccurrences:1};function s(l,u,c){return(0,n.default)(l),c=(0,i.default)(c,o),c.ignoreCase?l.toLowerCase().split((0,r.default)(u).toLowerCase()).length>c.minOccurrences:l.split((0,r.default)(u)).length>c.minOccurrences}e.exports=t.default,e.exports.default=t.default})(lx,lx.exports);var kBe=lx.exports,dx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o,s){return(0,n.default)(a),Object.prototype.toString.call(o)!=="[object RegExp]"&&(o=new RegExp(o,s)),!!a.match(o)}e.exports=t.default,e.exports.default=t.default})(dx,dx.exports);var ABe=dx.exports,fx={exports:{}},px={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}function i(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(l){return typeof l}:i=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(o)}function a(o,s){(0,n.default)(o);var l,u;i(s)==="object"?(l=s.min||0,u=s.max):(l=arguments[1],u=arguments[2]);var c=encodeURI(o).split(/%..|./).length-1;return c>=l&&(typeof u>"u"||c<=u)}e.exports=t.default,e.exports.default=t.default})(px,px.exports);var Gfe=px.exports,mx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=i(Ca);function i(s){return s&&s.__esModule?s:{default:s}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function o(s,l){(0,n.default)(s),l=(0,r.default)(l,a),l.allow_trailing_dot&&s[s.length-1]==="."&&(s=s.substring(0,s.length-1)),l.allow_wildcard===!0&&s.indexOf("*.")===0&&(s=s.substring(2));var u=s.split("."),c=u[u.length-1];return l.require_tld&&(u.length<2||!l.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(c)||/\s/.test(c))||!l.allow_numeric_tld&&/^\d+$/.test(c)?!1:u.every(function(d){return!(d.length>63&&!l.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(d)||/[\uff01-\uff5e]/.test(d)||/^-|-$/.test(d)||!l.allow_underscores&&/_/.test(d))})}e.exports=t.default,e.exports.default=t.default})(mx,mx.exports);var S$=mx.exports,hx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Ae);function r(c){return c&&c.__esModule?c:{default:c}}var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),o=new RegExp("^".concat(a,"$")),s="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(a,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(a,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(a,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(a,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(a,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(a,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(a,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function u(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.default)(c),d=String(d),d?d==="4"?o.test(c):d==="6"?l.test(c):!1:u(c,4)||u(c,6)}e.exports=t.default,e.exports.default=t.default})(hx,hx.exports);var XC=hx.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n=s(Ae),r=s(Gfe),i=s(S$),a=s(XC),o=s(Ca);function s(y){return y&&y.__esModule?y:{default:y}}var l={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)]/.test(b);if(T){if(b===y)return!1;var _=b.split('"').length===b.split('\\"').length;if(!_)return!1}return!0}function v(y,b){if((0,n.default)(y),b=(0,o.default)(b,l),b.require_display_name||b.allow_display_name){var T=y.match(u);if(T){var _=T[1];if(y=y.replace(_,"").replace(/(^<|>$)/g,""),_.endsWith(" ")&&(_=_.slice(0,-1)),!g(_))return!1}else if(b.require_display_name)return!1}if(!b.ignore_max_length&&y.length>h)return!1;var E=y.split("@"),k=E.pop(),A=k.toLowerCase();if(b.host_blacklist.includes(A)||b.host_whitelist.length>0&&!b.host_whitelist.includes(A))return!1;var D=E.join("@");if(b.domain_specific_validation&&(A==="gmail.com"||A==="googlemail.com")){D=D.toLowerCase();var R=D.split("+")[0];if(!(0,r.default)(R.replace(/\./g,""),{min:6,max:30}))return!1;for(var B=R.split("."),H=0;Hy.length)&&(b=y.length);for(var T=0,_=new Array(b);T"u"||!(Symbol.iterator in Object(y)))){var T=[],_=!0,E=!1,k=void 0;try{for(var A=y[Symbol.iterator](),D;!(_=(D=A.next()).done)&&(T.push(D.value),!(b&&T.length===b));_=!0);}catch(R){E=!0,k=R}finally{try{!_&&A.return!=null&&A.return()}finally{if(E)throw k}}return T}}function f(y){if(Array.isArray(y))return y}var p={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},m=/^\[([^\]]+)\](?::([0-9]+))?$/;function h(y){return Object.prototype.toString.call(y)==="[object RegExp]"}function g(y,b){for(var T=0;T]/.test(y)||y.indexOf("mailto:")===0||(b=(0,a.default)(b,p),b.validate_length&&y.length>=2083)||!b.allow_fragments&&y.includes("#")||!b.allow_query_components&&(y.includes("?")||y.includes("&")))return!1;var T,_,E,k,A,D,R,B;if(R=y.split("#"),y=R.shift(),R=y.split("?"),y=R.shift(),R=y.split("://"),R.length>1){if(T=R.shift().toLowerCase(),b.require_valid_protocol&&b.protocols.indexOf(T)===-1)return!1}else{if(b.require_protocol)return!1;if(y.slice(0,2)==="//"){if(!b.allow_protocol_relative_urls)return!1;R[0]=y.slice(2)}}if(y=R.join("://"),y==="")return!1;if(R=y.split("/"),y=R.shift(),y===""&&!b.require_host)return!0;if(R=y.split("@"),R.length>1){if(b.disallow_auth||R[0]===""||(_=R.shift(),_.indexOf(":")>=0&&_.split(":").length>2))return!1;var H=_.split(":"),L=s(H,2),V=L[0],U=L[1];if(V===""&&U==="")return!1}k=R.join("@"),D=null,B=null;var J=k.match(m);if(J?(E="",B=J[1],D=J[2]||null):(R=k.split(":"),E=R.shift(),R.length&&(D=R.join(":"))),D!==null&&D.length>0){if(A=parseInt(D,10),!/^[0-9]+$/.test(D)||A<=0||A>65535)return!1}else if(b.require_port)return!1;return b.host_whitelist?g(E,b.host_whitelist):E===""&&!b.require_host?!0:!(!(0,i.default)(E)&&!(0,r.default)(E,b)&&(!B||!(0,i.default)(B,6))||(E=E||B,b.host_blacklist&&g(E,b.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(gx,gx.exports);var CBe=gx.exports,vx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Ae);function r(d){return d&&d.__esModule?d:{default:d}}var i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,a=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,s=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,l=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;function c(d,f){return(0,n.default)(d),f!=null&&f.eui&&(f.eui=String(f.eui)),f!=null&&f.no_colons||f!=null&&f.no_separators?f.eui==="48"?a.test(d):f.eui==="64"?l.test(d):a.test(d)||l.test(d):(f==null?void 0:f.eui)==="48"?i.test(d)||o.test(d):(f==null?void 0:f.eui)==="64"?s.test(d)||u.test(d):c(d,{eui:"48"})||c(d,{eui:"64"})}e.exports=t.default,e.exports.default=t.default})(vx,vx.exports);var NBe=vx.exports,yx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ae),r=i(XC);function i(u){return u&&u.__esModule?u:{default:u}}var a=/^\d{1,3}$/,o=32,s=128;function l(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(0,n.default)(u);var d=u.split("/");if(d.length!==2||!a.test(d[1])||d[1].length>1&&d[1].startsWith("0"))return!1;var f=(0,r.default)(d[0],c);if(!f)return!1;var p=null;switch(String(c)){case"4":p=o;break;case"6":p=s;break;default:p=(0,r.default)(d[0],"6")?s:o}return d[1]<=p&&d[1]>=0}e.exports=t.default,e.exports.default=t.default})(yx,yx.exports);var IBe=yx.exports,Sx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=r(Ca);function r(h){return h&&h.__esModule?h:{default:h}}function i(h,g){return s(h)||o(h,g)||u(h,g)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(h,g){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(h)))){var v=[],y=!0,b=!1,T=void 0;try{for(var _=h[Symbol.iterator](),E;!(y=(E=_.next()).done)&&(v.push(E.value),!(g&&v.length===g));y=!0);}catch(k){b=!0,T=k}finally{try{!y&&_.return!=null&&_.return()}finally{if(b)throw T}}return v}}function s(h){if(Array.isArray(h))return h}function l(h,g){var v;if(typeof Symbol>"u"||h[Symbol.iterator]==null){if(Array.isArray(h)||(v=u(h))||g&&h&&typeof h.length=="number"){v&&(h=v);var y=0,b=function(){};return{s:b,n:function(){return y>=h.length?{done:!0}:{done:!1,value:h[y++]}},e:function(A){throw A},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,_=!1,E;return{s:function(){v=h[Symbol.iterator]()},n:function(){var A=v.next();return T=A.done,A},e:function(A){_=!0,E=A},f:function(){try{!T&&v.return!=null&&v.return()}finally{if(_)throw E}}}}function u(h,g){if(h){if(typeof h=="string")return c(h,g);var v=Object.prototype.toString.call(h).slice(8,-1);if(v==="Object"&&h.constructor&&(v=h.constructor.name),v==="Map"||v==="Set")return Array.from(h);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return c(h,g)}}function c(h,g){(g==null||g>h.length)&&(g=h.length);for(var v=0,y=new Array(g);v1&&arguments[1]!==void 0?arguments[1]:i;return(0,n.default)(l),u.loose?o.includes(l.toLowerCase()):a.includes(l)}e.exports=t.default,e.exports.default=t.default})(Tx,Tx.exports);var DBe=Tx.exports,_x={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=r(Ae);function r(b){return b&&b.__esModule?b:{default:b}}var i="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",a="(([a-zA-Z]{2,3}(-".concat(i,")?)|([a-zA-Z]{5,8}))"),o="([A-Za-z]{4})",s="([A-Za-z]{2}|\\d{3})",l="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",u="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",c="(".concat(u,"(-[A-Za-z0-9]{2,8})+)"),d="(x(-[A-Za-z0-9]{1,8})+)",f="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",p="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",m="(".concat(f,"|").concat(p,")"),h="(-|_)",g="".concat(a,"(").concat(h).concat(o,")?(").concat(h).concat(s,")?(").concat(h).concat(l,")*(").concat(h).concat(c,")*(").concat(h).concat(d,")?"),v=new RegExp("(^".concat(d,"$)|(^").concat(m,"$)|(^").concat(g,"$)"));function y(b){return(0,n.default)(b),v.test(b)}e.exports=t.default,e.exports.default=t.default})(_x,_x.exports);var xBe=_x.exports,_b={};Object.defineProperty(_b,"__esModule",{value:!0});_b.default=PBe;_b.locales=void 0;var MBe=RBe(Ae),Ex=er;function RBe(e){return e&&e.__esModule?e:{default:e}}function PBe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,MBe.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else if(typeof i=="string")r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in Ex.alpha)return Ex.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))}var FBe=Object.keys(Ex.alpha);_b.locales=FBe;var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0});Eb.default=$Be;Eb.locales=void 0;var LBe=BBe(Ae),wx=er;function BBe(e){return e&&e.__esModule?e:{default:e}}function $Be(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,LBe.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else if(typeof i=="string")r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in wx.alphanumeric)return wx.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))}var UBe=Object.keys(wx.alphanumeric);Eb.locales=UBe;var kx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=er;function i(s){return s&&s.__esModule?s:{default:s}}var a=/^[0-9]+$/;function o(s,l){return(0,n.default)(s),l&&l.no_symbols?a.test(s):new RegExp("^[+-]?([0-9]*[".concat((l||{}).locale?r.decimal[l.locale]:".","])?[0-9]+$")).test(s)}e.exports=t.default,e.exports.default=t.default})(kx,kx.exports);var HBe=kx.exports,Ax={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};function a(o,s){(0,n.default)(o);var l=o.replace(/\s/g,"").toUpperCase();return s.toUpperCase()in i&&i[s].test(l)}e.exports=t.default,e.exports.default=t.default})(Ax,Ax.exports);var VBe=Ax.exports,Cx={exports:{}},Nx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ae);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;function o(s,l){(0,n.default)(s),l=l||{};var u=l.hasOwnProperty("allow_leading_zeroes")&&!l.allow_leading_zeroes?i:a,c=!l.hasOwnProperty("min")||s>=l.min,d=!l.hasOwnProperty("max")||s<=l.max,f=!l.hasOwnProperty("lt")||sl.gt;return u.test(s)&&c&&d&&f&&p}e.exports=t.default,e.exports.default=t.default})(Nx,Nx.exports);var b$=Nx.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(b$);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a,{min:0,max:65535})}e.exports=t.default,e.exports.default=t.default})(Cx,Cx.exports);var zBe=Cx.exports,Ix={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a===a.toLowerCase()}e.exports=t.default,e.exports.default=t.default})(Ix,Ix.exports);var qBe=Ix.exports,Ox={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a===a.toUpperCase()}e.exports=t.default,e.exports.default=t.default})(Ox,Ox.exports);var WBe=Ox.exports,Dx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ae);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function o(s,l){(0,n.default)(s),l=l||{};var u=i;if(l.allow_hyphens&&(u=a),!u.test(s))return!1;s=s.replace(/-/g,"");for(var c=0,d=2,f=14,p=0;p=10?c+=h%10+1:c+=h,d===1?d+=1:d-=1}var g=(10-c%10)%10;return g===parseInt(s.substring(14,15),10)}e.exports=t.default,e.exports.default=t.default})(Dx,Dx.exports);var jBe=Dx.exports,xx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[\x00-\x7F]+$/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(xx,xx.exports);var GBe=xx.exports,N1={};Object.defineProperty(N1,"__esModule",{value:!0});N1.default=KBe;N1.fullWidth=void 0;var JBe=YBe(Ae);function YBe(e){return e&&e.__esModule?e:{default:e}}var Kfe=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;N1.fullWidth=Kfe;function KBe(e){return(0,JBe.default)(e),Kfe.test(e)}var I1={};Object.defineProperty(I1,"__esModule",{value:!0});I1.default=XBe;I1.halfWidth=void 0;var QBe=ZBe(Ae);function ZBe(e){return e&&e.__esModule?e:{default:e}}var Qfe=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;I1.halfWidth=Qfe;function XBe(e){return(0,QBe.default)(e),Qfe.test(e)}var Mx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(Ae),r=N1,i=I1;function a(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,n.default)(s),r.fullWidth.test(s)&&i.halfWidth.test(s)}e.exports=t.default,e.exports.default=t.default})(Mx,Mx.exports);var e$e=Mx.exports,Rx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/[^\x00-\x7F]/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(Rx,Rx.exports);var t$e=Rx.exports,Px={exports:{}},Fx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i){var a=r.join("");return new RegExp(a,i)}e.exports=t.default,e.exports.default=t.default})(Fx,Fx.exports);var n$e=Fx.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=i(n$e);function i(s){return s&&s.__esModule?s:{default:s}}var a=(0,r.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function o(s){return(0,n.default)(s),a.test(s)}e.exports=t.default,e.exports.default=t.default})(Px,Px.exports);var r$e=Px.exports,Lx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(Lx,Lx.exports);var i$e=Lx.exports,Bx={exports:{}},$x={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(a,o){return a.some(function(s){return o===s})},r=n;t.default=r,e.exports=t.default,e.exports.default=t.default})($x,$x.exports);var a$e=$x.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=o(Ca),r=o(Ae),i=o(a$e),a=er;function o(d){return d&&d.__esModule?d:{default:d}}function s(d){var f=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[d.locale],"[0-9]{").concat(d.decimal_digits,"})").concat(d.force_decimal?"":"?","$"));return f}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];function c(d,f){if((0,r.default)(d),f=(0,n.default)(f,l),f.locale in a.decimal)return!(0,i.default)(u,d.replace(/ /g,""))&&s(f).test(d);throw new Error("Invalid locale '".concat(f.locale,"'"))}e.exports=t.default,e.exports.default=t.default})(Bx,Bx.exports);var o$e=Bx.exports,Ux={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^(0x|0h)?[0-9A-F]+$/i;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(Ux,Ux.exports);var Zfe=Ux.exports,Hx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^(0o)?[0-7]+$/i;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(Hx,Hx.exports);var s$e=Hx.exports,Vx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ae),r=i(Wfe);function i(o){return o&&o.__esModule?o:{default:o}}function a(o,s){return(0,n.default)(o),(0,r.default)(o)%parseInt(s,10)===0}e.exports=t.default,e.exports.default=t.default})(Vx,Vx.exports);var l$e=Vx.exports,zx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(zx,zx.exports);var u$e=zx.exports,qx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Ae);function r(u){return u&&u.__esModule?u:{default:u}}var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,o=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;function l(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,n.default)(u),c?i.test(u)||a.test(u)||o.test(u)||s.test(u):i.test(u)||a.test(u)}e.exports=t.default,e.exports.default=t.default})(qx,qx.exports);var c$e=qx.exports,Wx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ae);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function o(s){(0,n.default)(s);var l=s.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return l.indexOf(",")!==-1?i.test(l):a.test(l)}e.exports=t.default,e.exports.default=t.default})(Wx,Wx.exports);var d$e=Wx.exports,jx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(jx,jx.exports);var f$e=jx.exports,wb={};Object.defineProperty(wb,"__esModule",{value:!0});wb.default=y$e;wb.locales=void 0;var p$e=m$e(Ae);function m$e(e){return e&&e.__esModule?e:{default:e}}var xk={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function h$e(e){var t=e.filter(function(n){return!(n in xk)});return!(t.length>0)}function g$e(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),i=r in xk;if(t.whitelist){if(!h$e(t.whitelist))return!1;var a=t.whitelist.includes(r);if(!a)return!1}if(t.blacklist){var o=t.blacklist.includes(r);if(o)return!1}return i&&xk[r].test(n)}function v$e(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),n=t.slice(4)+t.slice(0,4),r=n.replace(/[A-Z]/g,function(a){return a.charCodeAt(0)-55}),i=r.match(/\d{1,7}/g).reduce(function(a,o){return Number(a+o)%97},"");return i===1}function y$e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,p$e.default)(e),g$e(e,t)&&v$e(e)}var S$e=Object.keys(xk);wb.locales=S$e;var Gx={exports:{}},O1={};Object.defineProperty(O1,"__esModule",{value:!0});O1.default=_$e;O1.CountryCodes=void 0;var b$e=T$e(Ae);function T$e(e){return e&&e.__esModule?e:{default:e}}var Xfe=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function _$e(e){return(0,b$e.default)(e),Xfe.has(e.toUpperCase())}var E$e=Xfe;O1.CountryCodes=E$e;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=O1;function i(s){return s&&s.__esModule?s:{default:s}}var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function o(s){(0,n.default)(s);var l=s.slice(4,6).toUpperCase();return!r.CountryCodes.has(l)&&l!=="XK"?!1:a.test(s)}e.exports=t.default,e.exports.default=t.default})(Gx,Gx.exports);var w$e=Gx.exports,Jx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[a-f0-9]{32}$/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(Jx,Jx.exports);var k$e=Jx.exports,Yx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function a(o,s){(0,n.default)(o);var l=new RegExp("^[a-fA-F0-9]{".concat(i[s],"}$"));return l.test(o)}e.exports=t.default,e.exports.default=t.default})(Yx,Yx.exports);var A$e=Yx.exports,Kx={exports:{}},Qx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ae),r=i(Ca);function i(u){return u&&u.__esModule?u:{default:u}}var a=/[^A-Z0-9+\/=]/i,o=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};function l(u,c){(0,n.default)(u),c=(0,r.default)(c,s);var d=u.length;if(c.urlSafe)return o.test(u);if(d%4!==0||a.test(u))return!1;var f=u.indexOf("=");return f===-1||f===d-1||f===d-2&&u[d-1]==="="}e.exports=t.default,e.exports.default=t.default})(Qx,Qx.exports);var e0e=Qx.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ae),r=i(e0e);function i(o){return o&&o.__esModule?o:{default:o}}function a(o){(0,n.default)(o);var s=o.split("."),l=s.length;return l!==3?!1:s.reduce(function(u,c){return u&&(0,r.default)(c,{urlSafe:!0})},!0)}e.exports=t.default,e.exports.default=t.default})(Kx,Kx.exports);var C$e=Kx.exports,Zx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ae),r=i(Ca);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(c){return typeof c}:a=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a(l)}var o={allow_primitives:!1};function s(l,u){(0,n.default)(l);try{u=(0,r.default)(u,o);var c=[];u.allow_primitives&&(c=[null,!1,!0]);var d=JSON.parse(l);return c.includes(d)||!!d&&a(d)==="object"}catch{}return!1}e.exports=t.default,e.exports.default=t.default})(Zx,Zx.exports);var N$e=Zx.exports,Xx={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=i(Ca);function i(s){return s&&s.__esModule?s:{default:s}}var a={ignore_whitespace:!1};function o(s,l){return(0,n.default)(s),l=(0,r.default)(l,a),(l.ignore_whitespace?s.trim().length:s.length)===0}e.exports=t.default,e.exports.default=t.default})(Xx,Xx.exports);var I$e=Xx.exports,eM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}function i(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(l){return typeof l}:i=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(o)}function a(o,s){(0,n.default)(o);var l,u;i(s)==="object"?(l=s.min||0,u=s.max):(l=arguments[1]||0,u=arguments[2]);var c=o.match(/(\uFE0F|\uFE0E)/g)||[],d=o.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],f=o.length-c.length-d.length;return f>=l&&(typeof u>"u"||f<=u)}e.exports=t.default,e.exports.default=t.default})(eM,eM.exports);var O$e=eM.exports,tM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function a(o,s){(0,n.default)(o);var l=i[[void 0,null].includes(s)?"all":s];return!!l&&l.test(o)}e.exports=t.default,e.exports.default=t.default})(tM,tM.exports);var D$e=tM.exports,nM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ae),r=i(Zfe);function i(o){return o&&o.__esModule?o:{default:o}}function a(o){return(0,n.default)(o),(0,r.default)(o)&&o.length===24}e.exports=t.default,e.exports.default=t.default})(nM,nM.exports);var x$e=nM.exports,rM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(y$);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){var s=(o==null?void 0:o.comparisonDate)||o||Date().toString(),l=(0,n.default)(s),u=(0,n.default)(a);return!!(u&&l&&u>l)}e.exports=t.default,e.exports.default=t.default})(rM,rM.exports);var M$e=rM.exports,iM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ae),r=i(y$);function i(o){return o&&o.__esModule?o:{default:o}}function a(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:String(new Date);(0,n.default)(o);var l=(0,r.default)(s),u=(0,r.default)(o);return!!(u&&l&&u=0}else{if(a(l)==="object")return l.hasOwnProperty(s);if(l&&typeof l.indexOf=="function")return l.indexOf(s)>=0}return!1}e.exports=t.default,e.exports.default=t.default})(aM,aM.exports);var P$e=aM.exports,oM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,n.default)(a);for(var o=a.replace(/[- ]+/g,""),s=0,l,u,c,d=o.length-1;d>=0;d--)l=o.substring(d,d+1),u=parseInt(l,10),c?(u*=2,u>=10?s+=u%10+1:s+=u):s+=u,c=!c;return!!(s%10===0&&o)}e.exports=t.default,e.exports.default=t.default})(oM,oM.exports);var t0e=oM.exports,sM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ae),r=i(t0e);function i(l){return l&&l.__esModule?l:{default:l}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},o=function(){var l=[];for(var u in a)a.hasOwnProperty(u)&&l.push(a[u]);return l}();function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var c=u.provider,d=l.replace(/[- ]+/g,"");if(c&&c.toLowerCase()in a){if(!a[c.toLowerCase()].test(d))return!1}else{if(c&&!(c.toLowerCase()in a))throw new Error("".concat(c," is not a valid credit card provider."));if(!o.some(function(f){return f.test(d)}))return!1}return(0,r.default)(l)}e.exports=t.default,e.exports.default=t.default})(sM,sM.exports);var F$e=sM.exports,lM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(Ae),r=i(b$);function i(s){return s&&s.__esModule?s:{default:s}}var a={PL:function(l){(0,n.default)(l);var u={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(l!=null&&l.length===11&&(0,r.default)(l,{allow_leading_zeroes:!0})){var c=l.split("").slice(0,-1),d=c.reduce(function(m,h,g){return m+Number(h)*u[g+1]},0),f=d%10,p=Number(l.charAt(l.length-1));if(f===0&&p===0||p===10-f)return!0}return!1},ES:function(l){(0,n.default)(l);var u=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,c={X:0,Y:1,Z:2},d=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],f=l.trim().toUpperCase();if(!u.test(f))return!1;var p=f.slice(0,-1).replace(/[X,Y,Z]/g,function(m){return c[m]});return f.endsWith(d[p%23])},FI:function(l){if((0,n.default)(l),l.length!==11||!l.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var u="0123456789ABCDEFHJKLMNPRSTUVWXY",c=parseInt(l.slice(0,6),10)*1e3+parseInt(l.slice(7,10),10),d=c%31,f=u[d];return f===l.slice(10,11)},IN:function(l){var u=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,c=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],d=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],f=l.trim();if(!u.test(f))return!1;var p=0,m=f.replace(/\s/g,"").split("").map(Number).reverse();return m.forEach(function(h,g){p=c[p][d[g%8][h]]}),p===0},IR:function(l){if(!l.match(/^\d{10}$/)||(l="0000".concat(l).slice(l.length-6),parseInt(l.slice(3,9),10)===0))return!1;for(var u=parseInt(l.slice(9,10),10),c=0,d=0;d<9;d++)c+=parseInt(l.slice(d,d+1),10)*(10-d);return c%=11,c<2&&u===c||c>=2&&u===11-c},IT:function(l){return l.length!==9||l==="CA00000AA"?!1:l.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1},NO:function(l){var u=l.trim();if(isNaN(Number(u))||u.length!==11||u==="00000000000")return!1;var c=u.split("").map(Number),d=(11-(3*c[0]+7*c[1]+6*c[2]+1*c[3]+8*c[4]+9*c[5]+4*c[6]+5*c[7]+2*c[8])%11)%11,f=(11-(5*c[0]+4*c[1]+3*c[2]+2*c[3]+7*c[4]+6*c[5]+5*c[6]+4*c[7]+3*c[8]+2*d)%11)%11;return!(d!==c[9]||f!==c[10])},TH:function(l){if(!l.match(/^[1-8]\d{12}$/))return!1;for(var u=0,c=0;c<12;c++)u+=parseInt(l[c],10)*(13-c);return l[12]===((11-u%11)%10).toString()},LK:function(l){var u=/^[1-9]\d{8}[vx]$/i,c=/^[1-9]\d{11}$/i;return l.length===10&&u.test(l)?!0:!!(l.length===12&&c.test(l))},"he-IL":function(l){var u=/^\d{9}$/,c=l.trim();if(!u.test(c))return!1;for(var d=c,f=0,p,m=0;m9?p-9:p;return f%10===0},"ar-LY":function(l){var u=/^(1|2)\d{11}$/,c=l.trim();return!!u.test(c)},"ar-TN":function(l){var u=/^\d{8}$/,c=l.trim();return!!u.test(c)},"zh-CN":function(l){var u=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],c=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],d=["1","0","X","9","8","7","6","5","4","3","2"],f=function(T){return u.includes(T)},p=function(T){var _=parseInt(T.substring(0,4),10),E=parseInt(T.substring(4,6),10),k=parseInt(T.substring(6),10),A=new Date(_,E-1,k);return A>new Date?!1:A.getFullYear()===_&&A.getMonth()===E-1&&A.getDate()===k},m=function(T){for(var _=T.substring(0,17),E=0,k=0;k<17;k++)E+=parseInt(_.charAt(k),10)*parseInt(c[k],10);var A=E%11;return d[A]},h=function(T){return m(T)===T.charAt(17).toUpperCase()},g=function(T){var _=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(T);if(!_)return!1;var E=T.substring(0,2);if(_=f(E),!_)return!1;var k="19".concat(T.substring(6,12));return _=p(k),!!_},v=function(T){var _=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(T);if(!_)return!1;var E=T.substring(0,2);if(_=f(E),!_)return!1;var k=T.substring(6,14);return _=p(k),_?h(T):!1},y=function(T){var _=/^\d{15}|(\d{17}(\d|x|X))$/.test(T);return _?T.length===15?g(T):v(T):!1};return y(l)},"zh-HK":function(l){l=l.trim();var u=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,c=/^[0-9]$/;if(l=l.toUpperCase(),!u.test(l))return!1;l=l.replace(/\[|\]|\(|\)/g,""),l.length===8&&(l="3".concat(l));for(var d=0,f=0;f<=7;f++){var p=void 0;c.test(l[f])?p=l[f]:p=(l[f].charCodeAt(0)-55)%11,d+=p*(9-f)}d%=11;var m;return d===0?m="0":d===1?m="A":m=String(11-d),m===l[l.length-1]},"zh-TW":function(l){var u={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},c=l.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(c)?Array.from(c).reduce(function(d,f,p){if(p===0){var m=u[f];return m%10*9+Math.floor(m/10)}return p===9?(10-d%10-Number(f))%10===0:d+Number(f)*(9-p)},0):!1}};function o(s,l){if((0,n.default)(s),l in a)return a[l](s);if(l==="any"){for(var u in a)if(a.hasOwnProperty(u)){var c=a[u];if(c(s))return!0}return!1}throw new Error("Invalid locale '".concat(l,"'"))}e.exports=t.default,e.exports.default=t.default})(lM,lM.exports);var L$e=lM.exports,uM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Ae);function r(c){return c&&c.__esModule?c:{default:c}}var i=8,a=14,o=/^(\d{8}|\d{13}|\d{14})$/;function s(c,d){return c===i||c===a?d%2===0?3:1:d%2===0?1:3}function l(c){var d=c.slice(0,-1).split("").map(function(p,m){return Number(p)*s(c.length,m)}).reduce(function(p,m){return p+m},0),f=10-d%10;return f<10?f:0}function u(c){(0,n.default)(c);var d=Number(c.slice(-1));return o.test(c)&&d===l(c)}e.exports=t.default,e.exports.default=t.default})(uM,uM.exports);var B$e=uM.exports,cM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function a(o){if((0,n.default)(o),!i.test(o))return!1;for(var s=!0,l=0,u=o.length-2;u>=0;u--)if(o[u]>="A"&&o[u]<="Z")for(var c=o[u].charCodeAt(0)-55,d=c%10,f=Math.trunc(c/10),p=0,m=[d,f];p=5?l+=1+(h-5)*2:l+=h*2:l+=h,s=!s}else{var g=o[u].charCodeAt(0)-"0".charCodeAt(0);s?g>=5?l+=1+(g-5)*2:l+=g*2:l+=g,s=!s}var v=Math.trunc((l+9)/10)*10-l;return+o[o.length-1]===v}e.exports=t.default,e.exports.default=t.default})(cM,cM.exports);var $$e=cM.exports,dM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ae);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,o=[1,3];function s(l,u){(0,n.default)(l);var c=String((u==null?void 0:u.version)||u);if(!(u!=null&&u.version||u))return s(l,{version:10})||s(l,{version:13});var d=l.replace(/[\s-]+/g,""),f=0;if(c==="10"){if(!i.test(d))return!1;for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(o);var l=i;if(l=s.require_hyphen?l.replace("?",""):l,l=s.case_sensitive?new RegExp(l):new RegExp(l,"i"),!l.test(o))return!1;for(var u=o.replace("-","").toUpperCase(),c=0,d=0;d=0;r--){if(n){var i=parseInt(e[r],10)*2;i>9?t+=i.toString().split("").map(function(a){return parseInt(a,10)}).reduce(function(a,o){return a+o},0):t+=i}else t+=parseInt(e[r],10);n=!n}return t%10===0}function q$e(e,t){for(var n=0,r=0;rP.length)&&(q=P.length);for(var Y=0,Se=new Array(q);Y40?(Y-=40,q="20".concat(q)):Y>20?(Y-=20,q="18".concat(q)):q="19".concat(q),Y<10&&(Y="0".concat(Y));var Se="".concat(q,"/").concat(Y,"/").concat(P.slice(4,6));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1;for(var ye=P.split("").map(function($){return parseInt($,10)}),Te=[2,4,8,5,10,9,7,3,6],Ye=0,ft=0;ft50&&(Y-=50),Y>20){if(parseInt(q,10)<2004)return!1;Y-=20}Y<10&&(Y="0".concat(Y));var Se="".concat(q,"/").concat(Y,"/").concat(P.slice(4,6));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1;if(P.length===10&&parseInt(P,10)%11!==0){var ye=parseInt(P.slice(0,9),10)%11;if(parseInt(q,10)<1986&&ye===10){if(parseInt(P.slice(9),10)!==0)return!1}else return!1}return!0}function y(P){return i.luhnCheck(P)}function b(P){for(var q=P.split("").map(function($){return parseInt($,10)}),Y=[],Se=0;Se1}),Y.length!==2&&Y.length!==3)return!1;if(Y[0].length===3){for(var Te=Y[0].split("").map(function($){return parseInt($,10)}),Ye=0,ft=0;ft58)q="18".concat(q);else return!1;break}q.length===3&&(q=[q.slice(0,2),"0",q.slice(2)].join(""));var Se="".concat(q,"/").concat(P.slice(2,4),"/").concat(P.slice(0,2));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1;for(var ye=P.split("").map(function($){return parseInt($,10)}),Te=0,Ye=4,ft=0;ft<9;ft++)Te+=ye[ft]*Ye,Ye-=1,Ye===1&&(Ye=7);return Te%=11,Te===1?!1:Te===0?ye[9]===0:ye[9]===11-Te}function _(P){for(var q=P.slice(0,8).split("").map(function(Te){return parseInt(Te,10)}),Y=0,Se=1;Se4&&(Y+=2));return String.fromCharCode(Y%26+65)===P.charAt(8)}function E(P){for(var q=P.split("").map(function(ye){return parseInt(ye,10)}),Y=0,Se=0;Se<8;Se++)Y+=q[Se]*Math.pow(2,8-Se);return Y%11%10===q[8]}function k(P){var q=i.reverseMultiplyAndSum(P.split("").slice(0,7).map(function(Y){return parseInt(Y,10)}),8);return P.length===9&&P[8]!=="W"&&(q+=(P[8].charCodeAt(0)-64)*9),q%=23,q===0?P[7].toUpperCase()==="W":P[7].toUpperCase()===String.fromCharCode(64+q)}var A={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function D(){var P=[];for(var q in A)A.hasOwnProperty(q)&&P.push.apply(P,u(A[q]));return P}function R(P){return D().indexOf(P.slice(0,2))!==-1}function B(P){var q=P.toUpperCase().split("");if(isNaN(parseInt(q[0],10))&&q.length>1){var Y=0;switch(q[0]){case"Y":Y=1;break;case"Z":Y=2;break}q.splice(0,1,Y)}else for(;q.length<9;)q.unshift(0);var Se=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"];q=q.join("");var ye=parseInt(q.slice(0,8),10)%23;return q[8]===Se[ye]}function H(P){var q=P.slice(1,3),Y=P.slice(0,1);switch(Y){case"1":case"2":q="18".concat(q);break;case"3":case"4":q="19".concat(q);break;default:q="20".concat(q);break}var Se="".concat(q,"/").concat(P.slice(3,5),"/").concat(P.slice(5,7));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1;for(var ye=P.split("").map(function(ee){return parseInt(ee,10)}),Te=0,Ye=1,ft=0;ft<10;ft++)Te+=ye[ft]*Ye,Ye+=1,Ye===10&&(Ye=1);if(Te%11===10){Te=0,Ye=3;for(var $=0;$<10;$++)Te+=ye[$]*Ye,Ye+=1,Ye===10&&(Ye=1);if(Te%11===10)return ye[10]===0}return Te%11===ye[10]}function L(P){var q=P.slice(4,6),Y=P.slice(6,7);switch(Y){case"+":q="18".concat(q);break;case"-":q="19".concat(q);break;default:q="20".concat(q);break}var Se="".concat(q,"/").concat(P.slice(2,4),"/").concat(P.slice(0,2));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1;var ye=parseInt(P.slice(0,6)+P.slice(7,10),10)%31;if(ye<10)return ye===parseInt(P.slice(10),10);ye-=10;var Te=["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"];return Te[ye]===P.slice(10)}function V(P){if(P.slice(2,4)!=="00"||P.slice(4,6)!=="00"){var q="".concat(P.slice(0,2),"/").concat(P.slice(2,4),"/").concat(P.slice(4,6));if(!(0,a.default)(q,"YY/MM/DD"))return!1}var Y=97-parseInt(P.slice(0,9),10)%97,Se=parseInt(P.slice(9,11),10);return!(Y!==Se&&(Y=97-parseInt("2".concat(P.slice(0,9)),10)%97,Y!==Se))}function U(P){P=P.replace(/\s/g,"");var q=parseInt(P.slice(0,10),10)%511,Y=parseInt(P.slice(10,13),10);return q===Y}function J(P){var q="".concat(P.slice(0,4),"/").concat(P.slice(4,6),"/").concat(P.slice(6,8));return!(0,a.default)(q,"YYYY/MM/DD")||!i.luhnCheck(P.slice(0,12))?!1:i.verhoeffCheck("".concat(P.slice(0,11)).concat(P[12]))}function re(P){return i.iso7064Check(P)}function X(P){for(var q=P.split("").map(function(ye){return parseInt(ye,10)}),Y=8,Se=1;Se<9;Se++)Y+=q[Se]*(Se+1);return Y%11===q[9]}function j(P){for(var q=!1,Y=!1,Se=0;Se<3;Se++)if(!q&&/[AEIOU]/.test(P[Se]))q=!0;else if(!Y&&q&&P[Se]==="X")Y=!0;else if(Se>0&&(q&&!Y&&!/[AEIOU]/.test(P[Se])||Y&&!/X/.test(P[Se])))return!1;return!0}function te(P){var q=P.toUpperCase().split("");if(!j(q.slice(0,3))||!j(q.slice(3,6)))return!1;for(var Y=[6,7,9,10,12,13,14],Se={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},ye=0,Te=Y;ye40&&(ee-=40),ee<10&&(ee="0".concat(ee));var pe="".concat(q[6]).concat(q[7],"/").concat($,"/").concat(ee);if(!(0,a.default)(pe,"YY/MM/DD"))return!1;for(var I=0,w=1;w4&&(Q+=2)}I+=Q}return String.fromCharCode(65+I%26)===q[15]}function M(P){P=P.replace(/\W/,"");var q=P.slice(0,2);if(q!=="32"){var Y=P.slice(2,4);if(Y!=="00"){var Se=P.slice(4,6);switch(P[6]){case"0":Se="18".concat(Se);break;case"1":Se="19".concat(Se);break;default:Se="20".concat(Se);break}var ye="".concat(Se,"/").concat(P.slice(2,4),"/").concat(q);if(!(0,a.default)(ye,"YYYY/MM/DD"))return!1}for(var Te=1101,Ye=[1,6,3,7,9,10,5,8,4,2],ft=0;ft32e3)return!1;var Se=parseInt(q.join("").slice(5,7),10);if(Y===Se)return!1}}}return!0}function ce(P){return i.reverseMultiplyAndSum(P.split("").slice(0,8).map(function(q){return parseInt(q,10)}),9)%11===parseInt(P[8],10)}function ue(P){if(P.length===10){for(var q=[6,5,7,2,3,4,5,6,7],Y=0,Se=0;Se80?(ye="18".concat(ye),Te-=80):Te>60?(ye="22".concat(ye),Te-=60):Te>40?(ye="21".concat(ye),Te-=40):Te>20?(ye="20".concat(ye),Te-=20):ye="19".concat(ye),Te<10&&(Te="0".concat(Te));var Ye="".concat(ye,"/").concat(Te,"/").concat(P.slice(4,6));if(!(0,a.default)(Ye,"YYYY/MM/DD"))return!1;for(var ft=0,$=1,ee=0;ee10?$=1:$===5&&($+=2);return ft=10-ft%10,ft===parseInt(P[10],10)}function he(P){if(P.length===11){var q,Y;if(q=0,P==="11111111111"||P==="22222222222"||P==="33333333333"||P==="44444444444"||P==="55555555555"||P==="66666666666"||P==="77777777777"||P==="88888888888"||P==="99999999999"||P==="00000000000")return!1;for(var Se=1;Se<=9;Se++)q+=parseInt(P.substring(Se-1,Se),10)*(11-Se);if(Y=q*10%11,Y===10&&(Y=0),Y!==parseInt(P.substring(9,10),10))return!1;q=0;for(var ye=1;ye<=10;ye++)q+=parseInt(P.substring(ye-1,ye),10)*(12-ye);return Y=q*10%11,Y===10&&(Y=0),Y===parseInt(P.substring(10,11),10)}if(P==="00000000000000"||P==="11111111111111"||P==="22222222222222"||P==="33333333333333"||P==="44444444444444"||P==="55555555555555"||P==="66666666666666"||P==="77777777777777"||P==="88888888888888"||P==="99999999999999")return!1;for(var Te=P.length-2,Ye=P.substring(0,Te),ft=P.substring(Te),$=0,ee=Te-7,pe=Te;pe>=1;pe--)$+=Ye.charAt(Te-pe)*ee,ee-=1,ee<2&&(ee=9);var I=$%11<2?0:11-$%11;if(I!==parseInt(ft.charAt(0),10))return!1;Te+=1,Ye=P.substring(0,Te),$=0,ee=Te-7;for(var w=Te;w>=1;w--)$+=Ye.charAt(Te-w)*ee,ee-=1,ee<2&&(ee=9);return I=$%11<2?0:11-$%11,I===parseInt(ft.charAt(1),10)}function Ce(P){var q=11-i.reverseMultiplyAndSum(P.split("").slice(0,8).map(function(Y){return parseInt(Y,10)}),9)%11;return q>9?parseInt(P[8],10)===0:q===parseInt(P[8],10)}function fe(P){if(P.slice(0,4)!=="9000"){var q=P.slice(1,3);switch(P[0]){case"1":case"2":q="19".concat(q);break;case"3":case"4":q="18".concat(q);break;case"5":case"6":q="20".concat(q);break}var Y="".concat(q,"/").concat(P.slice(3,5),"/").concat(P.slice(5,7));if(Y.length===8){if(!(0,a.default)(Y,"YY/MM/DD"))return!1}else if(!(0,a.default)(Y,"YYYY/MM/DD"))return!1;for(var Se=P.split("").map(function(ft){return parseInt(ft,10)}),ye=[2,7,9,1,4,6,3,5,8,2,7,9],Te=0,Ye=0;Ye53)return!1;q<10?q="190".concat(q):q="19".concat(q);var Y=parseInt(P.slice(2,4),10);Y>50&&(Y-=50),Y<10&&(Y="0".concat(Y));var Se="".concat(q,"/").concat(Y,"/").concat(P.slice(4,6));if(!(0,a.default)(Se,"YYYY/MM/DD"))return!1}return!0}function de(P){var q=11-i.reverseMultiplyAndSum(P.split("").slice(0,7).map(function(Y){return parseInt(Y,10)}),8)%11;return q===10?parseInt(P[7],10)===0:q===parseInt(P[7],10)}function Re(P){var q=P.slice(0);P.length>11&&(q=q.slice(2));var Y="",Se=q.slice(2,4),ye=parseInt(q.slice(4,6),10);if(P.length>11)Y=P.slice(0,4);else if(Y=P.slice(0,2),P.length===11&&ye<60){var Te=new Date().getFullYear().toString(),Ye=parseInt(Te.slice(0,2),10);if(Te=parseInt(Te,10),P[6]==="-")parseInt("".concat(Ye).concat(Y),10)>Te?Y="".concat(Ye-1).concat(Y):Y="".concat(Ye).concat(Y);else if(Y="".concat(Ye-1).concat(Y),Te-parseInt(Y,10)<100)return!1}ye>60&&(ye-=60),ye<10&&(ye="0".concat(ye));var ft="".concat(Y,"/").concat(Se,"/").concat(ye);if(ft.length===8){if(!(0,a.default)(ft,"YY/MM/DD"))return!1}else if(!(0,a.default)(ft,"YYYY/MM/DD"))return!1;return i.luhnCheck(P.replace(/\W/,""))}var De={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};De["lb-LU"]=De["fr-LU"],De["lt-LT"]=De["et-EE"],De["nl-BE"]=De["fr-BE"],De["fr-CA"]=De["en-CA"];var Me={"bg-BG":h,"cs-CZ":v,"de-AT":y,"de-DE":b,"dk-DK":T,"el-CY":_,"el-GR":E,"en-CA":g,"en-IE":k,"en-US":R,"es-ES":B,"et-EE":H,"fi-FI":L,"fr-BE":V,"fr-FR":U,"fr-LU":J,"hr-HR":re,"hu-HU":X,"it-IT":te,"lv-LV":M,"mt-MT":W,"nl-NL":ce,"pl-PL":ue,"pt-BR":he,"pt-PT":Ce,"ro-RO":fe,"sk-SK":ge,"sl-SI":de,"sv-SE":Re};Me["lb-LU"]=Me["fr-LU"],Me["lt-LT"]=Me["et-EE"],Me["nl-BE"]=Me["fr-BE"],Me["fr-CA"]=Me["en-CA"];var Ve=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,dt={"de-AT":Ve,"de-DE":/[\/\\]/g,"fr-BE":Ve};dt["nl-BE"]=dt["fr-BE"];function Nt(P){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,r.default)(P);var Y=P.slice(0);if(q in De)return q in dt&&(Y=Y.replace(dt[q],"")),De[q].test(Y)?q in Me?Me[q](Y):!0:!1;throw new Error("Invalid locale '".concat(q,"'"))}e.exports=t.default,e.exports.default=t.default})(pM,pM.exports);var j$e=pM.exports,kb={};Object.defineProperty(kb,"__esModule",{value:!0});kb.default=Y$e;kb.locales=void 0;var G$e=J$e(Ae);function J$e(e){return e&&e.__esModule?e:{default:e}}var nr={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};nr["en-CA"]=nr["en-US"];nr["fr-CA"]=nr["en-CA"];nr["fr-BE"]=nr["nl-BE"];nr["zh-HK"]=nr["en-HK"];nr["zh-MO"]=nr["en-MO"];nr["ga-IE"]=nr["en-IE"];nr["fr-CH"]=nr["de-CH"];nr["it-CH"]=nr["fr-CH"];function Y$e(e,t,n){if((0,G$e.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(a){if(nr.hasOwnProperty(a)){var o=nr[a];if(o.test(e))return!0}return!1});if(t in nr)return nr[t].test(e);if(!t||t==="any"){for(var r in nr)if(nr.hasOwnProperty(r)){var i=nr[r];if(i.test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))}var K$e=Object.keys(nr);kb.locales=K$e;var mM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^(0x)[0-9a-f]{40}$/i;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(mM,mM.exports);var Q$e=mM.exports,hM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=i(Ca),r=i(Ae);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){var u="\\d{".concat(l.digits_after_decimal[0],"}");l.digits_after_decimal.forEach(function(y,b){b!==0&&(u="".concat(u,"|\\d{").concat(y,"}"))});var c="(".concat(l.symbol.replace(/\W/,function(y){return"\\".concat(y)}),")").concat(l.require_symbol?"":"?"),d="-?",f="[1-9]\\d*",p="[1-9]\\d{0,2}(\\".concat(l.thousands_separator,"\\d{3})*"),m=["0",f,p],h="(".concat(m.join("|"),")?"),g="(\\".concat(l.decimal_separator,"(").concat(u,"))").concat(l.require_decimal?"":"?"),v=h+(l.allow_decimal||l.require_decimal?g:"");return l.allow_negatives&&!l.parens_for_negatives&&(l.negative_sign_after_digits?v+=d:l.negative_sign_before_digits&&(v=d+v)),l.allow_negative_sign_placeholder?v="( (?!\\-))?".concat(v):l.allow_space_after_symbol?v=" ?".concat(v):l.allow_space_after_digits&&(v+="( (?!$))?"),l.symbol_after_digits?v+=c:v=c+v,l.allow_negatives&&(l.parens_for_negatives?v="(\\(".concat(v,"\\)|").concat(v,")"):l.negative_sign_before_digits||l.negative_sign_after_digits||(v=d+v)),new RegExp("^(?!-? )(?=.*\\d)".concat(v,"$"))}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function s(l,u){return(0,r.default)(l),u=(0,n.default)(u,o),a(u).test(l)}e.exports=t.default,e.exports.default=t.default})(hM,hM.exports);var Z$e=hM.exports,gM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Ae);function r(s){return s&&s.__esModule?s:{default:s}}var i=/^(bc1)[a-z0-9]{25,39}$/,a=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;function o(s){return(0,n.default)(s),i.test(s)||a.test(s)}e.exports=t.default,e.exports.default=t.default})(gM,gM.exports);var X$e=gM.exports,Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.isISO6346=n0e;Ab.isFreightContainerID=void 0;var eUe=tUe(Ae);function tUe(e){return e&&e.__esModule?e:{default:e}}var nUe=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,rUe=/^[0-9]$/;function n0e(e){if((0,eUe.default)(e),e=e.toUpperCase(),!nUe.test(e))return!1;if(e.length===11){for(var t=0,n=0;n=11&&i<=20?r=12+i%11:i>=21&&i<=30?r=23+i%21:r=34+i%31,t+=r*Math.pow(2,n)}var a=t%11;return Number(e[e.length-1])===a}return!0}var iUe=n0e;Ab.isFreightContainerID=iUe;var vM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);function a(o){return(0,n.default)(o),i.has(o)}e.exports=t.default,e.exports.default=t.default})(vM,vM.exports);var aUe=vM.exports,yM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ae);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=function(u){var c=u.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(c){var d=Number(c[1]),f=Number(c[2]);return d%4===0&&d%100!==0||d%400===0?f<=366:f<=365}var p=u.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),m=p[1],h=p[2],g=p[3],v=h&&"0".concat(h).slice(-2),y=g&&"0".concat(g).slice(-2),b=new Date("".concat(m,"-").concat(v||"01","-").concat(y||"01"));return h&&g?b.getUTCFullYear()===m&&b.getUTCMonth()+1===h&&b.getUTCDate()===g:!0};function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var c=u.strictSeparator?a.test(l):i.test(l);return c&&u.strict?o(l):c}e.exports=t.default,e.exports.default=t.default})(yM,yM.exports);var oUe=yM.exports,SM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n=r(Ae);function r(y){return y&&y.__esModule?y:{default:y}}var i=/[0-9]{4}/,a=/(0[1-9]|1[0-2])/,o=/([12]\d|0[1-9]|3[01])/,s=/([01][0-9]|2[0-3])/,l=/[0-5][0-9]/,u=/([0-5][0-9]|60)/,c=/(\.[0-9]+)?/,d=new RegExp("[-+]".concat(s.source,":").concat(l.source)),f=new RegExp("([zZ]|".concat(d.source,")")),p=new RegExp("".concat(s.source,":").concat(l.source,":").concat(u.source).concat(c.source)),m=new RegExp("".concat(i.source,"-").concat(a.source,"-").concat(o.source)),h=new RegExp("".concat(p.source).concat(f.source)),g=new RegExp("^".concat(m.source,"[ tT]").concat(h.source,"$"));function v(y){return(0,n.default)(y),g.test(y)}e.exports=t.default,e.exports.default=t.default})(SM,SM.exports);var sUe=SM.exports,bM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function a(o){return(0,n.default)(o),i.has(o.toUpperCase())}e.exports=t.default,e.exports.default=t.default})(bM,bM.exports);var lUe=bM.exports,Cb={};Object.defineProperty(Cb,"__esModule",{value:!0});Cb.default=dUe;Cb.CurrencyCodes=void 0;var uUe=cUe(Ae);function cUe(e){return e&&e.__esModule?e:{default:e}}var r0e=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);function dUe(e){return(0,uUe.default)(e),r0e.has(e.toUpperCase())}var fUe=r0e;Cb.CurrencyCodes=fUe;var TM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(Ae),r=i(Ca);function i(u){return u&&u.__esModule?u:{default:u}}var a=/^[A-Z2-7]+=*$/,o=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};function l(u,c){if((0,n.default)(u),c=(0,r.default)(c,s),c.crockford)return o.test(u);var d=u.length;return!!(d%8===0&&a.test(u))}e.exports=t.default,e.exports.default=t.default})(TM,TM.exports);var pUe=TM.exports,_M={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[A-HJ-NP-Za-km-z1-9]*$/;function a(o){return(0,n.default)(o),!!i.test(o)}e.exports=t.default,e.exports.default=t.default})(_M,_M.exports);var mUe=_M.exports,EM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ae);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,a=/^[a-z\-]+=[a-z0-9\-]+$/i,o=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;function s(l){(0,n.default)(l);var u=l.split(",");if(u.length<2)return!1;var c=u.shift().trim().split(";"),d=c.shift();if(d.slice(0,5)!=="data:")return!1;var f=d.slice(5);if(f!==""&&!i.test(f))return!1;for(var p=0;p"u"||!(Symbol.iterator in Object(h)))){var v=[],y=!0,b=!1,T=void 0;try{for(var _=h[Symbol.iterator](),E;!(y=(E=_.next()).done)&&(v.push(E.value),!(g&&v.length===g));y=!0);}catch(k){b=!0,T=k}finally{try{!y&&_.return!=null&&_.return()}finally{if(b)throw T}}return v}}function u(h){if(Array.isArray(h))return h}function c(h,g){var v;if(typeof Symbol>"u"||h[Symbol.iterator]==null){if(Array.isArray(h)||(v=d(h))||g&&h&&typeof h.length=="number"){v&&(h=v);var y=0,b=function(){};return{s:b,n:function(){return y>=h.length?{done:!0}:{done:!1,value:h[y++]}},e:function(A){throw A},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,_=!1,E;return{s:function(){v=h[Symbol.iterator]()},n:function(){var A=v.next();return T=A.done,A},e:function(A){_=!0,E=A},f:function(){try{!T&&v.return!=null&&v.return()}finally{if(_)throw E}}}}function d(h,g){if(h){if(typeof h=="string")return f(h,g);var v=Object.prototype.toString.call(h).slice(8,-1);if(v==="Object"&&h.constructor&&(v=h.constructor.name),v==="Map"||v==="Set")return Array.from(h);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return f(h,g)}}function f(h,g){(g==null||g>h.length)&&(g=h.length);for(var v=0,y=new Array(g);v4)return!1;var T=c(b),_;try{for(T.s();!(_=T.n()).done;){var E=_.value,k=E.split("="),A=o(k,2),D=A[0],R=A[1];if(D&&!g.has(D)){y=!0;break}R&&(D==="cc"||D==="bcc")&&(v[D]=R),D&&g.delete(D)}}catch(B){T.e(B)}finally{T.f()}return y?!1:v}function m(h,g){if((0,i.default)(h),h.indexOf("mailto:")!==0)return!1;var v=h.replace("mailto:","").split("?"),y=o(v,2),b=y[0],T=b===void 0?"":b,_=y[1],E=_===void 0?"":_;if(!T&&!E)return!0;var k=p(E);return k?"".concat(T,",").concat(k.cc,",").concat(k.bcc).split(",").every(function(A){return A=(0,n.default)(A," "),A?(0,r.default)(A,g):!0}):!1}e.exports=t.default,e.exports.default=t.default})(kM,kM.exports);var vUe=kM.exports,IM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Ae);function r(l){return l&&l.__esModule?l:{default:l}}var i=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function s(l){return(0,n.default)(l),i.test(l)||a.test(l)||o.test(l)}e.exports=t.default,e.exports.default=t.default})(IM,IM.exports);var yUe=IM.exports,OM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=i(Ae),r=i(Ca);function i(d){return d&&d.__esModule?d:{default:d}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,o=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,l=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,u={checkDMS:!1};function c(d,f){if((0,n.default)(d),f=(0,r.default)(f,u),!d.includes(","))return!1;var p=d.split(",");return p[0].startsWith("(")&&!p[1].endsWith(")")||p[1].endsWith(")")&&!p[0].startsWith("(")?!1:f.checkDMS?s.test(p[0])&&l.test(p[1]):a.test(p[0])&&o.test(p[1])}e.exports=t.default,e.exports.default=t.default})(OM,OM.exports);var SUe=OM.exports,Nb={};Object.defineProperty(Nb,"__esModule",{value:!0});Nb.default=EUe;Nb.locales=void 0;var bUe=TUe(Ae);function TUe(e){return e&&e.__esModule?e:{default:e}}var GG=/^\d{3}$/,co=/^\d{4}$/,ta=/^\d{5}$/,Q4=/^\d{6}$/,Pm={AD:/^AD\d{3}$/,AT:co,AU:co,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:co,BG:co,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:co,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:ta,DK:co,DO:ta,DZ:ta,EE:ta,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:ta,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:co,ID:ta,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:GG,IT:ta,JP:/^\d{3}\-\d{4}$/,KE:ta,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:co,LV:/^LV\-\d{4}$/,LK:ta,MG:GG,MX:ta,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:ta,NL:/^\d{4}\s?[a-z]{2}$/i,NO:co,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:co,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:Q4,RU:Q4,SA:ta,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:Q4,SI:co,SK:/^\d{3}\s?\d{2}$/,TH:ta,TN:co,TW:/^\d{3}(\d{2})?$/,UA:ta,US:/^\d{5}(-\d{4})?$/,ZA:co,ZM:ta},_Ue=Object.keys(Pm);Nb.locales=_Ue;function EUe(e,t){if((0,bUe.default)(e),t in Pm)return Pm[t].test(e);if(t==="any"){for(var n in Pm)if(Pm.hasOwnProperty(n)){var r=Pm[n];if(r.test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))}var DM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default})(DM,DM.exports);var wUe=DM.exports,xM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default})(xM,xM.exports);var kUe=xM.exports,MM={exports:{}},RM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){return(0,n.default)(a),a.replace(new RegExp("[".concat(o,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default})(RM,RM.exports);var s0e=RM.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ae),r=i(s0e);function i(o){return o&&o.__esModule?o:{default:o}}function a(o,s){(0,n.default)(o);var l=s?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(o,l)}e.exports=t.default,e.exports.default=t.default})(MM,MM.exports);var AUe=MM.exports,PM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){return(0,n.default)(a),a.replace(new RegExp("[^".concat(o,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default})(PM,PM.exports);var CUe=PM.exports,FM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Ae);function r(a){return a&&a.__esModule?a:{default:a}}function i(a,o){(0,n.default)(a);for(var s=a.length-1;s>=0;s--)if(o.indexOf(a[s])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default})(FM,FM.exports);var NUe=FM.exports,LM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Ca);function r(d){return d&&d.__esModule?d:{default:d}}var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],o=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],l=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(d){return d.length>1?d:""}function c(d,f){f=(0,n.default)(f,i);var p=d.split("@"),m=p.pop(),h=p.join("@"),g=[h,m];if(g[1]=g[1].toLowerCase(),g[1]==="gmail.com"||g[1]==="googlemail.com"){if(f.gmail_remove_subaddress&&(g[0]=g[0].split("+")[0]),f.gmail_remove_dots&&(g[0]=g[0].replace(/\.+/g,u)),!g[0].length)return!1;(f.all_lowercase||f.gmail_lowercase)&&(g[0]=g[0].toLowerCase()),g[1]=f.gmail_convert_googlemaildotcom?"gmail.com":g[1]}else if(a.indexOf(g[1])>=0){if(f.icloud_remove_subaddress&&(g[0]=g[0].split("+")[0]),!g[0].length)return!1;(f.all_lowercase||f.icloud_lowercase)&&(g[0]=g[0].toLowerCase())}else if(o.indexOf(g[1])>=0){if(f.outlookdotcom_remove_subaddress&&(g[0]=g[0].split("+")[0]),!g[0].length)return!1;(f.all_lowercase||f.outlookdotcom_lowercase)&&(g[0]=g[0].toLowerCase())}else if(s.indexOf(g[1])>=0){if(f.yahoo_remove_subaddress){var v=g[0].split("-");g[0]=v.length>1?v.slice(0,-1).join("-"):v[0]}if(!g[0].length)return!1;(f.all_lowercase||f.yahoo_lowercase)&&(g[0]=g[0].toLowerCase())}else l.indexOf(g[1])>=0?((f.all_lowercase||f.yandex_lowercase)&&(g[0]=g[0].toLowerCase()),g[1]="yandex.ru"):f.all_lowercase&&(g[0]=g[0].toLowerCase());return g.join("@")}e.exports=t.default,e.exports.default=t.default})(LM,LM.exports);var IUe=LM.exports,BM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(o){return(0,n.default)(o),i.test(o)}e.exports=t.default,e.exports.default=t.default})(BM,BM.exports);var OUe=BM.exports,$M={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Ae);function r(o){return o&&o.__esModule?o:{default:o}}var i={"cs-CZ":function(s){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(s)},"de-DE":function(s){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(s)},"de-LI":function(s){return/^FL[- ]?\d{1,5}[UZ]?$/.test(s)},"en-IN":function(s){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(s)},"es-AR":function(s){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(s)},"fi-FI":function(s){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(s)},"hu-HU":function(s){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(s)},"pt-BR":function(s){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(s)},"pt-PT":function(s){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(s)},"sq-AL":function(s){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(s)},"sv-SE":function(s){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(s.trim())}};function a(o,s){if((0,n.default)(o),s in i)return i[s](o);if(s==="any"){for(var l in i){var u=i[l];if(u(o))return!0}return!1}throw new Error("Invalid locale '".concat(s,"'"))}e.exports=t.default,e.exports.default=t.default})($M,$M.exports);var DUe=$M.exports,UM={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var n=i(Ca),r=i(Ae);function i(m){return m&&m.__esModule?m:{default:m}}var a=/^[A-Z]$/,o=/^[a-z]$/,s=/^[0-9]$/,l=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,u={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function c(m){var h={};return Array.from(m).forEach(function(g){var v=h[g];v?h[g]+=1:h[g]=1}),h}function d(m){var h=c(m),g={length:m.length,uniqueChars:Object.keys(h).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(h).forEach(function(v){a.test(v)?g.uppercaseCount+=h[v]:o.test(v)?g.lowercaseCount+=h[v]:s.test(v)?g.numberCount+=h[v]:l.test(v)&&(g.symbolCount+=h[v])}),g}function f(m,h){var g=0;return g+=m.uniqueChars*h.pointsPerUnique,g+=(m.length-m.uniqueChars)*h.pointsPerRepeat,m.lowercaseCount>0&&(g+=h.pointsForContainingLower),m.uppercaseCount>0&&(g+=h.pointsForContainingUpper),m.numberCount>0&&(g+=h.pointsForContainingNumber),m.symbolCount>0&&(g+=h.pointsForContainingSymbol),g}function p(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(m);var g=d(m);return h=(0,n.default)(h||{},u),h.returnScore?f(g,h):g.length>=h.minLength&&g.lowercaseCount>=h.minLowercase&&g.uppercaseCount>=h.minUppercase&&g.numberCount>=h.minNumbers&&g.symbolCount>=h.minSymbols}e.exports=t.default,e.exports.default=t.default})(UM,UM.exports);var xUe=UM.exports,Ib={};function cE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cE=function(n){return typeof n}:cE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cE(e)}Object.defineProperty(Ib,"__esModule",{value:!0});Ib.default=BUe;Ib.vatMatchers=void 0;var JG=PUe(Ae),MUe=RUe(Zp);function l0e(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return l0e=function(){return e},e}function RUe(e){if(e&&e.__esModule)return e;if(e===null||cE(e)!=="object"&&typeof e!="function")return{default:e};var t=l0e();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function PUe(e){return e&&e.__esModule?e:{default:e}}var FUe=function(t){var n=function(i){var a=i.pop(),o=[5,4,3,2,7,6,5,4],s=(11-i.reduce(function(l,u,c){return l+u*o[c]},0)%11)%11;return a===s};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(t)&&n(t.match(/\d/g).map(function(r){return+r}))},LUe=function(t){var n=t.match(/^(PT)?(\d{9})$/);if(!n)return!1;var r=n[2],i=11-MUe.reverseMultiplyAndSum(r.split("").slice(0,8).map(function(a){return parseInt(a,10)}),9)%11;return i>9?parseInt(r[8],10)===0:i===parseInt(r[8],10)},HM={AT:function(t){return/^(AT)?U\d{8}$/.test(t)},BE:function(t){return/^(BE)?\d{10}$/.test(t)},BG:function(t){return/^(BG)?\d{9,10}$/.test(t)},HR:function(t){return/^(HR)?\d{11}$/.test(t)},CY:function(t){return/^(CY)?\w{9}$/.test(t)},CZ:function(t){return/^(CZ)?\d{8,10}$/.test(t)},DK:function(t){return/^(DK)?\d{8}$/.test(t)},EE:function(t){return/^(EE)?\d{9}$/.test(t)},FI:function(t){return/^(FI)?\d{8}$/.test(t)},FR:function(t){return/^(FR)?\w{2}\d{9}$/.test(t)},DE:function(t){return/^(DE)?\d{9}$/.test(t)},EL:function(t){return/^(EL)?\d{9}$/.test(t)},HU:function(t){return/^(HU)?\d{8}$/.test(t)},IE:function(t){return/^(IE)?\d{7}\w{1}(W)?$/.test(t)},IT:function(t){return/^(IT)?\d{11}$/.test(t)},LV:function(t){return/^(LV)?\d{11}$/.test(t)},LT:function(t){return/^(LT)?\d{9,12}$/.test(t)},LU:function(t){return/^(LU)?\d{8}$/.test(t)},MT:function(t){return/^(MT)?\d{8}$/.test(t)},NL:function(t){return/^(NL)?\d{9}B\d{2}$/.test(t)},PL:function(t){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(t)},PT:LUe,RO:function(t){return/^(RO)?\d{2,10}$/.test(t)},SK:function(t){return/^(SK)?\d{10}$/.test(t)},SI:function(t){return/^(SI)?\d{8}$/.test(t)},ES:function(t){return/^(ES)?\w\d{7}[A-Z]$/.test(t)},SE:function(t){return/^(SE)?\d{12}$/.test(t)},AL:function(t){return/^(AL)?\w{9}[A-Z]$/.test(t)},MK:function(t){return/^(MK)?\d{13}$/.test(t)},AU:function(t){return/^(AU)?\d{11}$/.test(t)},BY:function(t){return/^(УНП )?\d{9}$/.test(t)},CA:function(t){return/^(CA)?\d{9}$/.test(t)},IS:function(t){return/^(IS)?\d{5,6}$/.test(t)},IN:function(t){return/^(IN)?\d{15}$/.test(t)},ID:function(t){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(t)},IL:function(t){return/^(IL)?\d{9}$/.test(t)},KZ:function(t){return/^(KZ)?\d{9}$/.test(t)},NZ:function(t){return/^(NZ)?\d{9}$/.test(t)},NG:function(t){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(t)},NO:function(t){return/^(NO)?\d{9}MVA$/.test(t)},PH:function(t){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(t)},RU:function(t){return/^(RU)?(\d{10}|\d{12})$/.test(t)},SM:function(t){return/^(SM)?\d{5}$/.test(t)},SA:function(t){return/^(SA)?\d{15}$/.test(t)},RS:function(t){return/^(RS)?\d{9}$/.test(t)},CH:FUe,TR:function(t){return/^(TR)?\d{10}$/.test(t)},UA:function(t){return/^(UA)?\d{12}$/.test(t)},GB:function(t){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(t)},UZ:function(t){return/^(UZ)?\d{9}$/.test(t)},AR:function(t){return/^(AR)?\d{11}$/.test(t)},BO:function(t){return/^(BO)?\d{7}$/.test(t)},BR:function(t){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(t)},CL:function(t){return/^(CL)?\d{8}-\d{1}$/.test(t)},CO:function(t){return/^(CO)?\d{10}$/.test(t)},CR:function(t){return/^(CR)?\d{9,12}$/.test(t)},EC:function(t){return/^(EC)?\d{13}$/.test(t)},SV:function(t){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(t)},GT:function(t){return/^(GT)?\d{7}-\d{1}$/.test(t)},HN:function(t){return/^(HN)?$/.test(t)},MX:function(t){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(t)},NI:function(t){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(t)},PA:function(t){return/^(PA)?$/.test(t)},PY:function(t){return/^(PY)?\d{6,8}-\d{1}$/.test(t)},PE:function(t){return/^(PE)?\d{11}$/.test(t)},DO:function(t){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(t)},UY:function(t){return/^(UY)?\d{12}$/.test(t)},VE:function(t){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(t)}};Ib.vatMatchers=HM;function BUe(e,t){if((0,JG.default)(e),(0,JG.default)(t),t in HM)return HM[t](e);throw new Error("Invalid country code: '".concat(t,"'"))}(function(e,t){function n(Un){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function($o){return typeof $o}:n=function($o){return $o&&typeof Symbol=="function"&&$o.constructor===Symbol&&$o!==Symbol.prototype?"symbol":typeof $o},n(Un)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=ke(y$),i=ke(Wfe),a=ke(_Be),o=ke(EBe),s=ke(wBe),l=ke(kBe),u=ke(ABe),c=ke(Jfe),d=ke(CBe),f=ke(NBe),p=ke(XC),m=ke(IBe),h=ke(S$),g=ke(Yfe),v=ke(OBe),y=ke(DBe),b=ke(xBe),T=fm(_b),_=fm(Eb),E=ke(HBe),k=ke(VBe),A=ke(zBe),D=ke(qBe),R=ke(WBe),B=ke(jBe),H=ke(GBe),L=ke(N1),V=ke(I1),U=ke(e$e),J=ke(t$e),re=ke(r$e),X=ke(i$e),j=ke(b$),te=fm(C1),M=ke(o$e),W=ke(Zfe),ce=ke(s$e),ue=ke(l$e),he=ke(u$e),Ce=ke(c$e),fe=ke(d$e),ge=ke(f$e),de=fm(wb),Re=ke(w$e),De=ke(k$e),Me=ke(A$e),Ve=ke(C$e),dt=ke(N$e),Nt=ke(I$e),P=ke(O$e),q=ke(Gfe),Y=ke(D$e),Se=ke(x$e),ye=ke(M$e),Te=ke(R$e),Ye=ke(P$e),ft=ke(t0e),$=ke(F$e),ee=ke(L$e),pe=ke(B$e),I=ke($$e),w=ke(U$e),C=ke(H$e),x=ke(j$e),z=fm(kb),Q=ke(Q$e),ae=ke(Z$e),Fe=ke(X$e),Ut=Ab,gn=ke(aUe),Kn=ke(oUe),vn=ke(sUe),oSe=ke(O1),sSe=ke(lUe),lSe=ke(Cb),uSe=ke(pUe),cSe=ke(mUe),dSe=ke(e0e),fSe=ke(hUe),pSe=ke(gUe),mSe=ke(vUe),hSe=ke(yUe),gSe=ke(SUe),BV=fm(Nb),vSe=ke(a0e),ySe=ke(i0e),SSe=ke(o0e),bSe=ke(wUe),TSe=ke(kUe),_Se=ke(AUe),ESe=ke(CUe),wSe=ke(s0e),kSe=ke(NUe),ASe=ke(IUe),CSe=ke(OUe),NSe=ke(DUe),ISe=ke(xUe),OSe=ke(Ib);function $V(){if(typeof WeakMap!="function")return null;var Un=new WeakMap;return $V=function(){return Un},Un}function fm(Un){if(Un&&Un.__esModule)return Un;if(Un===null||n(Un)!=="object"&&typeof Un!="function")return{default:Un};var kc=$V();if(kc&&kc.has(Un))return kc.get(Un);var $o={},RSe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var G1 in Un)if(Object.prototype.hasOwnProperty.call(Un,G1)){var aT=RSe?Object.getOwnPropertyDescriptor(Un,G1):null;aT&&(aT.get||aT.set)?Object.defineProperty($o,G1,aT):$o[G1]=Un[G1]}return $o.default=Un,kc&&kc.set(Un,$o),$o}function ke(Un){return Un&&Un.__esModule?Un:{default:Un}}var DSe="13.11.0",xSe={version:DSe,toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:l.default,matches:u.default,isEmail:c.default,isURL:d.default,isMACAddress:f.default,isIP:p.default,isIPRange:m.default,isFQDN:h.default,isBoolean:y.default,isIBAN:de.default,isBIC:Re.default,isAlpha:T.default,isAlphaLocales:T.locales,isAlphanumeric:_.default,isAlphanumericLocales:_.locales,isNumeric:E.default,isPassportNumber:k.default,isPort:A.default,isLowercase:D.default,isUppercase:R.default,isAscii:H.default,isFullWidth:L.default,isHalfWidth:V.default,isVariableWidth:U.default,isMultibyte:J.default,isSemVer:re.default,isSurrogatePair:X.default,isInt:j.default,isIMEI:B.default,isFloat:te.default,isFloatLocales:te.locales,isDecimal:M.default,isHexadecimal:W.default,isOctal:ce.default,isDivisibleBy:ue.default,isHexColor:he.default,isRgbColor:Ce.default,isHSL:fe.default,isISRC:ge.default,isMD5:De.default,isHash:Me.default,isJWT:Ve.default,isJSON:dt.default,isEmpty:Nt.default,isLength:P.default,isLocale:b.default,isByteLength:q.default,isUUID:Y.default,isMongoId:Se.default,isAfter:ye.default,isBefore:Te.default,isIn:Ye.default,isLuhnNumber:ft.default,isCreditCard:$.default,isIdentityCard:ee.default,isEAN:pe.default,isISIN:I.default,isISBN:w.default,isISSN:C.default,isMobilePhone:z.default,isMobilePhoneLocales:z.locales,isPostalCode:BV.default,isPostalCodeLocales:BV.locales,isEthereumAddress:Q.default,isCurrency:ae.default,isBtcAddress:Fe.default,isISO6346:Ut.isISO6346,isFreightContainerID:Ut.isFreightContainerID,isISO6391:gn.default,isISO8601:Kn.default,isRFC3339:vn.default,isISO31661Alpha2:oSe.default,isISO31661Alpha3:sSe.default,isISO4217:lSe.default,isBase32:uSe.default,isBase58:cSe.default,isBase64:dSe.default,isDataURI:fSe.default,isMagnetURI:pSe.default,isMailtoURI:mSe.default,isMimeType:hSe.default,isLatLong:gSe.default,ltrim:vSe.default,rtrim:ySe.default,trim:SSe.default,escape:bSe.default,unescape:TSe.default,stripLow:_Se.default,whitelist:ESe.default,blacklist:wSe.default,isWhitelisted:kSe.default,normalizeEmail:ASe.default,toString,isSlug:CSe.default,isStrongPassword:ISe.default,isTaxID:x.default,isDate:g.default,isTime:v.default,isLicensePlate:NSe.default,isVAT:OSe.default,ibanLocales:de.locales},MSe=xSe;t.default=MSe,e.exports=t.default,e.exports.default=t.default})(Y8,Y8.exports);var $Ue=Y8.exports;const Tp=ao($Ue),li=()=>{},cd=(e,t)=>e!==1?`${t}s`:t;function ko(e,t){throw new Error(`${e} ${JSON.stringify(t)}`)}function UUe(e,t){return t}var G;(function(e){e.AppUser="app_user",e.Application="application",e.ApplicationForm="application_form",e.ApplicationFormDefinition="application_form_definition",e.ApplicationHistory="application_history",e.ApprovalProcess="approval_process",e.ArchiveReason="archive_reason",e.AshbyQLReport="ashby_ql_report",e.Campaign="campaign",e.CampaignTemplate="campaign_template",e.Candidate="candidate",e.CandidateExperienceSurvey="candexp_form",e.CandidateExperienceSurveyRequest="candexp_form_request",e.CandidateTag="candidate_tag",e.DocumentRequest="document_request",e.DiversitySurvey="diversity_form",e.EEOC="eeoc_form",e.EducationDegree="education_degree",e.EducationHistory="education_history",e.EducationMajor="education_major",e.EmailTemplate="email_template",e.Employee="employee",e.Employer="employer",e.EmploymentHistory="employment_history",e.ExternalWorkflow="external_workflow",e.FeedbackForm="feedback_form",e.FeedbackFormDefinition="feedback_form_definition",e.GeoLocation="geo_location",e.HiringEvent="hiring_event",e.HiringEventAudienceMember="hiring_event_audience_member",e.HiringManagerExperienceSurveyRequest="hiring_manager_experience_survey_request",e.HiringManagerExperienceSurvey="hiring_manager_experience_survey",e.Interview="interview",e.InterviewDefinition="interview_definition",e.InterviewPlan="interview_plan",e.InterviewSchedule="interview_schedule",e.InterviewScheduleSummary="interview_schedule_summary",e.InterviewScheduleVersion="interview_schedule_version",e.InterviewEvent="interview_event",e.InterviewerEvent="interviewer_event",e.InterviewerRsvp="interviewer_rsvp",e.Job="job",e.JobPosting="job_posting",e.JobCriteriaEvaluation="job_criteria_evaluation",e.Location="location",e.MeetingRoom="meeting_room",e.NewsletterEnrollment="newsletter_enrollment",e.NewsletterTemplate="newsletter_template",e.NonHiredJob="non_hired_job",e.ObjectActionLogEntry="ObjectActionLogEntry",e.OfferVersion="offer_version",e.Opening="opening",e.OpeningVersion="opening_version",e.OutreachActivity="outreach_activity",e.ProspectProcess="prospect_process",e.QualityOfHireEnrollment="quality_of_hire_enrollment",e.QualityOfHireEnrollmentStep="quality_of_hire_enrollment_step",e.Questionnaire="quest_form",e.Referral="referral",e.Requisition="requisition",e.Resume="resume",e.School="school",e.Source="source",e.SourceAttributionCode="source_attribution_code",e.SourceType="source_type",e.SourcingActivity="sourcing_activity",e.StageInterview="stage_interview",e.StageTransition="interview_stage_transition",e.TakeHomeSchedule="take_home_schedule",e.TalentProject="talent_project",e.Team="team",e.TextMessage="text_message",e.WorkdayJobRequisition="workday_job_requisition",e.UserTeamSecurityRole="user_team_security_role",e.AgencyTeamSecurityRole="agency_team_security_role",e.Note="note",e.ProcessUserTaskInstance="process_user_task_instance",e.InterviewerTag="interviewer_tag",e.InterviewerPoolMember="interviewer_pool_member",e.OnboardingWorkflow="onboarding_workflow",e.SourcingFormDefinition="sourcing_form_definition",e.SourcingFormSubmission="sourcing_form_submission",e.WorkflowStep="workflow_step"})(G||(G={}));function u0e({objectType:e,analyticsOrganizationType:t,countForPluralization:n=1}){let r;switch(e){case G.Application:return YG({analyticsOrganizationType:t,countForPluralization:n});case G.ApplicationHistory:return`Historical ${YG({analyticsOrganizationType:t,countForPluralization:n})}`;case G.ProspectProcess:r="Prospect Application";break;case G.Candidate:r="Candidate";break;case G.Job:case G.NonHiredJob:r="Job";break;case G.Team:r="Team";break;case G.Location:r="Location";break;case G.InterviewEvent:case G.Interview:case G.StageInterview:r="Interview";break;case G.InterviewSchedule:r="Interview Schedule";break;case G.InterviewerEvent:r="Interviewer Participation";break;case G.Employee:r="Employee";break;case G.MeetingRoom:r="Meeting Room";break;case G.StageTransition:r="Interview Stage Transition";break;case G.Campaign:r="Sequence";break;case G.CampaignTemplate:r="Sequence Template";break;case G.OutreachActivity:return n===1?"Outreach Activity":"Outreach Activities";case G.Requisition:r=t==="greenhouse"?"Opening":t==="workday"?"Position":"Requisition";break;case G.FeedbackForm:r="Feedback Form";break;case G.ApplicationForm:r="Application Form";break;case G.DiversitySurvey:r="Diversity Survey";break;case G.CandidateExperienceSurvey:r="Candidate Experience Survey Submission";break;case G.CandidateExperienceSurveyRequest:r="Candidate Experience Survey";break;case G.HiringManagerExperienceSurvey:r="Hiring Manager Experience Survey Submission";break;case G.HiringManagerExperienceSurveyRequest:r="Hiring Manager Experience Survey";break;case G.EEOC:r="EEOC Survey";break;case G.OfferVersion:r="Offer Version";break;case G.AppUser:r="User";break;case G.Resume:r="Resume";break;case G.EmploymentHistory:r="Employment History";break;case G.Employer:r="Employer";break;case G.School:r="School";break;case G.EducationHistory:r="Education History";break;case G.EducationDegree:r="Education Degree";break;case G.EducationMajor:r="Education Major";break;case G.CandidateTag:r="Candidate Tag";break;case G.Source:r="Source";break;case G.SourceAttributionCode:r="Custom Tracking Link";break;case G.SourceType:r="Source Type";break;case G.Referral:r="Referral";break;case G.SourcingActivity:return n===1?"Sourcing Activity":"Sourcing Activities";case G.TakeHomeSchedule:r="Take Home Schedule";break;case G.TalentProject:return"Project";case G.Opening:case G.OpeningVersion:r=t==="workday"?"Position":"Opening";break;case G.Questionnaire:r="Questionnaire";break;case G.ArchiveReason:r="Archive Reason";break;case G.ApplicationFormDefinition:r="Application Form Definition";break;case G.InterviewDefinition:r="Interview Definition";break;case G.EmailTemplate:r="Email Template";break;case G.FeedbackFormDefinition:r="Feedback Form Definition";break;case G.ApprovalProcess:r="Approval Process";break;case G.JobPosting:r="Job Posting";break;case G.InterviewPlan:r="Interview Plan";break;case G.ObjectActionLogEntry:r="Object Action Log Entry";break;case G.WorkdayJobRequisition:r="Workday Job Requisition";break;case G.GeoLocation:r="Location";break;case G.ExternalWorkflow:r="Workflow";break;case G.UserTeamSecurityRole:r="Employee Team Permission";break;case G.AgencyTeamSecurityRole:r="Agency Team Permission";break;case G.HiringEvent:r="Event";break;case G.HiringEventAudienceMember:r="Event Audience Member";break;case G.Note:r="Note";break;case G.ProcessUserTaskInstance:r="User Task";break;case G.QualityOfHireEnrollment:r="Quality of Hire Survey Enrollment";break;case G.QualityOfHireEnrollmentStep:r="Quality of Hire Survey Step";break;case G.InterviewerTag:r="Interviewer Pool";break;case G.NewsletterTemplate:r="Newsletter Template";break;case G.NewsletterEnrollment:r="Newsletter";break;case G.InterviewerPoolMember:r="Interviewer Pool Member";break;case G.OnboardingWorkflow:r="Onboarding Workflow";break;case G.SourcingFormDefinition:r="Sourcing Form Definition";break;case G.SourcingFormSubmission:r="Sourcing Form";break;case G.DocumentRequest:r="E-Signature Document";break;case G.TextMessage:r="Text Message";break;case G.WorkflowStep:r="Workflow Step";break;case G.InterviewerRsvp:r="Interviewer RSVP";break;case G.InterviewScheduleVersion:r="Interview Schedule Version";break;case G.InterviewScheduleSummary:return n===1?"Interview Schedule Summary":"Interview Schedule Summaries";case G.JobCriteriaEvaluation:return"AI Job Criteria";case G.AshbyQLReport:throw new Error(`${e} is unsupported`);default:throw new VM(e)}return n===1?r:`${r}s`}function YG({analyticsOrganizationType:e,countForPluralization:t,context:n="noun"}){let r="";switch(e){case"none":switch(n){case"noun":r="Job Consideration";break;case"nounInSentence":r="job consideration";break;case"nounWithIndefiniteArticle":return"a job consideration";case"createPhrase":r="considering them for the job";break;case"createdPhrase":r="considered them for the job";break;case"forCandidate":r="Considered For Job";break;case"nounPhrase":return"job the candidate is considered for"}break;case"greenhouse":switch(n){case"noun":r="Application";break;case"nounInSentence":r="application";break;case"nounWithIndefiniteArticle":return"an application";case"createPhrase":r="creating the application";break;case"createdPhrase":r="created the application";break;case"forCandidate":r="Application";break;case"nounPhrase":return"application"}break;case"lever":switch(n){case"noun":r="Opportunity";break;case"nounInSentence":r="opportunity";break;case"nounWithIndefiniteArticle":return"an opportunity";case"createPhrase":r="creating the opportunity";break;case"createdPhrase":r="created the opportunity";break;case"forCandidate":r="Opportunity";break;case"nounPhrase":r="opportunity";break}return t===1?r:`${r.slice(0,-1)}ies`;case"workday":switch(n){case"noun":r="Application";break;case"nounInSentence":r="application";break;case"nounWithIndefiniteArticle":return"an application";case"createPhrase":r="creating the application";break;case"createdPhrase":r="created the application";break;case"forCandidate":r="Application";break;case"nounPhrase":return"application"}break}return t===1?r:`${r}s`}function c0e(e){return e==null?!0:typeof e!="object"||e instanceof Map||e instanceof Set||Array.isArray(e)||e instanceof Map?!1:Object.keys(e).length===0}function HUe(e){return e.geoLocationPath.map(t=>t.name).reverse().join(", ")}function VUe(e){return isNaN(e.getTime())}function d0e(e){if(typeof e=="string")return e;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="object"){if(e instanceof Error)return e.toString();if("message"in e&&typeof e.message=="string")return e.message;try{return JSON.stringify(e)}catch{}}return String(e)}const eN=e=>e==null,kr=e=>!eN(e);var KG;(function(e){e.loginOrSignupError="LOGIN_OR_SIGNUP_ERROR",e.jobHasNoDefaultInterviewPlanPleaseProvideOne="JOB_HAS_NO_DEFAULT_INTERVIEW_PLAN_PLEASE_PROVIDE_ONE",e.openJobNeedsDefaultInterviewPlan="JOB_NEEDS_DEFAULT_INTERVIEW_PLAN",e.openJobNeedsOpening="JOB_NEEDS_LINK_TO_OPENING",e.actionNotAllowedInMaintenanceMode="ACTION_NOT_ALLOWED_IN_MAINTENANCE_MODE",e.outdatedClientError="OUTDATED_CLIENT_ERROR",e.staleClientStateError="STALE_CLIENT_STATE_ERROR",e.archiveReasonWithThisTypeAndTitleAlreadyExists="ARCHIVE_REASON_WITH_THIS_TYPE_AND_TITLE_ALREADY_EXISTS",e.cannotArchiveLastActiveArchiveReason="CANNOT_ARCHIVE_LAST_ACTIVE_ARCHIVE_REASON",e.cannotArchiveBuiltInArchiveReasons="CANNOT_ARCHIVE_BUILT_IN_ARCHIVE_REASONS",e.cannotArchiveArchiveReasonUsedInAutoReject="CANNOT_ARCHIVE_ARCHIVE_REASON_USED_IN_AUTO_REJECT",e.cannotDeleteBuiltInArchiveReasons="CANNOT_DELETE_BUILT_IN_ARCHIVE_REASONS",e.cannotUpdateBuiltInArchiveReasons="CANNOT_UPDATE_BUILT_IN_ARCHIVE_REASONS",e.closeJobReasonWithThisTitleAlreadyExists="CLOSE_JOB_REASON_WITH_THIS_TITLE_ALREADY_EXISTS",e.cannotDeleteStageWithActiveCandidatesWithoutMoving="CANNOT_DELETE_STAGE_WITH_ACTIVE_CANDIDATES_WITHOUT_MOVING_THEM",e.cannotDeleteStageGroupLinkedToStages="CANNOT_DELETE_STAGE_GROUP_LINKED_TO_STAGES",e.cannotMoveCandidatesToStageOfDifferentInterviewPlan="CANNOT_MOVE_CANDIDATES_TO_STAGE_OF_DIFFERENT_INTERVIEW_PLAN",e.cannotCreateApplicationInHiredOrArchivedStage="CANNOT_CREATE_APPLICATION_IN_HIRED_OR_ARCHIVED_STAGE",e.tagWithTitleAlreadyExists="TAG_WITH_TITLE_ALREADY_EXISTS",e.tagCannotBeMergedWithItself="TAG_CANNOT_BE_MERGED_WITH_ITSELF",e.cannotUpdateProgressWithoutTrainingPathStageMembership="CANNOT_UPDATE_PROGRESS_WITHOUT_TRAINING_PATH_STAGE_MEMBERSHIP",e.genericPermissionError="GENERIC_PERMISSION_ERROR",e.securityRolePermissionConflict="SECURITY_ROLE_PERMISSION_CONFLICT",e.validationError="VALIDATION_ERROR",e.interviewerMembershipIsAlreadyPaused="INTERVIEWER_MEMBERSHIP_IS_ALREADY_PAUSED",e.updatingBuiltInObjectNotAllowed="UPDATING_BUILT_IN_OBJECT_NOT_ALLOWED",e.cannotHaveMultipleActiveApplicationsForSameJob="NO_MULTIPLE_ACTIVE_APPLICATIONS_SAME_JOB",e.invalidCandidateAvailability="INVALID_CANDIDATE_AVAILABILITY",e.scheduleCannotBeFinalized="SCHEDULE_CANNOT_BE_FINALIZED",e.invalidScheduleTemplate="INVALID_SCHEDULE_TEMPLATE",e.cannotScheduleCandidateWithoutPrimaryEmail="CANNOT_SCHEDULE_CANDIDATE_WITHOUT_PRIMARY_EMAIL",e.cannotSchedulePlannedInterviewFromNonScheduleActivity="CANNOT_SCHEDULE_PLANNED_INTERVIEW_FROM_NON_SCHEDULE_ACTIVITY",e.cannotSchedulePlannedInterviewWithoutTemplate="CANNOT_SCHEDULE_PLANNED_INTERVIEW_WITHOUT_TEMPLATE",e.cannotRescheduleInterviewWithSubmittedFeedback="CANNOT_RESCHEDULE_INTERVIEW_WITH_SUBMITTED_FEEDBACK",e.cannotRemoveInterviewEventsWithSubmittedFeedback="CANNOT_REMOVE_INTERVIEW_EVENTS_WITH_SUBMITTED_FEEDBACK",e.cannotRemoveInterviewerWithSubmittedFeedback="CANNOT_REMOVE_INTERVIEWER_WITH_SUBMITTED_FEEDBACK",e.cannotCreateMeetingAvailabilityRequestWithoutTemplate="CANNOT_CREATE_MEETING_AVAILABILITY_REQUEST_WITHOUT_TEMPLATE",e.cannotTroubleshootNonActiveDirectBookingRequest="CANNOT_TROUBLESHOOT_NON_ACTIVE_DIRECT_BOOKING_REQUEST",e.cannotCreateMultipleActiveMeetingAvailabilityRequests="CANNOT_CREATE_MULTIPLE_ACTIVE_AVAILABILITY_REQUESTS",e.canOnlyInvalidateSubmittedAndUnsubmittedAvailabilityRequests="CAN_ONLY_INVALIDATE_SUBMITTED_AND_UNSUBMITTED_AVAILABILITY_REQUESTS",e.cannotUpdateAScheduledDraft="CANNOT_UPDATE_A_SCHEDULED_DRAFT",e.canOnlyCancelScheduledMeetingRequests="CAN_ONLY_CANCEL_SCHEDULED_MEETING_REQUESTS",e.canOnlyChangeOrganizerForUnsubmittedMeetingRequest="CAN_ONLY_CHANGE_ORGANIZER_FOR_UNSUBMITTED_AVAILABILITY_REQUESTS",e.couldNotBookTime="COULD_NOT_BOOK_TIME",e.cannotCancelCompletedInterviewSchedule="CANNOT_CANCEL_COMPLETED_INTERVIEW_SCHEDULE",e.cannotCancelEmptyInterviewEventArray="CANNOT_CANCEL_EMPTY_INTERVIEW_EVENT_ARRAY",e.cannotCancelUnscheduledInterviewSchedule="CANNOT_CANCEL_UNSCHEDULED_INTERVIEW_SCHEDULE",e.cannotUpdateInterviewScheduleWithoutCalendarAccess="CANNOT_UPDATE_INTERVIEW_SCHEDULE_WITHOUT_CALENDAR_ACCESS",e.schedulingCalendarDoesNotSupportGoogleMeet="SCHEDULING_CALENDAR_DOES_NOT_SUPPORT_GOOGLE_MEET",e.cannotDeleteDraftBackingLiveInterviewSchedule="CANNOT_DELETE_DRAFT_BACKING_LIVE_INTERVIEW_SCHEDULE",e.cannotScheduleDeletedInterview="CANNOT_SCHEDULE_DELETED_INTERVIEW",e.cannotScheduleDraftAlreadyBackingLiveInterviewSchedule="CANNOT_SCHEDULE_DRAFT_ALREADY_BACKING_LIVE_INTERVIEW_SCHEDULE",e.cannotFindCalendarForScheduling="CANNOT_FIND_CALENDAR_FOR_SCHEDULING",e.couldNotAddConferencingLinks="COULD_NOT_ADD_CONFERENCING_LINKS",e.couldNotAddEventToCalendar="COULD_NOT_ADD_EVENT_TO_CALENDAR",e.cannotRemoveInUseSharedCalendar="CANNOT_REMOVE_IN_USE_SHARED_CALENDAR",e.cannotResetGoogleMeetForNonGoogleMeetInterview="CANNOT_RESET_GOOGLE_MEET_FOR_NON_GOOGLE_MEET_INTERVIEW",e.couldNotScheduleInterview="COULD_NOT_SCHEDULE_INTERVIEW",e.microsoftTeamsOrganizerNotFound="MICROSOFT_TEAMS_ORGANIZER_NOT_FOUND",e.cannotChangeSchedulingCalendarOnReschedule="CANNOT_CHANGE_SCHEDULING_CALENDAR_ON_RESCHEDULE",e.invalidTimeframe="INVALID_TIMEFRAME",e.secondaryCalendarCannotBeUsedAsSharedCalendar="SECONDARY_CALENDAR_CANNOT_BE_USED_AS_SHARED_CALENDAR",e.couldNotRemoveZoomConferencingLinks="COULD_NOT_REMOVE_ZOOM_CONFERENCING_LINKS",e.couldNotRefreshZoomOauthToken="COULD_NOT_REFRESH_ZOOM_OAUTH_TOKEN",e.cannotScheduleAZoomInterviewWithoutAHost="CANNOT_SCHEDULE_ZOOM_WITHOUT_HOST",e.cannotDeleteInProgressZoomMeeting="CANNOT_DELETE_IN_PROGRESS_ZOOM_MEETING",e.fetchingMeetingsForAccountNotAllowed="FETCHING_MEETINGS_FOR_ACCOUNT_NOT_ALLOWED",e.zoomUserDoesNotExist="ZOOM_USER_DOES_NOT_EXIST",e.zoomMeetingDoesNotExist="ZOOM_MEETING_DOES_NOT_EXIST",e.orgSlackIntegrationNotSetUpError="ORGANIZATION_SLACK_INTEGRATION_NOT_SET_UP",e.userSlackAccountError="USER_SLACK_ACCOUNT_ERROR",e.orgSlackIntegrationInactive="ORGANIZATION_SLACK_INTEGRATION_INACTIVE",e.slackChannelNotFound="SLACK_CHANNEL_NOT_FOUND",e.invalidChannelName="INVALID_CHANNEL_NAME",e.cannotFollowJobYoureAlreadyFollowing="CANNOT_FOLLOW_JOB_YOURE_ALREADY_FOLLOWING",e.locationHierarchyCantHavePhysicalLocation="LOCATION_HIERARCHY_NO_PHYSICAL_LOCATION",e.locationWithUnarchivedChildrenCannotBeArchived="LOCATION_WITH_UNARCHIVED_CHILDREN_CANNOT_BE_ARCHIVED",e.duplicateLocationOnJob="DUPLICATE_LOCATION_ON_JOB",e.jobCantBeAssociatedWithLocationHierarchy="JOB_CANT_BE_ASSOCIATED_WITH_LOCATION_HIERARCHY",e.jobCantBeAssociatedWithAnArchivedLocation="JOB_CANT_BE_ASSOCIATED_WITH_ARCHIVED_LOCATION",e.cannotCreateLocationUnderArchivedParentLocation="CANNOT_CREATE_LOCATION_UNDER_ARCHIVED_PARENT_LOCATION",e.cannotCreateLocationUnderNonHierarchyNode="CANNOT_CREATE_LOCATION_UNDER_NON_HIERARCHY_NODE",e.cannotCreateCyclicalLocationHierarchy="CANNOT_CREATE_CYCLICAL_LOCATION_HIERARCHY",e.canOnlySelectHierarchyAsParentOfLocation="CAN_ONLY_SELECT_HIERARCHY_AS_PARENT_OF_LOCATION",e.cannotRequireCompensationOnArchivedLocation="CANNOT_REQUIRE_COMPENSATION_ON_ARCHIVED_LOCATION",e.cannotDisableGlobalRequiredCompensationSetting="CANNOT_DISABLE_GLOBAL_REQUIRED_COMPENSATION_SETTING",e.cannotCreateCandidateWithoutName="CANNOT_CREATE_CANDIDATE_WITHOUT_NAME",e.doesNotHavePermissionToSetResumeOnCandidate="DOES_NOT_HAVE_PERMISSION_TO_SET_RESUME_ON_CANDIDATE",e.cannotDetachResumeFromCandidate="CANNOT_DETACH_RESUME_FROM_CANDIDATE",e.cannotMergeCandidatesWithMultipleEmployeeRecords="CANNOT_MERGE_CANDIDATES_MULTIPLE_EMPLOYEE_RECORDS",e.cannotMergeCandidateWithItself="CANNOT_MERGE_CANDIDATE_WITH_ITSELF",e.applicationReviewConfigurationCannotSpecifyBothFieldPathAndReviewerId="APPLICATION_REVIEW_CONFIGURATION_CANNOT_SPECIFY_BOTH_FIELD_PATH_AND_REVIEWER_ID",e.unsupportedAutomaticProcessType="UNSUPPORTED_AUTOMATIC_PROCESS_TYPE",e.cannotAutomaticallyScheduleAnInterviewWithoutEmailTemplate="CANNOT_AUTOMATICALLY_SCHEDULE_AN_INTERVIEW_WITHOUT_EMAIL_TEMPLATE",e.cannotDeleteCandidateWithActiveApplications="CANNOT_DELETE_CANDIDATES_ACTIVE_APPLICATIONS",e.cannotDeleteCandidateLinkedToEmployee="CANNOT_DELETE_CANDIDATE_LINKED_TO_EMPLOYEE",e.cannotDeleteCandidateWithRunningCampaigns="CANNOT_DELETE_CANDIDATE_WITH_RUNNING_CAMPAIGNS",e.cannotAddArchivedTagToCandidate="CANNOT_ADD_ARCHVIED_TAG_TO_CANDIDATE",e.cannotAddArchivedSourceToCandidateApplication="CANNOT_ADD_ARCHIVED_SOURCE_TO_CANDIDATE_APPLICATION",e.cannotArchiveCandidateApplicationUsingArchivedReason="CANNOT_ARCHIVE_CANDIDATE_APPLICATION_USING_ARCHIVED_REASON",e.cannotAdvanceCandidateApplicationAfterPreInterviewStage="CANNOT_ADVANCE_CANDIDATE_APPLICATION_AFTER_PREINTERVIEW_STAGE",e.cannotAdvanceCandidateApplicationInHiredStage="CANNOT_ADVANCE_CANDIDATE_APPLICATION_IN_HIRED_STAGE",e.cannotAdvanceCandidate="CANNOT_ADVANCE_CANDIDATE",e.cannotRestoreDeletedCandidate="CANNOT_RESTORE_DELETED_CANDIDATE",e.noInterviewStageToAdvanceCandidateApplication="NO_INTERVIEW_STAGE_EXISTS_TO_ADVANCE_REVIEWED_CANDIDATE_APPLICATION",e.invalidCandidateEmailAddresses="INVALID_CANDIDATE_EMAIL_ADDRESSES",e.inputValidationError="INPUT_VALIDATION_ERROR",e.activeUserMustHaveEmailAddress="ACTIVE_USER_MUST_HAVE_EMAIL_ADDRESS",e.userEmailMustBeInOrganizationDomain="USER_EMAIL_MUST_BE_IN_ORG_DOMAIN",e.userEmailAlreadyInUse="USER_EMAIL_ALREADY_IN_USE",e.activeUserCantBelongToTerminatedEmployee="ACTIVE_USERS_CANT_BELONG_TO_TERMINATED_EMPLOYEE",e.cannotUpdateYourOwnEmail="CANNOT_UPDATE_YOUR_OWN_EMAIL",e.cannotDeactivateSelf="CANNOT_DEACTVIATE_SELF",e.onlyOrganizationAdminsCanBeGrantedBillingAccess="ONLY_ORGANIZATION_ADMINS_CAN_BE_GRANTED_BILLING_ACCESS",e.notEnoughBillingUsers="NOT_ENOUGH_BILLING_USERS",e.cannotRemoveABillingUserAsABillingContact="CANNOT_REMOVE_A_BILLING_USER_AS_A_BILLING_CONTACT",e.tooManyBillingContacts="TOO_MANY_BILLING_CONTACTS",e.couldNotAddUserAsBillingContact="COULD_NOT_ADD_USER_AS_BILLING_CONTACT",e.cannotRemoveBillingUserAsBillingContact="CANNOT_REMOVE_BILLING_USER_AS_BILLING_CONTACT",e.cannotEditBillingUserAsBillingContact="CANNOT_EDIT_EMAIL_FOR_BILLING_USER_AS_BILLING_CONTACT",e.cannotUpdateYourOwnConfidentialAccess="CANNOT_UPDATE_YOUR_CONFIDENTIAL_ACCESS",e.genericCannotAddUserWithThisEmail="GENERIC_CANNOT_ADD_USER_WITH_EMAIL",e.cannotReferToNonOpenJob="CANNOT_REFER_TO_NON_OPEN_JOB",e.candidateNotQualifiedForReferral="CANDIDATE_NOT_QUALIFIED_FOR_REFERRAL",e.canNoLongerRestoreObject="CAN_NO_LONGER_RESTORE_OBJECT",e.cannotCreateSubscriptionForNonCustomerOrg="CANNOT_CREATE_SUBSCRIPTION_FOR_NON_CUSTOMER_ORG",e.notValidScorecardForm="NOT_VALID_SCORECARD_FORM",e.notValidApplicationForm="NOT_VALID_APPLICATION_FORM",e.notValidReferralForm="NOT_VALID_REFERRAL_FORM",e.notValidHiringEventForm="NOT_VALID_HIRING_EVENT_FORM",e.cannotEmailCandidateWithoutPrimaryEmail="CANNOT_EMAIL_CANDIDATE_WITHOUT_PRIMARY_EMAIL",e.cannotFindSubstitutionToken="SOME_SUBSTITUTION_TOKENS_COULD_NOT_BE_FOUND_IN_CONTEXT",e.cannotDeleteStartedCampaign="CANNOT_DELETE_STARTED_CAMPAIGN",e.doesNotHavePermissionToDeleteCampaignDraft="DOES_NOT_HAVE_PERMISSION_TO_DELETE_CAMPAIGN",e.doesNotHavePermissionToCancelCampaign="DOES_NOT_HAVE_PERMISSION_TO_CANCEL_CAMPAIGN",e.doesNotHavePermissionToPauseCampaign="DOES_NOT_HAVE_PERMISSION_TO_PAUSE_CAMPAIGN",e.doesNotHavePermissionToUnpauseCampaign="DOES_NOT_HAVE_PERMISSION_TO_UNPAUSE_CAMPAIGN",e.doesNotHavePermissionToEditCampaign="DOES_NOT_HAVE_PERMISSION_TO_EDIT_CAMPAIGN",e.nonApplicableTemplate="NON_APPLICABLE_TEMPLATE",e.cannotRescheduleNonOneOffEmail="CANNOT_RESCHEDULE_NON_ONE_OFF_EMAIL",e.cannotRescheduleOneOffEmailInDraftState="CANNOT_RESCHEDULE_ONE_OFF_EMAIL_IN_DRAFT_STATE",e.cannotRescheduleOneOffEmailInSentState="CANNOT_RESCHEDULE_ONE_OFF_EMAIL_IN_SENT_STATE",e.errorSendingEmail="ERROR_SENDING_EMAIL",e.cannotCommunicateWithCandidate="CANNOT_COMMUNICATE_WITH_CANDIDATE",e.cannotArchiveArchivedSource="CANNOT_ARCHIVE_ARCHIVED_SOURCE",e.cannotArchiveSourceOnActiveIntegration="CANNOT_ARCHIVE_SOURCE_ON_ACTIVE_INTEGRATION",e.cannotArchiveSourceTypeWithActiveSources="CANNOT_ARCHIVE_SOURCE_TYPE_WITH_ACTIVE_SOURCES",e.cannotArchiveBuiltInSource="CANNOT_ARCHIVE_BUILT_IN_SOURCE",e.cannotArchiveBuiltInSourceType="CANNOT_ARCHIVE_BUILT_IN_SOURCE_TYPE",e.cannotCreateDuplicatePartnerApiKey="CANNOT_CREATE_DUPLICATE_PARTNER_API_KEY",e.cannotRestoreSourceWithArchivedSourceType="CANNOT_RESTORE_SOURCE_WITH_ARCHIVED_SOURCE_TYPE",e.cannotDeleteBuiltInSourceAttribution="CANNOT_DELETE_BUILT_IN_SOURCE_ATTRIBUTION",e.cannotRenameBuiltInSource="CANNOT_RENAME_BUILT_IN_SOURCE",e.cannotRenameBuiltInSourceType="CANNOT_RENAME_BUILT_IN_SOURCE_TYPE",e.cannotRenameIntegrationPartnerSource="CANNOT_RENAME_INTEGRATION_PARTNER_SOURCE",e.cannotUseArchivedSourceAsDefaultApiKeySource="CANNOT_USE_ARCHIVED_SOURCE_AS_DEFAULT_API_KEY_SOURCE",e.sourceWithTitleAlreadyExists="SOURCE_WITH_TITLE_ALREADY_EXISTS",e.archivedSourceWithTitleAlreadyExists="ARCHIVED_SOURCE_WITH_TITLE_ALREADY_EXISTS",e.sourceAlreadyAssociatedWithIntegrationPartner="SOURCE_ALREADY_ASSOCIATED_WITH_INTEGRATION_PARTNER",e.cannotMergeIntoArchivedSource="CANNOT_MERGE_INTO_ARCHIVED_SOURCE",e.cannotMergeFromABuiltInSource="CANNOT_MERGE_FROM_A_BUILT_IN_SOURCE",e.cannotArchiveTeamWithUnarchivedSubteams="CANNOT_ARCHIVE_TEAM_WITH_UNARCHIVED_SUBTEAMS",e.cannotRestoreTeamWithArchivedParentTeams="CANNOT_RESTORE_TEAM_WITH_ARCHIVED_PARENT_TEAMS",e.cannotAssociateJobWithArchivedTeam="CANNOT_ASSOCIATE_JOB_WITH_ARCHIVED_TEAM",e.cannotMoveTeamUnderItself="CANNOT_MOVE_TEAM_UNDER_ITSELF",e.cannotMoveTeamUnderArchivedTeam="CANNOT_MOVE_TEAM_UNDER_ARCHIVED_TEAM",e.cannotArchiveOpenJob="CANNOT_ARCHIVE_OPEN_JOB",e.cannotRestoreOpenJob="CANNOT_RESTORE_OPEN_JOB",e.canOnlyCloseOpenJob="CAN_ONLY_CLOSE_OPEN_JOB",e.cannotCloseDraftJob="CANNOT_CLOSE_DRAFT_JOB",e.cannotCloseArchivedJob="CANNOT_CLOSE_ARCHIVED_JOB",e.cannotCloseJobWithAnArchivedReason="CANNOT_CLOSE_JOB_USING_ARCHIVED_REASON",e.cannotAddUnpublishedInterviewPlanToJob="CANNOT_ADD_UNPUBLISHED_INTERVIEW_PLAN_TO_JOB",e.cannotCloseJobTemplate="CANNOT_CLOSE_JOB_TEMPLATE",e.cannotFollowJobTemplates="CANNOT_FOLLOW_JOB_TEMPLATES",e.cannotCreateJobWithoutTeam="CANNOT_CREATE_JOB_WITHOUT_TEAM",e.cannotCreateJobWithoutLocation="CANNOT_CREATE_JOB_WITHOUT_LOCATION",e.cannotCreateJobWithoutTemplate="CANNOT_CREATE_JOB_WITHOUT_TEMPLATE",e.cannotAssociateJobWithArchivedBrand="CANNOT_ASSOCIATE_JOB_WITH_ARCHIVED_BRAND",e.cannotOpenJobTemplate="CANNOT_OPEN_JOB_TEMPLATE",e.openJobValidation="OPEN_JOB_VALIDATION",e.cannotExceedOneUnnamedJobCompensationTier="CANNOT_EXCEED_ONE_UNNAMED_JOB_COMPENSATION_TIER",e.cannotFindSecurityRoleForMakingJobConfidential="CANNOT_FIND_SECURITY_ROLE_FOR_MAKING_JOB_CONFIDENTIAL",e.cannotReorderJobCompensationTiersFromSeparateScopes="CANNOT_REORDER_JOB_COMPENSATION_TIERS_FROM_SEPARATE_SCOPES",e.cannotReorderJobCompensationTiersWithDuplicateIds="CANNOT_REORDER_JOB_COMPENSATION_TIERS_WITH_DUPLICATE_IDS",e.cannotReorderSubsetOfJobCompensationTiers="CANNOT_REORDER_SUBSET_OF_JOB_COMPENSATION_TIERS",e.cannotMoveArchivedJobCompensationTier="CANNOT_MOVE_ARCHIVED_JOB_COMPENSATION_TIER",e.cannotMoveRelativeToArchivedJobCompensationTier="CANNOT_MOVE_RELATIVE_TO_ARCHIVED_JOB_COMPENSATION_TIER",e.cannotMoveJobCompensationTierRelativeToItself="CANNOT_MOVE_JOB_COMPENSATION_TIER_RELATIVE_TO_ITSELF",e.cannotSubmitApplicationJobPostingIsUnpublished="CANNOT_SUBMIT_APPLICATION_JOB_POSTING_IS_UNPUBLISHED",e.cannotListConfidentialJob="CANNOT_LIST_CONFIDENTIAL_JOB",e.invalidStageOrderInInterviewPlan="INVALID_STAGE_ORDER_IN_INTERVIEW_PLAN",e.cannotAddLeadStageSinceDuplicateExistsInInvalidPosition="CANNOT_ADD_LEAD_STAGE_SINCE_DUPLICATE_EXISTS_IN_INVALID_POSITION",e.couldNotDetachAllClosedJobs="COULD_NOT_DETACH_ALL_CLOSED_JOBS",e.gsuiteAuthError="GSUITE_AUTH_ERROR",e.gsuiteAuthInvalidUser="GSUITE_AUTH_INVALID_USER",e.gsuiteAuthUnauthorized="GSUITE_AUTH_UNAUTHORIZED",e.gsuiteAuthTemporaryServiceError="GSUITE_AUTH_TEMPORARY_SERVICE_ERROR",e.gsuiteOperationForbidden="GSUITE_OPERATION_FORBIDDEN",e.gsuiteNetworkError="GSUITE_NETWORK_ERROR",e.googleWorkspaceNoCalendarReadAccess="GOOGLE_WORKSPACE_NO_CALENDAR_READ_ACCESS",e.gsuiteCalendarNotFound="GSUITE_CALENDAR_NOT_FOUND",e.gsuiteNotACalendarUser="GSUITE_NOT_A_CALENDAR_USER",e.msftAuthError="MSFT_AUTH_ERROR",e.userAlreadyHasThisRole="USER_ALREADY_HAS_THIS_ROLE",e.userAssignedConflictingRole="USER_ASSIGNED_CONFLICTING_ROLE",e.adminCannotEditOwnTeamOrJobRole="ADMIN_CANNOT_EDIT_OWN_ROLE",e.doesNotHavePermissionToDeleteNote="DOES_NOT_HAVE_PERMISSION_TO_DELETE_NOTE",e.doesNoteHavePermissionToEditNote="DOES_NOT_HAVE_PERMISSION_TO_EDIT_NOTE",e.cannotSetNotePrivacyWithoutParent="CANNOT_SET_NOTE_REPLY_PRIVACY_APART_FROM_PARENT",e.doesNoteHavePermissionToResolveNoteTask="DOES_NOT_HAVE_PERMISSION_TO_RESOLVE_NOTE_TASK",e.reachedLimitForPinnedNotes="PINNED_NOTE_LIMIT_REACHED",e.cannotPinDeletedNote="CANNOT_PIN_DELETED_NOTE",e.cannotPinPrivateNote="CANNOT_PIN_PRIVATE_NOTE",e.cannotPinNoteReply="CANNOT_PIN_NOTE_REPLY",e.cannotSetNotePrivateWhenPinned="CANNOT_SET_NOTE_PRIVATE_WHEN_PINNED",e.cannotSetInterviewFeedbackFormToArchivedForm="CANNOT_SET_INTERVIEW_FEEDBACK_FORM_TO_ARCHIVED_FORM",e.cannotHaveInterviewWithContentGroupAndScheduleMasterTemplate="CANNOT_HAVE_INTERVIEW_WITH_CONTENT_GROUP_AND_SCHEDULE_MASTER_TEMPLATE",e.cannotPromoteInterviewToSharedWithOtherDependencies="CANNOT_PROMOTE_INTERVIEW_TO_SHARED_WITH_OTHER_DEPENDENCIES",e.cannotPromoteArchivedInterviewToShared="CANNOT_PROMOTE_ARCHIVED_INTERVIEW_TO_SHARED",e.interviewAlreadyShared="INTERVIEW_ALREADY_SHARED",e.cannotArchiveTheDefaultScorecard="CANNOT_ARCHIVE_THE_DEFAULT_SCORECARD",e.cannotHaveFeedbackFormWithInterviewAndContentGroup="CANNOT_HAVE_FEEDBACK_FORM_WITH_INTERVIEW_AND_CONTENT_GROUP",e.cannotDeleteFeedbackFormAttachedToInterviewEvent="CANNOT_DELETE_FEEDBACK_FORM_ATTACHED_TO_INTERVIEW_EVENT",e.singleUserCannotHaveMultipleUnstartedCampaignsForCandidateInTemplate="SINGLE_USER_CANNOT_HAVE_MULTIPLE_UNSTARTED_CAMPAIGNS_FOR_CANDIDATE_IN_TEMPLATE",e.cannotEditCampaignsWithLintErrors="CANNOT_EDIT_CAMPAIGNS_WITH_LINT_ERRORS",e.cannotEditCampaignsWithRequiredActions="CANNOT_EDIT_CAMPAIGNS_WITH_REQUIRED_ACTIONS",e.cannotExecuteCampaignsWithLintErrors="CANNOT_EXECUTE_CAMPAIGNS_WITH_LINT_ERRORS",e.cannotExecuteCampaignsWithRequiredActions="CANNOT_EXECUTE_CAMPAIGNS_WITH_REQUIRED_ACTIONS",e.cannotMakePersonalCopyofAPersonalCampaign="CANNOT_MAKE_PERSONAL_COPY_OF_PERSONAL_CAMPAIGN",e.cannotShareNonSourcingCampaign="CANNOT_SHARE_NON_SOURCING_CAMPAIGN",e.cannotShareSharedCampaign="CANNOT_SHARE_A_SHARED_CAMPAIGN",e.cannotCreateConfidentialNonSourcingCampaign="CANNOT_CREATE_NON_SOURCING_CONFIDENTIAL_CAMPAIGN",e.cannotCreateConfidentialAndSharedSourcingCampaign="CANNOT_CREATE_CONFIDENTIAL_AND_SHARED_SOURCING_CAMPAIGN",e.cannotCreateNonSourcingTemporaryTemplate="CANNOT_CREATE_NON_SOURCING_TEMPORARY_TEMPLATE",e.cannotCreateCampaignWithAnotherUsersPersonalTemplate="CANNOT_CREATE_CAMPAIGN_WITH_ANOTHER_USERS_PERSONAL_TEMPLATE",e.cannotCreateCampaignUsingArchivedTemplate="CANNOT_CREATE_CAMPAIGN_USING_ARCHIVED_TEMPLATE",e.cannotExecuteAnotherUsersCampaign="CANNOT_EXECUTE_ANOTHER_USERS_CAMPAIGN",e.cannotEditAnotherUsersCampaign="CANNOT_EDIT_ANOTHER_USERS_CAMPAIGN",e.campaignTemplateStageDelaysMustComeOneAfterAnother="CAMPAIGN_TEMPLATE_STAGE_DELAYS_MUST_COME_ONE_AFTER_ANOTHER",e.campaignStageDelaysMustComeOneAfterAnother="CAMPAIGN_STAGE_DELAYS_MUST_COME_ONE_AFTER_ANOTHER",e.cannotRemoveCampaignStageFromStartedCampaign="CANNOT_REMOVE_CAMPAIGN_STAGE_FROM_STARTED_CAMPAIGN",e.cannotCancelADraftCampaign="CANNOT_CANCEL_A_DRAFT_CAMPAIGN",e.cannotPauseADraftCampaign="CANNOT_PAUSE_A_DRAFT_CAMPAIGN",e.cannotPauseACancelledCampaign="CANNOT_PAUSE_A_CANCELLED_CAMPAIGN",e.cannotPauseACompletedCampaign="CANNOT_PAUSE_A_COMPLETED_CAMPAIGN",e.cannotPauseAPausedCampaign="CANNOT_PAUSE_A_PAUSED_CAMPAIGN",e.cannotUnpauseNonPausedCampaign="CANNOT_UNPAUSE_NON_PAUSED_CAMPAIGN",e.cannotEditADraftCampaign="CANNOT_EDIT_A_DRAFT_CAMPAIGN",e.cannotEditACancelledCampaign="CANNOT_EDIT_A_CANCELLED_CAMPAIGN",e.cannotEditACompletedCampaign="CANNOT_EDIT_A_COMPLETED_CAMPAIGN",e.cannotEditAnUnsubscribedCampaign="CANNOT_EDIT_AN_UNSUBSCRIBED_CAMPAIGN",e.cannotEditPersonalizedCampaign="CANNOT_EDIT_PERSONALIZED_CAMPAIGN",e.cannotEditCampaignWithoutActiveStage="CANNOT_EDIT_CAMPAIGN_WITHOUT_ACTIVE_STAGE",e.sequenceDoesNotSupportPauseFeature="SEQUENCE_DOES_NOT_SUPPORT_PAUSE_FEATURE",e.cannotUpdateStageDelayForNonStartedCampaign="CANNOT_UPDATE_STAGE_DELAY_FOR_NON_STARTED_CAMPAIGN",e.cannotUseGSuiteEmailToAvoidUsageLimit="CANNOT_USE_GSUITE_EMAIL_TO_AVOID_USAGE_LIMIT",e.cannotUpdateEmailSyncSettingWithRunningCampaigns="CANNOT_UPDATE_EMAIL_SYNC_SETTING_WITH_RUNNING_CAMPAIGNS",e.cannotExecuteCampaignWithoutEmailSyncEnabled="CANNOT_EXECUTE_CAMPAIGN_WITHOUT_EMAIL_SYNC_ENABLED",e.cannotConvertNonSourcingTemplateToShared="CANNOT_CONVERT_NON_SOURCING_TEMPLATE_TO_SHARED",e.cannotConvertNonSourcingTemplateToConfidential="CANNOT_CONVERT_NON_SOURCING_TEMPLATE_TO_CONFIDENTIAL",e.campaignAuthorMissingOAuthToken="CAMPAIGN_AUTHOR_MISSING_OAUTH_TOKEN",e.campaignMissingToEmail="CAMPAIGN_MISSING_TO_EMAIL",e.cannotDeleteNonTemporaryCampaign="CANNOT_DELETE_NON_TEMPORARY_CAMPAIGN",e.cannotSaveEditsOnNonTemporaryCampaign="CANNOT_SAVE_EDITS_ON_NON_TEMPORARY_CAMPAIGN",e.cannotApplyEditsToCohortCampaigns="CANNOT_APPLY_EDITS_TO_COHORT_CAMPAIGNS",e.cannotApplyEditsToCampaigns="CANNOT_APPLY_EDITS_TO_CAMPAIGNS",e.cannotEditNonSourcingCampaign="CANNOT_EDIT_NON_SOURCING_CAMPAIGN",e.cannotEditCampaignWithoutTemplate="CANNOT_EDIT_CAMPAIGN_WITHOUT_TEMPLATE",e.cannotEditCampaignWithoutEmailSyncEnabled="CANNOT_EDIT_CAMPAIGN_WITHOUT_EMAIL_SYNC_ENABLED",e.cannotLinkNonSourcingTemplatesToJobs="CANNOT_LINK_NON_SOURCING_TEMPLATES_TO_JOBS",e.cannotCreateCampaignJobLinkUnlessJobIsOpen="CANNOT_CREATE_CAMPAIGN_JOB_LINK_UNLESS_JOB_IS_OPEN",e.campaignJobLinkArchiveReasonsMustBeActive="CAMPAIGN_JOB_LINK_ARCHIVE_REASONS_MUST_BE_ACTIVE",e.userIsAlreadyOnTalentProject="USER_IS_ALREADY_ON_TALENT_PROJECT",e.cannotAddCandidateToArchivedTalentProject="CANNOT_ADD_CANDIDATE_TO_ARCHIVED_PROJECT",e.userCannotManageTalentProjectAccess="USER_CANNOT_MANAGE_TALENT_PROJECT_ACCESS",e.usersCannotRemoveTheirOwnProjectAccess="CANNOT_REMOVE_OWN_PROJECT_ACCESS",e.talentProjectAccessRolePermissionConflict="TALENT_PROJECT_ACCESS_ROLE_PERMISSION_CONFLICT",e.userHasNoAccessOnTalentProject="USER_HAS_NO_ACCESS_ON_TALENT_PROJECT",e.dataEnrichmentRequestLimitExceeded="DATA_ENRICHMENT_REQUEST_LIMIT_EXCEEDED",e.recaptchaScoreBelowThreshold="RECAPTCHA_SCORE_BELOW_THRESHOLD",e.cannotAnonymizeAnUnarchivedCandidate="CANNOT_ANONYMIZE_AN_UNARCHIVED_CANDIDATE",e.cannotUpdateLockedReport="CANNOT_UPDATE_LOCKED_REPORT",e.cannotUpdateBuiltinReport="CANNOT_UPDATE_BUILTIN_REPORT",e.cannotUnlockReportLockedBySomeoneElse="CANNOT_UNLOCK_REPORT_LOCKED_BY_SOMEONE_ELSE",e.doesNotHavePermissionToManageSharingForReport="DOES_NOT_HAVE_PERMISSION_TO_MANAGE_REPORT_SHARING",e.doesNotHavePermissionToManageSharingForDashboard="DOES_NOT_HAVE_PERMISSION_TO_MANAGE_DASHBOARD_SHARING",e.unsupportedReportTypeInPublicApi="UNSUPPORTED_REPORT_TYPE_IN_PUBLIC_API",e.usersCannotRemoveTheirOwnAnalyticsAccess="CANNOT_REMOVE_OWN_ANALYTICS_ACCESS",e.unsupportedPolicyActionType="UNSUPPORTED_POLICY_ACTION_TYPE",e.cannotRemoveALicenseFromYourself="CANNOT_REMOVE_A_LICENSE_FROM_YOURSELF",e.cannotAssignALicenseThatUserAlreadyHas="CANNOT_ASSIGN_LICENSE_TYPE_THAT_USER_ALREADY_HAS",e.cannotAssignALicenseToADisabledUser="CANNOT_ASSIGN_LICENSE_TO_A_DISABLED_USER",e.noOpenLicensesLeft="NO_OPEN_LICENSES_LEFT",e.cannotChangeArchiveReasonOnNonArchiveTypeApplicationHistoryEvent="CANNOT_CHANGE_ARCHIVE_REASON_ON_NON_ARCHIVE_TYPE_APPLICATION_HISTORY_EVENT",e.cannotCreateDuplicateWebhook="CANNOT_CREATE_DUPLICATE_WEBHOOK",e.invalidWebhookConfiguration="INVALID_WEBHOOK_CONFIGURATION",e.webhookPingFailed="WEBHOOK_PING_FAILED",e.cannotDeleteContentGroupWithChildren="CANNOT_DELETE_CONTENT_GROUP_WITH_CHILDREN",e.cannotMoveObjectToGroupWhereItAlreadyExists="CANNOT_MOVE_OBJECT_TO_GROUP_WHERE_IT_ALREADY_EXISTS",e.cannotEditPropertiesForContentGroupAssociatedWithTeam="CANNOT_EDIT_PROPERTIES_FOR_CONTENT_GROUP_ASSOCIATED_WITH_TEAM",e.cannotRemoveObjectFromAContentGroupWhereItDidNotExist="CANNOT_REMOVE_OBJECT_FROM_A_CONTENT_GROUP_WHERE_IT_DID_NOT_EXIST",e.cannotMoveObjectInMultipleLocationsWithoutSpecifyingFromLocation="CANNOT_MOVE_OBJECT_IN_MULTIPLE_LOCATIONS_WITHOUT_SPECIFYING_FROM_LOCATION",e.cannotHaveContentGroupWithEmptyName="CANNOT_HAVE_CONTENT_GROUP_WITH_EMPTY_NAME",e.cannotHaveApplicationFormDefinitionWithContentGroupAndJob="CANNOT_HAVE_APPLICATION_FORM_DEFINITION_WITH_CONTENT_GROUP_AND_JOB",e.cannotArchiveTheDefaultApplicationForm="CANNOT_ARCHIVE_THE_DEFAULT_APPLICATION_FORM",e.invalidTemplateForApplicationConfirmationEmail="INVALID_TEMPLATE_FOR_APPLICATION_CONFIRMATION_EMAIL",e.cannotAddRequiredFieldsToASurvey="CANNOT_ADD_REQUIRED_FIELDS_TO_A_SURVEY",e.cannotDirectlyEditEEOCForm="CANNOT_DIRECTLY_EDIT_EEOC_FORM",e.cannotEditBuiltInSurveyForm="CANNOT_EDIT_BUILT_IN_SURVEY_FORM",e.cannotSendSurveyWithoutApplicationOrJobInterviewStage="CANNOT_SEND_SURVEY_WITHOUT_APPLICATION_OR_JOB_INTERVIEW_STAGE",e.candidateDoesntMatchApplication="CANDIDATE_DOES_NOT_MATCH_APPLICATION",e.automationRulesNotFilledIn="AUTOMATION_RULES_NOT_FILLED_IN",e.cannotFindSurveyRequestForCurrentInterviewStage="CANNOT_FIND_SURVEY_REQUEST_FOR_CURRENT_INTERVIEW_STAGE",e.cannotFindUserForEmployeeSurvey="CANNOT_FIND_USER_FOR_EMPLOYEE_SURVEY",e.cannotDeleteScheduleMasterTemplateWithInterviews="CANNOT_DELETE_SCHEDULE_MASTER_TEMPLATE_WITH_INTERVIEWS",e.cannotUpdateLinkedInterviewScheduleTemplate="CANNOT_UPDATE_LINKED_INTERVIEW_SCHEDULE_TEMPLATE",e.cannotLinkInterviewScheduleTemplateWithoutMasterTemplate="CANNOT_LINK_INTERVIEW_SCHEDULE_TEMPLATE_WITHOUT_MASTER_TEMPLATE",e.cannotSaveScheduleMasterTemplateUpdatesThatBreakLinkedDirectBookingRequests="CANNOT_SAVE_SCHEDULE_MASTER_TEMPLATE_UPDATES_THAT_BREAK_LINKED_DIRECT_BOOKING_REQUESTS",e.cannotReactivateADeletedCustomField="CANNOT_REACTIVATE_A_DELETED_CUSTOM_FIELD",e.cannotFindCustomFieldsByUnsupportedObjectType="CANNOT_FIND_CUSTOM_FIELDS_BY_UNSUPPORTED_OBJECT_TYPE",e.cannotDeleteAReferencedCustomField="CANNOT_DELETE_A_REFERENCED_CUSTOM_FIELD",e.cannotArbitrarilyEditASystemCustomField="CANNOT_ARBITRARILY_EDIT_A_SYSTEM_CUSTOM_FIELD",e.cannotFindCustomFieldSelectableValue="CANNOT_FIND_CUSTOM_FIELD_SELECTABLE_VALUE",e.cannotSetAnOutOfBoundsPriority="CANNOT_SET_AN_OUT_OF_BOUNDS_PRIORITY",e.cannotSetPriorityOnFieldWithObjectType="CANNOT_SET_PRIORITY_ON_FIELD_WITH_OBJECT_TYPE",e.cannotReuseExistingSubstitutionTokenForCustomField="CANNOT_REUSE_EXISTING_SUBSTITUTION_TOKEN_FOR_CUSTOM_FIELD",e.cannotCreateRedundantCustomField="CANNOT_CREATE_REDUNDANT_CUSTOM_FIELD",e.invalidCustomFieldConfigurationError="INVALID_CUSTOM_FIELD_CONFIGURATION_ERROR",e.cannotSpecifyCustomSubstitutionTokenValue="CANNOT_SPECIFY_CUSTOM_SUBSTITION_TOKEN_VALUE",e.cannotFindCustomField="CANNOT_FIND_CUSTOM_FIELD",e.cannotCreateACalculatedFieldWithNameAlreadyInUse="CANNOT_CREATE_A_CALCULATED_FIELD_WITH_NAME_ALREADY_IN_USE",e.cannotSetFieldForDisplayInInterviewBriefing="CANNOT_SET_FIELD_FOR_DISPLAY_IN_INTERVIEW_BRIEFING",e.cannotUpdateOfferDecidedAtDateForOfferThatHasntBeenDecided="CANNOT_UPDATE_OFFER_DECIDED_AT_DATE_FOR_OFFER_THAT_HASNT_BEEN_DECIDED",e.cannotCancelAnOfferProcessThatIsNotRunning="CANNOT_CANCEL_AN_OFFER_PROCESS_THAT_IS_NOT_RUNNING",e.cannotUpdateTheOfferDecidedAtOfARunningOfferProcess="CANNOT_UPDATE_OFFER_DECIDED_AT_OF_A_RUNNING_OFFER_PROCESS",e.cannotUpdateTheOfferAcceptanceStatusOfARunningOfferProcess="CANNOT_UPDATE_OFFER_ACCEPTANCE_STATUS_OF_A_RUNNING_OFFER_PROCESS",e.cannotUpdateTheOfferAcceptanceStatusToDisallowedStatus="CANNOT_UPDATE_THE_OFFER_ACCEPTANCE_STATUS_TO_DISALLOWED_STATUS",e.cannotReuseTitleForOfferLetterTemplate="CANNOT_REUSE_TITLE_FOR_OFFER_LETTER_TEMPLATE",e.cannotSubmitOfferFormWithoutOpening="CANNOT_SUBMIT_OFFER_FORM_WITHOUT_OPENING",e.cannotGenerateOfferLetterFromTemplateWithoutUploadedDocument="CANNOT_GENERATE_OFFER_LETTER_FROM_TEMPLATE_WITHOUT_UPLOADED_DOCUMENT",e.cannotValidateOfferLetterTemplateWithoutUploadedDocument="CANNOT_VALIDATE_OFFER_LETTER_TEMPLATE_WITHOUT_UPLOADED_DOCUMENT",e.errorGeneratingDocumentTemplater="ERROR_GENERATING_DOCUMENT_TEMPLATER",e.cannotGenerateOfferLetterFromOfferVersionWithOfferLetterPdf="CANNOT_GENERATE_OFFER_LETTER_FROM_OFFER_VERSION_WITHOUT_OFFER_LETTER_PDF",e.tokenTitleValidationError="TOKEN_TITLE_VALIDATION_ERROR",e.resumeFileTooLarge="RESUME_FILE_TOO_LARGE",e.missingRenderedDocument="MISSING_RENDERED_DOCUMENT",e.directUploadOfferLetterDisabled="DIRECT_UPLOAD_OFFER_LETTER_DISABLED",e.reachedProcessorDepthSanityLimit="REACHED_PROCESSOR_DEPTH_SANITY_LIMIT",e.generatedOfferLetterTemplateNotAccessibleForEsignature="CANNOT_RETRIEVE_OFFER_LETTER_TEMPLATE_FOR_ESIGNATURE",e.offerLetterTemplateEsignatureEligibilityError="CANNOT_USE_TEMPLATE_FOR_ESIGNATURE_AS_PLANNED",e.cannotReuseTitleForDocumentRequestTemplate="CANNOT_REUSE_DOCUMENT_REQUEST_TEMPLATE_TITLE",e.cannotBuildDocumentTemplateWithoutFile="CANNOT_BUILD_DOC_TEMPLATE_WITHOUT_FILE",e.cannotGenerateDocumentWithoutTemplate="CANNOT_GENERATE_DOCUMENT_WITHOUT_TEMPLATE",e.cannotCreateDuplicateDocumentRequests="CANNOT_CREATE_DUPLICATE_DOCUMENT_REQUESTS",e.cannotCreateBambooHrEmployee="CANNOT_CREATE_BAMBOO_HR_EMPLOYEE",e.cannotUpdateBambooHrEmployee="CANNOT_UPDATE_BAMBOO_HR_EMPLOYEE",e.cannotUploadFileType="CANNOT_UPLOAD_FILE_TYPE",e.elementConfigurationMustBeDefined="ELEMENT_CONFIGURATION_MUST_BE_DEFINED",e.fieldNotQueryable="FIELD_NOT_QUERYABLE",e.cannotFindAuthorizingEmailForRejectionEmailSend="CANNOT_FIND_AUTHORIZING_EMAIL_FOR_REJECTION_EMAIL_SEND",e.cannotParseUploadedCSVFile="CANNOT_PARSE_UPLOADED_CSV_FILE",e.cannotStartBulkDataImportWithIncompletelyMappedFields="CANNOT_START_BULK_DATA_IMPORT_WITH_INCOMPLETELY_MAPPED_FIELDS",e.cannotStartBulkDataImportWithAllFieldsIgnored="CANNOT_START_BULK_DATA_IMPORT_WITH_ALL_FIELDS_IGNORED",e.cannotStartBulkDataImportWithInvalidMapping="CANNOT_START_BULK_DATA_IMPORT_WITH_INVALID_MAPPING",e.cannotStateBulkDataImportWithDuplicateValuesForIdentifyingFields="CANNOT_START_BULK_DATA_IMPORT_WITH_DUPLICATE_VALUES_FOR_IDENTIFYING_FIELDS",e.cannotStartBulkDataImportWithRowWithoutAnyIdentifyingValue="CANNOT_START_BULK_DATA_IMPORT_WITH_ROW_WITHOUT_ANY_IDENTIFYING_VALUE",e.cannotStartBulkDataImportOnAlreadyRunningImport="CANNOT_START_BULK_DATA_IMPORT_ON_ALREADY_RUNNING_IMPORT",e.cannotStartBulkDataImportOnCompletedImport="CANNOT_START_BULK_DATA_IMPORT_ON_COMPLETED_IMPORT",e.missingRequiredFields="MISSING_REQUIRED_FIELDS",e.cannotDetermineDependentObject="CANNOT_DETERMINE_DEPENDENT_OBJECT",e.cannotMapProvidedValueToField="CANNOT_MAP_PROVIDED_VALUE_TO_FIELD",e.taskAlreadyCompleted="TASK_ALREADY_COMPLETED",e.taskNoLongerExists="TASK_NO_LONGER_EXISTS",e.cannotDeleteStageAndMoveApplicationsToArchiveStageWithoutArchiveReason="CANNOT_DELETE_STAGE_AND_MOVE_APPLICATIONS_TO_ARCHIVE_STAGE_WITHOUT_ARCHIVE_REASON",e.helloSignReminderValidationError="HELLOSIGN_REMINDER_VALIDATION_ERROR",e.helloSignExpiresAtTooEarly="HELLOSIGN_EXPIRES_AT_VALUE_IS_TOO_EARLY",e.helloSignExpiresAtTooLate="HELLOSIGN_EXPIRES_AT_VALUE_IS_TOO_LATE",e.esignatureRequestValidationError="ESIGNATURE_REQUEST_VALIDATION_ERROR",e.assessmentIntegrationInvalidUpdate="ASSESSMENT_INTEGRATION_INVALID_UPDATE",e.assessmentIntegrationNotSetup="ASSESSMENT_INTEGRATION_NOT_SETUP",e.assessmentStartDataError="ASSESSMENT_START_DATA_ERROR",e.assessmentCancelNotSupportedError="ASSESSMENT_CANCEL_NOT_SUPPORTED_ERROR",e.assessmentValidationError="ASSESSMENT_VALIDATION_ERROR",e.assessmentPartnerInvalidRequestError="ASSESSMENT_PARTNER_INVALID_REQUEST_ERROR",e.assessmentPollingNotSupportedError="ASSESSMENT_POLLING_NOT_SUPPORTED_ERROR",e.assessmentInvalidApiKeyError="ASSESSMENT_INVALID_API_KEY_ERROR",e.interviewResourceIntegrationNotSetup="INTERVIEW_RESOURCE_INTEGRATION_NOT_SETUP",e.interviewResourceIntegrationPermissionError="INTERVIEW_RESOURCE_INTEGRATION_PERMISSION_ERROR",e.interviewResourceExpirationNotSupportedError="INTERVIEW_RESOURCE_EXPIRATION_NOT_SUPPORTED_ERROR",e.cannotSubmitTakehomeWithUnfinishedConfiguration="CANNOT_SUBMIT_TAKEHOME_WITH_UNFINISHED_CONFIGURATION",e.cannotRescheduleCompletedTakeHome="CANNOT_RESCHEDULE_COMPLETED_TAKE_HOME",e.cannotScheduleCancelledTakeHome="CANNOT_SCHEDULE_CANCELED_TAKE_HOME",e.cannotFindReviewerForTakeHome="CANNOT_FIND_REVIEWER_FOR_TAKE_HOME",e.reviewerAlreadyExistsOnTakeHome="REVIEWER_ALREADY_EXISTS_ON_TAKE_HOME",e.takeHomeMustHaveAtLeastOneReviewer="TAKE_HOME_MUST_HAVE_AT_LEAST_ONE_REVIEWER",e.cannotSendTakeHomeWithoutEmailTemplate="CANNOT_SEND_TAKE_HOME_WITHOUT_EMAIL_TEMPLATE",e.usersCannotAssignThemselvesToAnAgency="USERS_CANNOT_ASSIGN_THEMSELVES_TO_AN_AGENCY",e.cannotAddUserToAgencyWithoutSource="CANNOT_ADD_USER_TO_AGENCY_WITHOUT_SOURCE",e.cannotCreateDefaultSourceForAgencyWithExistingSource="CANNOT_CREATE_DEFAULT_SOURCE_FOR_AGENCY_WITH_EXISTING_SOURCE",e.cannotCreateDefaultSourceForAgencyWithEmptyName="CANNOT_CREATE_DEFAULT_SOURCE_FOR_AGENCY_WITH_EMPTY_NAME",e.cannotInviteAUserWithoutAnEmail="CANNOT_INVITE_A_USER_WITHOUT_AN_EMAIL",e.sentTooManyEmailInvites="SENT_TOO_MANY_EMAIL_INVITES",e.organizationIsAlreadyStripeCustomer="ORGANIZATION_IS_ALREADY_STRIPE_CUSTOMER",e.noStripeCustomerFound="NO_STRIPE_CUSTOMER_FOUND",e.couldNotSyncBillingContactsToStripe="COULD_NOT_SYNC_BILLING_CONTACTS_TO_STRIPE",e.tooManyBillingContactsToReceiveAllTransactionalEmails="TOO_MANY_BILLING_CONTACTS_TO_RECEIVE_ALL_TRANSACTIONAL_EMAILS",e.invalidQuantityForPurchase="INVALID_QUANTITY_FOR_PURCHASE",e.reviewableObjectFeedbackConfigurationError="REVIEWABLE_OBJECT_FEEDBACK_CONFIGURATION_ERROR",e.activeFeatureFlagsFound="ACTIVE_FEATURE_FLAGS_FOUND",e.cannotDeleteFlagStillInEnum="CANNOT_DELETE_FLAG_STILL_IN_ENUM",e.featureFlagNotAllowedForOrg="FEATURE_FLAG_NOT_ALLOWED_FOR_ORG",e.cannotModifyEnabledReportAlert="CANNOT_MODIFY_ENABLED_REPORT_ALERT",e.cannotCreateReportAlertForUnsupportedReportType="CANNOT_CREATE_REPORT_ALERT_FOR_UNSUPPORTED_REPORT_TYPE",e.cannotEnableReportAlertWithoutRecipients="CANNOT_ENABLE_REPORT_ALERT_WITHOUT_RECIPIENTS",e.cannotEnableReportAlertForInvalidReport="CANNOT_ENABLE_REPORT_ALERT_FOR_INVALID_REPORT",e.cannotEnableReportWithInvalidFieldRecipient="CANNOT_ENABLE_REPORT_ALERT_WITH_INVALID_FIELD_RECIPIENT",e.cannotUseTriggerImmediateOnReportAlertOfTypeAll="CANNOT_USE_TRIGGER_IMMEDIATE_ON_REPORT_ALERT_OF_TYPE_ALL",e.cannotSendEmptyResultsForImmediateReportAlert="CANNOT_SEND_EMPTY_RESULTS_FOR_IMMEDIATE_REPORT_ALERT",e.cannotForceTriggerReportAlert="CANNOT_FORCE_TRIGGER_REPORT_ALERT",e.cannotModifyEnabledDashboardSchedule="CANNOT_MODIFY_ENABLED_DASHBOARD_SCHEDULE",e.cannotCombineSendAsGroupWithUserFilters="CANNOT_COMBINE_SEND_AS_GROUP_WITH_USER_FILTERS",e.cannotSetPreferenceForEventType="CANNOT_SET_PREFERENCE_FOR_EVENT_TYPE",e.mustTransferEitherPlanOrJob="MUST_TRANSFER_EITHER_PLAN_OR_JOB",e.mustTransferToAPlanThatExistsOnJob="MUST_TRANSFER_TO_A_PLAN_THAT_EXISTS_ON_JOB",e.cannotTransferToATemplateJob="CANNOT_TRANSFER_TO_A_TEMPLATE_JOB",e.sharedEmailAliasRequestAlreadyActive="SHARED_EMAIL_ALIAS_REQUEST_ALREADY_ACTIVE",e.userMissingPermissionToUseEmailAlias="USER_MISSING_PERMISSION_TO_USE_EMAIL_ALIAS",e.cannotRemoveDefaultNoReplyEmailAlias="CANNOT_REMOVE_DEFAULT_NO_REPLY_EMAIL_ALIAS",e.offerProcessWithoutApprovalSubprocess="OFFER_PROCESS_WITHOUT_APPROVAL_SUBPROCESS",e.userIsNotApprover="USER_IS_NOT_APPROVER",e.userNotFound="USER_NOT_FOUND",e.cannotHireWithoutOffer="CANNOT_HIRE_WITHOUT_OFFER",e.cannotOpenJobWithoutApproval="CANNOT_OPEN_JOB_WITHOUT_APPROVAL",e.cannotEditActiveProcess="CANNOT_EDIT_ACTIVE_PROCESS",e.cannotOverrideCompletedProcess="CANNOT_OVERRIDE_COMPLETED_PROCESS",e.cannotOverrideIfNotAdmin="CANNOT_OVERRIDE_IF_NOT_ADMIN",e.cannotOverrideSelf="CANNOT_OVERRIDE_SELF",e.cannotSkipApproval="CANNOT_SKIP_APPROVAL",e.invalidApprovalProcess="INVALID_APPROVAL_PROCESS",e.invalidStateTransitionWhilePendingApproval="INVALID_STATE_TRANSITION_WHILE_PENDING_APPROVAL",e.cannotFindRequestedProcessRoleTypeApprovers="CANNOT_FIND_REQUESTED_PROCESS_ROLE_TYPE_APPROVERS",e.gustoOAuthError="GUSTO_OAUTH_ERROR",e.gustoCompanyIdNotSetError="GUSTO_COMPANY_ID_NOT_SET_ERROR",e.ripplingValidationError="RIPPLING_VALIDATION_ERROR",e.cannotBackfillNonInactivityRule="CANNOT_BACKFILL_NON_INACTIVITY_RULE",e.complianceRuleBackfillAlreadyInProgress="COMPLIANCE_RULE_BACKFILL_ALREADY_IN_PROGRESS",e.noCandidatesToBackfill="NO_CANDIDATES_TO_BACKFILL",e.complianceRuleInvalidUpdate="COMPLIANCE_RULE_INVALID_UPDATE",e.paychexCompanyIdNotSetError="PAYCHEX_COMPANY_ID_NOT_SET_ERROR",e.hiBobNotConfiguredError="HI_BOB_NOT_CONFIGURED_ERROR",e.hireRightApiError="HIRERIGHT_API_ERROR",e.cannotEditDefaultStages="CANNOT_EDIT_DEFAULT_STAGES",e.lockedForEditing="LOCKED_FOR_EDITING",e.openingIdentifierAlreadyUsed="OPENING_IDENTIFIER_ALREADY_USED",e.openingCantBeAssociatedWithLocationHierarchy="OPENING_CANT_BE_ASSOCIATED_WITH_LOCATION_HIERARCHY",e.openingCantBeAssociatedWithAnArchivedLocation="OPENING_CANT_BE_ASSOCIATED_WITH_ARCHIVED_LOCATION",e.cannotOpenOpeningAlongsideUnlinkedJob="CANNOT_OPEN_OPENING_ALONGSIDE_UNLINKED_JOB",e.cannotCloseOpeningWithAnArchivedReason="CANNOT_CLOSE_OPENING_WITH_AN_ARCHIVED_REASON",e.cannotDeleteAnUnarchivedOpening="CANNOT_DELETE_AN_UNARCHIVED_OPENING",e.cannotCloseArchivedOpening="CANNOT_CLOSE_ARCHIVED_OPENING",e.cannotCloseDraftOpening="CANNOT_CLOSE_DRAFT_OPENING",e.cannotCloseFilledOpening="CANNOT_CLOSE_FILLED_OPENING",e.cannotFillArchivedOpening="CANNOT_FILL_ARCHIVED_OPENING",e.cannotFillDraftOpening="CANNOT_FILL_DRAFT_OPENING",e.cannotFillClosedOpening="CANNOT_FILL_CLOSED_OPENING",e.cannotFillFilledOpening="CANNOT_FILL_FILLED_OPENING",e.cannotReopenFilledOpening="CANNOT_REOPEN_FILLED_OPENING",e.cannotOpenOpeningWithoutLatestVersion="CANNOT_OPEN_OPENING_WITHOUT_LATEST_VERSION",e.cannotOpenUnapprovedOpening="CANNOT_OPEN_UNAPPROVED_OPENING",e.cannotApproveArchivedOpening="CANNOT_APPROVE_ARCHIVED_OPENING",e.cannotDraftArchivedOpening="CANNOT_DRAFT_ARCHIVED_OPENING",e.canOnlyMoveDraftOpeningToApproved="CAN_ONLY_MOVE_DRAFT_OPENING_TO_APPROVED",e.canOnlyDraftApprovedOrClosedOpening="CAN_ONLY_DRAFT_APPROVED_OR_CLOSED_OPENING",e.cannotArchiveOpening="CANNOT_ARCHIVE_OPENING",e.jobsWithoutTeamsCanOnlyLinkToOpeningsWithoutTeams="JOBS_WITHOUT_TEAMS_CAN_ONLY_LINK_TO_OPENINGS_WITHOUT_TEAMS",e.openingCannotHaveStartDateBeforeHireDate="CANNOT_HAVE_START_DATE_BEFORE_HIRE_DATE",e.openingAlreadyLocked="OPENING_IS_ALREADY_LOCKED_BY_ANOTHER_APPLICATION",e.cannotUseNonOpenOpening="CANNOT_USE_NON_OPEN_OPENING",e.cannotHireWithoutOpening="CANNOT_HIRE_WITHOUT_OPENING",e.removingJobFromOpeningRemovesOpeningAccess="REMOVING_JOB_FROM_OPENING_REMOVES_OPENING_ACCESS",e.cannotEditOpenedAtOfNonOpenedOpening="CANNOT_EDIT_OPENED_AT_OF_NON_OPENED_OPENING",e.cannotEditClosedAtOfNonClosedOpening="CANNOT_EDIT_CLOSED_AT_OF_NON_CLOSED_OPENING",e.cannotSetOpenedAtAfterClosedAt="CANNOT_SET_OPENED_AT_AFTER_CLOSED_AT",e.cannotSetClosedAtBeforeOpenedAt="CANNOT_SET_CLOSED_AT_BEFORE_OPENED_AT",e.invalidOpeningState="INVALID_OPENING_STATE",e.openingNotFoundOrPolicyViolation="OPENING_NOT_FOUND_OR_NO_PERMISSION",e.approveOpeningValidation="APPROVE_OPENING_VALIDATION",e.resumeAnalysisFailed="RESUME_ANALYSIS_FAILED",e.personioNotConfiguredError="PERSONIO_NOT_CONFIGURED_ERROR",e.personioValidationError="PERSONIO_VALIDATION_ERROR",e.personioUnsupportedField="PERSONIO_UNSUPPORTED_FIELD",e.cannotUpdatePersonioEmployee="CANNOT_UPDATE_PERSONIO_EMPLOYEE",e.hireflixCandidateAlreadyExists="HIREFLIX_CANDIDATE_EXISTS",e.cannotMakeRequestInConfigurationPhase="CANNOT_MAKE_REQUEST_TO_WORKDAY_WHEN_IN_CONFIGURATION_PHASE",e.cannotUpdateActiveWorkdayHrisConfiguration="CANNOT_UPDATE_ACTIVE_WORKDAY_HRIS_CONFIGURATION",e.cannotActivateWorkdayHrisConfigurationWithInvalidMapping="CANNOT_ACTIVATE_WORKDAY_HRIS_CONFIGURATION_WITH_INVALID_MAPPING",e.cannotUseNonTemplateJobInWorkdayHrisJobTemplateMapping="CANNOT_USE_NON_TEMPLATE_JOB_IN_WORKDAY_HRIS_JOB_TEMPLATE_MAPPING",e.workdayValidationError="WORKDAY_VALIDATION_ERROR",e.charthopValidationError="CHARTHOP_VALIDATION_ERROR",e.charthopExistingEmployee="CHARTHOP_EXISTING_EMPLOYEE",e.enboarderValidationError="ENBOARDER_VALIDATION_ERROR",e.unsupportedEmbedScriptVersion="UNSUPPORTED_EMBED_SCRIPT_VERSION",e.namelyNotConfiguredError="NAMELY_NOT_CONFIGURED_ERROR",e.namelyValidationError="NAMELY_VALIDATION_ERROR",e.paylocityNotConfiguredError="PAYLOCITY_NOT_CONFIGURED_ERROR",e.paylocityValidationError="PAYLOCITY_VALIDATION_ERROR",e.paylocityInvalidRequest="PAYLOCITY_INVALID_REQUEST",e.interviewPlanTitleMustNotBeEmpty="INTERVIEW_PLAN_TITLE_MUST_NOT_BE_EMPTY",e.interviewPlanPermissionError="INTERVIEW_PLAN_PERMISSION_ERROR",e.interviewPlanExistsOnJob="INTERVIEW_PLAN_EXISTS_ON_JOB",e.invalidStageMapping="INVALID_STAGE_MAPPING",e.jobDoesNotHavePrimaryPlan="JOB_DOES_NOT_HAVE_PRIMARY_PLAN",e.cannotEditConfidentialJob="CANNOT_EDIT_CONFIDENTIAL_JOB",e.stageCannotBeArchivedWithCandidates="CANNOT_BE_ARCHIVED_WITH_CANDIDATES",e.creationOfCustomInterviewPlansRestricted="CREATION_OF_CUSTOM_INTERVIEW_PLANS_RESTRICTED",e.scorecardNotSupported="SCORECARD_NOT_SUPPORTED",e.couldNotDeleteApplicationHistory="COULD_NOT_DELETE_APPLICATION_HISTORY",e.cannotArchiveApplicationWithoutArchiveReason="CANNOT_ARCHIVE_APPLICATION_WITHOUT_ARCHIVE_REASON",e.cannotArchiveApplicationWithPendingOfferApprovalInstance="CANNOT_ARCHIVE_APPLICATION_WITH_PENDING_OFFER_APPROVAL_INSTANCE",e.cannotAccessEntitlement="CANNOT_ACCESS_ENTITLEMENT",e.invalidApplicationBlockingRuleParameters="INVALID_APPLICATION_BLOCKING_RULE_PARAMETERS",e.cannotUnblockSameApplication="CANNOT_UNBLOCK_SAME_APPLICATION",e.externalWorkflowsIntegrationNotSetup="EXTERNAL_WORKFLOWS_INTEGRATION_NOT_SETUP",e.externalWorkflowsIntegrationInvalidUpdate="EXTERNAL_WORKFLOWS_INTEGRATION_INVALID_UPDATE",e.externalWorkflowsInvalidUpdate="EXTERNAL_WORKFLOWS_INVALID_UPDATE",e.couldNotValidateOrganizationProvisioningRequest="COULD_NOT_VALIDATE_ORGANIZATION_PROVISIONING_REQUEST",e.provisioningRequestInInvalidState="PROVISIONING_REQUEST_IN_INVALID_STATE",e.couldNotUpdateOrganizationSubscription="COULD_NOT_UPDATE_ORGANIZATION_SUBSCRIPTION",e.cannotManuallyAddUsersBecauseDirectorySyncEnabled="CANNOT_MANUALLY_ADD_USERS_BECAUSE_DIRECTORY_SYNC_ENABLED",e.logResponseActivityMissingResponseStatus="LOG_RESPONSE_ACTIVITY_MISSING_RESPONSE_STATUS",e.cannotCreateApplicationForClosedJob="CANNOT_CREATE_APPLICATION_FOR_CLOSED_JOB",e.cannotCreateApplicationForTemplateJob="CANNOT_CREATE_APPLICATION_FOR_TEMPLATE_JOB",e.cannotCancelACanceledDelayedTask="CANNOT_CANCEL_A_CANCELED_DELAYED_TASK",e.cannotCancelAStartedDelayedTask="CANNOT_CANCEL_A_STARTED_DELAYED_TASK",e.processRoleTypeWithThisTitleAlreadyExists="PROCESS_ROLE_TYPE_WITH_THIS_TITLE_ALREADY_EXISTS",e.processRoleTypeInvalidObjectType="PROCESS_ROLE_TYPE_INVALID_OBJECT_TYPE",e.cannotPerformActionBecauseSyncIsActive="CANNOT_PERFORM_ACTION_BECAUSE_SYNC_IS_ACTIVE",e.hiringEventSlugAlreadyExists="HIRING_EVENT_SLUG_ALREADY_EXISTS",e.hiringEventInvalidUpdate="HIRING_EVENT_INVALID_UPDATE",e.cannotSetApprovalStatusOnPublicEventAudienceMember="CANNOT_SET_APPROVAL_STATUS_ON_PUBLIC_EVENT_AUDIENCE_MEMBER",e.hiringEventAudienceMemberInvalidUpdate="HIRING_EVENT_AUDIENCE_MEMBER_INVALID_UPDATE",e.hiringEventTimeslotInvalid="HIRING_EVENT_TIMESLOT_INVALID",e.cannotCreateExternalCustomerRecord="CANNOT_CREATE_EXTERNAL_CUSTOMER_RECORD",e.invalidHolidayDates="INVALID_HOLIDAY_DATES",e.invalidHolidayTitle="INVALID_HOLIDAY_TITLE",e.cannotEnrollIntoTheSameSurveyTwice="CANNOT_ENROLL_INTO_THE_SAME_SURVEY_TWICE",e.customCSSUploadError="CUSTOM_CSS_UPLOAD_ERROR",e.newsletterInvalidUpdate="NEWSLETTER_INVALID_UPDATE",e.cannotEnrollInNewsletterWithNoStages="CANNOT_ENROLL_IN_NEWSLETTER_WITH_NO_STAGES",e.cannotEnrollInNewsletterWithNoFromAddress="CANNOT_ENROLL_IN_NEWSLETTER_WITH_NO_FROM_ADDRESS",e.cannotEnrollCandidateInNewsletter="CANNOT_ENROLL_CANDIDATE_IN_NEWSLETTER",e.noTelephonyAccountLinkedToOrganization="NO_TELEPHONY_ACCOUNT_LINKED_TO_ORGANIZATION",e.telephonyAccountProviderMismatch="TELEPHONY_ACCOUNT_PROVIDER_MISMATCH",e.twilioAccountIsMissingCredentials="TWILIO_ACCOUNT_IS_MISSING_CREDENTIALS",e.noAvailablePhoneNumbers="NO_AVAILABLE_PHONE_NUMBERS",e.noDefaultSenderPhoneNumber="NO_DEFAULT_SENDER_PHONE_NUMBER",e.noSenderPhoneNumberForUser="NO_SENDER_PHONE_NUMBER_FOR_USER",e.missingNotificationEmailAddress="MISSING_NOTIFICATION_EMAIL_ADDRESS",e.missingPrivacyPolicyUrl="MISSING_PRIVACY_POLICY_URL",e.doesNoteHavePermissionToResolveTextingTask="DOES_NOT_HAVE_PERMISSION_TO_RESOLVE_TEXTING_TASK",e.userMissingPermissionToUseCandidateTexting="USER_MISSING_PERMISSION_TO_USE_CANDIDATE_TEXTING",e.candidateHasNoValidPhoneNumber="CANDIDATE_HAS_NO_VALID_PHONE_NUMBER",e.cannotCreateInternalRequestWithoutPriority="CANNOT_CREATE_INTERNAL_REQUEST_WITHOUT_PRIORITY",e.sourcingFormInvalidUpdate="SOURCING_FORM_INVALID_UPDATE",e.sourcingFormInvalidAutomationRule="SOURCING_FORM_INVALID_AUTOMATION_RULE",e.invalidOrganizationEmailIdentityUpdate="INVALID_ORGANIZATION_EMAIL_IDENTITY_UPDATE",e.operationNotAvailableForSuccessUser="OPERATION_NOT_AVAILABLE_FOR_SUCCESS_USER",e.cannotSyncCandidateEmailsWithoutPrimaryEmail="CANNOT_SYNC_CANDIDATE_EMAILS_WITHOUT_PRIMARY_EMAIL",e.aiJobCriteriaEvaluationNotEnabled="AI_JOB_CRITERIA_EVALUATION_NOT_ENABLED",e.rateLimitOptOutRequstsExceeded="RATE_LIMIT_OPT_OUT_REQUESTS_EXCEEDED",e.onlyOneAutomatedProcessingLegalRuleAllowed="ONLY_ONE_AUTOMATED_PROCESSING_LEGAL_RULE_ALLOWED",e.noLegalNoticeRuleFound="NO_LEGAL_NOTICE_RULE_FOUND",e.candidateReviewDoesNotHavePermissionToViewRequest="CANDIDATE_REVIEW_NO_VIEW_PERMISSION",e.candidateReviewDoesNotHavePermissionToAddCandidateToRequest="CANDIDATE_REVIEW_NO_ADD_CANDIDATE_PERMISSION",e.candidateReviewDoesNotHavePermissionToArchiveRequest="DOES_NOT_HAVE_PERMISSION_TO_ARCHIVE_CANDIDATE_REVIEW",e.candidateReviewDoesNotHavePermissionToUnarchiveRequest="DOES_NOT_HAVE_PERMISSION_TO_UNARCHIVE_CANDIDATE_REVIEW",e.candidateReviewDoesNotHavePermissionToSubmitReviewFeedback="DOES_NOT_HAVE_PERMISSION_TO_SUBMIT_CANDIDATE_REVIEW_FEEDBACK",e.candidateReviewExceededFetchLimit="CANDIDATE_REVIEW_EXCEEDED_FETCH_OBJECT_LIMIT",e.candidateReviewInvalidCandidateScoreValue="CANDIDATE_REVIEW_INVALID_SCORE_VALUE"})(KG||(KG={}));class en extends Error{constructor(t,n,r){const i=d0e(n==null?void 0:n.type);super(`Cannot convert object of type "${i}" to ${t.name}: ${r}`)}}class j2 extends Error{constructor(t,n,r){const i=r!==void 0?`with value "${d0e(r)}" `:"";super(`Cannot convert object property of name "${t}" ${i}to ${n}`)}}class VM extends Error{constructor(t,n){super(n??`Unreachable case: ${JSON.stringify(t)}`)}}var mu;(function(e){e.user="user",e.organization="organization"})(mu||(mu={}));function Tv(e,t){const n=e[t];if(typeof n=="object"&&(n==null?void 0:n.constructor)===Date)return Fn.fromISO(n.toISOString());if(typeof n=="object"&&n instanceof Fn)return n;if(typeof n!="string")throw new j2(t,"DateOnly",n);if(VUe(Ue.fromISO(n).toJSDate()))throw new j2(t,"DateOnly",n);return Fn.fromISO(n)}function KT(e,t){const n=e[t];if(typeof n!="string")throw new j2(t,"TimeInterval",n);if(!pBe(n))throw new j2(t,"TimeInterval",n);return n}function QG(e,t){const n=e[t];if(typeof n!="number")throw new j2(t,"number",n);return n}var Po=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fo=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},zM,qM,WM,jM,GM,JM,YM,KM,ni;(function(e){e.Since="Since",e.Before="Before",e.Between="Between",e.This="This",e.Last="Last",e.On="On",e.RollingWindow="RollingWindow",e.RollingWindowFuture="RollingWindowFuture"})(ni||(ni={}));let Mk=zM=class{constructor(t){this.type=ni.On,this.date=t}isValid(){return!0}copy(){return new zM(this.date)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);const r=this.date.toDateTime({timezone:t}).startOf("day"),i=r.endOf("day");return{timeframeStart:r.toJSDate(),timeframeEnd:i.toJSDate()}}};Po([Aa(jn.DateOnlyTypeMarker),Fo("design:type",Fn)],Mk.prototype,"date",void 0);Mk=zM=Po([ne("DateRangeOn"),Fo("design:paramtypes",[Fn])],Mk);let Rk=qM=class{constructor(t){this.type=ni.Before,this.date=t}isValid(){return!0}copy(){return new qM(this.date)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);return{timeframeEnd:this.date.toDateTime({timezone:t}).minus({days:1}).endOf("day").toJSDate()}}};Po([Aa(jn.DateOnlyTypeMarker),Fo("design:type",Fn)],Rk.prototype,"date",void 0);Rk=qM=Po([ne("DateRangeBefore"),Fo("design:paramtypes",[Fn])],Rk);let Pk=WM=class{constructor(t){this.type=ni.Since,this.date=t}isValid(){return!0}copy(){return new WM(this.date)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);return{timeframeStart:this.date.toDateTime({timezone:t}).startOf("day").toJSDate(),timeframeEnd:n.setZone(t).endOf("day").toJSDate()}}};Po([Aa(jn.DateOnlyTypeMarker),Fo("design:type",Fn)],Pk.prototype,"date",void 0);Pk=WM=Po([ne("DateRangeSince"),Fo("design:paramtypes",[Fn])],Pk);let Tg=jM=class{constructor(t,n){this.type=ni.Between,this.start=t,this.end=n}isValid(){return this.start<=this.end}copy(){return new jM(this.start,this.end)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);return{timeframeStart:this.start.toDateTime({timezone:t}).startOf("day").toJSDate(),timeframeEnd:this.end.toDateTime({timezone:t}).endOf("day").toJSDate()}}};Po([Aa(jn.DateOnlyTypeMarker),Fo("design:type",Fn)],Tg.prototype,"start",void 0);Po([Aa(jn.DateOnlyTypeMarker),Fo("design:type",Fn)],Tg.prototype,"end",void 0);Tg=jM=Po([ne("DateRangeBetween"),Fo("design:paramtypes",[Fn,Fn])],Tg);let QM=GM=class{constructor(t){this.type=ni.Last,this.unit=t}isValid(){return!0}copy(){return new GM(this.unit)}convertToTimeFrame({timezone:t,fiscalYearSpec:n,now:r=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);const i=Tb(this.unit),a={};a[i]=1;const o=r.setZone(t).minus(a),s=Ufe(o,this.unit,n),l=Hfe(o,this.unit,n);return{timeframeStart:s.toJSDate(),timeframeEnd:l.toJSDate()}}};QM=GM=Po([ne("DateRangeLast"),Fo("design:paramtypes",[String])],QM);let ZM=JM=class{constructor(t){this.type=ni.This,this.unit=t}isValid(){return!0}copy(){return new JM(this.unit)}convertToTimeFrame({timezone:t,fiscalYearSpec:n,now:r=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);const i=r.setZone(t),a=Ufe(i,this.unit,n),o=Hfe(i,this.unit,n);return{timeframeStart:a.toJSDate(),timeframeEnd:o.toJSDate()}}};ZM=JM=Po([ne("DateRangeThis"),Fo("design:paramtypes",[String])],ZM);let XM=YM=class{constructor(t,n){this.type=ni.RollingWindow,this.unit=t,this.length=n}isValid(){return this.length>0}copy(){return new YM(this.unit,this.length)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);const r=Tb(this.unit),i={};i[r]=this.length;const a=n.setZone(t).endOf("day");return{timeframeStart:a.minus(i).plus({days:1}).startOf("day").toJSDate(),timeframeEnd:a.toJSDate()}}};XM=YM=Po([ne("DateRangeRollingWindow"),Fo("design:paramtypes",[String,Number])],XM);let eR=KM=class{constructor(t,n){this.type=ni.RollingWindowFuture,this.unit=t,this.length=n}isValid(){return this.length>0}copy(){return new KM(this.unit,this.length)}convertToTimeFrame({timezone:t,now:n=Ue.local()}){if(!xr.isValidZone(t))throw new Error(`Not a valid timezone: ${t}`);const r=Tb(this.unit),i={};i[r]=this.length;const a=n.setZone(t).endOf("day"),o=a.plus(i).minus({days:1}).startOf("day");return{timeframeStart:a.toJSDate(),timeframeEnd:o.toJSDate()}}};eR=KM=Po([ne("DateRangeRollingWindowFuture"),Fo("design:paramtypes",[String,Number])],eR);class Z4{static fromObject(t){if(t===void 0)throw new en({name:"DateRange"},t);const n=t;switch(n.type){case ni.Since:return new Pk(Tv(n,"date"));case ni.Before:return new Rk(Tv(n,"date"));case ni.Between:return new Tg(Tv(n,"start"),Tv(n,"end"));case ni.This:return new ZM(KT(n,"unit"));case ni.Last:return new QM(KT(n,"unit"));case ni.On:return new Mk(Tv(n,"date"));case ni.RollingWindow:return new XM(KT(n,"unit"),QG(n,"length"));case ni.RollingWindowFuture:return new eR(KT(n,"unit"),QG(n,"length"));default:throw new en({name:"DateRange"},t)}}}const f0e={USD:{code:"USD",name:"US Dollar",symbol:"$",countries:["AMERICAN SAMOA","BONAIRE, SINT EUSTATIUS AND SABA","BRITISH INDIAN OCEAN TERRITORY (THE)","ECUADOR","EL SALVADOR","GUAM","HAITI","MARSHALL ISLANDS (THE)","MICRONESIA (FEDERATED STATES OF)","NORTHERN MARIANA ISLANDS (THE)","PALAU","PANAMA","PUERTO RICO","TIMOR-LESTE","TURKS AND CAICOS ISLANDS (THE)","UNITED STATES MINOR OUTLYING ISLANDS (THE)","UNITED STATES OF AMERICA (THE)","VIRGIN ISLANDS (BRITISH)","VIRGIN ISLANDS (U.S.)"]},EUR:{code:"EUR",name:"Euro",symbol:"€",countries:["ÅLAND ISLANDS","ANDORRA","AUSTRIA","BELGIUM","CROATIA","CYPRUS","ESTONIA","EUROPEAN UNION","FINLAND","FRANCE","FRENCH GUIANA","FRENCH SOUTHERN TERRITORIES (THE)","GERMANY","GREECE","GUADELOUPE","HOLY SEE (THE)","IRELAND","ITALY","LATVIA","LITHUANIA","LUXEMBOURG","MALTA","MARTINIQUE","MAYOTTE","MONACO","MONTENEGRO","NETHERLANDS (THE)","PORTUGAL","RÉUNION","SAINT BARTHÉLEMY","SAINT MARTIN (FRENCH PART)","SAINT PIERRE AND MIQUELON","SAN MARINO","SLOVAKIA","SLOVENIA","SPAIN"]},GBP:{code:"GBP",name:"Pound Sterling",symbol:"£",countries:["GUERNSEY","ISLE OF MAN","JERSEY","UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND (THE)"]},AFN:{code:"AFN",name:"Afghani",symbol:"؋",countries:["AFGHANISTAN"]},DZD:{code:"DZD",name:"Algerian Dinar",symbol:"دج",countries:["ALGERIA"]},ARS:{code:"ARS",name:"Argentine Peso",symbol:"$",countries:["ARGENTINA"]},AMD:{code:"AMD",name:"Armenian Dram",symbol:"֏",countries:["ARMENIA"]},AWG:{code:"AWG",name:"Aruban Florin",symbol:"ƒ",countries:["ARUBA"]},AUD:{code:"AUD",name:"Australian Dollar",symbol:"$",countries:["AUSTRALIA","CHRISTMAS ISLAND","COCOS (KEELING) ISLANDS (THE)","HEARD ISLAND AND McDONALD ISLANDS","KIRIBATI","NAURU","NORFOLK ISLAND","TUVALU"]},AZN:{code:"AZN",name:"Azerbaijan Manat",symbol:"₼",countries:["AZERBAIJAN"]},BSD:{code:"BSD",name:"Bahamian Dollar",symbol:"$",countries:["BAHAMAS (THE)"]},BHD:{code:"BHD",name:"Bahraini Dinar",symbol:".د.ب",countries:["BAHRAIN"]},THB:{code:"THB",name:"Baht",symbol:"฿",countries:["THAILAND"]},PAB:{code:"PAB",name:"Balboa",symbol:"B/.",countries:["PANAMA"]},BBD:{code:"BBD",name:"Barbados Dollar",symbol:"$",countries:["BARBADOS"]},BYN:{code:"BYN",name:"Belarusian Ruble",symbol:"Br",countries:["BELARUS"]},BZD:{code:"BZD",name:"Belize Dollar",symbol:"BZ$",countries:["BELIZE"]},BMD:{code:"BMD",name:"Bermudian Dollar",symbol:"$",countries:["BERMUDA"]},BTC:{code:"BTC",name:"Bitcoin",symbol:"₿",countries:[]},BOB:{code:"BOB",name:"Boliviano",symbol:"$b",countries:["BOLIVIA (PLURINATIONAL STATE OF)"]},VES:{code:"VES",name:"Bolívar Soberano",symbol:"Bs.S",countries:["VENEZUELA (BOLIVARIAN REPUBLIC OF)"]},VED:{code:"VED",name:"Bolívar Soberano",symbol:"Bs.F",countries:["VENEZUELA (BOLIVARIAN REPUBLIC OF)"]},BRL:{code:"BRL",name:"Brazilian Real",symbol:"R$",countries:["BRAZIL"]},BND:{code:"BND",name:"Brunei Dollar",symbol:"$",countries:["BRUNEI DARUSSALAM"]},BGN:{code:"BGN",name:"Bulgarian Lev",symbol:"лв",countries:["BULGARIA"]},BIF:{code:"BIF",name:"Burundi Franc",symbol:"FBu",countries:["BURUNDI"]},CVE:{code:"CVE",name:"Cabo Verde Escudo",symbol:"$",countries:["CABO VERDE"]},CAD:{code:"CAD",name:"Canadian Dollar",symbol:"$",countries:["CANADA"]},KYD:{code:"KYD",name:"Cayman Islands Dollar",symbol:"$",countries:["CAYMAN ISLANDS (THE)"]},CLP:{code:"CLP",name:"Chilean Peso",symbol:"$",countries:["CHILE"]},COP:{code:"COP",name:"Colombian Peso",symbol:"$",countries:["COLOMBIA"]},KMF:{code:"KMF",name:"Comorian Franc ",symbol:"CF",countries:["COMOROS (THE)"]},CDF:{code:"CDF",name:"Congolese Franc",symbol:"FC",countries:["CONGO (THE DEMOCRATIC REPUBLIC OF THE)"]},BAM:{code:"BAM",name:"Convertible Mark",symbol:"KM",countries:["BOSNIA AND HERZEGOVINA"]},NIO:{code:"NIO",name:"Cordoba Oro",symbol:"C$",countries:["NICARAGUA"]},CRC:{code:"CRC",name:"Costa Rican Colon",symbol:"₡",countries:["COSTA RICA"]},HRK:{code:"HRK",name:"Croatian kuna",symbol:"kn",countries:["Croatia"]},CUP:{code:"CUP",name:"Cuban Peso",symbol:"₱",countries:["CUBA"]},CZK:{code:"CZK",name:"Czech Koruna",symbol:"Kč",countries:["CZECHIA"]},GMD:{code:"GMD",name:"Dalasi",symbol:"D",countries:["GAMBIA (THE)"]},DKK:{code:"DKK",name:"Danish Krone",symbol:"kr",countries:["DENMARK","FAROE ISLANDS (THE)","GREENLAND"]},MKD:{code:"MKD",name:"Denar",symbol:"ден",countries:["NORTH MACEDONIA"]},DJF:{code:"DJF",name:"Djibouti Franc",symbol:"Fdj",countries:["DJIBOUTI"]},STN:{code:"STN",name:"Dobra",symbol:"Db",countries:["SAO TOME AND PRINCIPE"]},DOP:{code:"DOP",name:"Dominican Peso",symbol:"RD$",countries:["DOMINICAN REPUBLIC (THE)"]},VND:{code:"VND",name:"Dong",symbol:"₫",countries:["VIET NAM"]},EGP:{code:"EGP",name:"Egyptian Pound",symbol:"£",countries:["EGYPT"]},SVC:{code:"SVC",name:"El Salvador Colon",symbol:"$",countries:["EL SALVADOR"]},ETH:{code:"ETH",name:"Ethereum",symbol:"Ξ",countries:[]},ETB:{code:"ETB",name:"Ethiopian Birr",symbol:"Br",countries:["ETHIOPIA"]},FKP:{code:"FKP",name:"Falkland Islands Pound",symbol:"£",countries:["FALKLAND ISLANDS (THE) [MALVINAS]"]},FJD:{code:"FJD",name:"Fiji Dollar",symbol:"$",countries:["FIJI"]},HUF:{code:"HUF",name:"Forint",symbol:"Ft",countries:["HUNGARY"]},GHS:{code:"GHS",name:"Ghana Cedi",symbol:"GH₵",countries:["GHANA"]},GIP:{code:"GIP",name:"Gibraltar Pound",symbol:"£",countries:["GIBRALTAR"]},HTG:{code:"HTG",name:"Gourde",symbol:"G",countries:["HAITI"]},PYG:{code:"PYG",name:"Guarani",symbol:"Gs",countries:["PARAGUAY"]},GNF:{code:"GNF",name:"Guinean Franc",symbol:"FG",countries:["GUINEA"]},GYD:{code:"GYD",name:"Guyana Dollar",symbol:"$",countries:["GUYANA"]},HKD:{code:"HKD",name:"Hong Kong Dollar",symbol:"$",countries:["HONG KONG"]},UAH:{code:"UAH",name:"Hryvnia",symbol:"₴",countries:["UKRAINE"]},ISK:{code:"ISK",name:"Iceland Krona",symbol:"kr",countries:["ICELAND"]},INR:{code:"INR",name:"Indian Rupee",symbol:"₹",countries:["BHUTAN","INDIA"]},IRR:{code:"IRR",name:"Iranian Rial",symbol:"﷼",countries:["IRAN (ISLAMIC REPUBLIC OF)"]},IQD:{code:"IQD",name:"Iraqi Dinar",symbol:"ع.د",countries:["IRAQ"]},JMD:{code:"JMD",name:"Jamaican Dollar",symbol:"J$",countries:["JAMAICA"]},JOD:{code:"JOD",name:"Jordanian Dinar",symbol:"JD",countries:["JORDAN"]},KES:{code:"KES",name:"Kenyan Shilling",symbol:"KSh",countries:["KENYA"]},PGK:{code:"PGK",name:"Kina",symbol:"K",countries:["PAPUA NEW GUINEA"]},KWD:{code:"KWD",name:"Kuwaiti Dinar",symbol:"KD",countries:["KUWAIT"]},AOA:{code:"AOA",name:"Kwanza",symbol:"Kz",countries:["ANGOLA"]},MMK:{code:"MMK",name:"Kyat",symbol:"K",countries:["MYANMAR"]},LAK:{code:"LAK",name:"Lao Kip",symbol:"₭",countries:["LAO PEOPLE’S DEMOCRATIC REPUBLIC (THE)"]},GEL:{code:"GEL",name:"Lari",symbol:"₾",countries:["GEORGIA"]},LBP:{code:"LBP",name:"Lebanese Pound",symbol:"£",countries:["LEBANON"]},ALL:{code:"ALL",name:"Lek",symbol:"L",countries:["ALBANIA"]},HNL:{code:"HNL",name:"Lempira",symbol:"L",countries:["HONDURAS"]},SLL:{code:"SLL",name:"Leone",symbol:"Le",countries:["SIERRA LEONE"]},SLE:{code:"SLE",name:"Leone",symbol:"Le",countries:["SIERRA LEONE"]},LRD:{code:"LRD",name:"Liberian Dollar",symbol:"$",countries:["LIBERIA"]},LYD:{code:"LYD",name:"Libyan Dinar",symbol:"LD",countries:["LIBYA"]},SZL:{code:"SZL",name:"Lilangeni",symbol:"E",countries:["ESWATINI"]},LSL:{code:"LSL",name:"Loti",symbol:"M",countries:["LESOTHO"]},MGA:{code:"MGA",name:"Malagasy Ariary",symbol:"Ar",countries:["MADAGASCAR"]},MWK:{code:"MWK",name:"Malawi Kwacha",symbol:"MK",countries:["MALAWI"]},MYR:{code:"MYR",name:"Malaysian Ringgit",symbol:"RM",countries:["MALAYSIA"]},MUR:{code:"MUR",name:"Mauritius Rupee",symbol:"₨",countries:["MAURITIUS"]},MXN:{code:"MXN",name:"Mexican Peso",symbol:"$",countries:["MEXICO"]},MXV:{code:"MXV",name:"Mexican Unidad de Inversion (UDI)",symbol:"MXV",countries:["MEXICO"]},MDL:{code:"MDL",name:"Moldovan Leu",symbol:"lei",countries:["MOLDOVA (THE REPUBLIC OF)"]},MAD:{code:"MAD",name:"Moroccan Dirham",symbol:"MAD",countries:["MOROCCO","WESTERN SAHARA"]},MZN:{code:"MZN",name:"Mozambique Metical",symbol:"MT",countries:["MOZAMBIQUE"]},BOV:{code:"BOV",name:"Mvdol",symbol:"BOV",countries:["BOLIVIA (PLURINATIONAL STATE OF)"]},NGN:{code:"NGN",name:"Naira",symbol:"₦",countries:["NIGERIA"]},ERN:{code:"ERN",name:"Nakfa",symbol:"Nfk",countries:["ERITREA"]},NAD:{code:"NAD",name:"Namibia Dollar",symbol:"$",countries:["NAMIBIA"]},NPR:{code:"NPR",name:"Nepalese Rupee",symbol:"₨",countries:["NEPAL"]},ANG:{code:"ANG",name:"Netherlands Antillean Guilder",symbol:"ƒ",countries:["CURAÇAO","SINT MAARTEN (DUTCH PART)"]},ILS:{code:"ILS",name:"New Israeli Sheqel",symbol:"₪",countries:["ISRAEL"]},TWD:{code:"TWD",name:"New Taiwan Dollar",symbol:"NT$",countries:["TAIWAN (PROVINCE OF CHINA)"]},NZD:{code:"NZD",name:"New Zealand Dollar",symbol:"$",countries:["COOK ISLANDS (THE)","NEW ZEALAND","NIUE","PITCAIRN","TOKELAU"]},BTN:{code:"BTN",name:"Ngultrum",symbol:"Nu.",countries:["BHUTAN"]},KPW:{code:"KPW",name:"North Korean Won",symbol:"₩",countries:["KOREA (THE DEMOCRATIC PEOPLE’S REPUBLIC OF)"]},NOK:{code:"NOK",name:"Norwegian Krone",symbol:"kr",countries:["BOUVET ISLAND","NORWAY","SVALBARD AND JAN MAYEN"]},MRU:{code:"MRU",name:"Ouguiya",symbol:"UM",countries:["MAURITANIA"]},PKR:{code:"PKR",name:"Pakistan Rupee",symbol:"₨",countries:["PAKISTAN"]},MOP:{code:"MOP",name:"Pataca",symbol:"MOP$",countries:["MACAO"]},TOP:{code:"TOP",name:"Pa’anga",symbol:"T$",countries:["TONGA"]},CUC:{code:"CUC",name:"Peso Convertible",symbol:"$",countries:["CUBA"]},UYU:{code:"UYU",name:"Peso Uruguayo",symbol:"$U",countries:["URUGUAY"]},PHP:{code:"PHP",name:"Philippine Peso",symbol:"₱",countries:["PHILIPPINES (THE)"]},BWP:{code:"BWP",name:"Pula",symbol:"P",countries:["BOTSWANA"]},QAR:{code:"QAR",name:"Qatari Rial",symbol:"﷼",countries:["QATAR"]},GTQ:{code:"GTQ",name:"Quetzal",symbol:"Q",countries:["GUATEMALA"]},ZAR:{code:"ZAR",name:"Rand",symbol:"R",countries:["LESOTHO","NAMIBIA","SOUTH AFRICA"]},OMR:{code:"OMR",name:"Rial Omani",symbol:"﷼",countries:["OMAN"]},KHR:{code:"KHR",name:"Riel",symbol:"៛",countries:["CAMBODIA"]},RON:{code:"RON",name:"Romanian Leu",symbol:"lei",countries:["ROMANIA"]},MVR:{code:"MVR",name:"Rufiyaa",symbol:"Rf",countries:["MALDIVES"]},IDR:{code:"IDR",name:"Rupiah",symbol:"Rp",countries:["INDONESIA"]},RUB:{code:"RUB",name:"Russian Ruble",symbol:"₽",countries:["RUSSIAN FEDERATION (THE)"]},RWF:{code:"RWF",name:"Rwanda Franc",symbol:"R₣",countries:["RWANDA"]},SHP:{code:"SHP",name:"Saint Helena Pound",symbol:"£",countries:["SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA"]},SAR:{code:"SAR",name:"Saudi Riyal",symbol:"﷼",countries:["SAUDI ARABIA"]},RSD:{code:"RSD",name:"Serbian Dinar",symbol:"Дин.",countries:["SERBIA"]},SCR:{code:"SCR",name:"Seychelles Rupee",symbol:"₨",countries:["SEYCHELLES"]},SGD:{code:"SGD",name:"Singapore Dollar",symbol:"S$",countries:["SINGAPORE"]},PEN:{code:"PEN",name:"Sol",symbol:"S/.",countries:["PERU"]},SBD:{code:"SBD",name:"Solomon Islands Dollar",symbol:"$",countries:["SOLOMON ISLANDS"]},KGS:{code:"KGS",name:"Som",symbol:"лв",countries:["KYRGYZSTAN"]},SOS:{code:"SOS",name:"Somali Shilling",symbol:"S",countries:["SOMALIA"]},TJS:{code:"TJS",name:"Somoni",symbol:"SM",countries:["TAJIKISTAN"]},SSP:{code:"SSP",name:"South Sudanese Pound",symbol:"£",countries:["SOUTH SUDAN"]},LKR:{code:"LKR",name:"Sri Lanka Rupee",symbol:"₨",countries:["SRI LANKA"]},SDG:{code:"SDG",name:"Sudanese Pound",symbol:"ج.س.",countries:["SUDAN (THE)"]},SRD:{code:"SRD",name:"Surinam Dollar",symbol:"$",countries:["SURINAME"]},SEK:{code:"SEK",name:"Swedish Krona",symbol:"kr",countries:["SWEDEN"]},CHF:{code:"CHF",name:"Swiss Franc",symbol:"CHF",countries:["LIECHTENSTEIN","SWITZERLAND"]},SYP:{code:"SYP",name:"Syrian Pound",symbol:"£",countries:["SYRIAN ARAB REPUBLIC"]},BDT:{code:"BDT",name:"Taka",symbol:"৳",countries:["BANGLADESH"]},WST:{code:"WST",name:"Tala",symbol:"WS$",countries:["SAMOA"]},TZS:{code:"TZS",name:"Tanzanian Shilling",symbol:"TSh",countries:["TANZANIA, UNITED REPUBLIC OF"]},KZT:{code:"KZT",name:"Tenge",symbol:"₸",countries:["KAZAKHSTAN"]},TTD:{code:"TTD",name:"Trinidad and Tobago Dollar",symbol:"TT$",countries:["TRINIDAD AND TOBAGO"]},MNT:{code:"MNT",name:"Tugrik",symbol:"₮",countries:["MONGOLIA"]},TND:{code:"TND",name:"Tunisian Dinar",symbol:"د.ت",countries:["TUNISIA"]},TRY:{code:"TRY",name:"Turkish Lira",symbol:"₺",countries:["TÜRKİYE"]},TMT:{code:"TMT",name:"Turkmenistan New Manat",symbol:"T",countries:["TURKMENISTAN"]},AED:{code:"AED",name:"UAE Dirham",symbol:"د.إ",countries:["UNITED ARAB EMIRATES (THE)"]},USN:{code:"USN",name:"US Dollar (Next day)",symbol:"$",countries:["UNITED STATES OF AMERICA (THE)"]},UGX:{code:"UGX",name:"Uganda Shilling",symbol:"USh",countries:["UGANDA"]},UYW:{code:"UYW",name:"Unidad Previsional",symbol:"UYW",countries:["URUGUAY"]},CLF:{code:"CLF",name:"Unidad de Fomento",symbol:"CLF",countries:["CHILE"]},COU:{code:"COU",name:"Unidad de Valor Real",symbol:"COU",countries:["COLOMBIA"]},UYI:{code:"UYI",name:"Uruguay Peso en Unidades Indexadas (UI)",symbol:"UYI",countries:["URUGUAY"]},UZS:{code:"UZS",name:"Uzbekistan Sum",symbol:"лв",countries:["UZBEKISTAN"]},VUV:{code:"VUV",name:"Vatu",symbol:"VT",countries:["VANUATU"]},CHE:{code:"CHE",name:"WIR Euro",symbol:"CHE",countries:["SWITZERLAND"]},CHW:{code:"CHW",name:"WIR Franc",symbol:"CHW",countries:["SWITZERLAND"]},KRW:{code:"KRW",name:"Won",symbol:"₩",countries:["KOREA (THE REPUBLIC OF)"]},YER:{code:"YER",name:"Yemeni Rial",symbol:"﷼",countries:["YEMEN"]},JPY:{code:"JPY",name:"Yen",symbol:"¥",countries:["JAPAN"]},CNY:{code:"CNY",name:"Yuan Renminbi",symbol:"¥",countries:["CHINA"]},ZMW:{code:"ZMW",name:"Zambian Kwacha",symbol:"ZK",countries:["ZAMBIA"]},ZWL:{code:"ZWL",name:"Zimbabwe Dollar",symbol:"$",countries:["ZIMBABWE"]},PLN:{code:"PLN",name:"Zloty",symbol:"zł",countries:["POLAND"]},XUA:{code:"XUA",name:"ADB Unit of Account",symbol:"XUA",countries:["MEMBER COUNTRIES OF THE AFRICAN DEVELOPMENT BANK GROUP"]},XBA:{code:"XBA",name:"Bond Markets Unit European Composite Unit (EURCO)",symbol:"¤",countries:["ZZ01_Bond Markets Unit European_EURCO"]},XBB:{code:"XBB",name:"Bond Markets Unit European Monetary Unit (E.M.U.-6)",symbol:"¤",countries:["ZZ02_Bond Markets Unit European_EMU-6"]},XBD:{code:"XBD",name:"Bond Markets Unit European Unit of Account 17 (E.U.A.-17)",symbol:"¤",countries:["ZZ04_Bond Markets Unit European_EUA-17"]},XBC:{code:"XBC",name:"Bond Markets Unit European Unit of Account 9 (E.U.A.-9)",symbol:"¤",countries:["ZZ03_Bond Markets Unit European_EUA-9"]},XOF:{code:"XOF",name:"CFA Franc BCEAO",symbol:"CFA",countries:["BENIN","BURKINA FASO","CÔTE D'IVOIRE","GUINEA-BISSAU","MALI","NIGER (THE)","SENEGAL","TOGO"]},XAF:{code:"XAF",name:"CFA Franc BEAC",symbol:"FCFA",countries:["CAMEROON","CENTRAL AFRICAN REPUBLIC (THE)","CHAD","CONGO (THE)","EQUATORIAL GUINEA","GABON"]},XPF:{code:"XPF",name:"CFP Franc",symbol:"₣",countries:["FRENCH POLYNESIA","NEW CALEDONIA","WALLIS AND FUTUNA"]},XTS:{code:"XTS",name:"Codes specifically reserved for testing purposes",symbol:"¤",countries:["ZZ06_Testing_Code"]},XCD:{code:"XCD",name:"East Caribbean Dollar",symbol:"$",countries:["ANGUILLA","ANTIGUA AND BARBUDA","DOMINICA","GRENADA","MONTSERRAT","SAINT KITTS AND NEVIS","SAINT LUCIA","SAINT VINCENT AND THE GRENADINES"]},XAU:{code:"XAU",name:"Gold",symbol:"¤",countries:["ZZ08_Gold"]},XPD:{code:"XPD",name:"Palladium",symbol:"¤",countries:["ZZ09_Palladium"]},XPT:{code:"XPT",name:"Platinum",symbol:"¤",countries:["ZZ10_Platinum"]},XDR:{code:"XDR",name:"SDR (Special Drawing Right)",symbol:"¤",countries:["INTERNATIONAL MONETARY FUND (IMF) "]},XAG:{code:"XAG",name:"Silver",symbol:"¤",countries:["ZZ11_Silver"]},XSU:{code:"XSU",name:"Sucre",symbol:"Sucre",countries:['SISTEMA UNITARIO DE COMPENSACION REGIONAL DE PAGOS "SUCRE"']},XXX:{code:"XXX",name:"The codes assigned for transactions where no currency is involved",symbol:"¤",countries:["ZZ07_No_Currency"]}},zUe=Object.values(f0e);zUe.map(e=>({label:`${e.code} - ${e.name}`,value:e.code}));const p0e=e=>typeof e=="string"&&f0e.hasOwnProperty(e);var Wr=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jr=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ty,ny,dE,fE,pE,mE,hE,gE,vE,yE,SE,ry,tR,nR,iy,ay,bE,TE,_E,me;(function(e){e.And="QueryAnd",e.Or="QueryOr",e.Not="QueryNot",e.IdEquals="QueryIdEquals",e.Equals="QueryEquals",e.MatchSubstring="QueryMatchSubstring",e.MatchBooleanExpression="MatchBooleanExpression",e.SimilarTo="QuerySimilarTo",e.WordSimilarTo="QueryWordSimilarTo",e.StartsWith="QueryStartsWith",e.EndsWith="QueryEndsWith",e.Between="QueryBetween",e.IntersectsCompensationRange="QueryIntersectsCompensationRange",e.IntersectsNumberRange="QueryIntersectsNumberRange",e.GreaterThan="QueryGreaterThan",e.LessThan="QueryLessThan",e.Null="QueryNull",e.NotNull="QueryNotNull",e.DateRange="QueryDateRange"})(me||(me={}));let G2=ty=class extends YC{static fromJSON(t){if(t.type!==me.And||!Array.isArray(t.value))throw new en(ty,t);const n=new Array;for(const r of t.value){const i=Of.fromJSON(r);if(i===void 0)throw new en(ty,t);n.push(i)}return new ty(n)}constructor(t){super(me.And,t||[])}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.value.map(i=>i.copy(n)):[...this.value]);return this.copyBasePropertiesTo(r),r}};G2=ty=Wr([ne("QueryAnd"),jr("design:paramtypes",[Array])],G2);let J2=ny=class extends YC{static fromJSON(t){if(t.type!==me.Or||!Array.isArray(t.value))throw new en(ny,t);const n=new Array;for(const r of t.value){const i=Of.fromJSON(r);if(i===void 0)throw new en(ny,t);n.push(i)}return new ny(n)}constructor(t){super(me.Or,t||[])}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.value.map(i=>i.copy(n)):[...this.value]);return this.copyBasePropertiesTo(r),r}};J2=ny=Wr([ne("QueryOr"),jr("design:paramtypes",[Array])],J2);let Y2=dE=class extends Jde{static fromJSON(t){if(t.type!==me.Not)throw new en(dE,t);return new dE(Of.fromJSON(t.value))}constructor(t){super(me.Not,t==null||c0e(t)?void 0:t)}copy({shallow:t,...n}={}){const r=new this.constructor(this.value&&t!==!0?this.value.copy(n):this.value);return this.copyBasePropertiesTo(r),r}};Y2=dE=Wr([ne("QueryNot"),jr("design:paramtypes",[Object])],Y2);let Fk=fE=class extends qr{static fromJSON(t){if(t.type!==me.IdEquals||typeof t.value!="string"||typeof t.title!="string")throw new en(fE,t);return new fE(t.value,t.title)}constructor(t,n){super(me.IdEquals),this.value=t||"",this.title=n||""}copy(){const t=new this.constructor(this.value,this.title);return this.copyBasePropertiesTo(t),t}isValid(){return this.value===""?!1:Tp.isUUID(this.value,4)||Tp.isUUID(this.value,5)}};Fk=fE=Wr([ne("QueryIdEquals"),jr("design:paramtypes",[String,String])],Fk);let Lk=pE=class extends qr{static fromJSON(t){if(t.type!==me.Equals||t.value===void 0)throw new en(pE,t);return new pE(t.value,t.title)}constructor(t,n){super(me.Equals),t===void 0?this.value="":this.value=t,this.title=n||""}copy(){const t=new this.constructor(this.value,this.title);return this.copyBasePropertiesTo(t),t}isValid(){return this.value!==""}};Lk=pE=Wr([ne("QueryEquals"),jr("design:paramtypes",[Object,String])],Lk);let rR=mE=class extends qr{static fromJSON(t){if(t.type!==me.MatchBooleanExpression||t.value===void 0)throw new en(mE,t);return new mE(t.value)}constructor(t){super(me.MatchBooleanExpression),t===void 0?this.value="":this.value=t}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return this.value!==""}};rR=mE=Wr([ne("QueryMatchBooleanExpression"),jr("design:paramtypes",[String])],rR);let Bk=hE=class extends qr{static fromJSON(t){if(t.type!==me.EndsWith||t.value===void 0)throw new en(hE,t);return new hE(t.value)}constructor(t){super(me.EndsWith),this.value=t||""}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return!0}};Bk=hE=Wr([ne("QueryEndsWith"),jr("design:paramtypes",[String])],Bk);let $k=gE=class extends qr{static fromJSON(t){if(t.type!==me.StartsWith||t.value===void 0)throw new en(gE,t);return new gE(t.value)}constructor(t){super(me.StartsWith),this.value=t||""}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return!0}};$k=gE=Wr([ne("QueryStartsWith"),jr("design:paramtypes",[String])],$k);let Uk=vE=class extends qr{static fromJSON(t){if(t.type!==me.SimilarTo||t.value===void 0)throw new en(vE,t);return new vE(t.value)}constructor(t){super(me.SimilarTo),this.value=t||""}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return!0}};Uk=vE=Wr([ne("QuerySimilarTo"),jr("design:paramtypes",[String])],Uk);let iR=yE=class extends qr{static fromJSON(t){if(t.type!==me.WordSimilarTo||t.value===void 0)throw new en(yE,t);return new yE(t.value)}constructor(t){super(me.WordSimilarTo),this.value=t||""}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return!0}};iR=yE=Wr([ne("QueryWordSimilarTo"),jr("design:paramtypes",[String])],iR);let Hk=SE=class extends qr{static fromJSON(t){if(t.type!==me.MatchSubstring||t.value===void 0)throw new en(SE,t);return new SE(t.value)}constructor(t){super(me.MatchSubstring),this.value=t||""}copy(){const t=new this.constructor(this.value);return this.copyBasePropertiesTo(t),t}isValid(){return!0}};Hk=SE=Wr([ne("QueryMatchSubstring"),jr("design:paramtypes",[String])],Hk);let aR=ry=class extends qr{static fromJSON(t){const n=typeof t.start,r=typeof t.end;if(t.type!==me.Between||n!=="number"&&n!=="string"&&n!=="object"&&n!=="undefined"||r!=="number"&&r!=="string"&&r!=="object"&&r!=="undefined"||r!=="undefined"&&n!=="undefined"&&r!==n||typeof t.includeEnd!="boolean"||typeof t.includeStart!="boolean")throw new en(ry,t);return n==="string"||r==="string"?new ry(t.start?Ue.fromISO(t.start).toJSDate():void 0,t.end?Ue.fromISO(t.end).toJSDate():void 0,t.includeStart,t.includeEnd):new ry(t.start,t.end,t.includeStart,t.includeEnd)}constructor(t,n,r,i){super(me.Between),this.start=t,this.end=n,this.includeStart=r===void 0?!0:r,this.includeEnd=i===void 0?!0:i}copy(){const t=new this.constructor(this.start,this.end,this.includeStart,this.includeEnd);return this.copyBasePropertiesTo(t),t}isValid(){return jk(this.start)||jk(this.end)?_g(this.start)&&_g(this.end)?this.start.value!=null&&this.start.currencyCode!=null&&this.end.value!=null&&this.end.value>this.start.value:!1:!(this.start===void 0||this.end===void 0||this.start>=this.end)}};aR=ry=Wr([ne("QueryBetween"),jr("design:paramtypes",[Object,Object,Boolean,Boolean])],aR);class Vk extends qr{constructor(t,{lowerBound:n,upperBound:r}={}){super(t),this.lowerBound=n,this.upperBound=r}static intersectsRangeValuesFromJSON(t){const n=typeof t.lowerBound,r=typeof t.upperBound;if(n!=="number"&&n!=="undefined"||r!=="number"&&r!=="undefined")throw new en(this,t);return{lowerBound:t.lowerBound,upperBound:t.upperBound}}isValid(){return this.lowerBound!=null&&this.upperBound!=null&&this.lowerBound<=this.upperBound}}let oR=tR=class extends Vk{constructor({lowerBound:t,upperBound:n,currencyCode:r,compensationInterval:i}={}){super(me.IntersectsCompensationRange,{lowerBound:t,upperBound:n}),this.currencyCode=r,this.compensationInterval=i}static fromJSON(t){if(t.type!==me.IntersectsCompensationRange)throw new en(tR,t);return new this({...Vk.intersectsRangeValuesFromJSON(t),currencyCode:t.currencyCode,compensationInterval:t.compensationInterval})}copy(){const t=new this.constructor({lowerBound:this.lowerBound,upperBound:this.upperBound,currencyCode:this.currencyCode,compensationInterval:this.compensationInterval});return this.copyBasePropertiesTo(t),t}};oR=tR=Wr([ne("QueryIntersectsCompensationRange"),jr("design:paramtypes",[Object])],oR);let sR=nR=class extends Vk{constructor({lowerBound:t,upperBound:n}={}){super(me.IntersectsNumberRange,{lowerBound:t,upperBound:n})}static fromJSON(t){if(t.type!==me.IntersectsNumberRange)throw new en(nR,t);return new this(Vk.intersectsRangeValuesFromJSON(t))}copy(){const t=new this.constructor({lowerBound:this.lowerBound,upperBound:this.upperBound});return this.copyBasePropertiesTo(t),t}};sR=nR=Wr([ne("QueryIntersectsNumberRange"),jr("design:paramtypes",[Object])],sR);let lR=iy=class extends qr{static fromJSON(t){const n=typeof t.value;if(t.type!==me.GreaterThan||n!=="number"&&n!=="string"&&n!=="object"&&n!=="undefined"||typeof t.includeValue!="boolean")throw new en(iy,t);return n==="number"||n==="undefined"||n==="object"?new iy(t.value,t.includeValue):new iy(Ue.fromISO(t.value).toJSDate(),t.includeValue)}constructor(t,n){super(me.GreaterThan),this.value=t,this.includeValue=n===void 0?!0:n}copy(){const t=new this.constructor(this.value,this.includeValue);return this.copyBasePropertiesTo(t),t}isValid(){return jk(this.value)?_g(this.value):this.value!==void 0}};lR=iy=Wr([ne("QueryGreaterThan"),jr("design:paramtypes",[Object,Boolean])],lR);let uR=ay=class extends qr{static fromJSON(t){const n=typeof t.value;if(t.type!==me.LessThan||n!=="number"&&n!=="string"&&n!=="object"&&n!=="undefined"||typeof t.includeValue!="boolean")throw new en(ay,t);return n==="number"||n==="undefined"||n==="object"?new ay(t.value,t.includeValue):new ay(Ue.fromISO(t.value).toJSDate(),t.includeValue)}constructor(t,n){super(me.LessThan),this.value=t,this.includeValue=n===void 0?!0:n}copy(){const t=new this.constructor(this.value,this.includeValue);return this.copyBasePropertiesTo(t),t}isValid(){return jk(this.value)?_g(this.value):this.value!==void 0}};uR=ay=Wr([ne("QueryLessThan"),jr("design:paramtypes",[Object,Boolean])],uR);let zk=bE=class extends qr{static fromJSON(t){if(t.type!==me.Null)throw new en(bE,t);return new bE}constructor(){super(me.Null)}copy(){const t=new this.constructor;return this.copyBasePropertiesTo(t),t}isValid(){return!0}};zk=bE=Wr([ne("QueryNull"),jr("design:paramtypes",[])],zk);let qk=TE=class extends qr{static fromJSON(t){if(t.type!==me.NotNull)throw new en(TE,t);return new TE}constructor(){super(me.NotNull)}copy(){const t=new this.constructor;return this.copyBasePropertiesTo(t),t}isValid(){return!0}};qk=TE=Wr([ne("QuerNotNull"),jr("design:paramtypes",[])],qk);let Wk=_E=class extends qr{static fromJSON(t){if(t.type!==me.DateRange)throw new en(_E,t);const n=t.dateRange?Z4.fromObject(t.dateRange):void 0;return new _E(n,t.timezone)}constructor(t,n){super(me.DateRange),this.dateRange=t,this.timezone=n||mu.user}isValid(){return this.dateRange!==void 0&&this.dateRange.isValid()}copy(){const t=new this.constructor(this.dateRange?Z4.fromObject(this.dateRange):void 0,this.timezone);return this.copyBasePropertiesTo(t),t}onDecodeComplete(){var t;this.dateRange=!((t=this.dateRange)===null||t===void 0)&&t.type?Z4.fromObject(this.dateRange):void 0,this.timezone=this.timezone||mu.user}};Wk=_E=Wr([ne("QueryDateRange"),jr("design:paramtypes",[Object,String])],Wk);const qUe=[me.EndsWith,me.Equals,me.MatchSubstring,me.SimilarTo,me.StartsWith,me.WordSimilarTo,me.MatchBooleanExpression];function ZG(e){return e===void 0?!1:qUe.includes(e.type)}const WUe=[me.Equals,me.LessThan,me.GreaterThan];function XG(e){return e===void 0?!1:WUe.includes(e.type)}const QT={[me.And]:G2,[me.Between]:aR,[me.DateRange]:Wk,[me.EndsWith]:Bk,[me.Equals]:Lk,[me.GreaterThan]:lR,[me.IdEquals]:Fk,[me.LessThan]:uR,[me.MatchSubstring]:Hk,[me.Not]:Y2,[me.NotNull]:qk,[me.Null]:zk,[me.Or]:J2,[me.SimilarTo]:Uk,[me.StartsWith]:$k,[me.WordSimilarTo]:iR,[me.IntersectsCompensationRange]:oR,[me.IntersectsNumberRange]:sR,[me.MatchBooleanExpression]:rR};class Of{static factory(t){if(!(t in QT))throw new Error(`Cannot find constructor for query of type "${t}"`);return QT[t]}static fromExistingQuery(t,n){if(n===void 0)return n;const r=this.factory(t),i=new r;return(ZG(n)&&ZG(i)||XG(n)&&XG(i))&&(i.value=n.value),i}static fromJSON(t){if(t===void 0)return t;const n=t.type;if(!(n in QT))throw new en({name:"Q"},t);return QT[n].fromJSON(t)}static or(t){return new J2(t)}static and(t){return new G2(t)}static not(t){return new Y2(t)}static idEquals(t){return new Fk(t)}static equals(t){return new Lk(t)}static matchSubstring(t){return new Hk(t)}static similarTo(t){return new Uk(t)}static startsWith(t){return new $k(t)}static endsWith(t){return new Bk(t)}static null(){return this.queryNull}static notNull(){return this.queryNotNull}}Of.queryNull=new zk;Of.queryNotNull=new qk;function jk(e){return e===void 0?!1:e.value!==void 0||e.currencyCode!==void 0}function _g(e){if(e==null)return!1;const t=e;return t.value!==void 0&&typeof t.value=="number"&&t.currencyCode!==void 0&&typeof t.currencyCode=="string"&&p0e(t.currencyCode)}function cR(e,t){if(e instanceof Wk&&e.timezone!==t){const n=e.copy();n.timezone=t,e=n}else if(e instanceof G2||e instanceof J2){const n=e.value,r=n.map(i=>cR(i,t));if(r.some((i,a)=>n[a]!==i)){const i=e.copy({shallow:!0});i.value=r,e=i}}else if(e instanceof Y2){const n=e.value;if(n){const r=cR(n,t);if(r!==e.value){const i=e.copy({shallow:!0});i.value=r,e=i}}}return e}var Ob=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Db=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},EE,wE,oy,sy,kE;let dd=EE=class extends qr{static fromJSON(t){if(t.type!=="DimensionValue")throw new en(EE,t);return new EE(Lr(t.field),Of.fromJSON(t.query))}constructor(t,n){super("DimensionValue"),this.field=t,this.query=n}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.field.copy():this.field,this.query&&t!==!0?this.query.copy(n):this.query);return this.copyBasePropertiesTo(r),r}isValid(){return this.query===void 0?!1:this.query.isValid()}copyOrReplace(t,n){if(this.id===n.id)return t;const r=this.copy();return this.query&&(r.query=this.query.copyOrReplace(t,n)),r}};dd=EE=Ob([ne("DimensionValue"),Db("design:paramtypes",[Function,Object])],dd);let fd=wE=class extends qr{static fromJSON(t){if(t.type!=="DimensionSelect")throw new en(wE,t);let n;return t.dimension&&(n=Xp.fromJSON(t.dimension)),new wE(Lr(t.field),n,t.selectedFields)}constructor(t,n,r){super("DimensionSelect"),this.field=t,this.dimension=n,this.selectedFields=r}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.field.copy():this.field,this.dimension&&t!==!0?this.dimension.copy(n):this.dimension,this.selectedFields);return this.copyBasePropertiesTo(r),r}isValid(){return this.dimension===void 0?!0:this.dimension.isValid()}copyOrReplace(t,n){if(this.id===n.id)return t;const r=this.copy();return this.dimension&&(r.dimension=this.dimension.copyOrReplace(t,n)),r}};fd=wE=Ob([ne("DimensionSelect"),Db("design:paramtypes",[Function,Object,Array])],fd);let Jo=oy=class extends YC{static fromJSON(t){if(t.type!=="DimensionAnd"||!Array.isArray(t.value))throw new en(oy,t);const n=new Array;for(const r of t.value){const i=Xp.fromJSON(r);if(i===void 0)throw new en(oy,t);n.push(i)}return new oy(n)}constructor(t){super("DimensionAnd",t)}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.value.map(i=>i.copy(n)):[...this.value]);return this.copyBasePropertiesTo(r),r}};Jo=oy=Ob([ne("DimensionAnd"),Db("design:paramtypes",[Array])],Jo);let pd=sy=class extends YC{static fromJSON(t){if(t.type!=="DimensionOr"||!Array.isArray(t.value))throw new en(sy,t);const n=new Array;for(const r of t.value){const i=Xp.fromJSON(r);if(i===void 0)throw new en(sy,t);n.push(i)}return new sy(n)}constructor(t){super("DimensionOr",t)}copy({shallow:t,...n}={}){const r=new this.constructor(t!==!0?this.value.map(i=>i.copy(n)):[...this.value]);return this.copyBasePropertiesTo(r),r}};pd=sy=Ob([ne("DimensionOr"),Db("design:paramtypes",[Array])],pd);let md=kE=class extends Jde{static fromJSON(t){if(t.type!=="DimensionNot")throw new en(kE,t);return new kE(Xp.fromJSON(t.value))}constructor(t){super("DimensionNot",t==null||c0e(t)?void 0:t)}copy({shallow:t,...n}={}){const r=new this.constructor(this.value&&t!==!0?this.value.copy(n):this.value);return this.copyBasePropertiesTo(r),r}};md=kE=Ob([ne("DimensionNot"),Db("design:paramtypes",[Object])],md);let Xp=class Pu{static fromJSON(t){if(t===void 0)return t;switch(t.type){case"DimensionAnd":return Jo.fromJSON(t);case"DimensionNot":return md.fromJSON(t);case"DimensionOr":return pd.fromJSON(t);case"DimensionValue":return dd.fromJSON(t);case"DimensionSelect":return fd.fromJSON(t);default:throw new en({name:"D"},t)}}static isValid(t){return t!==void 0&&t.isValid()}static or(t){return new pd(t)}static and(t){return new Jo(t)}static not(t){return new md(t)}static define(t,n){return new dd(t,n)}static select(t,n,r){return new fd(t,n,r)}static merge(t,n){return t?n?t instanceof Jo&&n instanceof Jo?Pu.and([...t.value,...n.value]):t instanceof Jo?Pu.and([...t.value,n]):n instanceof Jo?Pu.and([t,...n.value]):Pu.and([t,n]):t:n}static fields(t){if(t){if(t instanceof dd||t instanceof fd)return[t.field];if(t instanceof md||t instanceof Jo||t instanceof pd)return this.fields(t.value);if(Array.isArray(t))return t.flatMap(n=>this.fields(n));throw new VM(t)}else return[]}static containsValidFilterForField(t,n){if(t){if(t instanceof dd||t instanceof fd)return t.field.path===n&&Pu.isValid(t);if(t instanceof md||t instanceof Jo||t instanceof pd)return Pu.containsValidFilterForField(t.value,n);if(Array.isArray(t))return t.some(r=>Pu.containsValidFilterForField(r,n));throw new VM(t)}else return!1}static areDimensionsEquivalent(t,n){if(t===n)return!0;if(t instanceof Date)return n instanceof Date?t.getTime()===n.getTime():!1;if(!(t instanceof Object)||!(n instanceof Object)||t.constructor!==n.constructor)return!1;for(const r in t)if(t.hasOwnProperty(r)){if(!n.hasOwnProperty(r))return!1;if(!(t[r]===n[r]||r==="id")&&(typeof t[r]!="object"||!Pu.areDimensionsEquivalent(t[r],n[r])))return!1}for(const r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))return!1;return!0}};function xd(e,t){if(e instanceof dd){if(e.query){const n=cR(e.query,t);if(n!==e.query){const r=e.copy({shallow:!0});r.query=n,e=r}}}else if(e instanceof fd){const n=e.dimension;if(n){const r=xd(n,t);if(n!==r){const i=e.copy({shallow:!0});i.dimension=r,e=i}}}else if(e instanceof Jo||e instanceof pd){const n=e.value,r=n.map(i=>xd(i,t));if(r.some((i,a)=>n[a]!==i)){const i=e.copy({shallow:!0});i.value=r,e=i}}else if(e instanceof md){const n=e.value;if(n){const r=xd(n,t);if(n!==r){const i=e.copy({shallow:!0});i.value=r,e=i}}}return e}var jUe=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,GUe=function(e){if(!e||e.length>254)return!1;var t=jUe.test(e);if(!t)return!1;var n=e.split("@");if(n[0].length>64)return!1;var r=n[1].split(".");return!r.some(function(i){return i.length>63})},Gk;(function(e){e.overallRating="_systemfield_overall_candexp_rating"})(Gk||(Gk={}));var dR;(function(e){e.overallQoHRating="_systemfield_overall_qoh_rating"})(dR||(dR={}));var Jk;(function(e){e.whereIsThereRoomForImprovement="where_is_there_room_for_improvement",e.whatHasBeenGoingWell="what_has_been_going_well"})(Jk||(Jk={}));Jk.whereIsThereRoomForImprovement,Jk.whatHasBeenGoingWell;var eJ;(function(e){e.nps="_systemfield_hme_nps",e.overallRating="_systemfield_hme_overall_rating",e.communicationRating="_systemfield_hme_communication_rating",e.roleUnderstandingRating="_systemfield_hme_role_understanding_rating",e.intakeRating="_systemfield_hme_intake_rating",e.schedulingRating="_systemfield_hme_scheduling_rating"})(eJ||(eJ={}));var Ci;(function(e){e.name="_systemfield_name",e.email="_systemfield_email",e.resume="_systemfield_resume"})(Ci||(Ci={}));var K2;(function(e){e.job="_systemfield.job",e.referrer="_systemfield.referring_user"})(K2||(K2={}));var fR;(function(e){e.applicationMetadata="_systemsection.application_metadata"})(fR||(fR={}));var Eg;(function(e){e.location="_systemfield_location",e.preParsedResume="_systemfield_pre_parsed_resume",e.textingConsent="_systemfield_texting_consent"})(Eg||(Eg={}));var Yk;(function(e){e.location="_systemfield_employee_location"})(Yk||(Yk={}));var tJ;(function(e){e.testTitle="_systemfield_test_title",e.testNotTitle="_systemfield_test_not_title"})(tJ||(tJ={}));Ci.resume+"",Ci.name+"",Ci.email+"",Eg.location+"",Eg.preParsedResume+"",K2.referrer+"",K2.job+"",Gk.overallRating+"",Yk.location+"";var nJ;(function(e){e.WorkflowRole="workflow_role"})(nJ||(nJ={}));var qs;(function(e){e.Paragraph="paragraph",e.Italic="Italic",e.Bold="Bold",e.Link="Link",e.Underline="Underline",e.CodeMark="CodeMark",e.CodeBlock="CodeBlock",e.CodeLine="CodeLine",e.Blockquote="Blockquote",e.NumberedList="NumberedList",e.BulletedList="BulletedList",e.ListItem="ListItem",e.H1="H1",e.H2="H2",e.H3="H3"})(qs||(qs={}));qs.Paragraph;function m0e(e){return e!=null&&e.version==="2"&&e.content!=null}function JUe(e){return e!=null&&e.type!==void 0}function YUe(e){var t,n;return JUe(e)?((t=e.content)===null||t===void 0?void 0:t.length)===1&&e.content[0].type==="paragraph"&&((n=e.content[0].content)===null||n===void 0?void 0:n.length)===1&&e.content[0].content[0].text!=null:!1}var En=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Lo=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ve;(function(e){e.UUID="UUID",e.String="String",e.Date="Date",e.DateRange="DateRange",e.Number="Number",e.DimensionSelect="DimensionSelect",e.ValueSelect="ValueSelect",e.MultiValueSelect="MultiValueSelect",e.Boolean="Boolean",e.File="File",e.RichText="RichText",e.LongText="LongText",e.Email="Email",e.Phone="Phone",e.Score="Score",e.SocialLink="SocialLink",e.Currency="Currency",e.CompensationRange="CompensationRange",e.NumberRange="NumberRange",e.LinearRating="LinearRating",e.NPSRating="NPSRating",e.Location="Location",e.EmploymentHistory="EmploymentHistory",e.EducationHistory="EducationHistory",e.ProcessUserRoles="ProcessUserRoles"})(ve||(ve={}));ve.String,ve.LongText,ve.RichText,ve.Phone,ve.Email,ve.ValueSelect,ve.MultiValueSelect,ve.Date,ve.Boolean,ve.Number,ve.File,ve.Score,ve.LinearRating,ve.NPSRating,ve.Location;ve.String+"",ve.LongText,ve.LongText+"",ve.String;var pR;(function(e){e.enUS="en-US",e.enGB="en-GB",e.deDE="de-DE",e.deAT="de-AT",e.nlNL="nl-NL",e.esES="es-ES",e.ptPT="pt-PT"})(pR||(pR={}));pR.enUS;var mR;(function(e){e.Symbol="symbol",e.Code="code"})(mR||(mR={}));mR.Symbol;var rJ;(function(e){e.CustomField="CustomField",e.WorkdaySyncObject="WorkdaySyncObject",e.GreenhouseEEOC="GreenhouseEEOC"})(rJ||(rJ={}));var iJ;(function(e){e.CriteriaEvaluations="CriteriaEvaluations"})(iJ||(iJ={}));class wn extends VB{constructor(t){var n;super(),this.path=t.path,this.humanReadablePath=t.humanReadablePath,this.title=t.title,this.isNullable=!!t.isNullable,this.isPrivate=!!t.isPrivate,this.requiredPolicyActionType=t.requiredPolicyActionType,this.isDeactivated=!!t.isDeactivated,this.description=t.description,this.descriptionHtml=t.descriptionHtml,this.isMany=!!t.isMany,this.metadata=(n=t.metadata)!==null&&n!==void 0?n:{},this.canBeUsedForFiltering=t.canBeUsedForFiltering,this.canBeSelected=t.canBeSelected,this.isDEIField=t.isDEIField,this.isDisallowedAlongsidePIIField=this.isDEIField,this.isPIIField=t.isPIIField,this.isDateOnlyField=t.isDateOnlyField,this.sampleValues=t.sampleValues}supportedQueryValues(){return this.isNullable?[me.Null,me.NotNull]:[]}copy(t){const n=Lr(this);if(t){const r=t();n.id=r,n.path=Tp.isUUID(this.path)?r:this.path}return n}isValueValid(t){return!0}onDecodeComplete(){this.isDEIField===void 0&&this.isDisallowedAlongsidePIIField!==void 0&&(this.isDEIField=this.isDisallowedAlongsidePIIField)}}function KUe(e){return e.type!=="Set"&&e.type!==ve.File}var $i;(function(e){e.SearchUsers="SearchUsers",e.SearchRoles="SearchRoles",e.SearchUsersAndRoles="SearchUsersAndRoles",e.SearchJobs="SearchJobs",e.SearchJobBoards="SearchJobBoards",e.SearchJobsForReferrals="SearchJobsForReferrals",e.SearchJobPostingsForReferralLink="SearchJobPostingsForReferralLink",e.SearchJobsForApply="SearchJobsForApply",e.SearchTags="SearchTags",e.SearchTeamByName="SearchTeamByName",e.SearchLocationByName="SearchLocationByName",e.SearchInterviewStageByTitle="SearchInterviewStageByTitle",e.SearchInterviewStageByTitleIdentity="SearchInterviewStageByTitleIdentity",e.SearchInterviewStageGroupTypeByTitle="SearchInterviewStageGroupTypeByTitle",e.SearchArchiveReason="SearchArchiveReason",e.SearchActiveArchiveReason="SearchActiveArchiveReason",e.SearchEmployerByName="SearchEmployerByName",e.SearchSchoolByName="SearchSchoolByName",e.SearchSourceByTitle="SearchSourceByTitle",e.SearchTalentProjectByTitle="SearchTalentProjectByTitle",e.SearchCampaignTemplateByTitle="SearchCampaignTemplateByTitle",e.SearchActiveSourceByTitle="SearchActiveSourceByTitle",e.SearchSourceTypeByTitle="SearchSourceTypeByTitle",e.SearchMeetingAvailabilityOrganizer="SearchMeetingAvailabilityOrganizer",e.SearchMeetingRoom="SearchMeetingRoom",e.SearchMeetingRoomTag="SearchMeetingRoomTag",e.SearchInterviewerTag="SearchInterviewerTag",e.SearchScorecardDefinitionByTitle="SearchScorecardDefinitionByTitle",e.SearchApplicationFormDefinitionByTitle="SearchApplicationFormDefinitionByTitle",e.SearchCandidateExperienceSurveyFormDefinitionByTitle="SearchCandidateExperienceSurveyFormDefinitionByTitle",e.SearchHiringManagerExperienceSurveyFormDefinitionByTitle="SearchHiringManagerExperienceSurveyFormDefinitionByTitle",e.SearchDiversitySurveyFormDefinitionByTitle="SearchDiversitySurveyFormDefinitionByTitle",e.SearchQuestionnaireFormDefinitionByTitle="SearchQuestionnaireFormDefinitionByTitle",e.SearchQualityOfHireFormDefinitionByTitle="SearchQualityOfHireFormDefinitionByTitle",e.SearchCloseJobReason="SearchCloseJobReason",e.SearchBulkDataImportById="SearchBulkDataImportById",e.SearchAgencyByName="SearchAgencyByName",e.SearchJobPostingByTitle="SearchJobPostingByTitle",e.Jobs="Jobs",e.SearchOpeningForApplication="SearchOpeningForApplication",e.SearchInterviewPlanTemplates="SearchInterviewPlanTemplates",e.SearchGeoLocation="SearchGeoLocation",e.SearchGeoLocationCountry="SearchGeoLocationCountry",e.SearchGeoLocationRegion="SearchGeoLocationRegion",e.SearchGeoLocationCity="SearchGeoLocationCity",e.SearchSurveySequenceTemplates="SearchSurveySequenceTemplates",e.SearchHiringEvents="SearchHiringEvents",e.SearchHiringEventTimeslots="SearchHiringEventTimeslots",e.SearchSourcingFormDefinitionsByTitle="SearchSourcingFormDefinitionsByTitle",e.SearchNewsletterTemplatesByTitle="SearchNewsletterTemplatesByTitle",e.SearchConfiguredAssessmentIntegrations="SearchConfiguredAssessmentIntegrations",e.SearchApplications="SearchApplications"})($i||($i={}));var aJ;(function(e){e.StageName="StageName",e.StageGroupName="StageGroupName",e.StageTypeName="StageTypeName"})(aJ||(aJ={}));let Ua=class extends wn{constructor(t){super(t),this.type=ve.UUID,this.searchIndex=t.searchIndex,t.pointsToObjectType&&(this.pointsToObjectType=t.pointsToObjectType)}supportedQueryValues(){return super.supportedQueryValues().concat([me.IdEquals])}};Ua=En([ne("UUIDField"),Lo("design:paramtypes",[Object])],Ua);let Q2=class extends wn{constructor(t){super(t),this.type=ve.ValueSelect,this.selectableValues=t.selectableValues,this.selectableValuesDataSource=t.selectableValuesDataSource,this.doesAlwaysDisplayAsDropdown=t.doesAlwaysDisplayAsDropdown}supportedQueryValues(){return super.supportedQueryValues().concat([me.Equals])}doesDisplayAsDropdown(){return this.doesAlwaysDisplayAsDropdown||!1}};En([Aa(jn.AnonymousObjectTypeMarker),Lo("design:type",Array)],Q2.prototype,"selectableValues",void 0);Q2=En([ne("ValueSelectField"),Lo("design:paramtypes",[Object])],Q2);let wg=class extends wn{constructor(t){super(t),this.type=ve.MultiValueSelect,this.selectableValues=t.selectableValues,this.selectableValuesDataSource=t.selectableValuesDataSource,this.doesAlwaysDisplayAsDropdown=t.doesAlwaysDisplayAsDropdown}supportedQueryValues(){return super.supportedQueryValues().concat([me.Equals])}doesDisplayAsDropdown(){return this.doesAlwaysDisplayAsDropdown||!1}};En([Aa(jn.AnonymousObjectTypeMarker),Lo("design:type",Array)],wg.prototype,"selectableValues",void 0);wg=En([ne("MultiValueSelectField"),Lo("design:paramtypes",[Object])],wg);let hR=class extends wn{constructor(t){super(t),this.type=ve.String,this.isFullTextSearchable=t.isFullTextSearchable}supportedQueryValues(){return super.supportedQueryValues().concat(this.isFullTextSearchable?[me.MatchBooleanExpression,me.MatchSubstring,me.Equals,me.SimilarTo]:[me.MatchSubstring,me.Equals,me.StartsWith,me.EndsWith,me.SimilarTo])}};hR=En([ne("StringField"),Lo("design:paramtypes",[Object])],hR);let _p=class extends wn{constructor(){super(...arguments),this.type=ve.Date}isValueValid(t){let n;if(t instanceof Date)n=Ue.fromJSDate(t);else if(typeof t=="string")n=Ue.fromISO(t);else return!1;return n.isValid}supportedQueryValues(){return super.supportedQueryValues().concat([me.DateRange])}};_p=En([ne("DateField")],_p);let oJ=class extends wn{constructor(){super(...arguments),this.type=ve.DateRange}supportedQueryValues(){return super.supportedQueryValues().concat([me.DateRange])}};oJ=En([ne("DateRangeField")],oJ);let gR=class extends wn{constructor(){super(...arguments),this.type=ve.Number}supportedQueryValues(){return super.supportedQueryValues().concat([me.Between,me.GreaterThan,me.LessThan])}};gR=En([ne("NumberField")],gR);let Z2=class extends wn{constructor(){super(...arguments),this.type=ve.Boolean}supportedQueryValues(){return super.supportedQueryValues().concat([me.Equals])}};Z2=En([ne("BooleanField")],Z2);let sJ=class extends wn{constructor(t){super(t),this.type=ve.DimensionSelect,this.subQueryObjectType=t.subQueryObjectType}supportedQueryValues(){return[]}};sJ=En([ne("DimensionSelectField"),Lo("design:paramtypes",[Object])],sJ);let vR=class extends wn{constructor(){super(...arguments),this.type=ve.File}supportedQueryValues(){return[]}};vR=En([ne("FileField")],vR);let Kk=class extends wn{constructor(){super(...arguments),this.type=ve.Email}supportedQueryValues(){return super.supportedQueryValues().concat([me.MatchSubstring,me.Equals,me.StartsWith,me.EndsWith,me.SimilarTo])}isValueValid(t){return typeof t=="string"&&Tp.isEmail(t)&&GUe(t)}};Kk=En([ne("EmailField")],Kk);let yR=class extends wn{constructor(){super(...arguments),this.type=ve.Phone}supportedQueryValues(){return super.supportedQueryValues().concat([me.MatchSubstring,me.Equals,me.StartsWith,me.EndsWith,me.SimilarTo])}};yR=En([ne("PhoneField")],yR);let lJ=class extends wn{constructor(){super(...arguments),this.type=ve.EmploymentHistory}supportedQueryValues(){return[]}};lJ=En([ne("EmploymentHistoryField")],lJ);let uJ=class extends wn{constructor(){super(...arguments),this.type=ve.EducationHistory}supportedQueryValues(){return[]}};uJ=En([ne("EducationHistoryField")],uJ);let cJ=class extends wn{constructor(){super(...arguments),this.type=ve.SocialLink}supportedQueryValues(){return super.supportedQueryValues().concat([me.MatchSubstring,me.Equals,me.StartsWith,me.EndsWith,me.SimilarTo])}};cJ=En([ne("SocialLinkField")],cJ);let dJ=class extends wn{constructor(){super(...arguments),this.type=ve.ProcessUserRoles}supportedQueryValues(){return[]}};dJ=En([ne("ProcessUserRolesField")],dJ);let SR=class extends wn{constructor(){super(...arguments),this.type=ve.RichText}supportedQueryValues(){return[]}};SR=En([ne("RichTextField")],SR);let bR=class extends wn{constructor(){super(...arguments),this.type=ve.LongText}supportedQueryValues(){return super.supportedQueryValues().concat([me.MatchSubstring])}};bR=En([ne("LongTextField")],bR);let fJ=class extends wn{constructor(){super(...arguments),this.type=ve.Score}supportedQueryValues(){return super.supportedQueryValues().concat([me.Between,me.GreaterThan,me.LessThan])}};fJ=En([ne("ScoreField")],fJ);var oh;(function(e){e[e.StrongYes=4]="StrongYes",e[e.Yes=3]="Yes",e[e.No=2]="No",e[e.StrongNo=1]="StrongNo"})(oh||(oh={}));oh.StrongNo,oh.No,oh.Yes,oh.StrongYes;let TR=class extends wn{constructor(t){super(t),this.type=ve.Currency,this.selectableValues=t.selectableValues}supportedQueryValues(){return super.supportedQueryValues().concat([me.Between,me.GreaterThan,me.LessThan,me.Equals])}isValueValid(t){return _g(t)}};En([Aa(jn.AnonymousObjectTypeMarker),Lo("design:type",Array)],TR.prototype,"selectableValues",void 0);TR=En([ne("CurrencyField"),Lo("design:paramtypes",[Object])],TR);function QUe(e){if(e==null)return!1;const t=e;return t.type==="number-range"&&(t.minValue!=null||t.maxValue!=null)&&(typeof t.minValue=="number"||typeof t.maxValue=="number")&&(t.minValue==null||t.maxValue==null||t.minValue<=t.maxValue)}let pJ=class extends wn{constructor(){super(...arguments),this.type=ve.NumberRange}supportedQueryValues(){return super.supportedQueryValues().concat([me.IntersectsNumberRange])}isValueValid(t){return QUe(t)}};pJ=En([ne("NumberRangeField")],pJ);var Fa;(function(e){e.NotSet="NONE",e.OneTime="1 TIME",e.Hour="1 HOUR",e.Day="1 DAY",e.Week="1 WEEK",e.BiWeek="2 WEEK",e.Month="1 MONTH",e.BiMonth="2 MONTH",e.Year="1 YEAR",e.SemiYear="6 MONTH",e.SemiMonth="0.5 MONTH",e.Quarterly="3 MONTH"})(Fa||(Fa={}));Fa.NotSet+"",Fa.OneTime+"",Fa.Hour+"",Fa.Day+"",Fa.Week+"",Fa.BiWeek+"",Fa.SemiMonth+"",Fa.Month+"",Fa.BiMonth+"",Fa.Quarterly+"",Fa.SemiYear+"",Fa.Year+"";function ZUe(e){if(e==null)return!1;const t=e;return t.type==="compensation-range"&&(t.minValue!=null||t.maxValue!=null)&&(typeof t.minValue=="number"||typeof t.maxValue=="number")&&(t.minValue==null||t.maxValue==null||t.minValue<=t.maxValue)&&t.currencyCode!=null&&typeof t.currencyCode=="string"&&p0e(t.currencyCode)&&t.interval!=null}let mJ=class extends wn{constructor(){super(...arguments),this.type=ve.CompensationRange}supportedQueryValues(){return super.supportedQueryValues().concat([me.IntersectsCompensationRange])}isValueValid(t){return ZUe(t)}};mJ=En([ne("CompensationRangeField")],mJ);let Qk=class extends wn{constructor(t){var n,r;super(t),this.type=ve.LinearRating,this.minimumLabel=t.minimumLabel,this.maximumLabel=t.maximumLabel,this.minimum=(n=t.minimum)!==null&&n!==void 0?n:0,this.maximum=(r=t.maximum)!==null&&r!==void 0?r:10}supportedQueryValues(){return super.supportedQueryValues().concat([me.Between,me.GreaterThan,me.LessThan,me.Equals])}};Qk=En([ne("LinearRatingField"),Lo("design:paramtypes",[Object])],Qk);let _R=class extends Qk{constructor(t){super({...t,minimum:XUe,maximum:eHe}),this.type=ve.NPSRating}supportedQueryValues(){return super.supportedQueryValues()}};_R=En([ne("NPSRatingField"),Lo("design:paramtypes",[Object])],_R);const XUe=0,eHe=10;let hJ=class extends VB{constructor({title:t,description:n,root:r,fields:i,originalRoot:a}){super(),this.type="Set",this.title=t,this.description=n,this.root=r,this.fields=i,this.originalRoot=a}};hJ=En([ne("QueryableFieldSet"),Lo("design:paramtypes",[Object])],hJ);let ER=class extends wn{constructor(t){super(t),this.type=ve.Location,this.locationTypes=t.locationTypes}supportedQueryValues(){return[]}isValueValid(t){return!(typeof t!="object"||typeof t.text!="string")}};ER=En([ne("LocationField"),Lo("design:paramtypes",[Object])],ER);function T$(e,t){for(const n of t)if(KUe(n)){if(n.path===e)return n}else{const r=T$(e,n.fields);if(r)return r}}ve.RichText,ve.Score,ve.Currency,ve.LinearRating,ve.NPSRating;var gJ;(function(e){e.OnlyToManyRelations="OnlyToManyRelations",e.OnlyToOneRelations="OnlyToOneRelations"})(gJ||(gJ={}));function Df(e){const t=e;return typeof t.type==typeof ve.Boolean?t.type:t.fieldType}function tHe(e,t){return e==null?!1:t!=null?Df(e)===t:typeof e.type==typeof ve.Boolean||typeof e.fieldType==typeof ve.Boolean}function Xi(e,t,n){if(e==null)return!1;const r=Df(e)===t,i=e.value===null;return r&&(i||typeof e.value===n)}function X2(e){return Xi(e,ve.Number,"number")}function kg(e){return Xi(e,ve.Date,"object")&&(e.value===null||e.value instanceof Date)}function wR(e){return Xi(e,ve.Boolean,"boolean")}function h0e(e){return Xi(e,ve.String,"string")}function g0e(e){return Xi(e,ve.Email,"string")}function v0e(e){return Xi(e,ve.Phone,"string")}function y0e(e){return Xi(e,ve.SocialLink,"string")}function S0e(e){return Xi(e,ve.UUID,"string")&&(e.searchIndex===void 0||typeof e.searchIndex==typeof $i.SearchJobs)}function b0e(e){return Xi(e,ve.ValueSelect,"string")&&(e.selectableValues==null||Array.isArray(e.selectableValues))}function nHe(e){return e==null||!(Df(e)===ve.MultiValueSelect)||!(e.selectableValues==null||Array.isArray(e.selectableValues))?!1:e.value===null||typeof e.value=="string"||Array.isArray(e.value)}function eS(e){return Xi(e,ve.NPSRating,"number")}function tS(e){return Xi(e,ve.LinearRating,"number")}function nS(e){return Xi(e,ve.Currency,"object")&&(e.value==null||_g(e.value))}function rHe(e){return Xi(e,ve.NumberRange,"object")}function iHe(e){return Xi(e,ve.CompensationRange,"object")}function rS(e){return Xi(e,ve.Score,"number")}function aHe(e){return Xi(e,ve.LongText,"string")}function ul(e){return e==null||!(e?Df(e):null)?!1:X2(e)||wR(e)||h0e(e)||g0e(e)||v0e(e)||y0e(e)||S0e(e)||b0e(e)||kg(e)||nHe(e)||eS(e)||tS(e)||nS(e)||rHe(e)||iHe(e)||rS(e)||aHe(e)}function Oo(e,t){return e!=null&&typeof e=="object"&&"path"in e&&typeof e.path=="string"&&(e.isNullable===void 0||typeof e.isNullable=="boolean")&&tHe(e,t)}let Mu=class{constructor(){}static boolean(t){return{type:ve.Boolean,value:t}}static string(t){return{type:ve.String,value:t}}static number(t){return{type:ve.Number,value:t}}static currency(t){return{type:ve.Currency,value:t}}static numberRange(t){return{type:ve.NumberRange,value:{type:"number-range",...t}}}static compensationRange(t){return{type:ve.CompensationRange,value:{type:"compensation-range",...t}}}static date(t){return{type:ve.Date,value:t}}static objectRef(t,n){return{type:ve.UUID,searchIndex:n,value:t}}static valueSelect(t,n){return Array.isArray(n)?{type:ve.ValueSelect,selectableValues:n,value:t}:{type:ve.ValueSelect,selectableValues:[{value:t,label:n}],value:t}}static multiValueSelect(t,n){return{type:ve.MultiValueSelect,value:t,selectableValues:n}}static case(...t){return new oHe(t)}static when(t){return new sHe(t)}static equals(t,n){return new nu(t,n)}static matchesSubstring(t,n){return new Xk(t,n)}static startsWithSubstring(t,n){return new e3(t,n)}static endsWithSubstring(t,n){return new t3(t,n)}static similarToSubstring(t,n){return new n3(t,n)}static isGreaterThan(t,n,r=!1){return new aS(t,n,r)}static isGreaterThanOrEqual(t,n){return new aS(t,n,!0)}static isLessThan(t,n,r=!1){return new oS(t,n,r)}static isLessThanOrEqual(t,n){return new oS(t,n,!0)}static intersectsRange(t,n){return new r3(t,n)}static isInDateRange(t,n){return new i3(t,n)}static isOneOf(t,...n){return new Ag(t,n)}static not(t){return new Yi(t)}static and(...t){return new kp(t)}static or(...t){return new of(t)}static isTrue(t){return this.equals(t,this.boolean(!0))}static isFalse(t){return this.equals(t,this.boolean(!1))}static isNull(t){const n={type:Df(t),value:null,isNullable:!0};return this.equals(t,n)}static coalesce(...t){return new E$(t)}static difference(t,...n){return new w$(t,n)}static multi(...t){return new k$(t)}static path(t,n,r){return{path:t,type:n,isNullable:r}}static fromJSON(t){return Lr(t)}};class oHe{constructor(t){this.cases=t}else(t){return new iS(this.cases,t)}}class sHe{constructor(t){this.when=t}then(t){return{when:this.when,then:t}}}var nn=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},kR,AR,CR;function Ep(e){return typeof e=="object"&&(e instanceof iS||e instanceof E$||e instanceof w$||e instanceof k$)}function rf(e){if(ul(e))return e.value==null;if(Oo(e)){const t=e;return typeof t.isNullable=="boolean"?t.isNullable:!0}else return e.isNullable}function NR(e){if(S0e(e))return e.searchIndex;if(ul(e))return;if(Oo(e)){const t=e,n=$i.SearchUsers;return typeof t.searchIndex==typeof n?t.searchIndex:void 0}else return e.searchIndex}function Zk(e){if(ul(e)){if(b0e(e))return e.selectableValues;if(h0e(e)||g0e(e)||v0e(e)||y0e(e))return e.value===null?[]:[{label:e.value,value:e.value}]}else if(Oo(e)){const t=e;return Array.isArray(t.selectableValues)?t.selectableValues:void 0}else return e.selectableValues}function mr(e){if(Oo(e))return[e];if(ul(e))return[];if(typeof e.allFieldReferences!="function")throw new Error(`Unexpected calculated field value ${JSON.stringify(e)}`);return e.allFieldReferences()}function $n(e){return Oo(e)||ul(e)?e:e.optimizedValue()}function Ri(e,t,n){const r=n.value;return n.value=function(){if(!(this===null||this===void 0)&&this.__isOptimized)return this;const i=r.apply(this);return i&&(i.__isOptimized=!0),i},n}function _$(e,t){if(t===void 0)return;if(e===void 0)return t;const n=[...e];for(const r of t){let i=!1;for(const a of e)(r.label===a.label||r.value===a.value)&&(i=!0);i||n.push(r)}return n}let iS=class{constructor(t,n){this.cases=t,this.elseValue=n}get type(){return Df(this.elseValue)}allFieldReferences(){return[...mr(this.elseValue),...this.cases.flatMap(t=>t.when.allFieldReferences()),...this.cases.flatMap(t=>mr(t.then))]}get searchIndex(){const t=NR(this.elseValue);if(t===void 0)return;const n=this.cases.map(r=>NR(r.then));if(!n.some(r=>r===void 0)&&n.every(r=>r===t))return t}get isNullable(){return rf(this.elseValue)||this.cases.some(t=>rf(t.then))}get selectableValues(){const t=Zk(this.elseValue);if(t===void 0)return;const n=[...this.cases.map(r=>Zk(r.then)),t];if(!n.some(r=>r===void 0))return n.reduce(_$)}onDecodeComplete(){this.cases=this.cases.map(t=>({when:Lr(t.when),then:Lr(t.then)}))}optimizedValue(){const t=this.cases.map(r=>({when:r.when.optimizedCondition(),then:$n(r.then)})).filter(r=>!(r.when instanceof af));if(t.length===0)return $n(this.elseValue);const n=t.findIndex(r=>r instanceof wp);return n===0?t[0].then:n>=0?new this.constructor(t.slice(0,n),t[n].then):new this.constructor(t,$n(this.elseValue))}mapToCondition(t){let n=rr;const r=[];for(const i of this.cases){const a=i.when.optimizedCondition(),o=new kp([n.negated(),t(i.then),a]).optimizedCondition();o instanceof af||r.push(o),n=new of([n,a]).optimizedCondition()}return r.push(new kp([n.negated(),t(this.elseValue)])),new of(r).optimizedCondition()}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],iS.prototype,"optimizedValue",null);iS=nn([ne("WhenCaseTransformer"),Xe("design:paramtypes",[Array,Object])],iS);let wp=class{allFieldReferences(){return[]}optimizedCondition(){return this}negated(){return rr}};wp=nn([ne("WhenCaseTrue")],wp);let af=class{allFieldReferences(){return[]}optimizedCondition(){return this}negated(){return ii}};af=nn([ne("WhenCaseFalse")],af);const ii=new wp().optimizedCondition(),rr=new af().optimizedCondition();let nu=class{constructor(t,n){this.left=t,this.right=n}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return ul(t)&&ul(n)?t.value===n.value?ii:rr:Oo(t)&&Oo(n)&&t.path===n.path?ii:Ep(t)?t.mapToCondition(r=>new this.constructor(r,n)):Ep(n)?n.mapToCondition(r=>new this.constructor(t,r)):this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],nu.prototype,"optimizedCondition",null);nu=nn([ne("WhenCaseEqualsCondition"),Xe("design:paramtypes",[Object,Object])],nu);let Ag=class{constructor(t,n){this.left=t,this.rights=n}allFieldReferences(){return[...mr(this.left),...this.rights.flatMap(mr)]}optimizedCondition(){if(this.rights.length===0)return rr;const t=$n(this.left),n=this.rights.map($n);if(ul(t)){if(n.some(r=>ul(r)&&r.value===t.value))return ii;if(n.every(r=>ul(r)&&r.value!==t.value))return rr}return new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],Ag.prototype,"optimizedCondition",null);Ag=nn([ne("WhenCaseIsOneOf"),Xe("design:paramtypes",[Object,Array])],Ag);let Xk=class{constructor(t,n){this.left=t,this.right=n}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],Xk.prototype,"optimizedCondition",null);Xk=nn([ne("WhenCaseMatchesSubstringCondition"),Xe("design:paramtypes",[Object,Object])],Xk);let e3=class{constructor(t,n){this.left=t,this.right=n}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],e3.prototype,"optimizedCondition",null);e3=nn([ne("WhenCaseStartsWithSubstringCondition"),Xe("design:paramtypes",[Object,Object])],e3);let t3=class{constructor(t,n){this.left=t,this.right=n}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],t3.prototype,"optimizedCondition",null);t3=nn([ne("WhenCaseEndsWithSubstringCondition"),Xe("design:paramtypes",[Object,Object])],t3);let n3=class{constructor(t,n){this.left=t,this.right=n}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],n3.prototype,"optimizedCondition",null);n3=nn([ne("WhenCaseSimilarToSubstringCondition"),Xe("design:paramtypes",[Object,Object])],n3);class T0e{constructor(t,n,r){this.left=t,this.right=n,this.allowEquality=r}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}}let aS=class extends T0e{optimizedCondition(){const t=$n(this.left),n=$n(this.right);return X2(t)&&X2(n)||eS(t)&&eS(n)||tS(t)&&tS(n)||rS(t)&&rS(n)||kg(t)&&kg(n)?t.value==null||n.value==null?rr:this.allowEquality?t.value>=n.value?ii:rr:t.value>n.value?ii:rr:nS(t)&&nS(n)?t.value==null||n.value==null||t.value.currencyCode!==n.value.currencyCode?rr:this.allowEquality?t.value.value>=n.value.value?ii:rr:t.value.value>n.value.value?ii:rr:this.allowEquality&&Oo(t)&&Oo(n)&&t.path===n.path?ii:Ep(t)?t.mapToCondition(r=>new this.constructor(r,n,this.allowEquality)):Ep(n)?n.mapToCondition(r=>new this.constructor(t,r,this.allowEquality)):this.left===t&&this.right===n?this:new this.constructor(t,n,this.allowEquality)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],aS.prototype,"optimizedCondition",null);aS=nn([ne("WhenCaseGreaterThanCondition")],aS);let oS=class extends T0e{optimizedCondition(){const t=$n(this.left),n=$n(this.right);return X2(t)&&X2(n)||eS(t)&&eS(n)||tS(t)&&tS(n)||rS(t)&&rS(n)||kg(t)&&kg(n)?t.value==null||n.value==null?rr:this.allowEquality?t.value<=n.value?ii:rr:t.valuenew this.constructor(r,n,this.allowEquality)):Ep(n)?n.mapToCondition(r=>new this.constructor(t,r,this.allowEquality)):this.left===t&&this.right===n?this:new this.constructor(t,n,this.allowEquality)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],oS.prototype,"optimizedCondition",null);oS=nn([ne("WhenCaseLessThanCondition")],oS);let r3=class{constructor(t,n){this.left=t,this.right=n}optimizedCondition(){const t=$n(this.left),n=$n(this.right);return this.left===t&&this.right===n?this:new this.constructor(t,n)}negated(){return new Yi(this)}allFieldReferences(){return[...mr(this.left),...mr(this.right)]}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],r3.prototype,"optimizedCondition",null);r3=nn([ne("WhenCaseIntersectsRange"),Xe("design:paramtypes",[Object,Object])],r3);let Yi=kR=class{constructor(t){this.condition=t}allFieldReferences(){return this.condition.allFieldReferences()}optimizedCondition(){const t=this.condition.optimizedCondition();return t instanceof wp?rr:t instanceof af?ii:t instanceof kR?t.condition:t instanceof nu&&!rf(t.left)&&wR(t.right)&&t.right.value!=null?new nu(t.left,{...t.right,value:!t.right.value}):t instanceof nu&&!rf(t.right)&&wR(t.left)&&t.left.value!=null?new nu({...t.left,value:!t.left.value},t.right):t===this.condition?this:new this.constructor(t)}negated(){return this.condition}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],Yi.prototype,"optimizedCondition",null);Yi=kR=nn([ne("WhenCaseNotCondition"),Xe("design:paramtypes",[Object])],Yi);let i3=class{constructor(t,n){this.value=t,this.dateRange=n}allFieldReferences(){return mr(this.value)}optimizedCondition(){const t=$n(this.value);return kg(t)&&t.value==null?rr:Ep(t)?t.mapToCondition(n=>new this.constructor(n,this.dateRange)):t===this.value?this:new this.constructor(t,this.dateRange)}negated(){return new Yi(this)}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],i3.prototype,"optimizedCondition",null);i3=nn([ne("WhenCaseMatchesDateRangeCondition"),Xe("design:paramtypes",[Object,Object])],i3);let kp=AR=class{constructor(t){this.conditions=t}allFieldReferences(){return this.conditions.flatMap(t=>t.allFieldReferences())}optimizedCondition(){let t=[];const n=[];let r=!0;function i(l){if(l instanceof AR){for(const u of l.conditions)if(i(u))return!0}else{if(l instanceof af)return!0;l instanceof wp||(r=!1,l instanceof Yi?n.push(l):t.push(l))}return!1}for(const l of this.conditions)if(i(l.optimizedCondition()))return rr;if(r&&this.conditions.length>0)return ii;if(n.length===1&&t.length===0)return n[0];if(t.length===1&&n.length===0||(n.length>1?t.push(new Yi(new of(n.map(l=>l.condition))).optimizedCondition()):t.push(...n),t.length===1))return t[0];const a=new Set(t.map(l=>a3(l.negated().optimizedCondition()))),o=new Set,s=[];for(const l of t){const u=a3(l);if(a.has(u))return rr;o.has(u)||(o.add(u),s.push(l))}return t=s,t.length===1?t[0]:new this.constructor(t)}negated(){return new of(this.conditions.map(t=>t.negated()))}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],kp.prototype,"optimizedCondition",null);kp=AR=nn([ne("WhenCaseAndCondition"),Xe("design:paramtypes",[Array])],kp);let of=CR=class{constructor(t){this.conditions=t}allFieldReferences(){return this.conditions.flatMap(t=>t.allFieldReferences())}optimizedCondition(){var t;let n=[],r=!0;function i(d){if(d instanceof CR){for(const f of d.conditions)if(i(f))return!0}else if(d instanceof Ag&&Oo(d.left)){for(const f of d.rights)if(i(new nu(d.left,f)))return!0}else{if(d instanceof wp)return!0;d instanceof af||(r=!1,n.push(d))}return!1}for(const d of this.conditions)if(i(d.optimizedCondition()))return ii;if(r&&this.conditions.length>0)return rr;if(n.length===1)return n[0];const a=new Set,o=new Set,s=[];for(const d of n){const f=a3(d);if(a.has(f))return ii;o.has(f)||(o.add(f),s.push(d));const p=a3(d.negated().optimizedCondition());a.add(p)}if(n=s,n.length===1)return n[0];function l(d){return d instanceof nu&&Oo(d.left)&&ul(d.right)&&d.right.value!=null}const u=[],c=new Map;for(const d of n)if(l(d)){const f=d.left.path,p=(t=c.get(f))!==null&&t!==void 0?t:{values:[],origCondition:d};p.values.push(d.right),c.set(f,p)}else u.push(d);for(const{values:d,origCondition:f}of c.values())d.length>1?u.push(new Ag(f.left,d)):u.push(f);return n=u,n.length===1?n[0]:new this.constructor(n)}negated(){return new kp(this.conditions.map(t=>t.negated()))}};nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],of.prototype,"optimizedCondition",null);of=CR=nn([ne("WhenCaseOrCondition"),Xe("design:paramtypes",[Array])],of);class E${constructor(t){this.values=t}get type(){return Df(this.values[0])}allFieldReferences(){return this.values.flatMap(mr)}get isNullable(){return this.values.every(t=>rf(t))}get searchIndex(){const t=this.values.map(NR);if(t.every(n=>n===t[0]))return t[0]}get selectableValues(){const t=this.values.map(n=>Zk(n));if(!t.some(n=>n===void 0))return t.reduce(_$)}optimizedValue(){return new this.constructor(this.values.map($n))}mapToCondition(t){return t(this)}}nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],E$.prototype,"optimizedValue",null);class w${constructor(t,n){this.minuend=t,this.subtrahends=n}get type(){return Df(this.minuend)}allFieldReferences(){return[...mr(this.minuend),...this.subtrahends.flatMap(mr)]}get isNullable(){return rf(this.minuend)||this.subtrahends.some(rf)}get searchIndex(){}get selectableValues(){}optimizedValue(){return new this.constructor($n(this.minuend),this.subtrahends.map($n))}mapToCondition(t){return t(this)}}nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],w$.prototype,"optimizedValue",null);class k${constructor(t){this.type=ve.MultiValueSelect,this.values=t}allFieldReferences(){return this.values.flatMap(mr)}get isNullable(){return this.values.some(rf)}get searchIndex(){}get selectableValues(){const t=this.values.map(n=>Zk(n));if(!t.some(n=>n===void 0))return t.reduce(_$,[])}optimizedValue(){return new this.constructor(this.values.map($n))}mapToCondition(t){const n=t(Mu.multiValueSelect(null,[])).optimizedCondition();return Mu.or(Mu.and(Mu.not(n),Mu.or(...this.values.map(i=>t(i)))),Mu.and(n,Mu.and(...this.values.map(i=>Mu.equals(i,Mu.valueSelect(null,[])))))).optimizedCondition()}}nn([Ri,Xe("design:type",Function),Xe("design:paramtypes",[]),Xe("design:returntype",Object)],k$.prototype,"optimizedValue",null);function lHe(e,t){if(!(this instanceof wn&&e!=="path"&&e!=="type")&&e!=="__isOptimized")return t}function a3(e){return JSON.stringify(e,lHe)}var vJ;(function(e){e.bucket="bucket",e.grouping="grouping",e.raw="raw"})(vJ||(vJ={}));var sS;(function(e){e.Id="application_id",e.ArchivedAt="archived_at",e.ArchivedBy="archived_by",e.CurrentInterviewStage="current_interview_stage_id",e.CurrentInterviewStageName="current_interview_stage_name",e.CurrentInterviewStageGroup="current_interview_stage_type_id",e.CurrentInterviewStageType="current_interview_stage_type",e.DaysInCurrentInterviewStage="days_in_current_interview_stage",e.DaysInCurrentInterviewStageGroup="days_in_current_interview_stage_type",e.CurrentInterviewStageBuiltInId="current_interview_stage_built_in_id",e.ArchiveReason="archive_reason",e.ArchiveReasonType="archive_reason_type",e.WasAutoRejected="auto_rejected",e.CandidateId="candidate_id",e.CandidateIdSelect="candidate_id_select",e.Outcome="status",e.OutcomeWithArchiveReason="outcome_with_archive_reason",e.HasActiveApplicationReviewSubprocess="has_active_application_review_subprocess",e.IsInPreInterviewStage="is_in_pre_interview_stage",e.IsInOfferStage="is_in_offer_stage",e.HasOfferWaitingOnCreation="has_offer_waiting_on_creation",e.ApplicationReviewSubprocessAssignedToUser="application_review_subprocess_assigned_to_user",e.ProcessStatus="process_status",e.Job="job_id",e.AppliedViaPosting="applied_via_posting_id",e.SubmittedAt="submitted_at",e.UpdatedAt="updated_at",e.StartedOrResumedAt="started_or_resumed_at",e.EndedAt="consideration_ended_at",e.HiredAt="hired_at",e.LastActivityAt="last_activity_at",e.OfferStageEnteredAt="offer_stage_entered_at",e.Source="source",e.SourceType="source_type",e.CreditedTo="credited_to",e.PassedThroughStage="passed_through_stage",e.PassedThroughStageName="passed_through_stage_name",e.PassedThroughStageGroup="reached_interview_stage_group_type",e.ReachedStage="reached_stage",e.ReachedStageName="reached_stage_name",e.ReachedStageGroup="reached_stage_group",e.ReachedStageType="reached_stage_type",e.MaxStageReached="max_stage_reached",e.MaxStageNameReached="max_stage_name_reached",e.MaxStageGroupReached="max_interview_stage_group",e.MostRecentActiveStage="most_recent_active_stage",e.ApplicationReviewAverageScore="application_review_average_score",e.AverageScoreCardValue="average_scorecard_value",e.ExtendedOffer="extended_offer",e.LeverProfileUrl="lever_profile_url",e.ApproverForApplication="user_is_approver_for_application",e.HasPendingApproval="pending_approval",e.Involves="involves",e.HasPendingCandidateExperienceSurvey="pending_candexp_survey",e.HasPendingEEOCSurvey="pending_eeoc_survey",e.HasPendingAssessment="pending_assessment",e.ImportedId="imported_id",e.TimeInProcess="time_in_process",e.IsEnrolledInQualityOfHireSequence="enrolled_in_quality_of_hire",e.IsDirectReferral="is_direct_referral",e.WasTransferredFromJob="was_transferred_from_job",e.IsEnrolledInOnboardingWorkflow="is_enrolled_in_onboarding_workflow",e.AiJobCriteriaScoresAreHiddenBecauseLegalNoticeHasNotBeenViewed="ai_job_criteria_scores_are_hidden_because_legal_notice_has_not_been_viewed",e.AiJobCriteriaMetPercentage="ai_job_criteria_met_percentage"})(sS||(sS={}));var yJ;(function(e){e.InterviewStageGroup="interview_stage_group_id",e.InterviewStageName="interview_stage_name",e.InterviewStageType="interview_stage_type",e.WasInStageDuring="was_in_any_stage_during"})(yJ||(yJ={}));var sf;(function(e){e.ActiveCandidateCount="active_candidate_count",e.AgencyRolesWithPermission="agency_roles_with_permission",e.AgencyRolesWithTeamPermission="agency_roles_with_team_permission",e.AllExceptConfidential="all_except_confidential",e.ApplicableForOpeningVersion="applicable_for_opening_version",e.ApproverForJob="approver_for_job",e.Author="author",e.CloseJobReason="close_job_reason",e.ClosedAt="closed_at",e.ClosedAtOrNow="closed_at_or_now",e.ClosedOpeningsCount="closed_openings_count",e.ConfidentialJobAuthor="confidential_job_author",e.CreatedAt="created_at",e.CustomRequisitionId="custom_requisition_id",e.Department="department.id",e.EmploymentType="employment_type",e.ExternalVisibility="external_visibility",e.FilledOpeningsCount="filled_openings_count",e.GreenhouseJobId="greenhouse_job_id",e.HasConfiguredAssessment="has_configured_assessment",e.HasConfiguredJobCriteria="has_configured_job_criteria",e.HasMultipleInterviewPlans="has_multiple_interview_plans",e.HasPendingApproval="has_pending_approval",e.HasTeam="has_team",e.Id="id",e.ImportedId="imported_id",e.IncludesConfiguredInterviewSlots="includes_configured_interview_slots",e.InternalVisibility="internal_visibility",e.Involves="involves",e.IsConfidential="confidential",e.IsPublishedOnJobBoard="is_published_on_job_board",e.IsSyncedFrom="is_synced_from",e.IsTemplate="is_template",e.Job="job_id",e.JobIdQueryScopeJob="job_id_query_scope_job",e.Location="location.id",e.OpenForDays="open_for_days",e.OpenOpeningsCount="open_openings_count",e.OpenedAt="opened_at",e.Region="region.id",e.RolesWithPermission="roles_with_permission",e.RolesWithTeamPermission="roles_with_team_permission",e.Status="status",e.Team="team.id",e.Title="title",e.TotalOpeningsCount="total_openings_count",e.UpdatedAt="updated_at",e.WasOpen="was_open"})(sf||(sf={}));var SJ;(function(e){e.Id="id",e.FromInterviewStageGroupId="from_interview_stage_group_id",e.FromInterviewStageId="from_interview_stage_id",e.FromInterviewStageName="from_interview_stage_name_id",e.FromInterviewStageType="from_interview_stage_type",e.ToInterviewStageGroupId="to_interview_stage_group_id",e.Outcome="outcome",e.ToInterviewStageId="to_interview_stage_id",e.ToInterviewStageName="to_interview_stage_name_id",e.ToInterviewStageType="to_interview_stage_type",e.ArchiveReason="archive_reason",e.DaysInStage="days_in_stage",e.EnteredAt="entered_at",e.LeftAt="left_at"})(SJ||(SJ={}));var o3;(function(e){e.Projects="projects",e.Involves="involves",e.Tag="tag.id",e.ApplicationSources="source.id",e.ResumeFullText="resume_full_text",e.YearsOfExperience="years_of_experience",e.LinkedInProfileURL="linkedin_url",e.CurrentJobTitle="current_job_title",e.HeldJobTitle="held_job_title",e.AddedBy="added_by",e.Location="location",e.CandidateSource="candidate_source",e.CreditedTo="candidate_credited_to",e.Job="application_job_title",e.MatchById="match_by_id"})(o3||(o3={}));var Cg;(function(e){e.IsArchived="is_archived",e.Job="job.id",e.Status="status",e.OpenedAt="opened_at",e.ClosedAt="closed_at",e.OpenDuration="open_duration",e.CloseReason="close_reason",e.WasOpen="was_open",e.CreatedAt="created_at",e.BulkDataImports="bulk_data_imports",e.IsSyncedFrom="is_synced_from"})(Cg||(Cg={}));var lS;(function(e){e.OpeningId="opening_id",e.IsBackfill="is_backfill",e.Author="author.id",e.Description="description",e.Team="team.id",e.Department="department.id",e.EmploymentType="employment_type",e.Location="location.id",e.Region="region.id",e.CreatedAt="created_at",e.TargetHireDate="target_hire_date",e.TargetStartDate="target_start_date",e.ApplicableForJob="applicable_for_job.id",e.Job="job.id",e.NumberOfLinkedJobs="number_of_linked_jobs",e.IsLatestVersion="is_latest_version",e.UpdatedAt="updated_at",e.OpeningCreatedAt="opening.created_at",e.IsConfidential="is_confidential"})(lS||(lS={}));var bJ;(function(e){e.ScheduledInStage="scheduled_in_stage_id",e.ScheduledInStageName="scheduled_in_stage_name",e.ScheduledInStageGroup="scheduled_in_stage_group_type_id",e.StartTime="start_time",e.Duration="duration",e.Interviewer="interviewer",e.InterviewTitle="interview_title",e.Organizer="organizer",e.CreatedAt="created_at",e.IsFeedbackRequired="is_feedback_required",e.IsFeedbackRequested="is_feedback_requested",e.Type="type"})(bJ||(bJ={}));var TJ;(function(e){e.Id="id",e.SubmittedAt="submitted_at",e.SubmittedBy="submitted_by",e.SubmittedNPS="submitted_nps",e.MostRecentCandidateExperienceSurveys="most_recent_candexp_surveys",e.RequestCreatedAt="request_created_at",e.IsCandidateExperienceSurvey="is_candidate_experience_survey",e.IsSubmittedAnonymously="is_submitted_anonymously",e.IsPromoter="is_promoter",e.IsPassive="is_passive",e.IsDetractor="is_detractor",e.Team="team",e.Job="job",e.Title="title",e.Candidate="candidate"})(TJ||(TJ={}));var _J;(function(e){e.Id="id",e.ApplicationId="application_id",e.CandidateId="candidate_id",e.FormTitle="form.title",e.FormSubmissionMode="form.submission_mode",e.FormSurveyType="survey_type",e.RequestCreatedAt="request_created_at",e.SubmittedAt="submitted_at",e.HasBeenSubmitted="has_been_submitted"})(_J||(_J={}));var EJ;(function(e){e.Id="id",e.SubmittedAt="submitted_at",e.SubmittedBy="submitted_by",e.MostRecentHiringManagerExperienceSurveys="most_recent_hmexp_surveys",e.RequestCreatedAt="request_created_at",e.IsHiringManagerExperienceSurvey="is_hiring_manager_experience_survey",e.IsSubmittedAnonymously="is_submitted_anonymously",e.Team="team",e.Job="job",e.Title="title",e.Candidate="candidate",e.NPS="nps",e.OverallRating="overall_rating",e.CommunicationRating="communication_rating",e.IntakeRating="intake_rating",e.RoleUnderstandingRating="role_understanding_rating",e.SchedulingRating="scheduling_rating"})(EJ||(EJ={}));var wJ;(function(e){e.Id="id",e.FormTitle="form.title",e.FormSubmissionMode="form.submission_mode",e.RequestCreatedAt="request_created_at",e.SubmittedAt="submitted_at",e.HasBeenSubmitted="has_been_submitted",e.RecipientUser="recipient_user",e.SubjectUser="subject_user",e.Status="status",e.IsHiringManagerExperienceSurvey="is_hiring_manager_experience_survey",e.TimeToSubmissionDays="time_to_submission_days"})(wJ||(wJ={}));var kJ;(function(e){e.Id="id",e.CreatedAt="created_at",e.UpdatedAt="updated_at",e.InterviewerTag="interviewer_tag",e.InterviewerPoolStatus="interviewer_pool_status",e.InterviewerLimitDailyMax="interviewer_limit_daily_max",e.InterviewerLimitWeeklyMax="interviewer_limit_weekly_max",e.InterviewerPoolTraineeOn="interviewer_pool_trainee_on",e.InterviewerPoolTrainedMemberOn="interviewer_pool_trained_member_on",e.Name="name",e.Email="email",e.JobTitle="job_title",e.Tenure="tenure",e.AnalyticsProductUserLicensing="analytics_user_licensing",e.IsServiceAccount="is_service_account",e.Enabled="enabled",e.Provisioned="provisioned",e.Status="employee_status",e.HasLoggedIn="has_logged_in",e.Agency="agency",e.Manager="manager",e.StartDate="start_date",e.Role="global_role",e.Timezone="timezone",e.NextAnniversary="next_anniversary",e.RequiresPaidSeat="requires_paid_seat",e.IsLinkedToCandidate="is_linked_to_candidate",e.RoleOnApplication="application_hiring_team_role",e.LinkedInProfileURL="linkedin_url",e.ManagementHierarchy="management_hierarchy",e.IsPausedInterviewer="is_paused_interviewer",e.HasCalendar="has_calendar",e.PersonalEmail="personal_email",e.HasValidGoogleCalendarOAuthToken="has_valid_google_calendar_oauth_token"})(kJ||(kJ={}));var AJ;(function(e){e.Team="team_id",e.Name="name",e.RolesWithPermission="roles_with_permission",e.FullName="fullname",e.IsArchived="is_archived",e.IsDepartment="is_department"})(AJ||(AJ={}));var CJ;(function(e){e.Job="job_id",e.CreatedAt="created_at",e.OpenedAt="opened_at",e.ClosedAt="closed_at",e.WasOpen="was_open",e.All="all",e.None="none",e.OpenForDays="open_for_days",e.RequisitionId="requisition_id",e.Status="status",e.CloseReason="close_reason",e.ApprovedOpenings="approved_openings",e.OpenHeadcount="open_headcount",e.ApprovedOrCreatedAt="approved_or_created_at",e.Team="team_id",e.Department="department_id",e.Author="author_id"})(CJ||(CJ={}));var NJ;(function(e){e.Id="id",e.CreatedAt="created_at",e.Project="project",e.Title="title",e.Status="status",e.Author="author"})(NJ||(NJ={}));var IJ;(function(e){e.Id="id",e.Title="title",e.Author="author",e.StartTime="start_time",e.Status="status",e.LocationType="location_type"})(IJ||(IJ={}));var OJ;(function(e){e.Id="id",e.CreatedAt="created_at",e.HiringEvent="hiring_event_id",e.RsvpStatus="rsvp_status",e.ApprovalStatus="approval_status",e.ArchivedAt="archived_at",e.CheckedInAt="checked_in_at",e.IsCheckedIn="is_checked_in",e.AudienceMemberCandidateName="audience_member_candidate_name",e.TimeSlot="time_slot"})(OJ||(OJ={}));var DJ;(function(e){e.Id="id",e.Title="title",e.Author="author",e.Status="status"})(DJ||(DJ={}));var xJ;(function(e){e.Id="id",e.NewsletterTemplate="newsletter_template",e.Status="status",e.NumberOfOpens="number_of_opens",e.NumberOfClicks="number_of_clicks",e.HasOpens="has_opens",e.HasClicks="has_clicks",e.NextStageScheduledAt="next_stage_scheduled_at",e.LatestStageSentAt="latest_stage_sent_at"})(xJ||(xJ={}));var qy;(function(e){e.QualityOfHire="quality_of_hire",e.HiringManager="hiring_manager",e.SurveyTemplate="survey_template",e.Status="status",e.Tenure="tenure",e.StartDate="start_date",e.LastSurveyed="last_surveyed"})(qy||(qy={}));var MJ;(function(e){e.Status="status",e.SurveyForm="survey_form",e.RequestedAt="requested_at",e.SubmittedAt="submitted_at",e.SubmittedBy="submitted_by",e.HasBeenSubmitted="has_been_submitted",e.TenureAtSubmission="tenure_at_submission",e.TimeToSubmissionDays="time_to_submission_days",e.OverdueForDays="overdue_for_days",e.QualityOfHire="quality_of_hire",e.LatestSubmissionInRange="latest_submission_in_range"})(MJ||(MJ={}));var RJ;(function(e){e.Title="title",e.IsArchived="is_archived",e.RequiresTraining="requires_training",e.TrainingRequiresApproval="training_requires_approval",e.HasPendingApprovals="has_pending_approvals",e.NumberQualified="number_qualified",e.NumberTrainees="number_trainees",e.NumberPendingApproval="number_pending_approval",e.CreatedAt="created_at"})(RJ||(RJ={}));var PJ;(function(e){e.Status="status",e.WaitingOnAvailability="waiting_on_availability",e.HasScheduleRequest="has_schedule_request",e.ProcessStatusDueAt="process_status_due_at",e.HasRsvpDecline="has_rsvp_decline",e.OwnedBy="owned_by"})(PJ||(PJ={}));var FJ;(function(e){e.Assignee="assignee",e.Author="author"})(FJ||(FJ={}));var LJ;(function(e){e.Id="id",e.MeetingRoomTag="meeting_room_tag"})(LJ||(LJ={}));var BJ;(function(e){e.Pool="pool",e.InterviewerRole="interviewer_role",e.AddedToPoolAt="added_to_pool_at",e.RemovedFromPoolAt="removed_from_pool_at",e.TrainingStartedAt="training_start_at",e.FirstTrainingInterviewStartedAt="first_training_interview_started_at",e.AddedToPoolAsTraineeAt="added_to_pool_as_trainee_at",e.ShadowInterviewsCompletedCount="shadow_interviews_completed_count",e.ReverseShadowInterviewsCompletedCount="reverse_shadow_interviews_completed_count",e.TrainingInterviewsCompletedCount="training_interviews_completed_count",e.AddedToPoolAsQualifiedAt="added_to_pool_as_qualified_at",e.IsPendingApproval="is_pending_approval",e.UpcomingShadowInterviewCount="upcoming_shadow_interview_count",e.UpcomingReverseShadowInterviewCount="upcoming_reverse_shadow_interview_count",e.UpcomingShadowInterviewDate="upcoming_shadow_interview_date",e.UpcomingReverseShadowInterviewDate="upcoming_reverse_shadow_interview_date",e.UpcomingTrainingInterviewDate="upcoming_training_interview_date",e.MostRecentlyCompletedShadowInterviewDate="most_recently_completed_shadow_interview_date",e.MostRecentlyCompletedReverseShadowInterviewDate="most_recently_completed_reverse_shadow_interview_date",e.MostRecentlyCompletedTrainingInterviewDate="most_recently_completed_training_interview_date",e.DaysInTraining="days_in_training",e.DaysInCurrentMembershipType="days_in_current_membership_type",e.CurrentInterviewerTrainingRole="current_interviewer_training_role",e.IsPaused="is_paused",e.IsNotPausedOn="is_not_paused_on",e.PoolName="pool_name",e.Interviewer="interviewer",e.WasQualifiedRange="was_qualified_range",e.WasTrainingRange="was_training_range",e.QualifiedInterviewsCompletedCount="qualified_interviews_completed_count"})(BJ||(BJ={}));var $J;(function(e){e.Id="id",e.Title="title",e.Status="status",e.StartDate="start_date"})($J||($J={}));var UJ;(function(e){e.Id="id",e.Title="title",e.Status="status",e.AssignedAt="assigned_at",e.DueAt="due_at",e.CompletedAt="completed_at",e.IsOverdue="is_overdue",e.Assignee="assignee",e.WorkflowName="workflow_name",e.Type="type"})(UJ||(UJ={}));var HJ;(function(e){e.StartedAt="started_at",e.EndedAt="ended_at",e.Reason="reason",e.Author="author"})(HJ||(HJ={}));var tt;(function(e){e.job="job_shared",e.team="team_shared",e.location="location",e.source="source_shared",e.timeframe="timeframe_shared"})(tt||(tt={}));function uHe(e){switch(e){case G.Application:return new Map([[tt.job,"job_id"],[tt.source,"source"],[tt.team,"job.team.id"],[tt.location,"job.location.id"],[tt.timeframe,"submitted_at"]]);case G.Candidate:return new Map([[tt.job,"application.job_id"],[tt.source,"source.id"],[tt.team,"application.job.team.id"],[tt.location,"application.job.location.id"],[tt.timeframe,"created_at"]]);case G.Job:return new Map([[tt.job,"id"],[tt.team,"team.id"],[tt.location,"location.id"]]);case G.Interview:return new Map([[tt.job,"application.job_id"],[tt.source,"application.source"],[tt.team,"application.job.team.id"],[tt.location,"application.job.location.id"],[tt.timeframe,"start_time"]]);case G.StageTransition:return new Map([[tt.job,"application.job_id"],[tt.source,"application.source"],[tt.team,"application.job.team.id"],[tt.location,"application.job.location.id"],[tt.timeframe,"entered_at"]]);case G.FeedbackForm:return new Map([[tt.job,"application.job_id"],[tt.source,"application.source"],[tt.team,"interview.application.job.team.id"],[tt.location,"interview.application.job.location.id"],[tt.timeframe,"submitted_at"]]);case G.InterviewerEvent:return new Map([[tt.job,"interview.application.job_id"],[tt.source,"interview.application.source"],[tt.team,"interview.application.job.team.id"],[tt.location,"interview.application.job.location.id"],[tt.timeframe,"start_time"]]);case G.ProspectProcess:return new Map([[tt.job,"job.id"],[tt.timeframe,"created_at"]]);case G.Requisition:return new Map([[tt.job,"job_id"]]);case G.Opening:return new Map([[tt.job,Cg.Job]]);case G.CandidateExperienceSurvey:return new Map([[tt.timeframe,"submitted_at"],[tt.source,"application.source"],[tt.job,"application.job_id"],[tt.team,"application.job.team.id"],[tt.location,"application.job.location.id"]]);case G.CandidateExperienceSurveyRequest:return new Map([[tt.timeframe,"submitted_at"],[tt.job,"application.job_id"],[tt.team,"application.job.team.id"]]);case G.HiringEventAudienceMember:return new Map([[tt.timeframe,"created_at"]]);case G.QualityOfHireEnrollmentStep:return new Map([[tt.timeframe,"latest_submission_in_range"]]);case G.QualityOfHireEnrollment:return new Map([[tt.timeframe,"start_date"]]);case G.InterviewerPoolMember:return new Map([[tt.timeframe,"added_to_pool_at"]]);case G.HiringManagerExperienceSurvey:return new Map([[tt.timeframe,"submitted_at"]]);case G.HiringManagerExperienceSurveyRequest:return new Map([[tt.timeframe,"request_created_at"]])}throw new Error(`Object type is not providing field paths for shared filters, but should! Object type: ${JSON.stringify(e)}`)}var tN=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},A$=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Ng;(function(e){e[e.value=0]="value",e[e.dateInterval=1]="dateInterval",e[e.numericalInterval=2]="numericalInterval"})(Ng||(Ng={}));let VJ=class{constructor(t,n){this.groupByType=Ng.value,this.fieldPath=t,this.humanReadableTitle=n}};VJ=tN([ne("AshbyQLGroupByValue"),A$("design:paramtypes",[String,String])],VJ);let zJ=class{constructor(t,n,r,i){this.groupByType=Ng.dateInterval,this.fieldPath=t,this.dateRange=n,this.interval=r,this.humanReadableTitle=i}};zJ=tN([ne("AshbyQLGroupByDateInterval"),A$("design:paramtypes",[String,Object,String,String])],zJ);let qJ=class{constructor(t,n,r){this.groupByType=Ng.dateInterval,this.fieldPath=t,this.interval=n,this.humanReadableTitle=r}};qJ=tN([ne("AshbyQLGroupByOpenDateInterval"),A$("design:paramtypes",[String,String,String])],qJ);let WJ=class{constructor(){this.groupByType=Ng.dateInterval}};WJ=tN([ne("AshbyQLGroupByNumericalInterval")],WJ);function _0e(e){return e.groupBy!==void 0&&e.queryableField!==void 0}const cHe=new _p({path:tt.timeframe,humanReadablePath:"Timeframe",title:"Timeframe"});new Ua({path:tt.source,humanReadablePath:"Source",title:"Source",searchIndex:$i.SearchSourceByTitle}),new Ua({path:tt.job,humanReadablePath:"Job",title:"Job",searchIndex:$i.SearchJobs}),new Ua({path:tt.team,humanReadablePath:"Team",title:"Team",searchIndex:$i.SearchTeamByName}),new Ua({path:tt.location,humanReadablePath:"Location",title:"Location",searchIndex:$i.SearchLocationByName});var kl=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Al=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},IR,OR,DR,xR,MR,RR,PR,FR,LR,jJ;(function(e){e.Chart="Chart",e.Table="Table"})(jJ||(jJ={}));var GJ;(function(e){e.Popular="Popular",e.CurrentPipeline="Pipeline Reports",e.ConversionRates="Conversion Rates",e.HeadcountPlanning="Headcount Planning",e.HiringSpeed="Hiring Speed",e.Offers="Offers",e.Hires="Hires",e.Jobs="Jobs",e.Activity="Activity",e.InterviewerStats="Interviewer Stats",e.Sourcing="Sourcing",e.QualityOfHire="Quality of Hire",e.HiringManagerExperience="Hiring Manager Experience",e.EeocSurveys="EEOC Surveys",e.DiversityAnalytics="Diversity Analytics",e.Misc="Misc"})(GJ||(GJ={}));var JJ;(function(e){e.NewHires="New Hires",e.Onboarding="Onboarding",e.CandidateVelocity="Maintaining Candidate Velocity & SLAs",e.Referrals="Managing Referrals",e.Feedback="Managing Feedback",e.CandidateExperienceSurveys="Candidate Experience Surveys",e.JobStatus="Managing Job Status and Setup",e.RecruitingOps="Recruiting Operations & Coordination",e.Misc="Misc"})(JJ||(JJ={}));var YJ;(function(e){e.requested="requested",e.inProgress="in_progress",e.complete="complete",e.failed="failed"})(YJ||(YJ={}));var bn;(function(e){e.CandidateList="CandidateList",e.CountOverTime="CountOverTime",e.TimeInProcess="TimeInProcess",e.InterviewStageConversionRatesFlow="InterviewStageConversionRatesFlow",e.Segmentation="Segmentation",e.StageFunnel="StageFunnel",e.Pipeline="Pipeline",e.AshbyQLReport="AshbyQLReport",e.ShowAllReport="ShowAllReport"})(bn||(bn={}));var cc;(function(e){e.None="none",e.ByStage="by_stage"})(cc||(cc={}));class nN{constructor({type:t,title:n,notes:r,timezone:i,tableState:a}){this.type=t,this.title=n,this.notes=r,this.timezone=i||mu.user,this.tableState=a}onDecodeComplete(){this.timezone==null&&(this.timezone=mu.user)}minifyFields(){}}var KJ;(function(e){e.Summary="column.candidate_summary",e.Status="column.candidate_status",e.Applications="column.applications",e.TalentProjects="column.projects",e.LastRefreshedAt="last_refreshed_at"})(KJ||(KJ={}));var s3;(function(e){e.List="List"})(s3||(s3={}));let QJ=IR=class extends nN{constructor({title:t,notes:n,dimension:r,columnIds:i,orderByFields:a,timezone:o,visualization:s,tableState:l}){super({type:bn.CandidateList,title:t,notes:n,timezone:o}),this.dimension=r,this.columnIds=i,this.orderByFields=a,this.visualization=s??s3.List,this.tableState=l}copy(){return new IR({title:this.title,notes:this.notes,dimension:this.dimension,columnIds:this.columnIds,orderByFields:this.orderByFields,timezone:this.timezone,visualization:this.visualization,tableState:this.tableState})}isValid(){return this.dimension===void 0||this.dimension.isValid()}applyTimezoneToFilter(){this.dimension&&(this.dimension=xd(this.dimension,this.timezone))}getAllowedVisualizations(){return Object.values(s3)}minifyFields(){hu(this.dimension)}};QJ=IR=kl([ne("CandidateListReport"),Al("design:paramtypes",[Object])],QJ);class em extends nN{constructor({filterDimension:t,...n}){super(n),this.filterDimension=t}applyTimezoneToFilter(){var t;this.filterDimension&&(this.filterDimension=xd(this.filterDimension,(t=this.timezone)!==null&&t!==void 0?t:mu.user))}}var Cr;(function(e){e.Line="Line",e.Bar="Bar",e.StackedBar="StackedBar",e.Table="Table"})(Cr||(Cr={}));var Wy;(function(e){e.Rate="Rate",e.RunningTotal="RunningTotal"})(Wy||(Wy={}));var ZJ;(function(e){e.ReferenceLine="ReferenceLine",e.TrendLine="TrendLine"})(ZJ||(ZJ={}));var XJ;(function(e){e.Date="__date__",e.Count="__count__"})(XJ||(XJ={}));var eY;(function(e){e.Average="Average",e.Sum="Sum"})(eY||(eY={}));let tY=OR=class extends em{constructor(t){super({type:bn.CountOverTime,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone}),this.timeInterval=t.timeInterval,this.datePivotField=t.datePivotField,this.aggregationMethod=t.aggregationMethod,this.aggregationField=t.aggregationField,this.objectType=t.objectType,this.groupByFields=t.groupByFields,this.dateRange=t.dateRange,this.visualization=t.visualization,this.hideNumbers=t.hideNumbers,this.showPercentagesForStackedBar=t.showPercentagesForStackedBar,this.showHundredPercentColumnForStackedBar=t.showHundredPercentColumnForStackedBar,this.pivotModeEnabled=t.pivotModeEnabled,this.showPivotRowTotals=t.showPivotRowTotals,this.showPivotColumnTotals=t.showPivotColumnTotals,this.hideGroupLabels=t.hideGroupLabels,this.countType=t.countType,this.goalLines=t.goalLines,this.orderByFields=t.orderByFields,this.pivotByFields=t.pivotByFields,this.interviewGrouping=Object.keys(t).length===0?void 0:t.interviewGrouping!=null?t.interviewGrouping:cc.ByStage}copy(){const t={title:this.title,notes:this.notes,filterDimension:this.filterDimension,timeInterval:this.timeInterval,datePivotField:this.datePivotField,aggregationMethod:this.aggregationMethod,aggregationField:this.aggregationField,timezone:this.timezone,objectType:this.objectType,groupByFields:this.groupByFields,dateRange:this.dateRange,visualization:this.visualization,hideNumbers:this.hideNumbers,showPercentagesForStackedBar:this.showPercentagesForStackedBar,showHundredPercentColumnForStackedBar:this.showHundredPercentColumnForStackedBar,showPivotRowTotals:this.showPivotRowTotals,showPivotColumnTotals:this.showPivotColumnTotals,pivotModeEnabled:this.pivotModeEnabled,pivotByFields:this.pivotByFields,hideGroupLabels:this.hideGroupLabels,interviewGrouping:this.interviewGrouping,countType:this.countType,goalLines:this.goalLines,orderByFields:this.orderByFields};return new OR(t)}isValid(){return(this.filterDimension==null||this.filterDimension.isValid())&&(this.aggregationMethod==null||this.aggregationField!=null)&&this.datePivotField!=null&&this.dateRange!=null&&this.dateRange.isValid()}onDecodeComplete(){super.onDecodeComplete(),this.interviewGrouping==null&&(this.groupByFields.some(t=>t.path==="interviewer")||this.groupByFields.some(t=>t.path==="interview_title")?this.interviewGrouping=cc.None:this.interviewGrouping=cc.ByStage),this.visualization==null&&(this.visualization=Cr.StackedBar),this.pivotByFields==null&&(this.pivotByFields=this.datePivotField?[this.datePivotField]:[])}getAllowedVisualizations(t){return Object.values(Cr).filter(n=>!(n===Cr.StackedBar&&this.aggregationField!=null||n===Cr.Table&&t===!1))}minifyFields(){lf(this.aggregationField),lf(this.datePivotField),Ap(this.groupByFields),Ap(this.pivotByFields),hu(this.filterDimension)}};tY=OR=kl([ne("CountOverTimeReport.v2"),Al("design:paramtypes",[Object])],tY);var cl;(function(e){e.StackedBar="StackedBar",e.Table="Table"})(cl||(cl={}));var nY;(function(e){e.Stage="__stage__",e.InterviewPlan="__interview_plan__",e.Segments="__segments__",e.DaysInProcess="__days_in_process__"})(nY||(nY={}));let rY=DR=class extends em{constructor(t){var n;super({type:bn.TimeInProcess,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone}),this.objectType=t.objectType,this.dateRange=t.dateRange,this.datePivotField=t.datePivotField,this.groupByFields=t.groupByFields,this.groupByStageTypes=t.groupByStageTypes,this.hidePreInterviewStages=(n=t.hidePreInterviewStages)!==null&&n!==void 0?n:!0,this.hideLeadStages=t.hideLeadStages,this.orderByFields=t.orderByFields,this.visualization=t.visualization,this.hiddenStageGroupIds=t.hiddenStageGroupIds}copy(){const t={title:this.title,notes:this.notes,timezone:this.timezone,filterDimension:this.filterDimension,objectType:this.objectType,dateRange:this.dateRange,datePivotField:this.datePivotField,groupByStageTypes:this.groupByStageTypes,groupByFields:this.groupByFields,hidePreInterviewStages:this.hidePreInterviewStages,hideLeadStages:this.hideLeadStages,hiddenStageGroupIds:this.hiddenStageGroupIds,orderByFields:this.orderByFields,visualization:this.visualization};return new DR(t)}isValid(){return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.objectType&&this.datePivotField!==void 0&&this.dateRange!==void 0&&this.dateRange.isValid()}onDecodeComplete(){super.onDecodeComplete(),this.hideLeadStages==null&&(this.hideLeadStages=!1),this.visualization==null&&(this.visualization=cl.StackedBar),this.hiddenStageGroupIds==null&&(this.hiddenStageGroupIds=[]),this.groupByFields=this.groupByFields.map(t=>_0e(t)?{groupBy:Lr(t.groupBy),queryableField:Lr(t.queryableField)}:t)}getAllowedVisualizations(t){return Object.values(cl).filter(n=>!(n===cl.Table&&t===!1))}minifyFields(){lf(this.datePivotField),Ap(this.groupByFields.filter(t=>t instanceof wn)),hu(this.filterDimension)}};rY=DR=kl([ne("TimeInProcessReport"),Al("design:paramtypes",[Object])],rY);var dl;(function(e){e.Sankey="Sankey",e.Table="Table"})(dl||(dl={}));var iY;(function(e){e.FromStage="__from_stage__",e.ToStage="__to_stage__",e.Count="__count__",e.Percentage="__percentage__"})(iY||(iY={}));let aY=xR=class extends em{constructor(t){super({type:bn.InterviewStageConversionRatesFlow,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone}),this.objectType=t.objectType,this.dateRange=t.dateRange,this.datePivotField=t.datePivotField,this.timezone=t.timezone,this.useStageGroupsInsteadOfStages=t.useStageGroupsInsteadOfStages,this.breakOutArchiveReasons=t.breakOutArchiveReasons,this.orderByFields=t.orderByFields,this.visualization=t.visualization}onDecodeComplete(){super.onDecodeComplete(),this.visualization==null&&(this.visualization=dl.Sankey)}copy(){const t={title:this.title,notes:this.notes,filterDimension:this.filterDimension,objectType:this.objectType,dateRange:this.dateRange,timezone:this.timezone,datePivotField:this.datePivotField,useStageGroupsInsteadOfStages:this.useStageGroupsInsteadOfStages,breakOutArchiveReasons:this.breakOutArchiveReasons,orderByFields:this.orderByFields,visualization:this.visualization};return new xR(t)}isValid(){return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.objectType&&this.objectType===G.StageTransition&&this.datePivotField!==void 0&&this.dateRange!==void 0&&this.dateRange.isValid()}getAllowedVisualizations(t){return Object.values(dl).filter(n=>!(n===dl.Table&&t===!1))}minifyFields(){lf(this.datePivotField)}};aY=xR=kl([ne("InterviewStageConversionRatesFlowReport"),Al("design:paramtypes",[Object])],aY);var mn;(function(e){e.Bar="Bar",e.HeatMap="Heat Map",e.SingleGraphic="Pie/Bar",e.SingleNumber="Single Number",e.Table="Table"})(mn||(mn={}));var BR;(function(e){e.None="None",e.CountOrTotalAscending="Ascending",e.CountOrTotalDescending="Descending"})(BR||(BR={}));var oY;(function(e){e.Count="__count__",e.Percent="__percent__"})(oY||(oY={}));let l3=MR=class extends em{constructor(t){var n;super({type:bn.Segmentation,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone}),this.groupByFields=t.groupByFields,this.objectType=t.objectType,this.datePivotField=t.datePivotField,this.dateRange=t.dateRange,this.resultsMeasure=t.resultsMeasure,this.hideNumbers=t.hideNumbers,this.visualization=t.visualization,this.pivotModeEnabled=t.pivotModeEnabled,this.pivotByFields=(n=t.pivotByFields)!==null&&n!==void 0?n:[],this.singleNumberGroupIdPermutation=t.singleNumberGroupIdPermutation,this.showPivotRowTotals=t.showPivotRowTotals,this.showPivotColumnTotals=t.showPivotColumnTotals,this.sortBy=t.sortBy,this.orderByFields=t.orderByFields,this.goalLines=t.goalLines,this.interviewGrouping=Object.keys(t).length===0?void 0:t.interviewGrouping!=null?t.interviewGrouping:cc.ByStage}copy(){const t={title:this.title,notes:this.notes,filterDimension:this.filterDimension,groupByFields:this.groupByFields,datePivotField:this.datePivotField,timezone:this.timezone,objectType:this.objectType,dateRange:this.dateRange,resultsMeasure:this.resultsMeasure,hideNumbers:this.hideNumbers,visualization:this.visualization,pivotModeEnabled:this.pivotModeEnabled,pivotByFields:this.pivotByFields,singleNumberGroupIdPermutation:this.singleNumberGroupIdPermutation,showPivotRowTotals:this.showPivotRowTotals,showPivotColumnTotals:this.showPivotColumnTotals,sortBy:this.sortBy,orderByFields:this.orderByFields,goalLines:this.goalLines,interviewGrouping:this.interviewGrouping};return new MR(t)}onDecodeComplete(){super.onDecodeComplete(),this.visualization||(this.visualization=this.getDefaultVisualization()),this.sortBy||(this.sortBy=BR.None),this.interviewGrouping==null&&(this.groupByFields.some(t=>t.path==="interviewer")||this.groupByFields.some(t=>t.path==="interview_title")?this.interviewGrouping=cc.None:this.interviewGrouping=cc.ByStage)}isValid(){const n=[...this.getAllowedVisualizations(),mn.Table].includes(this.visualization);return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.datePivotField!==void 0&&this.groupByFields.length!==0&&this.dateRange!==void 0&&this.dateRange.isValid()&&n}getDefaultVisualization(){return this.groupByFields.length<=1?mn.SingleGraphic:mn.Bar}getAllowedVisualizations(t){return Object.values(mn).filter(r=>this.groupByFields.length>1&&r===mn.SingleGraphic||this.groupByFields.length<=1&&(r===mn.Bar||r===mn.HeatMap)?!1:t?!0:r!==mn.Table)}minifyFields(){Ap(this.pivotByFields),hu(this.filterDimension)}};l3.SINGLE_GROUP_VISUALIZATIONS=[mn.SingleGraphic,mn.SingleNumber];l3.MULTIPLE_GROUP_VISUALIZATIONS=[mn.Bar,mn.HeatMap,mn.SingleNumber];l3=MR=kl([ne("SegmentationReport"),Al("design:paramtypes",[Object])],l3);var fl;(function(e){e.Number="Number",e.Table="Table"})(fl||(fl={}));let sY=RR=class extends em{constructor(t){var n;super({type:bn.ShowAllReport,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone,tableState:t.tableState}),this.objectType=t.objectType,this.selectedFields=t.selectedFields,this.orderByFields=t.orderByFields,this.interviewGrouping=(n=t.interviewGrouping)!==null&&n!==void 0?n:cc.None,this.visualization=t.visualization}copy(){const t={title:this.title,notes:this.notes,filterDimension:this.filterDimension,objectType:this.objectType,selectedFields:this.selectedFields,timezone:this.timezone,orderByFields:this.orderByFields,interviewGrouping:this.interviewGrouping,visualization:this.visualization,tableState:this.tableState};return new RR(t)}isValid(){return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.selectedFields.length!==0}onDecodeComplete(){super.onDecodeComplete(),this.visualization==null&&(this.visualization=fl.Table)}getAllowedVisualizations(t=!1){return Object.values(fl).filter(n=>!(n===fl.Table&&t===!1))}minifyFields(){hu(this.filterDimension),Ap(this.selectedFields)}};sY=RR=kl([ne("ShowAllReport"),Al("design:paramtypes",[Object])],sY);var lY;(function(e){e.Count="__count__",e.InterviewPlan="__interview_plan__",e.Stage="__stage__"})(lY||(lY={}));var zi;(function(e){e.Bar="Bar",e.Passthrough="Counts & Passthrough Rates",e.Table="Table"})(zi||(zi={}));const dHe={version:"1",positive:.5,warning:.25};var $R;(function(e){e.Skipped="Skipped",e.PassedThrough="Passed Through",e.RejectedByOrg="Rejected by Org",e.RejectedByCandidate="Rejected by Candidate",e.RejectedOther="Rejected - Other"})($R||($R={}));Object.values($R);let uY=PR=class extends em{constructor(t){super({type:bn.StageFunnel,title:t.title,filterDimension:t.filterDimension,notes:t.notes,timezone:t.timezone}),this.groupByFields=t.groupByFields,this.objectType=t.objectType,this.datePivotField=t.datePivotField,this.dateRange=t.dateRange,this.useStageGroupsInsteadOfStages=t.useStageGroupsInsteadOfStages,this.hidePreInterviewStages=t.hidePreInterviewStages,this.hideLeadStages=t.hideLeadStages,this._hideEmptyStages=t.hideEmptyStages,this.visualization=t.visualization,this.hideNumbers=t.hideNumbers,this.passthroughThresholds=t.passthroughThresholds,this.groupByStageOutcome=t.groupByStageOutcome,this.reportOnProspects=t.reportOnProspects,this.hiddenStageIds=t.hiddenStageIds,this._showActive=t.showActive,this.orderByFields=t.orderByFields}get showActive(){return this.visualization===zi.Bar?!1:this._showActive||!1}set showActive(t){this._showActive=t}get hideEmptyStages(){return this.visualization===zi.Passthrough?!0:this._hideEmptyStages}set hideEmptyStages(t){this._hideEmptyStages=t}onDecodeComplete(){super.onDecodeComplete(),this.visualization||(this.visualization=zi.Bar),this.groupByStageOutcome||(this.groupByStageOutcome=!1),this.hideLeadStages==null&&(this.hideLeadStages=!1),this.hideEmptyStages==null&&(this.hideEmptyStages=!1),this.passthroughThresholds||(this.passthroughThresholds=dHe),this.hiddenStageIds||(this.hiddenStageIds=[]),this._showActive===null&&(this._showActive=!1),this.groupByFields=this.groupByFields.map(t=>_0e(t)?{groupBy:Lr(t.groupBy),queryableField:Lr(t.queryableField)}:t)}copy(){const t={title:this.title,notes:this.notes,filterDimension:this.filterDimension,timezone:this.timezone,groupByFields:this.groupByFields,objectType:this.objectType,datePivotField:this.datePivotField,dateRange:this.dateRange,useStageGroupsInsteadOfStages:this.useStageGroupsInsteadOfStages,hidePreInterviewStages:this.hidePreInterviewStages,hideLeadStages:this.hideLeadStages,hideEmptyStages:this.hideEmptyStages,visualization:this.visualization,hideNumbers:this.hideNumbers,passthroughThresholds:this.passthroughThresholds,groupByStageOutcome:this.groupByStageOutcome,reportOnProspects:this.reportOnProspects,hiddenStageIds:this.hiddenStageIds,showActive:this._showActive,orderByFields:this.orderByFields};return new PR(t)}isValid(){return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.datePivotField!==void 0&&this.dateRange!==void 0&&this.dateRange.isValid()}getAllowedVisualizations(t){return Object.values(zi).filter(n=>t?!0:n!==zi.Table)}minifyFields(){hu(this.filterDimension),Ap(this.groupByFields.filter(t=>t instanceof wn)),lf(this.datePivotField)}};uY=PR=kl([ne("StageFunnelReport"),Al("design:paramtypes",[Object])],uY);var u3;(function(e){e.Pipeline="Pipeline"})(u3||(u3={}));let cY=FR=class extends nN{constructor(t){var n,r,i,a,o;super({type:bn.Pipeline,title:t.title,notes:t.notes,timezone:t.timezone,tableState:t.tableState}),this.dimension=t.dimension,this.isListView=t.isListView,this.visualization=t.visualization,this.hideLeadStages=(n=t.hideLeadStages)!==null&&n!==void 0?n:!0,this.hideReviewStages=(r=t.hideReviewStages)!==null&&r!==void 0?r:!0,this.useStageGroupsInsteadOfStages=(i=t.useStageGroupsInsteadOfStages)!==null&&i!==void 0?i:!1,this.hiddenStageGroupIds=(a=t.hiddenStageGroupIds)!==null&&a!==void 0?a:[],this.hiddenStageIds=(o=t.hiddenStageIds)!==null&&o!==void 0?o:[]}onDecodeComplete(){super.onDecodeComplete(),this.visualization==null&&(this.visualization=u3.Pipeline),this.hideLeadStages==null&&(this.hideLeadStages=!0),this.hideReviewStages==null&&(this.hideReviewStages=!0),this.useStageGroupsInsteadOfStages==null&&(this.useStageGroupsInsteadOfStages=!1),this.hiddenStageGroupIds==null&&(this.hiddenStageGroupIds=[]),this.hiddenStageIds==null&&(this.hiddenStageIds=[])}copy(){return new FR(this)}isValid(){return this.dimension===void 0||this.dimension.isValid()}applyTimezoneToFilter(){var t;this.dimension&&(this.dimension=xd(this.dimension,(t=this.timezone)!==null&&t!==void 0?t:mu.user))}getAllowedVisualizations(){return Object.values(u3)}minifyFields(){hu(this.dimension)}};cY=FR=kl([ne("PipelineReport"),Al("design:paramtypes",[Object])],cY);let c3=LR=class extends em{constructor(t){super({type:bn.CountOverTime,title:t.title,filterDimension:t.filterDimension,notes:void 0,timezone:t.timezone}),this.timeInterval=t.timeInterval,this.datePivotField=t.datePivotField,this.objectType=t.objectType,this.groupByFields=t.groupByFields,this.startDate=t.startDate,this.endDate=t.endDate,this.visualization=t.visualization}copy(){const t={title:this.title,filterDimension:this.filterDimension&&this.filterDimension.copy(),timeInterval:this.timeInterval,datePivotField:this.datePivotField&&this.datePivotField.copy(),objectType:this.objectType,groupByFields:[...this.groupByFields],startDate:this.startDate,endDate:this.endDate,visualization:this.visualization,timezone:this.timezone};return new LR(t)}onDecodeComplete(){super.onDecodeComplete(),this.visualization==null&&(this.visualization=Cr.StackedBar)}isValid(){return(this.filterDimension===void 0||this.filterDimension.isValid())&&this.datePivotField!==void 0&&this.endDate!==void 0&&this.endDate!==null&&this.startDate!==void 0&&this.startDate!==null&&this.endDate>this.startDate}getAllowedVisualizations(t=!1){return Object.values(Cr).filter(n=>!(n===Cr.Table&&t===!1))}minifyFields(){hu(this.filterDimension),Ap(this.groupByFields),lf(this.datePivotField)}};kl([Aa(jn.DateOrNullTypeMarker),Al("design:type",Object)],c3.prototype,"startDate",void 0);kl([Aa(jn.DateOrNullTypeMarker),Al("design:type",Object)],c3.prototype,"endDate",void 0);c3=LR=kl([ne("CountOverTimeReport"),Al("design:paramtypes",[Object])],c3);var dY;(function(e){e.cache="CACHE",e.live="LIVE"})(dY||(dY={}));function lf(e){eN(e)||(delete e.description,delete e.descriptionHtml,delete e.sampleValues,delete e.canBeSelected,delete e.canBeUsedForFiltering,"selectableValues"in e&&delete e.selectableValues)}function Ap(e){if(!eN(e))for(const t of e)lf(t)}function hu(e){if(!eN(e))if(e instanceof fd||e instanceof dd)lf(e.field);else if(e instanceof Jo||e instanceof pd)for(const t of e.value)hu(t);else e instanceof md&&hu(e.value)}var UR;(function(e){e.number="number",e.percentage="percentage",e.timeInterval="timeInterval",e.timeIntervalDays="timeIntervalDays"})(UR||(UR={}));var Ei;(function(e){e.table="table",e.lineChart="lineChart",e.barChart="barChart",e.pieChart="pieChart"})(Ei||(Ei={}));var fY;(function(e){e.homogeneous="homogeneous",e.heterogeneous="heterogeneous"})(fY||(fY={}));var C$=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},N$=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},d3;(function(e){e.individual="AshbyQLIndividualQuery",e.composed="AshbyQLComposedQuery"})(d3||(d3={}));let Cp=class{constructor({aggregateFunction:t,selectedFields:n,dimensionSelect:r,resultType:i,fieldPathsForSharedFiltersAndGroupings:a,homogenousFilterPathPrefix:o}){this.type=d3.individual,this.selectedFields=[],this.errors=[],this.aggregateFunction=t,this.selectedFields=n,this.resultType=i,this.dimensionSelect=r,this.fieldPathsForSharedFiltersAndGroupings=a,this.homogenousFilterPathPrefix=o,a&&this.onDecodeComplete()}onDecodeComplete(){const t=this.dimensionSelect.field.path,n=uHe(t);this.fieldPathsForSharedFiltersAndGroupings=new zB([...n,...this.fieldPathsForSharedFiltersAndGroupings||[]])}applyTimezoneToFilter(t){this.dimensionSelect=xd(this.dimensionSelect,t)}};C$([Aa(jn.MapTypeMarker),N$("design:type",zB)],Cp.prototype,"fieldPathsForSharedFiltersAndGroupings",void 0);Cp=C$([ne("AshbyQLIndividualQuery"),N$("design:paramtypes",[Object])],Cp);let Ig=class{constructor(t,n,r){this.type=d3.composed,this.errors=[],this.resultComposition=t,this.subQueries=n,this.resultTypes=r}applyTimezoneToFilter(t){for(const n of this.subQueries)n.applyTimezoneToFilter(t)}};Ig=C$([ne("AshbyQLComposedQuery"),N$("design:paramtypes",[Array,Array,Array])],Ig);const fHe=/\S/;function Vr(e){return e==null?!0:typeof e=="string"?e.length===0||!fHe.test(e):e.length===0}function E0e(e,t=!1){return t&&e==null?!0:typeof e=="string"}function w0e(e,t=!1){return t&&e==null?!0:E0e(e)&&Tp.isUUID(e)}function pHe(e,t=!1){return t&&e==null?!0:typeof e=="string"&&e.startsWith("mailto:")&&Tp.isEmail(e.replace("mailto:",""))}function mHe(e){const{value:t,allowNullOrUndefined:n,shouldRequireProtocol:r,allowLocalhost:i}=e;return n===!0&&t==null?!0:E0e(t)&&Tp.isURL(t,{protocols:["http","https"],require_protocol:r===!0,require_tld:i!==!0,validate_length:!1})}var pY;(function(e){e.HttpsPrefix="https_prefix",e.WwwPrefix="www_prefix",e.InvalidFormat="invalid_format"})(pY||(pY={}));var bc=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tm=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},uf;(function(e){e.count="count",e.divide="divide",e.average="average",e.minus="minus",e.selectSubqueryResult="selectSubqueryResult",e.sum="sum"})(uf||(uf={}));let HR=class{constructor(t,n){this.referenceType=Og.subqueryResultReference,this.errors=[],this.subqueryIndex=t,this.resultIndex=n}};HR=bc([ne("AshbyQLSubqueryResultReference"),tm("design:paramtypes",[Number,Number])],HR);let mY=class{constructor(t,n){this.referenceType=Og.indexReference,this.errors=[],this.fieldIndex=t,this.coalesceValue=n}};mY=bc([ne("AshbyQLSelectFieldIndexReference"),tm("design:paramtypes",[Number,Object])],mY);let hY=class{constructor(){this.functionType=uf.count,this.errors=[]}allFieldReferences(){return[]}};hY=bc([ne("AshbyQLCount")],hY);let gY=class{constructor(t){this.functionType=uf.sum,this.errors=[],this.arg=t}allFieldReferences(){return rN(this.arg)?[this.arg]:this.arg.allFieldReferences()}};gY=bc([ne("AshbyQLSum"),tm("design:paramtypes",[Object])],gY);let vY=class{constructor({numerator:t,denominator:n,resultAsPercentage:r=!0,numeratorResultType:i=UR.number}){this.functionType=uf.divide,this.errors=[],this.numerator=t,this.denominator=n,this.resultAsPercentage=r,this.numeratorResultType=i}allFieldReferences(){return[this.numerator,this.denominator].flatMap(t=>rN(t)?[t]:t.allFieldReferences())}};vY=bc([ne("AshbyQLDivide"),tm("design:paramtypes",[Object])],vY);let yY=class{constructor(t){this.functionType=uf.selectSubqueryResult,this.errors=[],this.fieldReference=t}allFieldReferences(){return[this.fieldReference]}};yY=bc([ne("AshbyQLSelectSubqueryResult"),tm("design:paramtypes",[HR])],yY);let SY=class{constructor(t){this.functionType=uf.average,this.errors=[],this.arg=t}allFieldReferences(){return rN(this.arg)?[this.arg]:this.arg.allFieldReferences()}};SY=bc([ne("AshbyQLAverage"),tm("design:paramtypes",[Object])],SY);let bY=class{constructor({args:t,minimumResult:n}){this.functionType=uf.minus,this.errors=[],this.args=t,this.minimumResult=n}isValid(){return this.args.length>=2}allFieldReferences(){return this.args.flatMap(t=>rN(t)?[t]:t.allFieldReferences())}};bY=bc([ne("AshbyQLMinus"),tm("design:paramtypes",[Object])],bY);var Og;(function(e){e[e.indexReference=0]="indexReference",e[e.subqueryResultReference=1]="subqueryResultReference"})(Og||(Og={}));function rN(e){return(e==null?void 0:e.referenceType)!==void 0}class hHe{}let TY=class extends hHe{value(){return Ue.local().toISO()}};TY=bc([ne("AshbyQLDynamicNow")],TY);function gHe(e){if(e.query instanceof Cp||!e.filter||e.filter instanceof zR)return;const n=e.filter.dimensionSelect.field.path;iN(e.query,r=>r instanceof Ig||r.dimensionSelect.field.path===n?!0:ic.subqueryIncompatibleWithSharedReportFilter)}function vHe(e){iN(e.query,t=>{if(t instanceof Ig)return!0;{const n=t.selectedFields.length-1,r=t.aggregateFunction.allFieldReferences().filter(a=>a.referenceType===Og.indexReference);let i=!1;for(const a of r)(a.fieldIndex<0||a.fieldIndex>n)&&(i=!0,a.errors.push(ic.invalidFieldReference));return i?ic.invalidFieldReference:!0}})}function yHe(e){iN(e.query,t=>{if(t instanceof Cp)return!0;const n=t.resultComposition.flatMap(i=>i.allFieldReferences()).filter(i=>i.referenceType===Og.subqueryResultReference);let r=!1;for(const i of n)if(i.subqueryIndex>=t.subQueries.length){i.errors.push(ic.invalidSubqueryResultReference),r=!0;continue}else{const a=t.subQueries[i.subqueryIndex];if(a instanceof Cp){if(i.resultIndex===0)continue;r=!0,i.errors.push(ic.invalidSubqueryResultReference);continue}else{if(i.resultIndex0)continue;r=!0,i.errors.push(ic.invalidSubqueryResultReference);continue}}return r?ic.invalidSubqueryResultReference:!0})}function iN(e,t){const n=t(e);if(n!==!0&&e.errors.push(n),e instanceof Ig){for(const i of e.subQueries)iN(i,t);const r=e.subQueries.flatMap(i=>i.errors);e.errors.push(...r)}}var ic;(function(e){e.subqueryIncompatibleWithSharedReportFilter="Subequery_Incompatible_With_Shared_Report_Filter",e.invalidFieldReference="Invalid_Field_Reference",e.invalidSubqueryResultReference="Invalid_Subquery_Result_Reference"})(ic||(ic={}));var I$=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},O$=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},VR;let _Y=VR=class extends nN{constructor({query:t,groupByDefinitions:n,title:r,filter:i,resultLabels:a,supportedFilterType:o,preferredVisualization:s,timezone:l,goalLines:u,hiddenColumns:c,orderByFields:d,minimumY:f,maximumY:p,visualization:m,...h}){super({type:bn.AshbyQLReport,title:r,timezone:l}),this.query=t,this.groupByDefinitions=n,this.filter=i,this.preferredVisualization=s,this.resultLabels=a,this.supportedFilterType=o,this.hiddenColumns=c,this.orderByFields=d,this.goalLines=u,this.minimumY=f,this.maximumY=p,this.visualization=m??s;const g=h.hiddenColumnIndexes;Array.isArray(g)&&c==null&&(this.hiddenColumns=EY(this,g))}validate(){vHe(this),gHe(this),yHe(this)}isValid(){const t=this.filter==null,n=this.filter!=null&&this.filter.dimensionSelect.isValid();return this.query.errors.length===0&&(t||n)}copy(){return new VR(this)}applyTimezoneToFilter(){var t,n,r;!((t=this.filter)===null||t===void 0)&&t.dimensionSelect&&(this.filter.dimensionSelect=xd(this.filter.dimensionSelect,(n=this.timezone)!==null&&n!==void 0?n:mu.user)),this.query.applyTimezoneToFilter((r=this.timezone)!==null&&r!==void 0?r:mu.user)}onDecodeComplete(){super.onDecodeComplete(),this.visualization==null&&(this.visualization=this.preferredVisualization);const t=this.hiddenColumnIndexes;Array.isArray(t)&&(this.hiddenColumns=EY(this,t),delete this.hiddenColumnIndexes)}get resultTypes(){return this.query instanceof Cp&&this.query.resultType!==void 0?[this.query.resultType]:this.query instanceof Ig?this.query.resultTypes||[]:[]}getAllowedVisualizations(){return this.preferredVisualization===Ei.table?[Ei.table]:[this.preferredVisualization,Ei.table]}};_Y=VR=I$([ne("AshbyQLReport"),O$("design:paramtypes",[Object])],_Y);function EY(e,t){var n,r;const i=(n=e.groupByDefinitions)!==null&&n!==void 0?n:[],a=(r=e.resultLabels)!==null&&r!==void 0?r:[],o=e.resultTypes;return t.flatMap(s=>{var l;return s<((l=i==null?void 0:i.length)!==null&&l!==void 0?l:0)?[{type:"grouping",path:i[s].fieldPath}]:a.length>0&&s-i.length0&&s-i.length(...e)=>e,bHe=()=>SHe(),THe="/right-side";var xf={exports:{}};xf.exports=M$;xf.exports.match=kHe;xf.exports.regexpToFunction=A0e;xf.exports.parse=D$;xf.exports.compile=wHe;xf.exports.tokensToFunction=C0e;xf.exports.tokensToRegExp=N0e;var k0e="/",_He=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function D$(e,t){for(var n=[],r=0,i=0,a="",o=t&&t.delimiter||k0e,s=t&&t.whitelist||void 0,l=!1,u;(u=_He.exec(e))!==null;){var c=u[0],d=u[1],f=u.index;if(a+=e.slice(i,f),i=f+c.length,d){a+=d[1],l=!0;continue}var p="",m=u[2],h=u[3],g=u[4],v=u[5];if(!l&&a.length){var y=a.length-1,b=a[y],T=s?s.indexOf(b)>-1:!0;T&&(p=b,a=a.slice(0,y))}a&&(n.push(a),a="",l=!1);var _=v==="+"||v==="*",E=v==="?"||v==="*",k=h||g,A=p||o,D=p||(typeof n[n.length-1]=="string"?n[n.length-1]:"");n.push({name:m||r++,prefix:p,delimiter:A,optional:E,repeat:_,pattern:k?AHe(k):EHe(A,o,D)})}return(a||i-1||n.indexOf(t)>-1?r+"+?":Ws(n)+"|(?:(?!"+Ws(n)+")"+r+")+?"}function wHe(e,t){return C0e(D$(e,t),t)}function kHe(e,t){var n=[],r=M$(e,n,t);return A0e(r,n)}function A0e(e,t){return function(n,r){var i=e.exec(n);if(!i)return!1;for(var a=i[0],o=i.index,s={},l=r&&r.decode||decodeURIComponent,u=1;u=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PHe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},BY;(function(e){e.SubstitutionToken="SubstitutionToken"})(BY||(BY={}));var WR;(function(e){e.candidate="candidate",e.candidateWithApplication="candidateWithApplication",e.schedulingInterviewInternalContext="schedulingInterviewInternalContext",e.schedulingInterviewExternalContext="schedulingInterviewExternalContext",e.meetingAvailabilityRequestContext="meetingAvailabilityRequestContext",e.interviewChannelTitle="interviewChannelTitle",e.interviewInstantMessage="interviewInstantMessage",e.unifiedContext="unifiedContext"})(WR||(WR={}));var $Y;(function(e){e.objectType="object_type",e.virtual="virtual"})($Y||($Y={}));function I0e(e){return e!=null?e.objectIdentifier!==void 0&&e.field!==void 0:!1}var UY;(function(e){e.Workflow="Workflow"})(UY||(UY={}));function R$(e){var t;return((t=e.metadata)===null||t===void 0?void 0:t.isFieldForVirtualSubstitutionToken)===!0}function O0e(e,t){var n;if(t===void 0&&(t=(n=e.metadata.substitutionTokenRole)!==null&&n!==void 0?n:e.type===ve.RichText?"block":"inline"),!R$(e))throw new Error(`Invalid field for conversion to VirtualSubstitutionToken. Field: ${JSON.stringify(e)}`);return{objectIdentifier:e.path,field:e,actAs:t}}let HY=class{static getObjectIdentifierFromField(t){const[n]=t.path.split(".");return n}constructor({rootObjectIdentifier:t,humanReadableIdentifier:n,rootObjectType:r,fieldSet:i}){this.rootObjectIdentifier=t,this.humanReadableIdentifier=n,this.rootObjectType=r,this.fieldSet=i}tokenFromField(t,n){var r;n===void 0&&(n=(r=t.metadata.substitutionTokenRole)!==null&&r!==void 0?r:t.type===ve.RichText?"block":"inline");const i=this.stripTokenPrefixesFromFieldPath(t.path),a=t.copy();return a.path=i,{objectIdentifier:this.rootObjectIdentifier,objectType:this.rootObjectType,field:a,actAs:n}}stripTokenPrefixesFromFieldPath(t){const[n,r,...i]=t.split(".");if(n!==this.rootObjectIdentifier)throw new Error(`Prefix on Field's path does not match rootObjectIdentifier ${this.rootObjectIdentifier}. Maybe this field is not part of a SubstitutionTokenFieldSet? Path: ${t}.`);if(r!==this.rootObjectType)throw new Error(`Prefix on field's path does not match objectType ${this.rootObjectType}. Path: ${t}`);return i.join(".")}};HY=RHe([ne("SubstitutionTokenFieldSet"),PHe("design:paramtypes",[Object])],HY);var jR;(function(e){e.Slack="Slack"})(jR||(jR={}));const FHe=["communicationTemplate.instantMessagingChannelConfig.enabled","communicationTemplate.instantMessagingChannelConfig.title.value","communicationTemplate.instantMessagingChannelConfig.title.substitutionTokens","communicationTemplate.instantMessagingChannelConfig.timing","communicationTemplate.instantMessagingChannelConfig.messages","communicationTemplate.instantMessagingChannelConfig.invitations.processRole","communicationTemplate.instantMessagingChannelConfig.invitations.directAddition","communicationTemplate.instantMessagingChannelConfig.messages"],LHe={enabled:!1,type:jR.Slack,title:{type:WR.interviewChannelTitle,value:{version:"2",content:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"intw-"},{type:"token",attrs:{actAs:"inline",objectIdentifier:"candidateLastName",objectType:null,field:{id:"9d662b71-6d45-4516-8335-1efb960ea97a",path:"candidateLastName",type:"String",title:"Candidate's Last Name",isMany:!1,metadata:{substitutionTokenRole:"inline",isFieldForVirtualSubstitutionToken:!0},isPrivate:!1,isNullable:!1,isDeactivated:!1,humanReadablePath:"Candidate's Last Name",__autoSerializationID:"StringField"},format:null,prefix:null,postfix:null,previewText:null,tooltipText:null,fallbackText:null,substitutionIsRequired:!1,substitutionValue:null,missingTokenSubstitution:null}},{type:"text",text:"-"},{type:"token",attrs:{actAs:"inline",objectIdentifier:"candidateFirstName",objectType:null,field:{id:"8fe4de8f-475e-4b29-949f-30aa84fe61a6",path:"candidateFirstName",type:"String",title:"Candidate's First Name",isMany:!1,metadata:{substitutionTokenRole:"inline",isFieldForVirtualSubstitutionToken:!0},isPrivate:!1,isNullable:!1,isDeactivated:!1,humanReadablePath:"Candidate's First Name",__autoSerializationID:"StringField"},format:null,prefix:null,postfix:null,previewText:null,tooltipText:null,fallbackText:null,substitutionIsRequired:!1,substitutionValue:null,missingTokenSubstitution:null}}]}]},features:["Tokens"],attachments:[]},substitutionTokens:[{objectIdentifier:"candidateLastName",objectType:null,field:{id:"9d662b71-6d45-4516-8335-1efb960ea97a",path:"candidateLastName",type:ve.String,title:"Candidate's Last Name",isMany:!1,metadata:{substitutionTokenRole:"inline",isFieldForVirtualSubstitutionToken:!0},isPrivate:!1,isNullable:!1,isDeactivated:!1,humanReadablePath:"Candidate's Last Name",__autoSerializationID:"StringField"},format:null,previewText:null,tooltipText:null,fallbackText:"",actAs:"inline"},{objectIdentifier:"candidateFirstName",objectType:null,field:{id:"8fe4de8f-475e-4b29-949f-30aa84fe61a6",path:"candidateFirstName",type:ve.String,title:"Candidate's First Name",isMany:!1,metadata:{substitutionTokenRole:"inline",isFieldForVirtualSubstitutionToken:!0},isPrivate:!1,isNullable:!1,isDeactivated:!1,humanReadablePath:"Candidate's First Name",__autoSerializationID:"StringField"},format:null,previewText:null,tooltipText:null,fallbackText:"",actAs:"inline"}]},timing:{execute:"relative",leadTime:{value:7,unit:"days"}},messages:[],invitations:{processRole:[],directAddition:[]}};var Cl=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nl=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},p3;(function(e){e.BookingLink="BookingLink",e.AvailabilityRequest="AvailabilityRequest"})(p3||(p3={}));var sh;(function(e){e.Email="EMAIL",e.SMS="SMS"})(sh||(sh={}));function BHe({order:e,interviewEvents:t}){return typeof e=="number"?e:e==="first"?0:e==="last"?t.length-1:null}var d0;(function(e){e[e.GlobalMeetingRoomReferencedButNoGlobalRoomSpecified=0]="GlobalMeetingRoomReferencedButNoGlobalRoomSpecified",e[e.MultipleInterviewsWithSameOrderAreForbidden=1]="MultipleInterviewsWithSameOrderAreForbidden",e[e.InterviewOrderExceedsPanelLength=2]="InterviewOrderExceedsPanelLength",e[e.FiltersAreInvalid=3]="FiltersAreInvalid"})(d0||(d0={}));const $He=[30,15,10,5];var VY;(function(e){e.Shadow="Shadow",e.ReverseShadow="ReverseShadow"})(VY||(VY={}));var GR;(function(e){e.DEFAULT="DEFAULT",e.SOONEST="SOONEST",e.MINIMIZE_DAYS="MINIMIZE_DAYS"})(GR||(GR={}));let m3=class{constructor({scheduleTemplate:t,timezone:n,applicationId:r,jobId:i,candidateId:a,dates:o,minStartTime:s,maxEndTime:l,timeslotSizeInMinutes:u,allowBreaks:c=!1,allowMultiDayScheduling:d=!1,maxNumberOfDays:f,seed:p,optimizationMode:m,softConflictCostMultiplier:h,shouldTreatRecurringOneOnOneAsSoftConflict:g,considerCandidateAvailability:v,minStartDateTimeISO:y}){this.scheduleTemplate=t,this.timezone=n,this.applicationId=r,this.jobId=i,this.candidateId=a,this.dates=o,this.minStartTime=s,this.maxEndTime=l,this.timeslotSizeInMinutes=u,this.allowBreaks=c,this.allowMultiDayScheduling=d,this.maxNumberOfDays=f??null,this.seed=p,this.optimizationMode=m??GR.DEFAULT,this.softConflictCostMultiplier=h??1,this.shouldTreatRecurringOneOnOneAsSoftConflict=g,this.considerCandidateAvailability=v,this.minStartDateTimeISO=y}onDecodeComplete(){this.allowMultiDayScheduling=this.allowMultiDayScheduling||!1,this.considerCandidateAvailability==null&&(this.considerCandidateAvailability=this.candidateId!=null)}};Cl([Aa(jn.AnonymousObjectTypeMarker),Nl("design:type",Object)],m3.prototype,"minStartTime",void 0);Cl([Aa(jn.AnonymousObjectTypeMarker),Nl("design:type",Object)],m3.prototype,"maxEndTime",void 0);m3=Cl([ne("AutoScheduleRequest"),Nl("design:paramtypes",[Object])],m3);function JR(e){return e!=null&&typeof e=="object"&&"min"in e&&typeof e.min=="number"&&"max"in e&&typeof e.max=="number"}function UHe(e){return(e==null?void 0:e.after)!=null||(e==null?void 0:e.before)!=null}let YR=class{constructor({id:t,title:n,interviewId:r,interviewOrder:i,interviewDurationInMinutes:a,isFeedbackRequired:o,fixedStartTime:s,timezone:l,interviewerSlots:u,meetingRoomSlot:c}){this.id=t,this.title=n,this.interviewId=r,this.interviewOrder=i,this.interviewDurationInMinutes=a,this.isFeedbackRequired=o,this.fixedStartTime=s,this.timezone=l,this.interviewerSlots=u,this.meetingRoomSlot=c}};Cl([Aa(jn.AnonymousObjectTypeMarker),Nl("design:type",Object)],YR.prototype,"fixedStartTime",void 0);YR=Cl([ne("ScheduleTemplateEvent"),Nl("design:paramtypes",[Object])],YR);var ql;(function(e){e.InPerson="IN_PERSON",e.GoogleMeets="GOOGLE_MEETS",e.Zoom="ZOOM",e.Phone="PHONE",e.MicrosoftTeams="MICROSOFT_TEAMS"})(ql||(ql={}));const zY=e=>{switch(e){case ql.InPerson:return"In-person";case ql.Phone:return"Phone";case ql.GoogleMeets:return"Google Meet";case ql.Zoom:return"Zoom";case ql.MicrosoftTeams:return"Microsoft Teams";default:return""}};let qY=class{constructor({internalTemplate:t,externalTemplate:n,eventSpecificInternalTemplates:r,internalReminders:i,externalReminders:a,shouldRollupDailyExternalReminders:o,calendarInviteLocation:s,calendarInviteVisibility:l="default",locationType:u=ql.InPerson,meetingHostInfo:c,calendar:d,overriddenDefaults:f=[],externalInterviewResources:p,autoGenerateSuggestedSchedulesOnAvailabilitySubmission:m,shouldSendInterviewConfirmationEmail:h=!1,sendInternalInvitesImmediately:g=!0,sendExternalInvitesImmediately:v=!0,instantMessagingChannelConfig:y=LHe}){this.eventSpecificInternalTemplates=[],this.overriddenDefaults=[],this.internalTemplate=t,this.externalTemplate=n,this.internalReminders=i,this.externalReminders=a,this.shouldRollupDailyExternalReminders=o,this.calendarInviteLocation=s,this.calendarInviteVisibility=l,this.calendar=d,this.locationType=u,this.meetingHostInfo=c,this.eventSpecificInternalTemplates=r,this.overriddenDefaults=f,this.externalInterviewResources=p,this.shouldSendInterviewConfirmationEmail=h,this.sendInternalInvitesImmediately=g,this.sendExternalInvitesImmediately=v,this.instantMessagingChannelConfig=y}};qY=Cl([ne("ScheduleCommunicationTemplate"),Nl("design:paramtypes",[Object])],qY);let KR=class{constructor({overriddenDefaults:t=[],autoGenerateSuggestedSchedulesOnAvailabilitySubmission:n,maximumNumberOfDaysToSchedule:r}={}){this.overriddenDefaults=[],this.overriddenDefaults=t,this.autoGenerateSuggestedSchedulesOnAvailabilitySubmission=n??!0,this.maximumNumberOfDaysToSchedule=r??1,this.allowBreaksInAutoGeneratedSuggestions=!1}};KR=Cl([ne("ScheduleAutomationSettings"),Nl("design:paramtypes",[Object])],KR);let WY=class{constructor({overriddenDefaults:t=[],includeScheduledDebriefActivity:n=!1}={}){this.overriddenDefaults=[],this.overriddenDefaults=t,this.includeScheduledDebriefActivity=n}};WY=Cl([ne("ScheduleTemplateDebriefSettings"),Nl("design:paramtypes",[Object])],WY);let jY=class{constructor({plannedEvents:t,defaultMeetingRoom:n,defaultInterviewTimezone:r,defaultOrganizerUserId:i,communicationTemplate:a,meetingHoursSettings:o,meetingAvailabilityRequestSettings:s,automationSettings:l,debriefSettings:u,overriddenDefaults:c=[]}){this.overriddenDefaults=[],this.plannedEvents=t,this.defaultMeetingRoom=n,this.defaultInterviewTimezone=r,this.defaultOrganizerUserId=i,this.communicationTemplate=a,this.meetingHoursSettings=o,this.meetingAvailabilityRequestSettings=s,this.automationSettings=l??new KR,this.overriddenDefaults=c,this.debriefSettings=u}determineTimeslotSize(){const t=VHe(this.plannedEvents);if(typeof t=="string")throw new Error(t);return t}maximumScheduleLength(){return this.plannedEvents.reduce((t,n)=>JR(n.interviewDurationInMinutes)?t+n.interviewDurationInMinutes.max:t+n.interviewDurationInMinutes,0)}mininumScheduleLength(){return this.plannedEvents.reduce((t,n)=>JR(n.interviewDurationInMinutes)?t+n.interviewDurationInMinutes.min:t+n.interviewDurationInMinutes,0)}validate({defaultMeetingRoomExists:t}){return[...this.validateGlobalMeetingRoomSetting({defaultMeetingRoomExists:t}),...this.validateUniqueOrdering(),...this.validateOrderingInBounds(),...this.validateFiltersAreValid()]}validateGlobalMeetingRoomSetting({defaultMeetingRoomExists:t}){const n=this.plannedEvents.some(({meetingRoomSlot:r})=>(r==null?void 0:r.potentialMeetingRooms)==="Interview Panel Default");return!t&&n?[d0.GlobalMeetingRoomReferencedButNoGlobalRoomSpecified]:[]}communicationTemplateForChannelAndRequestType(t,n){var r,i,a,o;switch(t){case p3.BookingLink:{switch(n){case sh.Email:return(r=this.communicationTemplate)===null||r===void 0?void 0:r.directScheduleEmailTemplateId;case sh.SMS:return(i=this.communicationTemplate)===null||i===void 0?void 0:i.directScheduleTelephonySmsTemplateId;default:ko("Unknown channel",n)}break}case p3.AvailabilityRequest:{switch(n){case sh.Email:return(a=this.communicationTemplate)===null||a===void 0?void 0:a.candidateAvailabilityEmailTemplateId;case sh.SMS:return(o=this.communicationTemplate)===null||o===void 0?void 0:o.candidateAvailabilityTelephonySmsTemplateId;default:ko("Unknown channel",n)}break}default:ko("Unknown schedule type",t)}}validateUniqueOrdering(){const t=this.plannedEvents.filter(r=>r.interviewOrder!=null).map(r=>this.convertOrderingToNumber(r.interviewOrder));return Array.from(new Set(t)).length!==t.length?[d0.MultipleInterviewsWithSameOrderAreForbidden]:[]}validateOrderingInBounds(){const t=this.plannedEvents.filter(n=>n.interviewOrder!=null).map(n=>this.convertOrderingToNumber(n.interviewOrder));for(const n of t)if(n!=null&&n>=this.plannedEvents.length)return[d0.InterviewOrderExceedsPanelLength];return[]}validateFiltersAreValid(){if(this.defaultMeetingRoom!=null&&!this.defaultMeetingRoom.isValid())return[d0.FiltersAreInvalid];for(const{meetingRoomSlot:t,interviewerSlots:n}of this.plannedEvents)if(n.some(r=>!r.isValid())||t!=null&&!t.isValid())return[d0.FiltersAreInvalid];return[]}convertOrderingToNumber(t){return BHe({order:t,interviewEvents:this.plannedEvents})}};jY=Cl([ne("ScheduleTemplate"),Nl("design:paramtypes",[Object])],jY);var GY;(function(e){e.Silent="Silent",e.Noisy="Noisy"})(GY||(GY={}));let JY=class{constructor({potentialInterviewers:t,preferences:n}){this.potentialInterviewers=t,this.preferences=n}isValid(){return!(this.potentialInterviewers==null&&this.preferences==null||this.potentialInterviewers!=null&&!this.potentialInterviewers.isValid()||this.preferences!=null&&this.preferences.some(t=>!t.isValid()))}};JY=Cl([ne("InterviewerSlot"),Nl("design:paramtypes",[Object])],JY);let YY=class{constructor({potentialMeetingRooms:t}){this.potentialMeetingRooms=t}isValid(){var t,n;return this.potentialMeetingRooms==="Interview Panel Default"||((n=(t=this.potentialMeetingRooms)===null||t===void 0?void 0:t.isValid())!==null&&n!==void 0?n:!1)}};YY=Cl([ne("MeetingRoomSlot"),Nl("design:paramtypes",[Object])],YY);const HHe=["communicationTemplate.locationType","communicationTemplate.meetingHostInfo","communicationTemplate.isAutoRecordingEnabled","communicationTemplate.calendarInviteLocation","communicationTemplate.calendarInviteVisibility","communicationTemplate.internalTemplate.title","communicationTemplate.internalTemplate.description","communicationTemplate.internalTemplate.substitutionTokens","communicationTemplate.externalTemplate.title","communicationTemplate.externalTemplate.description","communicationTemplate.externalTemplate.substitutionTokens","communicationTemplate.internalReminders","communicationTemplate.externalReminders","communicationTemplate.shouldRollupDailyExternalReminders","communicationTemplate.directScheduleEmailTemplateId","communicationTemplate.candidateAvailabilityEmailTemplateId","communicationTemplate.candidateInterviewConfirmationEmailTemplateId","communicationTemplate.shouldSendDirectBookingConfirmationEmail","communicationTemplate.candidateConfirmationEmailSender","communicationTemplate.directScheduleTelephonySmsTemplateId","communicationTemplate.candidateAvailabilityTelephonySmsTemplateId","communicationTemplate.candidateInterviewConfirmationTelephonySmsTemplateId","communicationTemplate.shouldSendDirectBookingConfirmationTelephonySms","meetingAvailabilityRequestSettings.offeredDayRange","meetingAvailabilityRequestSettings.minimumHoursNotice","meetingAvailabilityRequestSettings.availabilityIncrements","meetingAvailabilityRequestSettings.meetingBufferSettings.preMeetingBuffer","meetingAvailabilityRequestSettings.meetingBufferSettings.postMeetingBuffer","meetingAvailabilityRequestSettings.minimumDaysOfAvailability","meetingAvailabilityRequestSettings.canCandidateSuggestTimes","automationSettings.autoGenerateSuggestedSchedulesOnAvailabilitySubmission","automationSettings.maximumNumberOfDaysToSchedule","automationSettings.allowBreaksInAutoGeneratedSuggestions","communicationTemplate.isAutoReplaceInterviewerOnDeclineEnabled",...FHe];function P$(e){return HHe.filter(t=>xHe(e,t)).map(t=>MHe(t,e,void 0))}P$("communicationTemplate.");P$("automationSettings.");P$("debriefSettings.");function VHe(e){const t=new Set;for(const r of e)JR(r.interviewDurationInMinutes)?(t.add(r.interviewDurationInMinutes.min),t.add(r.interviewDurationInMinutes.max)):t.add(r.interviewDurationInMinutes),UHe(r.fixedStartTime)&&((r.fixedStartTime.kind==="after"||r.fixedStartTime.kind==="between")&&t.add(r.fixedStartTime.after.minute),(r.fixedStartTime.kind==="before"||r.fixedStartTime.kind==="between")&&t.add(r.fixedStartTime.before.minute));const n=$He;for(const[r,i]of n.entries()){let a=0;for(const o of t.values())a+=o%i;if(a===0)return n[r]}return"Some event has an unsupported duration or length. All times need to be multiples of 5."}var KY;(function(e){e.None="None",e.AllPastInterviewers="AllPastInterviewers",e.CurrentInterviewSchedule="CurrentInterviewSchedule"})(KY||(KY={}));var zHe=qHe;function qHe(e){if(e==null)return!0;if(Array.isArray(e)||typeof e=="string")return!e.length;var t={}.toString.call(e);return t=="[object Object]"?!Object.keys(e).length&&!Object.getOwnPropertySymbols(e).length:t=="[object Map]"||t=="[object Set]"?!e.size:Object(e)!==e||!Object.keys(e).length}var gu;(function(e){e.Internal="Internal",e.Public="Public"})(gu||(gu={}));function gi(e){this.content=e}gi.prototype={constructor:gi,find:function(e){for(var t=0;t>1}};gi.from=function(e){if(e instanceof gi)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new gi(t)};function D0e(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)n++;return n}if(i.content.size||a.content.size){let o=D0e(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function x0e(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let u=0,c=Math.min(o.text.length,s.text.length);for(;ut&&r(l,i+s,a||null,o)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),r,i+c)}s=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",o=!0;return this.nodesBetween(t,n,(s,l)=>{s.isText?(a+=s.text.slice(Math.max(t,l)-l,n-l),o=!r):s.isLeaf?(i?a+=typeof i=="function"?i(s):i:s.type.spec.leafText&&(a+=s.type.spec.leafText(s)),o=!r):!o&&s.isBlock&&(a+=r,o=!0)},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let a=0,o=0;ot&&((on)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=l}return new na(r,i)}cutByIndex(t,n){return t==n?na.empty:t==0&&n==this.content.length?this:new na(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new na(i,a)}addToStart(t){return new na([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new na(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let a=this.child(r),o=i+a.nodeSize;if(o>=t)return o==t||n>0?ZT(r+1,o):ZT(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return na.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new na(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return na.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}};Wn.none=[];let g3=class extends Error{},$e=class Fm{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=R0e(this.content,t+this.openStart,n);return r&&new Fm(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Fm(M0e(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Fm.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Fm(Ie.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new Fm(t,r,i)}};$e.empty=new $e(Ie.empty,0,0);function M0e(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(M0e(a.content,t-i-1,n-i-1)))}function R0e(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=R0e(o.content,t-a-1,n);return s&&e.replaceChild(i,o.copy(s))}function WHe(e,t,n){if(n.openStart>e.depth)throw new g3("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new g3("Inconsistent open depths");return P0e(e,t,n,0)}function P0e(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function jy(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(U0(e.nodeAfter,r),a++));for(let s=a;si&&ZR(e,t,i+1),o=r.depth>i&&ZR(n,r,i+1),s=[];return jy(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(F0e(a,o),U0(H0(a,L0e(e,t,n,r,i+1)),s)):(a&&U0(H0(a,v3(e,t,i+1)),s),jy(t,n,i,s),o&&U0(H0(o,v3(n,r,i+1)),s)),jy(r,null,i,s),new Ie(s)}function v3(e,t,n){let r=[];if(jy(null,e,n,r),e.depth>n){let i=ZR(e,t,n+1);U0(H0(i,v3(e,t,n+1)),r)}return jy(t,null,n,r),new Ie(r)}function jHe(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(Ie.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}let QY=class XR{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new y3(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let o=t;;){let{index:s,offset:l}=o.content.findIndex(a),u=a-l;if(r.push(o,s,i+l),!u||(o=o.child(s),o.isText))break;a=u-1,i+=l+1}return new XR(n,r,a)}static resolveCached(t,n){for(let i=0;it&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),B0e(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=Ie.empty,i=0,a=r.childCount){let o=this.contentMatchAt(t).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=Ie.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,i,r)}};V0.prototype.text=void 0;let YHe=class t5 extends V0{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):B0e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new t5(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new t5(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function B0e(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}let uS=class $0e{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new KHe(t,n);if(r.next==null)return $0e.empty;let i=U0e(r);r.next&&r.err("Unexpected trailing text");let a=rVe(nVe(i));return iVe(a,r),a}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+t.indexOf(r.next[o].next);return a}).join(` `)}};uS.empty=new uS(!0);let KHe=class{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}};function U0e(e){let t=[];do t.push(QHe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function QHe(e){let t=[];do t.push(ZHe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function ZHe(e){let t=tVe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=XHe(e,t);else break;return t}function ZY(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function XHe(e,t){let n=ZY(e),r=n;return e.eat(",")&&(e.next!="}"?r=ZY(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function eVe(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.groups.indexOf(t)>-1&&i.push(o)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function tVe(e){if(e.eat("(")){let t=U0e(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=eVe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function nVe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(o,s,l){let u={term:l,to:s};return t[o].push(u),u}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(a(u,s)),[]);if(o.type=="seq")for(let l=0;;l++){let u=a(o.exprs[l],s);if(l==o.exprs.length-1)return u;i(u,s=n())}else if(o.type=="star"){let l=n();return r(s,l),i(a(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return i(a(o.expr,s),l),i(a(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let u=0;u{e[o].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let a=t[r.join(",")]=new uS(r.indexOf(e.length-1)>-1);for(let o=0;o-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[a]=new W0e(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}},aVe=class{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}},j0e=class G0e{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=q0e(i.attrs),this.excluded=null;let a=V0e(this.attrs);this.instance=a?new Wn(this,a):null}create(t=null){return!t&&this.instance?this.instance:new Wn(this,z0e(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,o)=>r[a]=new G0e(a,i++,n,o)),r}removeFromSet(t){for(var n=0;n-1}},oVe=class{constructor(t){this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=gi.from(t.nodes),n.marks=gi.from(t.marks||{}),this.nodes=eK.compile(this.spec.nodes,this),this.marks=j0e.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;a.contentMatch=r[o]||(r[o]=uS.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=s=="_"?null:s?tK(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:tK(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof eK){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new YHe(r,r.defaultAttrs,t,Wn.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return V0.fromJSON(this,t)}markFromJSON(t){return Wn.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}};function tK(e,t){let n=[];for(let r=0;r-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}let J0e=class n5{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=t.nodes[r.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let r=new rK(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new rK(this,n,!0);return r.addAll(t,n.from,n.to),$e.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o{r(o=iK(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=iK(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new n5(t,n5.schemaRules(t)))}};const Y0e={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},sVe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},K0e={ol:!0,ul:!0},S3=1,b3=2,Gy=4;function nK(e,t,n){return t!=null?(t?S3:0)|(t==="full"?b3:0):e&&e.whitespace=="pre"?S3|b3:n&~Gy}let XT=class{constructor(t,n,r,i,a,o,s){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=a,this.options=s,this.content=[],this.activeMarks=Wn.none,this.stashMarks=[],this.match=o||(s&Gy?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ie.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&S3)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=Ie.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Ie.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;n{o.clearMark(s)&&(r=s.addToSet(r))}):n=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(n),o.consuming===!1)a=o;else break}return[n,r]}addElementByRule(t,n,r){let i,a,o;n.node?(a=this.parser.schema.nodes[n.node],a.isLeaf?this.insertNode(a.create(n.attrs))||this.leafFallback(t):i=this.enter(a,n.attrs||null,n.preserveWhitespace)):(o=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(o));let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l)}i&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(t,n,r){let i=n||0;for(let a=n?t.childNodes[n]:t.firstChild,o=r==null?null:t.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a);this.findAtPoint(t,i)}findPlace(t){let n,r;for(let i=this.open;i>=0;i--){let a=this.nodes[i],o=a.findWrapping(t);if(o&&(!n||n.length>o.length)&&(n=o,r=a,!o.length)||a.solid)break}if(!n)return!1;this.sync(r);for(let i=0;ithis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let u=n[s];if(u==""){if(s==n.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=fVe(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(t)>-1)i.pendingMarks=t.removeFromSet(i.pendingMarks);else{i.activeMarks=t.removeFromSet(i.activeMarks);let o=i.popFromStashMark(t);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==n)break}}};function lVe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&K0e.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function uVe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function cVe(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function iK(e){let t={};for(let n in e)t[n]=e[n];return t}function dVe(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let l=0;l{if(a.length||o.marks.length){let s=0,l=0;for(;s=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&ly.renderSpec(rO(r),i(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[0],a=i.indexOf(" ");a>0&&(r=i.slice(0,a),i=i.slice(a+1));let o,s=r?t.createElementNS(r,i):t.createElement(i),l=n[1],u=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let c in l)if(l[c]!=null){let d=c.indexOf(" ");d>0?s.setAttributeNS(c.slice(0,d),c.slice(d+1),l[c]):s.setAttribute(c,l[c])}}for(let c=u;cu)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:f,contentDOM:p}=ly.renderSpec(t,d,r);if(s.appendChild(f),p){if(o)throw new RangeError("Multiple content holes");o=p}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new ly(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=aK(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return aK(t.marks)}};function aK(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function rO(e){return e.document||window.document}const Q0e=65535,Z0e=Math.pow(2,16);function pVe(e,t){return e+t*Z0e}function oK(e){return e&Q0e}function mVe(e){return(e-(e&Q0e))/Z0e}const X0e=1,epe=2,AE=4,tpe=8;let r5=class{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&tpe)>0}get deletedBefore(){return(this.delInfo&(X0e|AE))>0}get deletedAfter(){return(this.delInfo&(epe|AE))>0}get deletedAcross(){return(this.delInfo&AE)>0}},Dg=class Lm{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Lm.empty)return Lm.empty}recover(t){let n=0,r=oK(t);if(!this.inverted)for(let i=0;it)break;let u=this.ranges[s+a],c=this.ranges[s+o],d=l+u;if(t<=d){let f=u?t==l?-1:t==d?1:n:n,p=l+i+(f<0?0:c);if(r)return p;let m=t==(n<0?l:d)?null:pVe(s/3,t-l),h=t==l?epe:t==d?X0e:AE;return(n<0?t!=l:t!=d)&&(h|=tpe),new r5(p,h,m)}i+=c-u}return r?t+i:new r5(t+i,0,null)}touches(t,n){let r=0,i=oK(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;st)break;let u=this.ranges[s+a],c=l+u;if(t<=c&&s==i*3)return!0;r+=this.ranges[s+o]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new CE;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ra&&l!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return Ya.fromReplace(t,this.from,this.to,a)}invert(){return new xb(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new cy(n.pos,r.pos,this.mark)}merge(t){return t instanceof cy&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new cy(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new cy(n.from,n.to,t.markFromJSON(n.mark))}};so.jsonID("addMark",B$);let xb=class dy extends so{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new $e(L$(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Ya.fromReplace(t,this.from,this.to,r)}invert(){return new B$(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new dy(n.pos,r.pos,this.mark)}merge(t){return t instanceof dy&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new dy(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new dy(n.from,n.to,t.markFromJSON(n.mark))}};so.jsonID("removeMark",xb);let $$=class fy extends so{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ya.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ya.fromReplace(t,this.pos,this.pos+1,new $e(Ie.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new NE(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new NE(n.from,n.to,n.gapFrom,n.gapTo,$e.fromJSON(t,n.slice),n.insert,!!n.structure)}};so.jsonID("replaceAround",to);function a5(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function hVe(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),p=Math.min(u+l.nodeSize,n),m=r.addToSet(d);for(let h=0;he.step(l)),a.forEach(l=>e.step(l))}function gVe(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(r instanceof j0e){let u=o.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let u=Math.min(s+o.nodeSize,n);for(let c=0;ce.step(new xb(o.from,o.to,o.style)))}function vVe(e,t,n,r=n.contentMatch){let i=e.doc.nodeAt(t),a=[],o=t+1;for(let s=0;s=0;s--)e.step(a[s])}function yVe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function D1(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),a=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;m--)h||r.index(m)>0?(h=!0,c=Ie.from(r.node(m).copy(c)),d++):l--;let f=Ie.empty,p=0;for(let m=a,h=!1;m>n;m--)h||i.after(m+1)=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ie.from(n[o].type.create(n[o].attrs,r))}let i=t.start,a=t.end;e.step(new to(i,a,i,a,new $e(r,0,0),n.length,!0))}function EVe(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&wVe(e.doc,e.mapping.slice(a).map(s),r)){e.clearIncompatible(e.mapping.slice(a).map(s,1),r);let l=e.mapping.slice(a),u=l.map(s,1),c=l.map(s+o.nodeSize,1);return e.step(new to(u,c,u+1,c-1,new $e(Ie.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function wVe(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function kVe(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new to(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new $e(Ie.from(o),0,0),1,!0))}function Vh(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=n-2;u>a;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),m=r&&r[c]||d;if(m!=d&&(p=p.replaceChild(0,m.type.create(m.attrs))),!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let s=i.indexAfter(a),l=r&&r[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function AVe(e,t,n=1,r){let i=e.doc.resolve(t),a=Ie.empty,o=Ie.empty;for(let s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){a=Ie.from(i.node(s).copy(a));let c=r&&r[u];o=Ie.from(c?c.type.create(c.attrs,o):i.node(s).copy(o))}e.step(new Tc(t,t,new $e(a.append(o),n,n),!0))}function Mf(e,t){let n=e.resolve(t),r=n.index();return rpe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function rpe(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function aN(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let a,o,s=r.index(i);if(i==r.depth?(a=r.nodeBefore,o=r.nodeAfter):n>0?(a=r.node(i+1),s++,o=r.node(i).maybeChild(s)):(a=r.node(i).maybeChild(s-1),o=r.node(i+1)),a&&!a.isTextblock&&rpe(a,o)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function CVe(e,t,n){let r=new Tc(t-n,t+n,$e.empty,!0);e.step(r)}function NVe(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(s>0?1:0),u=r.node(o),c=!1;if(a==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function V$(e,t,n=t,r=$e.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return ape(i,a,r)?new Tc(t,n,r):new IVe(i,a,r).fit()}function ape(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}let IVe=class{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Ie.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=Ie.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let l=new $e(a,o,s);return t>-1?new to(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Tc(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=aO(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:u}=this.frontier[s],c,d=null;if(n==1&&(o?u.matchType(o.type)||(d=u.fillBefore(Ie.from(o),!1)):a&&l.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:d};if(n==2&&o&&(c=u.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:c};if(a&&u.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=aO(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new $e(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=aO(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new $e(py(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new $e(py(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let h=0;h1||l==0||h.content.size)&&(d=g,c.push(ope(h.mark(f.allowedMarks(h.marks)),u==1?l:0,u==s.childCount?p:-1)))}let m=u==s.childCount;m||(p=-1),this.placed=my(this.placed,n,Ie.from(c)),this.frontier[n].match=d,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,g=s;h1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n=0;s--){let{match:l,type:u}=this.frontier[s],c=oO(t,s,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=my(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=my(this.placed,this.depth,Ie.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ie.empty,!0);n.childCount&&(this.placed=my(this.placed,this.frontier.length,n))}};function py(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(py(e.firstChild.content,t-1,n)))}function my(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(my(e.lastChild.content,t-1,n)))}function aO(e,t){for(let n=0;n1&&(r=r.replaceChild(0,ope(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Ie.empty,!0)))),e.copy(r)}function oO(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!OVe(n,a.content,o)?s:null}function OVe(e,t,n){for(let r=n;r0;f--,p--){let m=i.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;o.indexOf(f)>-1?s=f:i.before(f)==p&&o.splice(1,0,-f)}let l=o.indexOf(s),u=[],c=r.openStart;for(let f=r.content,p=0;;p++){let m=f.firstChild;if(u.push(m),p==r.openStart)break;f=m.content}for(let f=c-1;f>=0;f--){let p=u[f].type,m=DVe(p);if(m&&i.node(l).type!=p)c=f;else if(m||!p.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),m=u[p];if(m)for(let h=0;h=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let p=o[f];p<0||(t=i.before(p),n=a.after(p))}}function spe(e,t,n,r,i){if(tr){let a=i.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(Ie.empty,!0))}return e}function MVe(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=NVe(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new $e(Ie.from(r),0,0))}function RVe(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),a=lpe(r,i);for(let o=0;o0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o)return e.delete(r.before(o),n);e.delete(t,n)}function lpe(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(at.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}let upe=class IE extends so{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ya.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Ya.fromReplace(t,this.pos,this.pos+1,new $e(Ie.from(i),0,n.isLeaf?0:1))}getMap(){return Dg.empty}invert(t){return new IE(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new IE(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new IE(n.pos,n.attr,n.value)}};so.jsonID("attr",upe);let xg=class extends Error{};xg=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};xg.prototype=Object.create(Error.prototype);xg.prototype.constructor=xg;xg.prototype.name="TransformError";let cpe=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new npe}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new xg(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=$e.empty){let i=V$(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new $e(Ie.from(r),0,0))}delete(t,n){return this.replace(t,n,$e.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return xVe(this,t,n,r),this}replaceRangeWith(t,n,r){return MVe(this,t,n,r),this}deleteRange(t,n){return RVe(this,t,n),this}lift(t,n){return SVe(this,t,n),this}join(t,n=1){return CVe(this,t,n),this}wrap(t,n){return _Ve(this,t,n),this}setBlockType(t,n=t,r,i=null){return EVe(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return kVe(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new upe(t,n,r)),this}addNodeMark(t,n){return this.step(new $$(t,n)),this}removeNodeMark(t,n){if(!(n instanceof Wn)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new U$(t,n)),this}split(t,n=1,r){return AVe(this,t,n,r),this}addMark(t,n,r){return hVe(this,t,n,r),this}removeMark(t,n,r){return gVe(this,t,n,r),this}clearIncompatible(t,n,r){return vVe(this,t,n,r),this}};const sO=Object.create(null);let Et=class{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new dpe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;a--){let o=n<0?Bm(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):Bm(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new z0(t.node(0))}static atStart(t){return Bm(t,t,0,0,1)||new z0(t)}static atEnd(t){return Bm(t,t,t.content.size,t.childCount,-1)||new z0(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=sO[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in sO)throw new RangeError("Duplicate use of selection JSON ID "+t);return sO[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ft.between(this.$anchor,this.$head).getBookmark()}};Et.prototype.visible=!0;let dpe=class{constructor(t,n){this.$from=t,this.$to=n}},lK=!1;function uK(e){!lK&&!e.parent.inlineContent&&(lK=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}let Ft=class hy extends Et{constructor(t,n=t){uK(t),uK(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Et.near(r);let i=t.resolve(n.map(this.anchor));return new hy(i.parent.inlineContent?i:r,r)}replace(t,n=$e.empty){if(super.replace(t,n),n==$e.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof hy&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new fpe(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new hy(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=Et.findFrom(n,r,!0)||Et.findFrom(n,-r,!0);if(a)n=a.$head;else return Et.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Et.findFrom(t,-r,!0)||Et.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?o=0;o+=i){let s=t.child(o);if(s.isAtom){if(!a&&At.isSelectable(s))return At.create(e,n-(i<0?s.nodeSize:0))}else{let l=Bm(e,s,n+i,i<0?s.childCount:0,i,a);if(l)return l}n+=s.nodeSize*i}return null}function cK(e,t,n){let r=e.steps.length-1;if(r{o==null&&(o=c)}),e.setSelection(Et.near(e.doc.resolve(o),n))}function dK(e,t){return!t||!e?e:e.bind(t)}let e_=class{constructor(t,n,r){this.name=t,this.init=dK(n.init,r),this.apply=dK(n.apply,r)}};new e_("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new e_("selection",{init(e,t){return e.selection||Et.atStart(t.doc)},apply(e){return e.selection}}),new e_("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new e_("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function hpe(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=hpe(i,t,{})),n[r]=i}return n}let _r=class{constructor(t){this.spec=t,this.props={},t.props&&hpe(t.props,this,this.props),this.key=t.key?t.key.key:gpe("plugin")}getState(t){return t[this.key]}};const lO=Object.create(null);function gpe(e){return e in lO?e+"$"+ ++lO[e]:(lO[e]=0,e+"$")}let Br=class{constructor(t="key"){this.key=gpe(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}};const Mb=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},vpe=function(e,t,n,r){return n&&(fK(e,t,n,r,-1)||fK(e,t,n,r,1))},LVe=/^(img|br|input|textarea|hr)$/i;function fK(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:T3(e))){let a=e.parentNode;if(!a||a.nodeType!=1||$Ve(e)||LVe.test(e.nodeName)||e.contentEditable=="false")return!1;t=Mb(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?T3(e):0}else return!1}}function T3(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function BVe(e,t,n){for(let r=t==0,i=t==T3(e);r||i;){if(e==n)return!0;let a=Mb(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==T3(e)}}function $Ve(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const ype=function(e){return e.focusNode&&vpe(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Spe(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const cf=typeof navigator<"u"?navigator:null,pK=typeof document<"u"?document:null,Rf=cf&&cf.userAgent||"",o5=/Edge\/(\d+)/.exec(Rf),bpe=/MSIE \d/.exec(Rf),s5=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rf),Rb=!!(bpe||s5||o5),Tpe=bpe?document.documentMode:s5?+s5[1]:o5?+o5[1]:0,oN=!Rb&&/gecko\/(\d+)/i.test(Rf);oN&&+(/Firefox\/(\d+)/.exec(Rf)||[0,0])[1];const l5=!Rb&&/Chrome\/(\d+)/.exec(Rf),x1=!!l5,UVe=l5?+l5[1]:0,nm=!Rb&&!!cf&&/Apple Computer/.test(cf.vendor),z$=nm&&(/Mobile\/\w+/.test(Rf)||!!cf&&cf.maxTouchPoints>2),Yo=z$||(cf?/Mac/.test(cf.platform):!1),Pb=/Android \d/.test(Rf),q$=!!pK&&"webkitFontSmoothing"in pK.documentElement.style,HVe=q$?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function VVe(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,u;if(ype(n)){for(l=s;i&&!i.node;)i=i.parent;let c=i.node;if(i&&c.isAtom&&At.isSelectable(c)&&i.parent&&!(c.isInline&&BVe(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;u=new At(o==d?s:r.resolve(d))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;l=r.resolve(c)}if(!u){let c=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!_pe(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function qVe(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,Mb(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&Rb&&Tpe<=11&&(r.disabled=!0,r.disabled=!1)}function WVe(e,t){if(t instanceof At){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(vK(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else vK(e)}function vK(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Epe(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Ft.between(t,n,r)}function jVe(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function u5(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Et.findFrom(a,t)}function f0(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function yK(e,t,n){let r=e.state.selection;if(r instanceof Ft){if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let i=u5(e.state,t);return i&&i instanceof At?f0(e,i):!1}else if(!(Yo&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?At.isSelectable(a)?f0(e,new At(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):q$?f0(e,new Ft(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else{if(r instanceof At&&r.node.isInline)return f0(e,new Ft(t>0?r.$to:r.$from));{let i=u5(e.state,t);return i?f0(e,i):!1}}}function _3(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Jy(e){let t=e.pmViewDesc;return t&&t.size==0&&(e.nextSibling||e.nodeName!="BR")}function cO(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(oN&&n.nodeType==1&&r<_3(n)&&Jy(n.childNodes[r])&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Jy(s))i=n,a=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(wpe(n))break;{let s=n.previousSibling;for(;s&&Jy(s);)i=n.parentNode,a=Mb(s),s=s.previousSibling;if(s)n=s,r=_3(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?c5(e,n,r):i&&c5(e,i,a)}function dO(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=_3(n),a,o;for(;;)if(r{e.state==i&&W$(e)},50)}function SK(e,t,n){let r=e.state.selection;if(r instanceof Ft&&!r.empty||n.indexOf("s")>-1||Yo&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=u5(e.state,t);if(o&&o instanceof At)return f0(e,o)}if(!i.parent.inlineContent){let o=t<0?i:a,s=r instanceof z0?Et.near(o,t):Et.findFrom(o,t);return s?f0(e,s):!1}return!1}function bK(e,t){if(!(e.state.selection instanceof Ft))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function TK(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function GVe(e){if(!nm||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;TK(e,r,"true"),setTimeout(()=>TK(e,r,"false"),20)}return!1}function JVe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function YVe(e,t){let n=t.keyCode,r=JVe(t);return n==8||Yo&&n==72&&r=="c"?bK(e,-1)||cO(e):n==46||Yo&&n==68&&r=="c"?bK(e,1)||dO(e):n==13||n==27?!0:n==37||Yo&&n==66&&r=="c"?yK(e,-1,r)||cO(e):n==39||Yo&&n==70&&r=="c"?yK(e,1,r)||dO(e):n==38||Yo&&n==80&&r=="c"?SK(e,-1,r)||cO(e):n==40||Yo&&n==78&&r=="c"?GVe(e)||SK(e,1,r)||dO(e):r==(Yo?"m":"c")&&(n==66||n==73||n==89||n==90)}function kpe(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let o=e.someProp("clipboardSerializer")||F$.fromSchema(e.state.schema),s=Dpe(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=Ope[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let m=s.createElement(c[p]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${a}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:l,text:f}}function Ape(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,a||r,e)}),a)return t?new $e(Ie.from(e.state.schema.text(t.replace(/\r\n?/g,` `))),0,0):$e.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:p}=e.state,m=F$.fromSchema(p);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(h=>{let g=o.appendChild(document.createElement("p"));h&&g.appendChild(m.serializeNode(p.text(h,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),o=ZVe(n),q$&&XVe(o);let u=o&&o.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=o.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;o=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||J0e.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!KVe.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)s=eze(_K(s,+c[1],+c[2]),c[4]);else if(s=$e.maxOpen(QVe(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let p=s.content.firstChild;d{s=d(s,e)}),s}const KVe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function QVe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let l=i.findWrapping(s.type),u;if(!l)return o=null;if(u=o.length&&a.length&&Npe(l,a,s,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=Ipe(o[o.length-1],a.length));let c=Cpe(s,l);o.push(c),i=i.matchType(c.type),a=l}}),o)return Ie.from(o)}return e}function Cpe(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Ie.from(e));return e}function Npe(e,t,n,r,i){if(i=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,e.childCount>1||a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Ie.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function _K(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Dpe().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&Ope[r[1].toLowerCase()])&&(e=i.map(a=>"<"+a+">").join("")+e+i.map(a=>"").reverse().join("")),n.innerHTML=e,i)for(let a=0;a=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=Ie.from(l.create(r[s+1],i)),a++,o++}return new $e(i,a,o)}const Il={},Do={};function hd(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}Do.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!Mpe(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Pb&&x1&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),z$&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,Spe(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||YVe(e,n)?n.preventDefault():hd(e,"key")};Do.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Do.keypress=(e,t)=>{let n=t;if(Mpe(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Yo&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Ft)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",a=>a(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function sN(e){return{left:e.clientX,top:e.clientY}}function tze(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function j$(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),i,!0):s(e,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function zh(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function nze(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&At.isSelectable(r)?(zh(e,new At(n),"pointer"),!0):!1}function rze(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof At&&(r=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(At.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(zh(e,At.create(e.state.doc,i),"pointer"),!0):!1}function ize(e,t,n,r,i){return j$(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?rze(e,n):nze(e,n))}function aze(e,t,n,r){return j$(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function oze(e,t,n,r){return j$(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||sze(e,n,r)}function sze(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(zh(e,Ft.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)zh(e,Ft.create(r,s+1,s+1+o.content.size),"pointer");else if(At.isSelectable(o))zh(e,At.create(r,s),"pointer");else continue;return!0}}function G$(e){return E3(e)}const xpe=Yo?"metaKey":"ctrlKey";Il.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=G$(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&tze(n,e.input.lastClick)&&!n[xpe]&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a};let o=e.posAtCoords(sN(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new lze(e,o,n,!!r)):(a=="doubleClick"?aze:oze)(e,o.pos,o.inside,n)?n.preventDefault():hd(e,"pointer"))};let lze=class{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[xpe],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let c=t.state.doc.resolve(n.pos);a=c.parent,o=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:u}=t.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||u instanceof At&&u.from<=o&&u.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&oN&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),hd(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>W$(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(sN(t))),this.updateAllowDefault(t),this.allowDefault||!n?hd(this.view,"pointer"):ize(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||nm&&this.mightDrag&&!this.mightDrag.node.isAtom||x1&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(zh(this.view,Et.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):hd(this.view,"pointer")}move(t){this.updateAllowDefault(t),hd(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}};Il.touchstart=e=>{e.input.lastTouch=Date.now(),G$(e),hd(e,"pointer")};Il.touchmove=e=>{e.input.lastTouch=Date.now(),hd(e,"pointer")};Il.contextmenu=e=>G$(e);function Mpe(e,t){return e.composing?!0:nm&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const uze=Pb?5e3:-1;Do.compositionstart=Do.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),E3(e,!0),e.markCursor=null;else if(E3(e),oN&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){e.domSelection().collapse(o,o.nodeValue.length);break}else i=o,a=-1}}e.input.composing=!0}Rpe(e,uze)};Do.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,Rpe(e,20))};function Rpe(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>E3(e),t))}function cze(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=dze());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function dze(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function E3(e,t=!1){if(!(Pb&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),cze(e),t||e.docView&&e.docView.dirty){let n=VVe(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function fze(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Mg=Rb&&Tpe<15||z$&&HVe<604;Il.copy=Do.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=Mg?null:n.clipboardData,o=r.content(),{dom:s,text:l}=kpe(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",l)):fze(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function pze(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function mze(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?f5(e,r.value,null,e.input.shiftKey,t):f5(e,r.textContent,r.innerHTML,e.input.shiftKey,t)},50)}function f5(e,t,n,r,i){let a=Ape(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,a||$e.empty)))return!0;if(!a)return!1;let o=pze(a),s=o?e.state.tr.replaceSelectionWith(o,e.input.shiftKey):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Do.paste=(e,t)=>{let n=t;if(e.composing&&!Pb)return;let r=Mg?null:n.clipboardData;r&&f5(e,r.getData("text/plain"),r.getData("text/html"),e.input.shiftKey,n)?n.preventDefault():mze(e,n)};let hze=class{constructor(t,n){this.slice=t,this.move=n}};const Ppe=Yo?"altKey":"ctrlKey";Il.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(sN(n));if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof At?i.to-1:i.to))){if(r&&r.mightDrag)e.dispatch(e.state.tr.setSelection(At.create(e.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&e.dispatch(e.state.tr.setSelection(At.create(e.state.doc,u.posBefore)))}}let o=e.state.selection.content(),{dom:s,text:l}=kpe(e,o);n.dataTransfer.clearData(),n.dataTransfer.setData(Mg?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",Mg||n.dataTransfer.setData("text/plain",l),e.dragging=new hze(o,!n[Ppe])};Il.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Do.dragover=Do.dragenter=(e,t)=>t.preventDefault();Do.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(sN(n));if(!i)return;let a=e.state.doc.resolve(i.pos),o=r&&r.slice;o?e.someProp("transformPasted",m=>{o=m(o,e)}):o=Ape(e,n.dataTransfer.getData(Mg?"Text":"text/plain"),Mg?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(r&&!n[Ppe]);if(e.someProp("handleDrop",m=>m(e,n,o||$e.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let l=o?ipe(e.state.doc,a.pos,o):a.pos;l==null&&(l=a.pos);let u=e.state.tr;s&&u.deleteSelection();let c=u.mapping.map(l),d=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,f=u.doc;if(d?u.replaceRangeWith(c,c,o.content.firstChild):u.replaceRange(c,c,o),u.doc.eq(f))return;let p=u.doc.resolve(c);if(d&&At.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))u.setSelection(new At(p));else{let m=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((h,g,v,y)=>m=y),u.setSelection(Epe(e,p,u.doc.resolve(m)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Il.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&W$(e)},20))};Il.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Il.beforeinput=(e,t)=>{if(x1&&Pb&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,Spe(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Do)Il[e]=Do[e];function cS(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}let gze=class Fpe{constructor(t,n){this.toDOM=t,this.spec=n||q0,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:o}=t.mapResult(n.from+i,this.side<0?-1:1);return o?null:new _c(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Fpe&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&cS(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}},Yy=class p5{constructor(t,n){this.attrs=t,this.spec=n||q0}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new _c(a,o,this)}valid(t,n){return n.from=t&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;ot){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,r,i+s,a)}}map(t,n,r){return this==ia||t.maps.length==0?this:this.mapInner(t,n,0,0,r||q0)}mapInner(t,n,r,i,a){let o;for(let s=0;s{let u=l+r,c;if(c=$pe(n,s,u)){for(i||(i=this.children.slice());as&&d.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;sa&&l.type instanceof Yy){let u=Math.max(a,l.from)-a,c=Math.min(o,l.to)-a;ui.map(t,n,q0));return Um.from(r)}forChild(t,n){if(n.isLeaf)return ha.empty;let r=[];for(let i=0;in instanceof ha)?t:t.reduce((n,r)=>n.concat(r instanceof ha?r:r.members),[]))}}};function Sze(e,t,n,r,i,a,o){let s=e.slice();for(let u=0,c=a;u{let g=h-m-(p-f);for(let v=0;vy+c-d)continue;let b=s[v]+c-d;p>=b?s[v+1]=f<=b?-2:-1:m>=i&&g&&(s[v]+=g,s[v+1]+=g)}d+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let f=n.map(e[u+1]+a,-1),p=f-i,{index:m,offset:h}=r.content.findIndex(d),g=r.maybeChild(m);if(g&&h==d&&h+g.nodeSize==p){let v=s[u+2].mapInner(n,g,c+1,e[u]+a+1,o);v!=ia?(s[u]=d,s[u+1]=p,s[u+2]=v):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=bze(s,e,t,n,i,a,o),c=w3(u,r,0,o);t=c.local;for(let d=0;dn&&o.to{let u=$pe(e,s,l+n);if(u){a=!0;let c=w3(u,s,n+l+1,r);c!=ia&&i.push(l,l+s.nodeSize,c)}});let o=Bpe(a?Upe(e):e,-n).sort(W0);for(let s=0;s0;)t++;e.splice(t,0,n)}var df={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},k3={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},kK=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Tze=typeof navigator<"u"&&/Apple Computer/.test(navigator.vendor),_ze=typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),AK=typeof navigator<"u"&&/Mac/.test(navigator.platform),Eze=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),wze=kK&&(AK||+kK[1]<57)||_ze&&AK;for(var bi=0;bi<10;bi++)df[48+bi]=df[96+bi]=String(bi);for(var bi=1;bi<=24;bi++)df[bi+111]="F"+bi;for(var bi=65;bi<=90;bi++)df[bi]=String.fromCharCode(bi+32),k3[bi]=String.fromCharCode(bi);for(var fO in df)k3.hasOwnProperty(fO)||(k3[fO]=df[fO]);function kze(e){var t=wze&&(e.ctrlKey||e.altKey||e.metaKey)||(Tze||Eze)&&e.shiftKey&&e.key&&e.key.length==1,n=!t&&e.key||(e.shiftKey?k3:df)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Aze=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Cze(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s127)&&(a=df[r.keyCode])&&a!=i){let s=t[pO(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const Oze=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Dze(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const xze=(e,t,n)=>{let r=Dze(e,n);if(!r)return!1;let i=Hpe(r);if(!i){let o=r.blockRange(),s=o&&D1(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(!a.type.spec.isolating&&qpe(e,i,t))return!0;if(r.parent.content.size==0&&(Rg(a,"end")||At.isSelectable(a))){let o=V$(e.doc,r.before(),r.after(),$e.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=Hpe(r)}let o=a&&a.nodeBefore;return!o||!At.isSelectable(o)?!1:(t&&t(e.tr.setSelection(At.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Hpe(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Rze(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=Rze(e,n);if(!r)return!1;let i=Vpe(r);if(!i)return!1;let a=i.nodeAfter;if(qpe(e,i,t))return!0;if(r.parent.content.size==0&&(Rg(a,"start")||At.isSelectable(a))){let o=V$(e.doc,r.before(),r.after(),$e.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof At,i;if(r){if(n.node.isTextblock||!Mf(e.doc,n.from))return!1;i=n.from}else if(i=aN(e.doc,n.from,-1),i==null)return!1;if(t){let a=e.tr.join(i);r&&a.setSelection(At.create(a.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},Bze=(e,t)=>{let n=e.selection,r;if(n instanceof At){if(n.node.isTextblock||!Mf(e.doc,n.to))return!1;r=n.to}else if(r=aN(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},$ze=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&D1(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},Uze=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` `).scrollIntoView()),!0)};function zpe(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=zpe(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,o.createAndFill());l.setSelection(Et.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Vze=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof z0||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=zpe(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(Vh(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&D1(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},qze=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(At.create(e.doc,i))),!0)};function Wze(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Mf(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)}function qpe(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a,o;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(Wze(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(a=(o=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&o.matchType(a[0]||i.type).validEnd){if(n){let d=t.pos+i.nodeSize,f=Ie.empty;for(let h=a.length-1;h>=0;h--)f=Ie.from(a[h].create(null,f));f=Ie.from(r.copy(f));let p=e.tr.step(new to(t.pos-1,d,t.pos,d,new $e(f,1,0),a.length,!0)),m=d+2*a.length;Mf(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let l=Et.findFrom(t,1),u=l&&l.$from.blockRange(l.$to),c=u&&D1(u);if(c!=null&&c>=t.depth)return n&&n(e.tr.lift(u,c).scrollIntoView()),!0;if(s&&Rg(i,"start",!0)&&Rg(r,"end")){let d=r,f=[];for(;f.push(d),!d.isTextblock;)d=d.lastChild;let p=i,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(n){let h=Ie.empty;for(let v=f.length-1;v>=0;v--)h=Ie.from(f[v].copy(h));let g=e.tr.step(new to(t.pos-f.length,t.pos+i.nodeSize,t.pos+m,t.pos+i.nodeSize-m,new $e(h,f.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function Wpe(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Ft.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const jze=Wpe(-1),Gze=Wpe(1);function Jze(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&H$(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function CK(e,t=null){return function(n,r){let i=!1;for(let a=0;a{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let c=n.doc.resolve(u),d=c.index();i=c.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o=2&&i.node(o.depth-1).type.compatibleContent(e)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let c=n.doc.resolve(o.start-2);l=new y3(c,c,o.depth),o.endIndex=0;c--)a=Ie.from(n[c].type.create(n[c].attrs,a));e.step(new to(t.start-(r?2:0),t.end,t.start,t.end,new $e(a,0,0),n.length,!0));let o=0;for(let c=0;co.childCount>0&&o.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Zze(t,n,e,a):Xze(t,n,a):!0:!1}}function Zze(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);ah;m--)p-=i.child(m).nodeSize,r.delete(p-1,p+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=a.node(-1),c=a.index(-1);if(!u.canReplace(c+(s?0:1),c+1,o.content.append(l?Ie.empty:Ie.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new to(d-(s?1:0),f+(l?1:0),d+1,f-1,new $e((s?Ie.empty:Ie.from(i.copy(Ie.empty))).append(l?Ie.empty:Ie.from(i.copy(Ie.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function eqe(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,l=s.child(o-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=Ie.from(u?e.create():null),d=new $e(Ie.from(e.create(null,Ie.from(s.type.create(null,c)))),u?3:1,0),f=a.start,p=a.end;n(t.tr.step(new to(f-(u?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function lN(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}let K$=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:a}=r,o=this.buildProps(a);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const d=l(...c)(o);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s=[],l=!!t,u=t||a.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(u),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...h)=>{const g=this.buildProps(u,n),v=p(...h)(g);return s.push(v),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,a=t||r.tr,o=this.buildProps(a,i);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(a,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s={tr:t,editor:i,view:o,state:lN({state:a,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}};function Je(e,t,n){return e.config[t]===void 0&&e.parent?Je(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Je(e.parent,t,n):null}):e.config[t]}function uN(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function jpe(e){const t=[],{nodeExtensions:n,markExtensions:r}=uN(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},l=Je(o,"addGlobalAttributes",s);if(!l)return;l().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{t.push({type:d,name:f,attribute:{...a,...p}})})})})}),i.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},l=Je(o,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const f={...a,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,t.push({type:o.name,name:c,attribute:f})})}),t}function ui(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function bt(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,a])=>{if(!r[i]){r[i]=a;return}if(i==="class"){const s=a?a.split(" "):[],l=r[i]?r[i].split(" "):[],u=s.filter(c=>!l.includes(c));r[i]=[...l,...u].join(" ")}else i==="style"?r[i]=[r[i],a].join("; "):r[i]=a}),r},{})}function m5(e,t){return t.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>bt(n,r),{})}function tqe(e){return typeof e=="function"}function It(e,t=void 0,...n){return tqe(e)?t?e.bind(t)(...n):e(...n):e}function nqe(e={}){return Object.keys(e).length===0&&e.constructor===Object}function rqe(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function NK(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):rqe(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...r,...i}}}}function IK(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&nqe(n)?!1:n!=null))}function Gpe(e,t){var n;const r=jpe(e),{nodeExtensions:i,markExtensions:a}=uN(e),o=(n=i.find(u=>Je(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(u=>{const c=r.filter(v=>v.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((v,y)=>{const b=Je(y,"extendNodeSchema",d);return{...v,...b?b(u):{}}},{}),p=IK({...f,content:It(Je(u,"content",d)),marks:It(Je(u,"marks",d)),group:It(Je(u,"group",d)),inline:It(Je(u,"inline",d)),atom:It(Je(u,"atom",d)),selectable:It(Je(u,"selectable",d)),draggable:It(Je(u,"draggable",d)),code:It(Je(u,"code",d)),defining:It(Je(u,"defining",d)),isolating:It(Je(u,"isolating",d)),attrs:Object.fromEntries(c.map(v=>{var y;return[v.name,{default:(y=v==null?void 0:v.attribute)===null||y===void 0?void 0:y.default}]}))}),m=It(Je(u,"parseHTML",d));m&&(p.parseDOM=m.map(v=>NK(v,c)));const h=Je(u,"renderHTML",d);h&&(p.toDOM=v=>h({node:v,HTMLAttributes:m5(v,c)}));const g=Je(u,"renderText",d);return g&&(p.toText=g),[u.name,p]})),l=Object.fromEntries(a.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((g,v)=>{const y=Je(v,"extendMarkSchema",d);return{...g,...y?y(u):{}}},{}),p=IK({...f,inclusive:It(Je(u,"inclusive",d)),excludes:It(Je(u,"excludes",d)),group:It(Je(u,"group",d)),spanning:It(Je(u,"spanning",d)),code:It(Je(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var v;return[g.name,{default:(v=g==null?void 0:g.attribute)===null||v===void 0?void 0:v.default}]}))}),m=It(Je(u,"parseHTML",d));m&&(p.parseDOM=m.map(g=>NK(g,c)));const h=Je(u,"renderHTML",d);return h&&(p.toDOM=g=>h({mark:g,HTMLAttributes:m5(g,c)})),[u.name,p]}));return new oVe({topNode:o,nodes:s,marks:l})}function mO(e,t){return t.nodes[e]||t.marks[e]||null}function OK(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}const iqe=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,a,o,s)=>{var l,u;const c=((u=(l=i.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:i,pos:a,parent:o,index:s}))||i.textContent||"%leaf%";n+=c.slice(0,Math.max(0,r-a))}),n};function Q$(e){return Object.prototype.toString.call(e)==="[object RegExp]"}let cN=class{constructor(t){this.find=t.find,this.handler=t.handler}};const aqe=(e,t)=>{if(Q$(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function hO(e){var t;const{editor:n,from:r,to:i,text:a,rules:o,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=iqe(u)+a;return o.forEach(f=>{if(c)return;const p=aqe(d,f.find);if(!p)return;const m=l.state.tr,h=lN({state:l.state,transaction:m}),g={from:r-(p[0].length-a.length),to:i},{commands:v,chain:y,can:b}=new K$({editor:n,state:h});f.handler({state:h,range:g,match:p,commands:v,chain:y,can:b})===null||!m.steps.length||(m.setMeta(s,{transform:m,from:r,to:i,text:a}),l.dispatch(m),c=!0)}),c}function oqe(e){const{editor:t,rules:n}=e,r=new _r({state:{init(){return null},apply(i,a){const o=i.getMeta(r);return o||(i.selectionSet||i.docChanged?null:a)}},props:{handleTextInput(i,a,o,s){return hO({editor:t,from:a,to:o,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&hO({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?hO({editor:t,from:o.pos,to:o.pos,text:` `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function sqe(e){return typeof e=="number"}let lqe=class{constructor(t){this.find=t.find,this.handler=t.handler}};const uqe=(e,t)=>{if(Q$(t))return[...e.matchAll(t)];const n=t(e);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=e,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function cqe(e){const{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:l,chain:u,can:c}=new K$({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const h=Math.max(r,m),g=Math.min(i,m+p.content.size),v=p.textBetween(h-m,g-m,void 0,"");uqe(v,a.find).forEach(b=>{if(b.index===void 0)return;const T=h+b.index+1,_=T+b[0].length,E={from:n.tr.mapping.map(T),to:n.tr.mapping.map(_)},k=a.handler({state:n,range:E,match:b,commands:l,chain:u,can:c,pasteEvent:o,dropEvent:s});d.push(k)})}),d.every(p=>p!==null)}function dqe(e){const{editor:t,rules:n}=e;let r=null,i=!1,a=!1,o=new ClipboardEvent("paste"),s=new DragEvent("drop");return n.map(u=>new _r({view(c){const d=f=>{var p;r=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?c.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(c,d)=>(a=r===c.dom.parentElement,s=d,!1),paste:(c,d)=>{var f;const p=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return o=d,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(c,d,f)=>{const p=c[0],m=p.getMeta("uiEvent")==="paste"&&!i,h=p.getMeta("uiEvent")==="drop"&&!a;if(!m&&!h)return;const g=d.doc.content.findDiffStart(f.doc.content),v=d.doc.content.findDiffEnd(f.doc.content);if(!sqe(g)||!v||g===v.b)return;const y=f.tr,b=lN({state:f,transaction:y});if(!(!cqe({editor:t,state:b,from:Math.max(g-1,0),to:v.b-1,rule:u,pasteEvent:o,dropEvent:s})||!y.steps.length))return s=new DragEvent("drop"),o=new ClipboardEvent("paste"),y}}))}function fqe(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return[...new Set(t)]}let pqe=class yy{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=yy.resolve(t),this.schema=Gpe(this.extensions,n),this.extensions.forEach(r=>{var i;this.editor.extensionStorage[r.name]=r.storage;const a={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:mO(r.name,this.schema)};r.type==="mark"&&(!((i=It(Je(r,"keepOnSplit",a)))!==null&&i!==void 0)||i)&&this.splittableMarks.push(r.name);const o=Je(r,"onBeforeCreate",a);o&&this.editor.on("beforeCreate",o);const s=Je(r,"onCreate",a);s&&this.editor.on("create",s);const l=Je(r,"onUpdate",a);l&&this.editor.on("update",l);const u=Je(r,"onSelectionUpdate",a);u&&this.editor.on("selectionUpdate",u);const c=Je(r,"onTransaction",a);c&&this.editor.on("transaction",c);const d=Je(r,"onFocus",a);d&&this.editor.on("focus",d);const f=Je(r,"onBlur",a);f&&this.editor.on("blur",f);const p=Je(r,"onDestroy",a);p&&this.editor.on("destroy",p)})}static resolve(t){const n=yy.sort(yy.flatten(t)),r=fqe(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=Je(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((r,i)=>{const a=Je(r,"priority")||100,o=Je(i,"priority")||100;return a>o?-1:a{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:mO(n.name,this.schema)},i=Je(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=yy.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(o=>{const s={name:o.name,options:o.options,storage:o.storage,editor:t,type:mO(o.name,this.schema)},l=[],u=Je(o,"addKeyboardShortcuts",s);let c={};if(o.type==="mark"&&o.config.exitable&&(c.ArrowRight=()=>Nu.handleExit({editor:t,mark:o})),u){const h=Object.fromEntries(Object.entries(u()).map(([g,v])=>[g,()=>v({editor:t})]));c={...c,...h}}const d=Ize(c);l.push(d);const f=Je(o,"addInputRules",s);OK(o,t.options.enableInputRules)&&f&&r.push(...f());const p=Je(o,"addPasteRules",s);OK(o,t.options.enablePasteRules)&&p&&i.push(...p());const m=Je(o,"addProseMirrorPlugins",s);if(m){const h=m();l.push(...h)}return l}).flat();return[oqe({editor:t,rules:r}),...dqe({editor:t,rules:i}),...a]}get attributes(){return jpe(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=uN(this.extensions);return Object.fromEntries(n.filter(r=>!!Je(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t,type:ui(r.name,this.schema)},o=Je(r,"addNodeView",a);if(!o)return[];const s=(l,u,c,d)=>{const f=m5(l,i);return o()({editor:t,node:l,getPos:c,decorations:d,HTMLAttributes:f,extension:r})};return[r.name,s]}))}};function mqe(e){return Object.prototype.toString.call(e).slice(8,-1)}function gO(e){return mqe(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function dN(e,t){const n={...e};return gO(e)&&gO(t)&&Object.keys(t).forEach(r=>{gO(t[r])?r in e?n[r]=dN(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}let Na=class h5{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=It(Je(this,"addOptions",{name:this.name}))),this.storage=It(Je(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new h5(t)}configure(t={}){const n=this.extend();return n.options=dN(this.options,t),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new h5(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=It(Je(n,"addOptions",{name:n.name})),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}};function hqe(e,t,n){const{from:r,to:i}=t,{blockSeparator:a=` `,textSerializers:o={}}=n||{};let s="",l=!0;return e.nodesBetween(r,i,(u,c,d,f)=>{var p;const m=o==null?void 0:o[u.type.name];m?(u.isBlock&&!l&&(s+=a,l=!0),d&&(s+=m({node:u,pos:c,parent:d,index:f,range:t}))):u.isText?(s+=(p=u==null?void 0:u.text)===null||p===void 0?void 0:p.slice(Math.max(r,c)-c,i-c),l=!1):u.isBlock&&!l&&(s+=a,l=!0)}),s}function gqe(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}Na.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new _r({key:new Br("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(c=>c.$from.pos)),s=Math.max(...a.map(c=>c.$to.pos)),l=gqe(n);return hqe(r,{from:o,to:s},{textSerializers:l})}}})]}});const vqe=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),yqe=(e=!1)=>({commands:t})=>t.setContent("",e),Sqe=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:o})=>{e.doc.nodesBetween(a.pos,o.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),f=u.resolve(c.map(l+s.nodeSize)),p=d.blockRange(f);if(!p)return;const m=D1(p);if(s.type.isTextblock){const{defaultType:h}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,h)}(m||m===0)&&t.lift(p,m)})}),!0},bqe=e=>t=>e(t),Tqe=()=>({state:e,dispatch:t})=>Vze(e,t),_qe=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new Ft(r.doc.resolve(o-1))),!0},Eqe=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(t){const s=i.before(a),l=i.after(a);e.delete(s,l).scrollIntoView()}return!0}return!1},wqe=e=>({tr:t,state:n,dispatch:r})=>{const i=ui(e,n.schema),a=t.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===i){if(r){const l=a.before(o),u=a.after(o);t.delete(l,u).scrollIntoView()}return!0}return!1},kqe=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},Aqe=()=>({state:e,dispatch:t})=>Oze(e,t),Cqe=()=>({commands:e})=>e.keyboardShortcut("Enter"),Nqe=()=>({state:e,dispatch:t})=>Hze(e,t);function A3(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:Q$(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function g5(e,t,n={}){return e.find(r=>r.type===t&&A3(r.attrs,n))}function Iqe(e,t,n={}){return!!g5(e,t,n)}function Z$(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&r.offset!==0&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const i=g5([...r.node.marks],t,n);if(!i)return;let a=r.index,o=e.start()+r.offset,s=a+1,l=o+r.node.nodeSize;for(g5([...r.node.marks],t,n);a>0&&i.isInSet(e.parent.child(a-1).marks);)a-=1,o-=e.parent.child(a).nodeSize;for(;s({tr:n,state:r,dispatch:i})=>{const a=Pf(e,r.schema),{doc:o,selection:s}=n,{$from:l,from:u,to:c}=s;if(i){const d=Z$(l,a,t);if(d&&d.from<=u&&d.to>=c){const f=Ft.create(o,d.from,d.to);n.setSelection(f)}}return!0},Dqe=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};const o=()=>{X$()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!Jpe(n.state.selection))return o(),!0;const s=xqe(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return a&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},Rqe=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),Pqe=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t);function DK(e){const t=`${e}`;return new window.DOMParser().parseFromString(t,"text/html").body}function C3(e,t,n){if(n={slice:!0,parseOptions:{},...n},typeof e=="object"&&e!==null)try{return Array.isArray(e)&&e.length>0?Ie.fromArray(e.map(r=>t.nodeFromJSON(r))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),C3("",t,n)}if(typeof e=="string"){const r=J0e.fromSchema(t);return n.slice?r.parseSlice(DK(e),n.parseOptions).content:r.parse(DK(e),n.parseOptions)}return C3("",t,n)}function Fqe(e,t,n){const r=e.steps.length-1;if(r{o===0&&(o=c)}),e.setSelection(Et.near(e.doc.resolve(o),n))}const Lqe=e=>e.toString().startsWith("<"),Bqe=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const o=C3(t,a.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(o.toString()==="<>")return!0;let{from:s,to:l}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},u=!0,c=!0;if((Lqe(o)?o:[o]).forEach(f=>{f.check(),u=u?f.isText&&f.marks.length===0:!1,c=c?f.isBlock:!1}),s===l&&c){const{parent:f}=r.doc.resolve(s);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(s-=1,l+=1)}u?Array.isArray(t)?r.insertText(t.map(f=>f.text||"").join(""),s,l):typeof t=="object"&&t&&t.text?r.insertText(t.text,s,l):r.insertText(t,s,l):r.replaceWith(s,l,o),n.updateSelection&&Fqe(r,r.steps.length-1,-1)}return!0},$qe=()=>({state:e,dispatch:t})=>Lze(e,t),Uqe=()=>({state:e,dispatch:t})=>Bze(e,t),Hqe=()=>({state:e,dispatch:t})=>xze(e,t),Vqe=()=>({state:e,dispatch:t})=>Pze(e,t),zqe=()=>({tr:e,state:t,dispatch:n})=>{try{const r=aN(t.doc,t.selection.$from.pos,-1);return r==null?!1:(e.join(r,2),n&&n(e),!0)}catch{return!1}},qqe=()=>({state:e,dispatch:t,tr:n})=>{try{const r=aN(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}};function Ype(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Wqe(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,a,o;for(let s=0;s({editor:t,view:n,tr:r,dispatch:i})=>{const a=Wqe(e).split(/-(?!$)/),o=a.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))});return l==null||l.steps.forEach(u=>{const c=u.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function eU(e,t,n={}){const{from:r,to:i,empty:a}=e.selection,o=t?ui(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),m=Math.min(i,f+d.nodeSize);s.push({node:d,from:p,to:m})});const l=i-r,u=s.filter(d=>o?o.name===d.node.type.name:!0).filter(d=>A3(d.node.attrs,n,{strict:!1}));return a?!!u.length:u.reduce((d,f)=>d+f.to-f.from,0)>=l}const Gqe=(e,t={})=>({state:n,dispatch:r})=>{const i=ui(e,n.schema);return eU(n,i,t)?$ze(n,r):!1},Jqe=()=>({state:e,dispatch:t})=>zze(e,t),Yqe=e=>({state:t,dispatch:n})=>{const r=ui(e,t.schema);return Qze(r)(t,n)},Kqe=()=>({state:e,dispatch:t})=>Uze(e,t);function tU(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function xK(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const Qqe=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=tU(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(a=ui(e,r.schema)),s==="mark"&&(o=Pf(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{a&&a===u.type&&n.setNodeMarkup(c,void 0,xK(u.attrs,t)),o&&u.marks.length&&u.marks.forEach(d=>{o===d.type&&n.addMark(c,c+u.nodeSize,o.create(xK(d.attrs,t)))})})}),!0):!1},Zqe=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Xqe=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),eWe=()=>({state:e,dispatch:t})=>Mze(e,t),tWe=()=>({state:e,dispatch:t})=>Fze(e,t),nWe=()=>({state:e,dispatch:t})=>qze(e,t),rWe=()=>({state:e,dispatch:t})=>Gze(e,t),iWe=()=>({state:e,dispatch:t})=>jze(e,t);function aWe(e,t,n={}){return C3(e,t,{slice:!1,parseOptions:n})}const oWe=(e,t=!1,n={})=>({tr:r,editor:i,dispatch:a})=>{const{doc:o}=r,s=aWe(e,i.schema,n);return a&&r.replaceWith(0,o.content.size,s).setMeta("preventUpdate",!t),!0};function Fb(e,t){const n=Pf(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{o.push(...l.marks)});const s=o.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function sWe(e,t){const n=new cpe(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function lWe(e){for(let t=0;t{n(i)&&r.push({node:i,pos:a})}),r}function Kpe(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function nU(e){return t=>Kpe(t.$from,e)}function cWe(e,t){const n=pqe.resolve(e);return Gpe(n,t)}function dWe(e,t){const n=ui(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,s=>{a.push(s)});const o=a.reverse().find(s=>s.type.name===n.name);return o?{...o.attrs}:{}}function fWe(e,t){const n=tU(typeof t=="string"?t:t.name,e.schema);return n==="node"?dWe(e,t):n==="mark"?Fb(e,t):{}}function pWe(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function mWe(e){const t=pWe(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,o)=>o!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function hWe(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,a)=>{const o=[];if(i.ranges.length)i.forEach((s,l)=>{o.push({from:s,to:l})});else{const{from:s,to:l}=n[a];if(s===void 0||l===void 0)return;o.push({from:s,to:l})}o.forEach(({from:s,to:l})=>{const u=t.slice(a).map(s,-1),c=t.slice(a).map(l),d=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:u,to:c}})})}),mWe(r)}function rU(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const a=n.resolve(e-1),o=Z$(a,i.type);o&&r.push({mark:i,...o})}):n.nodesBetween(e,t,(i,a)=>{r.push(...i.marks.map(o=>({from:a,to:a+i.nodeSize,mark:o})))}),r}function DE(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(a=>a.type===t&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}function gWe(e,t,n={}){const{empty:r,ranges:i}=e.selection,a=t?Pf(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>a?a.name===d.type.name:!0).find(d=>A3(d.attrs,n,{strict:!1}));let o=0;const s=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,m=f.pos;e.doc.nodesBetween(p,m,(h,g)=>{if(!h.isText&&!h.marks.length)return;const v=Math.max(p,g),y=Math.min(m,g+h.nodeSize),b=y-v;o+=b,s.push(...h.marks.map(T=>({mark:T,from:v,to:y})))})}),o===0)return!1;const l=s.filter(d=>a?a.name===d.mark.type.name:!0).filter(d=>A3(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),u=s.filter(d=>a?d.mark.type!==a&&d.mark.type.excludes(a):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+u:l)>=o}function MK(e,t){const{nodeExtensions:n}=uN(t),r=n.find(o=>o.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},a=It(Je(r,"group",i));return typeof a!="string"?!1:a.split(" ").includes("list")}function vWe(e,t,n){var r;const{selection:i}=t;let a=null;if(Jpe(i)&&(a=i.$cursor),a){const s=(r=e.storedMarks)!==null&&r!==void 0?r:a.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:o}=i;return o.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),m=!!n.isInSet(c.marks)||!c.marks.some(h=>h.type.excludes(n));u=p&&m}return!u}),u})}const yWe=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:o,ranges:s}=a,l=Pf(e,r.schema);if(i)if(o){const u=Fb(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const m=Math.max(p,c),h=Math.min(p+f.nodeSize,d);f.marks.find(v=>v.type===l)?f.marks.forEach(v=>{l===v.type&&n.addMark(m,h,l.create({...v.attrs,...t}))}):n.addMark(m,h,l.create(t))})});return vWe(r,n,l)},SWe=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),bWe=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const a=ui(e,n.schema);return a.isTextblock?i().command(({commands:o})=>CK(a,t)(n)?!0:o.clearNodes()).command(({state:o})=>CK(a,t)(o,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},TWe=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=C0(e,0,r.content.size),a=At.create(r,i);t.setSelection(a)}return!0},_We=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:a}=typeof e=="number"?{from:e,to:e}:e,o=Ft.atStart(r).from,s=Ft.atEnd(r).to,l=C0(i,o,s),u=C0(a,o,s),c=Ft.create(r,l,u);t.setSelection(c)}return!0},EWe=e=>({state:t,dispatch:n})=>{const r=ui(e,t.schema);return eqe(r)(t,n)};function RK(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}const wWe=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:o}=t,{$from:s,$to:l}=a,u=i.extensionManager.attributes,c=DE(u,s.node().type.name,s.node().attrs);if(a instanceof At&&a.node.isBlock)return!s.parentOffset||!Vh(o,s.pos)?!1:(r&&(e&&RK(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;if(r){const d=l.parentOffset===l.parent.content.size;a instanceof Ft&&t.deleteSelection();const f=s.depth===0?void 0:lWe(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,m=Vh(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Vh(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:c}]:void 0),m&&(t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){const h=t.mapping.map(s.before()),g=t.doc.resolve(h);s.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&RK(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return!0},kWe=e=>({tr:t,state:n,dispatch:r,editor:i})=>{var a;const o=ui(e,n.schema),{$from:s,$to:l}=n.selection,u=n.selection.node;if(u&&u.isBlock||s.depth<2||!s.sameParent(l))return!1;const c=s.node(-1);if(c.type!==o)return!1;const d=i.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(r){let g=Ie.empty;const v=s.index(-1)?1:s.index(-2)?2:3;for(let k=s.depth-v;k>=s.depth-3;k-=1)g=Ie.from(s.node(k).copy(g));const y=s.indexAfter(-1){if(E>-1)return!1;k.isTextblock&&k.content.size===0&&(E=A+1)}),E>-1&&t.setSelection(Ft.near(t.doc.resolve(E))),t.scrollIntoView()}return!0}const f=l.pos===s.end()?c.contentMatchAt(0).defaultType:null,p=DE(d,c.type.name,c.attrs),m=DE(d,s.node().type.name,s.node().attrs);t.delete(s.pos,l.pos);const h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!Vh(t.doc,s.pos,2))return!1;if(r){const{selection:g,storedMarks:v}=n,{splittableMarks:y}=i.extensionManager,b=v||g.$to.parentOffset&&g.$from.marks();if(t.split(s.pos,2,h).scrollIntoView(),!b||!r)return!0;const T=b.filter(_=>y.includes(_.type.name));t.ensureMarks(T)}return!0},vO=(e,t)=>{const n=nU(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Mf(e.doc,n.pos)&&e.join(n.pos),!0},yO=(e,t)=>{const n=nU(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Mf(e.doc,r)&&e.join(r),!0},AWe=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=ui(e,o.schema),m=ui(t,o.schema),{selection:h,storedMarks:g}=o,{$from:v,$to:y}=h,b=v.blockRange(y),T=g||h.$to.parentOffset&&h.$from.marks();if(!b)return!1;const _=nU(E=>MK(E.type.name,d))(h);if(b.depth>=1&&_&&b.depth-_.depth<=1){if(_.node.type===p)return u.liftListItem(m);if(MK(_.node.type.name,d)&&p.validContent(_.node.content)&&s)return l().command(()=>(a.setNodeMarkup(_.pos,p),!0)).command(()=>vO(a,p)).command(()=>yO(a,p)).run()}return!n||!T||!s?l().command(()=>c().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>vO(a,p)).command(()=>yO(a,p)).run():l().command(()=>{const E=c().wrapInList(p,r),k=T.filter(A=>f.includes(A.type.name));return a.ensureMarks(k),E?!0:u.clearNodes()}).wrapInList(p,r).command(()=>vO(a,p)).command(()=>yO(a,p)).run()},CWe=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,o=Pf(e,r.schema);return gWe(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},NWe=(e,t,n={})=>({state:r,commands:i})=>{const a=ui(e,r.schema),o=ui(t,r.schema);return eU(r,a,n)?i.setNode(o):i.setNode(a,n)},IWe=(e,t={})=>({state:n,commands:r})=>{const i=ui(e,n.schema);return eU(n,i,t)?r.lift(i):r.wrapIn(i,t)},OWe=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;l-=1)o.step(s.steps[l].invert(s.docs[l]));if(a.text){const l=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,e.schema.text(a.text,l))}else o.delete(a.from,a.to)}return!0}}return!1},DWe=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(a=>{e.removeMark(a.$from.pos,a.$to.pos)}),!0},xWe=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var a;const{extendEmptyMarkRange:o=!1}=t,{selection:s}=n,l=Pf(e,r.schema),{$from:u,empty:c,ranges:d}=s;if(!i)return!0;if(c&&o){let{from:f,to:p}=s;const m=(a=u.marks().find(g=>g.type===l))===null||a===void 0?void 0:a.attrs,h=Z$(u,l,m);h&&(f=h.from,p=h.to),n.removeMark(f,p,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},MWe=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=tU(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(a=ui(e,r.schema)),s==="mark"&&(o=Pf(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;r.doc.nodesBetween(u,c,(d,f)=>{a&&a===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(p=>{if(o===p.type){const m=Math.max(f,u),h=Math.min(f+d.nodeSize,c);n.addMark(m,h,o.create({...p.attrs,...t}))}})})}),!0):!1},RWe=(e,t={})=>({state:n,dispatch:r})=>{const i=ui(e,n.schema);return Jze(i,t)(n,r)},PWe=(e,t={})=>({state:n,dispatch:r})=>{const i=ui(e,n.schema);return Yze(i,t)(n,r)};var FWe=Object.freeze({__proto__:null,blur:vqe,clearContent:yqe,clearNodes:Sqe,command:bqe,createParagraphNear:Tqe,cut:_qe,deleteCurrentNode:Eqe,deleteNode:wqe,deleteRange:kqe,deleteSelection:Aqe,enter:Cqe,exitCode:Nqe,extendMarkRange:Oqe,first:Dqe,focus:Mqe,forEach:Rqe,insertContent:Pqe,insertContentAt:Bqe,joinUp:$qe,joinDown:Uqe,joinBackward:Hqe,joinForward:Vqe,joinItemBackward:zqe,joinItemForward:qqe,keyboardShortcut:jqe,lift:Gqe,liftEmptyBlock:Jqe,liftListItem:Yqe,newlineInCode:Kqe,resetAttributes:Qqe,scrollIntoView:Zqe,selectAll:Xqe,selectNodeBackward:eWe,selectNodeForward:tWe,selectParentNode:nWe,selectTextblockEnd:rWe,selectTextblockStart:iWe,setContent:oWe,setMark:yWe,setMeta:SWe,setNode:bWe,setNodeSelection:TWe,setTextSelection:_We,sinkListItem:EWe,splitBlock:wWe,splitListItem:kWe,toggleList:AWe,toggleMark:CWe,toggleNode:NWe,toggleWrap:IWe,undoInputRule:OWe,unsetAllMarks:DWe,unsetMark:xWe,updateAttributes:MWe,wrapIn:RWe,wrapInList:PWe});Na.create({name:"commands",addCommands(){return{...FWe}}});Na.create({name:"editable",addProseMirrorPlugins(){return[new _r({key:new Br("editable"),props:{editable:()=>this.editor.options.editable}})]}});Na.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new _r({key:new Br("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}});Na.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:l,doc:u}=s,{empty:c,$anchor:d}=l,{pos:f,parent:p}=d,m=d.parent.isTextblock?s.doc.resolve(f-1):d,h=m.parent.type.spec.isolating,g=d.pos-d.parentOffset,v=h&&m.parent.childCount===1?g===d.pos:Et.atStart(u).from===f;return!c||!v||!p.type.isTextblock||p.textContent.length?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},a={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return X$()||Ype()?a:i},addProseMirrorPlugins(){return[new _r({key:new Br("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some(m=>m.docChanged)&&!t.doc.eq(n.doc)))return;const{empty:i,from:a,to:o}=t.selection,s=Et.atStart(t.doc).from,l=Et.atEnd(t.doc).to;if(i||!(a===s&&o===l)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const d=n.tr,f=lN({state:n,transaction:d}),{commands:p}=new K$({editor:this.editor,state:f});if(p.clearNodes(),!!d.steps.length)return d}})]}});Na.create({name:"tabindex",addProseMirrorPlugins(){return[new _r({key:new Br("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});function dS(e){return new cN({find:e.find,handler:({state:t,range:n,match:r})=>{const i=It(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=t,o=r[r.length-1],s=r[0];if(o){const l=s.search(/\S/),u=n.from+s.indexOf(o),c=u+o.length;if(rU(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(h=>h===e.type&&h!==p.mark.type)).filter(p=>p.to>u).length)return null;cn.from&&a.delete(n.from+l,u);const f=n.from+l+o.length;a.addMark(n.from+l,f,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function LWe(e){return new cN({find:e.find,handler:({state:t,range:n,match:r})=>{const i=It(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from;let s=n.to;const l=e.type.create(i);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=o+u;c>s?c=s:s=c+r[1].length;const d=r[0][r[0].length-1];a.insertText(d,o+r[0].length-1),a.replaceWith(c,s,l)}else r[0]&&a.insert(o-1,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s));a.scrollIntoView()}})}function v5(e){return new cN({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),a=It(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)}})}function fS(e){return new cN({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const a=It(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),l=o.doc.resolve(n.from).blockRange(),u=l&&H$(l,e.type,a);if(!u)return null;if(o.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:f}=t,{splittableMarks:p}=e.editor.extensionManager,m=f||d.$to.parentOffset&&d.$from.marks();if(m){const h=m.filter(g=>p.includes(g.type.name));o.ensureMarks(h)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,a).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Mf(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&o.join(n.from-1)}})}let Nu=class y5{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=It(Je(this,"addOptions",{name:this.name}))),this.storage=It(Je(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new y5(t)}configure(t={}){const n=this.extend();return n.options=dN(this.options,t),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new y5(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=It(Je(n,"addOptions",{name:n.name})),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!!!o.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=o.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}},an=class S5{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=It(Je(this,"addOptions",{name:this.name}))),this.storage=It(Je(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new S5(t)}configure(t={}){const n=this.extend();return n.options=dN(this.options,t),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new S5(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=It(Je(n,"addOptions",{name:n.name})),n.storage=It(Je(n,"addStorage",{name:n.name,options:n.options})),n}};function Np(e){return new lqe({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const a=It(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:o}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(rU(n.from,n.to,t.doc).filter(m=>m.mark.type.excluded.find(g=>g===e.type&&g!==m.mark.type)).filter(m=>m.to>d).length)return null;fn.from&&o.delete(n.from+c,d),u=n.from+c+s.length,o.addMark(n.from+c,u,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function BWe(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const $We="aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5mögensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2",UWe="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Pg=(e,t)=>{for(const n in t)e[n]=t[n];return e},b5="numeric",T5="ascii",_5="alpha",xE="asciinumeric",t_="alphanumeric",E5="domain",Qpe="emoji",HWe="scheme",VWe="slashscheme",PK="whitespace";function zWe(e,t){return e in t||(t[e]=[]),t[e]}function N0(e,t,n){t[b5]&&(t[xE]=!0,t[t_]=!0),t[T5]&&(t[xE]=!0,t[_5]=!0),t[xE]&&(t[t_]=!0),t[_5]&&(t[t_]=!0),t[t_]&&(t[E5]=!0),t[Qpe]&&(t[E5]=!0);for(const r in t){const i=zWe(r,n);i.indexOf(e)<0&&i.push(e)}}function qWe(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function za(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}za.groups={};za.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;re.ta(t,n,r,i),Vo=(e,t,n,r,i)=>e.tr(t,n,r,i),FK=(e,t,n,r,i)=>e.ts(t,n,r,i),Ne=(e,t,n,r,i)=>e.tt(t,n,r,i),Fu="WORD",w5="UWORD",pS="LOCALHOST",k5="TLD",A5="UTLD",ME="SCHEME",Hm="SLASH_SCHEME",N3="NUM",Zpe="WS",iU="NL",lh="OPENBRACE",Ky="OPENBRACKET",Qy="OPENANGLEBRACKET",Zy="OPENPAREN",p0="CLOSEBRACE",uh="CLOSEBRACKET",ch="CLOSEANGLEBRACKET",m0="CLOSEPAREN",I3="AMPERSAND",O3="APOSTROPHE",D3="ASTERISK",zc="AT",x3="BACKSLASH",M3="BACKTICK",R3="CARET",Qc="COLON",aU="COMMA",P3="DOLLAR",Pl="DOT",F3="EQUALS",oU="EXCLAMATION",Fl="HYPHEN",L3="PERCENT",B3="PIPE",$3="PLUS",U3="POUND",H3="QUERY",sU="QUOTE",lU="SEMI",Uu="SLASH",Xy="TILDE",V3="UNDERSCORE",Xpe="EMOJI",z3="SYM";var eme=Object.freeze({__proto__:null,WORD:Fu,UWORD:w5,LOCALHOST:pS,TLD:k5,UTLD:A5,SCHEME:ME,SLASH_SCHEME:Hm,NUM:N3,WS:Zpe,NL:iU,OPENBRACE:lh,OPENBRACKET:Ky,OPENANGLEBRACKET:Qy,OPENPAREN:Zy,CLOSEBRACE:p0,CLOSEBRACKET:uh,CLOSEANGLEBRACKET:ch,CLOSEPAREN:m0,AMPERSAND:I3,APOSTROPHE:O3,ASTERISK:D3,AT:zc,BACKSLASH:x3,BACKTICK:M3,CARET:R3,COLON:Qc,COMMA:aU,DOLLAR:P3,DOT:Pl,EQUALS:F3,EXCLAMATION:oU,HYPHEN:Fl,PERCENT:L3,PIPE:B3,PLUS:$3,POUND:U3,QUERY:H3,QUOTE:sU,SEMI:lU,SLASH:Uu,TILDE:Xy,UNDERSCORE:V3,EMOJI:Xpe,SYM:z3});const Sm=/[a-z]/,SO=/\p{L}/u,bO=/\p{Emoji}/u,TO=/\d/,LK=/\s/,BK=` `,WWe="️",jWe="‍";let n_=null,r_=null;function GWe(e){e===void 0&&(e=[]);const t={};za.groups=t;const n=new za;n_==null&&(n_=$K($We)),r_==null&&(r_=$K(UWe)),Ne(n,"'",O3),Ne(n,"{",lh),Ne(n,"[",Ky),Ne(n,"<",Qy),Ne(n,"(",Zy),Ne(n,"}",p0),Ne(n,"]",uh),Ne(n,">",ch),Ne(n,")",m0),Ne(n,"&",I3),Ne(n,"*",D3),Ne(n,"@",zc),Ne(n,"`",M3),Ne(n,"^",R3),Ne(n,":",Qc),Ne(n,",",aU),Ne(n,"$",P3),Ne(n,".",Pl),Ne(n,"=",F3),Ne(n,"!",oU),Ne(n,"-",Fl),Ne(n,"%",L3),Ne(n,"|",B3),Ne(n,"+",$3),Ne(n,"#",U3),Ne(n,"?",H3),Ne(n,'"',sU),Ne(n,"/",Uu),Ne(n,";",lU),Ne(n,"~",Xy),Ne(n,"_",V3),Ne(n,"\\",x3);const r=Vo(n,TO,N3,{[b5]:!0});Vo(r,TO,r);const i=Vo(n,Sm,Fu,{[T5]:!0});Vo(i,Sm,i);const a=Vo(n,SO,w5,{[_5]:!0});Vo(a,Sm),Vo(a,SO,a);const o=Vo(n,LK,Zpe,{[PK]:!0});Ne(n,BK,iU,{[PK]:!0}),Ne(o,BK),Vo(o,LK,o);const s=Vo(n,bO,Xpe,{[Qpe]:!0});Vo(s,bO,s),Ne(s,WWe,s);const l=Ne(s,jWe);Vo(l,bO,s);const u=[[Sm,i]],c=[[Sm,null],[SO,a]];for(let d=0;dd[0]>f[0]?1:-1);for(let d=0;d=0?m[E5]=!0:Sm.test(f)?TO.test(f)?m[xE]=!0:m[T5]=!0:m[b5]=!0,FK(n,f,f,m)}return FK(n,"localhost",pS,{ascii:!0}),n.jd=new za(z3),{start:n,tokens:Pg({groups:t},eme)}}function JWe(e,t){const n=YWe(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let a=0,o=0;for(;o=0&&(d+=n[o].length,f++),u+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,u-=d,i.push({t:c.t,v:t.slice(a-u,a),s:a-u,e:a})}return i}function YWe(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function Cc(e,t,n,r,i){let a;const o=t.length;for(let s=0;s=0;)a++;if(a>0){t.push(n.join(""));let o=parseInt(e.substring(r,r+a),10);for(;o>0;o--)n.pop();r+=a}else e[r]==="_"?(t.push(n.join("")),r++):(n.push(e[r]),r++)}return t}const mS={defaultProtocol:"http",events:null,format:UK,formatHref:UK,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function uU(e,t){t===void 0&&(t=null);let n=Pg({},mS);e&&(n=Pg(n,e instanceof uU?e.o:e));const r=n.ignoreTags,i=[];for(let a=0;an?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=mS.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toFormattedHref(e),r=e.get("tagName",n,t),i=this.toFormattedString(e),a={},o=e.get("className",n,t),s=e.get("target",n,t),l=e.get("rel",n,t),u=e.getObj("attributes",n,t),c=e.getObj("events",n,t);return a.href=n,o&&(a.class=o),s&&(a.target=s),l&&(a.rel=l),u&&Pg(a,u),{tagName:r,attributes:a,content:i,eventListeners:c}}};function fN(e,t){class n extends tme{constructor(i,a){super(i,a),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const HK=fN("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),VK=fN("text"),KWe=fN("nl"),jf=fN("url",{isLink:!0,toHref(e){return e===void 0&&(e=mS.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==pS&&e[1].t===Qc}}),Jr=e=>new za(e);function QWe(e){let{groups:t}=e;const n=t.domain.concat([I3,D3,zc,x3,M3,R3,P3,F3,Fl,N3,L3,B3,$3,U3,Uu,z3,Xy,V3]),r=[O3,ch,p0,uh,m0,Qc,aU,Pl,oU,Qy,lh,Ky,Zy,H3,sU,lU],i=[I3,O3,D3,x3,M3,R3,p0,P3,F3,Fl,N3,lh,L3,B3,$3,U3,H3,Uu,z3,Xy,V3],a=Jr(),o=Ne(a,Xy);nt(o,i,o),nt(o,t.domain,o);const s=Jr(),l=Jr(),u=Jr();nt(a,t.domain,s),nt(a,t.scheme,l),nt(a,t.slashscheme,u),nt(s,i,o),nt(s,t.domain,s);const c=Ne(s,zc);Ne(o,zc,c),Ne(l,zc,c),Ne(u,zc,c);const d=Ne(o,Pl);nt(d,i,o),nt(d,t.domain,o);const f=Jr();nt(c,t.domain,f),nt(f,t.domain,f);const p=Ne(f,Pl);nt(p,t.domain,f);const m=Jr(HK);nt(p,t.tld,m),nt(p,t.utld,m),Ne(c,pS,m);const h=Ne(f,Fl);nt(h,t.domain,f),nt(m,t.domain,f),Ne(m,Pl,p),Ne(m,Fl,h);const g=Ne(m,Qc);nt(g,t.numeric,HK);const v=Ne(s,Fl),y=Ne(s,Pl);nt(v,t.domain,s),nt(y,i,o),nt(y,t.domain,s);const b=Jr(jf);nt(y,t.tld,b),nt(y,t.utld,b),nt(b,t.domain,s),nt(b,i,o),Ne(b,Pl,y),Ne(b,Fl,v),Ne(b,zc,c);const T=Ne(b,Qc),_=Jr(jf);nt(T,t.numeric,_);const E=Jr(jf),k=Jr();nt(E,n,E),nt(E,r,k),nt(k,n,E),nt(k,r,k),Ne(b,Uu,E),Ne(_,Uu,E);const A=Ne(l,Qc),D=Ne(u,Qc),R=Ne(D,Uu);Ne(R,Uu,A),nt(l,t.domain,s),Ne(l,Pl,y),Ne(l,Fl,v),nt(u,t.domain,s),Ne(u,Pl,y),Ne(u,Fl,v),nt(A,t.domain,E),Ne(A,Uu,E);const B=Ne(E,lh),H=Ne(E,Ky),L=Ne(E,Qy),V=Ne(E,Zy);Ne(k,lh,B),Ne(k,Ky,H),Ne(k,Qy,L),Ne(k,Zy,V),Ne(B,p0,E),Ne(H,uh,E),Ne(L,ch,E),Ne(V,m0,E),Ne(B,p0,E);const U=Jr(jf),J=Jr(jf),re=Jr(jf),X=Jr(jf);nt(B,n,U),nt(H,n,J),nt(L,n,re),nt(V,n,X);const j=Jr(),te=Jr(),M=Jr(),W=Jr();return nt(B,r),nt(H,r),nt(L,r),nt(V,r),nt(U,n,U),nt(J,n,J),nt(re,n,re),nt(X,n,X),nt(U,r,U),nt(J,r,J),nt(re,r,re),nt(X,r,X),nt(j,n,j),nt(te,n,J),nt(M,n,re),nt(W,n,X),nt(j,r,j),nt(te,r,te),nt(M,r,M),nt(W,r,W),Ne(J,uh,E),Ne(re,ch,E),Ne(X,m0,E),Ne(U,p0,E),Ne(te,uh,E),Ne(M,ch,E),Ne(W,m0,E),Ne(j,m0,E),Ne(a,pS,b),Ne(a,iU,KWe),{start:a,tokens:eme}}function ZWe(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i=0&&f++,i++,c++;if(f<0)i-=c,i0&&(a.push(_O(VK,t,o)),o=[]),i-=f,c-=f;const p=d.t,m=n.slice(i-c,i);a.push(_O(p,t,m))}}return o.length>0&&a.push(_O(VK,t,o)),a}function _O(e,t,n){const r=n[0].s,i=n[n.length-1].e,a=t.slice(r,i);return new e(a,n)}const XWe=typeof console<"u"&&console&&console.warn||(()=>{}),eje="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",lr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tje(){za.groups={},lr.scanner=null,lr.parser=null,lr.tokenQueue=[],lr.pluginQueue=[],lr.customSchemes=[],lr.initialized=!1}function zK(e,t){if(t===void 0&&(t=!1),lr.initialized&&XWe(`linkifyjs: already initialized - will not register custom scheme "${e}" ${eje}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" 3. "-" cannot repeat`);lr.customSchemes.push([e,t])}function nje(){lr.scanner=GWe(lr.customSchemes);for(let e=0;e{const i=t.some(u=>u.docChanged)&&!n.doc.eq(r.doc),a=t.some(u=>u.getMeta("preventAutolink"));if(!i||a)return;const{tr:o}=r,s=sWe(n.doc,[...t]);if(hWe(s).forEach(({newRange:u})=>{const c=uWe(r.doc,u,p=>p.isTextblock);let d,f;if(c.length>1?(d=c[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(d=c[0],f=r.doc.textBetween(d.pos,u.to,void 0," ")),d&&f){const p=f.split(" ").filter(g=>g!=="");if(p.length<=0)return!1;const m=p[p.length-1],h=d.pos+f.lastIndexOf(m);if(!m)return!1;cU(m).filter(g=>g.isLink).map(g=>({...g,from:h+g.start+1,to:h+g.end+1})).filter(g=>r.schema.marks.code?!r.doc.rangeHasMark(g.from,g.to,r.schema.marks.code):!0).filter(g=>e.validate?e.validate(g.value):!0).forEach(g=>{rU(g.from,g.to,r.doc).some(v=>v.mark.type===e.type)||o.addMark(g.from,g.to,e.type.create({href:g.href}))})}}),!!o.steps.length)return o}})}function aje(e){return new _r({key:new Br("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,a;if(r.button!==0||r.target.nodeName!=="A")return!1;const s=fWe(t.state,e.type.name),l=r.target,u=(i=l==null?void 0:l.href)!==null&&i!==void 0?i:s.href,c=(a=l==null?void 0:l.target)!==null&&a!==void 0?a:s.target;return l&&u?(t.editable&&window.open(u,c),!0):!1}}})}function oje(e){return new _r({key:new Br("handlePasteLink"),props:{handlePaste:(t,n,r)=>{var i;const{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let l="";r.content.forEach(m=>{l+=m.textContent});const u=cU(l).find(m=>m.isLink&&m.value===l);if(!l||!u)return!1;const c=(i=n.clipboardData)===null||i===void 0?void 0:i.getData("text/html"),d=/href="([^"]*)"/,f=c==null?void 0:c.match(d),p=f?f[1]:u.href;return e.editor.commands.setMark(e.type,{href:p}),!0}}})}const nme=Nu.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(e=>{if(typeof e=="string"){zK(e);return}zK(e.scheme,e.optionalSlashes)})},onDestroy(){tje()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:e}){return["a",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Np({find:e=>cU(e).filter(t=>this.options.validate?this.options.validate(t.value):!0).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:(e,t)=>{var n,r;const i=(n=t==null?void 0:t.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),a=/href="([^"]*)"/,o=i==null?void 0:i.match(a);return o?{href:o[1]}:{href:(r=e.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.autolink&&e.push(ije({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push(aje({type:this.type})),this.options.linkOnPaste&&e.push(oje({editor:this.editor,type:this.type})),e}}),rme="text-decoration: none; color: #7d7a99;",sje=nme.extend({name:"unsubscribeLink",addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),styles:rme}},renderHTML({HTMLAttributes:e}){return["a",{...e,style:this.options.styles},0]}});var oe;(function(e){e.Unimplemented="Unimplemented",e.Placeholder="Placeholder",e.Italic="Italic",e.Bold="Bold",e.Underline="Underline",e.Code="Code",e.CodeBlocks="CodeBlocks",e.Headings="Headings",e.NumberedLists="NumberedLists",e.BulletedLists="BulletedLists",e.Links="Links",e.UnsubscribeLinks="UnsubscribeLinks",e.Mentions="Mentions",e.Tokens="Tokens",e.SubstitutionGroups="SubstitutionGroups",e.Blockquote="Blockquote",e.InternalImages="InternalImages",e.PublicImages="PublicImages",e.QuotedContent="QuotedContent",e.EmailSignatures="EmailSignatures",e.EmbedVideos="EmbedVideos",e.Table="Table",e.RequiredPlaceholders="RequiredPlaceholders",e.AshbyTokenTooltips="AshbyTokenTooltips",e.TextStyle="TextStyle",e.Color="Color",e.FontFamily="FontFamily",e.HTMLContent="HTMLContent"})(oe||(oe={}));const C5={name:oe.Unimplemented},pN=({placeholder:e,emptyEditorClass:t})=>({name:oe.Placeholder,placeholder:e,emptyEditorClass:t}),dU={name:oe.Italic},fU={name:oe.Bold},pU={name:oe.Underline},mU={name:oe.Code},hU={name:oe.CodeBlocks},gU={name:oe.Headings},vU={name:oe.NumberedLists},yU={name:oe.BulletedLists},SU={name:oe.Links},lje=({styles:e})=>({name:oe.UnsubscribeLinks,styles:e}),uje=({fetch:e})=>({name:oe.Mentions,fetch:e}),cje={name:oe.Table},dje=({callback:e}={})=>({name:oe.Tokens,callback:e}),fje=({openSubstitutionTokenBrowser:e})=>({name:oe.SubstitutionGroups,openSubstitutionTokenBrowser:e}),ime={name:oe.Blockquote},ame={name:oe.InternalImages,accessibility:gu.Internal},pje={name:oe.PublicImages,accessibility:gu.Public},mje={name:oe.QuotedContent},hje=({mode:e,insertEmailSignatureBeforeQuotedContent:t=!0})=>({name:oe.EmailSignatures,mode:e,insertEmailSignatureBeforeQuotedContent:t}),gje={name:oe.EmbedVideos},vje=e=>({name:oe.RequiredPlaceholders,displaysFloatingIndicator:e}),yje={name:oe.AshbyTokenTooltips},Sje={name:oe.TextStyle},bje={name:oe.Color},Tje={name:oe.FontFamily},_je={name:oe.HTMLContent},q3="Write something…",Eje=e=>{const{placeholder:t=q3,emptyEditorClass:n}=e||{placeholder:q3};return[C5,pN({placeholder:t,emptyEditorClass:n}),dU,fU,pU,mU,hU,gU,vU,yU,SU,ime]},wje=e=>{const{placeholder:t=q3}=e||{placeholder:q3};return ome(Object.values(oe),t)};function ome(e,t,n=rme){return e.map(r=>{switch(r){case oe.Unimplemented:return C5;case oe.Placeholder:return pN({placeholder:t||""});case oe.Italic:return dU;case oe.Bold:return fU;case oe.Underline:return pU;case oe.Code:return mU;case oe.CodeBlocks:return hU;case oe.TextStyle:return Sje;case oe.Color:return bje;case oe.FontFamily:return Tje;case oe.Headings:return gU;case oe.NumberedLists:return vU;case oe.BulletedLists:return yU;case oe.Links:return SU;case oe.UnsubscribeLinks:return lje({styles:n});case oe.Mentions:return uje({fetch:async()=>await Promise.resolve([])});case oe.Tokens:return dje({});case oe.SubstitutionGroups:return fje({});case oe.Blockquote:return ime;case oe.InternalImages:return ame;case oe.PublicImages:return pje;case oe.QuotedContent:return mje;case oe.EmailSignatures:return hje({mode:"preview"});case oe.EmbedVideos:return gje;case oe.Table:return cje;case oe.RequiredPlaceholders:return vje(!1);case oe.AshbyTokenTooltips:return yje;case oe.HTMLContent:return _je;default:return(i=>C5)()}})}var qK;(function(e){e.todo="todo",e.completed="completed",e.cancelled="cancelled"})(qK||(qK={}));var bU=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sme=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)};let WK=class{convertToTime({now:t=Ue.local()}){return t.toJSDate()}format(){return"Immediately"}};WK=bU([ne("NoDelay")],WK);let jK=class{constructor({dateTimeISO:t,timezoneName:n}){this.dateTimeISO=t,this.timezoneName=n}convertToTime({now:t=Ue.local()}){return Ue.fromISO(this.dateTimeISO).toJSDate()}format({locale:t}){return Aje({dateTimeISO:this.dateTimeISO,locale:t})}onDecodeComplete(){this.timezoneName||(this.timezoneName=al)}};jK=bU([ne("AtDateAndTimeDelay"),sme("design:paramtypes",[Object])],jK);class kje{constructor({timezone:t,time:n}){this.timezone=t,this.time=n,t&&this.onDecodeComplete()}onDecodeComplete(){if(!xr.isValidZone(this.timezone))throw new Error(`"${this.timezone}" is not a valid timezone`)}}let GK=class extends kje{constructor({unit:t,amount:n,allowedWeekdays:r=YK,...i}){super(i),this.unit=t,this.amount=n,this.allowedWeekdays=r}convertToTime({now:t=Ue.local()}){let n=t.plus({[Ije(this.unit)]:this.amount}).setZone(this.timezone).startOf("day").set(this.time);if(n==null||!n.isValid||isNaN(n.weekday))throw new Error("Delay couldn't be translated to a valid date time");const r=Object.entries(this.allowedWeekdays).reduce((a,[o,s])=>a||s,!1);let i=14;for(;i>0&&r&&!this.allowedWeekdays[n.weekday];)n=n.plus({day:1}),i--;if(i<=0)throw new Error("Unable to find allowed weekday for the provided delay");return n.toJSDate()}format({locale:t="en-US",relativeTo:n=new Date}){let r="";return JK(this.allowedWeekdays,Cje)?r=" on weekdays":JK(this.allowedWeekdays,YK)||(r=Object.values(it).filter(i=>this.allowedWeekdays[i]).reduce(function(i,a,o,s){return`${i} ${Nje(a)}${o=o)return[];for(;a0&&arguments[0]!==void 0?arguments[0]:[],t=An(),n=at(Wo),r=at(js),i=An(),a=at(lme),o=[[Av,r],[Ev,r],[wv,r],[kv,r]],s=function(){var T=at(js);return T.j={"-":i},T.jr=[].concat(o),T},l=function(T){var _=s();return _.t=T,_};xje(t,[["'",at(G3)],["{",at(dh)],["[",at(e2)],["<",at(t2)],["(",at(n2)],["}",at(h0)],["]",at(fh)],[">",at(ph)],[")",at(mh)],["&",at(j3)],["*",at(J3)],["@",at(hh)],["`",at(K3)],["^",at(Q3)],[":",at(r2)],[",",at(wU)],["$",at(Z3)],[".",at(qc)],["=",at(X3)],["!",at(kU)],["-",at(eA)],["%",at(tA)],["|",at(nA)],["+",at(rA)],["#",at(iA)],["?",at(aA)],['"',at(AU)],["/",at(Ku)],[";",at(CU)],["~",at(oA)],["_",at(sA)],["\\",at(Y3)]]),Pe(t,` `,at(EU)),Yr(t,XK,a),Pe(a,` `,An()),Yr(a,XK,a);for(var u=0;u=0&&(d+=n[o].length,f++),u+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,u-=d,i.push({t:c.t,v:t.substr(a-u,u),s:a-u,e:a})}return i}function Fje(e){for(var t=[],n=e.length,r=0;r56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function RE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?RE=function(t){return typeof t}:RE=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},RE(e)}var Fi={defaultProtocol:"http",events:null,format:eQ,formatHref:eQ,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function Lje(e){e=e||{},this.defaultProtocol="defaultProtocol"in e?e.defaultProtocol:Fi.defaultProtocol,this.events="events"in e?e.events:Fi.events,this.format="format"in e?e.format:Fi.format,this.formatHref="formatHref"in e?e.formatHref:Fi.formatHref,this.nl2br="nl2br"in e?e.nl2br:Fi.nl2br,this.tagName="tagName"in e?e.tagName:Fi.tagName,this.target="target"in e?e.target:Fi.target,this.rel="rel"in e?e.rel:Fi.rel,this.validate="validate"in e?e.validate:Fi.validate,this.truncate="truncate"in e?e.truncate:Fi.truncate,this.className="className"in e?e.className:Fi.className,this.attributes=e.attributes||Fi.attributes,this.ignoreTags=[];for(var t=("ignoreTags"in e)?e.ignoreTags:Fi.ignoreTags,n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r.constructor=t,t.prototype=r,t}function uA(){}uA.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fi.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};function rm(e,t){function n(r,i){this.t=e,this.v=r,this.tk=i}return Bje(uA,n,t),n}var ume=rm("email",{isLink:!0}),N5=rm("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),I5=rm("text"),cme=rm("nl"),Pc=rm("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fi.defaultProtocol,n=this.tk,r=!1,i=!1,a=[],o=0;n[o].t===Fg;)r=!0,a.push(n[o].v),o++;for(;n[o].t===Ku;)i=!0,a.push(n[o].v),o++;for(;o=0&&f++,i++,c++;if(f<0)for(var p=i-c;p0&&(a.push(EO(I5,t,o)),o=[]),i-=f,c-=f;var m=d.t,h=n.slice(i-c,i);a.push(EO(m,t,h))}}return o.length>0&&a.push(EO(I5,t,o)),a}function EO(e,t,n){var r=n[0].s,i=n[n.length-1].e,a=t.substr(r,i-r);return new e(a,n)}var Gs={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function Vje(){Gs.scanner={start:Rje(Gs.customProtocols),tokens:Mje},Gs.parser={start:Uje(),tokens:$je};for(var e={createTokenClass:rm},t=0;t1&&arguments[1]!==void 0?arguments[1]:null,n=zje(e),r=[],i=0;i䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),fme=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var wO;const qje=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),O5=(wO=String.fromCodePoint)!==null&&wO!==void 0?wO:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Wje(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=qje.get(e))!==null&&t!==void 0?t:e}var ai;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ai||(ai={}));const jje=32;var gd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(gd||(gd={}));function D5(e){return e>=ai.ZERO&&e<=ai.NINE}function Gje(e){return e>=ai.UPPER_A&&e<=ai.UPPER_F||e>=ai.LOWER_A&&e<=ai.LOWER_F}function Jje(e){return e>=ai.UPPER_A&&e<=ai.UPPER_Z||e>=ai.LOWER_A&&e<=ai.LOWER_Z||D5(e)}function Yje(e){return e===ai.EQUALS||Jje(e)}var Qr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Qr||(Qr={}));var Wl;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Wl||(Wl={}));class pme{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wl.Strict}startEntity(t){this.decodeMode=t,this.state=Qr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qr.EntityStart:return t.charCodeAt(n)===ai.NUM?(this.state=Qr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qr.NamedEntity,this.stateNamedEntity(t,n));case Qr.NumericStart:return this.stateNumericStart(t,n);case Qr.NumericDecimal:return this.stateNumericDecimal(t,n);case Qr.NumericHex:return this.stateNumericHex(t,n);case Qr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|jje)===ai.LOWER_X?(this.state=Qr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(o===ai.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Wl.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&gd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~gd.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Qr.NamedEntity:return this.result!==0&&(this.decodeMode!==Wl.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qr.NumericDecimal:return this.emitNumericEntity(0,2);case Qr.NumericHex:return this.emitNumericEntity(0,3);case Qr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qr.EntityStart:return 0}}}function mme(e){let t="";const n=new pme(e,r=>t+=O5(r));return function(i,a){let o=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(o,s),n.startEntity(a);const u=n.write(i,s+1);if(u<0){o=s+n.end();break}o=s+u,s=u===0?o+1:o}const l=t+i.slice(o);return t="",l}}function Kje(e,t,n,r){const i=(t&gd.BRANCH_LENGTH)>>7,a=t&gd.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let o=n,s=o+i-1;for(;o<=s;){const l=o+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}mme(dme);mme(fme);var ot;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(ot||(ot={}));var Ee;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.InEntity=25]="InEntity"})(Ee||(Ee={}));function Lu(e){return e===ot.Space||e===ot.NewLine||e===ot.Tab||e===ot.FormFeed||e===ot.CarriageReturn}function i_(e){return e===ot.Slash||e===ot.Gt||Lu(e)}function Qje(e){return e>=ot.LowerA&&e<=ot.LowerZ||e>=ot.UpperA&&e<=ot.UpperZ}var jl;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(jl||(jl={}));const Pa={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Zje{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=Ee.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Ee.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=n,this.entityDecoder=new pme(t?fme:dme,(i,a)=>this.emitCodePoint(i,a))}reset(){this.state=Ee.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Ee.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Ee.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===ot.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?i_(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Ee.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===ot.Gt||Lu(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Ee.Text||this.state===Ee.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Ee.InAttributeValueDq||this.state===Ee.InAttributeValueSq||this.state===Ee.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=t||(this.state===Ee.InCommentLike?this.currentSequence===Pa.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===Ee.InTagName||this.state===Ee.BeforeAttributeName||this.state===Ee.BeforeAttributeValue||this.state===Ee.AfterAttributeName||this.state===Ee.InAttributeName||this.state===Ee.InAttributeValueSq||this.state===Ee.InAttributeValueDq||this.state===Ee.InAttributeValueNq||this.state===Ee.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==Ee.Text&&this.baseState!==Ee.InSpecialTag?(this.sectionStart0&&o.has(this.stack[0]);){const s=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(iQ.has(t)?this.foreignContext.unshift(!0):aQ.has(t)&&this.foreignContext.unshift(!1))),(a=(i=this.cbs).onopentagname)===null||a===void 0||a.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var r,i,a,o,s,l,u,c;this.endIndex=n;let d=this.getSlice(t,n);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),this.htmlMode&&(iQ.has(d)||aQ.has(d))&&this.foreignContext.shift(),this.isVoidElement(d))this.htmlMode&&d==="br"&&((o=(a=this.cbs).onopentagname)===null||o===void 0||o.call(a,"br"),(l=(s=this.cbs).onopentag)===null||l===void 0||l.call(s,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{const f=this.stack.indexOf(d);if(f!==-1)for(let p=0;p<=f;p++){const m=this.stack.shift();(i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,m,p!==f)}else this.htmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.options.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!t),this.stack.shift())}onattribname(t,n){this.startIndex=t;const r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=O5(t)}onattribend(t,n){var r,i;this.endIndex=n,(i=(r=this.cbs).onattribute)===null||i===void 0||i.call(r,this.attribname,this.attribvalue,t===jl.Double?'"':t===jl.Single?"'":t===jl.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(tGe);let r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${i}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${i}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var i,a,o,s;this.endIndex=n,(a=(i=this.cbs).oncomment)===null||a===void 0||a.call(i,this.getSlice(t,n-r)),(s=(o=this.cbs).oncommentend)===null||s===void 0||s.call(o),this.startIndex=n+1}oncdata(t,n,r){var i,a,o,s,l,u,c,d,f,p;this.endIndex=n;const m=this.getSlice(t,n-r);!this.htmlMode||this.options.recognizeCDATA?((a=(i=this.cbs).oncdatastart)===null||a===void 0||a.call(i),(s=(o=this.cbs).ontext)===null||s===void 0||s.call(o,m),(u=(l=this.cbs).oncdataend)===null||u===void 0||u.call(l)):((d=(c=this.cbs).oncomment)===null||d===void 0||d.call(c,`[CDATA[${m}]]`),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{if(typeof e=="string")return!1;const t=e.getAttribute("data-field-path");if(t==null)return!1;const n=oQ({fieldPath:t,substitutionTokenFieldSets:this.options.substitutionTokenFieldSets});return n??!1}}]},renderHTML({node:e,HTMLAttributes:t}){return fGe({node:e,HTMLAttributes:t,options:this.options})},renderText({node:e}){var t,n;const r=a=>e.attrs.actAs==="block"?` ${a} `:a,i=e.attrs.previewText&&typeof e.attrs.previewText=="string"?e.attrs.previewText:void 0;return i!=null?r(i):r(`{${(t=e.attrs.prefix)!==null&&t!==void 0?t:""}{${e.attrs.field.path}}${(n=e.attrs.postfix)!==null&&n!==void 0?n:""}}`)},addPasteRules(){return this.options.enablePasteRule?[{find:/\{([^\{\}]*)\{(\w+)\}([^\{\}]*)\}/g,handler:({range:e,match:t,commands:n})=>{const[,r,i,a]=t,s=oQ({fieldPath:i,substitutionTokenFieldSets:this.options.substitutionTokenFieldSets,onlyVirtual:!0});s!=null&&n.insertContentAt(e,[{type:"token",attrs:{...s,prefix:r,postfix:a}}])}}]:[]},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:a}=r;return i?(t.doc.nodesBetween(a-1,a,(o,s)=>{if(o.type.name===this.name)return n=!0,e.insertText("",s,s+o.nodeSize),!1}),n):!1})}},addCommands(){return{tokenButtonPressed:()=>()=>{var e,t;return(t=(e=this.options).tokenButtonCallback)===null||t===void 0||t.call(e),!0},addToken:e=>({state:t,commands:n})=>{const{selection:r}=t,{empty:i,ranges:a}=r;let o;if(i)o=Math.min(...a.map(s=>s.$from.pos));else{const s=Math.min(...a.map(u=>u.$from.pos)),l=Math.max(...a.map(u=>u.$to.pos));o={from:s,to:l}}return n.insertContentAt(o,[{type:"token",attrs:e}])},replaceTokenWithPlainText:(e,t)=>({commands:n,state:r})=>{const i=sQ(e,r);return i!=null?n.insertContentAt(i,t):!1},deleteToken:e=>({commands:t,state:n})=>{const r=sQ(e,n);return r!=null?t.deleteRange(r):!1}}}});function iGe({prefix:e,postfix:t,attributes:n,prefixAttributes:r,postfixAttributes:i},{value:a}){const o=e==null?null:["span",r,e],s=t==null?null:["span",i,t];let l=a;return(o!=null||s!=null)&&(l=["span",a]),["span",n,...[o,l,s].filter(kr)]}function oQ({fieldPath:e,substitutionTokenFieldSets:t,onlyVirtual:n=!1}){let r=null;for(const i of t)if(i instanceof wn){if(e===i.path){if(R$(i))r=O0e(i);else if(n)return null}}else{const a=T$(e,i.fieldSet.fields);a&&(r=i.tokenFromField(a))}return r}class aGe extends Error{constructor(t,n){super(n),Object.setPrototypeOf(this,new.target.prototype),this.failedToken=t}}function oGe(e,t){const n=sGe(e);if(n===void 0){if(e.attrs.substitutionIsRequired)throw new Error(`Unable to retrieve token data from substitution node: ${JSON.stringify(n)}`);return[null,null]}const r=n.substitutionValue;if(r===null){if(n.missingTokenSubstitution!=null&&n.missingTokenSubstitution!==!1)return[n.missingTokenSubstitution,null];if(e.attrs.substitutionIsRequired){const s=Lr(n.field);throw new aGe(n,`No substitution value found for path ${s.path} for identifier ${n.objectIdentifier}.`)}else return[null,null]}const{domOutputSpec:i,htmlFormat:a,stringFormat:o}=lGe({value:r,field:Lr(n.field),format:n.format,prefix:e.attrs.prefix,postfix:e.attrs.postfix,makeOutputSpec:t});return i!=null||a!=null?[i,a]:[null,o]}function sGe(e){if(I0e(e.attrs))return e.attrs}function lGe({value:e,field:t,format:n,prefix:r,postfix:i,makeOutputSpec:a}){if(e==null)return{};if(t instanceof _p)return{stringFormat:gh({value:dGe(e,n),prefix:r,postfix:i})};if(t.type==="RichText")return typeof e=="string"?e.startsWith("<")?{htmlFormat:e}:{stringFormat:gh({value:e,prefix:r,postfix:i})}:{};const o=uGe({fieldPath:t.path,prefix:r,postfix:i}),s=cGe({fieldPath:t.path,value:e,prefix:r,postfix:i});if(o||s){const u=gh({value:s?e:encodeURIComponent(e),prefix:r,postfix:i}),c=u!=null?hS(u):[];if(c.length>0){const d=c[0];if(d.isLink){const f=decodeURI(d.value);return{domOutputSpec:["a",{href:d.href},f],htmlFormat:`${f}`}}}}const l=gh({value:e,prefix:r,postfix:i});return l!=null?{domOutputSpec:a(e),stringFormat:l}:{}}const hme=["organizationName","jobTitle"];function uGe({fieldPath:e,prefix:t,postfix:n}){if(hme.includes(e))return!1;const r=gh({value:"dummy",prefix:t,postfix:n});return(r!=null?hS(r):[]).length>0}function cGe({fieldPath:e,value:t,prefix:n,postfix:r}){return hme.includes(e)||gh({value:t,prefix:n,postfix:r})!==t?!1:hS(t).length>0}function gh({value:e,prefix:t,postfix:n}){if(typeof e=="string")return`${t??""}${e}${n??""}`}var cA;(function(e){e.full="full",e.med="med"})(cA||(cA={}));function dGe(e,t){const n=Ue.fromJSDate(e);switch(t){case cA.med:return n.toLocaleString(Ue.DATE_MED);case cA.full:return n.toLocaleString(Ue.DATE_FULL);default:return n.toLocaleString(Ue.DATE_MED)}}function sQ(e,t){const n=t.doc.resolve(e),r=e-n.textOffset;return{from:r,to:r+n.parent.child(n.index()).nodeSize}}function fGe({node:e,HTMLAttributes:t,options:n}){const r=e.attrs.prefix,i=e.attrs.postfix,a=bt(n.HTMLAttributes,t),o=bt(e.attrs.prefixHTMLAttributes),s=bt(e.attrs.postfixHTMLAttributes),l=iGe.bind(null,{prefix:r,postfix:i,attributes:a,prefixAttributes:o,postfixAttributes:s}),u=m=>l({value:m,purpose:"substitution"}),c=m=>l({value:m,purpose:"substitution"});a["data-field-path"]=e.attrs.field.path;const[d,f]=oGe(e,u),p=e.attrs.previewText&&typeof e.attrs.previewText=="string"?e.attrs.previewText:void 0;if(d!=null&&typeof d=="string")return u(d);if(d!=null)return d;if(f)return pGe({htmlContent:f,attributes:a});if(p&&p.includes(` `)){const m=p.split(` `).map(h=>h.trimEnd()).filter(h=>h.length>0).flatMap(h=>[["span",h],["br"]]).slice(0,-1);return["multilinetoken",a,...m]}else return c(p||e.attrs.field.humanReadablePath)}function pGe({htmlContent:e,attributes:t}){const n={attributes:{}},r=new nGe({onopentag:(i,a)=>{i==="a"&&(a.rel&&(n.tagName=i,n.attributes.rel=a.rel),a.target&&(n.attributes.target=a.target),a.href&&(n.attributes.href=a.href))},ontext(i){n.text=i}});if(r.write(e),r.end(),n.tagName==="a"){const i=[n.tagName,n.attributes,n.text];return["span",t,i]}return["span",t,`${e}`]}const mGe=Nu.create({name:"tooltip",group:"tooltip",content:"inline",selectable:!1,atom:!0,draggable:!1,addOptions(){return{HTMLAttributes:{class:"tooltip"}}},parseHTML(){return[{tag:"span",getAttrs:e=>typeof e=="string"?!1:e.hasAttribute("class")&&e.className==="tooltip"?e.attributes:!1,consuming:!0}]},renderHTML(e){return["span",bt(this.options.HTMLAttributes,e.HTMLAttributes)]}});function hGe(e){var t;const{char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=BWe(n),l=new RegExp(`\\s${s}$`),u=a?"^":"",c=r?new RegExp(`${u}${s}.*?(?=\\s${s}|$)`,"gm"):new RegExp(`${u}(?:^)?${s}[^\\s${s}]*`,"gm"),d=((t=o.nodeBefore)===null||t===void 0?void 0:t.isText)&&o.nodeBefore.text;if(!d)return null;const f=o.pos-d.length,p=Array.from(d.matchAll(c)).pop();if(!p||p.input===void 0||p.index===void 0)return null;const m=p.input.slice(Math.max(0,p.index-1),p.index),h=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(m);if(i!==null&&!h)return null;const g=f+p.index;let v=g+p[0].length;return r&&l.test(d.slice(v-1,v+1))&&(p[0]+=" ",v+=1),g=o.pos?{range:{from:g,to:v},query:p[0].slice(n.length),text:p[0]}:null}const gGe=new Br("suggestion");function vGe({pluginKey:e=gGe,editor:t,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:a=!1,decorationTag:o="span",decorationClass:s="suggestion",command:l=()=>null,items:u=()=>[],render:c=()=>({}),allow:d=()=>!0}){let f;const p=c==null?void 0:c(),m=new _r({key:e,view(){return{update:async(h,g)=>{var v,y,b,T,_,E,k;const A=(v=this.key)===null||v===void 0?void 0:v.getState(g),D=(y=this.key)===null||y===void 0?void 0:y.getState(h.state),R=A.active&&D.active&&A.range.from!==D.range.from,B=!A.active&&D.active,H=A.active&&!D.active,L=!B&&!H&&A.query!==D.query,V=B||R,U=L&&!R,J=H||R;if(!V&&!U&&!J)return;const re=J&&!V?A:D,X=h.dom.querySelector(`[data-decoration-id="${re.decorationId}"]`);f={editor:t,range:re.range,query:re.query,text:re.text,items:[],command:j=>{l({editor:t,range:re.range,props:j})},decorationNode:X,clientRect:X?()=>{var j;const{decorationId:te}=(j=this.key)===null||j===void 0?void 0:j.getState(t.state),M=h.dom.querySelector(`[data-decoration-id="${te}"]`);return(M==null?void 0:M.getBoundingClientRect())||null}:null},V&&((b=p==null?void 0:p.onBeforeStart)===null||b===void 0||b.call(p,f)),U&&((T=p==null?void 0:p.onBeforeUpdate)===null||T===void 0||T.call(p,f)),(U||V)&&(f.items=await u({editor:t,query:re.query})),J&&((_=p==null?void 0:p.onExit)===null||_===void 0||_.call(p,f)),U&&((E=p==null?void 0:p.onUpdate)===null||E===void 0||E.call(p,f)),V&&((k=p==null?void 0:p.onStart)===null||k===void 0||k.call(p,f))},destroy:()=>{var h;f&&((h=p==null?void 0:p.onExit)===null||h===void 0||h.call(p,f))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(h,g,v,y){const{isEditable:b}=t,{composing:T}=t.view,{selection:_}=h,{empty:E,from:k}=_,A={...g};if(A.composing=T,b&&(E||t.view.composing)){(kg.range.to)&&!T&&!g.composing&&(A.active=!1);const D=hGe({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:a,$position:_.$from}),R=`id_${Math.floor(Math.random()*4294967295)}`;D&&d({editor:t,state:y,range:D.range})?(A.active=!0,A.decorationId=g.decorationId?g.decorationId:R,A.range=D.range,A.query=D.query,A.text=D.text):A.active=!1}else A.active=!1;return A.active||(A.decorationId=null,A.range={from:0,to:0},A.query=null,A.text=null),A}},props:{handleKeyDown(h,g){var v;const{active:y,range:b}=m.getState(h.state);return y&&((v=p==null?void 0:p.onKeyDown)===null||v===void 0?void 0:v.call(p,{view:h,event:g,range:b}))||!1},decorations(h){const{active:g,range:v,decorationId:y}=m.getState(h);return g?ha.create(h.doc,[_c.inline(v.from,v.to,{nodeName:o,class:s,"data-decoration-id":y})]):null}}});return m}const yGe=new Br("mention"),SGe=an.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n;return`${e.suggestion.char}${(n=t.attrs.label)!==null&&n!==void 0?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:yGe,command:({editor:e,range:t,props:n})=>{var r,i;const a=e.view.state.selection.$to.nodeAfter;((r=a==null?void 0:a.text)===null||r===void 0?void 0:r.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(i=window.getSelection())===null||i===void 0||i.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),r=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",bt({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:a}=r;return i?(t.doc.nodesBetween(a-1,a,(o,s)=>{if(o.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",s,s+o.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[vGe({editor:this.editor,...this.options.suggestion})]}});function lQ({firstName:e,lastName:t}){return[e,t].filter(kr).join(" ").trim()}const bGe=()=>({HTMLAttributes:{href:"#"}}),TGe=()=>({id:{default:null,parseHTML:e=>({id:e.getAttribute("data-mention-id")}),renderHTML:e=>e.id?{"data-mention-id":e.id}:{},keepOnSplit:!1},firstName:{default:null,parseHTML:e=>({firstName:e.getAttribute("data-mention-first-name")}),renderHTML:e=>e.firstName?{"data-mention-first-name":e.firstName}:{},keepOnSplit:!1},lastName:{default:null,parseHTML:e=>({lastName:e.getAttribute("data-mention-last-name")}),renderHTML:e=>e.lastName?{"data-mention-last-name":e.lastName}:{},keepOnSplit:!1}}),_Ge=()=>[{tag:"a[data-mention-id][data-mention-first-name][data-mention-last-name]"}],EGe=SGe.extend({addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),...bGe}},addAttributes:TGe,parseHTML:_Ge,renderHTML({node:e,HTMLAttributes:t}){return["a",bt(this.options.HTMLAttributes,t),`${this.options.suggestion.char}${lQ(e.attrs)}`]},renderText({node:e}){return`${this.options.suggestion.char}${lQ(e.attrs)}`}}),M1=an.create({name:"doc",topNode:!0,content:"block+"}),wGe=M1.extend({content:"block+ nonDeletableHardBreak? signature? nonDeletableHardBreak? quotedContentContainer? signatureSeparator? signature?"}),kGe=M1.extend({content:"block+ nonDeletableHardBreak? quotedContentContainer?"}),AGe=M1.extend({content:"block+ signature?"}),gme=an.create({name:"unimplemented",priority:0,addOptions(){return{HTMLAttributes:{class:"unimplemented",style:"color: white; font-weight: bold; background-color: red; padding: 2px 4px; border-radius: 3px;"}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{type:{default:"unknown",renderHTML:e=>({"data-type":e.type})}}},renderHTML({node:e,HTMLAttributes:t}){return["span",bt(this.options.HTMLAttributes,t),`unimplemented: ${e.attrs.type}`]}});function CGe(e={}){return new _r({view(t){return new NGe(t,e)}})}let NGe=class{constructor(t,n){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=n.width||1,this.color=n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=a=>{this[r](a)};return t.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),d=s?c.bottom:c.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let a,o;if(!i||i==document.body&&getComputedStyle(i).position=="static")a=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();a=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=r.left-a+"px",this.element.style.top=r.top-o+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!a){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=ipe(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}};const IGe=Na.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[CGe(this.options)]}});let no=class Fc extends Et{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Fc.valid(r)?new Fc(r):Et.near(r)}content(){return $e.empty}eq(t){return t instanceof Fc&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Fc(t.resolve(n.pos))}getBookmark(){return new OGe(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!DGe(t)||!xGe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Fc.valid(t))return t;let i=t.pos,a=null;for(let o=t.depth;;o--){let s=t.node(o);if(n>0?t.indexAfter(o)0){a=s.child(n>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;i+=n;let l=t.doc.resolve(i);if(Fc.valid(l))return l}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!At.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue e}break}a=o,i+=n;let s=t.doc.resolve(i);if(Fc.valid(s))return s}return null}}};no.prototype.visible=!1;no.findFrom=no.findGapCursorFrom;Et.jsonID("gapcursor",no);let OGe=class vme{constructor(t){this.pos=t}map(t){return new vme(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return no.valid(n)?new no(n):Et.near(n)}};function DGe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function xGe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function MGe(){return new _r({props:{decorations:LGe,createSelectionBetween(e,t,n){return t.pos==n.pos&&no.valid(n)?new no(n):null},handleClick:PGe,handleKeyDown:RGe,handleDOMEvents:{beforeinput:FGe}}})}const RGe=Y$({ArrowLeft:a_("horiz",-1),ArrowRight:a_("horiz",1),ArrowUp:a_("vert",-1),ArrowDown:a_("vert",1)});function a_(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,a){let o=r.selection,s=t>0?o.$to:o.$from,l=o.empty;if(o instanceof Ft){if(!a.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=no.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new no(u))),!0):!1}}function PGe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!no.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&At.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new no(r))),!0)}function FGe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof no))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Ie.empty;for(let o=r.length-1;o>=0;o--)i=Ie.from(r[o].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new $e(i,0,0));return a.setSelection(Ft.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function LGe(e){if(!(e.selection instanceof no))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",ha.create(e.doc,[_c.widget(e.selection.head,t,{key:"gapcursor"})])}const BGe=Na.create({name:"gapCursor",addProseMirrorPlugins(){return[MGe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=It(Je(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),$Ge=an.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",bt(this.options.HTMLAttributes,e)]},renderText(){return` `},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,l=a||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&o){const d=l.filter(f=>s.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),dA=an.create({name:"text",group:"inline"});var fA=200,Ni=function(){};Ni.prototype.append=function(t){return t.length?(t=Ni.from(t),!this.length&&t||t.length=n?Ni.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Ni.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ni.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Ni.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(t(a,o))},n,r),i};Ni.from=function(t){return t instanceof Ni?t:t&&t.length?new yme(t):Ni.empty};var yme=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,s){for(var l=a;l=o;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=fA)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=fA)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Ni);Ni.empty=new yme([]);var UGe=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Ni),Sme=Ni;const HGe=500;let gS=class Vm{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),a=i.maps.length),a--,c.push(d);return}if(i){c.push(new Nc(d.map));let p=d.step.map(i.slice(a)),m;p&&o.maybeStep(p).doc&&(m=o.mapping.maps[o.mapping.maps.length-1],u.push(new Nc(m,void 0,void 0,u.length+c.length))),a--,m&&i.appendMap(m,a)}else o.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(a)):d.selection,l=new Vm(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;czGe&&(s=VGe(s,u),o-=u),new Vm(s.append(a),o)}remapping(t,n){let r=new npe;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},t,n),r}addMaps(t){return this.eventCount==0?this:new Vm(this.items.append(t.map(n=>new Nc(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let p=a.getMirror(--l);if(p==null)return;o=Math.min(o,p);let m=a.maps[p];if(f.step){let h=t.steps[p].invert(t.docs[p]),g=f.selection&&f.selection.map(a.slice(l+1,p));g&&s++,r.push(new Nc(m,h,g))}else r.push(new Nc(m))},i);let u=[];for(let f=n;fHGe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)i.push(o),o.selection&&a++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=o.selection&&o.selection.map(n.slice(r));c&&a++;let d=new Nc(u.invert(),l,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new Vm(Sme.from(i.reverse()),a)}};gS.empty=new gS(Sme.empty,0);function VGe(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}let Nc=class bme{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new bme(n.getMap().invert(),n,this.selection)}}},Wc=class{constructor(t,n,r,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i}};const zGe=20;function qGe(e,t,n,r){let i=n.getMeta(Md),a;if(i)return i.historyState;n.getMeta(jGe)&&(e=new Wc(e.done,e.undone,null,0));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(Md))return o.getMeta(Md).redo?new Wc(e.done.addTransform(n,void 0,r,PE(t)),e.undone,uQ(n.mapping.maps[n.steps.length-1]),e.prevTime):new Wc(e.done,e.undone.addTransform(n,void 0,r,PE(t)),null,e.prevTime);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=e.prevTime==0||!o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!WGe(n,e.prevRanges)),l=o?kO(e.prevRanges,n.mapping):uQ(n.mapping.maps[n.steps.length-1]);return new Wc(e.done.addTransform(n,s?t.selection.getBookmark():void 0,r,PE(t)),gS.empty,l,n.time)}else return(a=n.getMeta("rebased"))?new Wc(e.done.rebased(n,a),e.undone.rebased(n,a),kO(e.prevRanges,n.mapping),e.prevTime):new Wc(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),kO(e.prevRanges,n.mapping),e.prevTime)}function WGe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let a=0;a=t[a]&&(n=!0)}),n}function uQ(e){let t=[];return e.forEach((n,r,i,a)=>t.push(i,a)),t}function kO(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Md.getState(e);return!n||n.done.eventCount==0?!1:(t&&Tme(n,e,t,!1),!0)},Eme=(e,t)=>{let n=Md.getState(e);return!n||n.undone.eventCount==0?!1:(t&&Tme(n,e,t,!0),!0)},JGe=Na.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>_me(e,t),redo:()=>({state:e,dispatch:t})=>Eme(e,t)}},addProseMirrorPlugins(){return[GGe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),YGe=Na.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new _r({key:new Br("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;const a=e.type.createAndFill(),o=(a==null?void 0:a.sameMarkup(e))&&a.content.findDiffStart(e.content)===null;return e.descendants((s,l)=>{const u=r>=l&&r<=l+s.nodeSize,c=!s.isLeaf&&!s.childCount;if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];o&&d.push(this.options.emptyEditorClass);const f=_c.node(l,l+s.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:l,hasAnchor:u}):this.options.placeholder});i.push(f)}return this.options.includeChildren}),ha.create(e,i)}}})]}}),KGe=an.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",bt(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),dQ=Nu.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=Fb(e,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),fQ=/^(\d+)\.\s$/,QGe=an.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",bt(this.options.HTMLAttributes,n),0]:["ol",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(KGe.name,this.editor.getAttributes(dQ.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=fS({find:fQ,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=fS({find:fQ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(dQ.name)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),ZGe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,XGe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,eJe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,tJe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,nJe=Nu.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[dS({find:ZGe,type:this.type}),dS({find:eJe,type:this.type})]},addPasteRules(){return[Np({find:XGe,type:this.type}),Np({find:tJe,type:this.type})]}}),rJe=an.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",bt(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),pQ=Nu.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=Fb(e,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),mQ=/^\s*([-+*])\s$/,iJe=an.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rJe.name,this.editor.getAttributes(pQ.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=fS({find:mQ,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=fS({find:mQ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(pQ.name),editor:this.editor})),[e]}}),aJe=an.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>v5({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),oJe=Nu.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),sJe=an.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",bt(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),lJe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,uJe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,cJe=Nu.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[dS({find:lJe,type:this.type})]},addPasteRules(){return[Np({find:uJe,type:this.type})]}}),dJe=/^```([a-z]+)?[\s\n]$/,fJe=/^~~~([a-z]+)?[\s\n]$/,wme=an.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,a=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0];return a||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",bt(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(` `);return!a||!o?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0||r.nodeAt(s)?!1:e.commands.exitCode()}}},addInputRules(){return[v5({find:dJe,type:this.type,getAttributes:e=>({language:e[1]})}),v5({find:fJe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new _r({key:new Br("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,a=i==null?void 0:i.mode;if(!n||!a)return!1;const{tr:o}=e.state;return o.replaceSelectionWith(this.type.create({language:a})),o.setSelection(Ft.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.insertText(n.replace(/\r\n?/g,` `)),o.setMeta("paste",!0),e.dispatch(o),!0}}})]}}),pJe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,mJe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,hJe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,gJe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,vJe=Nu.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[dS({find:pJe,type:this.type}),dS({find:hJe,type:this.type})]},addPasteRules(){return[Np({find:mJe,type:this.type}),Np({find:gJe,type:this.type})]}}),yJe=/^\s*>\s$/,SJe=an.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[fS({find:yJe,type:this.type})]}});var x5,M5;if(typeof WeakMap<"u"){let e=new WeakMap;x5=t=>e.get(t),M5=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;x5=r=>{for(let i=0;i(n==10&&(n=0),e[n++]=r,e[n++]=i)}var Sr=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t=n){(a||(a=[])).push({type:"overlong_rowspan",pos:c,n:v-b});break}const T=i+b*t;for(let _=0;_r&&(a+=u.attrs.colspan)}}for(let o=0;o1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function _Je(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function wJe(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if(n==="cell"||n==="header_cell")return e.node(t)}return null}function Ol(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function mN(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=R1(t.$head)||kJe(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function kJe(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function R5(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function AJe(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function NU(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function kme(e,t,n){const r=e.node(-1),i=Sr.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function Ip(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function Ame(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;iu!=t.pos-i);s.unshift(t.pos-i);const l=s.map(u=>{const c=n.nodeAt(u);if(!c)throw RangeError(`No cell with offset ${u} found`);const d=i+u+1;return new dpe(o.resolve(d),o.resolve(d+c.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){const n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(R5(n)&&R5(r)&&NU(n,r)){const i=this.$anchorCell.node(-1)!=n.node(-1);return i&&this.isRowSelection()?Kt.rowSelection(n,r):i&&this.isColSelection()?Kt.colSelection(n,r):new Kt(n,r)}return Ft.between(n,r)}content(){const e=this.$anchorCell.node(-1),t=Sr.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let s=r.top;s0||h>0){let g=p.attrs;if(m>0&&(g=Ip(g,0,m)),h>0&&(g=Ip(g,g.colspan-h,h)),f.leftr.bottom){const g={...p.attrs,rowspan:Math.min(f.bottom,r.bottom)-Math.max(f.top,r.top)};f.top0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const n=e.node(-1),r=Sr.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.top<=o.top?(a.top>0&&(e=s.resolve(i+r.map[a.left])),o.bottom0&&(t=s.resolve(i+r.map[o.left])),a.bottom0)return!1;const a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(e){return e instanceof Kt&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const n=e.node(-1),r=Sr.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.left<=o.left?(a.left>0&&(e=s.resolve(i+r.map[a.top*r.width])),o.right0&&(t=s.resolve(i+r.map[o.top*r.width])),a.right{t.push(_c.node(r,r+n.nodeSize,{class:"selectedCell"}))}),ha.create(e.doc,t)}function IJe({$from:e,$to:t}){if(e.pos==t.pos||e.pos=0&&!(e.after(i+1)=0&&!(t.before(a+1)>t.start(a));a--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function OJe({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const a=e.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){n=a;break}}for(let i=t.depth;i>0;i--){const a=t.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){r=a;break}}return n!==r&&t.parentOffset===0}function DJe(e,t,n){const r=(t||e).selection,i=(t||e).doc;let a,o;if(r instanceof At&&(o=r.node.type.spec.tableRole)){if(o=="cell"||o=="header_cell")a=Kt.create(i,r.from);else if(o=="row"){const s=i.resolve(r.from+1);a=Kt.rowSelection(s,s)}else if(!n){const s=Sr.get(r.node),l=r.from+1,u=l+s.map[s.width*s.height-1];a=Kt.create(i,l+1,u)}}else r instanceof Ft&&IJe(r)?a=Ft.create(i,r.from):r instanceof Ft&&OJe(r)&&(a=Ft.create(i,r.$from.start(),r.$from.end()));return a&&(t||(t=e.tr)).setSelection(a),t}var xJe=new Br("fix-tables");function Nme(e,t,n,r){const i=e.childCount,a=t.childCount;e:for(let o=0,s=0;o{i.type.spec.tableRole=="table"&&(n=MJe(e,i,a,n))};return t?t.doc!=e.doc&&Nme(t.doc,e.doc,0,r):e.doc.descendants(r),n}function MJe(e,t,n,r){const i=Sr.get(t);if(!i.problems)return r;r||(r=e.tr);const a=[];for(let l=0;l0){let p="cell";c.firstChild&&(p=c.firstChild.type.spec.tableRole);const m=[];for(let g=0;g0&&r>0||t.child(0).type.spec.tableRole=="table");)n--,r--,t=t.child(0).content;const i=t.child(0),a=i.type.spec.tableRole,o=i.type.schema,s=[];if(a=="row")for(let l=0;l=0;o--){const{rowspan:s,colspan:l}=a.child(o).attrs;for(let u=i;u=t.length&&t.push(Ie.empty),n[i]r&&(f=f.type.createChecked(Ip(f.attrs,f.attrs.colspan,c+f.attrs.colspan-r),f.content)),u.push(f),c+=f.attrs.colspan;for(let p=1;pi&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}a.push(Ie.from(l))}n=a,t=i}return{width:e,height:t,rows:n}}function LJe(e,t,n,r,i,a,o){const s=e.doc.type.schema,l=Ki(s);let u,c;if(i>t.width)for(let d=0,f=0;dt.height){const d=[];for(let m=0,h=(t.height-1)*t.width;m=t.width?!1:n.nodeAt(t.map[h+m]).type==l.header_cell;d.push(g?c||(c=l.header_cell.createAndFill()):u||(u=l.cell.createAndFill()))}const f=l.row.create(null,Ie.from(d)),p=[];for(let m=t.height;m{if(!i)return!1;const a=n.selection;if(a instanceof Kt)return FE(n,r,Et.near(a.$headCell,t));if(e!="horiz"&&!a.empty)return!1;const o=Ome(i,e,t);if(o==null)return!1;if(e=="horiz")return FE(n,r,Et.near(n.doc.resolve(a.head+t),t));{const s=n.doc.resolve(o),l=kme(s,e,t);let u;return l?u=Et.near(l,1):t<0?u=Et.near(n.doc.resolve(s.before(-1)),-1):u=Et.near(n.doc.resolve(s.after(-1)),1),FE(n,r,u)}}}function s_(e,t){return(n,r,i)=>{if(!i)return!1;const a=n.selection;let o;if(a instanceof Kt)o=a;else{const l=Ome(i,e,t);if(l==null)return!1;o=new Kt(n.doc.resolve(l))}const s=kme(o.$headCell,e,t);return s?FE(n,r,new Kt(o.$anchorCell,s)):!1}}function l_(e,t){const n=e.selection;if(!(n instanceof Kt))return!1;if(t){const r=e.tr,i=Ki(e.schema).cell.createAndFill().content;n.forEachCell((a,o)=>{a.content.eq(i)||r.replace(r.mapping.map(o+1),r.mapping.map(o+a.nodeSize-1),new $e(i,0,0))}),r.docChanged&&t(r)}return!0}function $Je(e,t){const n=e.state.doc,r=R1(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new Kt(r))),!0):!1}function UJe(e,t,n){if(!Ol(e.state))return!1;let r=RJe(n);const i=e.state.selection;if(i instanceof Kt){r||(r={width:1,height:1,rows:[Ie.from(P5(Ki(e.state.schema).cell,n))]});const a=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=Sr.get(a).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=FJe(r,s.right-s.left,s.bottom-s.top),vQ(e.state,e.dispatch,o,s,r),!0}else if(r){const a=mN(e.state),o=a.start(-1);return vQ(e.state,e.dispatch,o,Sr.get(a.node(-1)).findCell(a.pos-o),r),!0}else return!1}function HJe(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=yQ(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof Kt)a(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&(i=R1(e.state.selection.$anchor))!=null&&((n=CO(e,t))==null?void 0:n.pos)!=i.pos)a(i,t),t.preventDefault();else if(!r)return;function a(l,u){let c=CO(e,u);const d=Zc.getState(e.state)==null;if(!c||!NU(l,c))if(d)c=l;else return;const f=new Kt(l,c);if(d||!e.state.selection.eq(f)){const p=e.state.tr.setSelection(f);d&&p.setMeta(Zc,l.pos),e.dispatch(p)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),Zc.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(Zc,-1))}function s(l){const u=l,c=Zc.getState(e.state);let d;if(c!=null)d=e.state.doc.resolve(c);else if(yQ(e,u.target)!=r&&(d=CO(e,t),!d))return o();d&&a(d,u)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function Ome(e,t,n){if(!(e.state.selection instanceof Ft))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole=="cell"||a.type.spec.tableRole=="header_cell"){const s=r.before(i),l=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function yQ(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function CO(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?R1(e.state.doc.resolve(n.pos)):null}var VJe=class{constructor(t,n){this.node=t,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),F5(t,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,F5(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function F5(e,t,n,r,i,a){var o;let s=0,l=!0,u=t.firstChild;const c=e.firstChild;if(c){for(let d=0,f=0;dnew n(s,t,l),new LE(-1,!1)},apply(a,o){return o.apply(a)}},props:{attributes:a=>{const o=us.getState(a);return o&&o.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,o)=>{qJe(a,o,e,t,r)},mouseleave:a=>{WJe(a)},mousedown:(a,o)=>{jJe(a,o,t)}},decorations:a=>{const o=us.getState(a);if(o&&o.activeHandle>-1)return ZJe(a,o.activeHandle)},nodeViews:{}}});return i}var LE=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,n=e.getMeta(us);if(n&&n.setHandle!=null)return new LE(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new LE(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let r=e.mapping.map(t.activeHandle,-1);return R5(e.doc.resolve(r))||(r=-1),new LE(r,t.dragging)}return t}};function qJe(e,t,n,r,i){const a=us.getState(e.state);if(a&&!a.dragging){const o=JJe(t.target);let s=-1;if(o){const{left:l,right:u}=o.getBoundingClientRect();t.clientX-l<=n?s=SQ(e,t,"left"):u-t.clientX<=n&&(s=SQ(e,t,"right"))}if(s!=a.activeHandle){if(!i&&s!==-1){const l=e.state.doc.resolve(s),u=l.node(-1),c=Sr.get(u),d=l.start(-1);if(c.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==c.width-1)return}Dme(e,s)}}}function WJe(e){const t=us.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&Dme(e,-1)}function jJe(e,t,n){const r=us.getState(e.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const i=e.state.doc.nodeAt(r.activeHandle),a=GJe(e,r.activeHandle,i.attrs);e.dispatch(e.state.tr.setMeta(us,{setDragging:{startX:t.clientX,startWidth:a}}));function o(l){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);const u=us.getState(e.state);u!=null&&u.dragging&&(YJe(e,u.activeHandle,bQ(u.dragging,l,n)),e.dispatch(e.state.tr.setMeta(us,{setDragging:null})))}function s(l){if(!l.which)return o(l);const u=us.getState(e.state);if(u&&u.dragging){const c=bQ(u.dragging,l,n);KJe(e,u.activeHandle,c,n)}}return window.addEventListener("mouseup",o),window.addEventListener("mousemove",s),t.preventDefault(),!0}function GJe(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const a=e.domAtPos(t);let s=a.node.childNodes[a.offset].offsetWidth,l=n;if(r)for(let u=0;u0?-1:0;CJe(t,r,i+a)&&(a=i==0||i==t.width?null:0);for(let o=0;o0&&i0&&t.map[s-1]==l||i0?-1:0;rYe(t,r,i+l)&&(l=i==0||i==t.height?null:0);for(let u=0,c=t.width*i;u0&&i0&&c==t.map[u-t.width]){const d=n.nodeAt(c).attrs;e.setNodeMarkup(e.mapping.slice(s).map(c+r),null,{...d,rowspan:d.rowspan-1}),l+=d.colspan-1}else if(i0&&n[a]==n[a-1]||r.right0&&n[i]==n[i-e]||r.bottomn[r.type.spec.tableRole])(e,t)}function uYe(e){return(t,n)=>{var r;const i=t.selection;let a,o;if(i instanceof Kt){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;a=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(a=wJe(i.$from),!a)return!1;o=(r=R1(i.$from))==null?void 0:r.pos}if(a==null||o==null||a.attrs.colspan==1&&a.attrs.rowspan==1)return!1;if(n){let s=a.attrs;const l=[],u=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});const c=Iu(t),d=t.tr;for(let p=0;p{o.attrs[e]!==t&&a.setNodeMarkup(s,null,{...o.attrs,[e]:t})}):a.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(a)}return!0}}function dYe(e){return function(t,n){if(!Ol(t))return!1;if(n){const r=Ki(t.schema),i=Iu(t),a=t.tr,o=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(l=>i.table.nodeAt(l));for(let l=0;l{const m=p+a.tableStart,h=o.doc.nodeAt(m);h&&o.setNodeMarkup(m,f,h.attrs)}),r(o)}return!0}}vS("row",{useDeprecatedLogic:!0});vS("column",{useDeprecatedLogic:!0});var fYe=vS("cell",{useDeprecatedLogic:!0});function pYe(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let r=e.index(-1)-1,i=e.before();r>=0;r--){const a=e.node(-1).child(r),o=a.lastChild;if(o)return i-1-o.nodeSize;i-=a.nodeSize}}else{if(e.index()0;r--)if(n.node(r).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function hYe({allowTableNodeSelection:e=!1}={}){return new _r({key:Zc,state:{init(){return null},apply(t,n){const r=t.getMeta(Zc);if(r!=null)return r==-1?null:r;if(n==null||!t.docChanged)return n;const{deleted:i,pos:a}=t.mapping.mapResult(n);return i?null:a}},props:{decorations:NJe,handleDOMEvents:{mousedown:HJe},createSelectionBetween(t){return Zc.getState(t.state)!=null?t.state.selection:null},handleTripleClick:$Je,handleKeyDown:BJe,handlePaste:UJe},appendTransaction(t,n,r){return DJe(r,Ime(r,n),e)}})}function AQ(e,t,n,r,i,a){let o=0,s=!0,l=t.firstChild;const u=e.firstChild;for(let c=0,d=0;c{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}function yYe(e,t,n,r,i){const a=vYe(e),o=[],s=[];for(let u=0;u{const{selection:t}=e.state;if(!SYe(t))return!1;let n=0;const r=Kpe(t.ranges[0].$from,a=>a.type.name==="table");return r==null||r.node.descendants(a=>{if(a.type.name==="table")return!1;["tableCell","tableHeader"].includes(a.type.name)&&(n+=1)}),n===t.ranges.length?(e.commands.deleteTable(),!0):!1},bYe=an.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:gYe,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({HTMLAttributes:e}){return["table",bt(this.options.HTMLAttributes,e),["tbody",0]]},addCommands(){return{insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:a})=>{const o=yYe(a.schema,e,t,n);if(i){const s=r.selection.anchor+1;r.replaceSelectionWith(o).scrollIntoView().setSelection(Ft.near(r.doc.resolve(s)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>XJe(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>eYe(e,t),deleteColumn:()=>({state:e,dispatch:t})=>nYe(e,t),addRowBefore:()=>({state:e,dispatch:t})=>iYe(e,t),addRowAfter:()=>({state:e,dispatch:t})=>aYe(e,t),deleteRow:()=>({state:e,dispatch:t})=>sYe(e,t),deleteTable:()=>({state:e,dispatch:t})=>mYe(e,t),mergeCells:()=>({state:e,dispatch:t})=>_Q(e,t),splitCell:()=>({state:e,dispatch:t})=>EQ(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>vS("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>vS("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>fYe(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>_Q(e,t)?!0:EQ(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>cYe(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>kQ(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>kQ(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&Ime(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const r=Kt.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:u_,"Mod-Backspace":u_,Delete:u_,"Mod-Delete":u_}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[zJe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],hYe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{tableRole:It(Je(e,"tableRole",t))}}}),TYe=an.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",bt(this.options.HTMLAttributes,e),0]}}),_Ye=an.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:e}){return["th",bt(this.options.HTMLAttributes,e),0]}}),EYe=an.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:e}){return["td",bt(this.options.HTMLAttributes,e),0]}}),wYe=Nu.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=Fb(e,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),kYe=Na.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),AYe=Na.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>{var t;return(t=e.style.fontFamily)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),CYe=an.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),NYe=CYe.extend({addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),renderAs:"p"}},renderHTML({HTMLAttributes:e}){const t=bt(this.options.HTMLAttributes,e);return[this.options.renderAs,t,0]}}),IYe=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,OYe=an.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",bt(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[LWe({find:IYe,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),DYe="https://app.ashbyhq.com",xYe="https://m.ashbyhq.com";function Rme(){var e;return(e={}.ASHBY_URL)!==null&&e!==void 0?e:DYe}function NQ(){var e;return(e={}.ASHBY_MOBILE_APP_URL)!==null&&e!==void 0?e:xYe}const pA=OYe.extend({addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},attachmentAccessibility:gu.Public,renderTarget:void 0,windowLocationHref:void 0}},addAttributes(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),attachmentId:{default:null},alignment:{default:"left"},width:{default:null}}},renderHTML({node:e,HTMLAttributes:t}){return this.options.attachmentAccessibility===gu.Internal&&this.options.renderTarget==="email"&&LYe(e.attrs.src)?MYe({node:e}):RYe({node:e,HTMLAttributes:t,options:this.options})},parseHTML(){return[{tag:"div[data-attachment-id]:has(img:first-child)",getAttrs(e){if(typeof e=="string")return!1;const t=e.children[0],n=t.getAttribute("width");return{alignment:e.style.textAlign,attachmentId:e.getAttribute("data-attachment-id"),src:t.getAttribute("src"),width:n?parseInt(n,10):null,alt:t.getAttribute("alt"),title:t.getAttribute("title")}}}]}});function MYe({node:e}){return["div",["a",{href:e.attrs.src},`${PYe(e.attrs.src)} (click to view)`]]}function RYe({node:e,HTMLAttributes:t,options:n}){const r={style:"max-width: 100%"},i=e.attrs.alignment==="justify"?{style:"width: 100%"}:{},a=bt(r,i,t);return["div",{style:`text-align: ${e.attrs.alignment}`,"data-attachment-id":e.attrs.attachmentId},["img",BYe(a,n.windowLocationHref)]]}function PYe(e){const t=new URL(e);return t.pathname.substring(t.pathname.lastIndexOf("/")+1)}const FYe=/^https:\/\/app-\d+\.ashbyhqpr\.com\/api\/images\/user-content\/.*$/;function LYe(e){return e.startsWith(Rme())?!0:FYe.test(e)}function BYe(e,t){if(t){const n=e.src;n&&t.startsWith(NQ())&&(e.src=n.replace(Rme(),NQ()))}return e}var IU={};Object.defineProperty(IU,"__esModule",{value:!0});var L5=IU.sanitizeUrl=void 0,$Ye=/^([^\w]*)(javascript|data|vbscript)/im,UYe=/&#(\w+)(^\w|;)?/g,HYe=/&(newline|tab);/gi,VYe=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,zYe=/^.+(:|:)/gim,qYe=[".","/"];function WYe(e){return qYe.indexOf(e[0])>-1}function jYe(e){return e.replace(UYe,function(t,n){return String.fromCharCode(n)})}function GYe(e){var t=jYe(e||"").replace(HYe,"").replace(VYe,"").trim();if(!t)return"about:blank";if(WYe(t))return t;var n=t.match(zYe);if(!n)return t;var r=n[0];return $Ye.test(r)?"about:blank":t}L5=IU.sanitizeUrl=GYe;const Pme=nme.extend({addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),ignoreUrlsOnPaste:!1,ignoreEmailsOnPaste:!0}},renderHTML({HTMLAttributes:e}){let t=L5(e.href);!mHe({value:t,allowLocalhost:!0})&&!pHe(t)&&(t="#");const n={...e,href:t};return this.options.safeMode===!0?["a",bt(this.options.HTMLAttributes,n),["span",["span",{hidden:"true"},0],["span",n.href]]]:["a",bt(this.options.HTMLAttributes,n),0]},addPasteRules(){return[Np({find:e=>{const t=[];return this.options.ignoreUrlsOnPaste||t.push("url"),this.options.ignoreEmailsOnPaste||t.push("email"),hS(e,...t).filter(n=>n.isLink).map(n=>({text:n.value,index:n.start,data:n}))},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.openOnClick&&e.push(new _r({key:new Br("handleClickLink"),props:{handleClick:(t,n,r)=>{var i;const a=this.editor.getAttributes("link");return((i=r.target)===null||i===void 0?void 0:i.closest("a"))&&a.href?(window.open(L5(a.href),a.target),!0):!1}}})),this.options.linkOnPaste&&e.push(new _r({key:new Br("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:a}=i,{empty:o}=a;if(o)return!1;let s="";r.content.forEach(u=>{s+=u.textContent});const l=hS(s).find(u=>u.isLink&&u.value===s);return!s||!l?!1:(this.editor.commands.setMark(this.type,{href:l.href}),!0)}}})),e}}),JYe=M1.extend({content:"htmlHeader? block+ htmlFooter? nonDeletableHardBreak? signature? nonDeletableHardBreak? quotedContentContainer? signatureSeparator? signature?"}),Fme=an.create({name:"quotedContent",group:"quotedContent",content:"quotedHeader quotedBody",selectable:!0,draggable:!1,addAttributes(){return{initiallyExpanded:{default:!0}}},addOptions(){return{HTMLAttributes:{class:"gmail_quote"}}},parseHTML(){return[{tag:"div",getAttrs:e=>typeof e=="string"?!1:e.hasAttribute("class")&&e.className==="gmail_quote"?{}:!1,consuming:!0}]},renderHTML({HTMLAttributes:e}){return["div",bt(this.options.HTMLAttributes,e),0]},renderText(){return""}}),OU=Fme.extend({name:"quotedContentContainer",group:"quotedContentContainer"}),YYe=an.create({name:"quotedHeader",group:"quotedHeader",content:"inline+",selectable:!0,draggable:!1,addOptions(){return{HTMLAttributes:{class:"gmail_attr"}}},parseHTML(){return[{tag:"div",getAttrs:e=>typeof e=="string"?!1:e.hasAttribute("class")&&e.className==="gmail_attr"?{}:!1,consuming:!0}]},renderHTML({HTMLAttributes:e}){return["div",bt(this.options.HTMLAttributes,e),0]},renderText(){return""}}),KYe=an.create({name:"quotedBody",group:"quotedBody",content:"block+ quotedContent?",selectable:!0,draggable:!1,addOptions(){return{HTMLAttributes:{class:"gmail_quote",style:"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"}}},parseHTML(){return[{tag:"blockquote",getAttrs:e=>typeof e=="string"?!1:e.hasAttribute("class")&&e.className==="gmail_quote"?{}:!1,consuming:!0}]},renderHTML({HTMLAttributes:e}){return["blockquote",bt(this.options.HTMLAttributes,e),0]}}),qh=an.create({name:"nonDeletableHardBreak",group:"nonDeletableHardBreak",selectable:!1,atom:!0,draggable:!1,addAttributes(){return{clear:{default:void 0,renderHTML:e=>e.clear?{style:`clear: ${e.clear}`}:{}}}},renderHTML({HTMLAttributes:e}){return["br",bt(this.options.HTMLAttributes,e)]},renderText(){return` `}}),Lme=an.create({name:"signatureSeparator",group:"signatureSeparator",selectable:!1,atom:!0,draggable:!1,renderHTML({HTMLAttributes:e}){return["p",bt(this.options.HTMLAttributes,e),"-- "]},renderText(){return`-- `}}),QYe="U0lHTkFUVVJFX1BMQUNFSE9MREVSX1RPS0VO",DU=an.create({name:"signature",group:"signature",selectable:!1,atom:!0,isolating:!0,addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),mode:"preview",insertEmailSignatureBeforeQuotedContent:!0}},renderHTML(){return["span",QYe]},renderText(){return""},addCommands(){return{enableSignature:()=>({state:e,commands:t})=>{const n=e.doc.lastChild;if(!n||n.type.name!==this.name){const r=ZYe(e,this.options.insertEmailSignatureBeforeQuotedContent);return t.insertContentAt(r,XYe(this.name,this.options.insertEmailSignatureBeforeQuotedContent))}return!1},disableSignature:()=>({state:e,commands:t})=>{const n=IQ(this.name,e);return n!=null?t.deleteRange(n):!1},toggleSignature:e=>({state:t,commands:n})=>{const r=IQ(this.name,t);return r!=null?(e(!1),n.deleteRange(r)):(e(!0),n.enableSignature())}}}});function ZYe(e,t){if(t){const r=e.doc.content.size-1,i=e.doc.lastChild;if(i&&i.type.name===OU.name)return r-i.nodeSize}return e.doc.content.size}function XYe(e,t){return[{type:qh.name,attrs:{clear:"all"}},...t?[]:[{type:"signatureSeparator"}],{type:e}]}const eKe=[qh.name,Lme.name,DU.name];function IQ(e,t){const r=t.doc.content.size-1,i=t.doc.lastChild;if(i){if(i.type.name===e)return OQ(r,t);if(i.type.name===OU.name){let a=r-i.nodeSize,o=t.doc.nodeAt(a);const s=[qh.name];let l=!0;for(;l;)o&&s.includes(o.type.name)?(a=a-o.nodeSize,o=t.doc.nodeAt(a)):l=!1;if(o&&o.type.name===e)return OQ(a,t)}}return null}function OQ(e,t){let n=t.doc.nodeAt(e);if(n&&n.type.name===DU.name){let r=e-n.nodeSize;const i={from:e,to:e};let a=!0;for(;a;)n=t.doc.nodeAt(r),n&&eKe.includes(n.type.name)?(i.from=r,r=r-n.nodeSize):a=!1;return{from:i.from,to:i.to+1}}else return null}var i2;(function(e){e.url="url"})(i2||(i2={}));const Bme=an.create({name:"embeddedMedia",addOptions(){return{showAlignmentOptionsInUI:!1,HTMLAttributes:{}}},group:"block",draggable:!0,addAttributes(){return{userInput:{default:null},id:{default:null},type:{default:null},style:{default:"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%; max-width: 100%"}}},parseHTML(){return[{tag:"embedded-media",getAttrs:e=>{if(typeof e=="string")return!1;const t=e.getAttribute("data-id"),n=e.getAttribute("data-style");let r=null;switch(e.getAttribute("data-user-input-type")){case i2.url:{const i=e.getAttribute("data-user-input-url");r=i!=null?{type:i2.url,url:i}:null;break}}return t==null||n==null||r==null?!1:{id:t,style:n,userInput:r}}}]},renderHTML({HTMLAttributes:e}){const t={"data-id":e.id,"data-style":e.style,"data-user-input-type":e.userInput.type};return e.userInput.type===i2.url&&(t["data-user-input-url"]=e.userInput.url),["embedded-media",t]},addCommands(){return{insertEmbeddedMedia:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}}),tKe=Bme.extend({name:"embeddedMedia",addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),showAlignmentOptionsInUI:!1}},renderHTML({node:e,HTMLAttributes:t}){const n={},r={"data-attachment-id":e.attrs.id,"data-type":e.attrs.type,"data-user-input-type":e.attrs.userInput.type,"data-user-input-url":e.attrs.userInput.url},i=bt(t,n,r),o={src:`${this.options.embeddedMediaPath}/${this.options.organizationId}/${e.attrs.id}`,style:"top: 0; left: 0; width: 100%; height: 100%; position: absolute; border: 0;",allowfullscreen:!0,scrolling:"no",allow:"encrypted-media *; picture-in-picture *;",sandbox:"allow-scripts allow-same-origin allow-presentation"};return["div",{"data-embedded-media":""},["div",i,["iframe",o]]]},parseHTML(){return[{tag:"div[data-embedded-media]:has(iframe:first-child)",getAttrs(e){if(typeof e=="string")return!1;const t=e.children[0];return{id:t.getAttribute("data-attachment-id"),type:t.getAttribute("data-type"),style:t.getAttribute("style"),userInput:{type:t.getAttribute("data-user-input-type"),url:t.getAttribute("data-user-input-url")}}}}]}}),nKe=M1.extend({content:"inline*"}),rKe=an.create({name:"substitutionGroup",addOptions(){return{HTMLAttributes:{},substitutionTokenFieldSets:[],generateUUID:()=>{throw new Error("Missing UUID Generator Function")}}},selectable:!0,draggable:!0,atom:!0,addAttributes(){return{identifier:{default:null,rendered:!1},substitutionIsRequired:{default:!1,rendered:!1}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:a}=r;return i?(t.doc.nodesBetween(a-1,a,(o,s)=>{if(o.type.name===this.name)return n=!0,e.insertText("",s,s+o.nodeSize),!1}),n):!1})}},addCommands(){return{openSubstitutionTokenBrowser:()=>()=>{var e,t;return(t=(e=this.options).onButtonClick)===null||t===void 0||t.call(e),!0}}}});function iKe({fieldPath:e,substitutionTokenFieldSets:t,onlyVirtual:n=!1}){let r=null;for(const i of t)if(i instanceof wn){if(e===i.path){if(R$(i))r=O0e(i);else if(n)return null}}else{const a=T$(e,i.fieldSet.fields);a&&(r=i.tokenFromField(a))}return r}function B5({document:e,version:t}){switch(t){case"1":return aKe({document:e});case"2":return $me({document:e});default:throw new Error("Unknown Version")}}function aKe({document:e}){switch(e.version){case"1":return e;case"2":return{richText:{},version:"1",metadata:void 0}}}function $me({document:e}){var t;switch(e.version){case"1":const{features:n,content:r}=oKe((t=e.richText.document)!==null&&t!==void 0?t:{});return{version:"2",content:r,features:n};case"2":return e}}function oKe({nodes:e}){var t;const n=new Set([]),r=a=>{n.add(a)},i=e?e.flatMap(sKe(r)).filter(kr):[];return{features:new Array(...n),content:{type:"doc",content:(t=$5(i))!==null&&t!==void 0?t:[]}}}function sKe(e){return t=>lKe(t,e)}function lKe(e,t=void 0){return Vu(void 0,t,e)}function Vu(e,t,n){const{nodes:r,object:i,text:a}=n;switch(i){case"block":return uKe({type:n.type,nodes:r||[],data:n.data},t,e);case"inline":return cKe({type:n.type,nodes:r||[],data:n.data},t,e);case"text":return Ume({text:a,marks:n.marks},t,e);default:throw new Error(`Unknow node object type: ${i}`)}}function DQ(e){let t=[];const n=[];for(const r of e)r.type==="text"||r.type==="hardBreak"?t.push(r):(t.length>0&&n.push({type:"paragraph",content:t}),n.push(r),t=[]);return t.length>0&&n.push({type:"paragraph",content:t}),n}function uKe({type:e,nodes:t,data:n},r,i){switch(e){case"paragraph":return{type:"paragraph",content:xU(Vme(t.flatMap(Vu.bind(void 0,i,r)).filter(kr)))};case"H1":return NO(t,1,r);case"H2":return NO(t,2,r);case"H3":return NO(t,3,r);case"NumberedList":return r==null||r(oe.NumberedLists),{type:"orderedList",attrs:{start:1},content:xQ(t.flatMap(Vu.bind(void 0,"orderedList",r)).filter(kr))};case"BulletedList":return r==null||r(oe.BulletedLists),{type:"bulletList",content:xQ(t.flatMap(Vu.bind(void 0,"bulletList",r)).filter(kr))};case"ListItem":return{type:"listItem",content:DQ(t.flatMap(Vu.bind(void 0,"listItem",r)).filter(kr))};case"CodeBlock":return r==null||r(oe.CodeBlocks),t.flatMap(Vu.bind(void 0,i,r)).filter(kr);case"CodeLine":return{type:"codeBlock",attrs:{language:null},content:t.flatMap(Vu.bind(void 0,"codeBlock",r)).filter(kr)};case"Blockquote":return{type:"blockquote",content:DQ(t.flatMap(Vu.bind(void 0,"blockquote",r)).filter(kr))};default:return console.warn("unimplemented block",e,t,n),{type:"unimplemented",attrs:{type:e}}}}function NO(e,t,n){return n==null||n(oe.Headings),{type:"heading",attrs:{level:t},content:xU(e.flatMap(Vu.bind(void 0,"heading",n)).filter(kr))}}function cKe({type:e,data:t,nodes:n},r,i){var a;switch(e){case"SubstitutionToken":if(r==null||r(oe.Tokens),t&&t.objectIdentifier&&t.field){const o={type:"token",attrs:{objectIdentifier:t.objectIdentifier,objectType:t.objectType,field:t.field,format:t.format,previewText:t.previewText,tooltipText:t.tooltipText,substitutionValue:t.substitutionValue,fallbackText:t.fallbackText}};return o.attrs.field.metadata==null&&(o.attrs.field={...o.attrs.field,metadata:{}}),o}else return IO(n,[],r,i);case"AtMentionNodeType":if(r==null||r(oe.Mentions),t&&t.user&&t.user.id&&typeof t.user.id=="string"&&t.user.firstName&&typeof t.user.firstName=="string"&&t.user.lastName&&typeof t.user.lastName=="string"){const o=(a=n[0])===null||a===void 0?void 0:a.marks;return{type:"mention",attrs:{id:t.user.id,firstName:t.user.firstName,lastName:t.user.lastName},marks:(o==null?void 0:o.length)>0?Hme(o):void 0}}else return IO(n,[],r,i);case"Link":{r==null||r(oe.Links);let o;return t&&t.href&&typeof t.href=="string"?o=[{type:"link",attrs:{href:t.href,target:t.target&&typeof t.target=="string"?t.target:void 0}}]:o=[],IO(n,o,r,i)}default:return{type:"unimplemented",attrs:{type:e}}}}function IO(e,t,n,r){return e.filter(i=>i.object==="text").flatMap(i=>Ume({text:i.text,marks:i.marks,preConvertedMarks:t},n,r)).filter(kr)}function Ume({text:e="",marks:t=[],preConvertedMarks:n=[]},r,i){if(e.length===0)return;const a=dKe(i)?xU([...Hme(t,r),...n]):void 0;return e.split(` `).flatMap(o=>o.length>0?[{type:"text",marks:a,text:o},{type:"hardBreak"}]:[{type:"hardBreak"}]).slice(0,-1)}function dKe(e){return e?!["codeBlock"].includes(e):!0}function Hme(e=[],t=void 0){return e.map(n=>{if(n.type&&typeof n.type=="string")switch(n.type){case"Bold":return t==null||t(oe.Bold),{type:"bold"};case"Italic":return t==null||t(oe.Italic),{type:"italic"};case"Underline":return t==null||t(oe.Underline),{type:"underline"};case"CodeMark":return t==null||t(oe.Code),{type:"code"};default:return null}else return null}).filter(kr)}function xU(e){return e.length===0?void 0:e}function Vme(e){return e.length===1&&e[0].type==="paragraph"?e[0].content!=null?Vme(e[0].content):[]:e}const fKe=["paragraph","heading","blockquote","codeBlock","orderedList","bulletList"];function $5(e){if(e!=null)return e.flatMap(t=>{if(t.type==="paragraph"&&t.content!=null&&t.content.every(n=>n.type!=null&&fKe.includes(n.type)))return $5(t.content);{const n={...t};return n.content!=null&&(n.content=$5(n.content)),[n]}}).filter(kr)}function xQ(e){const t=[];for(const n of e)switch(n.type){case"listItem":{t.push(n);break}case"orderedList":case"bulletList":{if(t.length>0){const r=t.at(-1);r.content=[...r.content||[],n]}else t.push({type:"listItem",content:[n]});break}}return t}function pKe(e){return e.type!=="text"||e.text!==""}function mKe(e){return e==null?!1:typeof e=="object"&&"fieldPath"in e&&typeof e.fieldPath=="string"&&"issues"in e&&Array.isArray(e.issues)&&e.issues.every(t=>typeof t=="string")}const hKe=/(?:^|\})\{(?:[^{}]*)(?:\{[^{}]*\}[^{}]*)*\}/g,gKe=({name:e,options:t})=>({range:n,match:r,commands:i})=>{console.log(`matched substitution group inline: "${r[0]}"`,`Input: "${r.input}"`);const a=r[0].slice(1,-1).split(/(\{[\w]+\})/).map(o=>{if(o.startsWith("{")){const s=o.slice(1,-1),l=iKe({fieldPath:s,substitutionTokenFieldSets:t.substitutionTokenFieldSets,onlyVirtual:!0});return l!=null?{type:"substitutionTokenNode",attrs:{substitutionToken:l}}:{type:"brokenSubstitutionTokenNode",attrs:{brokenSubstitutionToken:{fieldPath:s,issues:[`Couldn't find a substitution token with identifier "${s}"`]}}}}else return{type:"text",text:o}}).filter(pKe);i.insertContentAt(n,[{type:e,attrs:{identifier:t.generateUUID(),substitutionIsRequired:!1},content:a}])},vKe=rKe.extend({name:"substitutionGroupInline",group:"inline",inline:!0,content:"(text|substitutionTokenNode|brokenSubstitutionTokenNode)*",marks:"",renderHTML({HTMLAttributes:e}){return["span",bt(this.options.HTMLAttributes,e),0]},addPasteRules(){return[{find:hKe,handler:({range:e,match:t,commands:n})=>gKe({name:this.name,options:this.options})({range:e,match:t,commands:n})}]}});var yKe=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,SKe=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,bKe={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},TKe={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},MQ={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},_Ke=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],RQ=String.fromCharCode,EKe={},wKe=EKe.hasOwnProperty,zme=function(e,t){return wKe.call(e,t)},kKe=function(e,t){for(var n=-1,r=e.length;++n=55296&&e<=57343||e>1114111?(t&&Qu("character reference outside the permissible Unicode range"),"�"):zme(MQ,e)?(t&&Qu("disallowed character reference"),MQ[e]):(t&&kKe(_Ke,e)&&Qu("disallowed character reference"),e>65535&&(e-=65536,n+=RQ(e>>>10&1023|55296),e=56320|e&1023),n+=RQ(e),n)},Qu=function(e){throw Error("Parse error: "+e)},MU=function(e,t){t=AKe(t,MU.options);var n=t.strict;return n&&yKe.test(e)&&Qu("malformed character reference"),e.replace(SKe,function(r,i,a,o,s,l,u,c,d){var f,p,m,h,g,v;return i?(g=i,bKe[g]):a?(g=a,v=o,v&&t.isAttributeValue?(n&&v=="="&&Qu("`&` did not start a character reference"),r):(n&&Qu("named character reference was not terminated by a semicolon"),TKe[g]+(v||""))):s?(m=s,p=l,n&&!p&&Qu("character reference was not terminated by a semicolon"),f=parseInt(m,10),PQ(f,n)):u?(h=u,p=c,n&&!p&&Qu("character reference was not terminated by a semicolon"),f=parseInt(h,16),PQ(f,n)):(n&&Qu("named character reference was not terminated by a semicolon"),r)})};MU.options={isAttributeValue:!1,strict:!1};var U5=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""),FQ=e=>MU(e);function CKe(e,t,n,r){if(typeof t=="function")return t.call(null,{props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let i;if(t?t.toLowerCase()==="fragment"?i=e.document.createDocumentFragment():i=e.document.createElement(t):i=e.document.createElement("div"),n)for(let[a,o]of Object.entries(n)){a=a.toString();const s=a.toLowerCase();s==="classname"?i.className=o:s==="on"?Object.entries(o).forEach(([l,u])=>{i.setAttribute("on"+l,u)}):o!==!1&&o!=null&&(o===!0?i.setAttribute(a,a):i.setAttribute(a,o.toString()))}if(r)for(const a of r){let o=Array.isArray(a)?[...a]:[a];for(let s of o)s&&s!==!1&&s!=null&&(typeof s!="object"?i.appendChild(e.document.createTextNode(s.toString())):i.appendChild(s))}return i}}function qme(e,t,...n){return typeof e=="object"&&(e="fragment",n=e.children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:typeof n[0]=="string"?n:n.flat(1/0)}}function NKe(e){return e.h=function(n,r,...i){let{tag:a,attrs:o,children:s}=qme(n,r,i);return CKe(e,a,o,s)},e.h}var Wme=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function jme(e,t,n={},r){const i=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null);let a=[];if(t=t.replace(/__/g,":"),t!=="noop"&&t!==""){t!=="cdata"?a.push(`<${t}`):a.push("s[l]!=null).map(l=>{let u=s[l];return u=typeof u=="number"?u+"px":u,`${l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${u}`}).join(";")}"`):s!==!1&&s!=null&&a.push(` ${o}="${U5(s.toString())}"`)}if(t!=="cdata"){if(e&&!i)return a.push(" />"),a.join("");a.push(">")}if(!e&&Wme.includes(t))return a.join("")}if(i){if(typeof r=="string")a.push(r);else if(r&&r.length>0){for(let o of r)if(o!=null&&o!==!1){Array.isArray(o)||(o=[o]);for(let s of o)s.startsWith("<")&&s.endsWith(">")||t==="script"||t==="style"?a.push(s):a.push(U5(s.toString()))}}}return n.html&&a.push(n.html),t!=="noop"&&t!==""&&(t!=="cdata"?a.push(``):a.push("]]>")),a.join("")}function hN(e,t,...n){let{tag:r,attrs:i,children:a}=qme(e,t,n);return jme(!1,r,i,a)}var mA=jme.bind(null,!1);hN.firstLine="";hN.html=!0;/*! https://mths.be/he v1.2.0 by @mathias | MIT license */var sr;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(sr||(sr={}));var ns;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(ns||(ns={}));const LQ=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,IKe=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,OKe=new Map([[126,ns.Element],[94,ns.Start],[36,ns.End],[42,ns.Any],[33,ns.Not],[124,ns.Hyphen]]),DKe=new Set(["has","not","matches","is","where","host","host-context"]);function xKe(e){switch(e.type){case sr.Adjacent:case sr.Child:case sr.Descendant:case sr.Parent:case sr.Sibling:case sr.ColumnCombinator:return!0;default:return!1}}const MKe=new Set(["contains","icontains"]);function RKe(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Cv(e){return e.replace(IKe,RKe)}function OO(e){return e===39||e===34}function BQ(e){return e===32||e===9||e===10||e===12||e===13}function PKe(e){const t=[],n=Gme(t,`${e}`,0);if(n0&&n0&&xKe(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(f){if(r.length>0&&r[r.length-1].type===sr.Descendant){r[r.length-1].type=f;return}l(),r.push({type:f})}function c(f,p){r.push({type:sr.Attribute,name:f,action:p,value:i(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===sr.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(a(0),t.length===n)return n;e:for(;n{var s,l,u;let c=!1;for(let d of o){const{type:f,name:p,action:m,value:h,ignoreCase:g=!0,data:v}=d;if(f==="attribute")m==="equals"?(c=a.getAttribute(p)===h,n&&console.log("Attribute equals",c)):m==="start"?(c=!!((s=a.getAttribute(p))!=null&&s.startsWith(h)),n&&console.log("Attribute start",c)):m==="end"?(c=!!((l=a.getAttribute(p))!=null&&l.endsWith(h)),n&&console.log("Attribute start",c)):m==="element"?p==="class"?(c=a.classList.contains(h),n&&console.log("Attribute class",c)):(c=!!((u=a.getAttribute(p))!=null&&u.includes(h)),n&&console.log("Attribute element",c)):m==="exists"?(c=a.hasAttribute(p),n&&console.log("Attribute exists",c)):console.warn("Unknown CSS selector action",m);else if(f==="tag")c=a.tagName===p.toUpperCase(),n&&console.log("Is tag",c);else if(f==="universal")c=!0,n&&console.log("Is universal",c);else if(f==="pseudo"){if(p==="not"){let y=!0;v.forEach(b=>{i(a,b)||(y=!1)}),c=!y}n&&console.log("Is :not",c)}else console.warn("Unknown CSS selector type",f,e,o);if(!c)break}return c};if(i(t,r))return!0}return!1}var BKe=Symbol.for("nodejs.util.inspect.custom"),UQ={fontWeight:"bold"},HQ={fontStyle:"italic"},VQ={backgroundColor:"rgb(255, 250, 165)"},zQ={textDecorations:"underline"},DO={textDecorations:"line-through"},$Ke={b:UQ,strong:UQ,em:HQ,i:HQ,mark:VQ,u:zQ,a:zQ,s:DO,del:DO,ins:VQ,strike:DO},UKe=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,n)=>n.toUpperCase()),BE=class{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(e=!1){let t=new this.constructor;return e&&(t._childNodes=this._childNodes.map(n=>n.cloneNode(!0)),t._fixChildNodesParent()),t}_fixChildNodesParent(){this._childNodes.forEach(e=>e._parentNode=this)}insertBefore(e,t){if(e!==t){let n=t?this._childNodes.indexOf(t):0;n<0&&(n=0),this._childNodes.splice(n,0,e),this._fixChildNodesParent()}}appendChild(e){if(e!=null){if(e===this){console.warn("Cannot appendChild to self");return}if(e instanceof PU&&console.warn("No defined how to append a document to a node!",e),e instanceof gN)for(let t of[...e._childNodes])this.appendChild(t);else if(Array.isArray(e))for(let t of[...e])this.appendChild(t);else if(e instanceof BE)e.remove(),this._childNodes.push(e);else try{const t=typeof e=="string"?e:JSON.stringify(e,null,2);this._childNodes.push(new vh(t))}catch(t){console.error(`The data ${e} to be added to ${this.render()} is problematic: ${t}`)}this._fixChildNodesParent()}}removeChild(e){let t=this._childNodes.indexOf(e);t>=0&&(e._parentNode=null,this._childNodes.splice(t,1),this._fixChildNodesParent())}remove(){var e;return(e=this==null?void 0:this.parentNode)==null||e.removeChild(this),this}replaceChildren(...e){this._childNodes=e.map(t=>typeof t=="string"?new vh(t):t.remove()),this._fixChildNodesParent()}replaceWith(...e){let t=this._parentNode;if(t){let n=this._indexInParent();n>=0&&(e=e.map(r=>typeof r=="string"?new vh(r):r.remove()),t._childNodes.splice(n,1,...e),this._parentNode=null,t._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){let e=this._indexInParent();return e!=null&&this.parentNode.childNodes[e+1]||null}get previousSibling(){let e=this._indexInParent();return e>0&&this.parentNode.childNodes[e-1]||null}flatten(){let e=[];this instanceof Js&&e.push(this);for(let t of this._childNodes)e.push(...t.flatten());return e}flattenNodes(){let e=[];e.push(this);for(let t of this._childNodes)e.push(...t.flattenNodes());return e}render(){return""}get textContent(){return this._childNodes.map(e=>e.textContent).join("")}set textContent(e){this._childNodes=[],e&&this.appendChild(new vh(e.toString()))}contains(e){return e===this?!0:this._childNodes.some(t=>t.contains(e))}get ownerDocument(){var e;return this.nodeType===BE.DOCUMENT_NODE||this.nodeType===BE.DOCUMENT_FRAGMENT_NODE?this:(e=this==null?void 0:this._parentNode)==null?void 0:e.ownerDocument}toString(){return`${this.nodeName}`}[BKe](){return`${this.constructor.name} "${this.render()}"`}},Qi=BE;Qi.ELEMENT_NODE=1;Qi.TEXT_NODE=3;Qi.CDATA_SECTION_NODE=4;Qi.PROCESSING_INSTRUCTION_NODE=7;Qi.COMMENT_NODE=8;Qi.DOCUMENT_NODE=9;Qi.DOCUMENT_TYPE_NODE=10;Qi.DOCUMENT_FRAGMENT_NODE=11;var vh=class extends Qi{constructor(e=""){super(),this._text=e}get nodeType(){return Qi.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}render(){var e;const t=(e=this.parentNode)==null?void 0:e.tagName;return t==="SCRIPT"||t==="STYLE"?this._text:U5(this._text)}cloneNode(e=!1){let t=super.cloneNode(e);return t._text=this._text,t}},Jme=class extends Qi{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return LKe(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){var t;return this.matches(e)?this:this.parentNode==null?null:(t=this.parentNode)==null?void 0:t.parent(e)}handle(e,t){let n=0;for(let r of this.querySelectorAll(e))t(r,n++)}},Js=class extends Jme{constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{},this._styles=null}get nodeType(){return Qi.ELEMENT_NODE}get nodeName(){return this._nodeName}cloneNode(e=!1){let t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return this._attributes}_findAttributeName(e){const t=e.toLowerCase();return Object.keys(this._attributes).find(n=>t===n.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=null}getAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]:null}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]!=null:!1}get style(){if(this._styles==null){let e=Object.assign({},$Ke[this.tagName.toLowerCase()]||{}),t=this.getAttribute("style");if(t){let n,r=/\s*([\w-]+)\s*:\s*([^;]+)/g;for(;n=r.exec(t);){let i=n[1],a=n[2].trim();e[i]=a,e[UKe(i)]=a}}this._styles=e}return this._styles}get tagName(){return this._nodeName}get id(){return this._attributes.id||null}set id(e){e==null?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){e==null?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();let t=this.flatten();return e!=="*"?t.filter(n=>n.tagName===e):t}setInnerHTML(e){throw"setInnerHTML is not implemented; see vdomparser for an example"}get innerHTML(){return this._childNodes.map(e=>e.render(hN)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(mA)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(t=>!!t).join(" "):typeof e=="object"&&(e=Object.entries(e).filter(([t,n])=>!!n).map(([t,n])=>t).join(" ")),this._attributes.class=e}get classList(){let e=this,t=(this.className||"").trim().split(/\s+/g)||[];return{contains(n){return t.includes(n)},add(n){t.includes(n)||(t.push(n),e.className=t)},remove(n){let r=t.indexOf(n);r>=0&&(t.splice(r,1),e.className=t)}}}render(e=mA){return e(this._originalTagName||this.tagName,this.attributes,this._childNodes.map(t=>t.render(e)).join(""))}},RU=class extends Qi{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return RU.DOCUMENT_TYPE_NODE}render(){return""}},gN=class extends Jme{get nodeType(){return Qi.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(e=mA){return this._childNodes.map(t=>t.render(e)||[]).join("")}get innerHTML(){return this._childNodes.map(e=>e.render(hN)).join("")}createElement(e,t={}){return new Js(e,t)}createDocumentFragment(){return new gN}createTextNode(e){return new vh(e)}},PU=class extends gN{get nodeType(){return Qi.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=mA){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},Yme=class extends PU{constructor(e=!1){if(super(),this.docType=new RU,!e){let t=new Js("html"),n=new Js("body"),r=new Js("head"),i=new Js("title");t.appendChild(r),r.appendChild(i),t.appendChild(n),this.appendChild(t)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new Js("html"),this.appendChild(t)),e=new Js("body"),t.appendChild(t)}return e}get title(){var e;return((e=this.querySelector("title"))==null?void 0:e.textContent)||""}set title(e){const t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new Js("html"),this.appendChild(t)),e=new Js("head"),t.insertBefore(t)}return e}};function HKe(){return new PU}function VKe(){return new Yme}var Kme=HKe();NKe({document:Kme});var zKe=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/gm,qKe=/^<\/([^>\s]+)[^>]*>/m,WKe=/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*\/?\s*>/m,jKe=/\s*\/\s*>\s*$/m,GKe=class{constructor(e){this.attrRe=zKe,this.endTagRe=qKe,this.startTagRe=WKe,this.defaults={ignoreWhitespaceText:!1},e=e||{},e.scanner&&(this.scanner=e.scanner,e.scanner=null),this.options=Object.assign({},this.defaults,e)}parse(e){let t=!1,n,r,i;for(;e.length;)e.substring(0,4)===""),n!==-1?(this.scanner.comment(e.substring(4,n)),e=e.substring(n+3),t=!1):t=!0):e.substring(0,2)==="{n[i]=c??l??o??!0}),n}};function JKe(e){if(typeof e!="string")throw console.error("parseHTML requires string, found",e),new Error("parseHTML requires string");let t=e.indexOf("({state:t,commands:n})=>{const{selection:r}=t,{empty:i,ranges:a}=r;let o;if(i)o=Math.min(...a.map(s=>s.$from.pos));else{const s=Math.min(...a.map(u=>u.$from.pos)),l=Math.max(...a.map(u=>u.$to.pos));o={from:s,to:l}}return n.insertContentAt(o,[{type:"requiredPlaceholder",attrs:e}])}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:a}=r;return i?(t.doc.nodesBetween(a-1,a,(o,s)=>{if(o.type.name===this.name)return n=!0,e.insertText("",s,s+o.nodeSize),!1}),n):!1})}},parseHTML(){return[{tag:"span",getAttrs:e=>{if(typeof e=="string")return!1;const t=e.getAttribute("data-placeholder-text");return t==null?!1:{placeholderText:t}}}]},renderHTML({node:e,HTMLAttributes:t}){const n=bt(this.options.HTMLAttributes,t);return n["data-placeholder-text"]=e.attrs.placeholderText,["span",n,`[${e.attrs.placeholderText}]`]},renderText({node:e}){return`[${e.attrs.placeholderText}]`}}),sQe="4dE8b1Jx5k2yU7sM3n9TqC6LzV4wP0rA8g5QX",lQe="f2Yt9J4eK8mW6pL1nQ3dV7uX0rC5zA9B6sTgP";var j0;(function(e){e.Header="header",e.Footer="footer"})(j0||(j0={}));const Zme=an.create({name:"htmlContent",group:"htmlContent",atom:!0,selectable:!1,isolating:!0,draggable:!1,addAttributes(){return{content:{default:""},contentType:{default:this.options.contentType}}},renderText(){return""},renderHTML({node:e}){const{contentType:t}=e.attrs;return["span",t===j0.Header?sQe:lQe]},addCommands(){return{setHTMLContent:(e,t)=>({state:n,commands:r})=>{const i=qQ(n,t);let a;if(i){const o=n.doc.resolve(i.pos),s=i.pos-o.textOffset;a={from:s,to:s+o.parent.child(o.index()).nodeSize}}else{const o=t===j0.Header?0:n.doc.content.size;a={from:o,to:o}}return r.insertContentAt(a,[{type:t===j0.Header?"htmlHeader":"htmlFooter",attrs:{content:e,contentType:t}}])},removeHTMLContent:e=>({state:t,chain:n})=>{const r=qQ(t,e);if(r){const i=t.doc.nodeAt(r.pos);if(i)return n().deleteRange({from:r.pos,to:r.pos+i.nodeSize}).run()}return!1}}}}),uQe=Zme.extend({name:"htmlHeader",addOptions(){return{contentType:j0.Header}}}),cQe=Zme.extend({name:"htmlFooter",addOptions(){return{contentType:j0.Footer}}}),qQ=(e,t)=>{let n=null;return e.doc.descendants((r,i)=>{if(r.attrs.contentType===t)return n={node:r,pos:i},!1}),n};function dQe(e){if(e)switch(e){case"email":return"min-height:1.2em;margin-top:0;margin-bottom:0";case"job-board":return"min-height:1.5em";case"api":return}}function fQe(e){if(e)switch(e){case"email":return"min-height:1.2em;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:40px;";case"job-board":return"min-height:1.5em";case"api":return}}function pQe(e){if(e)switch(e){case"email":return"min-height:1.2em;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:40px;";case"job-board":return"min-height:1.5em";case"api":return}}function mQe(e){if(e)switch(e){case"email":return"display:inline-block;background-color:#eeedf2;border-radius:4px;line-height:normal;overflow:auto;padding:8px;white-space:pre-wrap;"}}function hQe(e,t={}){var n,r,i,a;const o={style:dQe((n=t.paragraph)===null||n===void 0?void 0:n.stylePresetName)},s=[];switch((r=t.documentType)!==null&&r!==void 0?r:"default"){case"default":{s.push(NYe.configure({HTMLAttributes:o,renderAs:(a=(i=t.paragraph)===null||i===void 0?void 0:i.renderAs)!==null&&a!==void 0?a:"p"}),dA,IGe,BGe,$Ge,JGe),e.includes(oe.QuotedContent)&&e.includes(oe.EmailSignatures)&&e.includes(oe.HTMLContent)?(s.unshift(JYe),s.push(qh)):e.includes(oe.QuotedContent)&&e.includes(oe.EmailSignatures)?(s.unshift(wGe),s.push(qh)):e.includes(oe.QuotedContent)?(s.unshift(kGe),s.push(qh)):e.includes(oe.EmailSignatures)?s.unshift(AGe):s.unshift(M1);break}case"inline only":s.push(dA),s.unshift(nKe)}const l=e.flatMap(u=>{var c,d,f,p,m,h;switch(u){case oe.Unimplemented:return gme;case oe.Placeholder:return YGe;case oe.Italic:return vJe;case oe.Bold:return nJe;case oe.Underline:return oJe;case oe.Code:return cJe;case oe.CodeBlocks:return wme.configure({HTMLAttributes:{class:"prosemirrorCodeBlock",style:mQe((c=t.codeBlock)===null||c===void 0?void 0:c.stylePresetName)}});case oe.Headings:return aJe.configure({levels:[1,2,3]});case oe.NumberedLists:return QGe.configure({HTMLAttributes:{style:pQe((d=t.orderedList)===null||d===void 0?void 0:d.stylePresetName)}});case oe.BulletedLists:return iJe.configure({HTMLAttributes:{style:fQe((f=t.bulletList)===null||f===void 0?void 0:f.stylePresetName)}});case oe.Links:return Pme;case oe.UnsubscribeLinks:return sje;case oe.Mentions:return EGe;case oe.Tokens:return rGe;case oe.SubstitutionGroups:return[vKe,eQe,aQe];case oe.Blockquote:return SJe;case oe.QuotedContent:return[OU,Fme,YYe,KYe];case oe.EmailSignatures:return[Lme,DU];case oe.EmbedVideos:return((p=t.embeddedMedia)===null||p===void 0?void 0:p.embeddedMedia)==="hydrated"?[tKe.configure({embeddedMediaPath:t.embeddedMedia.embeddedMediaPath,organizationId:t.embeddedMedia.organizationId})]:[Bme];case oe.InternalImages:return pA.configure({attachmentAccessibility:gu.Internal,renderTarget:(m=t.image)===null||m===void 0?void 0:m.renderTarget});case oe.PublicImages:return pA.configure({attachmentAccessibility:gu.Public,renderTarget:(h=t.image)===null||h===void 0?void 0:h.renderTarget});case oe.Table:return[bYe,TYe,_Ye,EYe];case oe.RequiredPlaceholders:return oQe;case oe.AshbyTokenTooltips:return[mGe];case oe.TextStyle:return wYe;case oe.Color:return kYe;case oe.FontFamily:return AYe;case oe.HTMLContent:return[uQe,cQe];default:return(g=>{})()}}).filter(kr);return(e.includes(oe.BulletedLists)||e.includes(oe.NumberedLists))&&l.push(sJe),[...s,...l]}const gQe=e=>(vQe(e),yQe(e),e);function vQe(e){const t=e.getElementsByTagName("p");for(const n of Array.from(t).filter(({firstChild:r,lastChild:i})=>r&&r.isSameNode(i)&&r instanceof Element&&r.tagName==="BR"))n.removeChild(n.firstChild)}function yQe(e){const t=e.getElementsByTagName("li");for(const n of Array.from(t).filter(({lastElementChild:r})=>r&&r.tagName==="BR"))n.removeChild(n.lastElementChild)}const SQe=e=>(bQe(e),e);function bQe(e){[...Array.from(e.body.children)].forEach(Xme)}function Xme(e){if(!e.matches("div")||Array.from(e.children).filter(i=>i.matches("div, p")).length===0)return;[...Array.from(e.children)].forEach(Xme);const r=e.parentNode;for(;e.firstElementChild;)r.insertBefore(e.firstElementChild,e);r.removeChild(e)}const TQe=e=>{switch(e){case"Cocoa HTML Writer":return gQe;default:return SQe}};function _Qe(e){var t;const r=new DOMParser().parseFromString(e,"text/html"),i=(t=r.querySelector('meta[name="Generator"]'))===null||t===void 0?void 0:t.getAttribute("content"),a=TQe(i);return(a?a(r):r).documentElement.innerHTML}const EQe=(e,t)=>$e.fromJSON(t,wQe(e.toJSON())||{});function wQe(e){return e&&ehe(e)}function ehe(e){let t=e.content;if(Array.isArray(t)){switch(e.type){case"paragraph":t.at(-1).type==="hardBreak"&&(t=t.slice(0,-1))}t=t.map(ehe)}return{...e,content:t}}const kQe=(e,t)=>$e.fromJSON(t,AQe(e.toJSON())||{});function AQe(e){return e&&the(e)}function the(e){return e.marks&&(e.marks=e.marks.filter(t=>t.type!=="textStyle")),e.content&&(e.content=e.content.map(the)),e}const CQe=(e,t)=>kQe(EQe(e,t),t),NQe=Na.create({name:"event-handler",addProseMirrorPlugins(){return[new _r({key:new Br("eventHandler"),props:{transformPastedHTML:_Qe,transformPasted:e=>CQe(e,this.editor.schema)}})]}});Na.create({name:"done-editing-shortcut",addKeyboardShortcuts(){return{"Mod-Enter":()=>(this.options.doneEditingCallback(),!0)}}});Na.create({name:"rich-text-attachment-upload",addCommands(){return{uploadImage:()=>()=>(this.options.uploadButtonCallback(this.options.accessibility),!0)}}});var vN={},yN={};yN.byteLength=DQe;yN.toByteArray=MQe;yN.fromByteArray=FQe;var Gl=[],Go=[],IQe=typeof Uint8Array<"u"?Uint8Array:Array,xO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Tm=0,OQe=xO.length;Tm0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function DQe(e){var t=nhe(e),n=t[0],r=t[1];return(n+r)*3/4-r}function xQe(e,t,n){return(t+n)*3/4-n}function MQe(e){var t,n=nhe(e),r=n[0],i=n[1],a=new IQe(xQe(e,r,i)),o=0,s=i>0?r-4:r,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Go[e.charCodeAt(l)]<<2|Go[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Go[e.charCodeAt(l)]<<10|Go[e.charCodeAt(l+1)]<<4|Go[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function RQe(e){return Gl[e>>18&63]+Gl[e>>12&63]+Gl[e>>6&63]+Gl[e&63]}function PQe(e,t,n){for(var r,i=[],a=t;as?s:o+a));return r===1?(t=e[n-1],i.push(Gl[t>>2]+Gl[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Gl[t>>10]+Gl[t>>4&63]+Gl[t<<2&63]+"=")),i.join("")}var FU={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */FU.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+e[t+d],d+=f,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-u}return(p?-1:1)*o*Math.pow(2,a-r)};FU.write=function(e,t,n,r,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=o&255,p+=m,o/=256,u-=8);e[n+p-m]|=h*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */(function(e){const t=yN,n=FU,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const I=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(I,w),I.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(I){if(I>i)throw new RangeError('The value "'+I+'" is invalid for option "size"');const w=new Uint8Array(I);return Object.setPrototypeOf(w,s.prototype),w}function s(I,w,C){if(typeof I=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(I)}return l(I,w,C)}s.poolSize=8192;function l(I,w,C){if(typeof I=="string")return f(I,w);if(ArrayBuffer.isView(I))return m(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(Ye(I,ArrayBuffer)||I&&Ye(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ye(I,SharedArrayBuffer)||I&&Ye(I.buffer,SharedArrayBuffer)))return h(I,w,C);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const x=I.valueOf&&I.valueOf();if(x!=null&&x!==I)return s.from(x,w,C);const z=g(I);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return s.from(I[Symbol.toPrimitive]("string"),w,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}s.from=function(I,w,C){return l(I,w,C)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function c(I,w,C){return u(I),I<=0?o(I):w!==void 0?typeof C=="string"?o(I).fill(w,C):o(I).fill(w):o(I)}s.alloc=function(I,w,C){return c(I,w,C)};function d(I){return u(I),o(I<0?0:v(I)|0)}s.allocUnsafe=function(I){return d(I)},s.allocUnsafeSlow=function(I){return d(I)};function f(I,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const C=b(I,w)|0;let x=o(C);const z=x.write(I,w);return z!==C&&(x=x.slice(0,z)),x}function p(I){const w=I.length<0?0:v(I.length)|0,C=o(w);for(let x=0;x=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return I|0}function y(I){return+I!=I&&(I=0),s.alloc(+I)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,C){if(Ye(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),Ye(C,Uint8Array)&&(C=s.from(C,C.offset,C.byteLength)),!s.isBuffer(w)||!s.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===C)return 0;let x=w.length,z=C.length;for(let Q=0,ae=Math.min(x,z);Qz.length?(s.isBuffer(ae)||(ae=s.from(ae)),ae.copy(z,Q)):Uint8Array.prototype.set.call(z,ae,Q);else if(s.isBuffer(ae))ae.copy(z,Q);else throw new TypeError('"list" argument must be an Array of Buffers');Q+=ae.length}return z};function b(I,w){if(s.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||Ye(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const C=I.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&C===0)return 0;let z=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return q(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return ye(I).length;default:if(z)return x?-1:q(I).length;w=(""+w).toLowerCase(),z=!0}}s.byteLength=b;function T(I,w,C){let x=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,w>>>=0,C<=w))return"";for(I||(I="utf8");;)switch(I){case"hex":return j(this,w,C);case"utf8":case"utf-8":return V(this,w,C);case"ascii":return re(this,w,C);case"latin1":case"binary":return X(this,w,C);case"base64":return L(this,w,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,w,C);default:if(x)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),x=!0}}s.prototype._isBuffer=!0;function _(I,w,C){const x=I[w];I[w]=I[C],I[C]=x}s.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let C=0;CC&&(w+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(w,C,x,z,Q){if(Ye(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(C===void 0&&(C=0),x===void 0&&(x=w?w.length:0),z===void 0&&(z=0),Q===void 0&&(Q=this.length),C<0||x>w.length||z<0||Q>this.length)throw new RangeError("out of range index");if(z>=Q&&C>=x)return 0;if(z>=Q)return-1;if(C>=x)return 1;if(C>>>=0,x>>>=0,z>>>=0,Q>>>=0,this===w)return 0;let ae=Q-z,Fe=x-C;const Ut=Math.min(ae,Fe),gn=this.slice(z,Q),Kn=w.slice(C,x);for(let vn=0;vn2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,ft(C)&&(C=z?0:I.length-1),C<0&&(C=I.length+C),C>=I.length){if(z)return-1;C=I.length-1}else if(C<0)if(z)C=0;else return-1;if(typeof w=="string"&&(w=s.from(w,x)),s.isBuffer(w))return w.length===0?-1:k(I,w,C,x,z);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(I,w,C):Uint8Array.prototype.lastIndexOf.call(I,w,C):k(I,[w],C,x,z);throw new TypeError("val must be string, number or Buffer")}function k(I,w,C,x,z){let Q=1,ae=I.length,Fe=w.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(I.length<2||w.length<2)return-1;Q=2,ae/=2,Fe/=2,C/=2}function Ut(Kn,vn){return Q===1?Kn[vn]:Kn.readUInt16BE(vn*Q)}let gn;if(z){let Kn=-1;for(gn=C;gnae&&(C=ae-Fe),gn=C;gn>=0;gn--){let Kn=!0;for(let vn=0;vnz&&(x=z)):x=z;const Q=w.length;x>Q/2&&(x=Q/2);let ae;for(ae=0;ae>>0,isFinite(x)?(x=x>>>0,z===void 0&&(z="utf8")):(z=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Q=this.length-C;if((x===void 0||x>Q)&&(x=Q),w.length>0&&(x<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let ae=!1;for(;;)switch(z){case"hex":return A(this,w,C,x);case"utf8":case"utf-8":return D(this,w,C,x);case"ascii":case"latin1":case"binary":return R(this,w,C,x);case"base64":return B(this,w,C,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,w,C,x);default:if(ae)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),ae=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(I,w,C){return w===0&&C===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(w,C))}function V(I,w,C){C=Math.min(I.length,C);const x=[];let z=w;for(;z239?4:Q>223?3:Q>191?2:1;if(z+Fe<=C){let Ut,gn,Kn,vn;switch(Fe){case 1:Q<128&&(ae=Q);break;case 2:Ut=I[z+1],(Ut&192)===128&&(vn=(Q&31)<<6|Ut&63,vn>127&&(ae=vn));break;case 3:Ut=I[z+1],gn=I[z+2],(Ut&192)===128&&(gn&192)===128&&(vn=(Q&15)<<12|(Ut&63)<<6|gn&63,vn>2047&&(vn<55296||vn>57343)&&(ae=vn));break;case 4:Ut=I[z+1],gn=I[z+2],Kn=I[z+3],(Ut&192)===128&&(gn&192)===128&&(Kn&192)===128&&(vn=(Q&15)<<18|(Ut&63)<<12|(gn&63)<<6|Kn&63,vn>65535&&vn<1114112&&(ae=vn))}}ae===null?(ae=65533,Fe=1):ae>65535&&(ae-=65536,x.push(ae>>>10&1023|55296),ae=56320|ae&1023),x.push(ae),z+=Fe}return J(x)}const U=4096;function J(I){const w=I.length;if(w<=U)return String.fromCharCode.apply(String,I);let C="",x=0;for(;xx)&&(C=x);let z="";for(let Q=w;Qx&&(w=x),C<0?(C+=x,C<0&&(C=0)):C>x&&(C=x),CC)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,C,x){w=w>>>0,C=C>>>0,x||M(w,C,this.length);let z=this[w],Q=1,ae=0;for(;++ae>>0,C=C>>>0,x||M(w,C,this.length);let z=this[w+--C],Q=1;for(;C>0&&(Q*=256);)z+=this[w+--C]*Q;return z},s.prototype.readUint8=s.prototype.readUInt8=function(w,C){return w=w>>>0,C||M(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,C){return w=w>>>0,C||M(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,C){return w=w>>>0,C||M(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,C){return w=w>>>0,C||M(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,C){return w=w>>>0,C||M(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readBigUInt64LE=ee(function(w){w=w>>>0,Ve(w,"offset");const C=this[w],x=this[w+7];(C===void 0||x===void 0)&&dt(w,this.length-8);const z=C+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,Q=this[++w]+this[++w]*2**8+this[++w]*2**16+x*2**24;return BigInt(z)+(BigInt(Q)<>>0,Ve(w,"offset");const C=this[w],x=this[w+7];(C===void 0||x===void 0)&&dt(w,this.length-8);const z=C*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],Q=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+x;return(BigInt(z)<>>0,C=C>>>0,x||M(w,C,this.length);let z=this[w],Q=1,ae=0;for(;++ae=Q&&(z-=Math.pow(2,8*C)),z},s.prototype.readIntBE=function(w,C,x){w=w>>>0,C=C>>>0,x||M(w,C,this.length);let z=C,Q=1,ae=this[w+--z];for(;z>0&&(Q*=256);)ae+=this[w+--z]*Q;return Q*=128,ae>=Q&&(ae-=Math.pow(2,8*C)),ae},s.prototype.readInt8=function(w,C){return w=w>>>0,C||M(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,C){w=w>>>0,C||M(w,2,this.length);const x=this[w]|this[w+1]<<8;return x&32768?x|4294901760:x},s.prototype.readInt16BE=function(w,C){w=w>>>0,C||M(w,2,this.length);const x=this[w+1]|this[w]<<8;return x&32768?x|4294901760:x},s.prototype.readInt32LE=function(w,C){return w=w>>>0,C||M(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,C){return w=w>>>0,C||M(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readBigInt64LE=ee(function(w){w=w>>>0,Ve(w,"offset");const C=this[w],x=this[w+7];(C===void 0||x===void 0)&&dt(w,this.length-8);const z=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(x<<24);return(BigInt(z)<>>0,Ve(w,"offset");const C=this[w],x=this[w+7];(C===void 0||x===void 0)&&dt(w,this.length-8);const z=(C<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(z)<>>0,C||M(w,4,this.length),n.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,C){return w=w>>>0,C||M(w,4,this.length),n.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,C){return w=w>>>0,C||M(w,8,this.length),n.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,C){return w=w>>>0,C||M(w,8,this.length),n.read(this,w,!1,52,8)};function W(I,w,C,x,z,Q){if(!s.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>z||wI.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,C,x,z){if(w=+w,C=C>>>0,x=x>>>0,!z){const Fe=Math.pow(2,8*x)-1;W(this,w,C,x,Fe,0)}let Q=1,ae=0;for(this[C]=w&255;++ae>>0,x=x>>>0,!z){const Fe=Math.pow(2,8*x)-1;W(this,w,C,x,Fe,0)}let Q=x-1,ae=1;for(this[C+Q]=w&255;--Q>=0&&(ae*=256);)this[C+Q]=w/ae&255;return C+x},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,1,255,0),this[C]=w&255,C+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,2,65535,0),this[C]=w&255,this[C+1]=w>>>8,C+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,2,65535,0),this[C]=w>>>8,this[C+1]=w&255,C+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,4,4294967295,0),this[C+3]=w>>>24,this[C+2]=w>>>16,this[C+1]=w>>>8,this[C]=w&255,C+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,4,4294967295,0),this[C]=w>>>24,this[C+1]=w>>>16,this[C+2]=w>>>8,this[C+3]=w&255,C+4};function ce(I,w,C,x,z){Me(w,x,z,I,C,7);let Q=Number(w&BigInt(4294967295));I[C++]=Q,Q=Q>>8,I[C++]=Q,Q=Q>>8,I[C++]=Q,Q=Q>>8,I[C++]=Q;let ae=Number(w>>BigInt(32)&BigInt(4294967295));return I[C++]=ae,ae=ae>>8,I[C++]=ae,ae=ae>>8,I[C++]=ae,ae=ae>>8,I[C++]=ae,C}function ue(I,w,C,x,z){Me(w,x,z,I,C,7);let Q=Number(w&BigInt(4294967295));I[C+7]=Q,Q=Q>>8,I[C+6]=Q,Q=Q>>8,I[C+5]=Q,Q=Q>>8,I[C+4]=Q;let ae=Number(w>>BigInt(32)&BigInt(4294967295));return I[C+3]=ae,ae=ae>>8,I[C+2]=ae,ae=ae>>8,I[C+1]=ae,ae=ae>>8,I[C]=ae,C+8}s.prototype.writeBigUInt64LE=ee(function(w,C=0){return ce(this,w,C,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ee(function(w,C=0){return ue(this,w,C,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(w,C,x,z){if(w=+w,C=C>>>0,!z){const Ut=Math.pow(2,8*x-1);W(this,w,C,x,Ut-1,-Ut)}let Q=0,ae=1,Fe=0;for(this[C]=w&255;++Q>0)-Fe&255;return C+x},s.prototype.writeIntBE=function(w,C,x,z){if(w=+w,C=C>>>0,!z){const Ut=Math.pow(2,8*x-1);W(this,w,C,x,Ut-1,-Ut)}let Q=x-1,ae=1,Fe=0;for(this[C+Q]=w&255;--Q>=0&&(ae*=256);)w<0&&Fe===0&&this[C+Q+1]!==0&&(Fe=1),this[C+Q]=(w/ae>>0)-Fe&255;return C+x},s.prototype.writeInt8=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,1,127,-128),w<0&&(w=255+w+1),this[C]=w&255,C+1},s.prototype.writeInt16LE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,2,32767,-32768),this[C]=w&255,this[C+1]=w>>>8,C+2},s.prototype.writeInt16BE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,2,32767,-32768),this[C]=w>>>8,this[C+1]=w&255,C+2},s.prototype.writeInt32LE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,4,2147483647,-2147483648),this[C]=w&255,this[C+1]=w>>>8,this[C+2]=w>>>16,this[C+3]=w>>>24,C+4},s.prototype.writeInt32BE=function(w,C,x){return w=+w,C=C>>>0,x||W(this,w,C,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[C]=w>>>24,this[C+1]=w>>>16,this[C+2]=w>>>8,this[C+3]=w&255,C+4},s.prototype.writeBigInt64LE=ee(function(w,C=0){return ce(this,w,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ee(function(w,C=0){return ue(this,w,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function he(I,w,C,x,z,Q){if(C+x>I.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function Ce(I,w,C,x,z){return w=+w,C=C>>>0,z||he(I,w,C,4),n.write(I,w,C,x,23,4),C+4}s.prototype.writeFloatLE=function(w,C,x){return Ce(this,w,C,!0,x)},s.prototype.writeFloatBE=function(w,C,x){return Ce(this,w,C,!1,x)};function fe(I,w,C,x,z){return w=+w,C=C>>>0,z||he(I,w,C,8),n.write(I,w,C,x,52,8),C+8}s.prototype.writeDoubleLE=function(w,C,x){return fe(this,w,C,!0,x)},s.prototype.writeDoubleBE=function(w,C,x){return fe(this,w,C,!1,x)},s.prototype.copy=function(w,C,x,z){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(x||(x=0),!z&&z!==0&&(z=this.length),C>=w.length&&(C=w.length),C||(C=0),z>0&&z=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),w.length-C>>0,x=x===void 0?this.length:x>>>0,w||(w=0);let Q;if(typeof w=="number")for(Q=C;Q2**32?z=Re(String(C)):typeof C=="bigint"&&(z=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(z=Re(z)),z+="n"),x+=` It must be ${w}. Received ${z}`,x},RangeError);function Re(I){let w="",C=I.length;const x=I[0]==="-"?1:0;for(;C>=x+4;C-=3)w=`_${I.slice(C-3,C)}${w}`;return`${I.slice(0,C)}${w}`}function De(I,w,C){Ve(w,"offset"),(I[w]===void 0||I[w+C]===void 0)&&dt(w,I.length-(C+1))}function Me(I,w,C,x,z,Q){if(I>C||I3?w===0||w===BigInt(0)?Fe=`>= 0${ae} and < 2${ae} ** ${(Q+1)*8}${ae}`:Fe=`>= -(2${ae} ** ${(Q+1)*8-1}${ae}) and < 2 ** ${(Q+1)*8-1}${ae}`:Fe=`>= ${w}${ae} and <= ${C}${ae}`,new ge.ERR_OUT_OF_RANGE("value",Fe,I)}De(x,z,Q)}function Ve(I,w){if(typeof I!="number")throw new ge.ERR_INVALID_ARG_TYPE(w,"number",I)}function dt(I,w,C){throw Math.floor(I)!==I?(Ve(I,C),new ge.ERR_OUT_OF_RANGE(C||"offset","an integer",I)):w<0?new ge.ERR_BUFFER_OUT_OF_BOUNDS:new ge.ERR_OUT_OF_RANGE(C||"offset",`>= ${C?1:0} and <= ${w}`,I)}const Nt=/[^+/0-9A-Za-z-_]/g;function P(I){if(I=I.split("=")[0],I=I.trim().replace(Nt,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function q(I,w){w=w||1/0;let C;const x=I.length;let z=null;const Q=[];for(let ae=0;ae55295&&C<57344){if(!z){if(C>56319){(w-=3)>-1&&Q.push(239,191,189);continue}else if(ae+1===x){(w-=3)>-1&&Q.push(239,191,189);continue}z=C;continue}if(C<56320){(w-=3)>-1&&Q.push(239,191,189),z=C;continue}C=(z-55296<<10|C-56320)+65536}else z&&(w-=3)>-1&&Q.push(239,191,189);if(z=null,C<128){if((w-=1)<0)break;Q.push(C)}else if(C<2048){if((w-=2)<0)break;Q.push(C>>6|192,C&63|128)}else if(C<65536){if((w-=3)<0)break;Q.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((w-=4)<0)break;Q.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return Q}function Y(I){const w=[];for(let C=0;C>8,z=C%256,Q.push(z),Q.push(x);return Q}function ye(I){return t.toByteArray(P(I))}function Te(I,w,C,x){let z;for(z=0;z=w.length||z>=I.length);++z)w[z+C]=I[z];return z}function Ye(I,w){return I instanceof w||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===w.name}function ft(I){return I!==I}const $=function(){const I="0123456789abcdef",w=new Array(256);for(let C=0;C<16;++C){const x=C*16;for(let z=0;z<16;++z)w[x+z]=I[C]+I[z]}return w}();function ee(I){return typeof BigInt>"u"?pe:I}function pe(){throw new Error("BigInt not supported")}})(vN);function LU(e){var t;let n,r={...e.attrs};if(e.type===wme.name&&r&&r.encodedStringifiedContent){const a=vN.Buffer.from(r.encodedStringifiedContent,"base64").toString("utf8");delete r.encodedStringifiedContent,n=JSON.parse(a)}else n=(t=e.content)===null||t===void 0?void 0:t.map(a=>LU(a));const i={...e,attrs:r};return n!=null&&(i.content=n),i}const rhe="base64";function LQe({document:e}){const t=$me({document:e}),n=ihe({content:t.content});return{...t,content:n}}function ihe({content:e}){var t;const n={...e};return e.type===dA.name&&e.text!=null&&((t=e.attrs)===null||t===void 0?void 0:t.encoding)==null?(n.text=vN.Buffer.from(e.text).toString("base64"),n.attrs={...e.attrs,encoding:rhe}):e.content!=null&&(n.content=e.content.map(r=>ihe({content:r}))),n}var BQe=$Qe;function $Qe(e,t){var n={};typeof t=="string"&&(t=[].slice.call(arguments,1));for(var r in e)(!e.hasOwnProperty||e.hasOwnProperty(r))&&t.indexOf(r)===-1&&(n[r]=e[r]);return n}function UQe({document:e}){const{content:t,didDecode:n}=ahe({content:e.content});return{document:{...e,content:t},didDecode:n}}function ahe({content:e}){let t=!1;const n={...e},r=e.attrs;if(e.type===dA.name&&e.text&&r&&r.encoding&&r.encoding===rhe)t=!0,n.text=vN.Buffer.from(e.text,"base64").toString("utf8"),n.attrs=BQe(r,"encoding"),zHe(n.attrs)&&delete n.attrs;else if(e.content!=null){const i=e.content.map(a=>ahe({content:a}));n.content=i.map(a=>a.content),t=i.some(a=>a.didDecode)}return{content:n,didDecode:t}}function HQe({document:e,formRenderId:t,formDefinitionId:n,logError:r}){if(e!=null&&m0e(e)){const{document:i,didDecode:a}=UQe({document:e});return a&&r(new Error(`Unexpectedly received encoded rich text document. Form Render ID: ${t} Form Definition ID: ${n}`)),i}return e}var WQ;(function(e){e.email="email",e.slack="slack",e.sms="sms",e.eventLog="eventLog"})(WQ||(WQ={}));var jQ;(function(e){e.SourcingCampaign="SourcingCampaign",e.OneOffCampaign="OneOffCampaign"})(jQ||(jQ={}));var GQ;(function(e){e.Shared="shared",e.Personal="personal",e.Confidential="confidential"})(GQ||(GQ={}));var JQ;(function(e){e.Active="active",e.Archived="archived"})(JQ||(JQ={}));var YQ;(function(e){e.Manual="Manual",e.StageTransition="StageTransition",e.BookingLink="BookingLink",e.AI="AI",e.HiringEventRSVP="HiringEventRSVP"})(YQ||(YQ={}));var KQ;(function(e){e.Enrollment="Enrollment",e.EditLiveCampaign="EditLiveCampaign",e.BulkEditLiveCampaign="BulkEditLiveCampaign",e.TemplateEdit="TemplateEdit"})(KQ||(KQ={}));var QQ;(function(e){e.empty="",e.replyReceived="replyReceived"})(QQ||(QQ={}));var ZQ;(function(e){e.timeElapsed="timeElapsed",e.immediate="immediate"})(ZQ||(ZQ={}));var XQ;(function(e){e[e.TemplateWithoutStages=0]="TemplateWithoutStages",e[e.TemplateStagesAreNotInValidTimeOrder=1]="TemplateStagesAreNotInValidTimeOrder",e[e.TemplateStageWithoutSubject=2]="TemplateStageWithoutSubject",e[e.TemplateStageWithoutBody=3]="TemplateStageWithoutBody",e[e.PersonalizedStageWithoutSubject=4]="PersonalizedStageWithoutSubject",e[e.PersonalizedStageWithoutBody=5]="PersonalizedStageWithoutBody",e[e.PersonalizedStageWithUnresolvableTokens=6]="PersonalizedStageWithUnresolvableTokens",e[e.PersonalizedCampaignCandidateAlreadyHasRunningCampaign=7]="PersonalizedCampaignCandidateAlreadyHasRunningCampaign",e[e.PersonalizedCampaignStagesAreNotInValidTimeOrder=8]="PersonalizedCampaignStagesAreNotInValidTimeOrder",e[e.PersonalizedCampaignCannotSendUsingFromEmail=9]="PersonalizedCampaignCannotSendUsingFromEmail",e[e.OutreachFrequencyPolicyViolation=10]="OutreachFrequencyPolicyViolation",e[e.CandidateMarkedAsDoNotContact=11]="CandidateMarkedAsDoNotContact",e[e.AiTokenMustBeAccepted=12]="AiTokenMustBeAccepted",e[e.TemplateStageSubjectTooLong=13]="TemplateStageSubjectTooLong",e[e.TemplateStageBodyTooLong=14]="TemplateStageBodyTooLong",e[e.PersonalizedCampaignStageSubjectTooLong=15]="PersonalizedCampaignStageSubjectTooLong",e[e.PersonalizedCampaignStageBodyTooLong=16]="PersonalizedCampaignStageBodyTooLong",e[e.CandidateNoLinkedInProfileUrl=17]="CandidateNoLinkedInProfileUrl",e[e.CandidateNoEmailAddress=18]="CandidateNoEmailAddress",e[e.TemplateStageInvalidCcBccEmailAddress=19]="TemplateStageInvalidCcBccEmailAddress",e[e.PersonalizedStageInvalidCcBccEmailAddress=20]="PersonalizedStageInvalidCcBccEmailAddress",e[e.CandidateUnsubscribedFromAllSequences=21]="CandidateUnsubscribedFromAllSequences",e[e.PersonalizedStageWithRequiredPlaceholders=22]="PersonalizedStageWithRequiredPlaceholders"})(XQ||(XQ={}));var eZ;(function(e){e.Email="email",e.InMail="inMail",e.LinkedInConnection="linkedInConnection"})(eZ||(eZ={}));var yh;(function(e){e.dailyInterviewBriefing="dailyInterviewCandidates",e.candidateFollowUpDue="candidateFollowUpDue",e.overdueTasks="overdueTasks",e.weeklyPeopleOpsTaskDigest="weeklyPeopleOpsTaskDigest"})(yh||(yh={}));yh.overdueTasks+"",yh.dailyInterviewBriefing+"",yh.candidateFollowUpDue+"",yh.weeklyPeopleOpsTaskDigest+"";var K;(function(e){e.overdueFeedbackReminder="overdueFeedbackReminder",e.feedbackWithoutScheduleRequested="feedbackWithoutScheduleRequested",e.feedbackSubmitted="feedbackSubmitted",e.userMentionedInInterviewFeedback="userMentionedInInterviewFeedback",e.newCandidateNote="newCandidateNote",e.userMentionedInCandidateNote="userMentionedInNote",e.replyToCandidateNoteWithMention="replyToCandidateNoteWithMention",e.replyToAuthorOfCandidateNote="replyToAuthorOfCandidateNote",e.candidateApplied="candidateApplied",e.candidateStageChanged="candidateStageChanged",e.applicationTransferred="applicationTransferred",e.applicationCreated="applicationCreated",e.applicationUpdated="applicationUpdated",e.candidateHired="candidateHired",e.candidatePublished="candidatePublished",e.candidateUpdated="candidateUpdated",e.candidateAnonymized="candidateAnonymized",e.candidateDeleted="candidateDeleted",e.candidateMerged="candidateMerged",e.offerExtended="offerExtended",e.offerUpdated="offerVersionCreated",e.offerCancelled="offerCancelled",e.offerAccepted="offerAccepted",e.offerRejected="offerRejected",e.candidateFollowUpDue="candidateFollowUpDue",e.candidateTagsUpdated="candidateTagsUpdated",e.candidateBookedDirectScheduleTime="candidateBookedDirectScheduleTime",e.candidateCancelledDirectScheduleInterview="candidateCancelledDirectScheduleTime",e.candidateRequestedDirectScheduleReschedule="candidateRequestedDirectScheduleReschedule",e.candidateSubmittedCalendarAvailability="candidateSubmittedCalendarAvailability",e.candidateUnsubmittedCalendarAvailability="candidateUnsubmittedCalendarAvailability",e.interviewerDeclinedInvite="interviewerDeclinedInvite",e.candidateDeclinedInvite="candidateDeclinedInvite",e.interviewInterviewerAutoReplaced="interviewInterviewerAutoReplaced",e.organizerInviteDeclinedByInterviewer="organizerInviteDeclinedByInterviewer",e.organizerInviteDeclinedByCandidate="organizerInviteDeclinedByCandidate",e.organizerInterviewInterviewerAutoReplaced="organizerInterviewInterviewerAutoReplaced",e.interviewScheduled="interviewScheduled",e.interviewRescheduled="interviewRescheduled",e.interviewRescheduledExternally="interviewRescheduledExternally",e.interviewCancelled="interviewCancelled",e.internalInterviewReminder="internalInterviewReminder",e.interviewHeld="interviewHeld",e.interviewRescheduledAndHeld="interviewRescheduledAndHeld",e.interviewFinalized="interviewFinalized",e.interviewsRescheduledDueToTrainingPathInterruption="interviewsRescheduledDueToTrainingPathInterruption",e.interviewerTrainingPathAutomaticallyUpdated="interviewerTrainingPathAutomaticallyUpdated",e.interviewerTrainingEnrollment="interviewerTrainingEnrollment",e.interviewerTrainingGraduation="interviewerTrainingGraduation",e.takeHomeReadyForReview="takeHomeReadyForReview",e.takeHomeReviewNoLongerNeeded="takeHomeReviewNoLongerNeeded",e.employeeCreatedInBambooHR="employeeCreatedInBambooHR",e.employeePartiallyCreatedInBambooHR="employeePartiallyCreatedInBambooHR",e.candidateAddedToExternalSystem="candidateAddedToExternalSystem",e.referralSubmitted="referralSubmitted",e.assessmentSent="assessmentSent",e.assessmentFinished="assessmentFinished",e.externalWorkflowStarted="externalWorkflowStarted",e.externalWorkflowFinished="externalWorkflowFinished",e.externalWorkflowCancelled="externalWorkflowCancelled",e.applicationSubmittedByExternalRecruiter="applicationSubmittedByExternalRecruiter",e.replyToSharedEmailAliasCampaign="replyToSharedEmailAliasCampaign",e.sharedEmailAliasRequested="sharedEmailAliasRequested",e.sharedEmailAliasRequestResponded="sharedEmailAliasRequestResponded",e.offerApprovalReachedNextStage="offerApprovalReachedNextStage",e.offerApprovalCompleted="offerApprovalCompleted",e.jobApprovalReachedNextStage="jobApprovalReachedNextStage",e.jobApprovalCompleted="jobApprovalCompleted",e.openingApprovalReachedNextStage="openingApprovalReachedNextStage",e.openingApprovalCompleted="openingApprovalCompleted",e.interviewerPoolTraineeNeedsApproval="interviewerPoolTraineeNeedsApproval",e.candidateDataConsentSubmitted="candidateDataConsentSubmitted",e.candidateDiversitySurveySubmitted="candidateDiversitySurveySubmitted",e.candidateEEOCSurveySubmitted="candidateEEOCSurveySubmitted",e.candidateExperienceSurveyRequested="candidateExperienceSurveyRequested",e.candidateExperienceSurveySubmitted="candidateExperienceSurveySubmitted",e.questionnaireSubmitted="questionnaireSubmitted",e.jobCreated="jobCreated",e.jobUpdated="jobUpdated",e.jobInterviewPlanUpdated="jobInterviewPlanUpdated",e.jobPostingPublished="jobPostingPublished",e.jobPostingUnpublished="jobPostingUnpublished",e.openingCreated="openingCreated",e.documentEsignatureSent="documentEsignatureSent",e.documentEsignatureCancelled="documentEsignatureCancelled",e.documentEsignatureCompleted="documentEsignatureCompleted",e.pendingSequenceStageTask="pendingSequenceStageTask",e.campaignReplyReceived="campaignReplyReceived",e.newInvoiceAvailable="newInvoiceAvailable",e.paymentSucceeded="paymentSucceeded",e.paymentFailed="paymentFailed",e.seatAdded="seatAdded",e.seatOverageWarning="seatOverageWarning",e.renewalReminder="renewalReminder",e.candidateRepliedToTextMessage="candidateRepliedToTextMessage",e.candidateThatUserIsFollowingRepliedToTextMessage="candidateThatUserIsFollowingRepliedToTextMessage",e.candidateTextMessageConsentGiven="candidateTextMessageConsentGiven",e.candidateTextMessageConsentNotGiven="candidateTextMessageConsentNotGiven",e.postHireSurveyRequest="postHireSurveyRequest",e.postHireSurveyReminder="postHireSurveyReminder",e.internalRequestSubmitted="internalRequestSubmitted",e.approvalReminder="ApprovalReminder"})(K||(K={}));bHe()(K.feedbackWithoutScheduleRequested,K.overdueFeedbackReminder,K.feedbackSubmitted,K.userMentionedInInterviewFeedback,K.newInvoiceAvailable,K.paymentSucceeded,K.paymentFailed,K.seatAdded,K.seatOverageWarning,K.renewalReminder,K.userMentionedInCandidateNote,K.replyToCandidateNoteWithMention,K.replyToAuthorOfCandidateNote,K.newCandidateNote,K.candidateApplied,K.candidateStageChanged,K.applicationTransferred,K.candidateHired,K.offerExtended,K.offerUpdated,K.offerCancelled,K.offerAccepted,K.offerRejected,K.candidateFollowUpDue,K.applicationSubmittedByExternalRecruiter,K.applicationCreated,K.applicationUpdated,K.candidateBookedDirectScheduleTime,K.candidateCancelledDirectScheduleInterview,K.candidateRequestedDirectScheduleReschedule,K.candidateSubmittedCalendarAvailability,K.candidateUnsubmittedCalendarAvailability,K.interviewerDeclinedInvite,K.candidateDeclinedInvite,K.organizerInviteDeclinedByInterviewer,K.organizerInviteDeclinedByCandidate,K.interviewScheduled,K.interviewRescheduled,K.interviewRescheduledExternally,K.interviewInterviewerAutoReplaced,K.organizerInterviewInterviewerAutoReplaced,K.interviewsRescheduledDueToTrainingPathInterruption,K.interviewCancelled,K.interviewHeld,K.interviewRescheduledAndHeld,K.interviewFinalized,K.internalInterviewReminder,K.interviewerTrainingPathAutomaticallyUpdated,K.interviewerTrainingEnrollment,K.interviewerTrainingGraduation,K.takeHomeReadyForReview,K.takeHomeReviewNoLongerNeeded,K.employeeCreatedInBambooHR,K.employeePartiallyCreatedInBambooHR,K.candidateAddedToExternalSystem,K.referralSubmitted,K.assessmentSent,K.assessmentFinished,K.replyToSharedEmailAliasCampaign,K.sharedEmailAliasRequested,K.sharedEmailAliasRequestResponded,K.offerApprovalReachedNextStage,K.offerApprovalCompleted,K.jobApprovalReachedNextStage,K.jobApprovalCompleted,K.openingApprovalReachedNextStage,K.openingApprovalCompleted,K.interviewerPoolTraineeNeedsApproval,K.approvalReminder,K.candidateExperienceSurveyRequested,K.candidateExperienceSurveySubmitted,K.questionnaireSubmitted,K.candidateDataConsentSubmitted,K.candidateDiversitySurveySubmitted,K.candidateEEOCSurveySubmitted,K.jobCreated,K.jobUpdated,K.jobInterviewPlanUpdated,K.jobPostingPublished,K.jobPostingUnpublished,K.openingCreated,K.candidatePublished,K.candidateUpdated,K.candidateTagsUpdated,K.candidateAnonymized,K.candidateDeleted,K.candidateMerged,K.documentEsignatureSent,K.documentEsignatureCancelled,K.documentEsignatureCompleted,K.pendingSequenceStageTask,K.campaignReplyReceived,K.externalWorkflowStarted,K.externalWorkflowFinished,K.externalWorkflowCancelled,K.postHireSurveyRequest,K.postHireSurveyReminder,K.internalRequestSubmitted,K.candidateRepliedToTextMessage,K.candidateThatUserIsFollowingRepliedToTextMessage,K.candidateTextMessageConsentGiven,K.candidateTextMessageConsentNotGiven);K.feedbackWithoutScheduleRequested+"",K.overdueFeedbackReminder+"",K.feedbackSubmitted+"",K.userMentionedInInterviewFeedback+"",K.newCandidateNote+"",K.userMentionedInCandidateNote+"",K.replyToCandidateNoteWithMention+"",K.replyToAuthorOfCandidateNote+"",K.candidateApplied+"",K.candidateStageChanged+"",K.applicationTransferred+"",K.applicationCreated+"",K.applicationUpdated+"",K.candidateHired+"",K.candidateAnonymized+"",K.candidateDeleted+"",K.candidateMerged+"",K.offerExtended+"",K.offerUpdated+"",K.offerAccepted+"",K.offerRejected+"",K.offerCancelled+"",K.candidateFollowUpDue+"",K.candidateBookedDirectScheduleTime+"",K.candidateCancelledDirectScheduleInterview+"",K.candidateRequestedDirectScheduleReschedule+"",K.candidateSubmittedCalendarAvailability+"",K.candidateUnsubmittedCalendarAvailability+"",K.interviewerDeclinedInvite+"",K.candidateDeclinedInvite+"",K.organizerInviteDeclinedByInterviewer+"",K.organizerInviteDeclinedByCandidate+"",K.interviewInterviewerAutoReplaced+"",K.organizerInterviewInterviewerAutoReplaced+"",K.interviewsRescheduledDueToTrainingPathInterruption+"",K.interviewerTrainingPathAutomaticallyUpdated+"",K.interviewerTrainingEnrollment+"",K.interviewerTrainingGraduation+"",K.interviewScheduled+"",K.interviewRescheduled+"",K.interviewRescheduledExternally+"",K.interviewCancelled+"",K.interviewHeld+"",K.interviewRescheduledAndHeld+"",K.interviewFinalized+"",K.internalInterviewReminder+"",K.takeHomeReadyForReview+"",K.takeHomeReviewNoLongerNeeded+"",K.employeeCreatedInBambooHR+"",K.employeePartiallyCreatedInBambooHR+"",K.candidateAddedToExternalSystem+"",K.referralSubmitted+"",K.applicationSubmittedByExternalRecruiter+"",K.assessmentSent+"",K.assessmentFinished+"",K.replyToSharedEmailAliasCampaign+"",K.sharedEmailAliasRequested+"",K.sharedEmailAliasRequestResponded+"",K.offerApprovalReachedNextStage+"",K.offerApprovalCompleted+"",K.jobApprovalReachedNextStage+"",K.jobApprovalCompleted+"",K.openingApprovalReachedNextStage+"",K.openingApprovalCompleted+"",K.interviewerPoolTraineeNeedsApproval+"",K.candidateExperienceSurveyRequested+"",K.candidateExperienceSurveySubmitted+"",K.questionnaireSubmitted+"",K.candidateDataConsentSubmitted+"",K.candidateDiversitySurveySubmitted+"",K.candidateEEOCSurveySubmitted+"",K.jobCreated+"",K.jobUpdated+"",K.jobInterviewPlanUpdated+"",K.jobPostingPublished+"",K.jobPostingUnpublished+"",K.openingCreated+"",K.candidatePublished+"",K.candidateUpdated+"",K.candidateTagsUpdated+"",K.documentEsignatureSent+"",K.documentEsignatureCancelled+"",K.documentEsignatureCompleted+"",K.pendingSequenceStageTask+"",K.campaignReplyReceived+"",K.externalWorkflowStarted+"",K.externalWorkflowFinished+"",K.externalWorkflowCancelled+"",K.newInvoiceAvailable+"",K.paymentSucceeded+"",K.paymentFailed+"",K.seatAdded+"",K.seatOverageWarning+"",K.renewalReminder+"",K.candidateRepliedToTextMessage+"",K.candidateThatUserIsFollowingRepliedToTextMessage+"",K.candidateTextMessageConsentGiven+"",K.candidateTextMessageConsentNotGiven+"",K.postHireSurveyRequest+"",K.postHireSurveyReminder+"",K.internalRequestSubmitted+"",K.approvalReminder+"";var ohe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},she=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},H5,V5;function VQe(e){return Array.isArray(e.fields)}let tZ=H5=class{constructor({persistResponses:t,sections:n,linkedEntities:r}){this.persistResponses=t,this.sections=n==null||n.length===0?[new gA({fields:[]})]:n,this.linkedEntities=r??[]}onDecodeComplete(){VQe(this)&&(this.sections=[new gA({fields:this.fields})],this.fields=void 0)}copy(t){const n=this.sections.map(r=>r.copy(t));return new H5({...this,sections:n})}getAllFormFields(){return this.sections.flatMap(t=>t.fields)}validate(t){for(const n of this.sections)n.validate();if(t&&t.length>0){const n=this.getAllFormFields();for(const r of t){const i=n.find(a=>a.field.path===r.systemField);if(i==null)throw new Error(`A question to collect the ${r.noun} is required.`);if(r.mustBeMarkedAsRequired&&i.isRequired===!1)throw new Error(`"${i.field.title}" should be required.`);if(r.expectedFieldType!=null&&r.expectedFieldType!==i.field.type)throw new Error(`"${i.field.title}" must be of type "${r.expectedFieldType}".`)}}}};tZ=H5=ohe([ne("FormDefinition"),she("design:paramtypes",[Object])],tZ);let gA=V5=class{constructor({title:t,description:n,fields:r,isHidden:i}){this.title=t,this.description=n,this.fields=r||[],this.isHidden=i}copy(t){const n=this.fields.map(r=>r.copy(t));return new V5({...this,fields:n})}validate(){for(const t of this.fields)t.validate()}};gA=V5=ohe([ne("FormSection"),she("design:paramtypes",[Object])],gA);var z5;(function(e){e.default="default",e.private="private"})(z5||(z5={}));var lhe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uhe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},q5,nZ;(function(e){e.IsStageArchivedStage="system.interview_stage.stage_type.is_archived"})(nZ||(nZ={}));let W5=q5=class{constructor({field:t,privacy:n,isRequired:r,connectedPath:i,dependentFieldCondition:a,isRemoveable:o=!0,description:s,defaultValue:l,isHidden:u}){this.field=t,this.privacy=n??(n=z5.default),this.isRequired=r,this.connectedPath=i,this.dependentFieldCondition=a,this.isRemoveable=o,this.description=s,this.defaultValue=l,this.isHidden=u}copy(t){const n=this.field.copy(t);return new q5({...this,field:n})}static connectedObjectTypeAndPath(t,n){if(t.connectedPath)try{return zQe(t.connectedPath)}catch(r){n&&n(`${r.message} for form field: ${JSON.stringify(t)}`);return}}validate(){if((this.field instanceof wg||this.field instanceof Q2)&&this.field.selectableValues.length<1)throw new Error(`Question "${this.field.title}" must have at least one ${this.field instanceof wg?"checkbox":"radio button"}.`);if(m0e(this.description)&&YUe(this.description.content)&&!this.field.title)throw new Error("All questions must have a title in order to have a description.")}};lhe([Aa(jn.AnonymousObjectTypeMarker),uhe("design:type",Object)],W5.prototype,"dependentFieldCondition",void 0);W5=q5=lhe([ne("FormFieldDefinition"),uhe("design:paramtypes",[Object])],W5);function zQe(e){const[t,...n]=e.split(".");return[t,n.join(".")]}qs.Italic,qs.Bold,qs.Underline,qs.CodeMark,qs.CodeBlock,qs.NumberedList,qs.BulletedList,qs.Link;const qQe=[dU,fU,pU,mU,hU,gU,vU,yU,SU,ame];Ci.name,ve.String,Ci.email,ve.Email;Ci.name,Ci.email,K2.job;var j5;(function(e){e.overallRecommendation="overall_recommendation",e.feedback="feedback",e.noteOnlyVisibleToUsersWithAccessToPrivateFields="note_only_visible_to_users_with_access_to_private_fields"})(j5||(j5={}));j5.overallRecommendation,ve.ValueSelect;Gk.overallRating,ve.NPSRating;dR.overallQoHRating,ve.LinearRating;Ci.name,ve.String,Ci.email,ve.Email;Ci.name,ve.String,Ci.email,ve.Email;Yk.location,ve.Location;Ci.resume,ve.File;Eg.location,ve.Location;var rZ;(function(e){e.notes="notes"})(rZ||(rZ={}));var iZ;(function(e){e.overallRecommendation="overall_recommendation",e.notes="notes"})(iZ||(iZ={}));var Xa;(function(e){e.ApplicationFormAutofillInputBaseLayer="ashby-application-form-autofill-input-base-layer",e.ApplicationFormAutofillInputDescription="ashby-application-form-autofill-input-description",e.ApplicationFormAutofillInputDragLayer="ashby-application-form-autofill-input-drag-layer",e.ApplicationFormAutofillInputIcon="ashby-application-form-autofill-input-icon",e.ApplicationFormAutofillInputPendingLayer="ashby-application-form-autofill-input-pending-layer",e.ApplicationFormAutofillInputRoot="ashby-application-form-autofill-input-root",e.ApplicationFormAutofillInputTitle="ashby-application-form-autofill-input-title",e.ApplicationFormAutofillPane="ashby-application-form-autofill-pane",e.ApplicationFormAutofillUploader="ashby-application-form-autofill-uploader",e.ApplicationFormBlockedApplicationContainer="ashby-application-form-blocked-application-container",e.ApplicationFormContainer="ashby-application-form-container",e.ApplicationFormFailureContainer="ashby-application-form-failure-container",e.ApplicationFormFieldEntry="ashby-application-form-field-entry",e.ApplicationFormQuestionDescription="ashby-application-form-question-description",e.ApplicationFormQuestionTitle="ashby-application-form-question-title",e.ApplicationFormSectionContainer="ashby-application-form-section-container",e.ApplicationFormSectionHeader="ashby-application-form-section-header",e.ApplicationFormSectionHeaderDescription="ashby-application-form-section-header-description",e.ApplicationFormSectionHeaderTitle="ashby-application-form-section-header-title",e.ApplicationFormSubmitButton="ashby-application-form-submit-button",e.ApplicationFormSuccessContainer="ashby-application-form-success-container",e.ApplicationFormTextingConsentDescription="ashby-application-form-texting-consent-description",e.DepartmentHeading="ashby-department-heading",e.DepartmentHeadingLevel="ashby-department-heading-level",e.JobBoardBackToAllJobsButton="ashby-job-board-back-to-all-jobs-button",e.JobBoardFilter="ashby-job-board-filter",e.JobBoardHeading="ashby-job-board-heading",e.JobBoardHeadingCount="ashby-job-board-heading-count",e.JobPostingBrief="ashby-job-posting-brief",e.JobPostingBriefDepartmentHeading="ashby-job-posting-brief-department-heading",e.JobPostingBriefDepartmentHeadingLevel="ashby-job-posting-brief-department-heading-level",e.JobPostingBriefDetails="ashby-job-posting-brief-details",e.JobPostingBriefList="ashby-job-posting-brief-list",e.JobPostingBriefTitle="ashby-job-posting-brief-title",e.JobPostingHeader="ashby-job-posting-header",e.JobPostingHeading="ashby-job-posting-heading",e.JobPostingLeftPane="ashby-job-posting-left-pane",e.JobPostingRightPane="ashby-job-posting-right-pane",e.SurveyFormContainer="ashby-survey-form-container"})(Xa||(Xa={}));const WQe=/^#?(?:[0-9a-fA-F]{3}){1,2}$/;function jQe(e){return e?WQe.test(e):!1}const GQe="Your application was successfully submitted. We'll contact you if there are next steps.";function JQe(e,t="and"){if(e.length>1){const n=e.at(-1),r=e.slice(0,-1),i=r.length>1?",":"";return`${r.join(", ")}${i} ${t} ${n}`}return e.join("")}var aZ;(function(e){e.UploadCandidates="UploadCandidates",e.UploadCandidatesToJob="UploadCandidatesToJob",e.ReplyToNote="ReplyToNote"})(aZ||(aZ={}));var Xc;(function(e){e.organizationAdmin="ORGANIZATION_ADMIN",e.hiringTeamMember="HIRING_TEAM_MEMBER",e.externalRecruiter="EXTERNAL_RECRUITER",e.interviewer="INTERVIEWER"})(Xc||(Xc={}));var oZ;(function(e){e.Workday="Workday"})(oZ||(oZ={}));var ed;(function(e){e.FullTime="FullTime",e.PartTime="PartTime",e.Intern="Intern",e.Contract="Contract",e.Temporary="Temporary"})(ed||(ed={}));function Wh(e){switch(e){case ed.FullTime:return"Full time";case ed.PartTime:return"Part time";case ed.Intern:return"Intern";case ed.Contract:return"Contract";case ed.Temporary:return"Temporary";default:return UUe(e,"Unknown")}}Object.values(ed).map(e=>({value:e,label:Wh(e)}));var sZ;(function(e){e.WorkdayOutbound="WorkdayOutbound",e.WorkdayInbound="WorkdayInbound",e.WorkdayInboundPosition="WorkdayInboundPosition",e.Charthop="Charthop"})(sZ||(sZ={}));var lZ;(function(e){e[e.BASIC=1]="BASIC",e[e.LICENSED=2]="LICENSED",e[e.ON_PREM=3]="ON_PREM",e[e.UNASSIGNED=4]="UNASSIGNED",e[e.NONE=99]="NONE"})(lZ||(lZ={}));var uZ;(function(e){e.Pending="pending",e.Active="active",e.Inactive="inactive"})(uZ||(uZ={}));var cZ;(function(e){e[e.Instant=1]="Instant",e[e.Scheduled=2]="Scheduled",e[e.RecurringWithNoFixedTime=3]="RecurringWithNoFixedTime",e[e.RecurringWithFixedTime=8]="RecurringWithFixedTime"})(cZ||(cZ={}));var dZ;(function(e){e.GSuite="gsuite",e.Microsoft="microsoft",e.ExternalIdp="external_idp"})(dZ||(dZ={}));var jc;(function(e){e.BambooHR="e0b02b1b-72e4-455d-923c-62b9e24853c8",e.Beamery="4ea823ba-e638-48ab-8847-f619c62508b7",e.BuiltIn="f7291ffe-6a85-4df0-a82f-bcd1ad0e6c53",e.Charthop="4f8ffa7b-f506-4e1c-b0bf-35ed0a0f7fd1",e.Enboarder="a0e0ae7e-eaa1-4524-8100-a900a34d0e5d",e.Google="0d237897-dd61-4701-b480-f1ea7a1b8d29",e.Gusto="04673b50-458b-4818-be2f-c001a6e89b21",e.HiBob="1762b555-616a-4945-8b3a-488cc20c734f",e.Indeed="5f6ffe42-1310-4892-bba1-2fd1c8f2e2d9",e.LinkedIn="f20bf37b-7e88-4c9b-bbee-ab64b104c70c",e.LinkedInConnect="df9ce065-f2ed-4cf9-9fa3-8a8fda28ed7c",e.Microsoft365="1522ffb8-b18f-4971-a187-facb1e0fc31c",e.Namely="2641d030-4c55-463c-a8a7-801103265d31",e.Paychex="f8feb09e-1898-486a-9eb0-343774ba52f4",e.Paylocity="6d0b67e8-f0e0-42ba-b3c8-7c9889af4f6b",e.Personio="9cfa52a9-4924-4971-9aac-674aa730ed73",e.Rippling="c7fb2b8d-059a-4866-be27-2e2dd3fcf073",e.Slack="e0e8d94d-18d9-4855-93b9-ee1d4a1331f4",e.WelcomeToTheJungle="b77dfae9-35f7-451b-9822-cfd579d546ba",e.WorkOS="61e732c7-6794-44e1-a090-8f4c8e8dcb5e",e.Workday="6b0a3cf2-3dbc-4e04-a322-9a96344598d4",e.ZipRecruiter="2fa8143b-5fe8-4fb7-8691-0ba4ba11167c",e.Zoom="4ac8df31-0ba3-4d5e-80c6-72a3000f5975"})(jc||(jc={}));var fZ;(function(e){e.Never="Never",e.Always="Always",e.IfDefined="IfDefined"})(fZ||(fZ={}));var pZ;(function(e){e.Never="Never",e.Always="Always",e.UnlessDefined="UnlessDefined"})(pZ||(pZ={}));var Vt;(function(e){e.InternalTransfer="internal_transfer",e.Referral="referral",e.ReferralLink="referral_link",e.Applied="applied",e.ChromeExtension="chrome_extension",e.LinkedInLimitedListing="linkedin_limited_listing",e.IndeedListing="indeed_listing",e.IndeedListingSponsored="indeed_listing_sponsored",e.ZipRecruiterPostings="zip_recruiter_organic_postings",e.BuiltInListing="built_in_listing",e.WelcomeToTheJungle="welcome_to_the_jungle",e.GenericJobBoardFeed="generic_job_board_feed",e.RecruitingEvent="recruiting_event",e.SourcingForm="sourcing_form",e.PublicBookingLink="public_booking_link"})(Vt||(Vt={}));Vt.InternalTransfer,Vt.Referral,Vt.ReferralLink,Vt.Applied,Vt.ChromeExtension,Vt.GenericJobBoardFeed,Vt.RecruitingEvent;function P1(e){switch(e){case Vt.InternalTransfer:return"Internal Transfer";case Vt.Referral:return"Referral";case Vt.ReferralLink:return"Referral Link";case Vt.Applied:return"Applied";case Vt.ChromeExtension:return"Ashby Chrome Extension";case Vt.LinkedInLimitedListing:return"LinkedIn Limited Listings";case Vt.IndeedListing:return"Indeed Listings";case Vt.IndeedListingSponsored:return"Indeed Sponsored";case Vt.ZipRecruiterPostings:return"ZipRecruiter Organic Postings";case Vt.BuiltInListing:return"Built In Listings";case Vt.GenericJobBoardFeed:return"Generic Job Board Feed";case Vt.WelcomeToTheJungle:return"Welcome to the Jungle";case Vt.RecruitingEvent:return"Recruiting Event";case Vt.SourcingForm:return"Sourcing Form";case Vt.PublicBookingLink:return"Public Booking Link";default:ko("Missing title for built in source Id",e)}}var mZ;(function(e){e.Internal="internal",e.Referral="referral",e.Inbound="inbound",e.Sourced="sourced"})(mZ||(mZ={}));var qa;(function(e){e.linkedInLimitedListings="linkedin_limited_listings",e.indeedListings="indeed_listings",e.indeedListingsSponsored="indeed_listings_sponsored",e.zipRecruiterPostings="zip_recruiter_organic_postings",e.builtInListings="built_in_listings",e.welcomeToTheJungle="welcome_to_the_jungle",e.genericJobBoardFeeds="generic_job_board_feeds"})(qa||(qa={}));qa.linkedInLimitedListings+"",jc.LinkedIn,qa.indeedListings+"",jc.Indeed,qa.indeedListingsSponsored+"",jc.Indeed,qa.zipRecruiterPostings+"",jc.ZipRecruiter,qa.builtInListings+"",jc.BuiltIn,qa.welcomeToTheJungle+"",jc.WelcomeToTheJungle;P1(Vt.LinkedInLimitedListing),qa.linkedInLimitedListings,Vt.LinkedInLimitedListing;P1(Vt.IndeedListing),qa.indeedListings,Vt.IndeedListing;P1(Vt.IndeedListingSponsored),qa.indeedListingsSponsored,Vt.IndeedListingSponsored;P1(Vt.ZipRecruiterPostings),qa.zipRecruiterPostings,Vt.ZipRecruiterPostings;P1(Vt.BuiltInListing),qa.builtInListings,Vt.BuiltInListing;P1(Vt.WelcomeToTheJungle),qa.welcomeToTheJungle,Vt.WelcomeToTheJungle;const Ru={source:"source_shareable",sourceType:"source_type_shareable",team:"team_shareable",user:"user_shareable",job:"job_shareable",interviewStage:"interview_stage_shareable",interviewStageName:"interview_stage_name_shareable",location:"location_shareable",timeframe:"timeframe"};new Ua({path:Ru.source,humanReadablePath:"Source",title:"Source",searchIndex:$i.SearchSourceByTitle}),new Ua({path:Ru.sourceType,humanReadablePath:"Source Type",title:"Source Type",searchIndex:$i.SearchSourceTypeByTitle}),new Ua({path:Ru.team,humanReadablePath:"Department",title:"Department",searchIndex:$i.SearchTeamByName}),new Ua({path:Ru.user,humanReadablePath:"User",title:"User",searchIndex:$i.SearchUsers}),new Ua({path:Ru.job,humanReadablePath:"Job",title:"Job",searchIndex:$i.SearchJobs}),new Ua({path:Ru.interviewStage,humanReadablePath:"Interview Stage",title:"Interview Stage",searchIndex:$i.SearchInterviewStageByTitle}),new Ua({path:Ru.interviewStageName,humanReadablePath:"Interview Stage Name",title:"Interview Stage Name",searchIndex:$i.SearchInterviewStageByTitleIdentity}),new Ua({path:Ru.location,humanReadablePath:"Location",title:"Location",searchIndex:$i.SearchLocationByName}),new _p({path:Ru.timeframe,humanReadablePath:"Time Range",title:"Time Range"});var hZ;(function(e){e.OpeningCompensationRange="opening_compensation_range",e.OpeningTargetStartDate="opening_target_start_date",e.OpeningTargetHireDate="opening_target_hire_date",e.OpeningIsBackfill="opening_is_backfill",e.OpeningEmploymentType="opening_employment_type"})(hZ||(hZ={}));var YQe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},KQe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)};let gZ=class{constructor({identifier:t,processElements:n,definedVariables:r=[],escalationHandlers:i=[]}){this.escalationHandlers=[],this.identifier=t,this.processElements=n,this.definedVariables=r,this.escalationHandlers=i}};gZ=YQe([ne("ProcessDefinition"),KQe("design:paramtypes",[Object])],gZ);var QQe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ZQe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)};let vZ=class{constructor(t,n){this.escalationIdentifier=t,this.target=n}};vZ=QQe([ne("EscalationHandler"),ZQe("design:paramtypes",[String,String])],vZ);var yZ;(function(e){e.autoRejectCancelled="autoRejectCancelled"})(yZ||(yZ={}));var SZ;(function(e){e.processIdentifier="AutoRejectProcess",e.subProcessIdentifier="AutoRejectSubProcess",e.autoRejectSubProcess="auto_reject_sub_process",e.autoRejectMeetsCondition="auto_reject_meets_condition",e.resolveQueryExists="auto_reject_resolve_query_exists",e.evaluatingConditional="auto_reject_evaluating_condition",e.candidatePassed="auto_reject_candidate_passed",e.archiveCandidate="auto_reject_candidate_archived",e.waitingForCancellation="auto_reject_waiting_for_cancellation",e.processCancelled="auto_reject_canceled",e.emailDelay="auto_reject_email_delay",e.sendRejectionEmail="auto_reject_send_email",e.autoRejectComplete="auto_reject_candidate_rejected",e.delayAndWaitForCancelMessage="delay_and_wait_for_cancel_message"})(SZ||(SZ={}));var bZ;(function(e){e.resolveQueryExists="auto_reject_resolve_query_exists",e.emailDelay="auto_reject_email_delay"})(bZ||(bZ={}));var TZ;(function(e){e.archiveReasonId="archiveReasonId",e.autoRejectFilterDimension="autoRejectFilterDimension",e.autoRejectEmailDelayDays="autoRejectEmailDelay",e.autoRejectRejectionEmailTemplateId="autoRejectEmailTemplateId",e.autoRejectSendFromEmail="autoRejectSendFromEmail",e.autoRejectSendWithDisplayName="autoRejectSendWithDisplayName",e.autoRejectSendAsAuthorizedBy="autoRejectSendAsAuthorizedBy"})(TZ||(TZ={}));var _Z;(function(e){e.Miss="miss",e.Hit="hit"})(_Z||(_Z={}));var EZ;(function(e){e.applicationId="applicationId",e.applicationFormSubmissionId="applicationFormId",e.applicationFormPassedFilter="applicationFormPassedFilter",e.candidateHasBeenRejected="candidateHasBeenRejected"})(EZ||(EZ={}));var wZ;(function(e){e.ProcessStart="process_start",e.ProcessEnd="process_end",e.StartCampaignAndWaitForReply="start_campaign_and_wait_for_reply",e.BeginCampaignStage="begin_campaign_stage",e.IsCampaignPaused="is_campaign_paused",e.UnpauseCampaignStageMessageEvent="unpause_campaign_stage_message_event",e.StartSendTimerAndWaitForPauseMessage="start_send_timer_and_wait_for_pause_message",e.StartSendTimerAndWaitForMessages="start_send_timer_and_wait_for_messages",e.WaitForCampaignSendCondition="wait_for_campaign_send_condition",e.IsManualStageAction="is_manual_stage_action",e.ManualStageActionUserTask="manual_stage_action_user_task",e.DetermineAllStagesComplete="determine_all_stages_complete",e.DetermineShouldStartAutoRejectTimer="determine_should_start_auto_reject_timer",e.SetCampaignStatusToCompletedAndStartAutoArchiveTimer="set_campaign_status_to_completed_and_start_auto_archive_timer",e.CampaignWaitForNoReplyAutoReject="campaign_wait_for_no_reply_auto_reject",e.ArchiveApplicationsLinkedToCampaignAfterNoReplyDelay="archive_applications_linked_to_campaign_after_no_reply_delay",e.MoveToNextCampaignStage="move_to_next_campaign_stage",e.SendCampaignStageMessage="send_campaign_stage_message",e.DidSucceedSendStageTask="did_succeed_send_stage_task",e.ShouldRetryOrGoToHolding="should_retry_or_go_to_holding",e.MarkCampaignStageAsWaitingForManualRetry="mark_campaign_stage_as_waiting_for_manual_retry",e.HoldingForManualRetry="holding_for_manual_retry",e.ResetStageSendAttemptsCountAndTryToSendStageAgain="reset_attempts_variable",e.WaitForRetrySend="wait_for_retry_send",e.PauseCampaignStageMessageEvent="pause_campaign_stage_message_event",e.ReplyReceivedMessageEvent="reply_received_message_event",e.CampaignEndForReply="campaign_end_for_reply",e.ManuallyCancelledMessageEvent="manually_cancelled_message_event",e.CampaignManuallyCancelled="campaign_manually_cancelled",e.PauseCampaignMessageEvent="pause_campaign_message_event",e.PauseCampaignTask="pause_campaign_task",e.UnpauseCampaignMessageEvent="unpause_campaign_message_event",e.UnpauseCampaignTask="unpause_campaign_task",e.CampaignWasEditedMessageEvent="campaign_was_edited_message_event",e.ReloadCampaignTask="reload_campaign_task",e.CampaignStageReloadedMessageEvent="campaign_stage_reloaded_message_event"})(wZ||(wZ={}));var kZ;(function(e){e.ReplyReceived="replyReceived",e.ManuallyCancelled="manuallyCancelled",e.ManuallyRetry="manuallyRetry",e.CampaignPaused="campaignPaused",e.CampaignUnpaused="campaignUnpaused",e.CampaignStagePaused="campaignStagePaused",e.CampaignStageUnpaused="campaignStageUnpaused",e.CampaignEdited="campaignEdited",e.CampaignStageEdited="campaignStageEdited"})(kZ||(kZ={}));var AZ;(function(e){e.UnknownSubstitutionToken="UnknownSubstitutionToken",e.InvalidTemplateFile="InvalidTemplateFile",e.InvalidTemplateSyntax="InvalidTemplateSyntax",e.TemplateFileSizeError="TemplateFileSizeError",e.ESignatureTokenValidationError="ESignatureTokenValidationError"})(AZ||(AZ={}));var CZ;(function(e){e.Unavailable="Unavailable",e.AdminOnly="AdminOnly",e.AdminAndPermittedUsers="AdminAndPermittedUsers"})(CZ||(CZ={}));var Rr;(function(e){e[e.StrongNo=1]="StrongNo",e[e.No=2]="No",e[e.Yes=3]="Yes",e[e.StrongYes=4]="StrongYes",e.Future="-",e.Missing="?",e.NoPermission="NoPermission",e.NoPermissionUntilSubmitted="NoPermissionUntilSubmitted",e.FeedbackNotRequested="FeedbackNotRequested"})(Rr||(Rr={}));const XQe=[Rr.StrongNo,Rr.No,Rr.Yes,Rr.StrongYes,Rr.Future,Rr.Missing,Rr.NoPermission,Rr.NoPermissionUntilSubmitted,Rr.FeedbackNotRequested],c_=Object.freeze(new Map(XQe.map(e=>[e,eZe(e)])));function eZe(e){switch(e){case Rr.StrongNo:return"Strong No";case Rr.No:return"No";case Rr.Yes:return"Yes";case Rr.StrongYes:return"Strong Yes";case Rr.NoPermissionUntilSubmitted:return"You cannot see this feedback until you submit your own.";case Rr.NoPermission:return"You do not have permission to see this feedback.";case Rr.Missing:return"Feedback not submitted.";case Rr.Future:return"Interview has not started.";case Rr.FeedbackNotRequested:return"Feedback not requested.";default:return ko("Unsupported score value: ",e)}}var g0;(function(e){e[e.NoDecision=0]="NoDecision",e[e.DefinitelyNot=1]="DefinitelyNot",e[e.No=2]="No",e[e.Yes=3]="Yes",e[e.StrongYes=4]="StrongYes"})(g0||(g0={}));const tZe=[{value:`${g0.NoDecision}`,label:"No Decision"},{value:`${g0.DefinitelyNot}`,label:"Definitely Not"},{value:`${g0.No}`,label:"No"},{value:`${g0.Yes}`,label:"Yes"},{value:`${g0.StrongYes}`,label:"Strong Yes"}];tZe.map(e=>({value:e.value,label:`${e.value} - ${e.label}`}));var hr;(function(e){e[e.StrongNo=1]="StrongNo",e[e.No=2]="No",e[e.Yes=3]="Yes",e[e.StrongYes=4]="StrongYes"})(hr||(hr={}));const nZe=[hr.StrongNo,hr.No,hr.Yes,hr.StrongYes];Object.freeze(new Map(nZe.map(e=>[e,rZe(e)])));function rZe(e){switch(e){case hr.StrongNo:return"Strong No";case hr.No:return"No";case hr.Yes:return"Yes";case hr.StrongYes:return"Strong Yes";default:return ko("Unsupported score value: ",e)}}`${hr.StrongYes}`,`${hr.StrongYes}${c_.get(hr.StrongYes)}`,`${hr.Yes}`,`${hr.Yes}${c_.get(hr.Yes)}`,`${hr.No}`,`${hr.No}${c_.get(hr.No)}`,`${hr.StrongNo}`,`${hr.StrongNo}${c_.get(hr.StrongNo)}`;var NZ;(function(e){e.Assessments="Assessments",e.CandidateExperience="CandidateExperience",e.ExternalWorkflows="ExternalWorkflows",e.JobBoard="JobBoard",e.Other="Other",e.Platform="Platform",e.PostHire="PostHire",e.Sourcing="Sourcing",e.VideoInterviewing="VideoInterviewing"})(NZ||(NZ={}));var IZ;(function(e){e.FixedQuantity="FixedQuantity",e.QuantityPerSeat="QuantityPerSeat"})(IZ||(IZ={}));var G5;(function(e){e.DataEnrichmentRequest="DataEnrichmentRequest",e.ReportAlert="ReportAlert",e.CustomDashboard="CustomDashboard",e.Test_UnusedMeteredFeature="Test_UnusedMeteredFeature",e.Approvals="Approvals",e.CalculatedFields="CalculatedFields",e.InterviewerPoolsWithTraining="InterviewerPoolsWithTraining",e.CandidateExperienceSurveys="CandidateExperienceSurveys",e.OfferTemplates="OfferTemplates",e.AiCredit="AiCredit"})(G5||(G5={}));var $r;(function(e){e.JobBoards="JobBoards",e.DataSync="DataSync",e.ProcessEngine="ProcessEngine",e.Login="Login",e.PublicApi="PublicApi",e.ScheduledReports="ScheduledReports",e.Notifications="Notifications",e.OffersAndESignaturesAccess="OffersAndESignaturesAccess",e.AdvancedTemplateReports="AdvancedTemplateReports",e.InternalJobBoard="InternalJobBoard",e.FiscalYear="FiscalYear",e.OpeningsAndHeadcountManagement="OpeningsAndHeadcountManagement",e.ApplicationBlockingRules="ApplicationBlockingRules",e.OutreachFrequencyPolicy="OutreachFrequencyPolicy",e.WorkdayIntegration="WorkdayIntegration",e.BeameryIntegration="BeameryIntegration",e.ConfidentialJobs="ConfidentialJobs",e.JobAndCandidateCustomFields="JobAndCandidateCustomFields",e.ProjectCustomFields="ProjectCustomFields",e.NonOfferESignature="NonOfferESignature",e.CustomReports="CustomReports",e.CustomReportAlerts="CustomReportAlerts",e.QualityOfHire="QualityOfHire",e.ManageReportAccess="ManageReportAccess",e.HiringEvents="HiringEvents",e.Newsletters="Newsletters",e.AdvancedSchedulingAddOn="AdvancedSchedulingAddOn",e.ConfidentialProjects="ConfidentialProjects",e.ScheduledDashboards="ScheduledDashboards",e.ConfidentialSequences="ConfidentialSequences",e.InterviewerPauses="InterviewerPauses",e.ExternalWorkflows="ExternalWorkflows",e.FormFieldConnectors="FormFieldConnectors",e.HiringManagerExperience="HiringManagerExperience",e.GlobalApplicationQuestions="GlobalApplicationQuestions",e.GlobalAutoRejectRules="GlobalAutoRejectRules",e.ConditionalInterviewActivities="ConditionalInterviewActivitiesGated"})($r||($r={}));var J5;(function(e){e.PaidSeat="PaidSeat",e.SourcingOnlySeat="SourcingOnlySeat",e.UnlimitedSourcingSeat="UnlimitedSourcingSeat",e.AnalyticsAdminSeat="AnalyticsAdminSeat",e.AnalyticsViewOnlySeat="AnalyticsViewOnlySeat"})(J5||(J5={}));var Y5;(function(e){e.AtsFoundations="AtsFoundations",e.AtsPlus="AtsPlus",e.AshbyAnalytics="AshbyAnalytics",e.AtsLegacy2023Prior="AtsLegacy2023Prior",e.AtsPro="AtsPro",e.AtsEnterprise="AtsEnterprise",e.AtsStarter="AtsStarter",e.AtsLegacy="AtsLegacy"})(Y5||(Y5={}));const iZe=new Set(Object.values($r)),aZe=new Set(Object.values(G5)),oZe=new Set(Object.values(J5)),sZe=new Set(Object.values(Y5));[...sZe,...oZe,...aZe,...iZe];var OZ;(function(e){e.AccessDenied="AccessDenied",e.NoCreditsRemaining="NoCreditsRemaining",e.SeatDoesNotApplyToPlan="SeatDoesNotApplyToPlan",e.DoesNotHavePermissionToSeeBilling="DoesNotHavePermissionToSeeBilling",e.Error="Error"})(OZ||(OZ={}));var v0;(function(e){e.Active="Active",e.Suspended="Suspended",e.Deactivated="Deactivated",e.Deleting="Deleting",e.Deleted="Deleted"})(v0||(v0={}));v0.Active+"",$r.JobBoards,$r.DataSync,$r.ProcessEngine,$r.Login,$r.PublicApi,$r.ScheduledReports,$r.Notifications,$r.ScheduledDashboards,v0.Suspended+"",$r.JobBoards,$r.DataSync,$r.ProcessEngine,$r.Login,$r.PublicApi,$r.ScheduledReports,$r.Notifications,$r.ScheduledDashboards,v0.Deactivated+"",v0.Deleting+"",v0.Deleted+"";var DZ;(function(e){e.Live="Live",e.Demo="Demo",e.Trial="Trial",e.CustomerSandbox="CustomerSandbox",e.PartnerSandbox="PartnerSandbox",e.InternalTest="InternalTest"})(DZ||(DZ={}));var xZ;(function(e){e.all="ALL",e.allAnalytics="ALL_ANALYTICS",e.allDemo="ALL_DEMO",e.analyticsDemo="ANALYTICS_DEMO",e.fullProduct="FULL_PRODUCT",e.fullProductDemo="FULL_PRODUCT_DEMO",e.greenhouseAnalytics="GREENHOUSE_ANALYTICS",e.leverAnalytics="LEVER_ANALYTICS",e.none="NONE",e.workdayAnalytics="WORKDAY_ANALYTICS"})(xZ||(xZ={}));var O;(function(e){e.AddOnAdvancedSchedulingAutomation="AddOnAdvancedSchedulingAutomation",e.AdhocDebriefs="AdhocDebriefs",e.AdhocDebriefsAutoSchedule="AdhocDebriefsAutoSchedule",e.AdminConfidentialJobsAndProjects="AdminConfidentialJobsAndProjects",e.AdminShowImportSources="AdminShowImportSources",e.AdvancedScheduling="AdvancedScheduling",e.AgenciesCanUseChromeExtension="AgenciesCanUseChromeExtension",e.AgencyRecruiting="AgencyRecruiting",e.AiDebriefFeedbackSummary="AiDebriefFeedbackSummary",e.AiFeedbackSummaryInInterviewBriefing="AiFeedbackSummaryInInterviewBriefing",e.AiFeedbackSummaryOnCandidateProfile="AiFeedbackSummaryOnCandidateProfile",e.AiFilterConstructionGPT4="AiFilterConstructionGPT4",e.AiJobCriteraEvaluationLegalConfiguration="AiJobCriteraEvaluationLegalConfiguration",e.AiJobCriteriaApplicationFormAnswerSimilarity="AiJobCriteriaApplicationFormAnswerSimilarity",e.AiJobCriteriaApplicationFormQuestions="AiJobCriteriaApplicationFormQuestions",e.AiJobCriteriaEvaluation="AiJobCriteriaEvaluation",e.AiJobCriteriaEvaluationConsiderCredits="AiJobCriteriaEvaluationConsiderCredits",e.AiJobCriteriaEvaluationGPT4o="AiJobCriteriaEvaluationGPT4o",e.AiJobCriteriaSuggestions="AiJobCriteriaSuggestions",e.AiReportAssistant="AiReportAssistant",e.AllowCalendarSyncAndEmailForDemoOrganization="AllowCalendarSyncAndEmailForDemoOrganization",e.AllowDropBoxSignEditSigners="AllowDropBoxSignEditSigners",e.AllowFallbackToAuthorizedUserWhenSharedAliasIsDeactivated="AllowFallbackToAuthorizedUserWhenSharedAliasIsDeactivated",e.AllowNonDomainUsers="AllowNonDomainUsers",e.AllowSendingOrganizationEmailsViaSES="AllowSendingOrganizationEmailsViaSES",e.AllowSupportUserToBypassReportPIIError="AllowSupportUserToBypassReportPIIError",e.AnalyticsJobDashboard="AnalyticsJobDashboard",e.AnalyticsLicense="AnalyticsLicense",e.AnalyticsProspectFunnel="AnalyticsProspectFunnel",e.AnalyticsSyncCollectSyncedToAshbyMeta="AnalyticsSyncCollectSyncedToAshbyMeta",e.AnalyticsSyncRespectMetaDataDuringMapping="AnalyticsSyncRespectMetaDataDuringMapping",e.AnalyticsTalentWall="AnalyticsTalentWall",e.AnonymousCandidateExperience="AnonymousCandidateExperience",e.ApiApprovals="ApiApprovals",e.ApiSupportLocationField="ApiSupportLocationField",e.ApiUsersCanSeeAllPrivateReports="ApiUsersCanSeeAllPrivateReports",e.ApplicationBlockingRules="ApplicationBlockingRules",e.ApplicationHistoryDateRangeExperiment="ApplicationHistoryDateRangeExperiment",e.ArchivedApplicationFormFields="ArchivedApplicationFormFields",e.AshbyResumePlainTextConversion="AshbyResumePlainTextConversion",e.AshbyTable="AshbyTable",e.AshbyTableForTalentProjectProfileCandidates="AshbyTableForTalentProjectProfileCandidates",e.AssessmentsBulkAction="AssessmentsBulkAction",e.AsyncBulkApplicationReviewControls="AsyncBulkApplicationReviewControls",e.AsyncPipelineCounts="AsyncPipelineCounts",e.AuditLogCollect="AuditLogCollect",e.AuditLogObjectView="AuditLogObjectView",e.AutoPushCandidateToExternalMappingSystems="AutoPushCandidateToExternalMappingSystems",e.AutoRejectStrictSubstringEmailAddressesFromParsedResumes="AutoRejectStrictSubstringEmailAddressesFromParsedResumes",e.AutoScheduleStrategyIgnoreSoftConflicts="AutoScheduleStrategyIgnoreSoftConflicts",e.AutomatedGDPRConsentExtensionRequests="AutomatedGDPRConsentExtensionRequests",e.AutomaticActivitiesDelayedTask="AutomaticActivitiesDelayedTask",e.AutomaticActivityEmails="AutomaticActivityEmails",e.AutomaticActivityScheduleInterview="AutomaticActivityScheduleInterview",e.AutomaticActivityTakeHome="AutomaticActivityTakeHome",e.Beamery="Beamery",e.BeameryGDPR="BeameryGDPR",e.BeameryPools="BeameryPools",e.BeameryReadOnly="BeameryReadOnly",e.BeameryUseEUEnvironment="BeameryUseEUEnvironment",e.BeameryUseSandboxEnvironment="BeameryUseSandboxEnvironment",e.BlindingTakeHomeAssignments="BlindingTakeHomeAssignments",e.BulkCSVImportImportedIdVisible="BulkCSVImportImportedIdVisible",e.BulkCandidateImportEnrichment="BulkCandidateImportEnrichment",e.BypassDomainDelegation="BypassDomainDelegation",e.CalendarOAuthDefaultShowEventDetails="CalendarOAuthDefaultShowEventDetails",e.CanUpdateApplicationHistoryFromAPI="CanUpdateApplicationHistoryFromAPI",e.CandidateAvailability="CandidateAvailability",e.CandidateBulkDataConsentSurvey="CandidateBulkDataConsentSurvey",e.CandidateBulkEEOCSurvey="CandidateBulkEEOCSurvey",e.CandidateExperienceForAnalytics="CandidateExperienceForAnalytics",e.CandidateExperienceResponses="CandidateExperienceResponses",e.CandidateNotesReducedPermissions="CandidateNotesReducedPermissions",e.CandidateReview="CandidateReview",e.CandidateSearchOnReplica="CandidateSearchOnReplica",e.CandidateSearchWordSimilarity="CandidateSearchWordSimilarity",e.CandidateTexting="CandidateTexting",e.ChromeExtensionToggleCampaignTaskHeight="ChromeExtensionToggleCampaignTaskHeight",e.CombineSeeHiredCandidatesWithOriginalPolicyActionType="CombineSeeHiredCandidatesWithOriginalPolicyActionType",e.ConditionalInterviewActivities="ConditionalInterviewActivities",e.ConditionalOfferFormFields="ConditionalOfferFormFields",e.ConfidentialProjects="ConfidentialProjects",e.ConfidentialSequences="ConfidentialSequences",e.ConnectedOfferCustomFields="ConnectedOfferCustomFields",e.ConstrainLinkedinJobWrappingIds="ConstrainLinkedinJobWrappingIds",e.CopyConfiguredActivities="CopyConfiguredActivities",e.CoreCandidateTexting10DLC="CoreCandidateTexting10DLC",e.CoreCreateApplicationPermissionFix="CoreCreateApplicationPermissionFix",e.CoreGlobalApplicationQuestions="CoreGlobalApplicationQuestions",e.CoreGlobalAutoReject="CoreGlobalAutoReject",e.CoreMultipleBrands="CoreMultipleBrands",e.CoreMultipleBrandsDisableJobLinking="CoreMultipleBrandsDisableJobLinking",e.CorePreventMultipleBulkApplicationReviewInstances="CorePreventMultipleBulkApplicationReviewInstances",e.CoreReactBasedNotificationEmails="CoreReactBasedNotificationEmails",e.CountOverTimeAggregation="CountOverTimeAggregation",e.CountOverTimeFilterByDatePivot="CountOverTimeFilterByDatePivot",e.CreateOpeningPermission="CreateOpeningPermission",e.CurrencyFormattingInDocuments="CurrencyFormattingInDocuments",e.CustomConsentRichText="CustomConsentRichText",e.CustomFieldCustomizeSubstitutionTokenValue="CustomFieldCustomizeSubstitutionTokenValue",e.CustomFieldEntity="CustomFieldEntity",e.CustomFieldMultiValueSelectGroupSpreading="CustomFieldMultiValueSelectGroupSpreading",e.CustomNoReplyAddress="CustomNoReplyAddress",e.CustomSchedulingLocationWithGoogleMeet="CustomSchedulingLocationWithGoogleMeet",e.DailyDemoDataGeneration="DailyDemoDataGeneration",e.DataEnrichmentRefresh="DataEnrichmentRefresh",e.DataImportConfidentialJobOverride="DataImportConfidentialJobOverride",e.DatadogRumInExtension="DatadogRumInExtension",e.DefaultInsightsDashboards="DefaultInsightsDashboards",e.DefaultJobDashboard="DefaultJobDashboard",e.DefaultMyStuffSavedFilter="DefaultMyStuffSavedFilter",e.DeleteV1="DeleteV1",e.DimensionNot="DimensionNot",e.DirectScheduling="DirectScheduling",e.DisableBeamerySync="DisableBeamerySync",e.DisableCalculatedFieldOptimization="DisableCalculatedFieldOptimization",e.DisableDigestsForAllUsers="DisableDigestsForAllUsers",e.DisableDigestsForLimitedAccessUsers="DisableDigestsForLimitedAccessUsers",e.DisableEmailSendingWhileSaving="DisableEmailSendingWhileSaving",e.DisableGoogleCalendarACLSync="DisableGoogleCalendarACLSync",e.DisableGreenhouseOrgAdminPolicyEvaluation="DisableGreenhouseOrgAdminPolicyEvaluation",e.DisableGreenhouseUserActivation="DisableGreenhouseUserActivation",e.DisableNonUserS3DualStackEndpoint="DisableNonUserS3DualStackEndpoint",e.DisableRealTimeGmailSync="DisableRealTimeGmailSync",e.DisableSubscriptionPlanResolution="DisableSubscriptionPlanResolution",e.DisableUnauthenticatedJobPostingApi="DisableUnauthenticatedJobPostingApi",e.DocxLinebreaks="DocxLinebreaks",e.DraftNotes="DraftNotes",e.EditApplicationHistory="EditApplicationHistory",e.EeocCanBeRequired="EeocCanBeRequired",e.EmailCustomization="EmailCustomization",e.EmployeeAnniversary="EmployeeAnniversary",e.EmployeeAutoLinking="EmployeeAutoLinking",e.EmployeeFieldset="EmployeeFieldset",e.EnableApiAccessToPrivateFields="EnableApiAccessToPrivateFields",e.EnableDualSimilarityUniversalSearch="EnableDualSimilarityUniversalSearch",e.EnableGoogleCalendarOAuth="EnableGoogleCalendarOAuth",e.EnableGoogleOAuth="EnableGoogleOAuth",e.EnableRequireTeamOnOpeningToggle="EnableRequireTeamOnOpeningToggle",e.Enboarder="Enboarder",e.EventsModule="EventsModule",e.EventsModuleTimeslots="EventsModuleTimeslots",e.EventsModuleUpdatedConfirmationTemplateBehavior="EventsModuleUpdatedConfirmationTemplateBehavior",e.ExcludeAgencyUsersFromScimSync="ExcludeAgencyUsersFromScimSync",e.ExperimentalGoogleOAuthFeatures="ExperimentalGoogleOAuthFeatures",e.ExternalWorkflows="ExternalWorkflows",e.FeedbackNotRequestedInterviews="FeedbackNotRequestedInterviews",e.FlickerFixHackResumePDF="FlickerFixHackResumePDF",e.FollowUpNotes="FollowUpNotes",e.ForceEnableBeameryIntegrationGatedFeature="ForceEnableBeameryIntegrationGatedFeature",e.ForceEnableExternalWorkflowsIntegrations="ForceEnableExternalWorkflowsIntegrations",e.ForceEnableJobAndCandidateCustomFieldsGatedFeature="ForceEnableJobAndCandidateCustomFieldsGatedFeature",e.ForceEnableNewslettersModuleGatedFeature="ForceEnableNewslettersModuleGatedFeature",e.ForceEnableWorkdayIntegrationGatedFeature="ForceEnableWorkdayIntegrationGatedFeature",e.ForceEventsPrivate="ForceEventsPrivate",e.ForceShowSubscriptionSwitcherDemoOrgsOnly="ForceShowSubscriptionSwitcherDemoOrgsOnly",e.ForceTriggerReportAlert="ForceTriggerReportAlert",e.ForecastLines="ForecastLines",e.GemDataMigration="GemDataMigration",e.GemInlineDataFetching="GemInlineDataFetching",e.GemIntegration="GemIntegration",e.GemS3Integration="GemS3Integration",e.GoalLines="GoalLines",e.GranularAgencyPermissions="GranularAgencyPermissions",e.GreenhouseApplicationForms="GreenhouseApplicationForms",e.GreenhouseAttachments="GreenhouseAttachments",e.GreenhouseCandidateMaintenance="GreenhouseCandidateMaintenance",e.GreenhouseDemographicSurveys="GreenhouseDemographicSurveys",e.GreenhouseDisableActivityFeedSync="GreenhouseDisableActivityFeedSync",e.GreenhouseDisableCustomFieldSync="GreenhouseDisableCustomFieldSync",e.GreenhouseEmailTemplates="GreenhouseEmailTemplates",e.GreenhouseEmails="GreenhouseEmails",e.GreenhouseExposeGreenhouseOverallRecommendationField="GreenhouseExposeGreenhouseOverallRecommendationField",e.GreenhouseExtendedScorecardSelectableValues="GreenhouseExtendedScorecardSelectableValues",e.GreenhouseFullJobSync="GreenhouseFullJobSync",e.GreenhouseFurthestInterviewStageField="GreenhouseFurthestInterviewStageField",e.GreenhouseJobApprovalFlows="GreenhouseJobApprovalFlows",e.GreenhouseJobPosts="GreenhouseJobPosts",e.GreenhouseLinkedInInMail="GreenhouseLinkedInInMail",e.GreenhouseLocalSchedulableInterviews="GreenhouseLocalSchedulableInterviews",e.GreenhouseOpeningsMapping="GreenhouseOpeningsMapping",e.GreenhouseRefetchCandidatesOnJobChange="GreenhouseRefetchCandidatesOnJobChange",e.GreenhouseScorecardAttributes="GreenhouseScorecardAttributes",e.GreenhouseScorecardPostProcessing="GreenhouseScorecardPostProcessing",e.GreenhouseScorecardQuestions="GreenhouseScorecardQuestions",e.GreenhouseSkipObjectInvalidationStep="GreenhouseSkipObjectInvalidationStep",e.Gusto="Gusto",e.HideAutomaticActivityIconCandidatePipeline="HideAutomaticActivityIconCandidatePipeline",e.HideOtherFeedbackForInterviewersWithoutFeedback="HideOtherFeedbackForInterviewersWithoutFeedback",e.HidePolicyLinksInNonUser="HidePolicyLinksInNonUser",e.HideUnpublishedJobPostingJobsFromReferralAutocomplete="HideUnpublishedJobPostingJobsFromReferralAutocomplete",e.HiringManagerExperienceSurveys="HiringManagerExperienceSurveys",e.ImagesInApprovalNotes="ImagesInApprovalNotes",e.InterviewPanelJobTitleAndLinks="InterviewPanelJobTitleAndLinks",e.InterviewPanelSummaryCandidateTimezone="InterviewPanelSummaryCandidateTimezone",e.InterviewPlansLocalToJob="InterviewPlansLocalToJob",e.InterviewPlansV2TemporarilyDisableBuiltInStageValidation="InterviewPlansV2TemporarilyDisableBuiltInStageValidation",e.InterviewReportingCountToggle="InterviewReportingCountToggle",e.InterviewerPoolReportingFieldRefactor="InterviewerPoolReportingFieldRefactor",e.InterviewerTrainingPool="InterviewerTrainingPool",e.IroncladUseDemoUrl="IroncladUseDemoUrl",e.JobApprovals="JobApprovals",e.JobBoardEmbedV2="JobBoardEmbedV2",e.JobPostingApplicationDeadlines="JobPostingApplicationDeadlines",e.JobPostingLocation="JobPostingLocation",e.JobWizard="JobWizard",e.LeverAttachmentsImport="LeverAttachmentsImport",e.LeverConfidentialData="LeverConfidentialData",e.LeverDeletedOpportunities="LeverDeletedOpportunities",e.LeverDeletedTeamsAndJobs="LeverDeletedTeamsAndJobs",e.LeverDetailedFeedbackTemplateImport="LeverDetailedFeedbackTemplateImport",e.LeverEEOC="LeverEEOC",e.LeverImportRequisitionsAsOpenings="LeverImportRequisitionsAsOpenings",e.LeverJobPosts="LeverJobPosts",e.LeverMapGeneralOpportunities="LeverMapGeneralOpportunities",e.LeverNotesImport="LeverNotesImport",e.LeverProfileForms="LeverProfileForms",e.LeverSourceMappingByUsage="LeverSourceMappingByUsage",e.LeverSyncHeadlineToEmploymentHistory="LeverSyncHeadlineToEmploymentHistory",e.LeverSyncTagsAsCandidateTags="LeverSyncTagsAsCandidateTags",e.LeverSyncUpdatedAtHack="LeverSyncUpdatedAtHack",e.LinkedInHtmlTransform="LinkedInHtmlTransform",e.LinkedInRSCIntegration="LinkedInRSCIntegration",e.LogRecurringEventMaterializationDiscrepancies="LogRecurringEventMaterializationDiscrepancies",e.ManagementHierarchyField="ManagementHierarchyField",e.MaterializeCalculatedFieldResolversWithAggregations="MaterializeCalculatedFieldResolversWithAggregations",e.MaterializedConsiderationEndedAt="MaterializedConsiderationEndedAt",e.MentionTasksInReplies="MentionTasksInReplies",e.MergeSources="MergeSources",e.Microsoft365="Microsoft365",e.Microsoft365CalendarUpdateOnSync="Microsoft365CalendarUpdateOnSync",e.Microsoft365CustomApplication="Microsoft365CustomApplication",e.Microsoft365OutboxSync="Microsoft365OutboxSync",e.Microsoft365RoomSync="Microsoft365RoomSync",e.Microsoft365SharedCalendarOwnerSyncFix="Microsoft365SharedCalendarOwnerSyncFix",e.Microsoft365SharedCalendars="Microsoft365SharedCalendars",e.Microsoft365SyncOnPremisesSyncEnabledUsers="Microsoft365SyncOnPremisesSyncEnabledUsers",e.MobileHome="MobileHome",e.MostRecentSchoolFilter="MostRecentSchoolFilter",e.MultipleInterviewPlansPerJob="MultipleInterviewPlansPerJob",e.NamsorFirstNameLastNameInference="NamsorFirstNameLastNameInference",e.NamsorGenderInference="NamsorGenderInference",e.NamsorRaceEthnicityInference="NamsorRaceEthnicityInference",e.NavFullPageReloadNewAppVersion="NavFullPageReloadNewAppVersion",e.NewEsignatureSignerMatching="NewEsignatureSignerMatching",e.NewGoogleApiAuthorizationFlow="NewGoogleApiAuthorizationFlow",e.NewInterviewBriefing="NewInterviewBriefing",e.NewJobsOpeningsRequisitionsDrilldowns="NewJobsOpeningsRequisitionsDrilldowns",e.NewReportBuilderPage="NewReportBuilderPage",e.NewReportHookOnly="NewReportHookOnly",e.NewReportTable="NewReportTable",e.NewScheduleDraftWhenTemplateChanges="NewScheduleDraftWhenTemplateChanges",e.NewSchedulingActivityDesign="NewSchedulingActivityDesign",e.NewSchedulingCommunicationsStepDesign="NewSchedulingCommunicationsStepDesign",e.NewSearchDesign="NewSearchDesign",e.NewSourcingFormSubmissionsTable="NewSourcingFormSubmissionsTable",e.NewVisibilityPolicyForHiredCandidates="NewVisibilityPolicyForHiredCandidates",e.NewslettersModuleDisableSending="NewslettersModuleDisableSending",e.NewslettersModuleSimulateSending="NewslettersModuleSimulateSending",e.NonOfferEsignatures="NonOfferEsignatures",e.ObfuscateWhenGroupingByDEIFields="ObfuscateWhenGroupingByDEIFields",e.OfferApprovalNotificationsUseApprovalContext="OfferApprovalNotificationsUseApprovalContext",e.OfferApprovalNotificationsWithFeedback="OfferApprovalNotificationsWithFeedback",e.OfferEsignatureEid="OfferEsignatureEid",e.OfferEsignatureZipProcessing="OfferEsignatureZipProcessing",e.OfferInAppDynamicApprovals="OfferInAppDynamicApprovals",e.OfferLetterDirectUpload="OfferLetterDirectUpload",e.OfferMultiDocEsignature="OfferMultiDocEsignature",e.OfferVersionAnalyticsEnableOffer="OfferVersionAnalyticsEnableOffer",e.OfferVersionAnalyticsV0="OfferVersionAnalyticsV0",e.OnboardWithCommandBarHelpHub="OnboardWithCommandBarHelpHub",e.Onboarding="Onboarding",e.OneInterviewPlanPerJob="OneInterviewPlanPerJob",e.OpeningApprovals="OpeningApprovals",e.OpeningPrivateCustomFields="OpeningPrivateCustomFields",e.OptimizeAsyncReportDimension="OptimizeAsyncReportDimension",e.OptimizeCandidateSearchDimension="OptimizeCandidateSearchDimension",e.OptimizeOrQueryResolverMerge="OptimizeOrQueryResolverMerge",e.OptimizeQueryDSLComposerWhereInExists="OptimizeQueryDSLComposerWhereInExists",e.OptimizeQueryDSLComposerWhereInSubqueryConditionsToParent="OptimizeQueryDSLComposerWhereInSubqueryConditionsToParent",e.OptimizeSqlForStageInterviews="OptimizeSqlForStageInterviews",e.OptimizeSqlWithCalculatedFields="OptimizeSqlWithCalculatedFields",e.OptionalTraineeInterviewerSlotsForDirectBooking="OptionalTraineeInterviewerSlotsForDirectBooking",e.OrganizationSettingEnforceJobCreationThroughTemplateEnabled="OrganizationSettingEnforceJobCreationThroughTemplateEnabled",e.PaginatedReports="PaginatedReports",e.PausingInterviewerTraining="PausingInterviewerTraining",e.Paychex="Paychex",e.PeopleDataLabsExperience="PeopleDataLabsExperience",e.PeopleOpsEsignature="PeopleOpsEsignature",e.PermissionStripeAccessLeads="PermissionStripeAccessLeads",e.PermissionsAutomationForGlobalRole="PermissionsAutomationForGlobalRole",e.PermissionsAutomationForHiringTeam="PermissionsAutomationForHiringTeam",e.PipelineReportByStageGroup="PipelineReportByStageGroup",e.PipelineReportMoreStages="PipelineReportMoreStages",e.PolicyUsersCanSeeApplicationsForWhichTheyAreApproversEnabled="PolicyUsersCanSeeApplicationsForWhichTheyAreApproversEnabled",e.PollingBackoff="PollingBackoff",e.PostHireSurveys="PostHireSurveys",e.ProspectJobFields="ProspectJobFields",e.QueryDSLScopeTestingEnabled="QueryDSLScopeTestingEnabled",e.QueryDSLUseWhereInForGenerateSelectSql="QueryDSLUseWhereInForGenerateSelectSql",e.ReaderReplicaEnabled="ReaderReplicaEnabled",e.ReferralFormReporting="ReferralFormReporting",e.RenderCurrencyWithTwoDecimals="RenderCurrencyWithTwoDecimals",e.ReportingSubjectCandidateExperienceSurvey="ReportingSubjectCandidateExperienceSurvey",e.ReportsFromS3="ReportsFromS3",e.RequiredJobOpeningFields="RequiredJobOpeningFields",e.RequiredPlaceholdersInEmailSubject="RequiredPlaceholdersInEmailSubject",e.RequiredPlaceholdersIndicator="RequiredPlaceholdersIndicator",e.RescheduleInterviewsWithoutNotifications="RescheduleInterviewsWithoutNotifications",e.RestrictedApplicationsSummary="RestrictedApplicationsSummary",e.ResumePlainTextPreprocessForSearchIndex="ResumePlainTextPreprocessForSearchIndex",e.RichTextOptimizations="RichTextOptimizations",e.RipplingOfferLetters="RipplingOfferLetters",e.SavedFilters="SavedFilters",e.ScheduleSlackChannels="ScheduleSlackChannels",e.ScheduledDashboards="ScheduledDashboards",e.ScheduledDashboardsRestrictedDelivery="ScheduledDashboardsRestrictedDelivery",e.SchedulingAllowCandidateInviteRichText="SchedulingAllowCandidateInviteRichText",e.SchedulingAutoReplaceDeclinedInterviewerSelectionExcludeAllDeclined="SchedulingAutoReplaceDeclinedInterviewerSelectionExcludeAllDeclined",e.SchedulingAutoScheduleViaSQS="SchedulingAutoScheduleViaSQS",e.SchedulingAutoZoomHost="SchedulingAutoZoomHost",e.SchedulingBulkActionResolveIndividualTaskOnly="SchedulingBulkActionResolveIndividualTaskOnly",e.SchedulingCalendarEventGarbageCollection="SchedulingCalendarEventGarbageCollection",e.SchedulingDefaultInterviewerLimits="SchedulingDefaultInterviewerLimits",e.SchedulingDefaultToUserTimeZoneManualSchedule="SchedulingDefaultToUserTimeZoneManualSchedule",e.SchedulingEnableRescheduleTypes="SchedulingEnableRescheduleTypes",e.SchedulingFullCalendarSoftResync="SchedulingFullCalendarSoftResync",e.SchedulingHideFullDayFreeEvents="SchedulingHideFullDayFreeEvents",e.SchedulingIncludeRecruitingCoordinatorInSchedulingNotifications="SchedulingIncludeRecruitingCoordinatorInSchedulingNotifications",e.SchedulingInterviewLimitsCountAllInterviews="SchedulingInterviewLimitsCountAllInterviews",e.SchedulingInterviewScheduleReporting="SchedulingInterviewScheduleReporting",e.SchedulingInterviewScheduleSummaryReporting="SchedulingInterviewScheduleSummaryReporting",e.SchedulingInterviewScheduleVersionReporting="SchedulingInterviewScheduleVersionReporting",e.SchedulingInterviewerPoolNotificationSettings="SchedulingInterviewerPoolNotificationSettings",e.SchedulingInterviewerRSVPReporting="SchedulingInterviewerRSVPReporting",e.SchedulingMeetingRoomPoolsForManualScheduling="SchedulingMeetingRoomPoolsForManualScheduling",e.SchedulingMultiDayAutoScheduling="SchedulingMultiDayAutoScheduling",e.SchedulingNewAutoScheduleAlternates="SchedulingNewAutoScheduleAlternates",e.SchedulingNewDraftScheduleAlternates="SchedulingNewDraftScheduleAlternates",e.SchedulingScaledUpConstraintSolverMultipliers="SchedulingScaledUpConstraintSolverMultipliers",e.SchedulingSecondaryUserCalendars="SchedulingSecondaryUserCalendars",e.SchedulingSkipDeclineNotificationForPastEvents="SchedulingSkipDeclineNotificationForPastEvents",e.SchedulingTokensInterviewerFirstNameOnly="SchedulingTokensInterviewerFirstNameOnly",e.SchedulingTwoWaySyncSchedulingCalendarRestriction="SchedulingTwoWaySyncSchedulingCalendarRestriction",e.SchedulingUseSyncedZoomUsers="SchedulingUseSyncedZoomUsers",e.SchedulingZoomAlternativeHosts="SchedulingZoomAlternativeHosts",e.SchedulingZoomConcurrencyLimitCheck="SchedulingZoomConcurrencyLimitCheck",e.SchedulingZoomUserSync="SchedulingZoomUserSync",e.ScimJobTitleAndUserNameSync="ScimJobTitleAndUserNameSync",e.SeatManagementDashboard="SeatManagementDashboard",e.SetInterviewPlansFromJobTemplates="SetInterviewPlansFromJobTemplates",e.ShareableFilterUrls="ShareableFilterUrls",e.SharedEmailAliases="SharedEmailAliases",e.ShowCustomFieldsInChromeExtension="ShowCustomFieldsInChromeExtension",e.ShowLeverTimeToFill="ShowLeverTimeToFill",e.ShowOverdueInvoiceDelinquencyBanner="ShowOverdueInvoiceDelinquencyBanner",e.ShowWorkdayCustomFieldsOnAllJobs="ShowWorkdayCustomFieldsOnAllJobs",e.StageFunnelEmptyStages="StageFunnelEmptyStages",e.StageNameField="StageNameField",e.StoryblokWhatsNewBadge="StoryblokWhatsNewBadge",e.SubstituteInTokenSubstitutionMap="SubstituteInTokenSubstitutionMap",e.SubstitutionGroupInline="SubstitutionGroupInline",e.SurveyAutomationWrapCommonPrefixFiltersIntoSubQuery="SurveyAutomationWrapCommonPrefixFiltersIntoSubQuery",e.SwitchInterviewPlanBulkAction="SwitchInterviewPlanBulkAction",e.SyncAllDomainUserCalendars="SyncAllDomainUserCalendars",e.SyncWorkdayHRISPositionsWithoutJobs="SyncWorkdayHRISPositionsWithoutJobs",e.TakeHomeBlindingOnlyBlindTakeHomeInterviews="TakeHomeBlindingOnlyBlindTakeHomeInterviews",e.TakeHomeSelfSubmission="TakeHomeSelfSubmission",e.TalentProjectSubject="TalentProjectSubject",e.TestOptimizedSql="TestOptimizedSql",e.TimeInProcessWithoutInstantStages="TimeInProcessWithoutInstantStages",e.UnsubscribeLinks="UnsubscribeLinks",e.UpcomingFeaturesPage="UpcomingFeaturesPage",e.UseApplicationDateForComplianceRuleEvaluation="UseApplicationDateForComplianceRuleEvaluation",e.UseBareOfferApprovalRequestEmail="UseBareOfferApprovalRequestEmail",e.UseConsiderationEndedAtColumnInQueryDSL="UseConsiderationEndedAtColumnInQueryDSL",e.UseConsistentChartColors="UseConsistentChartColors",e.UseConsistentOAuthUserForGoogleCalendarAccess="UseConsistentOAuthUserForGoogleCalendarAccess",e.UseFurthestStageColumnInFurthestStageGroupReached="UseFurthestStageColumnInFurthestStageGroupReached",e.UseFurthestStageColumnInFurthestStageNameReached="UseFurthestStageColumnInFurthestStageNameReached",e.UseFurthestStageColumnInReachedStageGroup="UseFurthestStageColumnInReachedStageGroup",e.UseFurthestStageColumnInReachedStageType="UseFurthestStageColumnInReachedStageType",e.UseHeadcountsByJobCte="UseHeadcountsByJobCte",e.UseNewDataEnrichmentLimitConfiguration="UseNewDataEnrichmentLimitConfiguration",e.UseNewInterviewPlanEditingStrategy="UseNewInterviewPlanEditingStrategy",e.UseNewRecurringEventMaterializer="UseNewRecurringEventMaterializer",e.UsePDLInsteadOfScraping="UsePDLInsteadOfScraping",e.UsePDLInsteadOfScrapingOnGitHub="UsePDLInsteadOfScrapingOnGitHub",e.UserIdentificationUsingExternalId="UserIdentificationUsingExternalId",e.VirusScanFiles="VirusScanFiles",e.VirusScanShowResults="VirusScanShowResults",e.VisualizationsColorCustomization="VisualizationsColorCustomization",e.WelcomeToTheJungle="WelcomeToTheJungle",e.WorkdayAIODemoOrg="WorkdayAIODemoOrg",e.WorkdayHRISAutoApproveBusinessSubProcess="WorkdayHRISAutoApproveBusinessSubProcess",e.WorkdayHRISConfigurationPhase="WorkdayHRISConfigurationPhase",e.WorkdayHRISConsiderAvailableForHire="WorkdayHRISConsiderAvailableForHire",e.WorkdayHRISConsiderAvailableForOverlap="WorkdayHRISConsiderAvailableForOverlap",e.WorkdayHRISDefaultPositionTitleFromOpeningDescription="WorkdayHRISDefaultPositionTitleFromOpeningDescription",e.WorkdayHRISDisableTitleBasedLinking="WorkdayHRISDisableTitleBasedLinking",e.WorkdayHRISEmptyOfferAttachmentData="WorkdayHRISEmptyOfferAttachmentData",e.WorkdayHRISEmptyPrimaryCompensationBasis="WorkdayHRISEmptyPrimaryCompensationBasis",e.WorkdayHRISFTEOnly="WorkdayHRISFTEOnly",e.WorkdayHRISGroupedFields="WorkdayHRISGroupedFields",e.WorkdayHRISJobsAsPositions="WorkdayHRISJobsAsPositions",e.WorkdayHRISLinkExistingData="WorkdayHRISLinkExistingData",e.WorkdayHRISLookupPreHireID="WorkdayHRISLookupPreHireID",e.WorkdayHRISMapCostCentersToTeams="WorkdayHRISMapCostCentersToTeams",e.WorkdayHRISMapJobRoles="WorkdayHRISMapJobRoles",e.WorkdayHRISMapLocations="WorkdayHRISMapLocations",e.WorkdayHRISMapSources="WorkdayHRISMapSources",e.WorkdayHRISOfferBusinessProcessSelection="WorkdayHRISOfferBusinessProcessSelection",e.WorkdayHRISOfferCustomOrgFields="WorkdayHRISOfferCustomOrgFields",e.WorkdayHRISOnlySendPrimaryEmailAsHomeEmail="WorkdayHRISOnlySendPrimaryEmailAsHomeEmail",e.WorkdayHRISOpeningsDefaultOpen="WorkdayHRISOpeningsDefaultOpen",e.WorkdayHRISPutApplicant="WorkdayHRISPutApplicant",e.WorkdayHRISSkipSendingContingentWorkerComp="WorkdayHRISSkipSendingContingentWorkerComp",e.WorkdayHRISSkipSendingPhoneNumber="WorkdayHRISSkipSendingPhoneNumber",e.WorkdayHRISSkipSendingSocialLinks="WorkdayHRISSkipSendingSocialLinks",e.WorkdayHRISSnowflakeBusinessUnitMapping="WorkdayHRISSnowflakeBusinessUnitMapping",e.WorkdaySOAPOAuth="WorkdaySOAPOAuth",e.ZoomCloudRecordingLink="ZoomCloudRecordingLink",e.ZoomDevelopmentEnvironment="ZoomDevelopmentEnvironment"})(O||(O={}));var K5;(function(e){e.OnlyDemoOrgs="Only Demo Orgs"})(K5||(K5={}));const che={[O.AddOnAdvancedSchedulingAutomation]:{description:"Enables scheduling features that are restricted to the Advanced Scheduling Automation paid add on",allowInNonUser:!1,author:"Kaitlyn Crawley"},[O.AdhocDebriefs]:{allowInNonUser:!1,description:"Enables adhoc debrief interview schedules",author:"David Feinerman"},[O.AdhocDebriefsAutoSchedule]:{allowInNonUser:!1,description:"Enables auto-schedule in adhoc debrief interview schedules",author:"Tom Quist"},[O.AdminConfidentialJobsAndProjects]:{allowInNonUser:!1,description:"Enables managing of confidential jobs and projects for org admins",author:"Dom Crayford"},[O.AdminShowImportSources]:{allowInNonUser:!1,description:"Enables showing the import sources of Locations, Teams, Sources in Admin. Useful when merging these entities",author:"Arjun Nayini"},[O.AdvancedScheduling]:{description:"",allowInNonUser:!1,author:"Abhik Pramanik"},[O.AgenciesCanUseChromeExtension]:{allowInNonUser:!1,description:"Allow the organization's agencies to use the Chrome Extension, with sequences features disabled.",author:"Nicholas Chong"},[O.AgencyRecruiting]:{allowInNonUser:!1,description:"For this organization, add agency recruiting capabilities and roles",author:"Joel Reske"},[O.AiDebriefFeedbackSummary]:{allowInNonUser:!1,description:"Enable AI based interview feedback summary in debriefs.",author:"Tom Quist"},[O.AiFeedbackSummaryInInterviewBriefing]:{allowInNonUser:!1,description:"Enable AI based feedback summary in non-debrief interview briefings.",author:"Tom Quist"},[O.AiFeedbackSummaryOnCandidateProfile]:{allowInNonUser:!1,description:"Enable AI based feedback summary on candidate profile.",author:"Tom Quist"},[O.AiFilterConstructionGPT4]:{allowInNonUser:!1,description:"Use gpt-4 for ChatGPT based AI Filter Construction in Candidate List.",author:"Tom Quist"},[O.AiJobCriteraEvaluationLegalConfiguration]:{allowInNonUser:!0,description:"Enable legal configuration for AI job criteria evaluation in the Data Privacy Section.",author:"Joel Reske"},[O.AiJobCriteriaApplicationFormAnswerSimilarity]:{allowInNonUser:!1,description:"Enable AI based job criteria evaluation for similarity of application form answers to AI-generated answers.",author:"Tom Quist"},[O.AiJobCriteriaApplicationFormQuestions]:{allowInNonUser:!1,description:"Enable AI based job criteria evaluation for application form questions.",author:"Tom Quist"},[O.AiJobCriteriaEvaluation]:{allowInNonUser:!1,description:"Enable AI based job criteria evaluation.",author:"Tom Quist"},[O.AiJobCriteriaEvaluationConsiderCredits]:{allowInNonUser:!1,description:"Skip evaluation if the organization does not have enough credits.",author:"Joel Reske"},[O.AiJobCriteriaEvaluationGPT4o]:{allowInNonUser:!1,description:"Use gpt-4o for ChatGPT based AI Job Criteria Evaluation. If disabled, claude-3-haiku will be used.",author:"Tom Quist"},[O.AiJobCriteriaSuggestions]:{allowInNonUser:!1,description:"Enable suggestions for job criteria based on the job description.",author:"Tom Quist"},[O.AiReportAssistant]:{allowInNonUser:!1,description:"Enable AI based report assistant. May also be gated behind design preview.",author:"Joel Reske"},[O.AllowCalendarSyncAndEmailForDemoOrganization]:{allowInNonUser:!1,description:"Allows demo organizations to schedule calendar events and perform email operations (e.g campaigns)",author:"Filipe Dobreira"},[O.AllowDropBoxSignEditSigners]:{allowInNonUser:!1,description:"Set allow_edit_signers to true when creating DropBox Sign unclaimed drafts.",author:"Ben Asher"},[O.AllowFallbackToAuthorizedUserWhenSharedAliasIsDeactivated]:{allowInNonUser:!1,description:"Fallback to sending emails from the authorized user when the shared alias is deactivated.",author:"Oliver Hickman"},[O.AllowNonDomainUsers]:{allowInNonUser:!1,description:"Allow this org to add users with emails that have different domains from the org itself.",author:"Aaron Norby"},[O.AllowSendingOrganizationEmailsViaSES]:{allowInNonUser:!1,description:"Allow organizations to send emails via SES. If an organization configures a custom domain through the Newsletters feature, this flag allows them to send emails via SES using that domain outside of the Newsletters feature.",author:"Max Rodewald"},[O.AllowSupportUserToBypassReportPIIError]:{allowInNonUser:!1,description:"Bypasses the PII report error when generating reports from the support user.",author:"Dion Larson"},[O.AnalyticsJobDashboard]:{allowInNonUser:!1,description:"Enable the Jobs dashboard for analytics orgs. Has no effect on non-analytics orgs.",author:"Emily Ellis"},[O.AnalyticsLicense]:{allowInNonUser:!1,description:"",author:"Arjun Nayini"},[O.AnalyticsProspectFunnel]:{allowInNonUser:!1,description:"",author:"Andrew Brown"},[O.AnalyticsSyncCollectSyncedToAshbyMeta]:{allowInNonUser:!1,description:"This flag enables an analytics org to collect SyncedToAsbhyMetaData, even if it is not migrating from another ATS.",author:"Marcus Eisele"},[O.AnalyticsSyncRespectMetaDataDuringMapping]:{allowInNonUser:!1,description:"This flag enables the analyticsSync of the org to utilize the SyncedToAshbyMetaData in order to skip already modified entries during the mapping phase",author:"Marcus Eisele"},[O.AnalyticsTalentWall]:{allowInNonUser:!1,description:"",author:"Andrew Brown"},[O.AnonymousCandidateExperience]:{allowInNonUser:!0,description:"Allows users to configure whether a candidate experience survey can be submitted anonymously",author:"Arjun Nayini"},[O.ApiApprovals]:{allowInNonUser:!1,description:"Enables API-driven approals.",author:"Ben Asher"},[O.ApiSupportLocationField]:{allowInNonUser:!1,description:"Experimental support for the location field in the API. This feature is not yet fully supported and your mileage may vary.",author:"Oliver Hickman"},[O.ApiUsersCanSeeAllPrivateReports]:{allowInNonUser:!1,description:"Allows all API keys to access any private report. This temporary workaround is meant to be used until API keys with permissions are completed.",author:"Dion Larson"},[O.ApplicationBlockingRules]:{allowInNonUser:!1,description:"ApplicationBlockingRules will let users view the UI to create and manage application blocking rules, and will gate any backend code that blocks applications when submitting.",author:"David Feinerman"},[O.ApplicationHistoryDateRangeExperiment]:{allowInNonUser:!1,description:"Attempt to use new index for querying application history by date-intersection",author:"Emily Ellis"},[O.ArchivedApplicationFormFields]:{allowInNonUser:!1,description:"Enables archived application form fields",author:"Oscar Olarte"},[O.AshbyResumePlainTextConversion]:{allowInNonUser:!1,description:"Use Ashby's own resume plain text conversion service.",author:"Tom Quist"},[O.AshbyTable]:{allowInNonUser:!1,description:"Enables access to the Ashby Table feature in Design Preview dialog.",author:"Moody (Emad Abdulrahim)"},[O.AshbyTableForTalentProjectProfileCandidates]:{allowInNonUser:!1,description:"Enables AshbyTable component for TalentProjectProfileCandidates",author:"James Hsi"},[O.AssessmentsBulkAction]:{allowInNonUser:!1,description:"Let's users create and/or start assessments in bulk",author:"David Feinerman"},[O.AsyncBulkApplicationReviewControls]:{allowInNonUser:!1,description:"Asynchronously advance or reject candidates in bulk application review",author:"Tom Quist"},[O.AsyncPipelineCounts]:{allowInNonUser:!1,description:"Calculate pipeline application counts asynchronously using a report",author:"Tom Quist"},[O.AuditLogCollect]:{allowInNonUser:!1,description:"Enable auditing for the customer facing audit log for the organization",author:"Dom Crayford"},[O.AuditLogObjectView]:{allowInNonUser:!1,description:"Show the audit log in the object views as a history tab",author:"Dom Crayford"},[O.AutoPushCandidateToExternalMappingSystems]:{allowInNonUser:!1,description:"This feature flag will let users enable a setting to automatically push candidates to external mapping systems when they are hired.",author:"Anastasia Zloteanu"},[O.AutoRejectStrictSubstringEmailAddressesFromParsedResumes]:{allowInNonUser:!1,description:"When this flag is ON, we reject (skip) email addresses that are strict substrings of existing email addresses when adding the resume to the candidate. When the flag is OFF we only log that we found one of these email addresses.",author:"Florian Krüger"},[O.AutoScheduleStrategyIgnoreSoftConflicts]:{allowInNonUser:!1,description:"When this flag is enabled, auto-scheduling will include a strategy that ignores soft conflicts.",author:"Tom Quist"},[O.AutomatedGDPRConsentExtensionRequests]:{allowInNonUser:!1,description:"Enables automated consent extension request settings in the product",author:"Max Rodewald"},[O.AutomaticActivitiesDelayedTask]:{allowInNonUser:!1,description:"Enables the use of delayed tasks when automating activities",author:"David Feinerman"},[O.AutomaticActivityEmails]:{allowInNonUser:!1,description:"Enables the ability to send emails as part of an automatic activity",author:"David Feinerman"},[O.AutomaticActivityScheduleInterview]:{allowInNonUser:!1,description:"Enables the ability to automatically send candidate availability requests or direct booking links",author:"David Feinerman"},[O.AutomaticActivityTakeHome]:{allowInNonUser:!1,description:"Enables the ability to automatically send take-home assignments",author:"Florian Krüger"},[O.Beamery]:{allowInNonUser:!1,description:"Enables the Beamery integration.",author:"Max Rodewald"},[O.BeameryGDPR]:{allowInNonUser:!1,description:"Enables mapping Beamery GDPR fields to Ashby custom fields.",author:"Oliver Hickman"},[O.BeameryPools]:{allowInNonUser:!1,description:"When enabled, Beamery will sync pools.",author:"Oliver Hickman"},[O.BeameryReadOnly]:{allowInNonUser:!1,description:"Prevents the Beamery integration from pushing updates to the connected Beamery account. Instead of pushing updates, request urls and payloads are logged. Updates made in Beamery are still applied to Ashby when the flag is enabled.",author:"Max Rodewald"},[O.BeameryUseEUEnvironment]:{allowInNonUser:!1,description:"When enabled, uses the EU base url for the Beamery integration.",author:"Oliver Hickman"},[O.BeameryUseSandboxEnvironment]:{allowInNonUser:!1,description:"When enabled, uses the Demo/Sandbox base url for the Beamery integration. The sandbox env is used by default in non-production environments.",author:"Max Rodewald"},[O.BlindingTakeHomeAssignments]:{allowInNonUser:!1,description:"Allow enablement of blinding take-home assignments.",author:"Joel Reske"},[O.BulkCSVImportImportedIdVisible]:{allowInNonUser:!1,description:"Exposes the Imported Id field as a target in Bulk CSV Importer",author:"Florian Krüger"},[O.BulkCandidateImportEnrichment]:{allowInNonUser:!1,description:"Enables enrichment during bulk candidate import.",author:"Morten A. Bentsen"},[O.BypassDomainDelegation]:{allowInNonUser:!1,description:"Allow users to bypass domain delegation in the new auth flow. This should be used for testing only!",author:"Oliver Hickman"},[O.CalendarOAuthDefaultShowEventDetails]:{allowInNonUser:!1,description:"Makes calendar event details by default for OAuth users who have not specifically granted calendar access to Ashby",author:"Ronald Martin"},[O.CanUpdateApplicationHistoryFromAPI]:{allowInNonUser:!1,description:"Reveals the permission setting that allows users to update application history via the API.",author:"Oliver Hickman"},[O.CandidateAvailability]:{allowInNonUser:!1,description:"",author:"Ronald Martin"},[O.CandidateBulkDataConsentSurvey]:{allowInNonUser:!1,description:"Adds the bulk action 'send candidate data consent request' on candidate pipeline and candidate search",author:"Siebe Jan Stoker"},[O.CandidateBulkEEOCSurvey]:{allowInNonUser:!1,description:"Adds the bulk action 'send candidate EEOC survey request' on candidate pipeline",author:"Siebe Jan Stoker"},[O.CandidateExperienceForAnalytics]:{allowInNonUser:!1,description:"Allows Analytics Customers to create and manage Candidate Experience Surveys like an AIO customer (Experimental, Currently Greenhouse Only)",author:"Arjun Nayini"},[O.CandidateExperienceResponses]:{allowInNonUser:!1,description:"Allows users to view a Candidate Experience Response view to see all candidate experience surveys in one view.",author:"Arjun Nayini"},[O.CandidateNotesReducedPermissions]:{allowInNonUser:!1,description:"Candidate notes only require the user to see the candidate, not edit them.",author:"Dom Crayford"},[O.CandidateReview]:{allowInNonUser:!1,description:"Enables access to the candidate review feature.",author:"Ed Wellbrook"},[O.CandidateSearchOnReplica]:{allowInNonUser:!1,description:"Run candidate search queries on the reports replica. Recommended only for Analytics Only orgs",author:"Aaron Norby"},[O.CandidateSearchWordSimilarity]:{allowInNonUser:!1,description:"Uses word similarity when searching candidates by name",author:"Ben Asher"},[O.CandidateTexting]:{allowInNonUser:!1,description:"Enables sending sms to candidates and receiving replies",author:"Florian Krüger"},[O.ChromeExtensionToggleCampaignTaskHeight]:{description:"Adds ability to toggle the height of the campaign task frame by minimizing the template section.",allowInNonUser:!1,author:"Graham Murdoch"},[O.CombineSeeHiredCandidatesWithOriginalPolicyActionType]:{allowInNonUser:!1,description:"Combines the 'See Hired Candidates' permission with the originally requested policy action type",author:"Tom Quist"},[O.ConditionalInterviewActivities]:{allowInNonUser:!1,description:"When enabled, conditions can be added to interview activities to determine if they should be created.",author:"Nick Williams"},[O.ConditionalOfferFormFields]:{allowInNonUser:!1,description:"When enabled, new custom offer fields allow to specify conditions based on other offer fields.",author:"Tom Quist"},[O.ConfidentialProjects]:{allowInNonUser:!1,description:"Allow users to make sourcing projects confidential and choose who have access to them.",author:"Mantas Astra"},[O.ConfidentialSequences]:{allowInNonUser:!1,description:"Allow users to make sourcing sequences confidential.",author:"Mantas Astra"},[O.ConnectedOfferCustomFields]:{allowInNonUser:!1,description:"Enables the connected custom field feature for offers",author:"Ben Asher"},[O.ConstrainLinkedinJobWrappingIds]:{allowInNonUser:!1,description:"Constrain LinkedIn job wrapping IDs to 40 characters.",author:"Oliver Hickman"},[O.CopyConfiguredActivities]:{allowInNonUser:!1,description:"Enable copy configured activities when copying an interview plan",author:"Oliver Hickman"},[O.CoreCandidateTexting10DLC]:{allowInNonUser:!1,description:"Enable 10DLC self-serve onboarding for candidate texting",author:"Florian Krüger"},[O.CoreCreateApplicationPermissionFix]:{allowInNonUser:!1,description:"Attempted fix for https://github.com/ashbyhq/Ashby/issues/53272",author:"Ronald Martin"},[O.CoreGlobalApplicationQuestions]:{allowInNonUser:!1,description:"Enable application form questions that can appear on all job postings.",author:"Ronald Martin"},[O.CoreGlobalAutoReject]:{allowInNonUser:!1,description:"Enable auto-reject configurations that can appear on all job postings.",author:"Ronald Martin"},[O.CoreMultipleBrands]:{description:"Allows multiple brands within a single organization. Each can have distinct job pages and themes. One brand is specified per job",allowInNonUser:!0,author:"Christy O'Reilly"},[O.CoreMultipleBrandsDisableJobLinking]:{allowInNonUser:!1,description:"Blocks altering jobs' linked brands within the Job Admin UI. This can be used to enforce a pre-launch state for customers while we configure brands.",author:"Christy O'Reilly"},[O.CorePreventMultipleBulkApplicationReviewInstances]:{allowInNonUser:!1,description:"Instead of opening multiple Bulk-Application-Review pages when opening a candidate profile from Bulk-Application-Review through right-click -> new tab, this now opens the candidate profile on top of the homepage",author:"Florian Krüger"},[O.CoreReactBasedNotificationEmails]:{allowInNonUser:!1,description:"Support React-based notification email content, where available.",author:"Ronald Martin"},[O.CountOverTimeAggregation]:{allowInNonUser:!1,description:"Allows users to aggregate over numeric fields in Count over Time Reports",author:"Arjun Nayini"},[O.CountOverTimeFilterByDatePivot]:{allowInNonUser:!1,description:"Filters a Count over Time Report by the selected date pivot field if possible, BEFORE fetching grouping data. Enable this to improve CoT report performance.",author:"Tom Quist"},[O.CreateOpeningPermission]:{description:"Enables the createOpening user admin permission to allow creation and viewing of jobless openings.",allowInNonUser:!1,author:"Dom Crayford"},[O.CurrencyFormattingInDocuments]:{allowInNonUser:!1,description:"Enables the setting to change between currency symbol and country code when rendering currencies on offer letters and esig documents.",author:"Dom Crayford"},[O.CustomConsentRichText]:{allowInNonUser:!1,description:"If enabled, gives a UI to provide custom rich text that will appear instead of the default text on the consent request form",author:"Arjun Nayini"},[O.CustomFieldCustomizeSubstitutionTokenValue]:{allowInNonUser:!1,description:"If enabled, gives a UI for users to customize the substitution token value for a custom field. Only works for offer custom fields of type value select.",author:"Siebe Jan Stoker"},[O.CustomFieldEntity]:{allowInNonUser:!1,description:"Allows custom fields referencing ObjectTypes to be created in the custom field admin",author:"Dom Crayford"},[O.CustomFieldMultiValueSelectGroupSpreading]:{allowInNonUser:!1,description:"If enabled allows to toggle a MultiValueSelect field to behave differently in aggregation reports (e.g. CoT/Segmentation) to construct one group per selected value instead of a single group containing the concatenated selected values",author:"Tom Quist"},[O.CustomNoReplyAddress]:{allowInNonUser:!1,description:"Allow org to specify a custom no-reply address sent by Gmail",author:"Emma Cushman"},[O.CustomSchedulingLocationWithGoogleMeet]:{allowInNonUser:!1,description:"Allows the user to set a custom location when scheduling an interview while also creating a google meet in the background",author:"David Feinerman"},[O.DailyDemoDataGeneration]:{allowInNonUser:!1,description:"Enable daily demo data generation for a demo account",author:"Filipe Dobreira"},[O.DataEnrichmentRefresh]:{allowInNonUser:!1,description:"Enables Ashby add-on that refreshes candidates’ data periodically, powered by a webhook from PeopleDataLabs",author:"Dion Larson"},[O.DataImportConfidentialJobOverride]:{allowInNonUser:!1,description:"When enabled allows to manually mark an imported job as being confidential",author:"Tom Quist"},[O.DatadogRumInExtension]:{allowInNonUser:!1,description:"Enables Datadog RUM in the Chrome Extension for tracking user sessions",author:"Mantas Astra"},[O.DefaultInsightsDashboards]:{allowInNonUser:!1,description:"Enable the Ashby Insights dashboards",author:"Emily Ellis"},[O.DefaultJobDashboard]:{allowInNonUser:!1,description:"Enable the default job dashboard",author:"Emily Ellis"},[O.DefaultMyStuffSavedFilter]:{allowInNonUser:!1,description:"Allows to default select My Stuff Saved Filter.",author:"Moody (Emad Abdulrahim)"},[O.DeleteV1]:{allowInNonUser:!1,description:"Enable access to the first set of deletable objects. For now, this will archive reasons, departments, and locations.",author:"Joel Reske"},[O.DimensionNot]:{allowInNonUser:!1,description:"Allow negating entire QueryDSL filters through the UI",author:"Tom Quist"},[O.DirectScheduling]:{allowInNonUser:!1,description:"Subset of the AdvancedScheduling feature, enables direct interview scheduling for candidates.",author:"Ronald Martin"},[O.DisableBeamerySync]:{allowInNonUser:!1,description:"Disables Beamery sync for an organization",author:"Max Rodewald"},[O.DisableCalculatedFieldOptimization]:{allowInNonUser:!1,description:"Disables the calculated field optimization for this organization. This can be used as an emergency measure if an org is using a complex calculated field.",author:"Tom Quist"},[O.DisableDigestsForAllUsers]:{allowInNonUser:!1,description:"If selected, no digests will be sent to any users",author:"Oliver Hickman"},[O.DisableDigestsForLimitedAccessUsers]:{allowInNonUser:!1,description:"If selected, no digests will be sent to limited access users",author:"Joel Reske"},[O.DisableEmailSendingWhileSaving]:{allowInNonUser:!1,description:"If enabled, prevents email sending while the email is being saved",author:"Teodor Chicinas"},[O.DisableGoogleCalendarACLSync]:{allowInNonUser:!1,description:"Disable calendar ACL sync for an organization",author:"Oliver Hickman"},[O.DisableGreenhouseOrgAdminPolicyEvaluation]:{allowInNonUser:!1,description:"Disables Policy Evaluation for Organization Admins in Greenhouse Organizations",author:"João Carvalho"},[O.DisableGreenhouseUserActivation]:{allowInNonUser:!1,description:"Disables Greenhouse sync's ability to activate users",author:"Ben Asher"},[O.DisableNonUserS3DualStackEndpoint]:{allowInNonUser:!1,description:"Disables the use of the S3 DualStack endpoint for Non-User File Uploads",author:"João Carvalho"},[O.DisableRealTimeGmailSync]:{allowInNonUser:!1,description:"Disables real-time Gmail sync for an organization. We'll still sync on a schedule.",author:"Oliver Hickman"},[O.DisableSubscriptionPlanResolution]:{allowInNonUser:!1,description:"Disable all subscription plan resolution, effectively granting unlimited access.",author:"Joel Reske"},[O.DisableUnauthenticatedJobPostingApi]:{allowInNonUser:!1,description:"Disable the unauthenticated job posting API.",author:"Emily Ellis"},[O.DocxLinebreaks]:{allowInNonUser:!1,description:"Allow for linebreaks when handling substitution token values in docx.",author:"Siebe Jan Stoker"},[O.DraftNotes]:{allowInNonUser:!1,description:"Save drafts for notes on candidate profiles.",author:"Kendra Gibbons"},[O.EditApplicationHistory]:{allowInNonUser:!1,description:"Edit the interview progress on a candidate's profile. Helpful when a candidate accidentally passes though a stage accidentally.",author:"Joel Reske"},[O.EeocCanBeRequired]:{allowInNonUser:!1,description:"Allow customers to make EEOC survey required.",author:"Siebe Jan Stoker"},[O.EmailCustomization]:{allowInNonUser:!1,description:"Enables a color picker in the rich text editor for emails and email templates",author:"Max Rodewald"},[O.EmployeeAnniversary]:{allowInNonUser:!1,description:"Flag that exposes the ability to set start dates and manager on employee profile. Typically should only be turned on if EmployeeFieldset is also on.",author:"Arjun Nayini"},[O.EmployeeAutoLinking]:{allowInNonUser:!1,description:"Automatically create links to hired candidates for new employees.",author:"Morten A. Bentsen"},[O.EmployeeFieldset]:{allowInNonUser:!1,description:"Flag that exposes the Employee Fieldset.",author:"Arjun Nayini"},[O.EnableApiAccessToPrivateFields]:{allowInNonUser:!1,description:"Enable access to private fields setting for API keys",author:"Tom White"},[O.EnableDualSimilarityUniversalSearch]:{allowInNonUser:!1,description:"Enables running a high threshold universal search in parallel with a low threshold search and returns the fastest option first when sufficient results are found.",author:"Max Rodewald"},[O.EnableGoogleCalendarOAuth]:{allowInNonUser:!1,description:"Enables use of OAuth for Google calendar sync",author:"Emma Cushman"},[O.EnableGoogleOAuth]:{allowInNonUser:!1,description:"Allow org users to authorize their Google account",author:"Emma Cushman"},[O.EnableRequireTeamOnOpeningToggle]:{allowInNonUser:!1,description:"Enable a toggle in opening admin to require team / location on openings",author:"Siebe Jan Stoker"},[O.Enboarder]:{allowInNonUser:!1,description:"Enable Enboarder integration",author:"Anastasia Zloteanu"},[O.EventsModule]:{allowInNonUser:!1,description:"Enables the new Events module for organizing hiring events",author:"Max Rodewald"},[O.EventsModuleTimeslots]:{allowInNonUser:!1,description:"Enables the Events module's timeslots feature. Must be enabled with the EventsModule flag.",author:"Max Rodewald"},[O.EventsModuleUpdatedConfirmationTemplateBehavior]:{allowInNonUser:!1,description:"Enables the Events module's updated confirmation template behavior. When enabled, a default confirmation email template will not be created on event creation.",author:"Max Rodewald"},[O.ExcludeAgencyUsersFromScimSync]:{allowInNonUser:!1,description:"If true, this will not include agency users in syncing logic, and allow them to be added manually",author:"Joel Reske"},[O.ExperimentalGoogleOAuthFeatures]:{allowInNonUser:!1,description:"For development use only. Enable experimental features related to non-domain Google OAuth users.",author:"Emma Cushman"},[O.ExternalWorkflows]:{allowInNonUser:!1,description:"External Workflows integrations",author:"Ben Asher"},[O.FeedbackNotRequestedInterviews]:{allowInNonUser:!1,description:"Let's users create or update interviews to not request feedback.",author:"David Feinerman"},[O.FlickerFixHackResumePDF]:{allowInNonUser:!1,description:"A hacky fix for scrollbar flickering on candidate profile resume PDF",author:"Graham Murdoch"},[O.FollowUpNotes]:{allowInNonUser:!1,description:"Add a note to candidate follow up.",author:"Kendra Gibbons"},[O.ForceEnableBeameryIntegrationGatedFeature]:{allowInNonUser:!1,description:"Force enables the Beamery Integration gated feature, even if an org is on a plan that does not normally allow it.",author:"Joel Reske"},[O.ForceEnableExternalWorkflowsIntegrations]:{allowInNonUser:!1,description:"Force enable external workflows integrations, even if an org is on a plan that does not normally allow it.",author:"Joel Reske"},[O.ForceEnableJobAndCandidateCustomFieldsGatedFeature]:{allowInNonUser:!1,description:"Force enables the Job and Candidate Custom Fields gated feature, even if an org is on a plan that does not normally allow it.",author:"Joel Reske"},[O.ForceEnableNewslettersModuleGatedFeature]:{allowInNonUser:!1,description:"Force enables the Newsletters Module gated feature, even if an org is on a plan that does not normally allow it.",author:"Max Rodewald"},[O.ForceEnableWorkdayIntegrationGatedFeature]:{allowInNonUser:!1,description:"Force enables the Workday Integration gated feature, even if an org is on a plan that does not normally allow it.",author:"Joel Reske"},[O.ForceEventsPrivate]:{allowInNonUser:!1,description:"Allows to force all calendar events to be private.",author:"Oliver Hickman"},[O.ForceShowSubscriptionSwitcherDemoOrgsOnly]:{restrictOrgsThatMayHaveEnabled:K5.OnlyDemoOrgs,allowInNonUser:!1,description:"Force the visibility of the subscription switcher. Should ONLY be used in demo orgs, to allow sales people to demo the different subscription.",author:"Joel Reske"},[O.ForceTriggerReportAlert]:{allowInNonUser:!1,description:"Allows to force trigger a report alert immediately.",author:"Tom Quist"},[O.ForecastLines]:{allowInNonUser:!1,description:"Add forecasts to goal trend lines",author:"Aaron Norby"},[O.GemDataMigration]:{allowInNonUser:!1,description:"Enable Data Migration from Gem via the API",author:"Tom Quist"},[O.GemInlineDataFetching]:{allowInNonUser:!1,description:"Fetches Gem Data inline within the GemApiSyncTask instead of enqueueing one GemCandidateDataSyncTask per candidate",author:"Tom Quist"},[O.GemIntegration]:{allowInNonUser:!1,description:"Enable Analytics Gem Integration via the API",author:"Tom Quist"},[O.GemS3Integration]:{allowInNonUser:!1,description:"Enable Gem S3 Integration",author:"Marcus Eisele"},[O.GoalLines]:{allowInNonUser:!1,description:"Enable adding goal lines to count over time reports",author:"Aaron Norby"},[O.GranularAgencyPermissions]:{allowInNonUser:!1,description:"More granular permissions for agencies (see feedback, notes, etc)",author:"Joel Reske"},[O.GreenhouseApplicationForms]:{allowInNonUser:!1,description:"Map Greenhouse candidate application forms",author:"Oliver Hickman"},[O.GreenhouseAttachments]:{allowInNonUser:!1,description:"Map Greenhouse candidate attachments",author:"Oliver Hickman"},[O.GreenhouseCandidateMaintenance]:{allowInNonUser:!1,description:"Run a cleaner task to forcibly resync batches of candidate objects as part of each mapping run",author:"Aaron Norby"},[O.GreenhouseDemographicSurveys]:{allowInNonUser:!1,description:"",author:"Andrew Brown"},[O.GreenhouseDisableActivityFeedSync]:{allowInNonUser:!1,description:"Disables fetching Activity Sync objects from Greenhouse. This is helpful to allow us to start mapping candidates before fetching Activity Feeds",author:"João Carvalho"},[O.GreenhouseDisableCustomFieldSync]:{allowInNonUser:!1,description:"Disable mapping of Greenhouse custom fields.",author:"Ben Asher"},[O.GreenhouseEmailTemplates]:{allowInNonUser:!1,description:"Sync email templates from Greenhouse",author:"Andrew Brown"},[O.GreenhouseEmails]:{allowInNonUser:!1,description:"Sync emails from Greenhouse. You have to invalidate activity_feed sync objects after enabling this flag.",author:"Tom Quist"},[O.GreenhouseExposeGreenhouseOverallRecommendationField]:{allowInNonUser:!1,description:"Expose the Greenhouse Overall Recommendation field to non-analytics orgs.",author:"Oliver Hickman"},[O.GreenhouseExtendedScorecardSelectableValues]:{allowInNonUser:!1,description:"Support additional scorecard overall recommendation values during Greenhouse sync",author:"Filipe Dobreira"},[O.GreenhouseFullJobSync]:{allowInNonUser:!1,description:"Does a (fast) full sync of jobs instead of doing a delta-sync to work around a Greenhouse delta-sync bug",author:"Tom Quist"},[O.GreenhouseFurthestInterviewStageField]:{allowInNonUser:!1,description:"Enable pre-computing the Application's Furthest Interview Stage field as part of the Greenhouse Sync",author:"João Carvalho"},[O.GreenhouseJobApprovalFlows]:{allowInNonUser:!1,description:"Map job approval flows for greenhouse. To be removed after confirming stability.",author:"Aaron Norby"},[O.GreenhouseJobPosts]:{allowInNonUser:!1,description:"Sync job posts from Greenhouse",author:"Kaitlyn Crawley"},[O.GreenhouseLinkedInInMail]:{allowInNonUser:!1,description:"[Experimental] Sync InMail from Greenhouse",author:"Oliver Hickman"},[O.GreenhouseLocalSchedulableInterviews]:{allowInNonUser:!1,description:"Map schedulable Greenhouse interviews to locally to job specific stage configuration.",author:"Tom Quist"},[O.GreenhouseOpeningsMapping]:{allowInNonUser:!1,description:"Map Greenhouse openings into Ashby openings.",author:"Tom Quist"},[O.GreenhouseRefetchCandidatesOnJobChange]:{allowInNonUser:!1,description:"Activates the /jobs/candidates endpoint during GH Sync. With this enabled we re-sync all candidates that are part of an updated job.",author:"Marcus Eisele"},[O.GreenhouseScorecardAttributes]:{allowInNonUser:!1,description:"Map Greenhouse Scorecard Attributes and Questions",author:"Andrew Brown"},[O.GreenhouseScorecardPostProcessing]:{allowInNonUser:!1,description:"Post-process Greenhouse scorecard submissions to ensure interviews are up-to-date",author:"Filipe Dobreira"},[O.GreenhouseScorecardQuestions]:{allowInNonUser:!1,description:"Map Greenhouse Scorecard Questions",author:"Ben Asher"},[O.GreenhouseSkipObjectInvalidationStep]:{allowInNonUser:!1,description:"Skip the object invalidation step in Greenhouse the Greenhouse migration. Useful in multi-migration scenarios.",author:"Oliver Hickman"},[O.Gusto]:{allowInNonUser:!1,description:"Gusto HRIS integration",author:"Ben Asher"},[O.HideAutomaticActivityIconCandidatePipeline]:{allowInNonUser:!1,description:"Enables automatic activity icon in candidate pipeline",author:"David Feinerman"},[O.HideOtherFeedbackForInterviewersWithoutFeedback]:{allowInNonUser:!1,description:"Hide other feedback for interviewers who aren't required to submit feedback.",author:"David Feinerman"},[O.HidePolicyLinksInNonUser]:{allowInNonUser:!0,description:"Temporary flag to hide privacy policy, securiy, and vulnerability disclosure in non user for Personio.",author:"Arjun Nayini"},[O.HideUnpublishedJobPostingJobsFromReferralAutocomplete]:{allowInNonUser:!1,description:"Hide jobs that don't have published job postings from the referral autocomplete",author:"David Feinerman"},[O.HiringManagerExperienceSurveys]:{allowInNonUser:!1,description:"Hiring manager experience surveys",author:"Emily Ellis"},[O.ImagesInApprovalNotes]:{allowInNonUser:!1,description:"Add the ability to attach images to approval notes. Images are publicly accessible: anyone with access to the email can see the image, and are not requires to be authenticated in Ashby. This might be a security concern.",author:"Siebe Jan Stoker"},[O.InterviewPanelJobTitleAndLinks]:{allowInNonUser:!1,description:"Enable rendering job titles and links in the interview panel summary",author:"Kaitlyn Crawley"},[O.InterviewPanelSummaryCandidateTimezone]:{allowInNonUser:!1,description:"Enable using the interview schedule's candidate timezone for candidate invites and emails when using the Interview Panel Summary substitution token",author:"Kaitlyn Crawley"},[O.InterviewPlansLocalToJob]:{allowInNonUser:!1,description:"This flag should only be flipped once all interview plans have been converted via a script. Will assume that all interview plans are now local to job.",author:"Joel Reske"},[O.InterviewPlansV2TemporarilyDisableBuiltInStageValidation]:{allowInNonUser:!1,description:"Temporarily disable built in stage validation for interview plans V2. This will allow us to fix stage order without validating, so that we can run ensure built in stages. In the future, there will be a better way to do this.",author:"Joel Reske"},[O.InterviewReportingCountToggle]:{allowInNonUser:!1,description:"When enabled allows to toggle counting behavior of interviews",author:"Tom Quist"},[O.InterviewerPoolReportingFieldRefactor]:{allowInNonUser:!1,description:"Refactor the interview pool reporting fields to look at training ",author:"David Feinerman"},[O.InterviewerTrainingPool]:{allowInNonUser:!1,description:"In admin user profile, show user's training pools and their progress.",author:"Moody (Emad Abdulrahim)"},[O.IroncladUseDemoUrl]:{allowInNonUser:!1,description:"When enabled, uses the Demo/Sandbox base url for the Ironclad integration",author:"Arjun Nayini"},[O.JobApprovals]:{allowInNonUser:!1,description:"Enables configuration and evaluation of job approval processes",author:"Andrew Brown"},[O.JobBoardEmbedV2]:{allowInNonUser:!0,description:"Always return the v2 embed scripts for job boards",author:"Dom Crayford"},[O.JobPostingApplicationDeadlines]:{allowInNonUser:!0,description:"Allows setting an application deadline for a job posting",author:"Daniel Rigberg"},[O.JobPostingLocation]:{allowInNonUser:!1,description:"Allows setting a location for a job posting",author:"Kaitlyn Crawley"},[O.JobWizard]:{allowInNonUser:!1,description:"Enables new UI for new job creation that guides users through the process of creating a job",author:"Moody (Emad Abdulrahim)"},[O.LeverAttachmentsImport]:{allowInNonUser:!1,description:"Sync candidate attachments from Lever",author:"Tom Quist"},[O.LeverConfidentialData]:{allowInNonUser:!1,description:"Sync confidential data from Lever. Requires an API key with confidential data access.",author:"Oliver Hickman"},[O.LeverDeletedOpportunities]:{allowInNonUser:!1,description:"Sync deleted opportunities from Lever",author:"Tom Quist"},[O.LeverDeletedTeamsAndJobs]:{allowInNonUser:!1,description:"Delete jobs, teams, depts that are not on Lever",author:"Aaron Norby"},[O.LeverDetailedFeedbackTemplateImport]:{allowInNonUser:!1,description:"Import Lever feedback forms into Ashby scorecard definitions",author:"Andrew Brown"},[O.LeverEEOC]:{allowInNonUser:!1,description:"Sync EEOC data from Lever",author:"Tom Quist"},[O.LeverImportRequisitionsAsOpenings]:{allowInNonUser:!1,description:"Import Lever requisitions as Ashby Openings",author:"Tom Quist"},[O.LeverJobPosts]:{allowInNonUser:!1,description:"Sync Job posts and application forms from Lever",author:"Andrew Brown"},[O.LeverMapGeneralOpportunities]:{allowInNonUser:!1,description:"Map to a general opportunity when there's feedback on an application that doesn't map to a specific job",author:"Oliver Hickman"},[O.LeverNotesImport]:{allowInNonUser:!1,description:"Enabled import of notes from Lever",author:"Tom Quist"},[O.LeverProfileForms]:{allowInNonUser:!1,description:"Sync in profile forms and profile form templates. Currently only syncs with nowhere to put them in Ashby.",author:"Oliver Hickman"},[O.LeverSourceMappingByUsage]:{allowInNonUser:!1,description:"Sort Lever sources by usage on the mapping page",author:"Oliver Hickman"},[O.LeverSyncHeadlineToEmploymentHistory]:{allowInNonUser:!1,description:"Import Opportunity Headline as Employment History",author:"Tom Quist"},[O.LeverSyncTagsAsCandidateTags]:{allowInNonUser:!1,description:"Import Opportunity Tags as Candidate Tags",author:"Tom Quist"},[O.LeverSyncUpdatedAtHack]:{allowInNonUser:!1,description:"Explicitly check updatedAt on synced Lever entities where we filtered by updated_at_start. Workaround for a Lever bug where their API returns entities not matching the filter we passed.",author:"Emily Ellis"},[O.LinkedInHtmlTransform]:{allowInNonUser:!1,description:"Transform LinkedIn HTML pages by Ashby adding icons etc. when using the Chrome extension",author:"Morten A. Bentsen"},[O.LinkedInRSCIntegration]:{allowInNonUser:!1,description:"Enable LinkedIn RSC Integration.",author:"Mantas Astra"},[O.LogRecurringEventMaterializationDiscrepancies]:{allowInNonUser:!1,description:"Log discrepancies between the recurring event materialization results of the old and new materialization methods",author:"Tom Quist"},[O.ManagementHierarchyField]:{allowInNonUser:!1,description:"Enables the In Management Hierarchy Of field.",author:"Ben Asher"},[O.MaterializeCalculatedFieldResolversWithAggregations]:{allowInNonUser:!1,description:"Enables the materialization of calculated field resolvers that contain aggregations",author:"Tom Quist"},[O.MaterializedConsiderationEndedAt]:{allowInNonUser:!1,description:"Use experimental materialization optimization for the consideration ended at field",author:"Emily Ellis"},[O.MentionTasksInReplies]:{allowInNonUser:!1,description:"Allows for mention tasks in replies",author:"Kendra Gibbons"},[O.MergeSources]:{allowInNonUser:!1,description:"This feature flag allows users to merge sources in app",author:"David Feinerman"},[O.Microsoft365]:{allowInNonUser:!1,description:"Enables the Microsoft 365 integration",author:"Oliver Hickman"},[O.Microsoft365CalendarUpdateOnSync]:{allowInNonUser:!1,description:"Update Microsoft 365 users' default calendar on sync.",author:"Anastasia Zloteanu"},[O.Microsoft365CustomApplication]:{allowInNonUser:!1,description:"Enables the Microsoft 365 advanced application settings, where users can setup their own Azure application",author:"Oliver Hickman"},[O.Microsoft365OutboxSync]:{allowInNonUser:!1,description:"Enables Microsoft 365 outbox sync",author:"Oliver Hickman"},[O.Microsoft365RoomSync]:{allowInNonUser:!1,description:"Enables the Microsoft 365 room sync",author:"Oliver Hickman"},[O.Microsoft365SharedCalendarOwnerSyncFix]:{allowInNonUser:!1,description:"Passes in the shared calendar's calendar instead of the owner's calendar when syncing.",author:"David Feinerman"},[O.Microsoft365SharedCalendars]:{allowInNonUser:!1,description:"Enables the ability to add Microsoft 365 shared calendars",author:"Oliver Hickman"},[O.Microsoft365SyncOnPremisesSyncEnabledUsers]:{allowInNonUser:!1,description:"Also sync users that have onPremisesSyncEnabled = true",author:"Oliver Hickman"},[O.MobileHome]:{allowInNonUser:!1,description:"Enables the new mobile home page containing interviews and tasks",author:"Graham Murdoch"},[O.MostRecentSchoolFilter]:{allowInNonUser:!1,description:'Show the "Most Recent School" filter',author:"Florian Krüger"},[O.MultipleInterviewPlansPerJob]:{allowInNonUser:!1,description:"Allow any user which can edit the job to add multiple interview plans to the job",author:"Joel Reske"},[O.NamsorFirstNameLastNameInference]:{allowInNonUser:!1,description:"Use namsor for parsing first and last name for race inference. Otherwise Ashbys simple name inference version will be used.",author:"Tom Quist"},[O.NamsorGenderInference]:{allowInNonUser:!1,description:"",author:"Benji Encz"},[O.NamsorRaceEthnicityInference]:{allowInNonUser:!1,description:"",author:"Tom Quist"},[O.NavFullPageReloadNewAppVersion]:{description:"Skips client-side routing in main nav if new version of the app is available",allowInNonUser:!1,author:"Nick Williams"},[O.NewEsignatureSignerMatching]:{allowInNonUser:!1,description:"Use an improved e-signature signer matching algorithm.",author:"Ben Asher"},[O.NewGoogleApiAuthorizationFlow]:{allowInNonUser:!1,description:"Enables OAuth users and domain delegation users within the same organization.",author:"Nicholas Chong"},[O.NewInterviewBriefing]:{allowInNonUser:!1,description:"Enables the new interview briefing UI",author:"Graham Murdoch"},[O.NewJobsOpeningsRequisitionsDrilldowns]:{allowInNonUser:!1,description:"Enables drill-down options for jobs, openings, requisitions, and employees",author:"Filipe Dobreira"},[O.NewReportBuilderPage]:{description:"Enables a new page for building reports from templates",allowInNonUser:!1,author:"Graham Murdoch"},[O.NewReportHookOnly]:{allowInNonUser:!1,description:"Makes reports supporting this flag only use the newer report hook",author:"Ben Asher"},[O.NewReportTable]:{allowInNonUser:!1,description:"Enables the new report table which uses the new Ashby Table component",author:"Moody (Emad Abdulrahim)"},[O.NewScheduleDraftWhenTemplateChanges]:{allowInNonUser:!1,description:"When enabled, a new schedule draft is created when the schedule template changes.",author:"Moody (Emad Abdulrahim)"},[O.NewSchedulingActivityDesign]:{allowInNonUser:!1,description:"Enables new designs for scheduling activities on the candidate profile",author:"Graham Murdoch"},[O.NewSchedulingCommunicationsStepDesign]:{allowInNonUser:!1,description:"Enables a new design for the scheduling Communications step, including candidate confirmation emails.",author:"Graham Murdoch"},[O.NewSearchDesign]:{allowInNonUser:!1,description:"The new (CMD + K) search design",author:"Moody (Emad Abdulrahim)"},[O.NewSourcingFormSubmissionsTable]:{allowInNonUser:!1,description:"Enables the new Ashby table component on the sourcing form submissions page",author:"Max Rodewald"},[O.NewVisibilityPolicyForHiredCandidates]:{allowInNonUser:!1,description:"Further restricts who can see hired candidates",author:"Arjun Nayini"},[O.NewslettersModuleDisableSending]:{allowInNonUser:!0,description:"Allows the Newsletter Module to be enabled, but disables the sending of newsletters. Used for granting early access to the newsletters module, or to prevent an org from sending newsletters.",author:"Max Rodewald"},[O.NewslettersModuleSimulateSending]:{allowInNonUser:!1,description:"Allows you to simulate sending newsletters by sleeping for roughly 1s per recipient, rather than using SES to send emails.",author:"Max Rodewald"},[O.NonOfferEsignatures]:{allowInNonUser:!1,description:"Enable creating non-offer e-signature documents (eg, NDAs)",author:"Aaron Norby"},[O.ObfuscateWhenGroupingByDEIFields]:{allowInNonUser:!1,description:"Enable organization admins to obfuscate group counts in reports when using DEI fields",author:"Dion Larson"},[O.OfferApprovalNotificationsUseApprovalContext]:{allowInNonUser:!1,description:"Use new Approval Context to generate Offer Approval context",author:"Siebe Jan Stoker"},[O.OfferApprovalNotificationsWithFeedback]:{allowInNonUser:!1,description:"Include interview feedback in Offer Approval notifications",author:"Ronald Martin"},[O.OfferEsignatureEid]:{allowInNonUser:!1,description:"Enable electronic identification checkbox for offer e-signature.",author:"Siebe Jan Stoker"},[O.OfferEsignatureZipProcessing]:{allowInNonUser:!1,description:"Enables fetching and processing the zip format of the signed documents, for sending to an HRIS",author:"Ben Asher"},[O.OfferInAppDynamicApprovals]:{allowInNonUser:!1,description:"Enable organization admins to create/update per-offer dynamic approvals.",author:"Siebe Jan Stoker"},[O.OfferLetterDirectUpload]:{allowInNonUser:!1,description:"Enable replacing an offer letter with a replacement docx without re-generating from a template. Note that this flag only controls the config being available, an organization admin or success@ still has to enable the actual functionality in Admin > Offers > Settings.",author:"Siebe Jan Stoker"},[O.OfferMultiDocEsignature]:{allowInNonUser:!1,description:"Enable UI to add multiple documents to an offer e-signature",author:"Ben Asher"},[O.OfferVersionAnalyticsEnableOffer]:{allowInNonUser:!1,description:"Enable the related field set Offer on Offer Version.",author:"Siebe Jan Stoker"},[O.OfferVersionAnalyticsV0]:{allowInNonUser:!1,description:"Enable more powerful QueryDSL fields for AIO customers wanting to analyze offer version data. Fully functional, but requires more product thinking before rolling out globally.",author:"Arjun Nayini"},[O.OnboardWithCommandBarHelpHub]:{allowInNonUser:!1,description:"Enable CommandBar's HelpHub specifically. The overall flag for onboarding with Command bar also needs to be enabled",author:"Kendra Gibbons"},[O.Onboarding]:{allowInNonUser:!1,description:"Enable the onboarding module",author:"Morten A. Bentsen"},[O.OneInterviewPlanPerJob]:{allowInNonUser:!1,description:"Force all jobs to have one interview plan.",author:"Joel Reske"},[O.OpeningApprovals]:{allowInNonUser:!1,description:"Enable UI for configuring and using opening approvals",author:"Tom Quist"},[O.OpeningPrivateCustomFields]:{allowInNonUser:!1,description:"Enable private opening custom fields",author:"Siebe Jan Stoker"},[O.OptimizeAsyncReportDimension]:{allowInNonUser:!1,description:"Allows optimizing the QueryDSL Dimension in async reports",author:"Dion Larson"},[O.OptimizeCandidateSearchDimension]:{allowInNonUser:!1,description:"Allows optimizing the QueryDSL Dimension in Candidate Search",author:"João Carvalho"},[O.OptimizeOrQueryResolverMerge]:{allowInNonUser:!1,description:"Merges values within a single resolvers if multiple queries of the same type are ORed together",author:"Dion Larson"},[O.OptimizeQueryDSLComposerWhereInExists]:{allowInNonUser:!1,description:"Enables the optimization that converts WHERE IN to WHERE EXISTS in some composer scenarios",author:"Ben Asher"},[O.OptimizeQueryDSLComposerWhereInSubqueryConditionsToParent]:{allowInNonUser:!1,description:"Enables the optimization that lifts a WHERE IN subquery's conditions to its parent",author:"Ben Asher"},[O.OptimizeSqlForStageInterviews]:{allowInNonUser:!1,description:"Allows queries on Stage Interviews to be eligible for QueryDSL Optimizations",author:"João Carvalho"},[O.OptimizeSqlWithCalculatedFields]:{allowInNonUser:!1,description:"Allows queries with Calculated Fields to be eligible for QueryDSL Optimizations",author:"João Carvalho"},[O.OptionalTraineeInterviewerSlotsForDirectBooking]:{allowInNonUser:!1,description:"Allow trainee interviewer slots to be optional for direct booking",author:"David Feinerman"},[O.OrganizationSettingEnforceJobCreationThroughTemplateEnabled]:{allowInNonUser:!1,description:"If enabled, allow orgs to configure the setting 'enforce job template usage' (see: https://github.com/ashbyhq/Ashby/issues/43253 )",author:"Siebe Jan Stoker"},[O.PaginatedReports]:{allowInNonUser:!1,description:"Paginate fetching allReports",author:"Aaron Norby"},[O.PausingInterviewerTraining]:{allowInNonUser:!1,description:"Allow pausing interviewer training.",author:"David Feinerman"},[O.Paychex]:{allowInNonUser:!1,description:"Paychex HRIS integration",author:"Ben Asher"},[O.PeopleDataLabsExperience]:{allowInNonUser:!1,description:"Use People Data Labs enrichment of the scraped LinkedIn experience",author:"Morten A. Bentsen"},[O.PeopleOpsEsignature]:{allowInNonUser:!1,description:"Enable the PeopleOps Esignature feature",author:"Morten A. Bentsen"},[O.PermissionStripeAccessLeads]:{allowInNonUser:!1,description:"Enables the `Access Leads` permission under Additional User Permissions in Employee Admin. If enabled, admins can explicitly manage the Access Leads permission. If disabled, then all elevated users implicitly have this permission. This feature is fully functional, but requires further product thinking. There's a tool to bulk update user admin permissions: BulkUpdateUserAdminPermissions. This is useful to enable the flag for an org without existing users losing permission.",author:"Siebe Jan Stoker"},[O.PermissionsAutomationForGlobalRole]:{allowInNonUser:!1,description:"Enable automatic upgrade and downgrade of user's global role as access roles change.",author:"Dom Crayford"},[O.PermissionsAutomationForHiringTeam]:{allowInNonUser:!1,description:"Enable automation of job access roles when job's hiring team changes.",author:"Dom Crayford"},[O.PipelineReportByStageGroup]:{allowInNonUser:!1,description:"Enables view options that allow grouping a pipeline by stage group.",author:"Ben Asher"},[O.PipelineReportMoreStages]:{allowInNonUser:!1,description:"Enables view options that allow showing pre-active stages on the pipeline report.",author:"Ben Asher"},[O.PolicyUsersCanSeeApplicationsForWhichTheyAreApproversEnabled]:{allowInNonUser:!1,description:"Enable the policy 'usersCanSeeApplicationsForWhichTheyAreApprovers:'. With this flag on, it allows Limited Access Users from accessing candidate profiles, even if they are an offer approver. When disabled, the user is expected to the use the email notification to approve/reject the offer.",author:"Siebe Jan Stoker"},[O.PollingBackoff]:{allowInNonUser:!1,description:"Enables slowing down how often we poll candidate profiles etc based on activity in the tab.",author:"Colin Howe"},[O.PostHireSurveys]:{allowInNonUser:!1,description:"Enable post-hire surveys",author:"Morten A. Bentsen"},[O.ProspectJobFields]:{allowInNonUser:!1,description:"Show related job fieldset on prospect application fieldset",author:"Aaron Norby"},[O.QueryDSLScopeTestingEnabled]:{allowInNonUser:!1,description:"Enables comparative performance testing for QueryDSL Global Query Scopes",author:"João Carvalho"},[O.QueryDSLUseWhereInForGenerateSelectSql]:{allowInNonUser:!1,description:"[Experimental] In generateSelectSql, wrap the complex query with `WHERE IN (subquery)` instead of the default `JOIN (subquery)`",author:"Siebe Jan Stoker"},[O.ReaderReplicaEnabled]:{allowInNonUser:!0,description:"Enable use of the Reader replica of the main database",author:"Rami Chowdhury"},[O.ReferralFormReporting]:{allowInNonUser:!1,description:"Enable reporting on referral form questions",author:"Siebe Jan Stoker"},[O.RenderCurrencyWithTwoDecimals]:{allowInNonUser:!1,description:"When enabled, currency will be rendered with two decimals (e.g. '$123.00' instead of '$123'). Temporary solution, don't enable globally.",author:"Siebe Jan Stoker"},[O.ReportingSubjectCandidateExperienceSurvey]:{allowInNonUser:!1,description:"Enable the deprecated candexp_form subject for reporting. This is useful for customers who still have existing data, i.e. candexp_form calculated fields.",author:"Siebe Jan Stoker"},[O.ReportsFromS3]:{allowInNonUser:!1,description:"Makes frontend request to download reports from S3 instead of backend directly",author:"Ben Asher"},[O.RequiredJobOpeningFields]:{allowInNonUser:!1,description:"Mark Job & Opening fields as required. A required field will block the Job or Opening from opening if the field is not provided.",author:"Siebe Jan Stoker"},[O.RequiredPlaceholdersInEmailSubject]:{allowInNonUser:!1,description:"Enables the ability to add required placeholders to an email subject line.",author:"Jonathan King"},[O.RequiredPlaceholdersIndicator]:{allowInNonUser:!1,description:"Enables an editor button when required placeholders are present, enabling placeholders selection on click.",author:"Teodor Chicinas"},[O.RescheduleInterviewsWithoutNotifications]:{allowInNonUser:!1,description:"Enables the ability to reschedule interviews without notifying interviewers.",author:"David Feinerman"},[O.RestrictedApplicationsSummary]:{allowInNonUser:!1,description:"Enables limited-access users to view a summary of candidate applications they are not authorized to access",author:"Moody (Emad Abdulrahim)"},[O.ResumePlainTextPreprocessForSearchIndex]:{allowInNonUser:!1,description:"Treats slashes and dots in plain text resumes as word boundaries. Resume plain text must be reindexed after enabling this flag!",author:"Tom Quist"},[O.RichTextOptimizations]:{allowInNonUser:!1,description:"Assorted optimizations for the rich text editor and communication templates. Reduces blast radius of changes.",author:"Jonathan King"},[O.RipplingOfferLetters]:{allowInNonUser:!1,description:"Push offer letters to Rippling.",author:"Oliver Hickman"},[O.SavedFilters]:{allowInNonUser:!1,description:"Enables Saved Filters feature",author:"Moody (Emad Abdulrahim)"},[O.ScheduleSlackChannels]:{allowInNonUser:!1,description:"Schedule the creation of Slack channels in interview templates.",author:"Shawn Patrick Rice"},[O.ScheduledDashboards]:{allowInNonUser:!1,description:"Schedule dashboards to be sent via email or Slack messages.",author:"Emily Ellis"},[O.ScheduledDashboardsRestrictedDelivery]:{allowInNonUser:!1,description:"Only allow scheduled dashboards to be sent to registered Ashby users.",author:"Emily Ellis"},[O.SchedulingAllowCandidateInviteRichText]:{allowInNonUser:!1,description:"Enables Rich Text (bolding, bullet lists, etc.) in interview invites to Candidates",author:"Ronald Martin"},[O.SchedulingAutoReplaceDeclinedInterviewerSelectionExcludeAllDeclined]:{allowInNonUser:!1,description:"Exclude interviewers who already declined the current event time from being selected as a replacement",author:"Daniel Rigberg"},[O.SchedulingAutoScheduleViaSQS]:{allowInNonUser:!1,description:"Enable auto-scheduling via SQS queue to process constraint solver requests in our own infrastructure",author:"Tom Quist"},[O.SchedulingAutoZoomHost]:{allowInNonUser:!1,description:"Automatically select a Zoom host for single-event interviews.",author:"Ronald Martin"},[O.SchedulingBulkActionResolveIndividualTaskOnly]:{allowInNonUser:!1,description:"Resolve individual users' feedback tasks only in the bulk action for resolving interview schedule/take-home feedback tasks",author:"Ronald Martin"},[O.SchedulingCalendarEventGarbageCollection]:{allowInNonUser:!1,description:"Enable nightly deletion of calendar events which ended over 30 days in the past",author:"Daniel Rigberg"},[O.SchedulingDefaultInterviewerLimits]:{allowInNonUser:!1,description:"Let's users create default interviewer limits and reads from them when creating schedules.",author:"David Feinerman"},[O.SchedulingDefaultToUserTimeZoneManualSchedule]:{allowInNonUser:!1,description:"When enabled, the default timezone for manual scheduling will be the user's timezone",author:"David Feinerman"},[O.SchedulingEnableRescheduleTypes]:{allowInNonUser:!1,description:"When enabled, users can select the type of modification when rescheduling an interview",author:"Kaitlyn Crawley"},[O.SchedulingFullCalendarSoftResync]:{allowInNonUser:!1,description:"When enabled, full-calendar re-syncs will defer event deletion until after completing the sync.",author:"Daniel Rigberg"},[O.SchedulingHideFullDayFreeEvents]:{allowInNonUser:!1,description:"When enabled, full day events that have free/busy type free will not be shown on the Quick Schedule calendar",author:"Kaitlyn Crawley"},[O.SchedulingIncludeRecruitingCoordinatorInSchedulingNotifications]:{allowInNonUser:!1,description:"Include recruiting coordinators in app event notifications by default",author:"David Feinerman"},[O.SchedulingInterviewLimitsCountAllInterviews]:{allowInNonUser:!1,description:"When true, all interviews count towards interview limits, regardless if feedback is requested or required.",author:"Kaitlyn Crawley"},[O.SchedulingInterviewScheduleReporting]:{allowInNonUser:!1,description:"Allow reporting on interview schedules as the primary subject",author:"Kaitlyn Crawley"},[O.SchedulingInterviewScheduleSummaryReporting]:{allowInNonUser:!1,description:"Allows reporting on interviewer schedule summaries as a primary subject",author:"Kaitlyn Crawley"},[O.SchedulingInterviewScheduleVersionReporting]:{allowInNonUser:!1,description:"Allows reporting on interviewer schedule versions as a primary subject",author:"Kaitlyn Crawley"},[O.SchedulingInterviewerPoolNotificationSettings]:{allowInNonUser:!1,description:"Enable notification settings for interviewer pools",author:"David Feinerman"},[O.SchedulingInterviewerRSVPReporting]:{allowInNonUser:!1,description:"Allows reporting on interviewer RSVPs as a primary subject",author:"Kaitlyn Crawley"},[O.SchedulingMeetingRoomPoolsForManualScheduling]:{allowInNonUser:!1,description:"Enable selecting meeting rooms from pools in manual scheduling",author:"Daniel Rigberg"},[O.SchedulingMultiDayAutoScheduling]:{allowInNonUser:!1,description:"Enable multi-day auto scheduling",author:"Tom Quist"},[O.SchedulingNewAutoScheduleAlternates]:{allowInNonUser:!1,description:"Separate query for evaluating alternates' availability in AutoSchedule proposals",author:"Kaitlyn Crawley"},[O.SchedulingNewDraftScheduleAlternates]:{allowInNonUser:!1,description:"Refetch qualified interviewers to keep draft schedules' alternates up to date.",author:"Kaitlyn Crawley"},[O.SchedulingScaledUpConstraintSolverMultipliers]:{allowInNonUser:!1,description:"Uses scaled up multipliers for constraint solver cost value multipliers to allow for more granular updates",author:"David Feinerman"},[O.SchedulingSecondaryUserCalendars]:{allowInNonUser:!1,description:"Enables secondary calendars to be selected, synced, and used in scheduling",author:"Daniel Rigberg"},[O.SchedulingSkipDeclineNotificationForPastEvents]:{allowInNonUser:!1,description:"When enabled, skip sending interviewer decline notification for events that have already finished.",author:"Kaitlyn Crawley"},[O.SchedulingTokensInterviewerFirstNameOnly]:{allowInNonUser:!1,description:"When enabled, only the first name of interviewers will be resolved in substitution tokens.",author:"Kaitlyn Crawley"},[O.SchedulingTwoWaySyncSchedulingCalendarRestriction]:{allowInNonUser:!1,description:"When enabled, restrict two way sync of Ashby Interview Events to calendar events synced with the scheduling calendar",author:"David Feinerman"},[O.SchedulingUseSyncedZoomUsers]:{allowInNonUser:!1,description:"When enabled, we will return Zoom users that have been synced to Ashby rather than fetching users from the Zoom API",author:"Kaitlyn Crawley"},[O.SchedulingZoomAlternativeHosts]:{allowInNonUser:!1,description:"Create Zoom meetings with all interviewers as alternative hosts",author:"Kaitlyn Crawley"},[O.SchedulingZoomConcurrencyLimitCheck]:{allowInNonUser:!1,description:"When enabled, we will check the Zoom host's concurrency limits may be exceeded when scheduling an interview",author:"Kaitlyn Crawley"},[O.SchedulingZoomUserSync]:{allowInNonUser:!1,description:"When enabled, Zoom users will be synced to Ashby",author:"Kaitlyn Crawley"},[O.ScimJobTitleAndUserNameSync]:{allowInNonUser:!1,description:"Allows orgs to enable/disable SCIM job title and name sync",author:"Ben Asher"},[O.SeatManagementDashboard]:{allowInNonUser:!1,description:"Enables the Seat Management Dashboard in the Employee Admin section",author:"Joel Reske"},[O.SetInterviewPlansFromJobTemplates]:{allowInNonUser:!1,description:"Allow setting interview plans from job templates",author:"Oliver Hickman"},[O.ShareableFilterUrls]:{allowInNonUser:!1,description:"Generate Shareable Filter URLs",author:"João Carvalho"},[O.SharedEmailAliases]:{allowInNonUser:!1,description:"Allow individual users to share their primary email addresses with other users",author:"Emma Cushman"},[O.ShowCustomFieldsInChromeExtension]:{allowInNonUser:!1,description:"Enable the organization's users to view and edit custom fields in the chrome extension.",author:"Nicholas Chong"},[O.ShowLeverTimeToFill]:{allowInNonUser:!1,description:"Show a time to fill report specifically for Lever orgs",author:"Aaron Norby"},[O.ShowOverdueInvoiceDelinquencyBanner]:{allowInNonUser:!1,description:"If an organization is delinquent, show a banner to alert them",author:"Joel Reske"},[O.ShowWorkdayCustomFieldsOnAllJobs]:{allowInNonUser:!1,description:"When enabled, show all Workday custom fields on job profile, even on jobs that were created in Ashby",author:"Arjun Nayini"},[O.StageFunnelEmptyStages]:{allowInNonUser:!1,description:"Allow toggling display of empty stages in the stage funnel report",author:"Emily Ellis"},[O.StageNameField]:{allowInNonUser:!1,description:"Allow reporting based on stage name",author:"Joel Reske"},[O.StoryblokWhatsNewBadge]:{allowInNonUser:!1,description:"Power what's new badge with Storyblok instead of Headway",author:"Gaurav Kulkarni"},[O.SubstituteInTokenSubstitutionMap]:{allowInNonUser:!1,description:"Enables the substitution of document tokens in custom field values when generating e-signature documents",author:"Siebe Jan Stoker"},[O.SubstitutionGroupInline]:{allowInNonUser:!1,description:"Enables Inline Substitution Groups (used for pasting URLs with substitution tokens)",author:"Florian Krüger"},[O.SurveyAutomationWrapCommonPrefixFiltersIntoSubQuery]:{allowInNonUser:!1,description:"Wrap common prefix filters into a subquery to improve performance of survey automation",author:"Tom Quist"},[O.SwitchInterviewPlanBulkAction]:{allowInNonUser:!1,description:"Uses a bulk action when moving applications to a new interview plan",author:"Morten A. Bentsen"},[O.SyncAllDomainUserCalendars]:{allowInNonUser:!1,description:"Attempt calendar sync for all users with domain emails, even if not synced from Google",author:"Emma Cushman"},[O.SyncWorkdayHRISPositionsWithoutJobs]:{allowInNonUser:!1,description:"Sync positions from Workday HRIS without jobs",author:"Ben Asher"},[O.TakeHomeBlindingOnlyBlindTakeHomeInterviews]:{allowInNonUser:!1,description:"Causes the Take Home blinding only to take effect on Take Home interviews",author:"Morten A. Bentsen"},[O.TakeHomeSelfSubmission]:{allowInNonUser:!1,description:"Enables links to send to candidates to do their own take home submissions",author:"Joel Reske"},[O.TalentProjectSubject]:{allowInNonUser:!1,description:"Enable the Talent Project as a subject for reporting",author:"Joel Reske"},[O.TestOptimizedSql]:{allowInNonUser:!1,description:"Flag that enables sending query optimizations to be tested on an async queue",author:"Ben Asher"},[O.TimeInProcessWithoutInstantStages]:{allowInNonUser:!1,description:"Enables filtering of application history of very small durations from Time in Process report.",author:"Ben Asher"},[O.UnsubscribeLinks]:{allowInNonUser:!0,description:"Enable unsubscribe links in sequence emails",author:"Mantas Astra"},[O.UpcomingFeaturesPage]:{allowInNonUser:!1,description:"For more disruptive feature changes, this allows admins to opt-in / opt-out of those upcoming features.",author:"Gaurav Kulkarni"},[O.UseApplicationDateForComplianceRuleEvaluation]:{allowInNonUser:!1,description:"Use the candidate's most recent application's createdAt date when evaluating inactive lead compliance rules instead of the candidate's createdAt date.",author:"Max Rodewald"},[O.UseBareOfferApprovalRequestEmail]:{allowInNonUser:!0,description:"Strips out all offer and opening details from the offer approval request email. Only shows a link to the candidate.",author:"Oliver Hickman"},[O.UseConsiderationEndedAtColumnInQueryDSL]:{allowInNonUser:!1,description:"Use the `consideration_ended_at` column for the respective QueryDSL Field. Run the BackfillConsiderationEndedAt tool before turning this on.",author:"João Carvalho"},[O.UseConsistentChartColors]:{allowInNonUser:!1,description:"Use consistent chart colors on reports",author:"Filipe Dobreira"},[O.UseConsistentOAuthUserForGoogleCalendarAccess]:{allowInNonUser:!1,description:"EXPERIMENTAL. Use a consistent OAuth user for Google Calendar access for users without OAuth calendar tokens.",author:"Oliver Hickman"},[O.UseFurthestStageColumnInFurthestStageGroupReached]:{allowInNonUser:!1,description:"Use the `furthest_interview_stage_id` column for the Furthest Stage Group Reached field",author:"João Carvalho"},[O.UseFurthestStageColumnInFurthestStageNameReached]:{allowInNonUser:!1,description:"Use the `furthest_interview_stage_id` column for the Furthest Stage Name Reached field",author:"João Carvalho"},[O.UseFurthestStageColumnInReachedStageGroup]:{allowInNonUser:!1,description:"Use the `furthest_interview_stage_id` column for the Reached Stage Group field",author:"João Carvalho"},[O.UseFurthestStageColumnInReachedStageType]:{allowInNonUser:!1,description:"Use the `furthest_interview_stage_id` column for the Reached Stage Type field",author:"João Carvalho"},[O.UseHeadcountsByJobCte]:{allowInNonUser:!1,description:"Uses CTE to calculate headcounts for jobs in the resolver & selector.",author:"Dion Larson"},[O.UseNewDataEnrichmentLimitConfiguration]:{allowInNonUser:!1,description:"Use new data enrichment limit configuration, which will allow for annual counting of email lookups.",author:"Joel Reske"},[O.UseNewInterviewPlanEditingStrategy]:{allowInNonUser:!1,description:"Use refactored editing strategy for shared interview plans",author:"Joel Reske"},[O.UseNewRecurringEventMaterializer]:{allowInNonUser:!1,description:"Use new rust-based recurring event materializer",author:"Tom Quist"},[O.UsePDLInsteadOfScraping]:{allowInNonUser:!1,description:"Use requests to PDL preview endpoint instead of scrapers in Chrome Extension for LinkedIn Public",author:"Mantas Astra"},[O.UsePDLInsteadOfScrapingOnGitHub]:{allowInNonUser:!1,description:"Use requests to PDL preview endpoint instead of scrapers in Chrome Extension for GitHub",author:"Mantas Astra"},[O.UserIdentificationUsingExternalId]:{allowInNonUser:!1,description:"Use identity provider's user id to identify users in addition to their email address.",author:"Siebe Jan Stoker"},[O.VirusScanFiles]:{allowInNonUser:!0,description:"Enable scanning uploaded files for potentially malicious signatures (does not enable the UI that shows results)",author:"Aaron Norby"},[O.VirusScanShowResults]:{allowInNonUser:!0,description:"Show warnings for files that have potentially malicious signatures (does not enable scanning)",author:"Emma Cushman"},[O.VisualizationsColorCustomization]:{allowInNonUser:!1,description:"Enables organization color customization for visualizations",author:"Filipe Dobreira"},[O.WelcomeToTheJungle]:{allowInNonUser:!1,description:"Enables the Welcome to the Jungle integration.",author:"Oliver Hickman"},[O.WorkdayAIODemoOrg]:{allowInNonUser:!1,description:"Allows a Workday analytics demo org to pretend to be an AIO org for analytics sync purposes.",author:"Ben Asher"},[O.WorkdayHRISAutoApproveBusinessSubProcess]:{allowInNonUser:!1,description:"If enabled, automatically approve all business sub process present in the payload for pushing hired candidates to Workday.",author:"Tom Quist"},[O.WorkdayHRISConfigurationPhase]:{allowInNonUser:!1,description:"Enabling this prevents the integration from creating jobs and positions.",author:"Ben Asher"},[O.WorkdayHRISConsiderAvailableForHire]:{allowInNonUser:!1,description:"Whether to consider the Available_for_Hire flag when deciding whether a position is available for recruiting.",author:"Ben Asher"},[O.WorkdayHRISConsiderAvailableForOverlap]:{allowInNonUser:!1,description:"Whether to consider the Available_for_Overlap flag when deciding whether a position is available for recruiting.",author:"Ben Asher"},[O.WorkdayHRISDefaultPositionTitleFromOpeningDescription]:{allowInNonUser:!1,description:"Enabled the legacy behavior of defaulting the position title to the opening description when pushing hired candidates to Workday.",author:"Tom Quist"},[O.WorkdayHRISDisableTitleBasedLinking]:{allowInNonUser:!1,description:"Disables linking of Workday openings based on position title",author:"Ben Asher"},[O.WorkdayHRISEmptyOfferAttachmentData]:{allowInNonUser:!1,description:"Send empty business process parameters when no offer letter.",author:"Ben Asher"},[O.WorkdayHRISEmptyPrimaryCompensationBasis]:{allowInNonUser:!1,description:"If true, we send an empty primary compensation basis when pushing hired candidates to Workday.",author:"Ben Asher"},[O.WorkdayHRISFTEOnly]:{allowInNonUser:!1,description:"If true, only full-time employee positions are synced from Workday.",author:"Ben Asher"},[O.WorkdayHRISGroupedFields]:{allowInNonUser:!1,description:"Enables Workday field group support.",author:"Ben Asher"},[O.WorkdayHRISJobsAsPositions]:{allowInNonUser:!1,description:"If true, job data will be synced to positions.",author:"Ben Asher"},[O.WorkdayHRISLinkExistingData]:{allowInNonUser:!1,description:"If enabled, shows an option to automatically link existing openings/jobs to Workday Positions/Job Requisitions.",author:"Tom Quist"},[O.WorkdayHRISLookupPreHireID]:{allowInNonUser:!1,description:"If true, we'll lookup the pre-hire ID when submitting the offer form.",author:"Ben Asher"},[O.WorkdayHRISMapCostCentersToTeams]:{allowInNonUser:!1,description:"If true, we'll map Workday Cost Centers to teams as part of Workday HRIS sync.",author:"Ben Asher"},[O.WorkdayHRISMapJobRoles]:{allowInNonUser:!1,description:"If enabled, job roles are synced for Workday-synced jobs.",author:"Ben Asher"},[O.WorkdayHRISMapLocations]:{allowInNonUser:!1,description:"If enabled, Workday locations are mapped to Ashby locations.",author:"Ben Asher"},[O.WorkdayHRISMapSources]:{allowInNonUser:!1,description:"If enabled, Workday sources are mapped to Ashby sources.",author:"Ben Asher"},[O.WorkdayHRISOfferBusinessProcessSelection]:{allowInNonUser:!1,description:"If enabled, syncs a business-process selection custom offer field as part of the Workday HRIS integration.",author:"Tom Quist"},[O.WorkdayHRISOfferCustomOrgFields]:{allowInNonUser:!1,description:"If enabled, creates custom organization fields for offers on sync.",author:"Ben Asher"},[O.WorkdayHRISOnlySendPrimaryEmailAsHomeEmail]:{allowInNonUser:!1,description:"If enabled, only the primary email is sent as the home email when pushing a candidate to Workday.",author:"Tom Quist"},[O.WorkdayHRISOpeningsDefaultOpen]:{allowInNonUser:!1,description:"New openings default to open instead of approved.",author:"Ben Asher"},[O.WorkdayHRISPutApplicant]:{allowInNonUser:!1,description:"Use the Put_Applicant API as part of pushing new hires to Workday.",author:"Ben Asher"},[O.WorkdayHRISSkipSendingContingentWorkerComp]:{allowInNonUser:!1,description:"If enable, we don't push comp data to Workday for Contract Contingent Worker",author:"Ben Asher"},[O.WorkdayHRISSkipSendingPhoneNumber]:{allowInNonUser:!1,description:"If enabled, the candidate's phone number is not sent when pushing a candidate to Workday.",author:"Ben Asher"},[O.WorkdayHRISSkipSendingSocialLinks]:{allowInNonUser:!1,description:"If enabled, the candidate's socila links are not sent when pushing a candidate to Workday.",author:"Ben Asher"},[O.WorkdayHRISSnowflakeBusinessUnitMapping]:{allowInNonUser:!1,description:"Enables the Snowflake-specific Business Unit mapping.",author:"Ben Asher"},[O.WorkdaySOAPOAuth]:{allowInNonUser:!1,description:"Uses OAuth when making SOAP requests.",author:"Ben Asher"},[O.ZoomCloudRecordingLink]:{allowInNonUser:!1,description:"Enables Zoom cloud recording links and enabling auto-recording in candidate profiles",author:"Tom Quist"},[O.ZoomDevelopmentEnvironment]:{allowInNonUser:!1,description:"Uses the Zoom development client ID and secret for this organization. This should only be used for testing new Zoom features and for Zoom App Review.",author:"Tom Quist"}};Object.fromEntries(Object.entries(che).map(([e,t])=>[e,t.description]));Object.entries(che).filter(([e,t])=>t.allowInNonUser).map(([e,t])=>e);G.Application;var Mt;(function(e){e.EEOC="EEOC",e.Diversity="Diversity",e.CandidateExperience="CandidateExperience",e.CandidateDataConsent="CandidateDataConsent",e.Questionnaire="Questionnaire",e.QualityOfHire="QualityOfHire",e.HiringManagerExperience="HiringManagerExperience"})(Mt||(Mt={}));function lZe(e,t=1){let n="";switch(e){case Mt.EEOC:return"EEOC Survey";case Mt.Diversity:n="Diversity Survey";break;case Mt.CandidateExperience:n="Candidate Experience Survey";break;case Mt.CandidateDataConsent:return"Data Consent";case Mt.Questionnaire:n="Questionnaire";break;case Mt.QualityOfHire:n="Quality of Hire Survey Form";break;case Mt.HiringManagerExperience:n="Hiring Manager Experience Survey";break;default:ko("Unknown survey type",e)}return cd(t,n)}function MO({action:e,surveyType:t,countForPluralization:n}){const r=n==null||n===1?"Request":"Requests";switch(t){case Mt.EEOC:return`${e} EEO Survey ${r}`;case Mt.Diversity:return`${e} Diversity Survey ${r}`;case Mt.CandidateExperience:return`${e} Candidate Experience Survey ${r}`;case Mt.CandidateDataConsent:return`${e} Data Consent ${r}`;case Mt.Questionnaire:return`${e} Questionnaire ${r}`;case Mt.QualityOfHire:return`${e} Quality of Hire Survey ${r}`;case Mt.HiringManagerExperience:return`${e} Hiring Manager Experience Survey ${r}`;default:ko("Unknown survey type",t)}}Mt.Questionnaire+"",Mt.Questionnaire,Mt.CandidateExperience+"",Mt.CandidateExperience;var MZ;(function(e){e.NeverAnonymous="NeverAnonymous",e.AlwaysAnonymous="AlwaysAnonymous",e.AllowAnonymous="AllowAnonymous"})(MZ||(MZ={}));var RZ;(function(e){e.Draft="Draft",e.Pending="Pending",e.Submitted="Submitted"})(RZ||(RZ={}));var Wa;(function(e){e.diversitySurveyExternalLink="diversitySurveyExternalLink",e.eeocSurveyExternalLink="eeocSurveyExternalLink",e.candidateExperienceSurveyExternalLink="candidateExperienceSurveyExternalLink",e.dataConsentRequestExternalLink="dataConsentRequestExternalLink",e.questionnaireExternalLink="questionnaireExternalLink",e.hiringManagerExperienceSurveyExternalLink="hiringManagerExperienceSurveyExternalLink"})(Wa||(Wa={}));function uZe({identifier:e,withArticle:t}){const n=t?"a ":"",r=t?"an ":"";switch(e){case Wa.diversitySurveyExternalLink:return`${n}diversity survey link token`;case Wa.eeocSurveyExternalLink:return`${r}EEO survey link token`;case Wa.candidateExperienceSurveyExternalLink:return`${n}candidate experience survey link token`;case Wa.dataConsentRequestExternalLink:return`${n}data consent link token`;case Wa.questionnaireExternalLink:return`${n}questionnaire link token`;case Wa.hiringManagerExperienceSurveyExternalLink:return`${n}hiring manager experience survey link token`;default:ko("Unknown survey link context object identifier",e)}}function cZe(e){const n=dhe(e).map(r=>uZe({identifier:r,withArticle:!0}));return`You may only choose an email template that contains ${JQe(n)}`}function dhe(e){switch(e){case Mt.Diversity:return[Wa.diversitySurveyExternalLink];case Mt.EEOC:return[Wa.eeocSurveyExternalLink];case Mt.CandidateExperience:return[Wa.candidateExperienceSurveyExternalLink];case Mt.CandidateDataConsent:return[Wa.dataConsentRequestExternalLink];case Mt.Questionnaire:return[Wa.questionnaireExternalLink];case Mt.HiringManagerExperience:return[Wa.hiringManagerExperienceSurveyExternalLink];case Mt.QualityOfHire:return[];default:ko("Unknown survey type",e)}}var PZ;(function(e){e.MathisonDiversitySurvey="MathisonDiversitySurvey"})(PZ||(PZ={}));var FZ;(function(e){e.PerHiringManager="PerHiringManager",e.PerHiringManagerAndRecruiter="PerHiringManagerAndRecruiter"})(FZ||(FZ={}));const fhe=50*1024*1024,dZe=600*1024*1024;var fZe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pZe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},LZ;(function(e){e.historicalRates="historicalRates",e.custom="custom"})(LZ||(LZ={}));var Q5;(function(e){e.SummaryTable="summaryTable",e.PlanProgressBarChart="planProgressBarChart",e.StageSummaryBarChart="stageSummaryBarChart",e.CountOverTimeChart="countOverTimeChart",e.CountOverTimeLineChart="countOverTimeLineChart",e.PaceToGoalChart="paceToGoalChart"})(Q5||(Q5={}));var Z5;(function(e){e.Count="Count",e.Percent="Percent"})(Z5||(Z5={}));var BZ;(function(e){e.Overall="OVERALL",e.Weekly="WEEKLY"})(BZ||(BZ={}));var X5;(function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter"})(X5||(X5={}));Q5.SummaryTable,Z5.Count,X5.Week;let $Z=class{constructor(t){var n;this.targetCount=t.targetCount,this.planDateRange=t.planDateRange,this.baselineDateRange=(n=t.baselineDateRange)!==null&&n!==void 0?n:new Tg(Fn.local().minus({months:6}),Fn.local()),this.baselineDateField=t.baselineDateField,this.baselineFilterDimension=t.baselineFilterDimension,this.passthroughRates=t.passthroughRates,this.progressFilterDimension=t.progressFilterDimension,this.timezone=t.timezone}isBaselineValid(){return this.passthroughRates!=null&&this.passthroughRates.differsFromInterviewPlan!==!0}isValid(){return this.isBaselineValid()}copy(){return new this.constructor({targetCount:this.targetCount,planDateRange:this.planDateRange,baselineDateRange:this.baselineDateRange,baselineDateField:this.baselineDateField,baselineFilterDimension:this.baselineFilterDimension,progressFilterDimension:this.progressFilterDimension,timezone:this.timezone,passthroughRates:this.passthroughRates})}};$Z=fZe([ne("RecruitingPlanConfig"),pZe("design:paramtypes",[Object])],$Z);var e7;(function(e){e.Image="Image"})(e7||(e7={}));const mZe=(e,t,n,...r)=>({description:t,type:n,suffixes:r,category:e}),Yf=mZe.bind(null,e7.Image);Yf("Bitmap","image/bmp","bmp"),Yf("graphic interchange format","image/gif","gif"),Yf("JPEG image","image/jpeg","jpe","jpeg","jpg","jif","jfif"),Yf("JPEG file interchange format","image/pipeg","jfif","jpe","jpeg","jpg"),Yf("scalable vector graphic","image/svg+xml","svg"),Yf("TIF image","image/tiff","tif","tiff"),Yf("Portable Network Graphics","image/png","png");var UZ;(function(e){e.profile="https://www.googleapis.com/auth/userinfo.profile",e.email="https://www.googleapis.com/auth/userinfo.email",e.gmailSend="https://www.googleapis.com/auth/gmail.send",e.gmailRead="https://www.googleapis.com/auth/gmail.readonly",e.gmailMetadata="https://www.googleapis.com/auth/gmail.metadata",e.gmailSettingsBasic="https://www.googleapis.com/auth/gmail.settings.basic",e.calendar="https://www.googleapis.com/auth/calendar",e.calendarRead="https://www.googleapis.com/auth/calendar.readonly",e.calendarEvents="https://www.googleapis.com/auth/calendar.events",e.domainCalendarRead="https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly",e.domainUserRead="https://www.googleapis.com/auth/admin.directory.user.readonly"})(UZ||(UZ={}));var HZ;(function(e){e.profile="https://www.googleapis.com/auth/userinfo.profile",e.email="https://www.googleapis.com/auth/userinfo.email",e.gmailRead="https://www.googleapis.com/auth/gmail.readonly",e.gmailSend="https://www.googleapis.com/auth/gmail.send",e.calendar="https://www.googleapis.com/auth/calendar",e.calendarRead="https://www.googleapis.com/auth/calendar.readonly",e.calendarEvents="https://www.googleapis.com/auth/calendar.events"})(HZ||(HZ={}));G.OpeningVersion,G.OfferVersion;var hZe={},gZe=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),phe="%[a-f0-9]{2}",VZ=new RegExp("("+phe+")|([^%]+?)","gi"),zZ=new RegExp("("+phe+")+","gi");function t7(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],t7(n),t7(r))}function vZe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(VZ)||[],n=1;n{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},TZe=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;ay==null,o=Symbol("encodeFragmentIdentifier");function s(y){switch(y.arrayFormat){case"index":return b=>(T,_)=>{const E=T.length;return _===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),"[",E,"]"].join("")]:[...T,[c(b,y),"[",c(E,y),"]=",c(_,y)].join("")]};case"bracket":return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),"[]"].join("")]:[...T,[c(b,y),"[]=",c(_,y)].join("")];case"colon-list-separator":return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),":list="].join("")]:[...T,[c(b,y),":list=",c(_,y)].join("")];case"comma":case"separator":case"bracket-separator":{const b=y.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(_,E)=>E===void 0||y.skipNull&&E===null||y.skipEmptyString&&E===""?_:(E=E===null?"":E,_.length===0?[[c(T,y),b,c(E,y)].join("")]:[[_,c(E,y)].join(y.arrayFormatSeparator)])}default:return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,c(b,y)]:[...T,[c(b,y),"=",c(_,y)].join("")]}}function l(y){let b;switch(y.arrayFormat){case"index":return(T,_,E)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){E[T]=_;return}E[T]===void 0&&(E[T]={}),E[T][b[1]]=_};case"bracket":return(T,_,E)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){E[T]=_;return}if(E[T]===void 0){E[T]=[_];return}E[T]=[].concat(E[T],_)};case"colon-list-separator":return(T,_,E)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){E[T]=_;return}if(E[T]===void 0){E[T]=[_];return}E[T]=[].concat(E[T],_)};case"comma":case"separator":return(T,_,E)=>{const k=typeof _=="string"&&_.includes(y.arrayFormatSeparator),A=typeof _=="string"&&!k&&d(_,y).includes(y.arrayFormatSeparator);_=A?d(_,y):_;const D=k||A?_.split(y.arrayFormatSeparator).map(R=>d(R,y)):_===null?_:d(_,y);E[T]=D};case"bracket-separator":return(T,_,E)=>{const k=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!k){E[T]=_&&d(_,y);return}const A=_===null?[]:_.split(y.arrayFormatSeparator).map(D=>d(D,y));if(E[T]===void 0){E[T]=A;return}E[T]=[].concat(E[T],A)};default:return(T,_,E)=>{if(E[T]===void 0){E[T]=_;return}E[T]=[].concat(E[T],_)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,b){return b.encode?b.strict?t(y):encodeURIComponent(y):y}function d(y,b){return b.decode?n(y):y}function f(y){return Array.isArray(y)?y.sort():typeof y=="object"?f(Object.keys(y)).sort((b,T)=>Number(b)-Number(T)).map(b=>y[b]):y}function p(y){const b=y.indexOf("#");return b!==-1&&(y=y.slice(0,b)),y}function m(y){let b="";const T=y.indexOf("#");return T!==-1&&(b=y.slice(T)),b}function h(y){y=p(y);const b=y.indexOf("?");return b===-1?"":y.slice(b+1)}function g(y,b){return b.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):b.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function v(y,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),u(b.arrayFormatSeparator);const T=l(b),_=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return _;for(const E of y.split("&")){if(E==="")continue;let[k,A]=r(b.decode?E.replace(/\+/g," "):E,"=");A=A===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?A:d(A,b),T(d(k,b),A,_)}for(const E of Object.keys(_)){const k=_[E];if(typeof k=="object"&&k!==null)for(const A of Object.keys(k))k[A]=g(k[A],b);else _[E]=g(k,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((E,k)=>{const A=_[k];return A&&typeof A=="object"&&!Array.isArray(A)?E[k]=f(A):E[k]=A,E},Object.create(null))}e.extract=h,e.parse=v,e.stringify=(y,b)=>{if(!y)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),u(b.arrayFormatSeparator);const T=A=>b.skipNull&&a(y[A])||b.skipEmptyString&&y[A]==="",_=s(b),E={};for(const A of Object.keys(y))T(A)||(E[A]=y[A]);const k=Object.keys(E);return b.sort!==!1&&k.sort(b.sort),k.map(A=>{const D=y[A];return D===void 0?"":D===null?c(A,b):Array.isArray(D)?D.length===0&&b.arrayFormat==="bracket-separator"?c(A,b)+"[]":D.reduce(_(A),[]).join("&"):c(A,b)+"="+c(D,b)}).filter(A=>A.length>0).join("&")},e.parseUrl=(y,b)=>{b=Object.assign({decode:!0},b);const[T,_]=r(y,"#");return Object.assign({url:T.split("?")[0]||"",query:v(h(y),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:d(_,b)}:{})},e.stringifyUrl=(y,b)=>{b=Object.assign({encode:!0,strict:!0,[o]:!0},b);const T=p(y.url).split("?")[0]||"",_=e.extract(y.url),E=e.parse(_,{sort:!1}),k=Object.assign(E,y.query);let A=e.stringify(k,b);A&&(A=`?${A}`);let D=m(y.url);return y.fragmentIdentifier&&(D=`#${b[o]?c(y.fragmentIdentifier,b):y.fragmentIdentifier}`),`${T}${A}${D}`},e.pick=(y,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[o]:!1},T);const{url:_,query:E,fragmentIdentifier:k}=e.parseUrl(y,T);return e.stringifyUrl({url:_,query:i(E,b),fragmentIdentifier:k},T)},e.exclude=(y,b,T)=>{const _=Array.isArray(b)?E=>!b.includes(E):(E,k)=>!b(E,k);return e.pick(y,_,T)}})(hZe);var Lg;(function(e){e.Pending="pending",e.Approved="approved",e.Rejected="rejected",e.Cancelled="cancelled",e.Overridden="overridden",e.NotStarted="not started"})(Lg||(Lg={}));const _Ze=[Lg.Approved,Lg.Overridden];[..._Ze,Lg.Cancelled,Lg.Rejected];var qZ;(function(e){e.Active="active",e.Archived="archived",e.Draft="draft",e.Superseded="superseded"})(qZ||(qZ={}));var WZ;(function(e){e.Offer="offer",e.Job="job",e.Opening="opening"})(WZ||(WZ={}));var jZ;(function(e){e.Approve="approve",e.Reject="reject"})(jZ||(jZ={}));var GZ;(function(e){e.Always="always",e.Conditional="conditional",e.Never="never"})(GZ||(GZ={}));sf.IsConfidential+"",Xp.define(new Z2({path:sf.IsConfidential,humanReadablePath:"Is Confidential",title:""}),Of.equals(!1));lS.IsConfidential+"",Xp.define(new Z2({path:lS.IsConfidential,humanReadablePath:"Is Confidential",title:""}),Of.equals(!1));var JZ;(function(e){e.ApprovalProcessInScope="ApprovalProcessInScope",e.RequiresReapprovalFieldChanged="RequiresReapprovalFieldChanged"})(JZ||(JZ={}));G.Job,G.OfferVersion,G.OpeningVersion;var YZ;(function(e){e.BuiltInField="BuiltInField",e.CustomField="CustomField",e.ProcessRole="ProcessRole"})(YZ||(YZ={}));var KZ;(function(e){e.title="jobs_title",e.team="jobs_team",e.location="jobs_location",e.employmentType="jobs_employment_type",e.requisitionId="jobs_requisition_id"})(KZ||(KZ={}));var QZ;(function(e){e.job="offers_job",e.location="offers_location"})(QZ||(QZ={}));var ZZ;(function(e){e.id="openings_id",e.idAndDescription="openings_id_and_description",e.team="openings_team"})(ZZ||(ZZ={}));var XZ;(function(e){e.LeadInactivity="LeadInactivity",e.ApplicantInactivity="ApplicantInactivity",e.Consent="Consent"})(XZ||(XZ={}));var eX;(function(e){e.takeHomeLink="takeHomeLink"})(eX||(eX={}));var tX;(function(e){e.Startups="Startups",e.Analytics="Analytics",e.FullProduct="FullProduct"})(tX||(tX={}));var nX;(function(e){e.userNotFound="User not found."})(nX||(nX={}));var rX;(function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"})(rX||(rX={}));var iX;(function(e){e[e.Low=0]="Low",e[e.MediumLow=1]="MediumLow",e[e.Medium=2]="Medium",e[e.MediumHigh=3]="MediumHigh",e[e.High=4]="High"})(iX||(iX={}));var aX;(function(e){e.Default="Default",e.ReportTooLarge="ReportTooLarge",e.QueryTimeout="QueryTimeout",e.MissingField="MissingField",e.PIIError="PIIError",e.TooManyGroups="TooManyGroups"})(aX||(aX={}));ve.Boolean,ve.String,ve.Number,ve.Date,ve.MultiValueSelect,ve.ValueSelect;var Sh;(function(e){e.Never="Never",e.AfterSubmission="AfterSubmission",e.Always="Always"})(Sh||(Sh={}));Sh.AfterSubmission,Sh.AfterSubmission,Sh.AfterSubmission,Sh.AfterSubmission;var jh;(function(e){e.A4="A4",e.LETTER="LETTER",e.LEGAL="LEGAL"})(jh||(jh={}));jh.A4,jh.LETTER,jh.LEGAL;var Ge;(function(e){e.None="None",e.TalentProject="TalentProject",e.ArchiveReason="ArchiveReason",e.ContentGroup="ContentGroup",e.Team="Team",e.Location="Location",e.InterviewStage="InterviewStage",e.InterviewPlan="InterviewPlan",e.CandidateTag="CandidateTag",e.Job="Job",e.JobCriteriaSet="JobCriteriaSet",e.JobIncludingArchived="JobIncludingArchived",e.JobIncludingTemplatesWithInterviewPlan="JobIncludingTemplatesWithInterviewPlan",e.EmailTemplate="EmailTemplate",e.FromEmail="FromEmail",e.CampaignTemplate="CampaignTemplate",e.Source="Source",e.CreditedTo="CreditedTo",e.PageSize="PageSize",e.Assessment="Assessment",e.ProcessRole="ProcessRole",e.ProcessRoleType="ProcessRoleType",e.User="User",e.EmployeeSurvey="EmployeeSurvey",e.HiringEvent="HiringEvent",e.SurveyForm="SurveyForm",e.NewsletterTemplate="NewsletterTemplate",e.Application="Application",e.GlobalRole="GlobalRole"})(Ge||(Ge={}));var rn;(function(e){e.NamedId="NamedId",e.SimpleId="SimpleId",e.Boolean="Boolean",e.String="String",e.Delay="Delay",e.Email="Email",e.PageSize="PageSize",e.Assessment="Assessment",e.ProcessRole="ProcessRole",e.EmailTemplate="EmailTemplate",e.GlobalRole="GlobalRole",e.StageMapping="StageMapping"})(rn||(rn={}));const Ff=void 0;function st({label:e,disclosure:t,source:n,sourceMeta:r=Ff,isOptional:i,isMulti:a,dependsOn:o,shouldRender:s}){return{label:e,disclosure:t,type:rn.NamedId,source:n,sourceMeta:r,isMulti:a!==void 0?a:!1,isOptional:i!==void 0?i:!1,dependsOn:o??null,defaultValue:null,shouldRender:s}}function Lb({label:e,disclosure:t,isOptional:n,isMulti:r,dependsOn:i,shouldRender:a}){return{label:e,disclosure:t,type:rn.SimpleId,source:Ge.None,sourceMeta:Ff,isMulti:r!==void 0?r:!1,isOptional:n!==void 0?n:!1,dependsOn:i??null,defaultValue:null,shouldRender:a}}function Bb({label:e,disclosure:t,type:n,dependsOn:r,defaultValue:i,shouldRender:a}){return{label:e,type:n,disclosure:t,source:Ge.None,sourceMeta:Ff,isMulti:!1,isOptional:!1,dependsOn:r??null,defaultValue:i,shouldRender:a}}function Nn({label:e,disclosure:t,dependsOn:n,defaultValue:r,shouldRender:i}){return Bb({label:e,disclosure:t,type:rn.Boolean,dependsOn:n,defaultValue:r,shouldRender:i})}function $b({label:e,disclosure:t,defaultValue:n,isMulti:r,isOptional:i,shouldRender:a}){return{label:e,disclosure:t,type:rn.String,source:Ge.None,sourceMeta:Ff,dependsOn:null,defaultValue:n,isMulti:r!==void 0?r:!1,isOptional:i!==void 0?i:!1,shouldRender:a}}function Bg({label:e,disclosure:t,type:n,source:r,sourceMeta:i=Ff,dependsOn:a,defaultValue:o,shouldRender:s,isMulti:l}){return{label:e,disclosure:t,type:n,source:r,sourceMeta:i,isMulti:l!==void 0?l:!1,isOptional:!1,dependsOn:a??null,defaultValue:o,shouldRender:s}}function EZe({label:e,disclosure:t,defaultValue:n,isOptional:r,shouldRender:i}){return{label:e,disclosure:t,type:rn.ProcessRole,source:Ge.ProcessRole,sourceMeta:Ff,dependsOn:null,defaultValue:n,isMulti:!0,isOptional:r!==void 0?r:!1,shouldRender:i}}function mhe({label:e,hint:t,requiredTokens:n,dependsOn:r,isOptional:i}){return{label:e??"Email Template",hint:t,type:rn.EmailTemplate,source:Ge.EmailTemplate,sourceMeta:Ff,defaultValue:void 0,isMulti:!1,dependsOn:r??null,isOptional:i!==void 0?i:!1,requiredTokens:n}}function wZe({label:e,disclosure:t,shouldRender:n,isOptional:r}){return{label:e,disclosure:t,type:rn.StageMapping,sourceMeta:Ff,source:Ge.None,isMulti:!1,isOptional:r!==void 0?r:!1,defaultValue:null,shouldRender:n}}function kZe({paramsDef:e,params:t}){const n=Object.keys(e);for(const r of n){const i=e[r],a=t[r];if(hhe(r,e,t)){if(!i.isOptional&&a===void 0)throw new Error(`Non optional parameter '${r}' has no supplied value`);if(a!=null){if(i.isMulti)if(Array.isArray(a)){if(a.some(s=>!oX(s,i)))throw new Error(`Multi-parameter '${r}' has invalid value for type '${i.type}': ${JSON.stringify(a)})`)}else throw new Error(`Multi-parameter '${r}' is not an array`);else if(!oX(a,i))throw new Error(`Parameter '${r}' has invalid value for type '${i.type}': ${JSON.stringify(a)})`)}}}return!0}function hhe(e,t,n){const r=t[e];if(r.dependsOn==null)return!0;const i=t[r.dependsOn];return(i.type===rn.Boolean?n[r.dependsOn]===!0:n[r.dependsOn]!=null)&&(i.dependsOn==null||hhe(i.dependsOn,t,n))}function oX(e,t){var n,r;switch(t.type){case rn.SimpleId:return typeof e=="string";case rn.NamedId:return typeof e=="object"&&typeof e.id=="string";case rn.Boolean:return typeof e=="boolean";case rn.String:return typeof e=="string";case rn.Email:return typeof e=="string";case rn.Delay:return typeof e=="object";case rn.PageSize:return typeof e=="object"&&typeof e.label=="string"&&typeof e.value=="string"?jh[e.value]!==void 0:!1;case rn.GlobalRole:return typeof e=="object"&&typeof e.label=="string"&&typeof e.value=="string"?Object.values(Xc).find(a=>a===e.value)!=null:!1;case rn.Assessment:return typeof e=="object"&&typeof e.integrationId=="string"&&typeof e.assessmentTypeId=="string";case rn.ProcessRole:return typeof((n=e==null?void 0:e.user)===null||n===void 0?void 0:n.id)=="string"&&typeof((r=e==null?void 0:e.processRoleType)===null||r===void 0?void 0:r.id)=="string";case rn.EmailTemplate:return typeof e=="object"&&typeof e.id=="string"&&typeof e.title=="string";case rn.StageMapping:return typeof e=="object"&&"mapping"in e&&Array.isArray(e.mapping)&&e.mapping.every(i=>typeof i=="object"&&"from"in i&&"to"in i&&typeof i.from=="object"&&typeof i.to=="object"&&typeof i.from.id=="string"&&typeof i.to.id=="string");default:ko("Unknown parameter type",t.type)}}var lt=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};G.AgencyTeamSecurityRole,G.Application,G.ApplicationFormDefinition,G.ArchiveReason,G.Campaign,G.Candidate,G.EmailTemplate,G.Employee,G.FeedbackFormDefinition,G.HiringEvent,G.HiringEventAudienceMember,G.InterviewDefinition,G.InterviewEvent,G.InterviewPlan,G.InterviewSchedule,G.Job,G.JobPosting,G.Location,G.NewsletterEnrollment,G.Note,G.OnboardingWorkflow,G.Opening,G.ProcessUserTaskInstance,G.QualityOfHireEnrollment,G.Requisition,G.TakeHomeSchedule,G.Team,G.TextMessage,G.UserTeamSecurityRole;var mt;(function(e){e.Edit="Edit",e.Action="Action"})(mt||(mt={}));const AZe=[];function ghe(e,t,n){const r=t[e];if(r==null)throw new Error(`ObjectType ${e} does not support ${n}`);return r.parameters}function CZe(e,t,n){var r;const i=t[e];if(i==null)throw new Error(`ObjectType ${e} does not support ${n}`);return(r=i.message)!==null&&r!==void 0?r:null}function NZe(e,t,n){var r;const i=t[e];if(i==null)throw new Error(`ObjectType ${e} does not support ${n}`);return(r=i.progressText)!==null&&r!==void 0?r:null}function ut(e){return function(t){var n;const r=t;r.__object_action_definition=e;const i=e.objectTypes;return AZe.push({...e,actionClass:t,parameters:a=>ghe(a,i,e.type),message:a=>CZe(a,i,e.type),isDestructive:(n=e.isDestructive)!==null&&n!==void 0?n:!1,progressText:a=>NZe(a,i,e.type)}),t}}class ct{constructor(t){this.parameters=t}get definition(){const t=this.constructor.__object_action_definition;if(t==null)throw new Error("ObjectActionDefinition not set up. Did you apply the ObjectActionDescriptor?");return t}get label(){return this.definition.label}get type(){return this.definition.type}get supportedObjectTypes(){return Object.keys(this.definition.objectTypes)}get delayLabel(){var t,n;return(n=(t=this.definition.delay)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:null}shouldDelay(){var t,n;return(n=(t=this.definition.delay)===null||t===void 0?void 0:t.shouldDelay(this.parameters))!==null&&n!==void 0?n:!1}assertValid(t){const n=ghe(t,this.definition.objectTypes,this.definition.type);kZe({paramsDef:n,params:this.parameters})}}var rt;(function(e){e.addToHiringEvent="addToHiringEvent",e.addToTalentProject="addToTalentProject",e.anonymizeCandidate="anonymizeCandidate",e.applyNewTemplate="applyNewTemplate",e.archive="archive",e.archiveJobConsideration="archiveJobConsideration",e.cancelCampaign="cancelCampaign",e.changeArchiveReason="changeArchiveReason",e.changeInterviewStage="changeInterviewStage",e.considerForJob="considerForJob",e.copyInterviewPlanToJob="copyInterviewPlanToJob",e.createCandidateReviewRequest="createCandidateReviewRequest",e.createSingleEmailDraft="createSingleEmailDraft",e.createSourcingCampaignDraft="createSourcingCampaignDraft",e.delete="delete",e.demo="demo",e.editCandidateTags="editCandidateTags",e.editLiveCampaign="editLiveCampaign",e.enrollInEmployeeSurvey="enrollInEmployeeSurvey",e.enrollInNewsletter="enrollInNewsletter",e.evaluateJobCriteria="evaluateJobCriteria",e.executeCampaign="executeCampaign",e.exportFeedbackPDF="exportFeedbackPDF",e.exportPDF="exportPDF",e.mapToNewInterviewPlan="mapToNewInterviewPlan",e.markCandidateAsDoNotContact="markCandidateAsDoNotContact",e.moveToInterviewStage="moveToInterviewStage",e.moveToWorkflowVersion="moveToWorkflowVersion",e.pauseCampaign="pauseCampaign",e.prepareCohortCampaignForEdit="prepareCohortCampaignForEdit",e.prepareLiveCampaignForEdit="prepareLiveCampaignForEdit",e.removeFromHiringEvent="removeFromHiringEvent",e.removeFromTalentProject="removeFromTalentProject",e.removeInterviewPlanAndMoveApplicationsToPrimary="removeInterviewPlanAndMoveApplicationsToPrimary",e.replaceHiringTeamRole="replaceHiringTeamRole",e.resolveUserTask="resolveUserTask",e.sendCandidateDataConsentSurveyWithEmail="sendCandidateDataConsentSurveyWithEmail",e.sendCandidateExperienceSurveyWithEmail="sendCandidateExperienceSurveyWithEmail",e.sendDiversitySurveyWithEmail="sendDiversitySurveyWithEmail",e.sendEEOCSurveyWithEmail="sendEEOCSurveyWithEmail",e.setArchiveReason="setArchiveReason",e.setContentGroup="setContentGroup",e.setEmployeeGlobalRole="setEmployeeGlobalRole",e.setEmployeeGlobalRoleAutomation="setEmployeeGlobalRoleAutomation",e.setLocation="setLocation",e.setTeam="setTeam",e.startAssessment="startAssessment",e.transferApplications="transferApplications",e.transferToJob="transferToJob",e.unpauseCampaign="unpauseCampaign",e.updateHiringTeam="updateHiringTeam"})(rt||(rt={}));let sX=class extends ct{};sX=lt([ut({type:rt.delete,label:"Delete",category:mt.Action,isDestructive:!0,objectTypes:{[G.Team]:{parameters:{}},[G.Location]:{parameters:{}},[G.ArchiveReason]:{parameters:{},message:null},[G.Candidate]:{parameters:{},message:{text:"Only archived candidates can be deleted. Archive all the candidate's job considerations if you want to delete them.",isWarning:!0}}}}),ne("DeleteObjectAction")],sX);const IZe={newArchiveReason:st({label:"New archive reason",source:Ge.ArchiveReason,isOptional:!0}),oldArchiveReason:st({label:"Existing archive reason",source:Ge.ArchiveReason,isOptional:!0})};let lX=class extends ct{};lX=lt([ut({type:rt.setArchiveReason,label:"Set Archive Reason",category:mt.Edit,objectTypes:{[G.Application]:{parameters:IZe}}}),ne("SetArchiveReasonObjectAction")],lX);const d_={newContentGroup:st({label:"New content group",source:Ge.ContentGroup,isOptional:!0}),oldContentGroup:st({label:"Existing content group",source:Ge.ContentGroup,isOptional:!0})};let uX=class extends ct{};uX=lt([ut({type:rt.setContentGroup,label:"Set Group",category:mt.Edit,objectTypes:{[G.InterviewDefinition]:{parameters:d_},[G.FeedbackFormDefinition]:{parameters:d_},[G.ApplicationFormDefinition]:{parameters:d_},[G.EmailTemplate]:{parameters:d_}}}),ne("SetContentGroupAction")],uX);const f_={newTeam:st({label:"New team",source:Ge.Team,isOptional:!0}),oldTeam:st({label:"Existing team",source:Ge.Team,isOptional:!0})};let cX=class extends ct{};cX=lt([ut({type:rt.setTeam,label:"Set Team",category:mt.Edit,objectTypes:{[G.Job]:{parameters:f_},[G.Requisition]:{parameters:f_},[G.UserTeamSecurityRole]:{parameters:f_},[G.AgencyTeamSecurityRole]:{parameters:f_}}}),ne("SetTeamAction")],cX);let dX=class extends ct{};dX=lt([ut({type:rt.archive,label:"Archive",category:mt.Action,objectTypes:{[G.Team]:{parameters:{}},[G.Location]:{parameters:{}}}}),ne("ArchiveObjectAction")],dX);const p_={newLocation:st({label:"New location",source:Ge.Location,isOptional:!0}),oldLocation:st({label:"Existing location",source:Ge.Location,isOptional:!0})};let fX=class extends ct{};fX=lt([ut({type:rt.setLocation,label:"Set Location",category:mt.Edit,objectTypes:{[G.Job]:{parameters:p_},[G.JobPosting]:{parameters:p_},[G.Opening]:{parameters:p_},[G.UserTeamSecurityRole]:{parameters:p_}}}),ne("SetLocationAction")],fX);const OZe={newInterviewPlan:st({label:"New interview plan",source:Ge.InterviewPlan}),oldInterviewPlan:st({label:"Existing interview plan",source:Ge.InterviewPlan})};let pX=class extends ct{};pX=lt([ut({type:rt.transferApplications,label:"Move to Interview Plan",category:mt.Action,objectTypes:{[G.InterviewPlan]:{parameters:OZe}}}),ne("TransferApplicationsAction")],pX);const DZe={newInterviewStage:st({label:"New interview stage",source:Ge.InterviewStage,isOptional:!0}),oldInterviewStage:st({label:"Existing interview stage",source:Ge.InterviewStage,isOptional:!0}),newInterviewPlanAllowList:Lb({label:"Allow list",isMulti:!0,isOptional:!0})};let mX=class extends ct{};mX=lt([ut({type:rt.moveToInterviewStage,label:"Move to Interview Stage",category:mt.Action,objectTypes:{[G.Application]:{parameters:DZe}}}),ne("MoveToInterviewStageAction")],mX);const vhe={talentProject:st({label:"Talent project",source:Ge.TalentProject})};let hX=class extends ct{};hX=lt([ut({type:rt.addToTalentProject,label:"Add to Project",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:vhe}}}),ne("AddToTalentProjectObjectAction")],hX);let gX=class extends ct{};gX=lt([ut({type:rt.removeFromTalentProject,label:"Remove from Project",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:vhe}}}),ne("RemoveFromTalentProjectObjectAction")],gX);const xZe={tags:st({label:"Tags",source:Ge.CandidateTag,isMulti:!0}),replaceExistingTags:Nn({label:"Clear existing?"})};let vX=class extends ct{};vX=lt([ut({type:rt.editCandidateTags,label:"Set Tags",category:mt.Edit,objectTypes:{[G.Candidate]:{parameters:xZe}}}),ne("EditCandidateTagsObjectAction")],vX);const MZe={title:$b({label:"Title",isOptional:!1})};let yX=class extends ct{};yX=lt([ut({type:rt.createCandidateReviewRequest,label:"Request Review",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:MZe}}}),ne("CreateCandidateReviewObjectAction")],yX);let SX=class extends ct{};SX=lt([ut({type:rt.anonymizeCandidate,label:"Anonymize",category:mt.Action,isDestructive:!0,objectTypes:{[G.Candidate]:{parameters:{},message:{text:"Only archived candidates can be anonymized. Archive all the candidate's job considerations if you want to anonymize their data. This action cannot be undone.",isWarning:!0}}}}),ne("AnonymizeCandidateObjectAction")],SX);const yhe={archiveReason:st({label:"Archive Reason",source:Ge.ArchiveReason}),stopFeedbackReminders:Nn({label:"Stop Feedback Reminders?"}),sendRejectionEmail:Nn({label:"Notify Rejected Applicants?"}),fromEmail:Bg({type:rn.Email,source:Ge.FromEmail,label:"From Address",dependsOn:"sendRejectionEmail"}),rejectionEmailTemplate:mhe({label:"Rejection Template",dependsOn:"sendRejectionEmail"}),rejectionSchedule:Bb({type:rn.Delay,label:"Schedule",dependsOn:"sendRejectionEmail"})},RZe={job:st({label:"Candidate's Job",source:Ge.JobIncludingArchived}),...yhe};let bX=class extends ct{};bX=lt([ut({type:rt.archiveJobConsideration,label:"Archive",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:RZe,message:{text:"Archive candidates' job considerations for a specific job and optionally send a rejection email.",isWarning:!1}},[G.Application]:{parameters:yhe,message:{text:"Archive job considerations and optionally send a rejection email.",isWarning:!1}}}}),ne("ArchiveJobConsiderationObjectAction")],bX);const PZe={job:st({label:"Job",source:Ge.Job}),interviewPlan:st({label:"Interview Plan",source:Ge.InterviewPlan,dependsOn:"job"}),interviewStage:st({label:"Initial Interview Stage",source:Ge.InterviewStage,dependsOn:"interviewPlan"}),startAutomaticActivities:Nn({label:"Start Automatic Activities?",disclosure:"Uncheck this box if you would not like the pre-configured automatic activities to start during this bulk action.",defaultValue:!0,dependsOn:"interviewStage",shouldRender:(e,t)=>t.hasAutomaticActivities}),attribution:Nn({label:"Override Attribution?",disclosure:"By default, the values will be copied from the most recent application's (or candidate if there are no applications) attribution fields to the new job consideration. You may override those here.",defaultValue:!1}),source:st({label:"Source",disclosure:"If this field is left blank, the candidate's source will be used instead.",source:Ge.Source,isOptional:!0,dependsOn:"attribution"}),creditedTo:st({label:"Credited To",disclosure:"If this field is left blank, the candidate's credited to will be used instead.",source:Ge.CreditedTo,isOptional:!0,dependsOn:"attribution"})};let TX=class extends ct{};TX=lt([ut({type:rt.considerForJob,label:"Consider for Job",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:PZe,message:{text:"Consider candidates for a job.",isWarning:!1}}},delay:{shouldDelay:e=>e.startAutomaticActivities===!0,label:"This 'Change Stage' Bulk Action is sending out activities."}}),ne("ConsiderForJobObjectAction")],TX);const She={job:st({label:"New Job",source:Ge.Job}),interviewPlan:st({label:"New Interview Plan",source:Ge.InterviewPlan,dependsOn:"job"}),interviewStage:st({label:"Initial Interview Stage",source:Ge.InterviewStage,dependsOn:"interviewPlan"}),startAutomaticActivities:Nn({label:"Start Automatic Activities?",disclosure:"Uncheck this box if you would not like the pre-configured automatic activities to start during this bulk action.",defaultValue:!0,dependsOn:"interviewStage",shouldRender:(e,t)=>t.hasAutomaticActivities}),attribution:Nn({label:"Override Attribution?",disclosure:"By default, the values will be copied from the source job consideration's attribution fields to the new job considerations attribution fields. You may override those here.",defaultValue:!1}),source:st({label:"Source",disclosure:"If this field is left blank, the source job consideration's source will be used instead.",source:Ge.Source,isOptional:!0,dependsOn:"attribution"}),creditedTo:st({label:"Credited To",disclosure:"If this field is left blank, the source job considerations's credited to will be used instead.",source:Ge.CreditedTo,isOptional:!0,dependsOn:"attribution"})},FZe={fromSpecificJob:Nn({label:"Transfer Candidates from a Specific Job?",disclosure:"If you don't specify a source job, only candidates with a single job consideration will be transferred.",defaultValue:!0}),sourceJob:st({label:"Currently Considered for Job",source:Ge.Job,dependsOn:"fromSpecificJob"}),...She};let _X=class extends ct{};_X=lt([ut({type:rt.transferToJob,label:"Transfer",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:FZe,message:{text:"Transfer candidates with an existing job consideration to a new job or interview plan. The transfer process will skip candidates with more than one job consideration unless you select a specific job as the source.",isWarning:!1}},[G.Application]:{parameters:She,message:{text:"Transfer a job consideration to a new job or interview plan.",isWarning:!1}}},delay:{shouldDelay:e=>e.startAutomaticActivities===!0,label:"This 'Change Stage' Bulk Action is sending out activities."}}),ne("TransferToJobObjectAction")],_X);const LZe={job:st({label:"Job",source:Ge.Job}),fromInterviewPlan:st({label:"From Interview Plan",source:Ge.InterviewPlan}),toInterviewPlan:st({label:"To Interview Plan",source:Ge.InterviewPlan}),mapOnlyActiveInterviewStages:Nn({label:"Map only active interview stages",disclosure:"If checked, only candidates that are currently on an active interview stage will be moved to the new interview plan",defaultValue:!0}),shouldTransferActivities:Nn({label:"Transfer activities",disclosure:"If checked, activities will be transferred to the new interview plan",defaultValue:!0}),shouldRemoveOldInterviewPlan:Nn({label:"Remove old interview plan",disclosure:"If checked, the 'from' interview plan will be removed from this job. If it is local, it will be archived.",defaultValue:!1}),shouldSwitchPrimaryPlanOnJob:Nn({label:"Switch primary plan on job",disclosure:"If checked, the 'to' interview plan will be made the primary plan for this job",defaultValue:!1}),shouldPublishWebhook:Nn({label:"Publish webhook",disclosure:"If checked, a webhook will be published when this transfer is completed",defaultValue:!1}),shouldPublishAppEventForUpdatedPlanOnJob:Nn({label:"Publish app event for updated plan on job",disclosure:"If checked, an app event will be published when the 'to' interview plan is updated on the job",defaultValue:!1}),stageMapping:wZe({label:"Stage Mapping",disclosure:"Map the stages of the application history to the new interview plan"})};let EX=class extends ct{};EX=lt([ut({type:rt.mapToNewInterviewPlan,label:"Map History to Interview Plan",category:mt.Edit,objectTypes:{[G.Application]:{parameters:LZe,message:{text:"Map the application history of candidates to a new interview plan.",isWarning:!1}}}}),ne("MapToNewInterviewPlanObjectAction")],EX);const BZe={};let wX=class extends ct{};wX=lt([ut({type:rt.markCandidateAsDoNotContact,label:"Mark as Do Not Contact",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:BZe,message:{text:"Mark candidates as Do Not Contact to cancel all running sequences and prevent future outreach via Ashby.",isWarning:!0}}}}),ne("MarkCandidateAsDoNotContactAction")],wX);const RO={addDelay:Nn({label:"Add an artificial delay to each action?"}),failValidation:Nn({label:"Fail validation"})},PO={text:"This action has no side-effects. You can use it as a non-destructive way to test the bulk action framework.",isWarning:!1};let kX=class extends ct{};kX=lt([ut({type:rt.demo,label:"Demo",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:RO,message:PO},[G.Application]:{parameters:RO,message:PO},[G.Job]:{parameters:RO,message:PO}}}),ne("DemoAction")],kX);const $Ze={job:st({label:"Job",source:Ge.Job}),interviewPlan:st({label:"Interview Plan",source:Ge.InterviewPlan,dependsOn:"job"}),interviewStage:st({label:"New Interview Stage",source:Ge.InterviewStage,dependsOn:"interviewPlan"}),startAutomaticActivities:Nn({label:"Start Automatic Activities?",disclosure:"Uncheck this box if you would not like the pre-configured automatic activities to start during this bulk action.",defaultValue:!0,dependsOn:"interviewStage",shouldRender:(e,t)=>t.hasAutomaticActivities}),completePendingInterviews:Nn({label:"Complete Pending Interviews?"})};let AX=class extends ct{};AX=lt([ut({type:rt.changeInterviewStage,label:"Change Stage",category:mt.Action,objectTypes:{[G.Application]:{parameters:$Ze,message:{text:"Change candidates' interview stage for a specific job and interview plan. The action will skip Candidates that are not using the selected interview plan.",isWarning:!1}}},delay:{shouldDelay:e=>e.startAutomaticActivities===!0,label:"This 'Change Stage' Bulk Action is sending out activities."}}),ne("ChangeInterviewStageObjectAction")],AX);const UZe={archiveReason:st({label:"New Archive Reason",source:Ge.ArchiveReason})};let CX=class extends ct{};CX=lt([ut({type:rt.changeArchiveReason,label:"Change Archive Reason",category:mt.Action,objectTypes:{[G.Application]:{parameters:UZe,message:{text:"Change the archive reason of archived job considerations.",isWarning:!1}}}}),ne("ChangeArchiveReasonObjectAction")],CX);const NX={campaignTemplate:st({label:"Template",source:Ge.CampaignTemplate})};let IX=class extends ct{};IX=lt([ut({type:rt.createSingleEmailDraft,label:"Bulk Email",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:NX,message:{text:"Bulk email candidates.",isWarning:!1},progressText:"Creating Email Drafts"},[G.Application]:{parameters:NX,message:{text:"Bulk email candidates.",isWarning:!1},progressText:"Creating Email Drafts"}}}),ne("CreateSingleEmailDraftObjectAction")],IX);const HZe={campaignTemplate:st({label:"Template",source:Ge.CampaignTemplate})};let OX=class extends ct{};OX=lt([ut({type:rt.createSourcingCampaignDraft,label:"Enroll in Sequence",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:HZe,message:{text:"Enroll candidates in a sequence.",isWarning:!1},progressText:"Creating Sequence Drafts"}}}),ne("CreateSourcingCampaignDraftObjectAction")],OX);const VZe={};let DX=class extends ct{};DX=lt([ut({type:rt.cancelCampaign,label:"Cancel Sequence",category:mt.Action,isDestructive:!0,objectTypes:{[G.Campaign]:{parameters:VZe,message:{text:"Cancelling sequences will stop any future emails from being sent.",isWarning:!0},progressText:"Cancelling Sequences"}}}),ne("CancelCampaignObjectAction")],DX);const zZe={};let xX=class extends ct{};xX=lt([ut({type:rt.pauseCampaign,label:"Pause Sequence",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:zZe,message:{text:"All future stages will be paused. However, the sequence can still end if the recipient replies while the sequence is paused.",isWarning:!0},progressText:"Pausing Sequences"}}}),ne("PauseCampaignObjectAction")],xX);const qZe={};let MX=class extends ct{};MX=lt([ut({type:rt.unpauseCampaign,label:"Resume Sequence",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:qZe,message:{text:"If the scheduled date has passed, the next stage in the sequence will be sent immediately. All follow-up stages will be rescheduled to maintain the initial delay.",isWarning:!0},progressText:"Resuming Sequences"}}}),ne("UnpauseCampaignObjectAction")],MX);const WZe={campaignTemplate:st({label:"Campaign Template",source:Ge.CampaignTemplate})};let RX=class extends ct{};RX=lt([ut({type:rt.executeCampaign,label:"Schedule Sequence",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:WZe,message:{text:"Schedule sequences",isWarning:!0},progressText:"Scheduling Sequences"}}}),ne("ExecuteCampaignObjectAction")],RX);const jZe={campaignTemplate:st({label:"Campaign Template",source:Ge.CampaignTemplate}),campaignEditType:$b({label:"Campaign Edit Type"})};let PX=class extends ct{};PX=lt([ut({type:rt.editLiveCampaign,label:"Edit Sequence",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:jZe,message:{text:"Edit sequences",isWarning:!0},progressText:"Editing Sequences"}}}),ne("EditLiveCampaignObjectAction")],PX);const GZe={temporaryCampaignId:Lb({label:"Source Temporary Campaign",isOptional:!1})};let FX=class extends ct{};FX=lt([ut({type:rt.prepareCohortCampaignForEdit,label:"Prepare Cohort Campaign For Edit",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:GZe}}}),ne("PrepareCohortCampaignForEditObjectAction")],FX);const JZe={temporaryCampaignTemplateId:Lb({label:"Temporary Campaign Template",isOptional:!1,shouldRender:()=>!1}),mainTemplateSource:$b({label:"Main Template Source",isOptional:!1,shouldRender:()=>!1})};let LX=class extends ct{};LX=lt([ut({type:rt.prepareLiveCampaignForEdit,label:"Edit Sequence",category:mt.Action,isDestructive:!1,objectTypes:{[G.Campaign]:{parameters:JZe,message:{text:"Prepare sequences for editing.",isWarning:!1},progressText:"Preparing Sequences for Editing"}}}),ne("PrepareLiveCampaignForEditObjectAction")],LX);const bhe="emailsIncludePrivate",The="notesIncludePrivate",YZe={pageSize:Bb({type:rn.PageSize,label:"Page Size"}),includePrivateData:Nn({label:"Include Private Data",defaultValue:!0}),[bhe]:Nn({label:"Include Private Emails",defaultValue:!1}),[The]:Nn({label:"Include Private Notes",defaultValue:!1}),sections:$b({label:"Sections",isMulti:!0})};let BX=class extends ct{};BX=lt([ut({type:rt.exportFeedbackPDF,label:"Export Feedback PDF",category:mt.Action,isDestructive:!1,objectTypes:{[G.Application]:{parameters:YZe,message:{text:"Generate a PDF file containing all feedback for a job consideration.",isWarning:!1},progressText:""}}}),ne("ExportFeedbackPDFObjectAction")],BX);const KZe={application:st({label:"Application",source:Ge.Application,isOptional:!0}),pageSize:Bb({type:rn.PageSize,label:"Page Size"}),includePrivateData:Nn({label:"Include Private Data",defaultValue:!0}),[bhe]:Nn({label:"Include Private Emails",defaultValue:!1}),[The]:Nn({label:"Include Private Notes",defaultValue:!1}),sections:$b({label:"Sections",isMulti:!0})};let $X=class extends ct{};$X=lt([ut({type:rt.exportPDF,label:"Export PDF",category:mt.Action,isDestructive:!1,objectTypes:{[G.Candidate]:{parameters:KZe,message:{text:"Generate a PDF file containing information about a candidate.",isWarning:!1},progressText:""}}}),ne("ExportPDFObjectAction")],$X);const QZe={assessment:Bg({type:rn.Assessment,source:Ge.Assessment,label:"Assessment"}),startAssessment:Nn({label:"Start Assessment",defaultValue:!0,disclosure:"If unchecked, the assessment will be created but not started."}),ignoreDuplicates:Nn({label:"Ignore Duplicates",defaultValue:!1,disclosure:"If checked, a new assessment will be created even if a matching assessment already exists for this application."})};let UX=class extends ct{};UX=lt([ut({type:rt.startAssessment,label:"Start Assessment",category:mt.Action,isDestructive:!1,objectTypes:{[G.Application]:{parameters:QZe,message:{text:"Create & start assessments for a job consideration.",isWarning:!1},progressText:""}}}),ne("StartAssessmentObjectAction")],UX);const HX={assigneeId:Lb({label:"Assignee",isOptional:!1})},ZZe={},XZe={},eXe={},tXe={},nXe={assigneeId:Lb({label:"Assignee",isOptional:!1})};let VX=class extends ct{};VX=lt([ut({type:rt.resolveUserTask,label:"Resolve Task",category:mt.Action,isDestructive:!1,objectTypes:{[G.Note]:{parameters:HX,message:{text:"Resolves User Mention Tasks.",isWarning:!1},progressText:"Resolving Mention Tasks"},[G.InterviewSchedule]:{parameters:ZZe,message:{text:"Resolves User Feedback Tasks",isWarning:!1},progressText:"Resolving Feedback Tasks"},[G.TakeHomeSchedule]:{parameters:XZe,message:{text:"Resolves User Feedback Tasks",isWarning:!1},progressText:"Resolving Feedback Tasks"},[G.InterviewEvent]:{parameters:HX,message:{text:"Resolves User Feedback Tasks",isWarning:!1},progressText:"Resolving Feedback Tasks"},[G.Candidate]:{parameters:eXe,message:{text:"Resolves Overdue Follow Tasks",isWarning:!1},progressText:"Resolving Overdue Follow Tasks"},[G.ProcessUserTaskInstance]:{parameters:tXe,message:{text:"Resolves Sequence Tasks.",isWarning:!1},progressText:"Resolving Sequence Tasks"},[G.TextMessage]:{parameters:nXe,message:{text:"Resolves Texting Tasks.",isWarning:!1},progressText:"Resolving Texting Tasks"}}}),ne("ResolveUserTaskObjectAction")],VX);const zX={hiringTeam:EZe({label:"New Hiring Team",isMulti:!0})};let qX=class extends ct{};qX=lt([ut({type:rt.updateHiringTeam,label:"Update Hiring Team",category:mt.Edit,isDestructive:!0,objectTypes:{[G.Job]:{parameters:zX,message:{text:"Update Hiring Team",isWarning:!1},progressText:""},[G.Application]:{parameters:zX,message:{text:"Update Hiring Team",isWarning:!1},progressText:""}}}),ne("UpdateHiringTeamObjectAction")],qX);const rXe={role:Bg({type:rn.SimpleId,source:Ge.ProcessRoleType,label:"Role"}),assignees:Bg({isMulti:!0,type:rn.SimpleId,source:Ge.User,label:"Role assignees"})};let WX=class extends ct{};WX=lt([ut({type:rt.replaceHiringTeamRole,label:"Update Hiring Team Role",category:mt.Edit,isDestructive:!0,onStartConfirmMessage:({parameters:e})=>{if(e.assignees==null||Array.isArray(e.assignees)&&e.assignees.length===0)return"This will unassign all users for the selected role. Are you sure you want to continue?"},objectTypes:{[G.Application]:{parameters:rXe,message:{text:"Update the assigned users for a specific hiring team role. Existing assignees will be replaced by the selection.",isWarning:!1}}}}),ne("ReplaceHiringTeamRoleObjectAction")],WX);const iXe={};let jX=class extends ct{};jX=lt([ut({type:rt.applyNewTemplate,label:"Apply new Template",category:mt.Edit,isDestructive:!0,objectTypes:{[G.QualityOfHireEnrollment]:{parameters:iXe,message:{text:"Apply a new Template to the an existing Survey Enrollment",isWarning:!1},progressText:"Applying changes to existing Enrollments"}}}),ne("ApplyNewTemplateObjectAction")],jX);const aXe={survey:st({label:"Survey",source:Ge.EmployeeSurvey})};let GX=class extends ct{};GX=lt([ut({type:rt.enrollInEmployeeSurvey,label:"Enroll in Employee Survey",category:mt.Action,isDestructive:!1,objectTypes:{[G.Application]:{parameters:aXe,message:{text:"Enroll new Hires in an Employee Survey. If Ashby cannot resolve the recipient or the start date, then the enrollments will be created as drafts.",isWarning:!1},progressText:"Enrolling new Hires"}}}),ne("EnrollInEmployeeSurveyObjectAction")],GX);const _he={hiringEvent:st({label:"Hiring Event",source:Ge.HiringEvent})};let JX=class extends ct{};JX=lt([ut({type:rt.removeFromHiringEvent,label:"Remove from Event",category:mt.Action,objectTypes:{[G.HiringEventAudienceMember]:{parameters:_he,message:{text:"Remove candidates from an Event's audience.",isWarning:!1},progressText:"Removing candidates"}}}),ne("RemoveFromHiringEventObjectAction")],JX);let YX=class extends ct{};YX=lt([ut({type:rt.addToHiringEvent,label:"Add to Event",category:mt.Action,objectTypes:{[G.Candidate]:{parameters:_he,message:{text:"Add candidates to an Event's audience.",isWarning:!1},progressText:"Adding candidates"}}}),ne("AddToHiringEventObjectAction")],YX);function SN({surveyType:e}){function t(){switch(e){case Mt.EEOC:return rt.sendEEOCSurveyWithEmail;case Mt.Diversity:return rt.sendDiversitySurveyWithEmail;case Mt.CandidateExperience:return rt.sendCandidateExperienceSurveyWithEmail;case Mt.CandidateDataConsent:return rt.sendCandidateDataConsentSurveyWithEmail;case Mt.QualityOfHire:case Mt.Questionnaire:case Mt.HiringManagerExperience:throw new Error("Survey Type ${surveyType} not supported by this generator");default:ko("Invalid survey type",e)}}const r={...![Mt.CandidateDataConsent,Mt.EEOC].includes(e)?{surveyForm:st({label:lZe(e),source:Ge.SurveyForm,sourceMeta:{surveyType:e}})}:{},emailTemplate:mhe({requiredTokens:dhe(e),hint:cZe(e)}),fromEmail:Bg({type:rn.Email,source:Ge.FromEmail,label:"From Address"}),schedule:Bb({type:rn.Delay,label:"Schedule"})},i=MO({action:"Send",surveyType:e,countForPluralization:1}),a=MO({action:"Sending",surveyType:e,countForPluralization:2}),o=`${MO({action:"Send a",surveyType:e})} to candidates`,s={type:t(),label:i,category:mt.Action,objectTypes:{[G.Candidate]:{parameters:r,message:{text:o,isWarning:!1},progressText:a},[G.Application]:{parameters:r,message:{text:o,isWarning:!1},progressText:a}}};return{parameters:r,definition:s}}const oXe=SN({surveyType:Mt.EEOC});let KX=class extends ct{};KX=lt([ut(oXe.definition),ne("SendEEOCSurveyWithEmail")],KX);const sXe=SN({surveyType:Mt.Diversity});let QX=class extends ct{};QX=lt([ut(sXe.definition),ne("SendDiversitySurveyWithEmail")],QX);const lXe=SN({surveyType:Mt.CandidateExperience});let ZX=class extends ct{};ZX=lt([ut(lXe.definition),ne("SendCandidateExperienceSurveyWithEmail")],ZX);const uXe=SN({surveyType:Mt.CandidateDataConsent});let XX=class extends ct{};XX=lt([ut(uXe.definition),ne("SendCandidateDataConsentSurveyWithEmail")],XX);const cXe={newsletterTemplate:st({label:"Newsletter Template",source:Ge.NewsletterTemplate})};let eee=class extends ct{};eee=lt([ut({type:rt.enrollInNewsletter,label:"Enroll in Newsletter",category:mt.Action,isDestructive:!1,objectTypes:{[G.NewsletterEnrollment]:{parameters:cXe,message:{text:"Send candidates a newsletter",isWarning:!0},progressText:"Scheduling newsletters to be sent"}}}),ne("EnrollInNewsletterObjectAction")],eee);const dXe={workflowVersion:st({label:"Workflow Version",source:Ge.None})};let tee=class extends ct{};tee=lt([ut({type:rt.moveToWorkflowVersion,label:"Move to Workflow Version",category:mt.Action,isDestructive:!1,objectTypes:{[G.OnboardingWorkflow]:{parameters:dXe,message:{text:"Move workflows to a specific template version",isWarning:!1},progressText:"Moving workflows"}}}),ne("MoveToWorkflowVersionObjectAction")],tee);const fXe={jobCriteriaSet:st({label:"Job Criteria Set",source:Ge.JobCriteriaSet}),forceReevaluate:Nn({label:"Enforce Reevaluation of all Job Considerations",defaultValue:!1,shouldRender:()=>!1})};let nee=class extends ct{};nee=lt([ut({type:rt.evaluateJobCriteria,label:"Evaluate Job Criteria",category:mt.Edit,objectTypes:{[G.Application]:{parameters:fXe,message:{text:"Evaluate job criteria",isWarning:!1},progressText:"Evaluating job criteria"}}}),ne("EvaluateJobCriteriaObjectAction")],nee);const pXe={job:st({label:"Job",source:Ge.Job}),fromInterviewPlan:st({label:"From Interview Plan",source:Ge.InterviewPlan}),toInterviewPlan:st({label:"To Interview Plan",source:Ge.InterviewPlan}),interviewStageMappingFrom:st({label:"Interview Stage Mapping From",isMulti:!0,source:Ge.InterviewStage}),interviewStageMappingTo:st({label:"Interview Stage Mapping To",isMulti:!0,source:Ge.InterviewStage})};let ree=class extends ct{};ree=lt([ut({type:rt.removeInterviewPlanAndMoveApplicationsToPrimary,label:"Remove Interview Plan on Job and Move Applications to Primary",category:mt.Action,objectTypes:{[G.Application]:{parameters:pXe,message:{text:"Transfer to the primary plan.",isWarning:!1},progressText:"Transferring to the primary plan"}}}),ne("RemoveInterviewPlanAndMoveApplicationsToPrimaryObjectAction")],ree);const mXe={globalRole:Bg({label:"Global User Role",source:Ge.GlobalRole,type:rn.GlobalRole})};let iee=class extends ct{};iee=lt([ut({type:rt.setEmployeeGlobalRole,label:"Set Global User Role",category:mt.Action,objectTypes:{[G.Employee]:{parameters:mXe,message:{text:"Set the Global Role of employees.",isWarning:!1}}}}),ne("SetEmployeeGlobalRoleObjectAction")],iee);const hXe={allowGlobalRoleAutomation:Nn({label:"Allow Automatic Upgrading and Downgrading"})};let aee=class extends ct{};aee=lt([ut({type:rt.setEmployeeGlobalRoleAutomation,label:"Configure Role Automation",category:mt.Action,objectTypes:{[G.Employee]:{parameters:hXe,message:{text:"Allows the user's Global Role to be upgraded and downgraded automatically as jobs are opened and closed, and as job access roles are granted and revoked.",isWarning:!1}}}}),ne("SetEmployeeGlobalRoleAutomationObjectAction")],aee);const gXe={sourceJob:st({label:"Source Job",disclosure:"The job from which the primary interview plan will be copied.",source:Ge.JobIncludingTemplatesWithInterviewPlan})};let oee=class extends ct{};oee=lt([ut({type:rt.copyInterviewPlanToJob,label:"Copy Interview Plan to Job",category:mt.Edit,objectTypes:{[G.Job]:{parameters:gXe,message:{text:"Copy the primary interview plan and all activity configurations from a job to another job.",isWarning:!1}}}}),ne("CopyPrimaryInterviewPlanToJob")],oee);var Ehe=globalThis&&globalThis.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},whe=globalThis&&globalThis.__metadata||function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},n7;(function(e){e.DimensionFilter="DimensionFilter",e.OpaqueFilter="OpaqueFilter"})(n7||(n7={}));let see=class{constructor({selector:t,action:n,objectType:r}){this.selector=t,this.action=n,this.objectType=r}onDecodeComplete(){this.action=Lr(this.action)}isSupported(){return this.action.supportedObjectTypes.includes(this.objectType)}getObjectActionType(){return`${this.objectType} ${this.action.type}`}getActionHeader(t){return`${this.action.label} ${u0e({objectType:this.objectType,analyticsOrganizationType:"none",countForPluralization:1})}: ${t}`}assertValid(){this.action.assertValid(this.objectType)}decodeSelector(t){if(Array.isArray(this.selector))return this.selector;if(this.selector.type===n7.DimensionFilter)return this.selector.filter!=null?Lr(this.selector.filter):void 0;const n=t(this.selector.opaqueFilter);if(this.selector.combineFilter!=null){const r=Lr(this.selector.combineFilter);return n!=null?Xp.and([n,r]):r}return n}shouldDelay(){return this.action.shouldDelay()}get delayLabel(){var t;return(t=this.action.delayLabel)!==null&&t!==void 0?t:"Preparing bulk action..."}};see=Ehe([ne("BulkAction"),whe("design:paramtypes",[Object])],see);let lee=class{constructor({selector:t,availableActions:n,objectType:r,resolved:i=null,titleSingular:a}){this.resolved=null,this.selector=t,this.availableActions=n,this.objectType=r,this.resolved=i,this.titleSingular=a}onDecodeComplete(){this.availableActions=this.availableActions.map(t=>({...t,action:Lr(t.action)}))}getTitle(t=0){return this.titleSingular?cd(t,this.titleSingular):u0e({objectType:this.objectType,countForPluralization:t,analyticsOrganizationType:"none"})}};lee=Ehe([ne("BulkActionDependency"),whe("design:paramtypes",[Object])],lee);var go;(function(e){e.Linkedin="LINKEDIN",e.Github="GITHUB",e.Twitter="TWITTER",e.Medium="MEDIUM",e.StackOverflow="STACK_OVERFLOW",e.Website="WEBSITE"})(go||(go={}));go.Linkedin+"",go.Github+"",go.Twitter+"",go.Medium+"",go.StackOverflow+"",go.Website+"";go.Linkedin,go.Github,go.Twitter,go.Medium,go.StackOverflow;var ru;(function(e){e.PrimaryInternal="PrimaryInternal",e.PrimaryExternal="PrimaryExternal",e.Internal="Internal",e.External="External"})(ru||(ru={}));ru.PrimaryInternal,ru.PrimaryExternal,ru.Internal,ru.External;ru.PrimaryInternal,ru.Internal;ru.PrimaryExternal,ru.External;function vXe({jobPostings:e,teams:t,showTeams:n}){const r=new Map(t.map(o=>[o.id,{parent:void 0,parentDepartmentId:o.parentTeamId,departmentName:o.name,departmentId:o.id,jobPostings:[],children:[]}]));for(const o of r.values())if(o.parentDepartmentId){const s=r.get(o.parentDepartmentId);o.parent=s,s==null||s.children.unshift(o)}for(const o of e){let s=r.get(o.teamId);if(!n)for(;s!=null&&s.parent;)s=s==null?void 0:s.parent;s==null||s.jobPostings.unshift(o)}const a=Array.from(r.values()).filter(o=>!o.parent);for(const[o]of Ub(a))o.jobPostings.sort(yXe),o.children.sort(uee);return a.sort(uee),a}const yXe=(e,t)=>e.title.trim().localeCompare(t.title.trim()),uee=(e,t)=>e.departmentName.trim().localeCompare(t.departmentName.trim());function*Ub(e,t=0){for(const n of e)yield[n,t],yield*Ub(n.children,t+1)}function SXe(e){return khe(e).map(t=>t.departmentName)}function bXe(e){return Array.from(Ub(e)).reduce((n,[r])=>n+r.jobPostings.length,0)}function TXe(e,t){for(const[n]of Ub(e))n.jobPostings=n.jobPostings.filter(r=>{const i=r.secondaryLocations.map(o=>o.locationId),a=khe(n).map(o=>o.departmentId);return!(t.departmentId&&!a.some(o=>o===t.departmentId)||t.locationId&&t.locationId!==r.locationId&&!i.includes(t.locationId)||t.employmentType&&t.employmentType!==r.employmentType)})}const khe=e=>{const t=[];let n=e;for(;n;)t.unshift(n),n=n.parent;return t};var cee;(function(e){e.ContactOut="ContactOut",e.PeopleDataLabs="PeopleDataLabs",e.PeopleDataLabsPreview="PeopleDataLabsPreview",e.RocketReach="RocketReach",e.SignalHire="SignalHire"})(cee||(cee={}));var vA;(function(e){e.LinkedInProfileUrl="LinkedInProfileUrl",e.GitHubProfileUrl="GitHubProfileUrl"})(vA||(vA={}));var dee;(function(e){e.DeleteRequest="DeleteRequest",e.IncorrectEmail="IncorrectEmail"})(dee||(dee={}));vA.LinkedInProfileUrl,vA.GitHubProfileUrl;var fee;(function(e){e.BambooHR="BambooHR",e.BambooHRCSV="BambooHRCSV",e.Beamery="Beamery",e.Charthop="Charthop",e.Comeet="Comeet",e.Gem="Gem",e.Greenhouse="Greenhouse",e.HackerRank="HackerRank",e.IntegrationPartner="IntegrationPartner",e.Jobvite="Jobvite",e.Lever="Lever",e.Namely="Namely",e.Paylocity="Paylocity",e.Pinpoint="Pinpoint",e.Rippling="Rippling",e.Workday="Workday"})(fee||(fee={}));var pee;(function(e){e.MissingValueForToken="MissingValueForToken",e.InvalidConfigurationForToken="InvalidConfigurationForToken",e.ErrorGeneratingPdf="ErrorGeneratingPdf"})(pee||(pee={}));var mee;(function(e){e[e.GoogleNoResponse=0]="GoogleNoResponse",e[e.GoogleUnknownError=1]="GoogleUnknownError",e[e.OrganizationUsesSSO=2]="OrganizationUsesSSO",e[e.UserNotFound=3]="UserNotFound",e[e.OrganizationNotSignedUp=4]="OrganizationNotSignedUp",e[e.MagicLinksNotAllowed=5]="MagicLinksNotAllowed"})(mee||(mee={}));var hee;(function(e){e.AnalyticsAdmin="AnalyticsAdmin",e.AnalyticsReadonly="AnalyticsReadonly",e.ATSPaidSeat="ATSPaidSeat"})(hee||(hee={}));var gee;(function(e){e.Age="cf0f1bc7-7ce6-4eb3-aebc-b6562141cb68",e.Gender="8d7dcc65-3a0b-476a-b679-574b869780bb",e.TransIdentity="0a90dc7e-908c-449f-9151-95612d844b10",e.SexualOrientation="a63b6f87-d090-40f0-a462-bf5bb03f5e45",e.Ethnicity="1e21d43f-548e-481a-aa5f-f048c73f3de3",e.Communities="a76e67f9-eeb8-4d06-a9a5-b1596a9726e7"})(gee||(gee={}));var vee;(function(e){e.AiToken="ai-token"})(vee||(vee={}));var yee;(function(e){e.Message="message",e.Done="done",e.ServerError="server-error"})(yee||(yee={}));var See;(function(e){e.Gender="Gender",e.RaceEthnicity="RaceEthnicity"})(See||(See={}));var bee;(function(e){e.HeaderForOrganization="HeaderForOrganization",e.HeaderForCandidate="HeaderForCandidate",e.InterviewFeedback="InterviewFeedback",e.ProfileInformation="ProfileInformation",e.DetailsForOrganization="DetailsForOrganization",e.EmploymentHistory="EmploymentHistory",e.EducationHistory="EducationHistory",e.SocialLinks="SocialLinks",e.Emails="Emails",e.Notes="Notes"})(bee||(bee={}));var Tee;(function(e){e.Country="Country",e.Region="Region",e.City="City"})(Tee||(Tee={}));var _ee;(function(e){e.MapBox="MapBox"})(_ee||(_ee={}));var r7;(function(e){e.Color="color"})(r7||(r7={}));function fo({hexCode:e}){if(!jQe(e))throw new Error(`invariant: cannot create color assignment with invalid hex code '${e}'`);return{hexCode:e,type:r7.Color}}var ra;(function(e){e.ReservedUnspecified="reservedUnspecified",e.ReservedEeocGenderUnknown="reservedEeocGenderUnknown",e.ReservedEeocGenderDeclineToSelfIdentify="reservedEeocGenderDecline",e.ReservedEeocGenderFemale="reservedEeocGenderFemale",e.ReservedEeocGenderMale="reservedEeocGenderMale",e.ReservedEeocRaceEthnicityAmericanIndian="reservedEeocAmericanIndian",e.ReservedEeocRaceEthnicityAsian="reservedEeocAsian",e.ReservedEeocRaceEthnicityBlack="reservedEeocBlack",e.ReservedEeocRaceEthnicityWhite="reservedEeocWhite",e.ReservedEeocRaceEthnicityPacificIslander="reservedEeocPacificIslander",e.ReservedEeocRaceEthnicityHispanicLatino="reservedEeocHispanicLatino",e.ReservedEeocRaceEthnicityTwoOrMore="reservedEeocTwoOrMore",e.UnreservedChartColors="chartColors"})(ra||(ra={}));ra.ReservedUnspecified+"",fo({hexCode:"#d6d5e0"}),ra.ReservedEeocGenderDeclineToSelfIdentify+"",fo({hexCode:"#E0C6A0"}),ra.ReservedEeocGenderFemale+"",fo({hexCode:"#50B0C0"}),ra.ReservedEeocGenderMale+"",fo({hexCode:"#E66F3C"}),ra.ReservedEeocGenderUnknown+"",fo({hexCode:"#A9CFE0"}),ra.ReservedEeocRaceEthnicityAmericanIndian+"",fo({hexCode:"#A5D993"}),ra.ReservedEeocRaceEthnicityAsian+"",fo({hexCode:"#FFB675"}),ra.ReservedEeocRaceEthnicityBlack+"",fo({hexCode:"#64BEBF"}),ra.ReservedEeocRaceEthnicityWhite+"",fo({hexCode:"#B3A7E0"}),ra.ReservedEeocRaceEthnicityPacificIslander+"",fo({hexCode:"#FF9B75"}),ra.ReservedEeocRaceEthnicityHispanicLatino+"",fo({hexCode:"#94B0E4"}),ra.ReservedEeocRaceEthnicityTwoOrMore+"",fo({hexCode:"#7ED1AF"}),ra.UnreservedChartColors+"",["#7B93DB","#E668A7","#7CC1E4","#E69D68","#0FB5BA","#D57CE4","#E47C7C","#76C1AB","#EDDD87","#89C7E3","#9A86E9","#B0E4A8","#F4C2B2","#B1D164","#F7B760","#97D3B3","#CD9DE0","#739BC5","#F5C18C","#BE8AC6","#47B7D9","#E29362","#9C8373"].map(e=>fo({hexCode:e}));const Ahe=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text","application/rtf"];async function _Xe(e=1e3){return await new Promise(t=>setTimeout(t,e))}var Eee;(function(e){e.Email="email",e.InMail="inMail",e.ConnectionRequest="connectionRequest"})(Eee||(Eee={}));var wee;(function(e){e.Outreach="outreach",e.Response="response"})(wee||(wee={}));var kee;(function(e){e.BulkOpeningVersion="BulkOpeningVersion",e.OfferVersion="OfferVersion",e.Application="Application",e.Job="Job"})(kee||(kee={}));Xc.hiringTeamMember,Xc.organizationAdmin,Xc.hiringTeamMember,Xc.hiringTeamMember,Xc.interviewer;var Aee;(function(e){e.Active="active",e.Archived="archived"})(Aee||(Aee={}));var bh;(function(e){e.Active="Active",e.Archived="Archived",e.Hired="Hired",e.PreInterviewScreen="PreInterviewScreen",e.Offer="Offer",e.Lead="Lead"})(bh||(bh={}));bh.Active,bh.PreInterviewScreen,bh.Offer,bh.Lead;var Cee;(function(e){e.seePrivateFields="seePrivateFields",e.canSeeQualityOfHire="canSeeQualityOfHire"})(Cee||(Cee={}));var Nee;(function(e){e.Scheduling="scheduling",e.SourcingForm="sourcingForm",e.TalentProject="talentProject",e.JobApplicationReview="jobApplicationReview"})(Nee||(Nee={}));var Iee;(function(e){e.Active="active",e.Archived="archived"})(Iee||(Iee={}));var Oee;(function(e){e.InterviewSchedule="InterviewSchedule"})(Oee||(Oee={}));var Dee;(function(e){e.Active="active",e.Archived="archived"})(Dee||(Dee={}));var xee;(function(e){e.Passed="passed",e.InfectionDetected="infection_detected",e.AwaitingScan="awaiting_scan",e.Error="error",e.NotScanned="not_scanned"})(xee||(xee={}));var Mee;(function(e){e.FileTooLarge="file_too_large",e.ScannerTimeout="scanner_timeout",e.ScannerInvokeError="scanner_invoke_error",e.UnrecognizedError="unrecognized_error"})(Mee||(Mee={}));var Ree;(function(e){e.Campaign="campaign",e.Newsletter="newsletter"})(Ree||(Ree={}));var Pee;(function(e){e.AddToProject="AddToProject"})(Pee||(Pee={}));var Fee;(function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"})(Fee||(Fee={}));var Lee;(function(e){e._DummyDontUse="DummyValueDontUseMe",e.ManageApproval="ManageApproval"})(Lee||(Lee={}));var Bee;(function(e){e.Approve="approve",e.Reject="reject"})(Bee||(Bee={}));var $ee;(function(e){e.TitleOnly="TitleOnly",e.Unrestricted="Unrestricted"})($ee||($ee={}));var Uee;(function(e){e[e.HiringManager=0]="HiringManager",e[e.Recruiter=1]="Recruiter",e[e.Sourcer=2]="Sourcer",e[e.RecruitingCoordinator=3]="RecruitingCoordinator"})(Uee||(Uee={}));var Hee;(function(e){e.Root="Root",e.Sales="Sales",e.SecurityAdmin="SecurityAdmin",e.Engineering="Engineering",e.OrganizationDeletion="OrganizationDeletion",e.CustomerRecords="CustomerRecords",e.ImpersonateAnyOrganization="ImpersonateAnyOrganization",e.ImpersonateDemoOrganization="ImpersonateDemoOrganization",e.SubscriptionBillingDetails="SubscriptionBillingDetails",e.AccessLeverGreenhouseApiKeys="AccessLeverGreenhouseApiKeys"})(Hee||(Hee={}));var Vee;(function(e){e.None="None",e.UserHasLimitedAccess="UserHasLimitedAccess",e.GlobalRoleAutomationDisabledForOrg="GlobalRoleAutomationDisabledForOrg",e.GlobalRoleAutomationDisabledForUser="GlobalRoleAutomationDisabledForUser"})(Vee||(Vee={}));var yA;(function(e){e.FullFeedbackInEmails="FullFeedbackInEmails",e.JobWizard="JobWizard"})(yA||(yA={}));const EXe=[{key:yA.FullFeedbackInEmails,title:"Full feedback in emails",description:"Get the full feedback in your emails instead of just a summary.",startDate:new Date("2024-11-21"),fullLaunchDate:new Date("2024-12-09"),allowsOptOut:!0,settingsPath:qR.AdminFeedbackVisibility,learnMoreUrl:"https://headwayapp.co/ashby-release-notes/feedback-in-email-notifications-will-auto-enable-on-december-9th-304947"},{key:yA.JobWizard,title:"Job wizard",description:"Enables a new job creation flow that guides users through the process of creating a job",startDate:new Date("2024-11-12"),fullLaunchDate:new Date("2024-12-05"),allowsOptOut:!1,learnMoreUrl:"https://headwayapp.co/ashby-release-notes/job-creation-wizard-available-for-early-opt-in-304797"}];Object.fromEntries(EXe.map(e=>[e.key,e]));var zee;(function(e){e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContext=204]="NoContext",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.ImATeapot=418]="ImATeapot",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(zee||(zee={}));var qee;(function(e){e.Requested="REQUESTED",e.PartnerReady="PARTNER_READY",e.Enabled="ENABLED",e.Disabled="DISABLED"})(qee||(qee={}));var Wee;(function(e){e.ApplyConnect="APPLY_CONNECT",e.ApplyWithLinkedIn="APPLY_WITH_LINKEDIN",e.CsaApi="CSA_API",e.InAtsIndicator="IN_ATS_INDICATOR",e.OneClickExport="ONE_CLICK_EXPORT",e.ProfilePlugin="PROFILE_PLUGIN",e.RecommendedMatches="RECOMMENDED_MATCHES",e.UnifiedSearch="UNIFIED_SEARCH"})(Wee||(Wee={}));var jee;(function(e){e.Planner="Planner",e.Metric="Metric",e.Subject="Subject",e.ReportTypeAndVisualization="ReportTypeAndVisualization",e.Dates="Dates",e.Filters="Filters",e.FieldsToShow="FieldsToShow",e.GroupBy="GroupBy"})(jee||(jee={}));var Gee;(function(e){e.Recruiting="Recruiting",e.PeopleOps="PeopleOps"})(Gee||(Gee={}));var SA=(e=>(e.Given="given",e.NotAsked="notAsked",e.NotGiven="notGiven",e))(SA||{}),bN=(e=>(e.CandidateFiles="CandidateFiles",e.NonUserFormEngine="NonUserFormEngine",e))(bN||{}),Che=(e=>(e.InPerson="InPerson",e.Virtual="Virtual",e))(Che||{}),Gc=(e=>(e.InterviewCompleted="InterviewCompleted",e.InterviewScheduled="InterviewScheduled",e.Invalidated="Invalidated",e.Submitted="Submitted",e.Unsubmitted="Unsubmitted",e.WaitingForReschedule="WaitingForReschedule",e))(Gc||{}),i7=(e=>(e.JobBoard="JobBoard",e.JobPosting="JobPosting",e))(i7||{}),td=(e=>(e.CandidateDataConsent="CandidateDataConsent",e.CandidateExperience="CandidateExperience",e.Diversity="Diversity",e.Eeoc="EEOC",e.Questionnaire="Questionnaire",e))(td||{}),Nhe=(e=>(e.Cancelled="cancelled",e.Complete="complete",e.NeedsSending="needsSending",e.WaitingOnFeedback="waitingOnFeedback",e.WaitingOnSubmission="waitingOnSubmission",e))(Nhe||{});const wXe={possibleTypes:{ActionLink:["ApprovalActionLink"],CustomFieldValue:["File","FileList","JSONBox"],DebuggableTimeslotUnavailableDetails:["DebuggableTimeslotDetailsConflictingEvent","DebuggableTimeslotDetailsMeetingBuffer","DebuggableTimeslotDetailsOutsideMeetingHours"],FormSubmitResult:["FormRender","FormSubmitSuccess"],Timeslot:["AvailableTimeslot","DebuggableTimeslot"],TroubleshootDirectBookingAvailablityResult:["TroubleshootDirectBookingAvailablityError","TroubleshootDirectBookingAvailablitySuccess"]}},kXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiRequestOptOut"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"requestOptOut"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}}]}]}}]},AXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiRequestOptIn"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"requestOptIn"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}}]}]}}]},CXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiRequestOptOutStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"requestOptOutStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}}]}]}}]},NXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiGetAutomatedProcessingLegalText"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAutomatedProcessingLegalText"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"jobPostingId"},value:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"legalNoticeHtml"}},{kind:"Field",name:{kind:"Name",value:"pageTitle"}}]}}]}}]},IXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiConfirmOptOutEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eventId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"confirmOptOutEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"eventId"},value:{kind:"Variable",name:{kind:"Name",value:"eventId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}}]}]}}]},OXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiCandidateSubscriptionPreferences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"resourceType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CandidateSubscriptionResourceType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"subscriptionPreferences"},name:{kind:"Name",value:"candidateSubscriptionPreferences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}},{kind:"Argument",name:{kind:"Name",value:"resourceType"},value:{kind:"Variable",name:{kind:"Name",value:"resourceType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CandidateSubscriptionPreferencesParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CandidateSubscriptionPreferencesParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CandidateSubscriptionPreferences"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribedToCurrentSequence"}},{kind:"Field",name:{kind:"Name",value:"subscribedToAllSequences"}},{kind:"Field",name:{kind:"Name",value:"subscribedToAllNewsletters"}}]}}]},DXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiUpdateCandidateSubscriptionPreferences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stageId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"resourceType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CandidateSubscriptionResourceType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"subscriptionPreferences"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CandidateSubscriptionPreferencesInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCandidateSubscriptionPreferences"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stageId"},value:{kind:"Variable",name:{kind:"Name",value:"stageId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}},{kind:"Argument",name:{kind:"Name",value:"resourceType"},value:{kind:"Variable",name:{kind:"Name",value:"resourceType"}}},{kind:"Argument",name:{kind:"Name",value:"subscriptionPreferences"},value:{kind:"Variable",name:{kind:"Name",value:"subscriptionPreferences"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CandidateSubscriptionPreferencesParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CandidateSubscriptionPreferencesParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CandidateSubscriptionPreferences"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribedToCurrentSequence"}},{kind:"Field",name:{kind:"Name",value:"subscribedToAllSequences"}},{kind:"Field",name:{kind:"Name",value:"subscribedToAllNewsletters"}}]}}]},xXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiHiringEvent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hiringEventId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hiringEventSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hiringEvent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"hiringEventId"},value:{kind:"Variable",name:{kind:"Name",value:"hiringEventId"}}},{kind:"Argument",name:{kind:"Name",value:"hiringEventSlug"},value:{kind:"Variable",name:{kind:"Name",value:"hiringEventSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"HiringEventWithFormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"HiringEventWithFormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HiringEventWithFormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"organizationId"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"timezone"}},{kind:"Field",name:{kind:"Name",value:"geoLocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"geoLocationPath"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"providerLocationId"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"registrationFormRender"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"descriptionHeaderHtml"}},{kind:"Field",name:{kind:"Name",value:"descriptionFooterHtml"}},{kind:"Field",name:{kind:"Name",value:"timeslots"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startTime"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hour"}},{kind:"Field",name:{kind:"Name",value:"minute"}}]}},{kind:"Field",name:{kind:"Name",value:"endTime"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hour"}},{kind:"Field",name:{kind:"Name",value:"minute"}}]}},{kind:"Field",name:{kind:"Name",value:"hasAvailability"}}]}},{kind:"Field",name:{kind:"Name",value:"locationType"}},{kind:"Field",name:{kind:"Name",value:"locationDescription"}}]}}]},MXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitRegistrationFormAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hiringEventId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeslotId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitRegistrationFormAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hiringEventId"},value:{kind:"Variable",name:{kind:"Name",value:"hiringEventId"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"actionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"timeslotId"},value:{kind:"Variable",name:{kind:"Name",value:"timeslotId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},RXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiJobBoardWithTeams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"jobBoard"},name:{kind:"Name",value:"jobBoardWithTeams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teams"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"parentTeamId"}}]}},{kind:"Field",name:{kind:"Name",value:"jobPostings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"teamId"}},{kind:"Field",name:{kind:"Name",value:"locationId"}},{kind:"Field",name:{kind:"Name",value:"locationName"}},{kind:"Field",name:{kind:"Name",value:"employmentType"}},{kind:"Field",name:{kind:"Name",value:"secondaryLocations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JobPostingSecondaryLocationParts"}}]}},{kind:"Field",name:{kind:"Name",value:"compensationTierSummary"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JobPostingSecondaryLocationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JobPostingSecondaryLocation"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locationId"}},{kind:"Field",name:{kind:"Name",value:"locationName"}}]}}]},PXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiJobPosting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jobPosting"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"jobPostingId"},value:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"departmentName"}},{kind:"Field",name:{kind:"Name",value:"locationName"}},{kind:"Field",name:{kind:"Name",value:"employmentType"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isListed"}},{kind:"Field",name:{kind:"Name",value:"isConfidential"}},{kind:"Field",name:{kind:"Name",value:"teamNames"}},{kind:"Field",name:{kind:"Name",value:"applicationForm"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"Field",name:{kind:"Name",value:"surveyForms"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"Field",name:{kind:"Name",value:"secondaryLocationNames"}},{kind:"Field",name:{kind:"Name",value:"compensationTierSummary"}},{kind:"Field",name:{kind:"Name",value:"compensationTiers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"tierSummary"}}]}},{kind:"Field",name:{kind:"Name",value:"applicationDeadline"}},{kind:"Field",name:{kind:"Name",value:"compensationTierGuideUrl"}},{kind:"Field",name:{kind:"Name",value:"scrapeableCompensationSalarySummary"}},{kind:"Field",name:{kind:"Name",value:"compensationPhilosophyHtml"}},{kind:"Field",name:{kind:"Name",value:"applicationLimitCalloutHtml"}},{kind:"Field",name:{kind:"Name",value:"shouldAskForTextingConsent"}},{kind:"Field",name:{kind:"Name",value:"candidateTextingPrivacyPolicyUrl"}},{kind:"Field",name:{kind:"Name",value:"automatedProcessingLegalNotice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"automatedProcessingLegalNoticeRuleId"}},{kind:"Field",name:{kind:"Name",value:"automatedProcessingLegalNoticeHtml"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},Dl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSetFormValue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setFormValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},FXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSetFormValueToFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileHandle"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setFormValueToFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"fileHandle"},value:{kind:"Variable",name:{kind:"Name",value:"fileHandle"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},LXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiAddManyFilesToFormValue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileHandles"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"formRender"},name:{kind:"Name",value:"addManyFilesToFormValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"fileHandles"},value:{kind:"Variable",name:{kind:"Name",value:"fileHandles"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},BXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiCreateFileUploadHandle"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileUploadContext"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileUploadContext"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filename"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"contentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"contentLength"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"fileUploadHandle"},name:{kind:"Name",value:"createFileUploadHandle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"fileUploadContext"},value:{kind:"Variable",name:{kind:"Name",value:"fileUploadContext"}}},{kind:"Argument",name:{kind:"Name",value:"filename"},value:{kind:"Variable",name:{kind:"Name",value:"filename"}}},{kind:"Argument",name:{kind:"Name",value:"contentType"},value:{kind:"Variable",name:{kind:"Name",value:"contentType"}}},{kind:"Argument",name:{kind:"Name",value:"contentLength"},value:{kind:"Variable",name:{kind:"Name",value:"contentLength"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"fields"}}]}}]}}]},$Xe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiRemoveFileFromFormValue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"formRender"},name:{kind:"Name",value:"removeFileFromFormValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"fileId"},value:{kind:"Variable",name:{kind:"Name",value:"fileId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},UXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiAutofillApplicationFormWithUploadedResume"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileHandle"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"formRender"},name:{kind:"Name",value:"autofillApplicationFormWithUploadedResumeHandle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"fileHandle"},value:{kind:"Variable",name:{kind:"Name",value:"fileHandle"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},HXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitCandidateTextingConsent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"consent"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CommunicationConsent"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitCandidateTextingConsent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"consent"},value:{kind:"Variable",name:{kind:"Name",value:"consent"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},VXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitMultipleFormsAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationFormRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationFormActionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationFormDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"surveyIdentifiers"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourceAttributionCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitMultipleFormsAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"jobPostingId"},value:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}}},{kind:"Argument",name:{kind:"Name",value:"applicationFormRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"applicationFormRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"applicationFormActionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"applicationFormActionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"applicationFormDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"applicationFormDefinitionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"surveyIdentifiers"},value:{kind:"Variable",name:{kind:"Name",value:"surveyIdentifiers"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}},{kind:"Argument",name:{kind:"Name",value:"sourceAttributionCode"},value:{kind:"Variable",name:{kind:"Name",value:"sourceAttributionCode"}}},{kind:"Argument",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"},value:{kind:"Variable",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applicationFormResult"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"surveyFormResults"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"messages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockMessageForCandidateHtml"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},zXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitSingleApplicationFormAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourceAttributionCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"submitApplicationFormAction"},name:{kind:"Name",value:"submitSingleApplicationFormAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"jobPostingId"},value:{kind:"Variable",name:{kind:"Name",value:"jobPostingId"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"formDefinitionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formDefinitionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"actionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}},{kind:"Argument",name:{kind:"Name",value:"sourceAttributionCode"},value:{kind:"Variable",name:{kind:"Name",value:"sourceAttributionCode"}}},{kind:"Argument",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"},value:{kind:"Variable",name:{kind:"Name",value:"viewedAutomatedProcessingLegalNoticeRuleId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applicationFormResult"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"messages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blockMessageForCandidateHtml"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},qXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiAutocompleteGeoLocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"text"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locationTypes"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GeoLocationType"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"autocompleteGeoLocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"text"},value:{kind:"Variable",name:{kind:"Name",value:"text"}}},{kind:"Argument",name:{kind:"Name",value:"locationTypes"},value:{kind:"Variable",name:{kind:"Name",value:"locationTypes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AutocompleteLocationResultParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AutocompleteGeoLocationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GeoLocation"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"providerLocationId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AutocompleteLocationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AutocompleteLocation"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"geoLocationPath"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AutocompleteGeoLocationParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AutocompleteLocationResultParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AutocompleteLocationResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AutocompleteLocationParts"}}]}}]}}]},WXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiFindMeetingAvailabilityRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"findMeetingAvailabilityRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meetingAvailabilityRequest"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"}},{kind:"Field",name:{kind:"Name",value:"externalRepresentative"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessage"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DisplayablePersonParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingPerson"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarUrl"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingAvailabilityRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"meetingDurationInMinutes"}},{kind:"Field",name:{kind:"Name",value:"meetingTitle"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"selectedTimes"}},{kind:"Field",name:{kind:"Name",value:"meetingSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}},{kind:"Field",name:{kind:"Name",value:"jobTitle"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isDirectBookingLink"}},{kind:"Field",name:{kind:"Name",value:"instantlyCancelOnReschedule"}},{kind:"Field",name:{kind:"Name",value:"isCancellable"}},{kind:"Field",name:{kind:"Name",value:"nonUserSelectedTimezone"}},{kind:"Field",name:{kind:"Name",value:"organizer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}}]}},{kind:"Field",name:{kind:"Name",value:"invitee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"phoneNumber"}}]}},{kind:"Field",name:{kind:"Name",value:"interviewScheduleId"}},{kind:"Field",name:{kind:"Name",value:"meetingScheduleSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"conferencingLink"}}]}},{kind:"Field",name:{kind:"Name",value:"locationType"}},{kind:"Field",name:{kind:"Name",value:"minimumDaysOfAvailability"}},{kind:"Field",name:{kind:"Name",value:"isGenericBookingLink"}},{kind:"Field",name:{kind:"Name",value:"canCandidateSuggestTimes"}}]}}]},Hb={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiAvailableTimesForMeeting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeframeStart"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeframeEnd"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"forCandidateAvailability"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"availableTimes"},name:{kind:"Name",value:"availableTimesForMeetingAvailabilityRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timeframeStart"},value:{kind:"Variable",name:{kind:"Name",value:"timeframeStart"}}},{kind:"Argument",name:{kind:"Name",value:"timeframeEnd"},value:{kind:"Variable",name:{kind:"Name",value:"timeframeEnd"}}},{kind:"Argument",name:{kind:"Name",value:"forCandidateAvailability"},value:{kind:"Variable",name:{kind:"Name",value:"forCandidateAvailability"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AvailableTimeslotParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AvailableTimeslotParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AvailableTimeslot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}}]}}]},jXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiDebugAvailableTimesForMeeting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"troubleshootingRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeframeStart"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeframeEnd"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"debuggableTimes"},name:{kind:"Name",value:"debugAvailableTimesForMeetingAvailabilityRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"troubleshootingRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"troubleshootingRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timeframeStart"},value:{kind:"Variable",name:{kind:"Name",value:"timeframeStart"}}},{kind:"Argument",name:{kind:"Name",value:"timeframeEnd"},value:{kind:"Variable",name:{kind:"Name",value:"timeframeEnd"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TroubleshootDirectBookingAvailablitySuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timeslots"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"unavailableReasons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"details"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebuggableTimeslotDetailsOutsideMeetingHours"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meetingPerson"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebuggableTimeslotDetailsMeetingBuffer"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meetingPerson"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"eventDescription"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebuggableTimeslotDetailsConflictingEvent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meetingPerson"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"isMeetingRoomEvent"}},{kind:"Field",name:{kind:"Name",value:"conflictingEvent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}}]}}]}}]}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TroubleshootDirectBookingAvailablityError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"reason"}}]}}]}}]}}]},Vb={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiUpdatedSelectedTimeRanges"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeRanges"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SelectedTimeRangeInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"updateSelectedTimeRanges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timeRanges"},value:{kind:"Variable",name:{kind:"Name",value:"timeRanges"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"selectedTimes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AvailableTimeslotParts"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessage"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AvailableTimeslotParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AvailableTimeslot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}}]}}]},GXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitAvailability"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timezone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitAvailability"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timezone"},value:{kind:"Variable",name:{kind:"Name",value:"timezone"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"selectedTimes"}}]}}]}}]},Ihe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiBookAvailableTime"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timeslotId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timezone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"updatedContactInfo"}},type:{kind:"NamedType",name:{kind:"Name",value:"InviteeContactInfoInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"bookAvailableTime"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timeslotId"},value:{kind:"Variable",name:{kind:"Name",value:"timeslotId"}}},{kind:"Argument",name:{kind:"Name",value:"timezone"},value:{kind:"Variable",name:{kind:"Name",value:"timezone"}}},{kind:"Argument",name:{kind:"Name",value:"updatedContactInfo"},value:{kind:"Variable",name:{kind:"Name",value:"updatedContactInfo"}}},{kind:"Argument",name:{kind:"Name",value:"recaptchaToken"},value:{kind:"Variable",name:{kind:"Name",value:"recaptchaToken"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"request"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessage"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DisplayablePersonParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingPerson"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarUrl"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingAvailabilityRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"meetingDurationInMinutes"}},{kind:"Field",name:{kind:"Name",value:"meetingTitle"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"selectedTimes"}},{kind:"Field",name:{kind:"Name",value:"meetingSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}},{kind:"Field",name:{kind:"Name",value:"jobTitle"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isDirectBookingLink"}},{kind:"Field",name:{kind:"Name",value:"instantlyCancelOnReschedule"}},{kind:"Field",name:{kind:"Name",value:"isCancellable"}},{kind:"Field",name:{kind:"Name",value:"nonUserSelectedTimezone"}},{kind:"Field",name:{kind:"Name",value:"organizer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}}]}},{kind:"Field",name:{kind:"Name",value:"invitee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"phoneNumber"}}]}},{kind:"Field",name:{kind:"Name",value:"interviewScheduleId"}},{kind:"Field",name:{kind:"Name",value:"meetingScheduleSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"conferencingLink"}}]}},{kind:"Field",name:{kind:"Name",value:"locationType"}},{kind:"Field",name:{kind:"Name",value:"minimumDaysOfAvailability"}},{kind:"Field",name:{kind:"Name",value:"isGenericBookingLink"}},{kind:"Field",name:{kind:"Name",value:"canCandidateSuggestTimes"}}]}}]},dc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiSelectedTimeslots"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldSort"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"selectedTimes"},name:{kind:"Name",value:"selectedTimeslotsForMeetingAvailabilityRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"shouldSort"},value:{kind:"Variable",name:{kind:"Name",value:"shouldSort"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AvailableTimeslotParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AvailableTimeslotParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AvailableTimeslot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}}]}}]},JXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSetMeetingTimezone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timezone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setNonUserSelectedTimezone"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"timezone"},value:{kind:"Variable",name:{kind:"Name",value:"timezone"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"nonUserSelectedTimezone"}}]}}]}}]},YXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiUnsubmitAvailability"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unsubmitAvailability"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},KXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiRescheduleMeeting"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rescheduleMeeting"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DisplayablePersonParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingPerson"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarUrl"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingAvailabilityRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"meetingDurationInMinutes"}},{kind:"Field",name:{kind:"Name",value:"meetingTitle"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"selectedTimes"}},{kind:"Field",name:{kind:"Name",value:"meetingSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}},{kind:"Field",name:{kind:"Name",value:"jobTitle"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isDirectBookingLink"}},{kind:"Field",name:{kind:"Name",value:"instantlyCancelOnReschedule"}},{kind:"Field",name:{kind:"Name",value:"isCancellable"}},{kind:"Field",name:{kind:"Name",value:"nonUserSelectedTimezone"}},{kind:"Field",name:{kind:"Name",value:"organizer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}}]}},{kind:"Field",name:{kind:"Name",value:"invitee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"phoneNumber"}}]}},{kind:"Field",name:{kind:"Name",value:"interviewScheduleId"}},{kind:"Field",name:{kind:"Name",value:"meetingScheduleSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"conferencingLink"}}]}},{kind:"Field",name:{kind:"Name",value:"locationType"}},{kind:"Field",name:{kind:"Name",value:"minimumDaysOfAvailability"}},{kind:"Field",name:{kind:"Name",value:"isGenericBookingLink"}},{kind:"Field",name:{kind:"Name",value:"canCandidateSuggestTimes"}}]}}]},QXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiUndoRescheduleRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"undoRescheduleRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DisplayablePersonParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingPerson"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarUrl"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeetingAvailabilityRequestParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeetingAvailabilityRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"meetingDurationInMinutes"}},{kind:"Field",name:{kind:"Name",value:"meetingTitle"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"selectedTimes"}},{kind:"Field",name:{kind:"Name",value:"meetingSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"attendees"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}},{kind:"Field",name:{kind:"Name",value:"jobTitle"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isDirectBookingLink"}},{kind:"Field",name:{kind:"Name",value:"instantlyCancelOnReschedule"}},{kind:"Field",name:{kind:"Name",value:"isCancellable"}},{kind:"Field",name:{kind:"Name",value:"nonUserSelectedTimezone"}},{kind:"Field",name:{kind:"Name",value:"organizer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DisplayablePersonParts"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"links"}}]}},{kind:"Field",name:{kind:"Name",value:"invitee"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"phoneNumber"}}]}},{kind:"Field",name:{kind:"Name",value:"interviewScheduleId"}},{kind:"Field",name:{kind:"Name",value:"meetingScheduleSummary"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startTime"}},{kind:"Field",name:{kind:"Name",value:"endTime"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"conferencingLink"}}]}},{kind:"Field",name:{kind:"Name",value:"locationType"}},{kind:"Field",name:{kind:"Name",value:"minimumDaysOfAvailability"}},{kind:"Field",name:{kind:"Name",value:"isGenericBookingLink"}},{kind:"Field",name:{kind:"Name",value:"canCandidateSuggestTimes"}}]}}]},Lf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiOrganizationFromHostedJobsPageName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchContext"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrganizationSearchContext"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"organization"},name:{kind:"Name",value:"organizationFromHostedJobsPageName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"searchContext"},value:{kind:"Variable",name:{kind:"Name",value:"searchContext"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrganizationParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OrganizationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"publicWebsite"}},{kind:"Field",name:{kind:"Name",value:"customJobsPageUrl"}},{kind:"Field",name:{kind:"Name",value:"hostedJobsPageSlug"}},{kind:"Field",name:{kind:"Name",value:"allowJobPostIndexing"}},{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colors"}},{kind:"Field",name:{kind:"Name",value:"showJobFilters"}},{kind:"Field",name:{kind:"Name",value:"showTeams"}},{kind:"Field",name:{kind:"Name",value:"showAutofillApplicationsBox"}},{kind:"Field",name:{kind:"Name",value:"logoWordmarkImageUrl"}},{kind:"Field",name:{kind:"Name",value:"logoSquareImageUrl"}},{kind:"Field",name:{kind:"Name",value:"applicationSubmittedSuccessMessage"}},{kind:"Field",name:{kind:"Name",value:"jobBoardTopDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobBoardBottomDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobPostingBackUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"appConfirmationTrackingPixelHtml"}},{kind:"Field",name:{kind:"Name",value:"recruitingPrivacyPolicyUrl"}},{kind:"Field",name:{kind:"Name",value:"activeFeatureFlags"}},{kind:"Field",name:{kind:"Name",value:"timezone"}}]}}]},ZXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiOrganizationFromMeetingAvailabilityId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"organization"},name:{kind:"Name",value:"organizationFromMeetingAvailabilityId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"meetingAvailabilityRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"meetingAvailabilityRequestId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrganizationParts"}},{kind:"Field",name:{kind:"Name",value:"shouldIncludeEmployeeInfoInCandidateCommunication"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OrganizationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"publicWebsite"}},{kind:"Field",name:{kind:"Name",value:"customJobsPageUrl"}},{kind:"Field",name:{kind:"Name",value:"hostedJobsPageSlug"}},{kind:"Field",name:{kind:"Name",value:"allowJobPostIndexing"}},{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colors"}},{kind:"Field",name:{kind:"Name",value:"showJobFilters"}},{kind:"Field",name:{kind:"Name",value:"showTeams"}},{kind:"Field",name:{kind:"Name",value:"showAutofillApplicationsBox"}},{kind:"Field",name:{kind:"Name",value:"logoWordmarkImageUrl"}},{kind:"Field",name:{kind:"Name",value:"logoSquareImageUrl"}},{kind:"Field",name:{kind:"Name",value:"applicationSubmittedSuccessMessage"}},{kind:"Field",name:{kind:"Name",value:"jobBoardTopDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobBoardBottomDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobPostingBackUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"appConfirmationTrackingPixelHtml"}},{kind:"Field",name:{kind:"Name",value:"recruitingPrivacyPolicyUrl"}},{kind:"Field",name:{kind:"Name",value:"activeFeatureFlags"}},{kind:"Field",name:{kind:"Name",value:"timezone"}}]}}]},XXe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiOrganizationFromOrganizationIdAndOrganizationBrandId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationBrandId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"organization"},name:{kind:"Name",value:"organizationFromOrganizationIdAndOrganizationBrandId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationBrandId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationBrandId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrganizationParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OrganizationParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"publicWebsite"}},{kind:"Field",name:{kind:"Name",value:"customJobsPageUrl"}},{kind:"Field",name:{kind:"Name",value:"hostedJobsPageSlug"}},{kind:"Field",name:{kind:"Name",value:"allowJobPostIndexing"}},{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colors"}},{kind:"Field",name:{kind:"Name",value:"showJobFilters"}},{kind:"Field",name:{kind:"Name",value:"showTeams"}},{kind:"Field",name:{kind:"Name",value:"showAutofillApplicationsBox"}},{kind:"Field",name:{kind:"Name",value:"logoWordmarkImageUrl"}},{kind:"Field",name:{kind:"Name",value:"logoSquareImageUrl"}},{kind:"Field",name:{kind:"Name",value:"applicationSubmittedSuccessMessage"}},{kind:"Field",name:{kind:"Name",value:"jobBoardTopDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobBoardBottomDescriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"jobPostingBackUrl"}}]}},{kind:"Field",name:{kind:"Name",value:"appConfirmationTrackingPixelHtml"}},{kind:"Field",name:{kind:"Name",value:"recruitingPrivacyPolicyUrl"}},{kind:"Field",name:{kind:"Name",value:"activeFeatureFlags"}},{kind:"Field",name:{kind:"Name",value:"timezone"}}]}}]},eet={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiSourcingForm"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourcingFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourcingFormSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sourcingForm"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}},{kind:"Argument",name:{kind:"Name",value:"sourcingFormId"},value:{kind:"Variable",name:{kind:"Name",value:"sourcingFormId"}}},{kind:"Argument",name:{kind:"Name",value:"sourcingFormSlug"},value:{kind:"Variable",name:{kind:"Name",value:"sourcingFormSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SourcingFormWithFormRenderParts"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SourcingFormWithFormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SourcingFormWithFormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"organizationId"}},{kind:"Field",name:{kind:"Name",value:"sourcingFormRender"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"publicTitle"}},{kind:"Field",name:{kind:"Name",value:"descriptionHeaderHtml"}},{kind:"Field",name:{kind:"Name",value:"descriptionFooterHtml"}},{kind:"Field",name:{kind:"Name",value:"submissionSuccessMessageHtml"}},{kind:"Field",name:{kind:"Name",value:"submitButtonText"}},{kind:"Field",name:{kind:"Name",value:"showAutofillBox"}}]}}]},tet={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitSourcingFormAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sourcingFormId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitSourcingFormAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sourcingFormId"},value:{kind:"Variable",name:{kind:"Name",value:"sourcingFormId"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"actionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},net={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiSurvey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"surveyRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"survey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"surveyRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"surveyRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"surveyType"}},{kind:"Field",name:{kind:"Name",value:"organizationId"}},{kind:"Field",name:{kind:"Name",value:"surveyFormDefinitionId"}},{kind:"Field",name:{kind:"Name",value:"applicationId"}},{kind:"Field",name:{kind:"Name",value:"surveyFormRender"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"Field",name:{kind:"Name",value:"submittedAt"}},{kind:"Field",name:{kind:"Name",value:"showAnonymousSubmissionUI"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},ret={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitSurveyFormAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"surveyRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"submitAnonymously"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitSurveyFormAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"surveyRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"surveyRequestId"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"actionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"submitAnonymously"},value:{kind:"Variable",name:{kind:"Name",value:"submitAnonymously"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},iet={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApiTakeHomeSchedule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"takeHomeScheduleId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"takeHomeSchedule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"takeHomeScheduleId"},value:{kind:"Variable",name:{kind:"Name",value:"takeHomeScheduleId"}}},{kind:"Argument",name:{kind:"Name",value:"organizationHostedJobsPageName"},value:{kind:"Variable",name:{kind:"Name",value:"organizationHostedJobsPageName"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"organizationId"}},{kind:"Field",name:{kind:"Name",value:"applicationId"}},{kind:"Field",name:{kind:"Name",value:"processStatus"}},{kind:"Field",name:{kind:"Name",value:"takeHomeFormDefinitionId"}},{kind:"Field",name:{kind:"Name",value:"takeHomeFormRender"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"Field",name:{kind:"Name",value:"interview"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"candidateAssignment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]},aet={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApiSubmitTakeHomeFormAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"takeHomeScheduleId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitTakeHomeFormAction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"takeHomeScheduleId"},value:{kind:"Variable",name:{kind:"Name",value:"takeHomeScheduleId"}}},{kind:"Argument",name:{kind:"Name",value:"formRenderIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"formRenderIdentifier"}}},{kind:"Argument",name:{kind:"Name",value:"actionIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"actionIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormRenderParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormSubmitSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"JSONBoxParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormFieldEntryParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormFieldEntry"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"fieldValue"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"JSONBox"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"JSONBoxParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileList"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileParts"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"isRequired"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FormRenderParts"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FormRender"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"formControls"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"errorMessages"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"}},{kind:"Field",name:{kind:"Name",value:"fieldEntries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FormFieldEntryParts"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}}]}},{kind:"Field",name:{kind:"Name",value:"sourceFormDefinitionId"}}]}}]};async function oet(...e){return await fetch(...e)}const Ohe=new zRe({name:"frontend_non_user",version:"0.1.0",link:new yue({uri:e=>`/api/non-user-graphql?op=${encodeURIComponent(e.operationName)}`,fetch:oet}),cache:new PRe({possibleTypes:wXe.possibleTypes})});var G0={},set=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Dhe="%[a-f0-9]{2}",Jee=new RegExp("("+Dhe+")|([^%]+?)","gi"),Yee=new RegExp("("+Dhe+")+","gi");function a7(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a7(n),a7(r))}function uet(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Jee)||[],n=1;n{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},pet=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;ay==null,o=Symbol("encodeFragmentIdentifier");function s(y){switch(y.arrayFormat){case"index":return b=>(T,_)=>{const E=T.length;return _===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),"[",E,"]"].join("")]:[...T,[c(b,y),"[",c(E,y),"]=",c(_,y)].join("")]};case"bracket":return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),"[]"].join("")]:[...T,[c(b,y),"[]=",c(_,y)].join("")];case"colon-list-separator":return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,[c(b,y),":list="].join("")]:[...T,[c(b,y),":list=",c(_,y)].join("")];case"comma":case"separator":case"bracket-separator":{const b=y.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(_,E)=>E===void 0||y.skipNull&&E===null||y.skipEmptyString&&E===""?_:(E=E===null?"":E,_.length===0?[[c(T,y),b,c(E,y)].join("")]:[[_,c(E,y)].join(y.arrayFormatSeparator)])}default:return b=>(T,_)=>_===void 0||y.skipNull&&_===null||y.skipEmptyString&&_===""?T:_===null?[...T,c(b,y)]:[...T,[c(b,y),"=",c(_,y)].join("")]}}function l(y){let b;switch(y.arrayFormat){case"index":return(T,_,E)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){E[T]=_;return}E[T]===void 0&&(E[T]={}),E[T][b[1]]=_};case"bracket":return(T,_,E)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){E[T]=_;return}if(E[T]===void 0){E[T]=[_];return}E[T]=[].concat(E[T],_)};case"colon-list-separator":return(T,_,E)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){E[T]=_;return}if(E[T]===void 0){E[T]=[_];return}E[T]=[].concat(E[T],_)};case"comma":case"separator":return(T,_,E)=>{const k=typeof _=="string"&&_.includes(y.arrayFormatSeparator),A=typeof _=="string"&&!k&&d(_,y).includes(y.arrayFormatSeparator);_=A?d(_,y):_;const D=k||A?_.split(y.arrayFormatSeparator).map(R=>d(R,y)):_===null?_:d(_,y);E[T]=D};case"bracket-separator":return(T,_,E)=>{const k=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!k){E[T]=_&&d(_,y);return}const A=_===null?[]:_.split(y.arrayFormatSeparator).map(D=>d(D,y));if(E[T]===void 0){E[T]=A;return}E[T]=[].concat(E[T],A)};default:return(T,_,E)=>{if(E[T]===void 0){E[T]=_;return}E[T]=[].concat(E[T],_)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,b){return b.encode?b.strict?t(y):encodeURIComponent(y):y}function d(y,b){return b.decode?n(y):y}function f(y){return Array.isArray(y)?y.sort():typeof y=="object"?f(Object.keys(y)).sort((b,T)=>Number(b)-Number(T)).map(b=>y[b]):y}function p(y){const b=y.indexOf("#");return b!==-1&&(y=y.slice(0,b)),y}function m(y){let b="";const T=y.indexOf("#");return T!==-1&&(b=y.slice(T)),b}function h(y){y=p(y);const b=y.indexOf("?");return b===-1?"":y.slice(b+1)}function g(y,b){return b.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):b.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function v(y,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),u(b.arrayFormatSeparator);const T=l(b),_=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return _;for(const E of y.split("&")){if(E==="")continue;let[k,A]=r(b.decode?E.replace(/\+/g," "):E,"=");A=A===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?A:d(A,b),T(d(k,b),A,_)}for(const E of Object.keys(_)){const k=_[E];if(typeof k=="object"&&k!==null)for(const A of Object.keys(k))k[A]=g(k[A],b);else _[E]=g(k,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((E,k)=>{const A=_[k];return A&&typeof A=="object"&&!Array.isArray(A)?E[k]=f(A):E[k]=A,E},Object.create(null))}e.extract=h,e.parse=v,e.stringify=(y,b)=>{if(!y)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),u(b.arrayFormatSeparator);const T=A=>b.skipNull&&a(y[A])||b.skipEmptyString&&y[A]==="",_=s(b),E={};for(const A of Object.keys(y))T(A)||(E[A]=y[A]);const k=Object.keys(E);return b.sort!==!1&&k.sort(b.sort),k.map(A=>{const D=y[A];return D===void 0?"":D===null?c(A,b):Array.isArray(D)?D.length===0&&b.arrayFormat==="bracket-separator"?c(A,b)+"[]":D.reduce(_(A),[]).join("&"):c(A,b)+"="+c(D,b)}).filter(A=>A.length>0).join("&")},e.parseUrl=(y,b)=>{b=Object.assign({decode:!0},b);const[T,_]=r(y,"#");return Object.assign({url:T.split("?")[0]||"",query:v(h(y),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:d(_,b)}:{})},e.stringifyUrl=(y,b)=>{b=Object.assign({encode:!0,strict:!0,[o]:!0},b);const T=p(y.url).split("?")[0]||"",_=e.extract(y.url),E=e.parse(_,{sort:!1}),k=Object.assign(E,y.query);let A=e.stringify(k,b);A&&(A=`?${A}`);let D=m(y.url);return y.fragmentIdentifier&&(D=`#${b[o]?c(y.fragmentIdentifier,b):y.fragmentIdentifier}`),`${T}${A}${D}`},e.pick=(y,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[o]:!1},T);const{url:_,query:E,fragmentIdentifier:k}=e.parseUrl(y,T);return e.stringifyUrl({url:_,query:i(E,b),fragmentIdentifier:k},T)},e.exclude=(y,b,T)=>{const _=Array.isArray(b)?E=>!b.includes(E):(E,k)=>!b(E,k);return e.pick(y,_,T)}})(G0);var ff=(e=>(e[e.None=0]="None",e[e.IFrame=1]="IFrame",e[e.JS=2]="JS",e))(ff||{});function im(){const e=Cs();return BU(e.search)}function J0(e){return e!==0}function BU(e){const t=G0.parse(e).embed;return t==="js"?2:t==="true"||t==="iframe"?1:0}const met="_container_flnu3_28",het="_recaptchaLegal_flnu3_29",get="_powered_flnu3_66",vet="_wordmark_flnu3_79",yet="_link_flnu3_87",bet="_embedded_flnu3_107",Tet="_links_flnu3_119",Bu={container:met,recaptchaLegal:het,powered:get,wordmark:vet,link:yet,embedded:bet,links:Tet};function xhe(){const e=im(),{customDomainData:t}=va(),n=(t==null?void 0:t.organizationSlug)!=null;return F("footer",{className:[Bu.container,e?Bu.embedded:""].join(" "),children:[n?S("span",{}):F("a",{href:"https://www.ashbyhq.com",target:"_blank",rel:"noopener",className:Bu.powered,"aria-label":"Learn more about Ashby",children:[S("span",{children:"Powered by "}),S(Mhe,{className:Bu.wordmark})]}),e||t!=null&&t.hidePolicyLinks?null:F("p",{className:Bu.links,children:[S("a",{href:"https://www.ashbyhq.com/privacy",target:"_blank",rel:"noopener",className:Bu.link,children:"Privacy Policy"}),S("a",{href:"https://www.ashbyhq.com/security",target:"_blank",rel:"noopener",className:Bu.link,children:"Security"}),S("a",{href:"https://www.ashbyhq.com/disclosure",target:"_blank",rel:"noopener",className:Bu.link,children:"Vulnerability Disclosure"})]})]})}function TN(){return F("p",{className:Bu.recaptchaLegal,children:["This site is protected by reCAPTCHA and the Google ",S("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener",children:"Privacy Policy"})," ","and ",S("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener",children:"Terms of Service"})," ","apply."]})}const Mhe=e=>F("svg",{viewBox:"0 0 1540 512",fill:"none",height:"1em",...e,children:[S("title",{children:"Ashby"}),S("path",{d:"M348.899 368.429C353.474 379.689 358.4 388.135 363.678 393.765C369.309 399.043 374.763 401.858 380.041 402.21V412.767C354.705 411.711 322.683 411.184 283.975 411.184C243.86 411.184 214.301 411.711 195.299 412.767V402.21C208.671 401.507 218.172 399.923 223.802 397.46C229.432 394.645 232.247 389.894 232.247 383.208C232.247 376.874 230.136 368.429 225.913 357.872L194.771 271.307H88.1485L79.1753 295.06C67.5629 324.97 61.7567 347.843 61.7567 363.678C61.7567 378.106 65.8034 387.959 73.8969 393.237C81.9904 398.516 93.9546 401.507 109.79 402.21V412.767C83.3979 411.711 60.3491 411.184 40.6433 411.184C24.1045 411.184 10.5567 411.711 0 412.767V402.21C8.79725 400.803 17.0667 395.348 24.8082 385.847C32.5498 376.346 40.4674 361.215 48.5608 340.454L165.74 39.0598C177.001 39.7636 186.326 40.1155 193.715 40.1155C200.753 40.1155 209.902 39.7636 221.163 39.0598L348.899 368.429ZM191.076 260.751L143.043 128.792L92.3711 260.751H191.076Z"}),S("path",{d:"M498.478 131.431C512.202 131.431 525.046 133.014 537.01 136.181C549.326 138.997 558.652 142.164 564.986 145.682C568.856 147.794 572.023 148.85 574.487 148.85C581.876 148.85 586.275 143.219 587.682 131.959H598.239C596.832 150.257 596.128 181.927 596.128 226.969H585.571C582.756 203.744 576.07 184.214 565.513 168.379C555.309 152.192 540.353 144.099 520.647 144.099C511.85 144.099 504.46 146.738 498.478 152.017C492.496 157.295 489.505 164.509 489.505 173.658C489.505 185.27 493.376 195.651 501.118 204.8C508.859 213.597 520.999 224.506 537.538 237.526C538.242 237.878 543.344 241.924 552.845 249.666C572.551 265.853 586.979 280.28 596.128 292.948C605.277 305.265 609.852 320.572 609.852 338.87C609.852 354.353 605.101 368.429 595.6 381.097C586.099 393.413 573.079 403.09 556.54 410.128C540.353 416.814 522.583 420.157 503.229 420.157C481.06 420.157 462.937 415.758 448.862 406.961C442.88 403.794 437.953 401.507 434.082 400.099C430.212 398.691 426.341 397.988 422.47 397.988C415.784 397.988 410.858 404.146 407.691 416.462H397.134C398.542 396.404 399.245 361.215 399.245 310.895H409.802C412.969 339.75 420.711 362.975 433.027 380.569C445.343 398.164 460.826 406.961 479.476 406.961C488.274 406.961 495.487 404.498 501.118 399.571C507.1 394.645 510.091 387.431 510.091 377.93C510.091 368.077 507.979 359.28 503.757 351.538C499.886 343.797 494.959 336.935 488.977 330.953C483.347 324.619 474.022 315.645 461.002 304.033C446.223 290.309 434.962 279.401 427.221 271.307C419.479 263.214 412.793 253.889 407.163 243.332C401.885 232.423 399.245 220.459 399.245 207.439C399.245 192.308 403.82 178.936 412.969 167.324C422.118 155.711 434.258 146.914 449.39 140.932C464.521 134.598 480.884 131.431 498.478 131.431Z"}),S("path",{d:"M759.588 171.019C775.423 144.627 803.398 131.431 843.513 131.431C871.665 131.431 891.546 138.469 903.159 152.544C908.437 158.878 912.308 167.5 914.771 178.408C917.234 188.965 918.466 203.041 918.466 220.635V363.678C918.466 378.106 920.577 388.135 924.8 393.765C929.375 399.043 937.116 401.682 948.025 401.682V412.767C910.021 411.359 885.388 410.656 874.128 410.656C862.164 410.656 837.179 411.359 799.175 412.767V401.682C808.324 401.682 814.658 399.043 818.177 393.765C821.696 388.135 823.456 378.106 823.456 363.678V192.132C823.456 180.872 821.344 172.602 817.122 167.324C813.251 161.693 806.741 158.878 797.592 158.878C787.387 158.878 778.414 162.573 770.672 169.963C763.282 177.001 759.588 185.974 759.588 196.882V363.678C759.588 378.106 761.347 388.135 764.866 393.765C768.385 399.043 774.719 401.682 783.868 401.682V412.767C748.679 411.359 725.454 410.656 714.194 410.656C702.229 410.656 675.838 411.359 635.019 412.767V401.682C645.927 401.682 653.493 399.043 657.715 393.765C662.29 388.135 664.577 378.106 664.577 363.678V63.3402C664.577 47.1533 662.29 35.365 657.715 27.9753C653.493 20.5856 645.927 16.8907 635.019 16.8907V5.8062C645.927 6.86188 656.836 7.38972 667.744 7.38972C704.341 7.38972 734.955 4.92648 759.588 0V171.019Z"}),S("path",{d:"M1162.36 131.431C1189.81 131.431 1211.98 142.691 1228.87 165.212C1245.76 187.733 1254.21 220.635 1254.21 263.918C1254.21 319.868 1242.95 359.984 1220.42 384.264C1197.9 408.192 1168.17 420.157 1131.22 420.157C1119.96 420.157 1110.46 419.805 1102.72 419.101C1095.33 418.397 1088.47 416.638 1082.13 413.823C1069.11 408.544 1055.56 405.905 1041.49 405.905C1030.93 405.905 1021.08 407.313 1011.93 410.128C1002.78 412.943 995.743 416.638 990.816 421.212L983.427 415.934C985.89 408.544 987.122 398.867 987.122 386.903V63.3402C987.122 47.1533 984.834 35.365 980.26 27.9753C976.037 20.5856 968.471 16.8907 957.563 16.8907V5.8062C968.471 6.86188 979.38 7.38972 990.289 7.38972C1026.89 7.38972 1057.5 4.92648 1082.13 0V171.019C1098.32 144.627 1125.06 131.431 1162.36 131.431ZM1106.94 409.6C1139.31 409.6 1155.5 365.086 1155.5 276.058C1155.5 232.775 1152.33 202.513 1146 185.27C1139.67 167.676 1131.04 158.878 1120.14 158.878C1109.93 158.878 1100.96 162.573 1093.22 169.963C1085.83 177.001 1082.13 185.974 1082.13 196.882V403.266C1090.23 407.489 1098.49 409.6 1106.94 409.6Z"}),S("path",{d:"M1499.1 140.932C1519.16 140.932 1532.71 140.228 1539.74 138.821V149.905C1532.35 152.368 1525.49 157.471 1519.16 165.212C1513.18 172.954 1507.55 184.918 1502.27 201.105L1436.29 397.46L1414.12 461.328C1407.79 479.626 1400.04 492.294 1390.89 499.332C1379.99 507.777 1363.62 512 1341.81 512C1324.21 512 1307.85 507.777 1292.72 499.332C1277.59 491.239 1270.02 478.922 1270.02 462.384C1270.02 450.067 1274.77 440.214 1284.27 432.825C1293.77 425.435 1306.27 421.74 1321.75 421.74C1336.53 421.74 1348.14 425.083 1356.59 431.769C1365.03 438.455 1369.25 448.132 1369.25 460.8C1369.25 469.245 1366.26 477.163 1360.28 484.553C1354.65 492.294 1346.2 497.924 1334.94 501.443C1338.46 502.147 1344.45 502.499 1352.89 502.499C1377.17 502.499 1393.89 488.423 1403.03 460.272L1405.67 451.299L1282.69 179.464C1277.41 167.5 1272.13 159.582 1266.85 155.711C1261.93 151.841 1257 149.905 1252.07 149.905V138.821C1280.23 140.932 1308.9 141.988 1338.11 141.988C1360.98 141.988 1386.5 140.932 1414.65 138.821V149.905C1404.44 149.905 1396.53 150.609 1390.89 152.017C1385.62 153.424 1382.98 156.591 1382.98 161.518C1382.98 164.333 1383.68 167.148 1385.09 169.963L1450.01 324.619L1472.18 257.056C1478.87 236.646 1482.21 218.7 1482.21 203.217C1482.21 186.678 1478.69 173.834 1471.65 164.685C1464.62 155.535 1455.29 150.609 1443.68 149.905V138.821C1456.7 140.228 1475.17 140.932 1499.1 140.932Z"})]});Mhe.displayName="WordmarkSvg";class am extends Error{}class _et extends am{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Eet extends am{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class wet extends am{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Sy extends am{}class Rhe extends am{constructor(t){super(`Invalid unit ${t}`)}}class rs extends am{}class Ic extends am{constructor(){super("Zone is an abstract class")}}const Be="numeric",bl="short",Ao="long",bA={year:Be,month:Be,day:Be},$U={year:Be,month:bl,day:Be},Phe={year:Be,month:bl,day:Be,weekday:bl},UU={year:Be,month:Ao,day:Be},HU={year:Be,month:Ao,day:Be,weekday:Ao},VU={hour:Be,minute:Be},zU={hour:Be,minute:Be,second:Be},qU={hour:Be,minute:Be,second:Be,timeZoneName:bl},WU={hour:Be,minute:Be,second:Be,timeZoneName:Ao},jU={hour:Be,minute:Be,hour12:!1},GU={hour:Be,minute:Be,second:Be,hour12:!1},JU={hour:Be,minute:Be,second:Be,hour12:!1,timeZoneName:bl},YU={hour:Be,minute:Be,second:Be,hour12:!1,timeZoneName:Ao},KU={year:Be,month:Be,day:Be,hour:Be,minute:Be},QU={year:Be,month:Be,day:Be,hour:Be,minute:Be,second:Be},ZU={year:Be,month:bl,day:Be,hour:Be,minute:Be},XU={year:Be,month:bl,day:Be,hour:Be,minute:Be,second:Be},Fhe={year:Be,month:bl,day:Be,weekday:bl,hour:Be,minute:Be},eH={year:Be,month:Ao,day:Be,hour:Be,minute:Be,timeZoneName:bl},tH={year:Be,month:Ao,day:Be,hour:Be,minute:Be,second:Be,timeZoneName:bl},nH={year:Be,month:Ao,day:Be,weekday:Ao,hour:Be,minute:Be,timeZoneName:Ao},rH={year:Be,month:Ao,day:Be,weekday:Ao,hour:Be,minute:Be,second:Be,timeZoneName:Ao};function Zt(e){return typeof e>"u"}function Op(e){return typeof e=="number"}function _N(e){return typeof e=="number"&&e%1===0}function ket(e){return typeof e=="string"}function Aet(e){return Object.prototype.toString.call(e)==="[object Date]"}function vu(){try{return typeof Intl<"u"&&Intl.DateTimeFormat}catch{return!1}}function zb(){return!Zt(Intl.DateTimeFormat.prototype.formatToParts)}function Lhe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Cet(e){return Array.isArray(e)?e:[e]}function Kee(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Bhe(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function $g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ac(e,t,n){return _N(e)&&e>=t&&e<=n}function Net(e,t){return e-t*Math.floor(e/t)}function Th(e,t=2){const n=e<0?"-":"",r=n?e*-1:e;let i;return r.toString().length=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function _A(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function o7(e){return e>99?e:e>60?1900+e:2e3+e}function $he(e,t,n,r=null){const i=new Date(e),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o=Object.assign({timeZoneName:t},a),s=vu();if(s&&zb()){const l=new Intl.DateTimeFormat(n,o).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}else if(s){const l=new Intl.DateTimeFormat(n,a).format(i);return new Intl.DateTimeFormat(n,o).format(i).substring(l.length).replace(/^[, \u200e]+/,"")}else return null}function EN(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function Uhe(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new rs(`Invalid unit value ${e}`);return t}function EA(e,t,n){const r={};for(const i in e)if($g(e,i)){if(n.indexOf(i)>=0)continue;const a=e[i];if(a==null)continue;r[t(i)]=Uhe(a)}return r}function wA(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Th(n,2)}:${Th(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Th(n,2)}${Th(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function wN(e){return Bhe(e,["hour","minute","second","millisecond"])}const Hhe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function or(e){return JSON.stringify(e,Object.keys(e).sort())}const Iet=["January","February","March","April","May","June","July","August","September","October","November","December"],Vhe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Oet=["J","F","M","A","M","J","J","A","S","O","N","D"];function zhe(e){switch(e){case"narrow":return[...Oet];case"short":return[...Vhe];case"long":return[...Iet];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const qhe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Whe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Det=["M","T","W","T","F","S","S"];function jhe(e){switch(e){case"narrow":return[...Det];case"short":return[...Whe];case"long":return[...qhe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ghe=["AM","PM"],xet=["Before Christ","Anno Domini"],Met=["BC","AD"],Ret=["B","A"];function Jhe(e){switch(e){case"narrow":return[...Ret];case"short":return[...Met];case"long":return[...xet];default:return null}}function Pet(e){return Ghe[e.hour<12?0:1]}function Fet(e,t){return jhe(t)[e.weekday-1]}function Let(e,t){return zhe(t)[e.month-1]}function Bet(e,t){return Jhe(t)[e.year<0?0:1]}function $et(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${i[e][0]}`;case-1:return d?"yesterday":`last ${i[e][0]}`;case 0:return d?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function Uet(e){const t=Bhe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]),n=or(t),r="EEEE, LLLL d, yyyy, h:mm a";switch(n){case or(bA):return"M/d/yyyy";case or($U):return"LLL d, yyyy";case or(Phe):return"EEE, LLL d, yyyy";case or(UU):return"LLLL d, yyyy";case or(HU):return"EEEE, LLLL d, yyyy";case or(VU):return"h:mm a";case or(zU):return"h:mm:ss a";case or(qU):return"h:mm a";case or(WU):return"h:mm a";case or(jU):return"HH:mm";case or(GU):return"HH:mm:ss";case or(JU):return"HH:mm";case or(YU):return"HH:mm";case or(KU):return"M/d/yyyy, h:mm a";case or(ZU):return"LLL d, yyyy, h:mm a";case or(eH):return"LLLL d, yyyy, h:mm a";case or(nH):return r;case or(QU):return"M/d/yyyy, h:mm:ss a";case or(XU):return"LLL d, yyyy, h:mm:ss a";case or(Fhe):return"EEE, d LLL yyyy, h:mm a";case or(tH):return"LLLL d, yyyy, h:mm:ss a";case or(rH):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return r}}function Qee(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Het={D:bA,DD:$U,DDD:UU,DDDD:HU,t:VU,tt:zU,ttt:qU,tttt:WU,T:jU,TT:GU,TTT:JU,TTTT:YU,f:KU,ff:ZU,fff:eH,ffff:nH,F:QU,FF:XU,FFF:tH,FFFF:rH};class fa{static create(t,n={}){return new fa(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o0&&a.push({literal:i,val:r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:!1,val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i,val:r}),a}static macroTokenToFormatOpts(t){return Het[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,n)).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,Object.assign({},this.opts,n)).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Th(t,n);const r=Object.assign({},this.opts);return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory"&&zb(),a=(p,m)=>this.loc.extract(t,p,m),o=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",s=()=>r?Pet(t):a({hour:"numeric",hour12:!0},"dayperiod"),l=(p,m)=>r?Let(t,p):a(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>r?Fet(t,p):a(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{const m=fa.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(t,m):p},d=p=>r?Bet(t,p):a({era:p},"era"),f=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(p)}};return Qee(fa.parseFormat(n),f)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},i=l=>u=>{const c=r(u);return c?this.num(l.get(c),u.length):u},a=fa.parseFormat(n),o=a.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),s=t.shiftTo(...o.map(r).filter(l=>l));return Qee(a,i(s))}}class ol{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Wb{get type(){throw new Ic}get name(){throw new Ic}get universal(){throw new Ic}offsetName(t,n){throw new Ic}formatOffset(t,n){throw new Ic}offset(t){throw new Ic}equals(t){throw new Ic}get isValid(){throw new Ic}}let FO=null;class sH extends Wb{static get instance(){return FO===null&&(FO=new sH),FO}get type(){return"local"}get name(){return vu()?new Intl.DateTimeFormat().resolvedOptions().timeZone:"local"}get universal(){return!1}offsetName(t,{format:n,locale:r}){return $he(t,n,r)}formatOffset(t,n){return wA(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="local"}get isValid(){return!0}}const Vet=RegExp(`^${Hhe.source}$`);let $E={};function zet(e){return $E[e]||($E[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),$E[e]}const qet={year:0,month:1,day:2,hour:3,minute:4,second:5};function Wet(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u]=r;return[o,i,a,s,l,u]}function jet(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i=0?p:1e3+p,(d-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let LO=null;class wi extends Wb{static get utcInstance(){return LO===null&&(LO=new wi(0)),LO}static instance(t){return t===0?wi.utcInstance:new wi(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new wi(EN(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${wA(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return wA(this.fixed,n)}get universal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Zee extends Wb{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get universal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function y0(e,t){let n;if(Zt(e)||e===null)return t;if(e instanceof Wb)return e;if(ket(e)){const r=e.toLowerCase();return r==="local"?t:r==="utc"||r==="gmt"?wi.utcInstance:(n=Ts.parseGMTOffset(e))!=null?wi.instance(n):Ts.isValidSpecifier(r)?Ts.create(e):wi.parseSpecifier(r)||new Zee(e)}else return Op(e)?wi.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new Zee(e)}let Xee=()=>Date.now(),BO=null,ete=null,tte=null,nte=null,rte=!1;class gr{static get now(){return Xee}static set now(t){Xee=t}static get defaultZoneName(){return gr.defaultZone.name}static set defaultZoneName(t){t?BO=y0(t):BO=null}static get defaultZone(){return BO||sH.instance}static get defaultLocale(){return ete}static set defaultLocale(t){ete=t}static get defaultNumberingSystem(){return tte}static set defaultNumberingSystem(t){tte=t}static get defaultOutputCalendar(){return nte}static set defaultOutputCalendar(t){nte=t}static get throwOnInvalid(){return rte}static set throwOnInvalid(t){rte=t}static resetCaches(){ur.resetCache(),Ts.resetCache()}}let s7={};function l7(e,t={}){const n=JSON.stringify([e,t]);let r=s7[n];return r||(r=new Intl.DateTimeFormat(e,t),s7[n]=r),r}let u7={};function Get(e,t={}){const n=JSON.stringify([e,t]);let r=u7[n];return r||(r=new Intl.NumberFormat(e,t),u7[n]=r),r}let c7={};function Jet(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=c7[i];return a||(a=new Intl.RelativeTimeFormat(e,t),c7[i]=a),a}let i0=null;function Yet(){if(i0)return i0;if(vu()){const e=new Intl.DateTimeFormat().resolvedOptions().locale;return i0=!e||e==="und"?"en-US":e,i0}else return i0="en-US",i0}function Ket(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const r=e.substring(0,t);try{n=l7(e).resolvedOptions()}catch{n=l7(r).resolvedOptions()}const{numberingSystem:i,calendar:a}=n;return[r,i,a]}}function Qet(e,t,n){return vu()?((n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e):[]}function Zet(e){const t=[];for(let n=1;n<=12;n++){const r=qe.utc(2016,n,1);t.push(e(r))}return t}function Xet(e){const t=[];for(let n=1;n<=7;n++){const r=qe.utc(2016,11,13+n);t.push(e(r))}return t}function h_(e,t,n,r,i){const a=e.listingMode(n);return a==="error"?null:a==="en"?r(t):i(t)}function ett(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||vu()&&new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class ttt{constructor(t,n,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!n&&vu()){const i={useGrouping:!1};r.padTo>0&&(i.minimumIntegerDigits=r.padTo),this.inf=Get(t,i)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):aH(t,3);return Th(n,this.padTo)}}}class ntt{constructor(t,n,r){this.opts=r,this.hasIntl=vu();let i;if(t.zone.universal&&this.hasIntl){const a=-1*(t.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`,s=Ts.isValidZone(o);t.offset!==0&&s?(i=o,this.dt=t):(i="UTC",r.timeZoneName?this.dt=t:this.dt=t.offset===0?t:qe.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="local"?this.dt=t:(this.dt=t,i=t.zone.name);if(this.hasIntl){const a=Object.assign({},this.opts);i&&(a.timeZone=i),this.dtf=l7(n,a)}}format(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());{const t=Uet(this.opts),n=ur.create("en-US");return fa.create(n).formatDateTimeFromString(this.dt,t)}}formatToParts(){return this.hasIntl&&zb()?this.dtf.formatToParts(this.dt.toJSDate()):[]}resolvedOptions(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}}}class rtt{constructor(t,n,r){this.opts=Object.assign({style:"long"},r),!n&&Lhe()&&(this.rtf=Jet(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):$et(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class ur{static fromOpts(t){return ur.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const a=t||gr.defaultLocale,o=a||(i?"en-US":Yet()),s=n||gr.defaultNumberingSystem,l=r||gr.defaultOutputCalendar;return new ur(o,s,l,a)}static resetCache(){i0=null,s7={},u7={},c7={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return ur.create(t,n,r)}constructor(t,n,r,i){const[a,o,s]=Ket(t);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||s||null,this.intl=Qet(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ett(this)),this.fastNumbersCached}listingMode(t=!0){const n=vu(),r=n&&zb(),i=this.isEnglish(),a=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return!r&&!(i&&a)&&!t?"error":!r||i&&a?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:ur.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(Object.assign({},t,{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Object.assign({},t,{defaultToEN:!1}))}months(t,n=!1,r=!0){return h_(this,t,r,zhe,()=>{const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";return this.monthsCache[a][t]||(this.monthsCache[a][t]=Zet(o=>this.extract(o,i,"month"))),this.monthsCache[a][t]})}weekdays(t,n=!1,r=!0){return h_(this,t,r,jhe,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},a=n?"format":"standalone";return this.weekdaysCache[a][t]||(this.weekdaysCache[a][t]=Xet(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[a][t]})}meridiems(t=!0){return h_(this,void 0,t,()=>Ghe,()=>{if(!this.meridiemCache){const n={hour:"numeric",hour12:!0};this.meridiemCache=[qe.utc(2016,11,13,9),qe.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return h_(this,t,n,Jhe,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[qe.utc(-40,1,1),qe.utc(2017,1,1)].map(i=>this.extract(i,r,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new ttt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ntt(t,this.intl,n)}relFormatter(t={}){return new rtt(this.intl,this.isEnglish(),t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||vu()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function F1(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function om(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[Object.assign(n,o),r||s,l]},[{},null,1]).slice(0,2)}function L1(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function Yhe(...e){return(t,n)=>{const r={};let i;for(i=0;ip!==void 0&&(m||p&&c)?-p:p;return[{years:f(sa(n)),months:f(sa(r)),weeks:f(sa(i)),days:f(sa(a)),hours:f(sa(o)),minutes:f(sa(s)),seconds:f(sa(l),l==="-0"),milliseconds:f(iH(u),d)}]}const mtt={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cH(e,t,n,r,i,a,o){const s={year:t.length===2?o7(sa(t)):sa(t),month:Vhe.indexOf(n)+1,day:sa(r),hour:sa(i),minute:sa(a)};return o&&(s.second=sa(o)),e&&(s.weekday=e.length>3?qhe.indexOf(e)+1:Whe.indexOf(e)+1),s}const htt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function gtt(e){const[,t,n,r,i,a,o,s,l,u,c,d]=e,f=cH(t,i,r,n,a,o,s);let p;return l?p=mtt[l]:u?p=0:p=EN(c,d),[f,new wi(p)]}function vtt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ytt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Stt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,btt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ite(e){const[,t,n,r,i,a,o,s]=e;return[cH(t,i,r,n,a,o,s),wi.utcInstance]}function Ttt(e){const[,t,n,r,i,a,o,s]=e;return[cH(t,s,n,r,i,a,o),wi.utcInstance]}const _tt=F1(itt,uH),Ett=F1(att,uH),wtt=F1(ott,uH),ktt=F1(Qhe),Att=om(Xhe,sm,B1),Ctt=om(stt,sm,B1),Ntt=om(ltt,sm,B1),Itt=om(sm,B1);function Ott(e){return L1(e,[_tt,Att],[Ett,Ctt],[wtt,Ntt],[ktt,Itt])}function Dtt(e){return L1(vtt(e),[htt,gtt])}function xtt(e){return L1(e,[ytt,ite],[Stt,ite],[btt,Ttt])}function Mtt(e){return L1(e,[ftt,ptt])}const Rtt=om(sm);function Ptt(e){return L1(e,[dtt,Rtt])}const Ftt=F1(utt,ctt),Ltt=F1(Zhe),Btt=om(Xhe,sm,B1,ege),$tt=om(sm,B1,ege);function Utt(e){return L1(e,[Ftt,Btt],[Ltt,$tt])}const Htt="Invalid Duration",tge={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Vtt=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},tge),zo=146097/400,_m=146097/4800,ztt=Object.assign({years:{quarters:4,months:12,weeks:zo/7,days:zo,hours:zo*24,minutes:zo*24*60,seconds:zo*24*60*60,milliseconds:zo*24*60*60*1e3},quarters:{months:3,weeks:zo/28,days:zo/4,hours:zo*24/4,minutes:zo*24*60/4,seconds:zo*24*60*60/4,milliseconds:zo*24*60*60*1e3/4},months:{weeks:_m/7,days:_m,hours:_m*24,minutes:_m*24*60,seconds:_m*24*60*60,milliseconds:_m*24*60*60*1e3}},tge),zm=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qtt=zm.slice(0).reverse();function Kf(e,t,n=!1){const r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new xn(r)}function Wtt(e){return e<0?Math.floor(e):Math.ceil(e)}function nge(e,t,n,r,i){const a=e[i][n],o=t[n]/a,s=Math.sign(o)===Math.sign(r[i]),l=!s&&r[i]!==0&&Math.abs(o)<=1?Wtt(o):Math.trunc(o);r[i]+=l,t[n]-=l*a}function jtt(e,t){qtt.reduce((n,r)=>Zt(t[r])?n:(n&&nge(e,t,n,t,r),r),null)}class xn{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||ur.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?ztt:Vtt,this.isLuxonDuration=!0}static fromMillis(t,n){return xn.fromObject(Object.assign({milliseconds:t},n))}static fromObject(t){if(t==null||typeof t!="object")throw new rs(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new xn({values:EA(t,xn.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ur.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromISO(t,n){const[r]=Mtt(t);if(r){const i=Object.assign(r,n);return xn.fromObject(i)}else return xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Ptt(t);if(r){const i=Object.assign(r,n);return xn.fromObject(i)}else return xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new rs("need to specify a reason the Duration is invalid");const r=t instanceof ol?t:new ol(t,n);if(gr.throwOnInvalid)throw new wet(r);return new xn({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Rhe(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r=Object.assign({},n,{floor:n.round!==!1&&n.floor!==!1});return this.isValid?fa.create(this.loc,r).formatDurationFromString(this,t):Htt}toObject(t={}){if(!this.isValid)return{};const n=Object.assign({},this.values);return t.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=aH(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const r=this.shiftTo("hours","minutes","seconds","milliseconds");let i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(i+=".SSS"));let a=r.toFormat(i);return t.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Y0(t),r={};for(const i of zm)($g(n.values,i)||$g(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Kf(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Y0(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Uhe(t(this.values[r],r));return Kf(this,{values:n},!0)}get(t){return this[xn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n=Object.assign(this.values,EA(t,xn.normalizeUnit,[]));return Kf(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n}),a={loc:i};return r&&(a.conversionAccuracy=r),Kf(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return jtt(this.matrix,t),Kf(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>xn.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of zm)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;Op(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=s-l;for(const u in i)zm.indexOf(u)>zm.indexOf(o)&&nge(this.matrix,i,u,n,o)}else Op(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return Kf(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=-this.values[n];return Kf(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of zm)if(!n(this.values[r],t.values[r]))return!1;return!0}}function Y0(e){if(Op(e))return xn.fromMillis(e);if(xn.isDuration(e))return e;if(typeof e=="object")return xn.fromObject(e);throw new rs(`Unknown duration argument ${e} of type ${typeof e}`)}const Nv="Invalid Interval";function Gtt(e,t){return!e||!e.isValid?Vn.invalid("missing or invalid start"):!t||!t.isValid?Vn.invalid("missing or invalid end"):tt:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Vn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Dv).filter(o=>this.contains(o)).sort(),r=[];let{s:i}=this,a=0;for(;i+this.e?this.e:o;r.push(Vn.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=Y0(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;rl*i));a=+s>+this.e?this.e:s,o.push(Vn.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e=r?null:Vn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.st.e?this.e:t.e;return Vn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(Vn.fromDateTimes(n,l.time)),n=null);return Vn.merge(i)}difference(...t){return Vn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Nv}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Nv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Nv}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Nv}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Nv}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):xn.invalid(this.invalidReason)}mapEndpoints(t){return Vn.fromDateTimes(t(this.s),t(this.e))}}class g_{static hasDST(t=gr.defaultZone){const n=qe.now().setZone(t).set({month:12});return!t.universal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Ts.isValidSpecifier(t)&&Ts.isValidZone(t)}static normalizeZone(t){return y0(t,gr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||ur.create(n,r,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||ur.create(n,r,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||ur.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||ur.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return ur.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return ur.create(n,null,"gregory").eras(t)}static features(){let t=!1,n=!1,r=!1,i=!1;if(vu()){t=!0,n=zb(),i=Lhe();try{r=new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone==="America/New_York"}catch{r=!1}}return{intl:t,intlTokens:n,zones:r,relative:i}}}function ate(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(xn.fromMillis(r).as("days"))}function Jtt(e,t,n){const r=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const u=ate(s,l);return(u-u%7)/7}],["days",ate]],i={};let a,o;for(const[s,l]of r)if(n.indexOf(s)>=0){a=s;let u=l(e,t);o=e.plus({[s]:u}),o>t?(e=e.plus({[s]:u-1}),u-=1):e=o,i[s]=u}return[e,i,o,a]}function Ytt(e,t,n,r){let[i,a,o,s]=Jtt(e,t,n);const l=t-i,u=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o0?xn.fromMillis(l,r).shiftTo(...u).plus(c):c}const dH={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ote={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ktt=dH.hanidec.replace(/[\[|\]]/g,"").split("");function Qtt(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}function Bs({numberingSystem:e},t=""){return new RegExp(`${dH[e||"latn"]}${t}`)}const Ztt="missing Intl.DateTimeFormat.formatToParts support";function dn(e,t=n=>n){return{regex:e,deser:([n])=>t(Qtt(n))}}const Xtt=String.fromCharCode(160),rge=`( |${Xtt})`,ige=new RegExp(rge,"g");function ent(e){return e.replace(/\./g,"\\.?").replace(ige,rge)}function ste(e){return e.replace(/\./g,"").replace(ige," ").toLowerCase()}function $s(e,t){return e===null?null:{regex:RegExp(e.map(ent).join("|")),deser:([n])=>e.findIndex(r=>ste(n)===ste(r))+t}}function lte(e,t){return{regex:e,deser:([,n,r])=>EN(n,r),groups:t}}function ute(e){return{regex:e,deser:([t])=>t}}function tnt(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function nnt(e,t){const n=Bs(t),r=Bs(t,"{2}"),i=Bs(t,"{3}"),a=Bs(t,"{4}"),o=Bs(t,"{6}"),s=Bs(t,"{1,2}"),l=Bs(t,"{1,3}"),u=Bs(t,"{1,6}"),c=Bs(t,"{1,9}"),d=Bs(t,"{2,4}"),f=Bs(t,"{4,6}"),p=g=>({regex:RegExp(tnt(g.val)),deser:([v])=>v,literal:!0}),h=(g=>{if(e.literal)return p(g);switch(g.val){case"G":return $s(t.eras("short",!1),0);case"GG":return $s(t.eras("long",!1),0);case"y":return dn(u);case"yy":return dn(d,o7);case"yyyy":return dn(a);case"yyyyy":return dn(f);case"yyyyyy":return dn(o);case"M":return dn(s);case"MM":return dn(r);case"MMM":return $s(t.months("short",!0,!1),1);case"MMMM":return $s(t.months("long",!0,!1),1);case"L":return dn(s);case"LL":return dn(r);case"LLL":return $s(t.months("short",!1,!1),1);case"LLLL":return $s(t.months("long",!1,!1),1);case"d":return dn(s);case"dd":return dn(r);case"o":return dn(l);case"ooo":return dn(i);case"HH":return dn(r);case"H":return dn(s);case"hh":return dn(r);case"h":return dn(s);case"mm":return dn(r);case"m":return dn(s);case"q":return dn(s);case"qq":return dn(r);case"s":return dn(s);case"ss":return dn(r);case"S":return dn(l);case"SSS":return dn(i);case"u":return ute(c);case"a":return $s(t.meridiems(),0);case"kkkk":return dn(a);case"kk":return dn(d,o7);case"W":return dn(s);case"WW":return dn(r);case"E":case"c":return dn(n);case"EEE":return $s(t.weekdays("short",!1,!1),1);case"EEEE":return $s(t.weekdays("long",!1,!1),1);case"ccc":return $s(t.weekdays("short",!0,!1),1);case"cccc":return $s(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return lte(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return lte(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return ute(/[a-z_+-/]{1,256}?/i);default:return p(g)}})(e)||{invalidReason:Ztt};return h.token=e,h}const rnt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function int(e,t,n){const{type:r,value:i}=e;if(r==="literal")return{literal:!0,val:i};const a=n[r];let o=rnt[r];if(typeof o=="object"&&(o=o[a]),o)return{literal:!1,val:o}}function ant(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function ont(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if($g(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function snt(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n;return Zt(e.Z)?Zt(e.z)?n=null:n=Ts.create(e.z):n=new wi(e.Z),Zt(e.q)||(e.M=(e.q-1)*3+1),Zt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Zt(e.u)||(e.S=iH(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n]}let $O=null;function lnt(){return $O||($O=qe.fromMillis(1555555555555)),$O}function unt(e,t){if(e.literal)return e;const n=fa.macroTokenToFormatOpts(e.val);if(!n)return e;const a=fa.create(t,n).formatDateTimeParts(lnt()).map(o=>int(o,t,n));return a.includes(void 0)?e:a}function cnt(e,t){return Array.prototype.concat(...e.map(n=>unt(n,t)))}function age(e,t,n){const r=cnt(fa.parseFormat(n),e),i=r.map(o=>nnt(o,e)),a=i.find(o=>o.invalidReason);if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};{const[o,s]=ant(i),l=RegExp(o,"i"),[u,c]=ont(t,l,s),[d,f]=c?snt(c):[null,null];if($g(c,"a")&&$g(c,"H"))throw new Sy("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:c,result:d,zone:f}}}function dnt(e,t,n){const{result:r,zone:i,invalidReason:a}=age(e,t,n);return[r,i,a]}const oge=[0,31,59,90,120,151,181,212,243,273,304,334],sge=[0,31,60,91,121,152,182,213,244,274,305,335];function gs(e,t){return new ol("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function lge(e,t,n){const r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return r===0?7:r}function uge(e,t,n){return n+(qb(e)?sge:oge)[t-1]}function cge(e,t){const n=qb(e)?sge:oge,r=n.findIndex(a=>a_A(t)?(s=t+1,o=1):s=t,Object.assign({weekYear:s,weekNumber:o,weekday:a},wN(e))}function cte(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=lge(t,1,4),a=a2(t);let o=n*7+r-i-3,s;o<1?(s=t-1,o+=a2(s)):o>a?(s=t+1,o-=a2(t)):s=t;const{month:l,day:u}=cge(s,o);return Object.assign({year:s,month:l,day:u},wN(e))}function UO(e){const{year:t,month:n,day:r}=e,i=uge(t,n,r);return Object.assign({year:t,ordinal:i},wN(e))}function dte(e){const{year:t,ordinal:n}=e,{month:r,day:i}=cge(t,n);return Object.assign({year:t,month:r,day:i},wN(e))}function fnt(e){const t=_N(e.weekYear),n=ac(e.weekNumber,1,_A(e.weekYear)),r=ac(e.weekday,1,7);return t?n?r?!1:gs("weekday",e.weekday):gs("week",e.week):gs("weekYear",e.weekYear)}function pnt(e){const t=_N(e.year),n=ac(e.ordinal,1,a2(e.year));return t?n?!1:gs("ordinal",e.ordinal):gs("year",e.year)}function dge(e){const t=_N(e.year),n=ac(e.month,1,12),r=ac(e.day,1,TA(e.year,e.month));return t?n?r?!1:gs("day",e.day):gs("month",e.month):gs("year",e.year)}function fge(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=ac(t,0,23)||t===24&&n===0&&r===0&&i===0,o=ac(n,0,59),s=ac(r,0,59),l=ac(i,0,999);return a?o?s?l?!1:gs("millisecond",i):gs("second",r):gs("minute",n):gs("hour",t)}const HO="Invalid DateTime",fte=864e13;function v_(e){return new ol("unsupported zone",`the zone "${e.name}" is not supported`)}function VO(e){return e.weekData===null&&(e.weekData=d7(e.c)),e.weekData}function Iv(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new qe(Object.assign({},n,t,{old:n}))}function pge(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function pte(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function UE(e,t,n){return pge(oH(e),t,n)}function mte(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,TA(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=xn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=oH(a);let[l,u]=pge(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Ov(e,t,n,r,i){const{setZone:a,zone:o}=n;if(e&&Object.keys(e).length!==0){const s=t||o,l=qe.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return a?l:l.setZone(o)}else return qe.invalid(new ol("unparsable",`the input "${i}" can't be parsed as ${r}`))}function qm(e,t,n=!0){return e.isValid?fa.create(ur.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function hte(e,{suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r,includePrefix:i=!1,includeZone:a=!1,spaceZone:o=!1,format:s="extended"}){let l=s==="basic"?"HHmm":"HH:mm";(!t||e.second!==0||e.millisecond!==0)&&(l+=s==="basic"?"ss":":ss",(!n||e.millisecond!==0)&&(l+=".SSS")),(a||r)&&o&&(l+=" "),a?l+="z":r&&(l+=s==="basic"?"ZZZ":"ZZ");let u=qm(e,l);return i&&(u="T"+u),u}const mge={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},mnt={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},hnt={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hge=["year","month","day","hour","minute","second","millisecond"],gnt=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],vnt=["year","ordinal","hour","minute","second","millisecond"];function gte(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Rhe(e);return t}function vte(e,t){for(const s of hge)Zt(e[s])&&(e[s]=mge[s]);const n=dge(e)||fge(e);if(n)return qe.invalid(n);const r=gr.now(),i=t.offset(r),[a,o]=UE(e,i,t);return new qe({ts:a,zone:t,o})}function yte(e,t,n){const r=Zt(n.round)?!0:n.round,i=(o,s)=>(o=aH(o,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(o,s)),a=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const s=a(o);if(Math.abs(s)>=1)return i(s,o)}return i(e>t?-0:0,n.units[n.units.length-1])}class qe{constructor(t){const n=t.zone||gr.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ol("invalid input"):null)||(n.isValid?null:v_(n));this.ts=Zt(t.ts)?gr.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const s=n.offset(this.ts);i=pte(this.ts,s),r=Number.isNaN(i.year)?new ol("invalid input"):null,i=r?null:i,a=r?null:s}this._zone=n,this.loc=t.loc||ur.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new qe({})}static local(t,n,r,i,a,o,s){return Zt(t)?qe.now():vte({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},gr.defaultZone)}static utc(t,n,r,i,a,o,s){return Zt(t)?new qe({ts:gr.now(),zone:wi.utcInstance}):vte({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},wi.utcInstance)}static fromJSDate(t,n={}){const r=Aet(t)?t.valueOf():NaN;if(Number.isNaN(r))return qe.invalid("invalid input");const i=y0(n.zone,gr.defaultZone);return i.isValid?new qe({ts:r,zone:i,loc:ur.fromObject(n)}):qe.invalid(v_(i))}static fromMillis(t,n={}){if(Op(t))return t<-fte||t>fte?qe.invalid("Timestamp out of range"):new qe({ts:t,zone:y0(n.zone,gr.defaultZone),loc:ur.fromObject(n)});throw new rs(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Op(t))return new qe({ts:t*1e3,zone:y0(n.zone,gr.defaultZone),loc:ur.fromObject(n)});throw new rs("fromSeconds requires a numerical input")}static fromObject(t){const n=y0(t.zone,gr.defaultZone);if(!n.isValid)return qe.invalid(v_(n));const r=gr.now(),i=n.offset(r),a=EA(t,gte,["zone","locale","outputCalendar","numberingSystem"]),o=!Zt(a.ordinal),s=!Zt(a.year),l=!Zt(a.month)||!Zt(a.day),u=s||l,c=a.weekYear||a.weekNumber,d=ur.fromObject(t);if((u||o)&&c)throw new Sy("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Sy("Can't mix ordinal dates with month/day");const f=c||a.weekday&&!u;let p,m,h=pte(r,i);f?(p=gnt,m=mnt,h=d7(h)):o?(p=vnt,m=hnt,h=UO(h)):(p=hge,m=mge);let g=!1;for(const k of p){const A=a[k];Zt(A)?g?a[k]=m[k]:a[k]=h[k]:g=!0}const v=f?fnt(a):o?pnt(a):dge(a),y=v||fge(a);if(y)return qe.invalid(y);const b=f?cte(a):o?dte(a):a,[T,_]=UE(b,i,n),E=new qe({ts:T,zone:n,o:_,loc:d});return a.weekday&&u&&t.weekday!==E.weekday?qe.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${E.toISO()}`):E}static fromISO(t,n={}){const[r,i]=Ott(t);return Ov(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=Dtt(t);return Ov(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=xtt(t);return Ov(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Zt(t)||Zt(n))throw new rs("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=ur.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u]=dnt(o,t,n);return u?qe.invalid(u):Ov(s,l,r,`format ${n}`,t)}static fromString(t,n,r={}){return qe.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=Utt(t);return Ov(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new rs("need to specify a reason the DateTime is invalid");const r=t instanceof ol?t:new ol(t,n);if(gr.throwOnInvalid)throw new _et(r);return new qe({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?VO(this).weekYear:NaN}get weekNumber(){return this.isValid?VO(this).weekNumber:NaN}get weekday(){return this.isValid?VO(this).weekday:NaN}get ordinal(){return this.isValid?UO(this.c).ordinal:NaN}get monthShort(){return this.isValid?g_.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?g_.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?g_.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?g_.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.universal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return qb(this.year)}get daysInMonth(){return TA(this.year,this.month)}get daysInYear(){return this.isValid?a2(this.year):NaN}get weeksInWeekYear(){return this.isValid?_A(this.weekYear):NaN}resolvedLocaleOpts(t={}){const{locale:n,numberingSystem:r,calendar:i}=fa.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(wi.instance(t),n)}toLocal(){return this.setZone(gr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=y0(t,gr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=UE(o,a,t)}return Iv(this,{ts:i,zone:t})}else return qe.invalid(v_(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return Iv(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=EA(t,gte,[]),r=!Zt(n.weekYear)||!Zt(n.weekNumber)||!Zt(n.weekday),i=!Zt(n.ordinal),a=!Zt(n.year),o=!Zt(n.month)||!Zt(n.day),s=a||o,l=n.weekYear||n.weekNumber;if((s||i)&&l)throw new Sy("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new Sy("Can't mix ordinal dates with month/day");let u;r?u=cte(Object.assign(d7(this.c),n)):Zt(n.ordinal)?(u=Object.assign(this.toObject(),n),Zt(n.day)&&(u.day=Math.min(TA(u.year,u.month),u.day))):u=dte(Object.assign(UO(this.c),n));const[c,d]=UE(u,this.o,this.zone);return Iv(this,{ts:c,o:d})}plus(t){if(!this.isValid)return this;const n=Y0(t);return Iv(this,mte(this,n))}minus(t){if(!this.isValid)return this;const n=Y0(t).negate();return Iv(this,mte(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=xn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?fa.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):HO}toLocaleString(t=bA){return this.isValid?fa.create(this.loc.clone(t),t).formatDateTime(this):HO}toLocaleParts(t={}){return this.isValid?fa.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(t={}){return this.isValid?`${this.toISODate(t)}T${this.toISOTime(t)}`:null}toISODate({format:t="extended"}={}){let n=t==="basic"?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),qm(this,n)}toISOWeekDate(){return qm(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,format:a="extended"}={}){return hte(this,{suppressSeconds:n,suppressMilliseconds:t,includeOffset:r,includePrefix:i,format:a})}toRFC2822(){return qm(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qm(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return qm(this,"yyyy-MM-dd")}toSQLTime({includeOffset:t=!0,includeZone:n=!1}={}){return hte(this,{includeOffset:t,includeZone:n,spaceZone:!0})}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():HO}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n=Object.assign({},this.c);return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return xn.invalid(this.invalid||t.invalid,"created by diffing an invalid DateTime");const i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},r),a=Cet(n).map(xn.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=Ytt(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(qe.now(),t,n)}until(t){return this.isValid?Vn.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||qe.fromObject({zone:this.zone}),r=t.padding?thisn.valueOf(),Math.min)}static max(...t){if(!t.every(qe.isDateTime))throw new rs("max requires all arguments be DateTimes");return Kee(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=ur.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return age(o,t,n)}static fromStringExplain(t,n,r={}){return qe.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return bA}static get DATE_MED(){return $U}static get DATE_MED_WITH_WEEKDAY(){return Phe}static get DATE_FULL(){return UU}static get DATE_HUGE(){return HU}static get TIME_SIMPLE(){return VU}static get TIME_WITH_SECONDS(){return zU}static get TIME_WITH_SHORT_OFFSET(){return qU}static get TIME_WITH_LONG_OFFSET(){return WU}static get TIME_24_SIMPLE(){return jU}static get TIME_24_WITH_SECONDS(){return GU}static get TIME_24_WITH_SHORT_OFFSET(){return JU}static get TIME_24_WITH_LONG_OFFSET(){return YU}static get DATETIME_SHORT(){return KU}static get DATETIME_SHORT_WITH_SECONDS(){return QU}static get DATETIME_MED(){return ZU}static get DATETIME_MED_WITH_SECONDS(){return XU}static get DATETIME_MED_WITH_WEEKDAY(){return Fhe}static get DATETIME_FULL(){return eH}static get DATETIME_FULL_WITH_SECONDS(){return tH}static get DATETIME_HUGE(){return nH}static get DATETIME_HUGE_WITH_SECONDS(){return rH}}function Dv(e){if(qe.isDateTime(e))return e;if(e&&e.valueOf&&Op(e.valueOf()))return qe.fromJSDate(e);if(e&&typeof e=="object")return qe.fromObject(e);throw new rs(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var gge={exports:{}};(function(e,t){(function(n,r){e.exports=r(N)})(typeof self<"u"?self:ap,function(n){return function(r){function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}var a={};return i.m=r,i.c=a,i.d=function(o,s,l){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:l})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=7)}([function(r,i,a){function o(L,V){return d(L)||c(L,V)||l(L,V)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(L,V){if(L){if(typeof L=="string")return u(L,V);var U=Object.prototype.toString.call(L).slice(8,-1);return U==="Object"&&L.constructor&&(U=L.constructor.name),U==="Map"||U==="Set"?Array.from(L):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?u(L,V):void 0}}function u(L,V){(V==null||V>L.length)&&(V=L.length);for(var U=0,J=new Array(V);U=D;case"max":return R<=D;default:return R===D}});return _&&!b||!_&&b})}function s(g){return g.split(",").map(function(v){v=v.trim();var y=v.match(d),b=y[1],T=y[2],_=y[3]||"",E={};return E.inverse=!!b&&b.toLowerCase()==="not",E.type=T?T.toLowerCase():"all",_=_.match(/\([^\)]+\)/g)||[],E.expressions=_.map(function(k){var A=k.match(f),D=A[1].toLowerCase().match(p);return{modifier:D[1],feature:D[2],value:A[2]}}),E})}function l(g){var v,y=Number(g);return y||(v=g.match(/^(\d+)\s*\/\s*(\d+)$/),y=v[1]/v[2]),y}function u(g){var v=parseFloat(g);switch(String(g).match(h)[1]){case"dpcm":return v/2.54;case"dppx":return 96*v;default:return v}}function c(g){var v=parseFloat(g);switch(String(g).match(m)[1]){case"em":case"rem":return 16*v;case"cm":return 96*v/2.54;case"mm":return 96*v/2.54/10;case"in":return 96*v;case"pt":return 72*v;case"pc":return 72*v/12;default:return v}}i.match=o,i.parse=s;var d=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,f=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,p=/^(?:(min|max)-)?(.+)/,m=/(em|rem|px|cm|mm|in|pt|pc)?$/,h=/(dpi|dpcm|dppx)?$/},function(r,i,a){function o(s,l){if(s===l)return!0;if(!s||!l)return!1;var u=Object.keys(s),c=Object.keys(l),d=u.length;if(c.length!==d)return!1;for(var f=0;f1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),o)}function k(M){function W(ce,ue,he,Ce,fe){if(typeof M!="function")return new v("Property `"+fe+"` of component `"+he+"` has invalid PropType notation inside objectOf.");var ge=ce[ue],de=L(ge);if(de!=="object")return new v("Invalid "+Ce+" `"+fe+"` of type `"+de+"` supplied to `"+he+"`, expected an object.");for(var Re in ge)if(d(ge,Re)){var De=M(ge,Re,he,Ce,fe+"."+Re,u);if(De instanceof Error)return De}return null}return y(W)}function A(M){function W(he,Ce,fe,ge,de){for(var Re=0;Re>",te={array:b("array"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:function(){return y(o)}(),arrayOf:T,element:function(){function M(W,ce,ue,he,Ce){var fe=W[ce];return p(fe)?null:new v("Invalid "+he+" `"+Ce+"` of type `"+L(fe)+"` supplied to `"+ue+"`, expected a single ReactElement.")}return y(M)}(),elementType:function(){function M(W,ce,ue,he,Ce){var fe=W[ce];return s.isValidElementType(fe)?null:new v("Invalid "+he+" `"+Ce+"` of type `"+L(fe)+"` supplied to `"+ue+"`, expected a single ReactElement type.")}return y(M)}(),instanceOf:_,node:function(){function M(W,ce,ue,he,Ce){return B(W[ce])?null:new v("Invalid "+he+" `"+Ce+"` supplied to `"+ue+"`, expected a ReactNode.")}return y(M)}(),objectOf:k,oneOf:E,oneOfType:A,shape:D,exact:R};return v.prototype=Error.prototype,te.checkPropTypes=c,te.resetWarningCache=c.resetWarningCache,te.PropTypes=te,te}},function(r,i,a){function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}/* object-assign (c) Sindre Sorhus @license MIT */var s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;r.exports=function(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var d={},f=0;f<10;f++)d["_"+String.fromCharCode(f)]=f;if(Object.getOwnPropertyNames(d).map(function(m){return d[m]}).join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(c,d){for(var f,p,m=o(c),h=1;h=0||Object.prototype.propertyIsEnumerable.call(c,f)&&(m[f]=c[f])}return m}function s(c,d){if(c==null)return{};var f,p,m={},h=Object.keys(c);for(p=0;p=0||(m[f]=c[f]);return m}function l(c){var d=c.children,f=c.device,p=c.onChange,m=o(c,["children","device","onChange"]),h=Object(u.a)(m,f,p);return typeof d=="function"?d(h):h?d:null}i.a=l;var u=a(0)}])})})(gge);var vge=gge.exports;const ynt="768px",Snt="767px",yge={desktop:ynt,mobile:Snt};var wt=(e=>(e.Negative="negative",e.Neutral="neutral",e.Positive="positive",e.NeedsAction="needsAction",e.Warning="warning",e))(wt||{}),Tt=(e=>(e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Quaternary="quaternary",e))(Tt||{});const bnt=yge.desktop,Tnt=yge.mobile;function Sge(){return vge.useMediaQuery({query:`(min-width: ${bnt})`})}function Ou(){return vge.useMediaQuery({query:`(max-width: ${Tnt})`})}function Gt(e){Jn(e);const t=[],n="Something went wrong - sorry. We're looking into it!";for(const i of e.graphQLErrors)if(i.extensions&&typeof i.extensions.ashbyErrorType=="string"){const a=i.extensions.message;typeof a=="string"?t.push(a):t.push(i.extensions.ashbyErrorType)}e.networkError&&t.push("There was a problem with the network connection.");const r=t.join(" ");return r.trim()===""?n:r}function Jn(e){_nt(e)||Ent(e)||(ug.addError(e),Koe(t=>{var n,r;if(e instanceof es){const i=(r=(n=e.graphQLErrors.find(a=>{var o;return((o=a.extensions)==null?void 0:o.ashbyErrorId)!=null}))==null?void 0:n.extensions)==null?void 0:r.ashbyErrorId;typeof i=="string"&&t.setTag("meta.ashbyErrorId",i)}Xoe(e)}))}function _nt(e){return e instanceof es&&e.networkError!=null}function Ent(e){if(!(e instanceof es))return!1;for(const t of e.graphQLErrors)if(t.extensions&&typeof t.extensions.ashbyErrorType=="string")return!0;return!1}const fH="There was a problem verifying this submission with CAPTCHA. Please try turning off your ad blocker or try again later.",wnt="_avatar_80pgd_2",knt="_image_80pgd_12",Ant="_icon_80pgd_19",zO={avatar:wnt,image:knt,icon:Ant};function bge({alt:e,title:t,src:n,className:r,emptyIcon:i}){const[a,o]=N.useState(!1),[s,l]=N.useState(10),u=N.useRef(null);N.useEffect(()=>{const d=u.current?u.current.getBoundingClientRect().height:0;l(d*.45)},[u.current]);function c(){o(!0)}return S("div",{className:[r,zO.avatar].join(" "),ref:u,style:s>0?{fontSize:`${s}px`}:{},children:a||!n?i?S(i,{className:zO.icon}):S("span",{children:e}):S("img",{className:zO.image,src:n,alt:e,title:t,onError:c})})}const K0=({className:e,...t})=>F("svg",{className:["loadingSvg",e].join(" "),viewBox:"0 0 38 38",fill:"none",height:"1em",...t,children:[S("defs",{children:F("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a",children:[S("stop",{stopOpacity:"0",offset:"0%"}),S("stop",{stopOpacity:".631",offset:"63.146%"}),S("stop",{offset:"100%"})]})}),S("g",{fill:"none",fillRule:"evenodd",children:F("g",{transform:"translate(1 1)",children:[S("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)",strokeWidth:"4",children:S("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})}),S("circle",{cx:"36",cy:"18",r:"2",children:S("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})})]})})]});K0.displayName="LoadingSvg";const Ns=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M7.4 273.4C2.7 268.8 0 262.6 0 256s2.7-12.8 7.4-17.4l176-168c9.6-9.2 24.8-8.8 33.9 .8s8.8 24.8-.8 33.9L83.9 232 424 232c13.3 0 24 10.7 24 24s-10.7 24-24 24L83.9 280 216.6 406.6c9.6 9.2 9.9 24.3 .8 33.9s-24.3 9.9-33.9 .8l-176-168z"})});Ns.displayName="BackSvg";const kN=e=>S("svg",{height:"1em",viewBox:"0 0 512 512",fill:"none",...e,children:S("path",{d:"M173.898 439.404L7.49824 273.004C-2.49876 263.007 -2.49876 246.798 7.49824 236.8L43.7012 200.596C53.6982 190.598 69.9082 190.598 79.9052 200.596L192 312.69L432.095 72.596C442.092 62.599 458.302 62.599 468.299 72.596L504.502 108.8C514.499 118.797 514.499 135.006 504.502 145.004L210.102 439.405C200.104 449.402 183.895 449.402 173.898 439.404V439.404Z"})});kN.displayName="CheckSvg";const Tge=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M440.6 273.4c4.7-4.5 7.4-10.8 7.4-17.4s-2.7-12.8-7.4-17.4l-176-168c-9.6-9.2-24.8-8.8-33.9 .8s-8.8 24.8 .8 33.9L364.1 232 24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l340.1 0L231.4 406.6c-9.6 9.2-9.9 24.3-.8 33.9s24.3 9.9 33.9 .8l176-168z"})});Tge.displayName="ForwardSvg";const $1=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M207.029 381.476L12.686 187.132C3.313 177.759 3.313 162.563 12.686 153.191L35.353 130.524C44.71 121.167 59.875 121.149 69.254 130.484L224 284.505L378.745 130.484C388.124 121.149 403.289 121.167 412.646 130.524L435.313 153.191C444.686 162.564 444.686 177.76 435.313 187.132L240.971 381.476C231.598 390.848 216.402 390.848 207.029 381.476Z"})});$1.displayName="ChevronDownSvg";const pH=e=>S("svg",{viewBox:"0 0 390 361",fill:"none",...e,children:S("path",{d:"M389.5 100C389.5 189.194 300.694 321 211.5 321C122.306 321 0 410.194 0 321C0 231.806 3.30602 0 92.5 0C181.694 0 389.5 10.806 389.5 100Z"})});pH.displayName="BlobSvg";const mH=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M328 256C328 295.8 295.8 328 256 328C216.2 328 184 295.8 184 256C184 216.2 216.2 184 256 184C295.8 184 328 216.2 328 256ZM432 184C392.2 184 360 216.2 360 256C360 295.8 392.2 328 432 328C471.8 328 504 295.8 504 256C504 216.2 471.8 184 432 184ZM80 184C40.2 184 8 216.2 8 256C8 295.8 40.2 328 80 328C119.8 328 152 295.8 152 256C152 216.2 119.8 184 80 184Z"})});mH.displayName="EllipsisSvg";const hH=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M224 256C294.7 256 352 198.7 352 128C352 57.3 294.7 0 224 0C153.3 0 96 57.3 96 128C96 198.7 153.3 256 224 256ZM313.6 288H296.9C274.7 298.2 250 304 224 304C198 304 173.4 298.2 151.1 288H134.4C60.2 288 0 348.2 0 422.4V464C0 490.5 21.5 512 48 512H400C426.5 512 448 490.5 448 464V422.4C448 348.2 387.8 288 313.6 288Z"})});hH.displayName="UserSvg";const _ge=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M100.28 448H7.4V148.9H100.28V448ZM53.79 108.1C24.09 108.1 0 83.5 0 53.8C2.1258e-07 39.534 5.66714 25.8523 15.7547 15.7647C25.8423 5.67715 39.524 0.0100098 53.79 0.0100098C68.056 0.0100098 81.7377 5.67715 91.8253 15.7647C101.913 25.8523 107.58 39.534 107.58 53.8C107.58 83.5 83.48 108.1 53.79 108.1ZM447.9 448H355.22V302.4C355.22 267.7 354.52 223.2 306.93 223.2C258.64 223.2 251.24 260.9 251.24 299.9V448H158.46V148.9H247.54V189.7H248.84C261.24 166.2 291.53 141.4 336.72 141.4C430.72 141.4 448 203.3 448 283.7V448H447.9Z"})});_ge.displayName="LinkedInSvg";const gH=e=>S("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"1em",...e,children:S("path",{d:"M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"})});gH.displayName="DismissSvg";const AN=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})});AN.displayName="DeleteSvg";const HE=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.2-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z"})});HE.displayName="FileSvg";const CN=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"})});CN.displayName="SendSvg";const Ste=e=>S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","aria-hidden":"true",role:"img",fill:"none",height:"1em",...e,children:S("path",{d:"M28.485 28.485L80.65 80.65C125.525 35.767 187.515 8 255.999 8 392.66 8 504.1 119.525 504 256.185 503.9 393.067 392.905 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.353-12.561-.482-17.433l19.738-19.738c4.498-4.498 11.753-4.785 16.501-.552C160.213 433.246 205.895 452 256 452c108.321 0 196-87.662 196-196 0-108.321-87.662-196-196-196-54.163 0-103.157 21.923-138.614 57.386l54.128 54.129c7.56 7.56 2.206 20.485-8.485 20.485H20c-6.627 0-12-5.373-12-12V36.971c0-10.691 12.926-16.045 20.485-8.486z"})}),Ege=e=>S("svg",{height:"1em",viewBox:"0 0 512 512",fill:"none",...e,children:S("path",{d:"M336 432C336 476.112 300.112 512 256 512C211.888 512 176 476.112 176 432C176 387.888 211.888 352 256 352C300.112 352 336 387.888 336 432ZM185.26 25.199L198.86 297.199C199.499 309.972 210.041 320 222.83 320H289.17C301.959 320 312.501 309.972 313.14 297.199L326.74 25.199C327.425 11.49 316.496 0 302.77 0H209.23C195.504 0 184.575 11.49 185.26 25.199Z"})});Ege.displayName="WarningSvg";const wge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M388.49 238C403.718 219.398 413.111 196.712 415.49 172.79C422.87 96.49 363 32 288.42 32H89C84.7565 32 80.6869 33.6857 77.6863 36.6863C74.6857 39.6869 73 43.7565 73 48V96C73 100.243 74.6857 104.313 77.6863 107.314C80.6869 110.314 84.7565 112 89 112H120.87V400H89C84.7565 400 80.6869 401.686 77.6863 404.686C74.6857 407.687 73 411.757 73 416V464C73 468.243 74.6857 472.313 77.6863 475.314C80.6869 478.314 84.7565 480 89 480H298.32C369.12 480 432.46 428.25 439.32 357.6C444.06 309.15 422.93 265.54 388.49 238ZM200.66 112H288.42C301.15 112 313.359 117.057 322.361 126.059C331.363 135.061 336.42 147.27 336.42 160C336.42 172.73 331.363 184.939 322.361 193.941C313.359 202.943 301.15 208 288.42 208H200.66V112ZM288.42 400H200.66V288H288.42C303.272 288 317.516 293.9 328.018 304.402C338.52 314.904 344.42 329.148 344.42 344C344.42 358.852 338.52 373.096 328.018 383.598C317.516 394.1 303.272 400 288.42 400Z"})});wge.displayName="BoldSvg";const kge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M48 48C38.5065 48 29.2262 50.8152 21.3326 56.0895C13.4391 61.3638 7.28681 68.8603 3.6538 77.6312C0.0207977 86.402 -0.929762 96.0532 0.922328 105.364C2.77442 114.675 7.34598 123.228 14.0589 129.941C20.7718 136.654 29.3246 141.226 38.6357 143.078C47.9468 144.93 57.598 143.979 66.3688 140.346C75.1397 136.713 82.6363 130.561 87.9106 122.667C93.1849 114.774 96 105.494 96 96C96 83.2696 90.9429 71.0606 81.9411 62.0589C72.9394 53.0571 60.7304 48 48 48ZM48 208C38.5065 208 29.2262 210.815 21.3326 216.089C13.4391 221.364 7.28681 228.86 3.6538 237.631C0.0207977 246.402 -0.929762 256.053 0.922328 265.364C2.77442 274.675 7.34598 283.228 14.0589 289.941C20.7718 296.654 29.3246 301.226 38.6357 303.078C47.9468 304.93 57.598 303.979 66.3688 300.346C75.1397 296.713 82.6363 290.561 87.9106 282.667C93.1849 274.774 96 265.493 96 256C96 243.27 90.9429 231.061 81.9411 222.059C72.9394 213.057 60.7304 208 48 208ZM48 368C38.5065 368 29.2262 370.815 21.3326 376.089C13.4391 381.364 7.28681 388.86 3.6538 397.631C0.0207977 406.402 -0.929762 416.053 0.922328 425.364C2.77442 434.675 7.34598 443.228 14.0589 449.941C20.7718 456.654 29.3246 461.226 38.6357 463.078C47.9468 464.93 57.598 463.979 66.3688 460.346C75.1397 456.713 82.6363 450.561 87.9106 442.667C93.1849 434.774 96 425.493 96 416C96 403.27 90.9429 391.061 81.9411 382.059C72.9394 373.057 60.7304 368 48 368ZM496 384H176C171.757 384 167.687 385.686 164.686 388.686C161.686 391.687 160 395.757 160 400V432C160 436.243 161.686 440.313 164.686 443.314C167.687 446.314 171.757 448 176 448H496C500.243 448 504.313 446.314 507.314 443.314C510.314 440.313 512 436.243 512 432V400C512 395.757 510.314 391.687 507.314 388.686C504.313 385.686 500.243 384 496 384ZM496 64H176C171.757 64 167.687 65.6857 164.686 68.6863C161.686 71.6869 160 75.7565 160 80V112C160 116.243 161.686 120.313 164.686 123.314C167.687 126.314 171.757 128 176 128H496C500.243 128 504.313 126.314 507.314 123.314C510.314 120.313 512 116.243 512 112V80C512 75.7565 510.314 71.6869 507.314 68.6863C504.313 65.6857 500.243 64 496 64ZM496 224H176C171.757 224 167.687 225.686 164.686 228.686C161.686 231.687 160 235.757 160 240V272C160 276.243 161.686 280.313 164.686 283.314C167.687 286.314 171.757 288 176 288H496C500.243 288 504.313 286.314 507.314 283.314C510.314 280.313 512 276.243 512 272V240C512 235.757 510.314 231.687 507.314 228.686C504.313 225.686 500.243 224 496 224Z"})});kge.displayName="BulletListSvg";const Age=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M270.222 114H182.276C179.197 114 176.244 115.223 174.067 117.4C171.89 119.577 170.667 122.53 170.667 125.609V159.28C170.667 162.359 171.89 165.312 174.067 167.489C176.244 169.666 179.197 170.889 182.276 170.889H199.111V227.778H85.3333V170.889H102.169C105.248 170.889 108.201 169.666 110.378 167.489C112.555 165.312 113.778 162.359 113.778 159.28V128.222C113.778 124.45 112.279 120.833 109.612 118.166C106.945 115.498 103.328 114 99.5556 114H14.2222C10.4503 114 6.83278 115.498 4.16559 118.166C1.49841 120.833 0 124.45 0 128.222L0 159.28C0 162.359 1.22308 165.312 3.40016 167.489C5.57725 169.666 8.53002 170.889 11.6089 170.889H28.4444V341.556H11.6089C8.53002 341.556 5.57725 342.779 3.40016 344.956C1.22308 347.133 0 350.086 0 353.164L0 384.222C0 387.994 1.49841 391.612 4.16559 394.279C6.83278 396.946 10.4503 398.444 14.2222 398.444H102.169C105.248 398.444 108.201 397.221 110.378 395.044C112.555 392.867 113.778 389.914 113.778 386.836V353.164C113.778 350.086 112.555 347.133 110.378 344.956C108.201 342.779 105.248 341.556 102.169 341.556H85.3333V284.667H199.111V341.556H182.276C179.197 341.556 176.244 342.779 174.067 344.956C171.89 347.133 170.667 350.086 170.667 353.164V384.222C170.667 387.994 172.165 391.612 174.832 394.279C177.499 396.946 181.117 398.444 184.889 398.444H270.222C273.994 398.444 277.612 396.946 280.279 394.279C282.946 391.612 284.444 387.994 284.444 384.222V353.164C284.444 350.086 283.221 347.133 281.044 344.956C278.867 342.779 275.914 341.556 272.836 341.556H256V170.889H272.836C275.914 170.889 278.867 169.666 281.044 167.489C283.221 165.312 284.444 162.359 284.444 159.28V128.222C284.444 124.45 282.946 120.833 280.279 118.166C277.612 115.498 273.994 114 270.222 114ZM497.778 341.556H455.111V135.333C455.111 129.675 452.863 124.249 448.863 120.248C444.862 116.248 439.436 114 433.778 114H398.222C394.265 114.004 390.387 115.108 387.021 117.19C383.656 119.271 380.935 122.248 379.164 125.787L357.831 168.453C356.204 171.704 355.435 175.317 355.597 178.949C355.759 182.58 356.846 186.111 358.755 189.204C360.664 192.298 363.332 194.852 366.506 196.625C369.68 198.398 373.254 199.33 376.889 199.333H398.222V341.556H355.556C351.784 341.556 348.166 343.054 345.499 345.721C342.832 348.388 341.333 352.006 341.333 355.778V384.222C341.333 387.994 342.832 391.612 345.499 394.279C348.166 396.946 351.784 398.444 355.556 398.444H497.778C501.55 398.444 505.167 396.946 507.834 394.279C510.502 391.612 512 387.994 512 384.222V355.778C512 352.006 510.502 348.388 507.834 345.721C505.167 343.054 501.55 341.556 497.778 341.556Z"})});Age.displayName="H1Svg";const Cge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M497.778 341.556H391.813C406.924 303.378 512 282.382 512 199.671C512 146.489 469.627 114 417.013 114C378.053 114 344.649 133.004 325.084 164.667C323.159 167.759 322.523 171.483 323.312 175.04C324.102 178.596 326.254 181.701 329.307 183.689L354.427 200.222C357.487 202.245 361.206 203.019 364.82 202.386C368.433 201.753 371.667 199.761 373.858 196.818C383.431 183.609 396.027 173.707 412.836 173.707C429.644 173.707 446.809 183.004 446.809 203.787C446.809 250.169 320.498 268.862 320.498 367.84C320.594 373.988 321.102 380.124 322.018 386.204C322.485 389.608 324.174 392.726 326.769 394.978C329.364 397.229 332.689 398.461 336.124 398.444H497.778C501.55 398.444 505.167 396.946 507.834 394.279C510.502 391.612 512 387.994 512 384.222V355.778C512 352.006 510.502 348.388 507.834 345.721C505.167 343.054 501.55 341.556 497.778 341.556ZM270.222 114H182.276C179.197 114 176.244 115.223 174.067 117.4C171.89 119.577 170.667 122.53 170.667 125.609V159.28C170.667 162.359 171.89 165.312 174.067 167.489C176.244 169.666 179.197 170.889 182.276 170.889H199.111V227.778H85.3333V170.889H102.169C105.248 170.889 108.201 169.666 110.378 167.489C112.555 165.312 113.778 162.359 113.778 159.28V128.222C113.778 124.45 112.279 120.833 109.612 118.166C106.945 115.498 103.328 114 99.5556 114H14.2222C10.4503 114 6.83278 115.498 4.16559 118.166C1.49841 120.833 0 124.45 0 128.222L0 159.28C0 162.359 1.22308 165.312 3.40016 167.489C5.57725 169.666 8.53002 170.889 11.6089 170.889H28.4444V341.556H11.6089C8.53002 341.556 5.57725 342.779 3.40016 344.956C1.22308 347.133 0 350.086 0 353.164L0 384.222C0 387.994 1.49841 391.612 4.16559 394.279C6.83278 396.946 10.4503 398.444 14.2222 398.444H102.169C105.248 398.444 108.201 397.221 110.378 395.044C112.555 392.867 113.778 389.914 113.778 386.836V353.164C113.778 350.086 112.555 347.133 110.378 344.956C108.201 342.779 105.248 341.556 102.169 341.556H85.3333V284.667H199.111V341.556H182.276C179.197 341.556 176.244 342.779 174.067 344.956C171.89 347.133 170.667 350.086 170.667 353.164V384.222C170.667 387.994 172.165 391.612 174.832 394.279C177.499 396.946 181.117 398.444 184.889 398.444H270.222C273.994 398.444 277.612 396.946 280.279 394.279C282.946 391.612 284.444 387.994 284.444 384.222V353.164C284.444 350.086 283.221 347.133 281.044 344.956C278.867 342.779 275.914 341.556 272.836 341.556H256V170.889H272.836C275.914 170.889 278.867 169.666 281.044 167.489C283.221 165.312 284.444 162.359 284.444 159.28V128.222C284.444 124.45 282.946 120.833 280.279 118.166C277.612 115.498 273.994 114 270.222 114Z"})});Cge.displayName="H2Svg";const Nge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M443.556 222.171L500.8 157.896C503.073 155.383 504.339 152.12 504.356 148.731V128.002C504.327 126.132 503.929 124.286 503.186 122.57C502.443 120.854 501.368 119.301 500.024 118.001C498.68 116.7 497.092 115.678 495.352 114.992C493.613 114.305 491.754 113.969 489.884 114.002H341.333C337.561 114.002 333.944 115.501 331.277 118.168C328.609 120.835 327.111 124.452 327.111 128.224V156.669C327.111 160.441 328.609 164.058 331.277 166.726C333.944 169.393 337.561 170.891 341.333 170.891H417.049C415.013 173.069 412.916 175.336 410.658 177.913L363.458 232.224C361.419 234.815 360.23 237.972 360.053 241.264C360.124 243.201 360.54 245.109 361.28 246.9L368.756 263.424C370.844 268.056 376.756 271.798 381.947 271.798H396.124C421.849 271.798 447.493 280.971 447.493 306.002C447.493 324.953 429.778 338.704 405.369 338.704C385.742 338.704 368.764 330.553 354.08 318.411C352.52 317.143 350.715 316.21 348.779 315.671C346.842 315.131 344.815 314.997 342.825 315.275C340.834 315.554 338.922 316.24 337.208 317.29C335.494 318.34 334.014 319.733 332.862 321.38L315.307 346.98C313.406 349.749 312.586 353.118 313 356.451C313.415 359.784 315.035 362.849 317.556 365.069C342.133 387.078 375.111 398.447 408.453 398.447C471.564 398.447 512 355.016 512 304.171C512 262.127 482.907 232.269 443.556 222.171ZM270.222 114.002H182.276C179.197 114.002 176.244 115.225 174.067 117.402C171.89 119.579 170.667 122.532 170.667 125.611V159.282C170.667 162.361 171.89 165.314 174.067 167.491C176.244 169.668 179.197 170.891 182.276 170.891H199.111V227.78H85.3333V170.891H102.169C105.248 170.891 108.201 169.668 110.378 167.491C112.555 165.314 113.778 162.361 113.778 159.282V128.224C113.778 124.452 112.279 120.835 109.612 118.168C106.945 115.501 103.328 114.002 99.5556 114.002H14.2222C10.4503 114.002 6.83278 115.501 4.16559 118.168C1.49841 120.835 0 124.452 0 128.224L0 159.282C0 162.361 1.22308 165.314 3.40016 167.491C5.57725 169.668 8.53002 170.891 11.6089 170.891H28.4444V341.558H11.6089C8.53002 341.558 5.57725 342.781 3.40016 344.958C1.22308 347.135 0 350.088 0 353.167L0 384.224C0 387.996 1.49841 391.614 4.16559 394.281C6.83278 396.948 10.4503 398.447 14.2222 398.447H102.169C105.248 398.447 108.201 397.224 110.378 395.046C112.555 392.869 113.778 389.917 113.778 386.838V353.167C113.778 350.088 112.555 347.135 110.378 344.958C108.201 342.781 105.248 341.558 102.169 341.558H85.3333V284.669H199.111V341.558H182.276C179.197 341.558 176.244 342.781 174.067 344.958C171.89 347.135 170.667 350.088 170.667 353.167V384.224C170.667 387.996 172.165 391.614 174.832 394.281C177.499 396.948 181.117 398.447 184.889 398.447H270.222C273.994 398.447 277.612 396.948 280.279 394.281C282.946 391.614 284.444 387.996 284.444 384.224V353.167C284.444 350.088 283.221 347.135 281.044 344.958C278.867 342.781 275.914 341.558 272.836 341.558H256V170.891H272.836C275.914 170.891 278.867 169.668 281.044 167.491C283.221 165.314 284.444 162.361 284.444 159.282V128.224C284.444 124.452 282.946 120.835 280.279 118.168C277.612 115.501 273.994 114.002 270.222 114.002Z"})});Nge.displayName="H3Svg";const Ige=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M416 48V80C416 84.2435 414.314 88.3131 411.314 91.3137C408.313 94.3143 404.243 96 400 96H337.24L257.24 416H304C308.243 416 312.313 417.686 315.314 420.686C318.314 423.687 320 427.757 320 432V464C320 468.243 318.314 472.313 315.314 475.314C312.313 478.314 308.243 480 304 480H112C107.757 480 103.687 478.314 100.686 475.314C97.6857 472.313 96 468.243 96 464V432C96 427.757 97.6857 423.687 100.686 420.686C103.687 417.686 107.757 416 112 416H174.76L254.76 96H208C203.757 96 199.687 94.3143 196.686 91.3137C193.686 88.3131 192 84.2435 192 80V48C192 43.7565 193.686 39.6869 196.686 36.6863C199.687 33.6857 203.757 32 208 32H400C404.243 32 408.313 33.6857 411.314 36.6863C414.314 39.6869 416 43.7565 416 48Z"})});Ige.displayName="ItalicSvg";const Oge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M326.612 185.391C386.359 245.2 385.539 341.089 326.971 399.981C326.862 400.101 326.732 400.231 326.612 400.351L259.411 467.551C200.141 526.821 103.713 526.813 44.4515 467.551C-14.8185 408.291 -14.8185 311.851 44.4515 252.591L81.5575 215.485C91.3975 205.645 108.344 212.185 108.852 226.091C109.5 243.813 112.678 261.618 118.542 278.812C120.528 284.634 119.109 291.074 114.759 295.424L101.672 308.511C73.6455 336.537 72.7665 382.171 100.517 410.471C128.541 439.05 174.603 439.22 202.842 410.981L270.042 343.791C298.233 315.6 298.115 270.034 270.042 241.961C266.341 238.267 262.612 235.397 259.701 233.392C257.64 231.977 255.939 230.101 254.733 227.912C253.527 225.723 252.849 223.283 252.754 220.786C252.358 210.219 256.102 199.33 264.452 190.98L285.506 169.925C291.027 164.404 299.688 163.726 306.09 168.194C313.421 173.314 320.288 179.068 326.612 185.391ZM467.547 44.449C408.286 -14.813 311.857 -14.821 252.587 44.449L185.387 111.649C185.267 111.769 185.137 111.899 185.027 112.019C126.461 170.911 125.64 266.8 185.387 326.609C191.709 332.932 198.576 338.686 205.908 343.805C212.31 348.273 220.972 347.594 226.492 342.074L247.546 321.019C255.896 312.669 259.639 301.78 259.243 291.213C259.148 288.716 258.47 286.276 257.264 284.087C256.058 281.898 254.357 280.022 252.297 278.607C249.385 276.602 245.657 273.732 241.956 270.038C213.883 241.965 213.765 196.399 241.956 168.208L309.156 101.018C337.395 72.779 383.456 72.949 411.48 101.528C439.23 129.828 438.353 175.462 410.326 203.488L397.239 216.575C392.889 220.925 391.47 227.365 393.456 233.187C399.32 250.381 402.497 268.186 403.146 285.908C403.655 299.814 420.6 306.354 430.44 296.514L467.546 259.408C526.817 200.149 526.817 103.709 467.547 44.449Z"})});Oge.displayName="LinkSvg";const Dge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M61.77 401L79.27 380.85C82.7528 376.966 84.5732 371.871 84.34 366.66V363.35C84.34 356 80.5 352 73 352H16C13.8783 352 11.8434 352.843 10.3431 354.343C8.84285 355.843 8 357.878 8 360V376C8 378.122 8.84285 380.157 10.3431 381.657C11.8434 383.157 13.8783 384 16 384H38.83C34.9505 387.908 31.2788 392.017 27.83 396.31L22.22 403.31C18.22 408.38 16.97 413.44 19.42 418.19L20.47 420.12C23.47 425.88 26.76 428 32.72 428H37.45C47.78 428 53.39 430.44 53.39 437.09C53.39 441.81 49.19 445.31 39.03 445.31C33.7213 445.268 28.4699 444.209 23.56 442.19C17.07 438.31 11.82 438.69 7.96 445.31L2.37 454.62C-1.35 460.75 -0.82 466.34 5 470.56C12.71 475.25 25.38 480 42 480C76.16 480 90.5 457.25 90.5 435.88C90.47 421.5 81.38 406.12 61.77 401ZM496 224H176C171.757 224 167.687 225.686 164.686 228.686C161.686 231.687 160 235.757 160 240V272C160 276.243 161.686 280.313 164.686 283.314C167.687 286.314 171.757 288 176 288H496C500.243 288 504.313 286.314 507.314 283.314C510.314 280.313 512 276.243 512 272V240C512 235.757 510.314 231.687 507.314 228.686C504.313 225.686 500.243 224 496 224ZM496 64H176C171.757 64 167.687 65.6857 164.686 68.6863C161.686 71.6869 160 75.7565 160 80V112C160 116.243 161.686 120.313 164.686 123.314C167.687 126.314 171.757 128 176 128H496C500.243 128 504.313 126.314 507.314 123.314C510.314 120.313 512 116.243 512 112V80C512 75.7565 510.314 71.6869 507.314 68.6863C504.313 65.6857 500.243 64 496 64ZM496 384H176C171.757 384 167.687 385.686 164.686 388.686C161.686 391.687 160 395.757 160 400V432C160 436.243 161.686 440.313 164.686 443.314C167.687 446.314 171.757 448 176 448H496C500.243 448 504.313 446.314 507.314 443.314C510.314 440.313 512 436.243 512 432V400C512 395.757 510.314 391.687 507.314 388.686C504.313 385.686 500.243 384 496 384ZM16 160H80C82.1217 160 84.1566 159.157 85.6569 157.657C87.1571 156.157 88 154.122 88 152V136C88 133.878 87.1571 131.843 85.6569 130.343C84.1566 128.843 82.1217 128 80 128H64V40C64 37.8783 63.1571 35.8434 61.6569 34.3431C60.1566 32.8429 58.1217 32 56 32H32C30.5172 32.0026 29.0642 32.4174 27.8034 33.1979C26.5426 33.9784 25.5236 35.0939 24.86 36.42L16.86 52.42C16.2502 53.6386 15.9618 54.9928 16.0221 56.3541C16.0824 57.7154 16.4895 59.0388 17.2046 60.1987C17.9198 61.3586 18.9194 62.3166 20.1086 62.9819C21.2979 63.6471 22.6373 63.9976 24 64H32V128H16C13.8783 128 11.8434 128.843 10.3431 130.343C8.84285 131.843 8 133.878 8 136V152C8 154.122 8.84285 156.157 10.3431 157.657C11.8434 159.157 13.8783 160 16 160ZM12.09 320H80C82.1217 320 84.1566 319.157 85.6569 317.657C87.1571 316.157 88 314.122 88 312V296C88 293.878 87.1571 291.843 85.6569 290.343C84.1566 288.843 82.1217 288 80 288H41.32C44.61 277.71 89.66 269.32 89.66 231.56C89.66 202.5 64.66 192 45.19 192C23.83 192 11.39 202 4.73 210.75C0.36 216.34 1.73 221.59 7.53 226.12L16.11 233C21.72 237.56 27.11 235.47 32.23 230.56C34.7555 228.085 38.1543 226.706 41.69 226.72C45.02 226.72 50.97 228.28 50.97 235.47C51 248.19 0 257.31 0 304.59V308.59C0 316 5.08 320 12.09 320Z"})});Dge.displayName="NumberedListSvg";const xge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M64 64H96V224C96 312.22 167.78 384 256 384C344.22 384 416 312.22 416 224V64H448C452.243 64 456.313 62.3143 459.314 59.3137C462.314 56.3131 464 52.2435 464 48V16C464 11.7565 462.314 7.68687 459.314 4.68629C456.313 1.68571 452.243 0 448 0L304 0C299.757 0 295.687 1.68571 292.686 4.68629C289.686 7.68687 288 11.7565 288 16V48C288 52.2435 289.686 56.3131 292.686 59.3137C295.687 62.3143 299.757 64 304 64H336V224C336 245.217 327.571 265.566 312.569 280.569C297.566 295.571 277.217 304 256 304C234.783 304 214.434 295.571 199.431 280.569C184.429 265.566 176 245.217 176 224V64H208C212.243 64 216.313 62.3143 219.314 59.3137C222.314 56.3131 224 52.2435 224 48V16C224 11.7565 222.314 7.68687 219.314 4.68629C216.313 1.68571 212.243 0 208 0L64 0C59.7565 0 55.6869 1.68571 52.6863 4.68629C49.6857 7.68687 48 11.7565 48 16V48C48 52.2435 49.6857 56.3131 52.6863 59.3137C55.6869 62.3143 59.7565 64 64 64ZM464 448H48C43.7565 448 39.6869 449.686 36.6863 452.686C33.6857 455.687 32 459.757 32 464V496C32 500.243 33.6857 504.313 36.6863 507.314C39.6869 510.314 43.7565 512 48 512H464C468.243 512 472.313 510.314 475.314 507.314C478.314 504.313 480 500.243 480 496V464C480 459.757 478.314 455.687 475.314 452.686C472.313 449.686 468.243 448 464 448Z"})});xge.displayName="UnderlineSvg";const Mge=e=>F("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:[S("path",{d:"M80 380H112C116.243 380 120.313 381.686 123.314 384.686C126.314 387.687 128 391.757 128 396V448H448V128H374C369.757 128 365.687 126.314 362.686 123.314C359.686 120.313 358 116.243 358 112V80C358 75.7565 359.686 71.6869 362.686 68.6863C365.687 65.6857 369.757 64 374 64H464C476.73 64 488.939 69.0571 497.941 78.0589C506.943 87.0606 512 99.2696 512 112V464C512 476.73 506.943 488.939 497.941 497.941C488.939 506.943 476.73 512 464 512H112C99.2696 512 87.0606 506.943 78.0589 497.941C69.0571 488.939 64 476.73 64 464V396C64 391.757 65.6857 387.687 68.6863 384.686C71.6869 381.686 75.7565 380 80 380Z"}),S("path",{d:"M149.91 338.732L117.126 329.225C113.686 328.258 111.751 324.659 112.718 321.221L186.081 68.6532C187.049 65.2155 190.65 63.2817 194.09 64.2486L226.874 73.7562C230.314 74.723 232.249 78.3219 231.282 81.7597L157.919 334.328C156.897 337.765 153.35 339.753 149.91 338.732V338.732ZM88.6403 278.464L112.02 253.54C114.492 250.908 114.331 246.718 111.59 244.301L62.896 201.49L111.59 158.68C114.331 156.262 114.546 152.073 112.02 149.441L88.6403 124.517C86.2217 121.938 82.137 121.777 79.5035 124.248L2.05578 196.763C-0.685259 199.288 -0.685259 203.639 2.05578 206.164L79.5035 278.733C82.137 281.203 86.2217 281.096 88.6403 278.464V278.464ZM264.497 278.786L341.944 206.217C344.685 203.693 344.685 199.342 341.944 196.817L264.497 124.195C261.917 121.777 257.832 121.885 255.36 124.463L231.98 149.387C229.508 152.019 229.669 156.209 232.41 158.626L281.104 201.49L232.41 244.301C229.669 246.718 229.454 250.908 231.98 253.54L255.36 278.464C257.778 281.096 261.863 281.203 264.497 278.786V278.786Z"})]});Mge.displayName="CodeBlockSvg";const Rge=e=>S("svg",{viewBox:"0 0 640 512",fill:"none",height:"1em",...e,children:S("path",{d:"M278.9 511.5L217.9 493.8C211.5 492 207.9 485.3 209.7 478.9L346.2 8.69993C348 2.29993 354.7 -1.30006 361.1 0.499935L422.1 18.1999C428.5 19.9999 432.1 26.6999 430.3 33.0999L293.8 503.3C291.9 509.7 285.3 513.4 278.9 511.5V511.5ZM164.9 399.3L208.4 352.9C213 348 212.7 340.2 207.6 335.7L117 256L207.6 176.3C212.7 171.8 213.1 164 208.4 159.1L164.9 112.7C160.4 107.9 152.8 107.6 147.9 112.2L3.79961 247.2C-1.30039 251.9 -1.30039 260 3.79961 264.7L147.9 399.8C152.8 404.4 160.4 404.2 164.9 399.3V399.3ZM492.1 399.9L636.2 264.8C641.3 260.1 641.3 252 636.2 247.3L492.1 112.1C487.3 107.6 479.7 107.8 475.1 112.6L431.6 159C427 163.9 427.3 171.7 432.4 176.2L523 256L432.4 335.7C427.3 340.2 426.9 348 431.6 352.9L475.1 399.3C479.6 404.2 487.2 404.4 492.1 399.9V399.9Z"})});Rge.displayName="CodeSvg";const Pge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"})});Pge.displayName="CircleInfoSvg";const Fge=e=>S("svg",{viewBox:"0 0 512 512",fill:"none",height:"1em",...e,children:S("path",{d:"M280 360c0 13.3-10.7 24-24 24s-24-10.7-24-24V81.9l-95 95c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 7c9.4-9.4 24.6-9.4 33.9 0L409 143c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-95-95V360zm32-8V304H448c35.3 0 64 28.7 64 64v80c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V368c0-35.3 28.7-64 64-64H200v48H64c-8.8 0-16 7.2-16 16v80c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16H312zm72 56a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"})});Fge.displayName="UploadSvg";const Lge=e=>S("svg",{viewBox:"0 0 576 512",fill:"none",height:"1em",...e,children:S("path",{d:"M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM461.4 48L496 82.6 386.2 192.3l-34.6-34.6L461.4 48zM80 429.4L317.7 191.7l34.6 34.6L114.6 464 80 429.4zM427.4 14.1L46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"})});Lge.displayName="WandMagicSparklesSvg";const Cnt="_button_8wvgw_29",Nnt="_loading_8wvgw_81",Int="_quaternary_8wvgw_91",Ont="_primary_8wvgw_96",Dnt="_secondary_8wvgw_114",xnt="_tertiary_8wvgw_132",Mnt="_negative_8wvgw_169",Rnt="_greedy_8wvgw_218",Pnt="_compact_8wvgw_224",is={button:Cnt,loading:Nnt,quaternary:Int,primary:Ont,secondary:Dnt,tertiary:xnt,negative:Mnt,greedy:Rnt,compact:Pnt},Fnt=({priority:e,className:t,children:n,isLoading:r,disabled:i,highlight:a,forwardedRef:o,isGreedy:s,isCompact:l,...u})=>{const c=[is.button,is[e],a?is[a]:void 0,s?is.greedy:void 0,l?is.compact:void 0,t];let d=i,f=n;if(r&&(d=!0,c.push(is.loading),N.Children.count(f))){const p=N.Children.toArray(f),m=p[0],h=typeof m;if(h==="string"||h==="number")f=F(N.Fragment,{children:[S(K0,{}),S("span",{children:m}),p.slice(1)]});else{const g=m;typeof g.type!="string"&&g.type.displayName&&g.type.displayName.endsWith("Svg")?f=F(N.Fragment,{children:[S(K0,{}),p.slice(1)]}):f=F(N.Fragment,{children:[S(K0,{}),f]})}}return S("button",{...u,className:c.join(" "),disabled:d,ref:o,children:f})},jt=N.forwardRef((e,t)=>S(Fnt,{forwardedRef:t,...e})),Lnt=({priority:e,className:t,children:n,highlight:r,...i})=>{const a=[is.button,is[e],r?is[r]:void 0,t],o=n;return S(JC,{...i,className:a.join(" "),children:o})},yS=({priority:e,className:t,children:n,highlight:r,...i})=>{const a=[is.button,is[e],r?is[r]:void 0,t],o=n;return S("a",{...i,className:a.join(" "),children:o})};var Bge={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i1?"s":"")+" required, but only "+t.length+" present")}function VE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?VE=function(n){return typeof n}:VE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},VE(e)}function vH(e){return We(1,arguments),e instanceof Date||VE(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zE=function(n){return typeof n}:zE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zE(e)}function et(e){We(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||zE(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function $ge(e){if(We(1,arguments),!vH(e)&&typeof e!="number")return!1;var t=et(e);return!isNaN(Number(t))}function tn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function yH(e,t){We(2,arguments);var n=et(e).getTime(),r=tn(t);return new Date(n+r)}function Uge(e,t){We(2,arguments);var n=tn(t);return yH(e,-n)}var $nt=864e5;function Unt(e){We(1,arguments);var t=et(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/$nt)+1}function Ug(e){We(1,arguments);var t=1,n=et(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Hnt(e){We(1,arguments);var t=Hge(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ug(n);return r}var Vnt=6048e5;function Vge(e){We(1,arguments);var t=et(e),n=Ug(t).getTime()-Hnt(t).getTime();return Math.round(n/Vnt)+1}var znt={};function Bf(){return znt}function Dp(e,t){var n,r,i,a,o,s,l,u;We(1,arguments);var c=Bf(),d=tn((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=et(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=Dp(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=Dp(g,t);return c.getTime()>=h.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function qnt(e,t){var n,r,i,a,o,s,l,u;We(1,arguments);var c=Bf(),d=tn((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=SH(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Dp(p,t);return m}var Wnt=6048e5;function zge(e,t){We(1,arguments);var n=et(e),r=Dp(n,t).getTime()-qnt(n,t).getTime();return Math.round(r/Wnt)+1}function Sn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Sn(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Sn(r+1,2)},d:function(t,n){return Sn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Sn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Sn(t.getUTCHours(),n.length)},m:function(t,n){return Sn(t.getUTCMinutes(),n.length)},s:function(t,n){return Sn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return Sn(a,n.length)}};const Oc=jnt;var Em={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gnt={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Oc.y(t,n)},Y:function(t,n,r,i){var a=SH(t,i),o=a>0?a:1-a;if(n==="YY"){var s=o%100;return Sn(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):Sn(o,n.length)},R:function(t,n){var r=Hge(t);return Sn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Sn(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Sn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Sn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Oc.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Sn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var a=zge(t,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):Sn(a,n.length)},I:function(t,n,r){var i=Vge(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Sn(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Oc.d(t,n)},D:function(t,n,r){var i=Unt(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Sn(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return Sn(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return Sn(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return Sn(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),a;switch(i===12?a=Em.noon:i===0?a=Em.midnight:a=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),a;switch(i>=17?a=Em.evening:i>=12?a=Em.afternoon:i>=4?a=Em.morning:a=Em.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Oc.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Oc.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Sn(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Sn(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Oc.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Oc.s(t,n)},S:function(t,n){return Oc.S(t,n)},X:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Tte(o);case"XXXX":case"XX":return a0(o);case"XXXXX":case"XXX":default:return a0(o,":")}},x:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"x":return Tte(o);case"xxxx":case"xx":return a0(o);case"xxxxx":case"xxx":default:return a0(o,":")}},O:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+bte(o,":");case"OOOO":default:return"GMT"+a0(o,":")}},z:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+bte(o,":");case"zzzz":default:return"GMT"+a0(o,":")}},t:function(t,n,r,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return Sn(o,n.length)},T:function(t,n,r,i){var a=i._originalDate||t,o=a.getTime();return Sn(o,n.length)}};function bte(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t||"";return n+String(i)+o+Sn(a,2)}function Tte(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Sn(Math.abs(e)/60,2)}return a0(e,t)}function a0(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),a=Sn(Math.floor(i/60),2),o=Sn(i%60,2);return r+a+n+o}const Jnt=Gnt;var _te=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},qge=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ynt=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return _te(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",_te(i,n)).replace("{{time}}",qge(a,n))},Knt={p:qge,P:Ynt};const f7=Knt;function Hg(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Qnt=["D","DD"],Znt=["YY","YYYY"];function Wge(e){return Qnt.indexOf(e)!==-1}function jge(e){return Znt.indexOf(e)!==-1}function kA(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Xnt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ert=function(t,n,r){var i,a=Xnt[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const trt=ert;function qO(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var nrt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rrt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},irt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},art={date:qO({formats:nrt,defaultWidth:"full"}),time:qO({formats:rrt,defaultWidth:"full"}),dateTime:qO({formats:irt,defaultWidth:"full"})};const ort=art;var srt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lrt=function(t,n,r,i){return srt[t]};const urt=lrt;function xv(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var crt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},drt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},frt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},prt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mrt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hrt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},grt=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},vrt={ordinalNumber:grt,era:xv({values:crt,defaultWidth:"wide"}),quarter:xv({values:drt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:xv({values:frt,defaultWidth:"wide"}),day:xv({values:prt,defaultWidth:"wide"}),dayPeriod:xv({values:mrt,defaultWidth:"wide",formattingValues:hrt,defaultFormattingWidth:"wide"})};const yrt=vrt;function Mv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?brt(s,function(d){return d.test(o)}):Srt(s,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Srt(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function brt(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var _rt=/^(\d+)(th|st|nd|rd)?/i,Ert=/\d+/i,wrt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},krt={any:[/^b/i,/^(a|c)/i]},Art={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Crt={any:[/1/i,/2/i,/3/i,/4/i]},Nrt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Irt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ort={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Drt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xrt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mrt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Rrt={ordinalNumber:Trt({matchPattern:_rt,parsePattern:Ert,valueCallback:function(t){return parseInt(t,10)}}),era:Mv({matchPatterns:wrt,defaultMatchWidth:"wide",parsePatterns:krt,defaultParseWidth:"any"}),quarter:Mv({matchPatterns:Art,defaultMatchWidth:"wide",parsePatterns:Crt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Mv({matchPatterns:Nrt,defaultMatchWidth:"wide",parsePatterns:Irt,defaultParseWidth:"any"}),day:Mv({matchPatterns:Ort,defaultMatchWidth:"wide",parsePatterns:Drt,defaultParseWidth:"any"}),dayPeriod:Mv({matchPatterns:xrt,defaultMatchWidth:"any",parsePatterns:Mrt,defaultParseWidth:"any"})};const Prt=Rrt;var Frt={code:"en-US",formatDistance:trt,formatLong:ort,formatRelative:urt,localize:yrt,match:Prt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Gge=Frt;var Lrt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Brt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$rt=/^'([^]*?)'?$/,Urt=/''/g,Hrt=/[a-zA-Z]/;function AA(e,t,n){var r,i,a,o,s,l,u,c,d,f,p,m,h,g,v,y,b,T;We(2,arguments);var _=String(t),E=Bf(),k=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:E.locale)!==null&&r!==void 0?r:Gge,A=tn((a=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&o!==void 0?o:(d=E.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=tn((p=(m=(h=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(v=n.locale)===null||v===void 0||(y=v.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:E.weekStartsOn)!==null&&m!==void 0?m:(b=E.locale)===null||b===void 0||(T=b.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&p!==void 0?p:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var R=et(e);if(!$ge(R))throw new RangeError("Invalid time value");var B=Hg(R),H=Uge(R,B),L={firstWeekContainsDate:A,weekStartsOn:D,locale:k,_originalDate:R},V=_.match(Brt).map(function(U){var J=U[0];if(J==="p"||J==="P"){var re=f7[J];return re(U,k.formatLong)}return U}).join("").match(Lrt).map(function(U){if(U==="''")return"'";var J=U[0];if(J==="'")return Vrt(U);var re=Jnt[J];if(re)return!(n!=null&&n.useAdditionalWeekYearTokens)&&jge(U)&&kA(U,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Wge(U)&&kA(U,t,String(e)),re(H,U,k.localize,L);if(J.match(Hrt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");return U}).join("");return V}function Vrt(e){var t=e.match($rt);return t?t[1].replace(Urt,"'"):e}var zrt=6e4;function p7(e,t){We(2,arguments);var n=tn(t);return yH(e,n*zrt)}var qrt=36e5;function Wrt(e,t){We(2,arguments);var n=tn(t);return yH(e,n*qrt)}function U1(e,t){We(2,arguments);var n=et(e),r=tn(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function bH(e,t){We(2,arguments);var n=tn(t),r=n*7;return U1(e,r)}function pf(e,t){We(2,arguments);var n=et(e),r=tn(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var o=a.getDate();return i>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function TH(e,t){We(2,arguments);var n=tn(t);return pf(e,n*12)}function jrt(e,t){We(2,arguments);var n=tn(t);return U1(e,-n)}function Grt(e,t){We(2,arguments);var n=tn(t);return bH(e,-n)}function _H(e,t){We(2,arguments);var n=tn(t);return pf(e,-n)}function Jge(e,t){We(2,arguments);var n=tn(t);return TH(e,-n)}function Jrt(e){We(1,arguments);var t=et(e),n=t.getSeconds();return n}function vs(e){We(1,arguments);var t=et(e),n=t.getMinutes();return n}function yo(e){We(1,arguments);var t=et(e),n=t.getHours();return n}function Yrt(e){We(1,arguments);var t=et(e),n=t.getDay();return n}function WO(e){We(1,arguments);var t=et(e),n=t.getDate();return n}function gc(e){We(1,arguments);var t=et(e),n=t.getMonth();return n}function m7(e){We(1,arguments);var t=et(e),n=Math.floor(t.getMonth()/3)+1;return n}function Nr(e){return We(1,arguments),et(e).getFullYear()}function h7(e){We(1,arguments);var t=et(e),n=t.getTime();return n}function Krt(e,t){We(2,arguments);var n=et(e),r=tn(t);return n.setSeconds(r),n}function qE(e,t){We(2,arguments);var n=et(e),r=tn(t);return n.setMinutes(r),n}function WE(e,t){We(2,arguments);var n=et(e),r=tn(t);return n.setHours(r),n}function Qrt(e){We(1,arguments);var t=et(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function oc(e,t){We(2,arguments);var n=et(e),r=tn(t),i=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(i,r,15),o.setHours(0,0,0,0);var s=Qrt(o);return n.setMonth(r,Math.min(a,s)),n}function Rv(e,t){We(2,arguments);var n=et(e),r=tn(t),i=Math.floor(n.getMonth()/3)+1,a=r-i;return oc(n,n.getMonth()+a*3)}function Ete(e,t){We(2,arguments);var n=et(e),r=tn(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function jE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jE=function(n){return typeof n}:jE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jE(e)}function wte(e){We(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(jE(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=et(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function GE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?GE=function(n){return typeof n}:GE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},GE(e)}function kte(e){We(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(GE(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=et(r);(n===void 0||n=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=et(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=et(e),p=f.getDay(),m=(pr.getTime()}function SS(e,t){We(2,arguments);var n=et(e),r=et(t);return n.getTime()=r&&n<=i}function cit(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function JE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?JE=function(n){return typeof n}:JE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},JE(e)}function Kge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y7(e,t)}function y7(e,t){return y7=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},y7(e,t)}function Qge(e){var t=fit();return function(){var r=IA(e),i;if(t){var a=IA(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return dit(this,i)}}function dit(e,t){return t&&(JE(t)==="object"||typeof t=="function")?t:S7(e)}function S7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fit(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function IA(e){return IA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},IA(e)}function EH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ate(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function OA(e){return OA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},OA(e)}function Ite(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wit=function(e){bit(n,e);var t=Tit(n);function n(){var r;yit(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function t1e(e){return e%400===0||e%4===0&&e%100!==0}function KE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?KE=function(n){return typeof n}:KE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},KE(e)}function Ait(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ote(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xA(e){return xA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xA(e)}function Dte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xit=function(e){Nit(n,e);var t=Iit(n);function n(){var r;Ait(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var l=e1e(o.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var u=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function QE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?QE=function(n){return typeof n}:QE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},QE(e)}function Mit(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function MA(e){return MA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},MA(e)}function Mte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $it=function(e){Pit(n,e);var t=Fit(n);function n(){var r;Mit(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0}},{key:"set",value:function(i,a,o,s){var l=SH(i,s);if(o.isTwoDigitYear){var u=e1e(o.year,l);return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Dp(i,s)}var c=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Dp(i,s)}}]),n}(ln);function ZE(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ZE=function(n){return typeof n}:ZE=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ZE(e)}function Uit(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function RA(e){return RA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},RA(e)}function Pte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jit=function(e){Vit(n,e);var t=zit(n);function n(){var r;Uit(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PA(e){return PA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},PA(e)}function Lte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xit=function(e){Yit(n,e);var t=Kit(n);function n(){var r;Git(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function FA(e){return FA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},FA(e)}function $te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oat=function(e){nat(n,e);var t=rat(n);function n(){var r;eat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function tw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tw=function(n){return typeof n}:tw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tw(e)}function sat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ute(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LA(e){return LA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},LA(e)}function Hte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pat=function(e){uat(n,e);var t=cat(n);function n(){var r;sat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function nw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nw=function(n){return typeof n}:nw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nw(e)}function mat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function BA(e){return BA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},BA(e)}function zte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bat=function(e){gat(n,e);var t=vat(n);function n(){var r;mat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function rw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rw=function(n){return typeof n}:rw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rw(e)}function Tat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $A(e){return $A=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$A(e)}function Wte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cat=function(e){Eat(n,e);var t=wat(n);function n(){var r;Tat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function Nat(e,t,n){We(2,arguments);var r=et(e),i=tn(t),a=zge(r,n)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}function iw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iw=function(n){return typeof n}:iw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iw(e)}function Iat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function UA(e){return UA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},UA(e)}function Gte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pat=function(e){Dat(n,e);var t=xat(n);function n(){var r;Iat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o,s){return Dp(Nat(i,o,s),s)}}]),n}(ln);function Fat(e,t){We(2,arguments);var n=et(e),r=tn(t),i=Vge(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function aw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?aw=function(n){return typeof n}:aw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},aw(e)}function Lat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function HA(e){return HA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},HA(e)}function Yte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zat=function(e){$at(n,e);var t=Uat(n);function n(){var r;Lat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=53}},{key:"set",value:function(i,a,o){return Ug(Fat(i,o))}}]),n}(ln);function ow(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ow=function(n){return typeof n}:ow=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ow(e)}function qat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VA(e){return VA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},VA(e)}function jO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kat=[31,28,31,30,31,30,31,31,30,31,30,31],Qat=[31,29,31,30,31,30,31,31,30,31,30,31],Zat=function(e){jat(n,e);var t=Gat(n);function n(){var r;qat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=Qat[l]:a>=1&&a<=Kat[l]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function lw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lw=function(n){return typeof n}:lw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lw(e)}function Xat(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qte(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zA(e){return zA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zA(e)}function GO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aot=function(e){tot(n,e);var t=not(n);function n(){var r;Xat(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function NH(e,t,n){var r,i,a,o,s,l,u,c;We(2,arguments);var d=Bf(),f=tn((r=(i=(a=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&i!==void 0?i:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=et(e),m=tn(t),h=p.getUTCDay(),g=m%7,v=(g+7)%7,y=(v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qA(e){return qA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qA(e)}function Xte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fot=function(e){lot(n,e);var t=uot(n);function n(){var r;oot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=NH(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function dw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dw=function(n){return typeof n}:dw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dw(e)}function pot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ene(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function WA(e){return WA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},WA(e)}function tne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sot=function(e){hot(n,e);var t=got(n);function n(){var r;pot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=NH(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function fw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fw=function(n){return typeof n}:fw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fw(e)}function bot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jA(e){return jA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jA(e)}function rne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aot=function(e){_ot(n,e);var t=Eot(n);function n(){var r;bot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=NH(i,o,s),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function Cot(e,t){We(2,arguments);var n=tn(t);n%7===0&&(n=n-7);var r=1,i=et(e),a=i.getUTCDay(),o=n%7,s=(o+7)%7,l=(s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function GA(e){return GA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},GA(e)}function ane(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rot=function(e){Oot(n,e);var t=Dot(n);function n(){var r;Not(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=7}},{key:"set",value:function(i,a,o){return i=Cot(i,o),i.setUTCHours(0,0,0,0),i}}]),n}(ln);function mw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mw=function(n){return typeof n}:mw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mw(e)}function Pot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function one(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JA(e){return JA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},JA(e)}function sne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hot=function(e){Lot(n,e);var t=Bot(n);function n(){var r;Pot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function YA(e){return YA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},YA(e)}function une(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jot=function(e){qot(n,e);var t=Wot(n);function n(){var r;Vot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function KA(e){return KA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},KA(e)}function dne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tst=function(e){Qot(n,e);var t=Zot(n);function n(){var r;Yot(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QA(e){return QA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},QA(e)}function pne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lst=function(e){ist(n,e);var t=ast(n);function n(){var r;nst(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(ln);function yw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yw=function(n){return typeof n}:yw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yw(e)}function ust(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ZA(e){return ZA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ZA(e)}function hne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hst=function(e){dst(n,e);var t=fst(n);function n(){var r;ust(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),n}(ln);function Sw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sw=function(n){return typeof n}:Sw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sw(e)}function gst(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XA(e){return XA=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},XA(e)}function vne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _st=function(e){yst(n,e);var t=Sst(n);function n(){var r;gst(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),n}(ln);function bw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bw=function(n){return typeof n}:bw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bw(e)}function Est(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e6(e){return e6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},e6(e)}function Sne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ist=function(e){kst(n,e);var t=Ast(n);function n(){var r;Est(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),n}(ln);function Tw(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tw=function(n){return typeof n}:Tw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tw(e)}function Ost(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function t6(e){return t6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},t6(e)}function Tne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fst=function(e){xst(n,e);var t=Mst(n);function n(){var r;Ost(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),n}(ln);function _w(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_w=function(n){return typeof n}:_w=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_w(e)}function Lst(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n6(e){return n6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},n6(e)}function Ene(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zst=function(e){$st(n,e);var t=Ust(n);function n(){var r;Lst(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),n}(ln);function Ew(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ew=function(n){return typeof n}:Ew=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ew(e)}function qst(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wne(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function r6(e){return r6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r6(e)}function kne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kst=function(e){jst(n,e);var t=Gst(n);function n(){var r;qst(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i6(e){return i6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},i6(e)}function Cne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rlt=function(e){Xst(n,e);var t=elt(n);function n(){var r;Qst(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a6(e){return a6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},a6(e)}function Ine(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var clt=function(e){olt(n,e);var t=slt(n);function n(){var r;ilt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o6(e){return o6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},o6(e)}function Dne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vlt=function(e){plt(n,e);var t=mlt(n);function n(){var r;dlt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s6(e){return s6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},s6(e)}function Mne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wlt=function(e){blt(n,e);var t=Tlt(n);function n(){var r;ylt(this,n);for(var i=arguments.length,a=new Array(i),o=0;o"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Alt(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var u=n.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function Alt(e,t){if(e){if(typeof e=="string")return Pne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pne(e,t)}}function Pne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=tn((m=(h=(g=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(y=r.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:A.weekStartsOn)!==null&&h!==void 0?h:(T=A.locale)===null||T===void 0||(_=T.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return E===""?et(n):new Date(NaN);var H={firstWeekContainsDate:R,weekStartsOn:B,locale:D},L=[new hit],V=k.match(Nlt).map(function(ge){var de=ge[0];if(de in f7){var Re=f7[de];return Re(ge,D.formatLong)}return ge}).join("").match(Clt),U=[],J=Rne(V),re;try{var X=function(){var de=re.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&jge(de)&&kA(de,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Wge(de)&&kA(de,k,e);var Re=de[0],De=klt[Re];if(De){var Me=De.incompatibleTokens;if(Array.isArray(Me)){var Ve=U.find(function(Nt){return Me.includes(Nt.token)||Nt.token===Re});if(Ve)throw new RangeError("The format string mustn't contain `".concat(Ve.fullToken,"` and `").concat(de,"` at the same time"))}else if(De.incompatibleTokens==="*"&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(de,"` and any other token at the same time"));U.push({token:Re,fullToken:de});var dt=De.run(E,de,D.match,H);if(!dt)return{v:new Date(NaN)};L.push(dt.setter),E=dt.rest}else{if(Re.match(xlt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Re+"`");if(de==="''"?de="'":Re==="'"&&(de=Mlt(de)),E.indexOf(de)===0)E=E.slice(de.length);else return{v:new Date(NaN)}}};for(J.s();!(re=J.n()).done;){var j=X();if(Nw(j)==="object")return j.v}}catch(ge){J.e(ge)}finally{J.f()}if(E.length>0&&Dlt.test(E))return new Date(NaN);var te=L.map(function(ge){return ge.priority}).sort(function(ge,de){return de-ge}).filter(function(ge,de,Re){return Re.indexOf(ge)===de}).map(function(ge){return L.filter(function(de){return de.priority===ge}).sort(function(de,Re){return Re.subPriority-de.subPriority})}).map(function(ge){return ge[0]}),M=et(n);if(isNaN(M.getTime()))return new Date(NaN);var W=Uge(M,Hg(M)),ce={},ue=Rne(te),he;try{for(ue.s();!(he=ue.n()).done;){var Ce=he.value;if(!Ce.validate(W,H))return new Date(NaN);var fe=Ce.set(W,ce,H);Array.isArray(fe)?(W=fe[0],cit(ce,fe[1])):W=fe}}catch(ge){ue.e(ge)}finally{ue.f()}return W}function Mlt(e){return e.match(Ilt)[1].replace(Olt,"'")}function Rlt(e,t){var n;We(1,arguments);var r=tn((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Blt(e),a;if(i.date){var o=$lt(i.date,r);a=Ult(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),l=0,u;if(i.time&&(l=Hlt(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=Vlt(i.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var y_={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Plt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Flt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Llt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Blt(e){var t={},n=e.split(y_.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],y_.timeZoneDelimiter.test(t.date)&&(t.date=e.split(y_.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=y_.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function $lt(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Ult(e,t){if(t===null)return new Date(NaN);var n=e.match(Plt);if(!n)return new Date(NaN);var r=!!n[4],i=Pv(n[1]),a=Pv(n[2])-1,o=Pv(n[3]),s=Pv(n[4]),l=Pv(n[5])-1;if(r)return Glt(t,s,l)?zlt(t,s,l):new Date(NaN);var u=new Date(0);return!Wlt(t,a,o)||!jlt(t,i)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(i,o)),u)}function Pv(e){return e?parseInt(e):1}function Hlt(e){var t=e.match(Flt);if(!t)return NaN;var n=YO(t[1]),r=YO(t[2]),i=YO(t[3]);return Jlt(n,r,i)?n*AH+r*kH+i*1e3:NaN}function YO(e){return e&&parseFloat(e.replace(",","."))||0}function Vlt(e){if(e==="Z")return 0;var t=e.match(Llt);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Ylt(r,i)?n*(r*AH+i*kH):NaN}function zlt(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var qlt=[31,null,31,30,31,30,31,31,30,31,30,31];function n1e(e){return e%400===0||e%4===0&&e%100!==0}function Wlt(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(qlt[t]||(n1e(e)?29:28))}function jlt(e,t){return t>=1&&t<=(n1e(e)?366:365)}function Glt(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Jlt(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Ylt(e,t){return t>=0&&t<=59}function Klt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Qlt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Zlt(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Xlt(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(Zlt(e,t,n))return!0;e=e.parentNode}return e}function eut(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var tut=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function nut(e){return e===void 0&&(e=0),function(){return++e}}var rut=nut(),CP,S_={},KO={},iut=["touchstart","touchmove"],aut="ignore-react-onclickoutside";function Fne(e,t){var n=null,r=iut.indexOf(t)!==-1;return r&&CP&&(n={passive:!e.props.preventDefault}),n}function NN(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(a){Klt(o,a);function o(l){var u;return u=a.call(this,l)||this,u.__outsideClickHandler=function(c){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(c);return}var d=u.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(c);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(c);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var c=u.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(c):typeof c.setClickOutsideRef=="function"?c.setClickOutsideRef():Jp.findDOMNode(c)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||KO[u._uid])){typeof CP>"u"&&(CP=tut()),KO[u._uid]=!0;var c=u.props.eventTypes;c.forEach||(c=[c]),S_[u._uid]=function(d){if(u.componentNode!==null&&(u.props.preventDefault&&d.preventDefault(),u.props.stopPropagation&&d.stopPropagation(),!(u.props.excludeScrollbar&&eut(d)))){var f=d.target;Xlt(f,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(d)}},c.forEach(function(d){document.addEventListener(d,S_[u._uid],Fne(u,d))})}},u.disableOnClickOutside=function(){delete KO[u._uid];var c=S_[u._uid];if(c&&typeof document<"u"){var d=u.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,c,Fne(u,f))}),delete S_[u._uid]}},u.getRef=function(c){return u.instanceRef=c},u._uid=rut(),u}var s=o.prototype;return s.getInstance=function(){if(!e.prototype.isReactComponent)return this;var u=this.instanceRef;return u.getInstance?u.getInstance():u},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var u=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(u),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var u=this.props;u.excludeScrollbar;var c=Qlt(u,["excludeScrollbar"]);return e.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,N.createElement(e,c)},o}(N.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:aut,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}function Zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bS(e){"@babel/helpers - typeof";return bS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bS(e)}function out(e,t){if(bS(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bS(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sut(e){var t=out(e,"string");return bS(t)=="symbol"?t:t+""}function Xr(e,t,n){return(t=sut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.14.7 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */var jb=typeof window<"u"&&typeof document<"u",Lne=["Edge","Trident","Firefox"],r1e=0;for(var QO=0;QO=0){r1e=1;break}function lut(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function uut(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r1e))}}var cut=jb&&window.Promise,dut=cut?lut:uut;function i1e(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function lm(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function IH(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Gb(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=lm(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Gb(IH(e))}var Bne=jb&&!!(window.MSInputMethodContext&&document.documentMode),$ne=jb&&/MSIE 10/.test(navigator.userAgent);function H1(e){return e===11?Bne:e===10?$ne:Bne||$ne}function Vg(e){if(!e)return document.documentElement;for(var t=H1(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&lm(n,"position")==="static"?Vg(n):n}function fut(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Vg(e.firstElementChild)===e}function NP(e){return e.parentNode!==null?NP(e.parentNode):e}function l6(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return fut(o)?o:Vg(o);var s=NP(e);return s.host?l6(s.host,t):l6(e,NP(t).host)}function zg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function put(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=zg(t,"top"),i=zg(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function Une(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function Hne(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],H1(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function a1e(e){var t=e.body,n=e.documentElement,r=H1(10)&&getComputedStyle(n);return{height:Hne("Height",t,n,r),width:Hne("Width",t,n,r)}}var mut=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},hut=function(){function e(t,n){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=H1(10),i=t.nodeName==="HTML",a=IP(e),o=IP(t),s=Gb(e),l=lm(t),u=parseFloat(l.borderTopWidth,10),c=parseFloat(l.borderLeftWidth,10);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=hf({top:a.top-o.top-u,left:a.left-o.left-c,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop,10),p=parseFloat(l.marginLeft,10);d.top-=u-f,d.bottom-=u-f,d.left-=c-p,d.right-=c-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=put(d,t)),d}function gut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=OH(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:zg(n),s=t?0:zg(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return hf(l)}function o1e(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(lm(e,"position")==="fixed")return!0;var n=IH(e);return n?o1e(n):!1}function s1e(e){if(!e||!e.parentElement||H1())return document.documentElement;for(var t=e.parentElement;t&&lm(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function DH(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?s1e(e):l6(e,t);if(r==="viewport")a=gut(o,i);else{var s=void 0;r==="scrollParent"?(s=Gb(IH(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=OH(s,o,i);if(s.nodeName==="HTML"&&!o1e(o)){var u=a1e(e.ownerDocument),c=u.height,d=u.width;a.top+=l.top-l.marginTop,a.bottom=c+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}else a=l}n=n||0;var f=typeof n=="number";return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function vut(e){var t=e.width,n=e.height;return t*n}function l1e(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=DH(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(f){return ys({key:f},s[f],{area:vut(s[f])})}).sort(function(f,p){return p.area-f.area}),u=l.filter(function(f){var p=f.width,m=f.height;return p>=n.clientWidth&&m>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function u1e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?s1e(t):l6(t,n);return OH(n,i,r)}function c1e(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function u6(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function d1e(e,t,n){n=n.split("-")[0];var r=c1e(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",u=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[u]:i[s]=t[u6(s)],i}function Jb(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function yut(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Jb(e,function(i){return i[t]===n});return e.indexOf(r)}function f1e(e,t,n){var r=n===void 0?e:e.slice(0,yut(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&i1e(a)&&(t.offsets.popper=hf(t.offsets.popper),t.offsets.reference=hf(t.offsets.reference),t=a(t,i))}),t}function Sut(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=u1e(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=l1e(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=d1e(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=f1e(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function p1e(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function xH(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;ro[p]&&(e.offsets.popper[d]+=s[d]+m-o[p]),e.offsets.popper=hf(e.offsets.popper);var h=s[d]+s[u]/2-m/2,g=lm(e.instance.popper),v=parseFloat(g["margin"+c],10),y=parseFloat(g["border"+c+"Width"],10),b=h-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(o[u]-m,b),0),e.arrowElement=r,e.offsets.arrow=(n={},qg(n,d,Math.round(b)),qg(n,f,""),n),e}function xut(e){return e==="end"?"start":e==="start"?"end":e}var v1e=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ZO=v1e.slice(3);function Vne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ZO.indexOf(e),r=ZO.slice(n+1).concat(ZO.slice(0,n));return t?r.reverse():r}var XO={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Mut(e,t){if(p1e(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=DH(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=u6(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case XO.FLIP:o=[r,i];break;case XO.CLOCKWISE:o=Vne(r);break;case XO.COUNTERCLOCKWISE:o=Vne(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=u6(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f=r==="left"&&d(u.right)>d(c.left)||r==="right"&&d(u.left)d(c.top)||r==="bottom"&&d(u.top)d(n.right),h=d(u.top)d(n.bottom),v=r==="left"&&p||r==="right"&&m||r==="top"&&h||r==="bottom"&&g,y=["top","bottom"].indexOf(r)!==-1,b=!!t.flipVariations&&(y&&a==="start"&&p||y&&a==="end"&&m||!y&&a==="start"&&h||!y&&a==="end"&&g);(f||v||b)&&(e.flipped=!0,(f||v)&&(r=o[l+1]),b&&(a=xut(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=ys({},e.offsets.popper,d1e(e.instance.popper,e.offsets.reference,e.placement)),e=f1e(e.instance.modifiers,e,"flip"))}),e}function Rut(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",u=o?"width":"height";return n[s]a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function Put(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=hf(s);return l[t]/100*a}else if(o==="vh"||o==="vw"){var u=void 0;return o==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*a}else return a}function Fut(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(c){return c.trim()}),s=o.indexOf(Jb(o,function(c){return c.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return u=u.map(function(c,d){var f=(d===1?!a:a)?"height":"width",p=!1;return c.reduce(function(m,h){return m[m.length-1]===""&&["+","-"].indexOf(h)!==-1?(m[m.length-1]=h,p=!0,m):p?(m[m.length-1]+=h,p=!1,m):m.concat(h)},[]).map(function(m){return Put(m,f,t,n)})}),u.forEach(function(c,d){c.forEach(function(f,p){MH(f)&&(i[d]+=f*(c[p-1]==="-"?-1:1))})}),i}function Lut(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return MH(+n)?l=[+n,0]:l=Fut(n,a,o,s),s==="left"?(a.top+=l[0],a.left-=l[1]):s==="right"?(a.top+=l[0],a.left+=l[1]):s==="top"?(a.left+=l[0],a.top-=l[1]):s==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function But(e,t){var n=t.boundariesElement||Vg(e.instance.popper);e.instance.reference===n&&(n=Vg(n));var r=xH("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=DH(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(p){var m=c[p];return c[p]l[p]&&!t.escapeWithReference&&(h=Math.min(c[m],l[p]-(p==="right"?c.width:c.height))),qg({},m,h)}};return u.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";c=ys({},c,d[p](f))}),e.offsets.popper=c,e}function $ut(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:qg({},l,a[l]),end:qg({},l,a[l]+a[u]-o[u])};e.offsets.popper=ys({},o,c[r])}return e}function Uut(e){if(!g1e(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Jb(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==void 0?arguments[2]:{};mut(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=dut(this.update.bind(this)),this.options=ys({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ys({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=ys({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return ys({name:o},r.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&i1e(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return hut(e,[{key:"update",value:function(){return Sut.call(this)}},{key:"destroy",value:function(){return but.call(this)}},{key:"enableEventListeners",value:function(){return _ut.call(this)}},{key:"disableEventListeners",value:function(){return wut.call(this)}}]),e}();Yb.Utils=(typeof window<"u"?window:global).PopperUtils;Yb.placements=v1e;Yb.Defaults=zut;var DP={exports:{}},xP={exports:{}},zne="__global_unique_id__",qut=function(){return ap[zne]=(ap[zne]||0)+1},Wut=function(){},y1e=Wut;const jut=ao(y1e);(function(e,t){t.__esModule=!0;var n=N;l(n);var r=Ode,i=l(r),a=qut,o=l(a),s=y1e;l(s);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function c(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var f=1073741823;function p(v,y){return v===y?v!==0||1/v===1/y:v!==v&&y!==y}function m(v){var y=[];return{on:function(T){y.push(T)},off:function(T){y=y.filter(function(_){return _!==T})},get:function(){return v},set:function(T,_){v=T,y.forEach(function(E){return E(v,_)})}}}function h(v){return Array.isArray(v)?v[0]:v}function g(v,y){var b,T,_="__create-react-context-"+(0,o.default)()+"__",E=function(A){d(D,A);function D(){var R,B,H;u(this,D);for(var L=arguments.length,V=Array(L),U=0;U1?n-1:0),i=1;i0&&(i=JO(e,t.slice(0,e.length),new Date)),o0(i)||(i=new Date(e))),o0(i)&&o?i:null)}function o0(e){return $ge(e)&&mf(e,new Date("1/1/1000"))}function ki(e,t,n){if(n==="en")return AA(e,t,{awareOfUnicodeTokens:!0});var r=l2(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&s2()&&l2(s2())&&(r=l2(s2())),AA(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function jne(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,a=i===void 0?0:i,o=t.second;return WE(qE(Krt(e,o===void 0?0:o),a),r)}function PH(e,t){var n=l2(t||s2());return g7(e,{locale:n})}function Q0(e){return tit(e)}function FH(e,t){return e&&t?lit(e,t):!e&&!t}function vd(e,t){return e&&t?sit(e,t):!e&&!t}function d6(e,t){return e&&t?uit(e,t):!e&&!t}function Hl(e,t){return e&&t?oit(e,t):!e&&!t}function f6(e,t){return e&&t?ait(e,t):!e&&!t}function Iw(e,t,n){var r,i=xp(t),a=rit(n);try{r=Yge(e,{start:i,end:a})}catch{r=!1}return r}function s2(){return(typeof window<"u"?window:global).__localeId__}function l2(e){if(typeof e=="string"){var t=typeof window<"u"?window:global;return t.__localeData__?t.__localeData__[e]:null}return e}function E1e(e,t){return ki(oc(Ii(),e),"LLL",t)}function w1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,o=t.filterDate;return LH(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return Hl(e,s)})||a&&!a.some(function(s){return Hl(e,s)})||o&&!o(Ii(e))||!1}function oct(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,o=t.filterDate;return LH(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return vd(e,s)})||a&&!a.some(function(s){return vd(e,s)})||o&&!o(Ii(e))||!1}function sct(e,t,n,r){var i=Nr(e),a=gc(e),o=Nr(t),s=gc(t),l=Nr(r);return i===o&&i===l?a<=n&&n<=s:i=n||li:void 0}function lct(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,o=t.filterDate;return LH(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return d6(e,s)})||a&&!a.some(function(s){return d6(e,s)})||o&&!o(Ii(e))||!1}function uct(e,t,n,r){var i=Nr(e),a=m7(e),o=Nr(t),s=m7(t),l=Nr(r);return i===o&&i===l?a<=n&&n<=s:i=n||li:void 0}function LH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&CA(e,n)<0||r&&CA(e,r)>0}function b_(e,t){for(var n=t.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=_H(e,1);return n&&NA(n,i)>0||r&&r.every(function(a){return NA(a,i)>0})||!1}function Yne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=pf(e,1);return n&&NA(i,n)>0||r&&r.every(function(a){return NA(i,a)>0})||!1}function k1e(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return CA(i,t)>=0});return wte(r)}return n?wte(n):t}function A1e(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return CA(i,t)<=0});return kte(r)}return n?kte(n):t}function Kne(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r=o),s&&i.push(o)}return i}var fct=NN(function(e){function t(n){var r;Ia(this,t),ie(se(r=Da(this,ea(t).call(this,n))),"renderOptions",function(){var s=r.props.year,l=r.state.yearsList.map(function(d){return Z.createElement("div",{className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,ref:d,onClick:r.onChange.bind(se(r),d)},s===d?Z.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),u=r.props.minDate?Nr(r.props.minDate):null,c=r.props.maxDate?Nr(r.props.maxDate):null;return c&&r.state.yearsList.find(function(d){return d===c})||l.unshift(Z.createElement("div",{className:"react-datepicker__year-option",ref:"upcoming",key:"upcoming",onClick:r.incrementYears},Z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),u&&r.state.yearsList.find(function(d){return d===u})||l.push(Z.createElement("div",{className:"react-datepicker__year-option",ref:"previous",key:"previous",onClick:r.decrementYears},Z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l}),ie(se(r),"onChange",function(s){r.props.onChange(s)}),ie(se(r),"handleClickOutside",function(){r.props.onCancel()}),ie(se(r),"shiftYears",function(s){var l=r.state.yearsList.map(function(u){return u+s});r.setState({yearsList:l})}),ie(se(r),"incrementYears",function(){return r.shiftYears(1)}),ie(se(r),"decrementYears",function(){return r.shiftYears(-1)});var i=n.yearDropdownItemNumber,a=n.scrollableYearDropdown,o=i||(a?10:5);return r.state={yearsList:dct(r.props.year,o,r.props.minDate,r.props.maxDate)},r}return Oa(t,Z.Component),Mi(t,[{key:"render",value:function(){var n=_s({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Z.createElement("div",{className:n},this.renderOptions())}}]),t}()),pct=function(e){function t(){var n,r;Ia(this,t);for(var i=arguments.length,a=new Array(i),o=0;o1&&arguments[1]!==void 0?arguments[1]:{}).excludeDates;return l&&l.some(function(u){return Hl(s,u)})||!1}(r.props.day,r.props)}),ie(se(r),"getHighLightedClass",function(s){var l=r.props,u=l.day,c=l.highlightDates;if(!c)return!1;var d=ki(u,"MM.dd.yyyy");return c.get(d)}),ie(se(r),"isInRange",function(){var s=r.props,l=s.day,u=s.startDate,c=s.endDate;return!(!u||!c)&&Iw(l,u,c)}),ie(se(r),"isInSelectingRange",function(){var s=r.props,l=s.day,u=s.selectsStart,c=s.selectsEnd,d=s.selectingDate,f=s.startDate,p=s.endDate;return!(!u&&!c||!d||r.isDisabled())&&(u&&p&&(SS(d,p)||f6(d,p))?Iw(l,d,p):!(!c||!f||!mf(d,f)&&!f6(d,f))&&Iw(l,f,d))}),ie(se(r),"isSelectingRangeStart",function(){if(!r.isInSelectingRange())return!1;var s=r.props,l=s.day,u=s.selectingDate,c=s.startDate;return Hl(l,s.selectsStart?u:c)}),ie(se(r),"isSelectingRangeEnd",function(){if(!r.isInSelectingRange())return!1;var s=r.props,l=s.day,u=s.selectingDate,c=s.endDate;return Hl(l,s.selectsEnd?u:c)}),ie(se(r),"isRangeStart",function(){var s=r.props,l=s.day,u=s.startDate,c=s.endDate;return!(!u||!c)&&Hl(u,l)}),ie(se(r),"isRangeEnd",function(){var s=r.props,l=s.day,u=s.startDate,c=s.endDate;return!(!u||!c)&&Hl(c,l)}),ie(se(r),"isWeekend",function(){var s=Yrt(r.props.day);return s===0||s===6}),ie(se(r),"isOutsideMonth",function(){return r.props.month!==void 0&&r.props.month!==gc(r.props.day)}),ie(se(r),"getClassNames",function(s){var l,u=r.props.dayClassName?r.props.dayClassName(s):void 0;return _s("react-datepicker__day",u,"react-datepicker__day--"+ki(r.props.day,"ddd",l),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSameDay(r.props.selected),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isSameDay(Ii()),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isOutsideMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))}),r}return Oa(t,Z.Component),Mi(t,[{key:"render",value:function(){return Z.createElement("div",{className:this.getClassNames(this.props.day),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,"aria-label":"day-".concat(WO(this.props.day)),role:"option","aria-disabled":this.isDisabled()},this.props.renderDayContents?this.props.renderDayContents(WO(this.props.day),this.props.day):WO(this.props.day))}}]),t}(),bct=function(e){function t(){var n,r;Ia(this,t);for(var i=arguments.length,a=new Array(i),o=0;o=_ct,p=!l&&!r.isWeekInMonth(u);if(f||p){if(!r.props.peekNextMonth)break;d=!0}}return s}),ie(se(r),"onMonthClick",function(s,l){r.handleDayClick(Q0(oc(r.props.day,l)),s)}),ie(se(r),"onQuarterClick",function(s,l){var u;r.handleDayClick((u=Rv(r.props.day,l),v7(u)),s)}),ie(se(r),"getMonthClassNames",function(s){var l=r.props,u=l.day,c=l.startDate,d=l.endDate,f=l.selected,p=l.minDate,m=l.maxDate;return _s("react-datepicker__month-text","react-datepicker__month-".concat(s),{"react-datepicker__month--disabled":(p||m)&&oct(oc(u,s),r.props),"react-datepicker__month--selected":gc(u)===s&&Nr(u)===Nr(f),"react-datepicker__month--in-range":sct(c,d,s,u),"react-datepicker__month--range-start":r.isRangeStartMonth(s),"react-datepicker__month--range-end":r.isRangeEndMonth(s)})}),ie(se(r),"getQuarterClassNames",function(s){var l=r.props,u=l.day,c=l.startDate,d=l.endDate,f=l.selected,p=l.minDate,m=l.maxDate;return _s("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter--disabled":(p||m)&&lct(Rv(u,s),r.props),"react-datepicker__quarter--selected":m7(u)===s&&Nr(u)===Nr(f),"react-datepicker__quarter--in-range":uct(c,d,s,u),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(s)})}),ie(se(r),"renderMonths",function(){return[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map(function(s,l){return Z.createElement("div",{className:"react-datepicker__month-wrapper",key:l},s.map(function(u,c){return Z.createElement("div",{key:c,onClick:function(d){r.onMonthClick(d,u)},className:r.getMonthClassNames(u)},E1e(u,r.props.locale))}))})}),ie(se(r),"renderQuarters",function(){return Z.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(s,l){return Z.createElement("div",{key:l,onClick:function(d){r.onQuarterClick(d,s)},className:r.getQuarterClassNames(s)},(u=s,c=r.props.locale,ki(Rv(Ii(),u),"QQQ",c)));var u,c}))}),ie(se(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,u=s.selectsStart,c=s.selectsEnd,d=s.showMonthYearPicker,f=s.showQuarterYearPicker;return _s("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(u||c)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":f})}),r}return Oa(t,Z.Component),Mi(t,[{key:"render",value:function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker;return Z.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,role:"listbox","aria-label":"month-"+ki(this.props.day,"yyyy-MM")},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())}}]),t}(),C1e=function(e){function t(){var n,r;Ia(this,t);for(var i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},t=(e.className||"").split(/\s+/);return Act.some(function(n){return t.indexOf(n)>=0})},Nct=function(e){function t(n){var r;return Ia(this,t),ie(se(r=Da(this,ea(t).call(this,n))),"handleClickOutside",function(i){r.props.onClickOutside(i)}),ie(se(r),"setClickOutsideRef",function(){return r.containerRef.current}),ie(se(r),"handleDropdownFocus",function(i){Cct(i.target)&&r.props.onDropdownFocus()}),ie(se(r),"getDateInView",function(){var i=r.props,a=i.preSelection,o=i.selected,s=i.openToDate,l=k1e(r.props),u=A1e(r.props),c=Ii(),d=s||o||a;return d||(l&&SS(c,l)?l:u&&mf(c,u)?u:c)}),ie(se(r),"increaseMonth",function(){r.setState(function(i){var a=i.date;return{date:pf(a,1)}},function(){return r.handleMonthChange(r.state.date)})}),ie(se(r),"decreaseMonth",function(){r.setState(function(i){var a=i.date;return{date:_H(a,1)}},function(){return r.handleMonthChange(r.state.date)})}),ie(se(r),"handleDayClick",function(i,a,o){return r.props.onSelect(i,a,o)}),ie(se(r),"handleDayMouseEnter",function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)}),ie(se(r),"handleMonthMouseLeave",function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()}),ie(se(r),"handleYearChange",function(i){r.props.onYearChange&&r.props.onYearChange(i)}),ie(se(r),"handleMonthChange",function(i){r.props.onMonthChange&&r.props.onMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0))}),ie(se(r),"handleMonthYearChange",function(i){r.handleYearChange(i),r.handleMonthChange(i)}),ie(se(r),"changeYear",function(i){r.setState(function(a){var o=a.date;return{date:Ete(o,i)}},function(){return r.handleYearChange(r.state.date)})}),ie(se(r),"changeMonth",function(i){r.setState(function(a){var o=a.date;return{date:oc(o,i)}},function(){return r.handleMonthChange(r.state.date)})}),ie(se(r),"changeMonthYear",function(i){r.setState(function(a){var o=a.date;return{date:Ete(oc(o,gc(i)),Nr(i))}},function(){return r.handleMonthYearChange(r.state.date)})}),ie(se(r),"header",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.state.date,a=PH(i,r.props.locale),o=[];return r.props.showWeekNumbers&&o.push(Z.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(s){var l=U1(a,s),u=r.formatWeekday(l,r.props.locale);return Z.createElement("div",{key:s,className:"react-datepicker__day-name"},u)}))}),ie(se(r),"formatWeekday",function(i,a){return r.props.formatWeekDay?function(o,s,l){return s(ki(o,"EEEE",l))}(i,r.props.formatWeekDay,a):r.props.useWeekdaysShort?function(o,s){return ki(o,"EEE",s)}(i,a):function(o,s){return ki(o,"EEEEEE",s)}(i,a)}),ie(se(r),"decreaseYear",function(){r.setState(function(i){var a=i.date;return{date:Jge(a,1)}},function(){return r.handleYearChange(r.state.date)})}),ie(se(r),"renderPreviousButton",function(){if(!r.props.renderCustomHeader){var i=Jne(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!i)&&!r.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],o=r.decreaseMonth;return(r.props.showMonthYearPicker||r.props.showQuarterYearPicker)&&(o=r.decreaseYear),i&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),o=null),Z.createElement("button",{type:"button",className:a.join(" "),onClick:o},r.props.showMonthYearPicker||r.props.showQuarterYearPicker?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel)}}}),ie(se(r),"increaseYear",function(){r.setState(function(i){var a=i.date;return{date:TH(a,1)}},function(){return r.handleYearChange(r.state.date)})}),ie(se(r),"renderNextButton",function(){if(!r.props.renderCustomHeader){var i=Yne(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!i)&&!r.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var o=r.increaseMonth;return(r.props.showMonthYearPicker||r.props.showQuarterYearPicker)&&(o=r.increaseYear),i&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),o=null),Z.createElement("button",{type:"button",className:a.join(" "),onClick:o},r.props.showMonthYearPicker||r.props.showQuarterYearPicker?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel)}}}),ie(se(r),"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.state.date,a=["react-datepicker__current-month"];return r.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Z.createElement("div",{className:a.join(" ")},ki(i,r.props.dateFormat,r.props.locale))}),ie(se(r),"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(r.props.showYearDropdown&&!i)return Z.createElement(pct,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Nr(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),ie(se(r),"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(r.props.showMonthDropdown&&!i)return Z.createElement(hct,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:gc(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})}),ie(se(r),"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(r.props.showMonthYearDropdown&&!i)return Z.createElement(yct,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})}),ie(se(r),"renderTodayButton",function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return Z.createElement("div",{className:"react-datepicker__today-button",onClick:function(i){return r.props.onSelect(xp(Ii()),i)}},r.props.todayButton)}),ie(se(r),"renderDefaultHeader",function(i){var a=i.monthDate,o=i.i;return Z.createElement("div",{className:"react-datepicker__header"},r.renderCurrentMonth(a),Z.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(o!==0),r.renderMonthYearDropdown(o!==0),r.renderYearDropdown(o!==0)),Z.createElement("div",{className:"react-datepicker__day-names"},r.header(a)))}),ie(se(r),"renderCustomHeader",function(i){var a=i.monthDate;if(i.i!==0)return null;var o=Jne(r.state.date,r.props),s=Yne(r.state.date,r.props);return Z.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(function(l){for(var u=1;u1&&arguments[1]!==void 0&&arguments[1];r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:eD},function(){i||r.setState(function(o){return{focused:!!a&&o.focused}},function(){!a&&r.setBlur(),r.setState({inputValue:null})})})}),ie(se(r),"inputOk",function(){return vH(r.state.preSelection)}),ie(se(r),"isCalendarOpen",function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open}),ie(se(r),"handleFocus",function(i){r.state.preventFocus||(r.props.onFocus(i),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})}),ie(se(r),"cancelFocusInput",function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null}),ie(se(r),"deferFocusInput",function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)}),ie(se(r),"handleDropdownFocus",function(){r.cancelFocusInput()}),ie(se(r),"handleBlur",function(i){!r.state.open||r.props.withPortal||r.props.showTimeInput?r.props.onBlur(i):r.deferFocusInput(),r.setState({focused:!1})}),ie(se(r),"handleCalendarClickOutside",function(i){r.props.inline||r.setOpen(!1),r.props.onClickOutside(i),r.props.withPortal&&i.preventDefault()}),ie(se(r),"handleChange",function(){for(var i=arguments.length,a=new Array(i),o=0;o1&&!r.props.inlineFocusSelectedMonth&&r.setState({monthSelectedIn:s})}r.props.onChange(l,a)}r.props.onSelect(l,a),o||r.setState({inputValue:null})}}),ie(se(r),"setPreSelection",function(i){var a=r.props.minDate!==void 0,o=r.props.maxDate!==void 0,s=!0;i&&(a&&o?s=Iw(i,r.props.minDate,r.props.maxDate):a?s=mf(i,r.props.minDate):o&&(s=SS(i,r.props.maxDate))),s&&r.setState({preSelection:i})}),ie(se(r),"handleTimeChange",function(i){var a=jne(r.props.selected?r.props.selected:r.getPreSelection(),{hour:yo(i),minute:vs(i)});r.setState({preSelection:a}),r.props.onChange(a),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})}),ie(se(r),"onInputClick",function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()}),ie(se(r),"onInputKeyDown",function(i){r.props.onKeyDown(i);var a=i.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){var o=Ii(r.state.preSelection);if(a==="Enter")i.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===eD?(r.handleSelect(o,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1);else if(a==="Escape")i.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:Xne});else if(a==="Tab")r.setOpen(!1,!0);else if(!r.props.disabledKeyboardNavigation){var s;switch(a){case"ArrowLeft":s=jrt(o,1);break;case"ArrowRight":s=U1(o,1);break;case"ArrowUp":s=Grt(o,1);break;case"ArrowDown":s=bH(o,1);break;case"PageUp":s=_H(o,1);break;case"PageDown":s=pf(o,1);break;case"Home":s=Jge(o,1);break;case"End":s=TH(o,1)}if(!s)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:Xne}));i.preventDefault(),r.setState({lastPreSelectChange:eD}),r.props.adjustDateOnChange&&r.setSelected(s),r.setPreSelection(s)}}else a!=="ArrowDown"&&a!=="ArrowUp"||r.onInputClick()}),ie(se(r),"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),r.props.onChange(null,i),r.setState({inputValue:null})}),ie(se(r),"clear",function(){r.onClearClick()}),ie(se(r),"renderCalendar",function(){return r.props.inline||r.isCalendarOpen()?Z.createElement(Oct,{ref:function(i){r.calendar=i},locale:r.props.locale,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:Zne,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker},r.props.children):null}),ie(se(r),"renderDateInput",function(){var i,a,o,s,l,u=_s(r.props.className,ie({},Zne,r.state.open)),c=r.props.customInput||Z.createElement("input",{type:"text"}),d=r.props.customInputRef||"ref",f=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:(a=r.props.selected,o=r.props,s=o.dateFormat,l=o.locale,a&&ki(a,Array.isArray(s)?s[0]:s,l)||"");return Z.cloneElement(c,(ie(i={},d,function(p){r.input=p}),ie(i,"value",f),ie(i,"onBlur",r.handleBlur),ie(i,"onChange",r.handleChange),ie(i,"onClick",r.onInputClick),ie(i,"onFocus",r.handleFocus),ie(i,"onKeyDown",r.onInputKeyDown),ie(i,"id",r.props.id),ie(i,"name",r.props.name),ie(i,"autoFocus",r.props.autoFocus),ie(i,"placeholder",r.props.placeholderText),ie(i,"disabled",r.props.disabled),ie(i,"autoComplete",r.props.autoComplete),ie(i,"className",_s(c.props.className,u)),ie(i,"title",r.props.title),ie(i,"readOnly",r.props.readOnly),ie(i,"required",r.props.required),ie(i,"tabIndex",r.props.tabIndex),i))}),ie(se(r),"renderClearButton",function(){return r.props.isClearable&&r.props.selected!=null?Z.createElement("button",{type:"button",className:"react-datepicker__close-icon","aria-label":"Close",onClick:r.onClearClick,title:r.props.clearButtonTitle,tabIndex:-1}):null}),r.state=r.calcInitialState(),r}return Oa(t,Z.Component),Mi(t,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showMonthYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",renderDayContents:function(n){return n},inlineFocusSelectedMonth:!1}}}]),Mi(t,[{key:"componentDidUpdate",value:function(n,r){var i,a;n.inline&&(i=n.selected,a=this.props.selected,i&&a?gc(i)!==gc(a)||Nr(i)!==Nr(a):i!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Kne(this.props.highlightDates)}),r.focused||f6(n.selected,this.props.selected)||this.setState({inputValue:null})}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout()}},{key:"render",value:function(){var n=this.renderCalendar();return this.props.inline&&!this.props.withPortal?n:this.props.withPortal?Z.createElement("div",null,this.props.inline?null:Z.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?Z.createElement("div",{className:"react-datepicker__portal"},n):null):Z.createElement(Ict,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:Z.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:n,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps})}}]),t}(),xct="input",eD="navigate";const Mct="_input_vhnr2_29",Rct="_greedy_vhnr2_60",Pct="_popper_vhnr2_65",Fct="_titleAndControls_vhnr2_75",Lct="_month_vhnr2_81",Bct="_loading_vhnr2_88",$ct="_button_vhnr2_102",Uct="_available_vhnr2_204",Hct="_highlighted_vhnr2_209",Vct="_inverted_vhnr2_217",zct="_selected_vhnr2_225",qct="_visited_vhnr2_239",Wct="_todayButton_vhnr2_253",La={input:Mct,greedy:Rct,popper:Pct,titleAndControls:Fct,month:Lct,loading:Bct,button:$ct,available:Uct,highlighted:Hct,inverted:Vct,selected:zct,visited:qct,todayButton:Wct},N1e=La.available;La.highlighted;const jct=La.inverted,Gct=La.selected,Jct=({forwardedRef:e,isLoading:t,doesShowTodayButton:n,isGreedy:r,placeholder:i,className:a,inline:o,...s})=>{const l=S(jt,{className:La.todayButton,priority:Tt.Quaternary,children:"Today"}),u=N.useMemo(()=>({date:c,prevMonthButtonDisabled:d,nextMonthButtonDisabled:f,decreaseMonth:p,increaseMonth:m})=>{const h=qe.fromJSDate(c);return S("div",{className:La.header,children:F("div",{className:La.titleAndControls,children:[F("h4",{className:La.month,children:[S("span",{children:h.toLocaleString({month:"long",year:"numeric"})}),t?S(K0,{className:La.loading}):""]}),S(jt,{className:La.button,priority:Tt.Quaternary,onClick:p,disabled:d,children:S(Ns,{})}),S(jt,{className:La.button,priority:Tt.Quaternary,onClick:m,disabled:f,children:S(Tge,{})})]})})},[t]);return S(Dct,{...s,renderCustomHeader:u,todayButton:n?l:void 0,inline:o,ref:e,placeholderText:i,className:[La.input,a,r?La.greedy:null].join(" "),popperClassName:La.popper})},BH=N.forwardRef((e,t)=>S(Jct,{forwardedRef:t,...e})),Yct="_container_r5yk6_29",Kct="_message_r5yk6_44",Qct="_fullScreen_r5yk6_48",Zct="_animation_r5yk6_71",Xct="_staticCircle_r5yk6_72",edt="_animatedCircle_r5yk6_73",tdt="_pulsate_r5yk6_1",ndt="_logo_r5yk6_95",rdt="_fullScreenMessage_r5yk6_114",idt="_spinner_r5yk6_129",adt="_spin_r5yk6_129",Z0={container:Yct,message:Kct,fullScreen:Qct,"fullScreen--withNav":"_fullScreen--withNav_r5yk6_58",animation:Zct,staticCircle:Xct,animatedCircle:edt,pulsate:tdt,logo:ndt,fullScreenMessage:rdt,spinner:idt,spin:adt},um=({message:e,className:t})=>F("div",{className:[Z0.container,t].join(" "),children:[S(K0,{className:Z0.icon}),S("p",{className:Z0.message,children:e})]}),$H=({message:e="Loading…",withNav:t})=>F("div",{className:[Z0.fullScreen,t?Z0["fullScreen--withNav"]:void 0].join(" "),children:[S(odt,{}),S("span",{className:Z0.fullScreenMessage,children:e})]}),odt=()=>S("div",{className:Z0.spinner}),cm=N.createContext(void 0),$f=()=>{const e=N.useContext(cm);if(!e)throw new Error("Cannot use the organization context without a value provided.");return e};function Du({organization:e,children:t}){return N.useEffect(()=>{if(e.theme&&e.theme.colors){const n=e.theme.colors;document.documentElement.style.setProperty("--colorPrimary600",n.colorPrimary600),document.documentElement.style.setProperty("--colorPrimary900",n.colorPrimary900)}},[e.theme]),S(cm.Provider,{value:e,children:t})}function I1e(e){return e&&e.theme&&e.theme.logoWordmarkImageUrl}function sdt(e){return e&&e.theme&&e.theme.logoSquareImageUrl}function O1e(...e){const t=N.useContext(cm);return t==null||t.activeFeatureFlags==null?!1:e.every(n=>t.activeFeatureFlags.includes(n))}const ldt="_container_pjyt6_1",udt={container:ldt},cdt=({className:e,children:t,forwardedRef:n,...r})=>S("button",{className:[udt.container,e].join(" "),ref:n,...r,children:t}),TS=N.forwardRef((e,t)=>S(cdt,{forwardedRef:t,...e})),ddt="_navRoot_1e3cr_29",fdt="_navContainer_1e3cr_36",pdt="_right_1e3cr_67",mdt="_navLogoLink_1e3cr_96",hdt="_navLogoIconImage_1e3cr_100",gdt="_navLogoWordmarkImage_1e3cr_105",vdt="_navLogoText_1e3cr_110",ydt="_link_1e3cr_125",Sdt="_disabled_1e3cr_151",bdt="_buttons_1e3cr_168",Tdt="_fixedButton_1e3cr_169",_dt="_secondaryButtons_1e3cr_174",Edt="_hideButtons_1e3cr_253",wdt="_positionButtons_1e3cr_264",kdt="_secondaryOpen_1e3cr_294",Adt="_cancelButton_1e3cr_298",Fr={navRoot:ddt,navContainer:fdt,right:pdt,navLogoLink:mdt,navLogoIconImage:hdt,navLogoWordmarkImage:gdt,navLogoText:vdt,link:ydt,disabled:Sdt,buttons:bdt,fixedButton:Tdt,secondaryButtons:_dt,hideButtons:Edt,positionButtons:wdt,secondaryOpen:kdt,cancelButton:Adt};function Cdt(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const fr=({className:e,children:t})=>{const n=N.useContext(cm),r=Cdt(t);r.length>2&&Jn(new Error("Nav can only handle 0, 1, or 2 children."));const i=Array.from({length:Math.max(2-r.length,0)},(l,u)=>S("li",{},u)),a=I1e(n),o=sdt(n),s=n?n.name:"";return S("div",{className:[Fr.navRoot,e].join(" "),children:F("ul",{className:Fr.navContainer,children:[S("li",{children:S("a",{className:Fr.navLogoLink,href:n&&n.publicWebsite?n.publicWebsite:"",children:a?S("img",{className:Fr.navLogoWordmarkImage,src:a,alt:s}):o?S("img",{className:Fr.navLogoIconImage,src:o,alt:s}):S("p",{className:Fr.navLogoText,children:s})})}),t,i]})})},Wg=({className:e,disabled:t,children:n,isRight:r,...i})=>S("li",{className:r?Fr.right:void 0,children:t?S("span",{className:[Fr.link,Fr.disabled,e].join(" "),children:n}):S(JC,{className:[Fr.link,e].join(" "),children:n,...i})}),Ndt=({className:e,forwardedRef:t,...n})=>S("div",{...n,className:[Fr.buttons,e].join(" "),ref:t}),V1=N.forwardRef((e,t)=>S(Ndt,{forwardedRef:t,...e})),D1e=e=>S("li",{className:e.align==="left"?Fr.left:Fr.right,children:S(V1,{children:S(jt,{...e})})}),x1e=({renderPrimaryButton:e,children:t,label:n})=>{const[r,i]=N.useState(!1),a=N.useRef(null),o=N.useRef(null),s=N.useRef(null),l=Sge();function u(){i(!r)}function c(d){const f=d.target;l&&(o.current&&o.current.contains(f)||s.current&&s.current.contains(f))||!l&&a.current&&a.current.contains(f)||i(!1)}return N.useEffect(()=>(r?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}),[r]),F("li",{className:[Fr.right,Fr.positionButtons].join(" "),children:[F(V1,{ref:a,className:r?void 0:Fr.hideButtons,children:[e?e():"",r?F("div",{className:Fr.secondaryButtons,ref:o,children:[t,S(jt,{priority:Tt.Secondary,onClick:u,className:Fr.cancelButton,children:"Close"})]}):""]}),!l||t?S(TS,{className:[Fr.link].join(" "),onClick:u,ref:s,children:typeof n=="string"?n:S(n,{})}):""]})},Idt="_container_101oc_29",Odt="_section_101oc_37",Ddt="_darkDivider_101oc_49",xdt="_heading_101oc_53",Mdt="_largeHeading_101oc_69",Rdt="_withDivider_101oc_84",Pdt="_message_101oc_88",Fdt="_required_101oc_92",Ldt="_negative_101oc_97",Bdt="_neutral_101oc_105",$dt="_positive_101oc_113",Udt="_warning_101oc_121",Hdt="_needsAction_101oc_129",Vdt="_highlighted_101oc_139",Es={container:Idt,section:Odt,darkDivider:Ddt,heading:xdt,largeHeading:Mdt,withDivider:Rdt,message:Pdt,required:Fdt,negative:Ldt,neutral:Bdt,positive:$dt,warning:Udt,needsAction:Hdt,highlighted:Vdt},Ze=N.forwardRef(({className:e,highlight:t,...n},r)=>S("div",{ref:r,...n,className:[e,t?`${Es[t]} ${Es.highlighted}`:"",Es.container].join(" "),"data-highlight":t??"none"})),So=({className:e,hasDarkDivider:t,...n})=>S("div",{...n,className:[e,Es.section,t?Es.darkDivider:void 0].join(" ")}),Wt=({className:e,...t})=>S("h2",{className:[Es.heading,e].join(" "),...t}),zdt=({className:e,...t})=>S("p",{className:[Es.message,e].join(" "),...t}),gf=({className:e,hasDivider:t,...n})=>S("h2",{className:[Es.largeHeading,t?Es.withDivider:void 0,e].join(" "),...n}),IN=({message:e})=>F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"Error"}),S("p",{className:Es.message,children:e})]}),zu=({className:e,isRequired:t,...n})=>S("label",{className:[Es.heading,t?Es.required:"",e].join(" "),...n}),qdt="_container_ud4nd_29",Wdt="_titles_ud4nd_34",jdt="_title_ud4nd_34",Gdt="_heading_ud4nd_40",Jdt="_subtitle_ud4nd_61",Ydt="_large_ud4nd_67",Kdt="_content_ud4nd_71",s0={container:qdt,titles:Wdt,title:jdt,heading:Gdt,subtitle:Jdt,large:Ydt,content:Kdt},Yn=({title:e,subtitle:t,titleAttributes:n,className:r,children:i,titleContainerClassName:a,contentClassName:o,customCssTitleClass:s,hasLargeTitle:l,aboveTitle:u,afterTitle:c,...d})=>F("div",{className:[s0.container,r].join(" "),...d,children:[F("div",{className:[s0.titles,a].join(" "),children:[u,S("h1",{className:[s0.title,l?s0.large:"",s].join(" "),...n,children:e}),t?S("p",{className:s0.subtitle,children:t}):"",c]}),S("div",{className:[s0.content,o].join(" "),children:i})]}),Qdt=({className:e,...t})=>S("h1",{className:[e,s0.heading].join(" "),...t}),Zdt="_hiddenInput_12316_29",Xdt="_label_12316_39",eft="_check_12316_45",tft="_container_12316_49",ON={hiddenInput:Zdt,label:Xdt,check:eft,container:tft},nft="_container_1hpbx_29",rft="_checked_1hpbx_84",ere={container:nft,checked:rft};function ift({onChange:e,checked:t,disabled:n,forwardedRef:r,className:i,...a}){const o=[i,ere.container];function s(l){e&&e(l.target.checked)}return t&&o.push(ere.checked),F("span",{className:o.join(" "),"data-disabled":n,children:[S(kN,{}),S("input",{type:"checkbox",onChange:s,checked:t,disabled:n,ref:r,...a})]})}const M1e=N.forwardRef((e,t)=>S(ift,{forwardedRef:t,...e}));function UH(...e){let t=0,n,r="";const i=e.length;for(;t{function o(s){r(e.find(l=>l.value===s.target.value))}return F("div",{className:[i,tD.container].join(" "),children:[S($1,{className:tD.icon}),F("select",{className:tD.select,required:!0,onChange:o,...a,value:t,children:[S("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:n}),e.map(s=>S("option",{value:s.value,children:s.label},s.value))]})]})});VH.displayName="Select";const z1=N.memo(({className:e})=>{const{timezoneName:t,setTimezoneName:n}=N.useContext(Ds),r=N.useMemo(function(){return function(i){n(i.value)}},[n]);return F(Ze,{className:e,children:[S(Wt,{children:"Timezone"}),S(VH,{placeholder:"Choose timezone to schedule...",values:dBe,value:t,onChange:r})]})});z1.displayName="TimezonePane";var MP={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(k){return typeof k=="object"&&!("toString"in k)?Object.prototype.toString.call(k).slice(8,-1):k}var r=typeof process=="object"&&!0;function i(k,A){if(!k)throw r?new Error("Invariant failed"):new Error(A())}t.invariant=i;var a=Object.prototype.hasOwnProperty,o=Array.prototype.splice,s=Object.prototype.toString;function l(k){return s.call(k).slice(8,-1)}var u=Object.assign||function(k,A){return c(A).forEach(function(D){a.call(A,D)&&(k[D]=A[D])}),k},c=typeof Object.getOwnPropertySymbols=="function"?function(k){return Object.keys(k).concat(Object.getOwnPropertySymbols(k))}:function(k){return Object.keys(k)};function d(k){return Array.isArray(k)?u(k.constructor(k.length),k):l(k)==="Map"?new Map(k):l(k)==="Set"?new Set(k):k&&typeof k=="object"?u(Object.create(Object.getPrototypeOf(k)),k):k}var f=function(){function k(){this.commands=u({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(A,D){return A===D},this.update.newContext=function(){return new k().update}}return Object.defineProperty(k.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(A){this.update.isEquals=A},enumerable:!0,configurable:!0}),k.prototype.extend=function(A,D){this.commands[A]=D},k.prototype.update=function(A,D){var R=this,B=typeof D=="function"?{$apply:D}:D;Array.isArray(A)&&Array.isArray(B)||i(!Array.isArray(B),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),i(typeof B=="object"&&B!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(R.commands).join(", ")+".")});var H=A;return c(B).forEach(function(L){if(a.call(R.commands,L)){var V=A===H;H=R.commands[L](B[L],H,B,A),V&&R.isEquals(H,A)&&(H=A)}else{var U=l(A)==="Map"?R.update(A.get(L),B[L]):R.update(A[L],B[L]),J=l(H)==="Map"?H.get(L):H[L];(!R.isEquals(U,J)||typeof U>"u"&&!a.call(A,L))&&(H===A&&(H=d(A)),l(H)==="Map"?H.set(L,U):H[L]=U)}}),H},k}();t.Context=f;var p={$push:function(k,A,D){return h(A,D,"$push"),k.length?A.concat(k):A},$unshift:function(k,A,D){return h(A,D,"$unshift"),k.length?k.concat(A):A},$splice:function(k,A,D,R){return v(A,D),k.forEach(function(B){y(B),A===R&&B.length&&(A=d(R)),o.apply(A,B)}),A},$set:function(k,A,D){return T(D),k},$toggle:function(k,A){g(k,"$toggle");var D=k.length?d(A):A;return k.forEach(function(R){D[R]=!A[R]}),D},$unset:function(k,A,D,R){return g(k,"$unset"),k.forEach(function(B){Object.hasOwnProperty.call(A,B)&&(A===R&&(A=d(R)),delete A[B])}),A},$add:function(k,A,D,R){return E(A,"$add"),g(k,"$add"),l(A)==="Map"?k.forEach(function(B){var H=B[0],L=B[1];A===R&&A.get(H)!==L&&(A=d(R)),A.set(H,L)}):k.forEach(function(B){A===R&&!A.has(B)&&(A=d(R)),A.add(B)}),A},$remove:function(k,A,D,R){return E(A,"$remove"),g(k,"$remove"),k.forEach(function(B){A===R&&A.has(B)&&(A=d(R)),A.delete(B)}),A},$merge:function(k,A,D,R){return _(A,k),c(k).forEach(function(B){k[B]!==A[B]&&(A===R&&(A=d(R)),A[B]=k[B])}),A},$apply:function(k,A){return b(k),k(A)}},m=new f;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function h(k,A,D){i(Array.isArray(k),function(){return"update(): expected target of "+n(D)+" to be an array; got "+n(k)+"."}),g(A[D],D)}function g(k,A){i(Array.isArray(k),function(){return"update(): expected spec of "+n(A)+" to be an array; got "+n(k)+". Did you forget to wrap your parameter in an array?"})}function v(k,A){i(Array.isArray(k),function(){return"Expected $splice target to be an array; got "+n(k)}),y(A.$splice)}function y(k){i(Array.isArray(k),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(k)+". Did you forget to wrap your parameters in an array?"})}function b(k){i(typeof k=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(k)+"."})}function T(k){i(Object.keys(k).length===1,function(){return"Cannot have more than one key in an object with $set"})}function _(k,A){i(A&&typeof A=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(A)}),i(k&&typeof k=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(k)})}function E(k,A){var D=l(k);i(D==="Map"||D==="Set",function(){return"update(): "+n(A)+" expects a target of type Set or Map; got "+n(D)})}})(MP,MP.exports);var fft=MP.exports;const ro=ao(fft);var zH=Qb(),Ct=e=>Kb(e,zH),qH=Qb();Ct.write=e=>Kb(e,qH);var DN=Qb();Ct.onStart=e=>Kb(e,DN);var WH=Qb();Ct.onFrame=e=>Kb(e,WH);var jH=Qb();Ct.onFinish=e=>Kb(e,jH);var Jh=[];Ct.setTimeout=(e,t)=>{const n=Ct.now()+t,r=()=>{const a=Jh.findIndex(o=>o.cancel==r);~a&&Jh.splice(a,1),Sd-=~a?1:0},i={time:n,handler:e,cancel:r};return Jh.splice(R1e(n),0,i),Sd+=1,P1e(),i};var R1e=e=>~(~Jh.findIndex(t=>t.time>e)||~Jh.length);Ct.cancel=e=>{DN.delete(e),WH.delete(e),jH.delete(e),zH.delete(e),qH.delete(e)};Ct.sync=e=>{RP=!0,Ct.batchedUpdates(e),RP=!1};Ct.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Ct.onStart(n)}return r.handler=e,r.cancel=()=>{DN.delete(n),t=null},r};var GH=typeof window<"u"?window.requestAnimationFrame:()=>{};Ct.use=e=>GH=e;Ct.now=typeof performance<"u"?()=>performance.now():Date.now;Ct.batchedUpdates=e=>e();Ct.catch=console.error;Ct.frameLoop="always";Ct.advance=()=>{Ct.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):L1e()};var yd=-1,Sd=0,RP=!1;function Kb(e,t){RP?(t.delete(e),e(0)):(t.add(e),P1e())}function P1e(){yd<0&&(yd=0,Ct.frameLoop!=="demand"&&GH(F1e))}function pft(){yd=-1}function F1e(){~yd&&(GH(F1e),Ct.batchedUpdates(L1e))}function L1e(){const e=yd;yd=Ct.now();const t=R1e(yd);if(t&&(B1e(Jh.splice(0,t),n=>n.handler()),Sd-=t),!Sd){pft();return}DN.flush(),zH.flush(e?Math.min(64,yd-e):16.667),WH.flush(),qH.flush(),jH.flush()}function Qb(){let e=new Set,t=e;return{add(n){Sd+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sd-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sd-=t.size,B1e(t,r=>r(n)&&e.add(r)),Sd+=e.size,t=e)}}}function B1e(e,t){e.forEach(n=>{try{t(n)}catch(r){Ct.catch(r)}})}var mft=Object.defineProperty,hft=(e,t)=>{for(var n in t)mft(e,n,{get:t[n],enumerable:!0})},Tl={};hft(Tl,{assign:()=>vft,colors:()=>Rd,createStringInterpolator:()=>YH,skipAnimation:()=>U1e,to:()=>$1e,willAdvance:()=>KH});function PP(){}var gft=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we={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 qu(e,t){if(we.arr(e)){if(!we.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function yu(e,t,n){if(we.arr(e)){for(let r=0;rwe.und(e)?[]:we.arr(e)?e:[e];function u2(e,t){if(e.size){const n=Array.from(e);e.clear(),Ot(n,t)}}var by=(e,...t)=>u2(e,n=>n(...t)),JH=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),YH,$1e,Rd=null,U1e=!1,KH=PP,vft=e=>{e.to&&($1e=e.to),e.now&&(Ct.now=e.now),e.colors!==void 0&&(Rd=e.colors),e.skipAnimation!=null&&(U1e=e.skipAnimation),e.createStringInterpolator&&(YH=e.createStringInterpolator),e.requestAnimationFrame&&Ct.use(e.requestAnimationFrame),e.batchedUpdates&&(Ct.batchedUpdates=e.batchedUpdates),e.willAdvance&&(KH=e.willAdvance),e.frameLoop&&(Ct.frameLoop=e.frameLoop)},c2=new Set,cs=[],nD=[],p6=0,xN={get idle(){return!c2.size&&!cs.length},start(e){p6>e.priority?(c2.add(e),Ct.onStart(yft)):(H1e(e),Ct(FP))},advance:FP,sort(e){if(p6)Ct.onFrame(()=>xN.sort(e));else{const t=cs.indexOf(e);~t&&(cs.splice(t,1),V1e(e))}},clear(){cs=[],c2.clear()}};function yft(){c2.forEach(H1e),c2.clear(),Ct(FP)}function H1e(e){cs.includes(e)||V1e(e)}function V1e(e){cs.splice(Sft(cs,t=>t.priority>e.priority),0,e)}function FP(e){const t=nD;for(let n=0;n0}function Sft(e,t){const n=e.findIndex(t);return n<0?e.length:n}var bft=(e,t,n)=>Math.min(Math.max(n,e),t),Tft={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},sl="[-+]?\\d*\\.?\\d+",m6=sl+"%";function MN(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var _ft=new RegExp("rgb"+MN(sl,sl,sl)),Eft=new RegExp("rgba"+MN(sl,sl,sl,sl)),wft=new RegExp("hsl"+MN(sl,m6,m6)),kft=new RegExp("hsla"+MN(sl,m6,m6,sl)),Aft=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cft=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nft=/^#([0-9a-fA-F]{6})$/,Ift=/^#([0-9a-fA-F]{8})$/;function Oft(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Nft.exec(e))?parseInt(t[1]+"ff",16)>>>0:Rd&&Rd[e]!==void 0?Rd[e]:(t=_ft.exec(e))?(wm(t[1])<<24|wm(t[2])<<16|wm(t[3])<<8|255)>>>0:(t=Eft.exec(e))?(wm(t[1])<<24|wm(t[2])<<16|wm(t[3])<<8|rre(t[4]))>>>0:(t=Aft.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ift.exec(e))?parseInt(t[1],16)>>>0:(t=Cft.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wft.exec(e))?(tre(nre(t[1]),T_(t[2]),T_(t[3]))|255)>>>0:(t=kft.exec(e))?(tre(nre(t[1]),T_(t[2]),T_(t[3]))|rre(t[4]))>>>0:null}function rD(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tre(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=rD(i,r,e+1/3),o=rD(i,r,e),s=rD(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function wm(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function nre(e){return(parseFloat(e)%360+360)%360/360}function rre(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function T_(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ire(e){let t=Oft(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var _S=(e,t,n)=>{if(we.fun(e))return e;if(we.arr(e))return _S({range:e,output:t,extrapolate:n});if(we.str(e.output[0]))return YH(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=xft(u,a);return Dft(u,a[c],a[c+1],i[c],i[c+1],l,o,s,r.map)}};function Dft(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=a(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function xft(e,t){for(var n=1;n=e);++n);return n-1}var Mft=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return bft(0,1,i/e)},h6=1.70158,__=h6*1.525,are=h6+1,ore=2*Math.PI/3,sre=2*Math.PI/4.5,E_=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rft={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=>are*e*e*e-h6*e*e,easeOutBack:e=>1+are*Math.pow(e-1,3)+h6*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((__+1)*2*e-__)/2:(Math.pow(2*e-2,2)*((__+1)*(e*2-2)+__)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ore),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ore)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*sre))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*sre)/2+1,easeInBounce:e=>1-E_(1-e),easeOutBounce:E_,easeInOutBounce:e=>e<.5?(1-E_(1-2*e))/2:(1+E_(2*e-1))/2,steps:Mft},ES=Symbol.for("FluidValue.get"),jg=Symbol.for("FluidValue.observers"),as=e=>!!(e&&e[ES]),Ha=e=>e&&e[ES]?e[ES]():e,lre=e=>e[jg]||null;function Pft(e,t){e.eventObserved?e.eventObserved(t):e(t)}function wS(e,t){const n=e[jg];n&&n.forEach(r=>{Pft(r,t)})}var z1e=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Fft(this,e)}},Fft=(e,t)=>q1e(e,ES,t);function q1(e,t){if(e[ES]){let n=e[jg];n||q1e(e,jg,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function kS(e,t){const n=e[jg];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[jg]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var q1e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ow=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Lft=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ure=new RegExp(`(${Ow.source})(%|[a-z]+)`,"i"),Bft=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,RN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,W1e=e=>{const[t,n]=$ft(e);if(!t||JH())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&RN.test(n))return W1e(n);if(n)return n}return e},$ft=e=>{const t=RN.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},iD,Uft=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,j1e=e=>{iD||(iD=Rd?new RegExp(`(${Object.keys(Rd).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Ha(a).replace(RN,W1e).replace(Lft,ire).replace(iD,ire)),n=t.map(a=>a.match(Ow).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>_S({...e,output:a}));return a=>{var l;const o=!ure.test(t[0])&&((l=t.find(u=>ure.test(u)))==null?void 0:l.replace(Ow,""));let s=0;return t[0].replace(Ow,()=>`${i[s++](a)}${o||""}`).replace(Bft,Uft)}},QH="react-spring: ",G1e=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${QH}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Hft=G1e(console.warn);function Vft(){Hft(`${QH}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var zft=G1e(console.warn);function qft(){zft(`${QH}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`)}function PN(e){return we.str(e)&&(e[0]=="#"||/\d/.test(e)||!JH()&&RN.test(e)||e in(Rd||{}))}var _h=JH()?N.useEffect:N.useLayoutEffect,Wft=()=>{const e=N.useRef(!1);return _h(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function J1e(){const e=N.useState()[1],t=Wft();return()=>{t.current&&e(Math.random())}}function jft(e,t){const[n]=N.useState(()=>({inputs:t,result:e()})),r=N.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&Gft(t,a.inputs)||(a={inputs:t,result:e()}):a=n,N.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function Gft(e,t){if(e.length!==t.length)return!1;for(let n=0;nN.useEffect(e,Jft),Jft=[];function Yft(e){const t=N.useRef();return N.useEffect(()=>{t.current=e}),t.current}var AS=Symbol.for("Animated:node"),Kft=e=>!!e&&e[AS]===e,$l=e=>e&&e[AS],ZH=(e,t)=>gft(e,AS,t),FN=e=>e&&e[AS]&&e[AS].getPayload(),K1e=class{constructor(){ZH(this,this)}getPayload(){return this.payload||[]}},Zb=class extends K1e{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,we.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Zb(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return we.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,we.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},CS=class extends Zb{constructor(e){super(0),this._string=null,this._toString=_S({output:[e,e]})}static create(e){return new CS(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(we.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=_S({output:[this.getValue(),e]})),this._value=0,super.reset()}},g6={dependencies:null},LN=class extends K1e{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return yu(this.source,(n,r)=>{Kft(n)?t[r]=n.getValue(e):as(n)?t[r]=Ha(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ot(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return yu(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){g6.dependencies&&as(e)&&g6.dependencies.add(e);const t=FN(e);t&&Ot(t,n=>this.add(n))}},Q1e=class extends LN{constructor(e){super(e)}static create(e){return new Q1e(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Qft)),!0)}};function Qft(e){return(PN(e)?CS:Zb).create(e)}function LP(e){const t=$l(e);return t?t.constructor:we.arr(e)?Q1e:PN(e)?CS:Zb}var cre=(e,t)=>{const n=!we.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((r,i)=>{const a=N.useRef(null),o=n&&N.useCallback(m=>{a.current=e0t(i,m)},[i]),[s,l]=Xft(r,t),u=J1e(),c=()=>{const m=a.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&u()},d=new Zft(c,l),f=N.useRef();_h(()=>(f.current=d,Ot(l,m=>q1(m,d)),()=>{f.current&&(Ot(f.current.deps,m=>kS(m,f.current)),Ct.cancel(f.current.update))})),N.useEffect(c,[]),Y1e(()=>()=>{const m=f.current;Ot(m.deps,h=>kS(h,m))});const p=t.getComponentProps(s.getValue());return N.createElement(e,{...p,ref:o})})},Zft=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ct.write(this.update)}};function Xft(e,t){const n=new Set;return g6.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new LN(e),g6.dependencies=null,[e,n]}function e0t(e,t){return e&&(we.fun(e)?e(t):e.current=t),t}var dre=Symbol.for("AnimatedComponent"),t0t=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new LN(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=fre(o)||"Anonymous";return we.str(o)?o=a[o]||(a[o]=cre(o,i)):o=o[dre]||(o[dre]=cre(o,i)),o.displayName=`Animated(${s})`,o};return yu(e,(o,s)=>{we.arr(e)&&(s=fre(o)),a[s]=a(o)}),{animated:a}},fre=e=>we.str(e)?e:e&&we.str(e.displayName)?e.displayName:we.fun(e)&&e.name||null;function Va(e,...t){return we.fun(e)?e(...t):e}var d2=(e,t)=>e===!0||!!(t&&e&&(we.fun(e)?e(t):pa(e).includes(t))),Z1e=(e,t)=>we.obj(e)?t&&e[t]:e,X1e=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,n0t=e=>e,XH=(e,t=n0t)=>{let n=r0t;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);we.und(a)||(r[i]=a)}return r},r0t=["config","onProps","onStart","onChange","onPause","onResume","onRest"],i0t={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,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function a0t(e){const t={};let n=0;if(yu(e,(r,i)=>{i0t[i]||(t[i]=r,n++)}),n)return t}function eV(e){const t=a0t(e);if(t){const n={to:t};return yu(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function NS(e){return e=Ha(e),we.arr(e)?e.map(NS):PN(e)?Tl.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function o0t(e){for(const t in e)return!0;return!1}function BP(e){return we.fun(e)||we.arr(e)&&we.obj(e[0])}function pre(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function s0t(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var l0t={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}},$P={...l0t.default,mass:1,damping:1,easing:Rft.linear,clamp:!1},u0t=class{constructor(){this.velocity=0,Object.assign(this,$P)}};function c0t(e,t,n){n&&(n={...n},mre(n,t),t={...n,...t}),mre(e,t),Object.assign(e,t);for(const o in $P)e[o]==null&&(e[o]=$P[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return we.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function mre(e,t){if(!we.und(t.decay))e.duration=void 0;else{const n=!we.und(t.tension)||!we.und(t.friction);(n||!we.und(t.frequency)||!we.und(t.damping)||!we.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var hre=[],d0t=class{constructor(){this.changed=!1,this.values=hre,this.toValues=null,this.fromValues=hre,this.config=new u0t,this.immediate=!1}};function eve(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,c=d2(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{we.und(n.pause)||(i.paused=d2(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=i.paused||d2(m,t)),l=Va(n.delay||0,t),m?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-Ct.now()}function f(){l>0&&!Tl.skipAnimation?(i.delayed=!0,u=Ct.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(u)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(m){s(m)}}})}var tV=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Yh(e.get()):t.every(n=>n.noop)?tve(e.get()):Zs(e.get(),t.every(n=>n.finished)),tve=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Zs=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Yh=e=>({value:e,cancelled:!0,finished:!1});function nve(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=XH(t,(g,v)=>v==="onRest"?void 0:g);let c,d;const f=new Promise((g,v)=>(c=g,d=v)),p=g=>{const v=i<=(n.cancelId||0)&&Yh(r)||i!==n.asyncId&&Zs(r,!1);if(v)throw g.result=v,d(g),g},m=(g,v)=>{const y=new gre,b=new vre;return(async()=>{if(Tl.skipAnimation)throw IS(n),b.result=Zs(r,!1),d(b),b;p(y);const T=we.obj(g)?{...g}:{...v,to:g};T.parentId=i,yu(u,(E,k)=>{we.und(T[k])&&(T[k]=E)});const _=await r.start(T);return p(y),n.paused&&await new Promise(E=>{n.resumeQueue.add(E)}),_})()};let h;if(Tl.skipAnimation)return IS(n),Zs(r,!1);try{let g;we.arr(e)?g=(async v=>{for(const y of v)await m(y)})(e):g=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([g.then(c),f]),h=Zs(r.get(),!0,!1)}catch(g){if(g instanceof gre)h=g.result;else if(g instanceof vre)h=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return we.fun(o)&&Ct.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function IS(e,t){u2(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var gre=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.")}},vre=class extends Error{constructor(){super("SkipAnimationSignal")}},UP=e=>e instanceof nV,f0t=1,nV=class extends z1e{constructor(){super(...arguments),this.id=f0t++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=$l(this);return e&&e.getValue()}to(...e){return Tl.to(this,e)}interpolate(...e){return Vft(),Tl.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){wS(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||xN.sort(this),wS(this,{type:"priority",parent:this,priority:e})}},Mp=Symbol.for("SpringPhase"),rve=1,HP=2,VP=4,aD=e=>(e[Mp]&rve)>0,Dc=e=>(e[Mp]&HP)>0,Lv=e=>(e[Mp]&VP)>0,yre=(e,t)=>t?e[Mp]|=HP|rve:e[Mp]&=~HP,Sre=(e,t)=>t?e[Mp]|=VP:e[Mp]&=~VP,p0t=class extends nV{constructor(e,t){if(super(),this.animation=new d0t,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!we.und(e)||!we.und(t)){const n=we.obj(e)?{...e}:{...t,from:e};we.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Dc(this)||this._state.asyncTo)||Lv(this)}get goal(){return Ha(this.animation.to)}get velocity(){const e=$l(this);return e instanceof Zb?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return aD(this)}get isAnimating(){return Dc(this)}get isPaused(){return Lv(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=FN(r.to);!o&&as(r.to)&&(i=pa(Ha(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==CS?1:o?o[c].lastPosition:i[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,a.tension<=0){u.done=!0;return}let m=u.elapsedTime+=e;const h=r.fromValues[c],g=u.v0!=null?u.v0:u.v0=we.arr(a.velocity)?a.velocity[c]:a.velocity;let v;const y=a.precision||(h==d?.005:Math.min(1,Math.abs(d-h)*.001));if(we.und(a.duration))if(a.decay){const b=a.decay===!0?.998:a.decay,T=Math.exp(-(1-b)*m);p=h+g/(1-b)*(1-T),f=Math.abs(u.lastPosition-p)<=y,v=g*T}else{v=u.lastVelocity==null?g:u.lastVelocity;const b=a.restVelocity||y/10,T=a.clamp?0:a.bounce,_=!we.und(T),E=h==d?u.v0>0:hb,!(!k&&(f=Math.abs(d-p)<=y,f)));++B){_&&(A=p==d||p>d==E,A&&(v=-v*T,p=d));const H=-a.tension*1e-6*(p-d),L=-a.friction*.001*v,V=(H+L)/a.mass;v=v+V*D,p=p+v*D}}else{let b=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,u.durationProgress>0&&(u.elapsedTime=a.duration*u.durationProgress,m=u.elapsedTime+=e)),b=(a.progress||0)+m/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),p=h+a.easing(b)*(d-h),v=(p-u.lastPosition)/e,f=b==1}u.lastVelocity=v,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,a.round)&&(n=!0)});const s=$l(this),l=s.getValue();if(t){const u=Ha(r.to);(l!==u||n)&&!a.decay?(s.setValue(u),this._onChange(u)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ct.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Dc(this)){const{to:e,config:t}=this.animation;Ct.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return we.und(e)?(n=this.queue||[],this.queue=[]):n=[we.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>tV(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),IS(this._state,e&&this._lastCallId),Ct.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=we.obj(n)?n[t]:n,(n==null||BP(n))&&(n=void 0),r=we.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return aD(this)||(e.reverse&&([n,r]=[r,n]),r=Ha(r),we.und(r)?$l(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,XH(e,(o,s)=>/^on/.test(s)?Z1e(o,n):o)),Tre(this,e,"onProps"),$v(this,"onProps",e,this);const i=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 a=this._state;return eve(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Lv(this)||(Sre(this,!0),by(a.pauseQueue),$v(this,"onPause",Zs(this,Bv(this,this.animation.to)),this))},resume:()=>{Lv(this)&&(Sre(this,!1),Dc(this)&&this._resume(),by(a.resumeQueue),$v(this,"onResume",Zs(this,Bv(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ive(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Yh(this));const r=!we.und(e.to),i=!we.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Yh(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||we.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!qu(d,u);f&&(s.from=d),d=Ha(d);const p=!qu(c,l);p&&this._focus(c);const m=BP(t.to),{config:h}=s,{decay:g,velocity:v}=h;(r||i)&&(h.velocity=0),t.config&&!m&&c0t(h,Va(t.config,a),t.config!==o.config?Va(o.config,a):void 0);let y=$l(this);if(!y||we.und(c))return n(Zs(this,!0));const b=we.und(t.reset)?i&&!t.default:!we.und(d)&&d2(t.reset,a),T=b?d:this.get(),_=NS(c),E=we.num(_)||we.arr(_)||PN(_),k=!m&&(!E||d2(o.immediate||t.immediate,a));if(p){const B=LP(c);if(B!==y.constructor)if(k)y=this._set(_);else throw Error(`Cannot animate between ${y.constructor.name} and ${B.name}, as the "to" prop suggests`)}const A=y.constructor;let D=as(c),R=!1;if(!D){const B=b||!aD(this)&&f;(p||B)&&(R=qu(NS(T),_),D=!R),(!qu(s.immediate,k)&&!k||!qu(h.decay,g)||!qu(h.velocity,v))&&(D=!0)}if(R&&Dc(this)&&(s.changed&&!b?D=!0:D||this._stop(l)),!m&&((D||as(l))&&(s.values=y.getPayload(),s.toValues=as(c)?null:A==CS?[1]:pa(_)),s.immediate!=k&&(s.immediate=k,!k&&!b&&this._set(l)),D)){const{onRest:B}=s;Ot(m0t,L=>Tre(this,t,L));const H=Zs(this,Bv(this,l));by(this._pendingCalls,H),this._pendingCalls.add(n),s.changed&&Ct.batchedUpdates(()=>{var L;s.changed=!b,B==null||B(H,this),b?Va(o.onRest,H):(L=s.onStart)==null||L.call(s,H,this)})}b&&this._set(T),m?n(nve(t.to,t,this._state,this)):D?this._start():Dc(this)&&!p?this._pendingCalls.add(n):n(tve(T))}_focus(e){const t=this.animation;e!==t.to&&(lre(this)&&this._detach(),t.to=e,lre(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;as(t)&&(q1(t,this),UP(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;as(e)&&kS(e,this)}_set(e,t=!0){const n=Ha(e);if(!we.und(n)){const r=$l(this);if(!r||!qu(n,r.getValue())){const i=LP(n);!r||r.constructor!=i?ZH(this,i.create(n)):r.setValue(n),r&&Ct.batchedUpdates(()=>{this._onChange(n,t)})}}return $l(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,$v(this,"onStart",Zs(this,Bv(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Va(this.animation.onChange,e,this)),Va(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;$l(this).reset(Ha(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Dc(this)||(yre(this,!0),Lv(this)||this._resume())}_resume(){Tl.skipAnimation?this.finish():xN.start(this)}_stop(e,t){if(Dc(this)){yre(this,!1);const n=this.animation;Ot(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),wS(this,{type:"idle",parent:this});const r=t?Yh(this.get()):Zs(this.get(),Bv(this,e??n.to));by(this._pendingCalls,r),n.changed&&(n.changed=!1,$v(this,"onRest",r,this))}}};function Bv(e,t){const n=NS(t),r=NS(e.get());return qu(r,n)}function ive(e,t=e.loop,n=e.to){const r=Va(t);if(r){const i=r!==!0&&eV(r),a=(i||e).reverse,o=!i||i.reset;return v6({...e,loop:t,default:!1,pause:void 0,to:!a||BP(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function v6(e){const{to:t,from:n}=e=eV(e),r=new Set;return we.obj(t)&&bre(t,r),we.obj(n)&&bre(n,r),e.keys=r.size?Array.from(r):null,e}function bre(e,t){yu(e,(n,r)=>n!=null&&t.add(r))}var m0t=["onStart","onRest","onChange","onPause","onResume"];function Tre(e,t,n){e.animation[n]=t[n]!==X1e(t,n)?Z1e(t[n],e.key):void 0}function $v(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var h0t=["onStart","onChange","onRest"],g0t=1,v0t=class{constructor(e,t){this.id=g0t++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];we.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(v6(e)),this}start(e){let{queue:t}=this;return e?t=pa(e).map(v6):this.queue=[],this._flush?this._flush(this,t):(lve(this,t),y0t(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ot(pa(t),r=>n[r].stop(!!e))}else IS(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(we.und(e))this.start({pause:!0});else{const t=this.springs;Ot(pa(e),n=>t[n].pause())}return this}resume(e){if(we.und(e))this.start({pause:!1});else{const t=this.springs;Ot(pa(e),n=>t[n].resume())}return this}each(e){yu(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,u2(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&u2(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,u2(n,([s,l])=>{l.value=o,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Ct.onFrame(this._onFrame)}};function y0t(e,t){return Promise.all(t.map(n=>ave(e,n))).then(n=>tV(e,n))}async function ave(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=we.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const c=we.arr(i)||we.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ot(h0t,h=>{const g=t[h];if(we.fun(g)){const v=e._events[h];t[h]=({finished:y,cancelled:b})=>{const T=v.get(g);T?(y||(T.finished=!1),b&&(T.cancelled=!0)):v.set(g,{value:null,finished:y||!1,cancelled:b||!1})},u&&(u[h]=t[h])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,by(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),p=t.cancel===!0||X1e(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push(eve(++e._lastAsyncId,{props:t,state:d,actions:{pause:PP,resume:PP,start(h,g){p?(IS(d,e._lastAsyncId),g(Yh(e))):(h.onRest=s,g(nve(c,h,d,e)))}}})),d.paused&&await new Promise(h=>{d.resumeQueue.add(h)});const m=tV(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){const h=ive(t,o,i);if(h)return lve(e,[h]),ave(e,h,!0)}return l&&Ct.batchedUpdates(()=>l(m,e,e.item)),m}function S0t(e,t){const n={...e.springs};return t&&Ot(pa(t),r=>{we.und(r.keys)&&(r=v6(r)),we.obj(r.to)||(r={...r,to:void 0}),sve(n,r,i=>ove(i))}),b0t(e,n),n}function b0t(e,t){yu(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,q1(n,e))})}function ove(e,t){const n=new p0t;return n.key=e,t&&q1(n,t),n}function sve(e,t,n){t.keys&&Ot(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function lve(e,t){Ot(t,n=>{sve(e.springs,n,r=>ove(r,e))})}var BN=({children:e,...t})=>{const n=N.useContext(y6),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=jft(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=y6;return N.createElement(a,{value:t},e)},y6=T0t(BN,{});BN.Provider=y6.Provider;BN.Consumer=y6.Consumer;function T0t(e,t){return Object.assign(e,N.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _0t=()=>{const e=[],t=function(r){qft();const i=[];return Ot(e,(a,o)=>{if(we.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Ot(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ot(e,r=>r.resume(...arguments)),this},t.set=function(r){Ot(e,(i,a)=>{const o=we.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Ot(e,(a,o)=>{if(we.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return Ot(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ot(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return we.fun(r)?r(a,i):r};return t._getProps=n,t};function E0t(e,t,n){const r=we.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=N.useMemo(()=>r||arguments.length==3?_0t():void 0,[]),p=pa(e),m=[],h=N.useRef(null),g=i?null:h.current;_h(()=>{h.current=m}),Y1e(()=>(Ot(m,V=>{f==null||f.add(V.ctrl),V.ctrl.ref=f}),()=>{Ot(h.current,V=>{V.expired&&clearTimeout(V.expirationId),pre(V.ctrl,f),V.ctrl.stop(!0)})}));const v=k0t(p,r?r():t,g),y=i&&h.current||[];_h(()=>Ot(y,({ctrl:V,item:U,key:J})=>{pre(V,f),Va(u,U,J)}));const b=[];if(g&&Ot(g,(V,U)=>{V.expired?(clearTimeout(V.expirationId),y.push(V)):(U=b[U]=v.indexOf(V.key),~U&&(m[U]=V))}),Ot(p,(V,U)=>{m[U]||(m[U]={key:v[U],item:V,phase:"mount",ctrl:new v0t},m[U].ctrl.item=V)}),b.length){let V=-1;const{leave:U}=r?r():t;Ot(b,(J,re)=>{const X=g[re];~J?(V=m.indexOf(X),m[V]={...X,item:p[J]}):U&&m.splice(++V,0,X)})}we.fun(a)&&m.sort((V,U)=>a(V.item,U.item));let T=-o;const _=J1e(),E=XH(t),k=new Map,A=N.useRef(new Map),D=N.useRef(!1);Ot(m,(V,U)=>{const J=V.key,re=V.phase,X=r?r():t;let j,te;const M=Va(X.delay||0,J);if(re=="mount")j=X.enter,te="enter";else{const he=v.indexOf(J)<0;if(re!="leave")if(he)j=X.leave,te="leave";else if(j=X.update)te="update";else return;else if(!he)j=X.enter,te="enter";else return}if(j=Va(j,V.item,U),j=we.obj(j)?eV(j):{to:j},!j.config){const he=d||E.config;j.config=Va(he,V.item,U,te)}T+=o;const W={...E,delay:M+T,ref:c,immediate:X.immediate,reset:!1,...j};if(te=="enter"&&we.und(W.from)){const he=r?r():t,Ce=we.und(he.initial)||g?he.from:he.initial;W.from=Va(Ce,V.item,U)}const{onResolve:ce}=W;W.onResolve=he=>{Va(ce,he);const Ce=h.current,fe=Ce.find(ge=>ge.key===J);if(fe&&!(he.cancelled&&fe.phase!="update")&&fe.ctrl.idle){const ge=Ce.every(de=>de.ctrl.idle);if(fe.phase=="leave"){const de=Va(s,fe.item);if(de!==!1){const Re=de===!0?0:de;if(fe.expired=!0,!ge&&Re>0){Re<=2147483647&&(fe.expirationId=setTimeout(_,Re));return}}}ge&&Ce.some(de=>de.expired)&&(A.current.delete(fe),l&&(D.current=!0),_())}};const ue=S0t(V.ctrl,W);te==="leave"&&l?A.current.set(V,{phase:te,springs:ue,payload:W}):k.set(V,{phase:te,springs:ue,payload:W})});const R=N.useContext(BN),B=Yft(R),H=R!==B&&o0t(R);_h(()=>{H&&Ot(m,V=>{V.ctrl.start({default:R})})},[R]),Ot(k,(V,U)=>{if(A.current.size){const J=m.findIndex(re=>re.key===U.key);m.splice(J,1)}}),_h(()=>{Ot(A.current.size?A.current:k,({phase:V,payload:U},J)=>{const{ctrl:re}=J;J.phase=V,f==null||f.add(re),H&&V=="enter"&&re.start({default:R}),U&&(s0t(re,U.ref),(re.ref||f)&&!D.current?re.update(U):(re.start(U),D.current&&(D.current=!1)))})},i?void 0:n);const L=V=>N.createElement(N.Fragment,null,m.map((U,J)=>{const{springs:re}=k.get(U)||U.ctrl,X=V({...re},U.item,U,J);return X&&X.type?N.createElement(X.type,{...X.props,key:we.str(U.key)||we.num(U.key)?U.key:U.ctrl.id,ref:X.ref}):X}));return f?[L,f]:L}var w0t=1;function k0t(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):w0t++})}return we.und(n)?e:we.fun(n)?e.map(n):pa(n)}var A0t=class extends nV{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_S(...t);const n=this._get(),r=LP(n);ZH(this,r.create(n))}advance(e){const t=this._get(),n=this.get();qu(t,n)||($l(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&_re(this._active)&&oD(this)}_get(){const e=we.arr(this.source)?this.source.map(Ha):pa(Ha(this.source));return this.calc(...e)}_start(){this.idle&&!_re(this._active)&&(this.idle=!1,Ot(FN(this),e=>{e.done=!1}),Tl.skipAnimation?(Ct.batchedUpdates(()=>this.advance()),oD(this)):xN.start(this))}_attach(){let e=1;Ot(pa(this.source),t=>{as(t)&&q1(t,this),UP(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ot(pa(this.source),e=>{as(e)&&kS(e,this)}),this._active.clear(),oD(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=pa(this.source).reduce((t,n)=>Math.max(t,(UP(n)?n.priority:0)+1),0))}};function C0t(e){return e.idle!==!1}function _re(e){return!e.size||Array.from(e).every(C0t)}function oD(e){e.idle||(e.idle=!0,Ot(FN(e),t=>{t.done=!0}),wS(e,{type:"idle",parent:e}))}Tl.assign({createStringInterpolator:j1e,to:(e,t)=>new A0t(e,t)});var uve=/^--/;function N0t(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!uve.test(e)&&!(f2.hasOwnProperty(e)&&f2[e])?t+"px":(""+t).trim()}var Ere={};function I0t(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Ere[d]||(Ere[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const f=N0t(d,r[d]);uve.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),a!==void 0&&(e.scrollTop=a),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var f2={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},O0t=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),D0t=["Webkit","Ms","Moz","O"];f2=Object.keys(f2).reduce((e,t)=>(D0t.forEach(n=>e[O0t(n,t)]=e[t]),e),f2);var x0t=/^(matrix|translate|scale|rotate|skew)/,M0t=/^(translate)/,R0t=/^(rotate|skew)/,sD=(e,t)=>we.num(e)&&e!==0?e+t:e,Dw=(e,t)=>we.arr(e)?e.every(n=>Dw(n,t)):we.num(e)?e===t:parseFloat(e)===t,P0t=class extends LN{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>sD(s,"px")).join(",")})`,Dw(o,0)])),yu(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(x0t.test(s)){if(delete r[s],we.und(o))return;const l=M0t.test(s)?"px":R0t.test(s)?"deg":"";i.push(pa(o)),a.push(s==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${sD(f,l)})`,Dw(f,0)]:u=>[`${s}(${u.map(c=>sD(c,l)).join(",")})`,Dw(u,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new F0t(i,a)),super(r)}},F0t=class extends z1e{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ot(this.inputs,(n,r)=>{const i=Ha(n[0]),[a,o]=this.transforms[r](we.arr(i)?i:n.map(Ha));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ot(this.inputs,t=>Ot(t,n=>as(n)&&q1(n,this)))}observerRemoved(e){e==0&&Ot(this.inputs,t=>Ot(t,n=>as(n)&&kS(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),wS(this,e)}},L0t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Tl.assign({batchedUpdates:Jp.unstable_batchedUpdates,createStringInterpolator:j1e,colors:Tft});var B0t=t0t(L0t,{applyAnimatedValues:I0t,createAnimatedStyle:e=>new P0t(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),$0t=B0t.animated;let w_;const U0t=new Uint8Array(16);function H0t(){if(!w_&&(w_=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w_(U0t)}const hi=[];for(let e=0;e<256;++e)hi.push((e+256).toString(16).slice(1));function V0t(e,t=0){return(hi[e[t+0]]+hi[e[t+1]]+hi[e[t+2]]+hi[e[t+3]]+"-"+hi[e[t+4]]+hi[e[t+5]]+"-"+hi[e[t+6]]+hi[e[t+7]]+"-"+hi[e[t+8]]+hi[e[t+9]]+"-"+hi[e[t+10]]+hi[e[t+11]]+hi[e[t+12]]+hi[e[t+13]]+hi[e[t+14]]+hi[e[t+15]]).toLowerCase()}const z0t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wre={randomUUID:z0t};function rV(e,t,n){if(wre.randomUUID&&!t&&!e)return wre.randomUUID();e=e||{};const r=e.random||(e.rng||H0t)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return V0t(r)}const q0t="_toast_1mm59_29",W0t="_button_1mm59_34",j0t="_message_1mm59_47",G0t="_heading_1mm59_51",J0t="_toasts_1mm59_59",Ty={toast:q0t,button:W0t,message:j0t,heading:G0t,toasts:J0t};var gt=(e=>(e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Success=2]="Success",e))(gt||{});const Y0t=({type:e,message:t,onDismiss:n})=>{let r,i;switch(e){case 0:r="Error",i=wt.Negative;break;case 1:r="Warning",i=wt.Warning;break;case 2:r="Success",i=wt.Positive;break}return F(Ze,{highlight:i,className:Ty.toast,onClick:n,children:[S(jt,{priority:Tt.Quaternary,className:Ty.button,onClick:n,children:S(gH,{})}),S(Wt,{className:Ty.heading,children:r}),S("p",{className:Ty.message,children:t})]})},K0t=({toastsData:e,onDismiss:t})=>{const n=Ou(),r=E0t(e,{keys:i=>i.id,from:{transform:n?"translate3d(0px, -40px, 0)":"translate3d(0px, 500px, 0)",opacity:0},enter:{transform:"translate3d(0px, 0px, 0)",opacity:1},leave:{transform:n?"translate3d(0px, -40px, 0)":"translate3d(-320px, 0px, 0)",opacity:0}});return S("div",{className:Ty.toasts,children:r((i,a,o)=>{function s(){t(a.id)}return S($0t.div,{style:i,children:S(Y0t,{type:a.type,message:a.message,onDismiss:s},a.id)},o.key)})})};var OS=(e=>(e[e.Normal=3e3]="Normal",e[e.Long=6e3]="Long",e))(OS||{});const un=N.createContext({createToast:()=>"",dismissToast:li,clearToasts:li});function cve({children:e}){const[t,n]=N.useState([]),r=N.useRef({}),i=l=>{const u=r.current[l];u&&(clearTimeout(u),delete r.current[l])},a=l=>{l&&n(u=>{const c=u.findIndex(d=>d.id===l);return c>-1?(i(l),ro(u,{$splice:[[c,1]]})):u})},o=(l,u,c)=>{const d=rV();return n(f=>{if(c){const p=setTimeout(()=>a(d),typeof c=="number"?c:c.custom);r.current[d]=p}return ro(f,{$push:[{id:d,type:l,message:u}]})}),d},s=()=>{n(l=>{for(const u of l)i(u.id);return[]})};return N.useEffect(()=>()=>{for(const l of Object.values(r.current))clearTimeout(l)},[]),F(un.Provider,{value:{createToast:o,dismissToast:a,clearToasts:s},children:[e,S(K0t,{toastsData:t,onDismiss:a})]})}const Q0t="_intro_13x58_29",Z0t="_blob_13x58_42",X0t="_wordmark_13x58_50",ept="_wordmarkText_13x58_51",tpt="_middle_13x58_64",npt="_avatar_13x58_68",rpt="_title_13x58_76",ipt="_subtitle_13x58_90",apt="_buttons_13x58_104",opt="_status_13x58_111",spt="_statusAdditionalText_13x58_115",lpt="_date_13x58_120",upt="_times_13x58_124",cpt="_eventTitle_13x58_129",dpt="_eventWhen_13x58_142",fpt="_attendeesHeading_13x58_147",ppt="_attendee_13x58_147",mpt="_attendeeAvatar_13x58_163",hpt="_jobTitle_13x58_168",gpt="_links_13x58_173",vpt="_link_13x58_173",ypt="_candidateAvailabilityHeaderContainer_13x58_185",Spt="_availabilitySectionHeaderContentContainer_13x58_194",bpt="_availabilitySection_13x58_194",Tpt="_availabilitySectionHeader_13x58_194",_pt="_availabilitySectionList_13x58_220",Ept="_addDayPromptContainer_13x58_226",wpt="_availabilityRow_13x58_232",kpt="_timeRangeRow_13x58_241",Apt="_headerWithButton_13x58_257",Cpt="_selectableTimes_13x58_263",Npt="_selectableTimeAndButton_13x58_268",Ipt="_debuggableTimeslotButton_13x58_277",Opt="_available_13x58_286",Dpt="_unavailable_13x58_289",xpt="_debugTimeslotDescription_13x58_302",Mpt="_statusLabel_13x58_310",Rpt="_unavailabilityReasonContainer_13x58_342",Ppt="_unavailableReason_13x58_346",Fpt="_selectableTime_13x58_263",Lpt="_expandableContainer_13x58_365",Bpt="_collapsedExpandableContainer_13x58_368",$pt="_expandableContainerHeader_13x58_372",Upt="_expandableContainerHeading_13x58_381",Hpt="_expandCollapseToggleButton_13x58_385",Vpt="_collapseIcon_13x58_388",zpt="_collapseIconCollapsed_13x58_392",qpt="_noTimesAvailable_13x58_396",Wpt="_emailButton_13x58_402",jpt="_letterSpacingThin_13x58_406",Gpt="_directEmail_13x58_411",Jpt="_copyEmail_13x58_426",Ypt="_errorSection_13x58_432",Kpt="_errorContent_13x58_436",Qpt="_errorBackground_13x58_441",Zpt="_noVerticalPadding_13x58_450",Xpt="_candidateAvailabilityContainer_13x58_457",emt="_availabilityContainer_13x58_463",tmt="_timeRange_13x58_241",nmt="_timezone_13x58_478",rmt="_calendarContainer_13x58_481",imt="_maxContentContainer_13x58_485",amt="_availabilityDatePicker_13x58_489",omt="_fullWidth_13x58_498",smt="_noTopPadding_13x58_501",lmt="_availabilityButtonPane_13x58_504",umt="_selectableTimesContainer_13x58_513",cmt="_bookButtonContainer_13x58_521",dmt="_bookButton_13x58_521",fmt="_bookButtonPane_13x58_528",pmt="_daySelected_13x58_538",mmt="_contactInfoDetails_13x58_541",hmt="_meetingDetailsContainer_13x58_566",gmt="_confirmLabel_13x58_573",vmt="_contactDetailHint_13x58_577",ymt="_meetingDetails_13x58_566",Smt="_contactInfoForm_13x58_598",bmt="_meetingDetailsContainerMobile_13x58_605",be={intro:Q0t,blob:Z0t,wordmark:X0t,wordmarkText:ept,middle:tpt,avatar:npt,title:rpt,subtitle:ipt,buttons:apt,status:opt,statusAdditionalText:spt,date:lpt,times:upt,eventTitle:cpt,eventWhen:dpt,attendeesHeading:fpt,attendee:ppt,attendeeAvatar:mpt,jobTitle:hpt,links:gpt,link:vpt,candidateAvailabilityHeaderContainer:ypt,availabilitySectionHeaderContentContainer:Spt,availabilitySection:bpt,availabilitySectionHeader:Tpt,availabilitySectionList:_pt,addDayPromptContainer:Ept,availabilityRow:wpt,timeRangeRow:kpt,headerWithButton:Apt,selectableTimes:Cpt,selectableTimeAndButton:Npt,debuggableTimeslotButton:Ipt,available:Opt,unavailable:Dpt,debugTimeslotDescription:xpt,statusLabel:Mpt,unavailabilityReasonContainer:Rpt,unavailableReason:Ppt,selectableTime:Fpt,expandableContainer:Lpt,collapsedExpandableContainer:Bpt,expandableContainerHeader:$pt,expandableContainerHeading:Upt,expandCollapseToggleButton:Hpt,collapseIcon:Vpt,collapseIconCollapsed:zpt,noTimesAvailable:qpt,emailButton:Wpt,letterSpacingThin:jpt,directEmail:Gpt,copyEmail:Jpt,errorSection:Ypt,errorContent:Kpt,errorBackground:Qpt,noVerticalPadding:Zpt,candidateAvailabilityContainer:Xpt,availabilityContainer:emt,timeRange:tmt,timezone:nmt,calendarContainer:rmt,maxContentContainer:imt,availabilityDatePicker:amt,fullWidth:omt,noTopPadding:smt,availabilityButtonPane:lmt,selectableTimesContainer:umt,bookButtonContainer:cmt,bookButton:dmt,bookButtonPane:fmt,daySelected:pmt,contactInfoDetails:mmt,meetingDetailsContainer:hmt,confirmLabel:gmt,contactDetailHint:vmt,meetingDetails:ymt,contactInfoForm:Smt,meetingDetailsContainerMobile:bmt},Xb=()=>F(Ze,{highlight:wt.Warning,children:[S(Wt,{children:"Maintenance"}),S("p",{children:"We are currently performing maintenance on the platform, and cannot handle your request at this time. Please try again later."})]}),Tmt="_input_1wkz4_28",_mt="_greedy_1wkz4_59",Emt={input:Tmt,greedy:_mt};function Pd({onChange:e,className:t,type:n="text",...r}){function i(a){e&&e(a.target.value)}return S("input",{...r,onChange:i,type:n,className:[Emt.input,t].join(" ")})}var wmt=kmt;function kmt(e,t){if(!Array.isArray(e))throw new Error("expected an array for first argument");if(typeof t!="function")throw new Error("expected a function for second argument");for(var n={},r=0;ro?1:0}return r-i}}function Nmt(e,t){if(!Array.isArray(e))throw new Error("arr should be an array");if(t!==void 0&&typeof t!="string"&&typeof t!="function")throw new Error("iteratee should be a string or a function");if(e.length<=1)return e;var n=e.slice();return t?n.sort(Cmt(t)):n.sort(function(r,i){return r-i})}const S6=e=>S("svg",{viewBox:"0 0 448 512",fill:"none",height:"1em",...e,children:S("path",{d:"M432 256C432 269.3 421.3 280 408 280h-160v160c0 13.25-10.75 24.01-24 24.01S200 453.3 200 440v-160h-160c-13.25 0-24-10.74-24-23.99C16 242.8 26.75 232 40 232h160v-160c0-13.25 10.75-23.99 24-23.99S248 58.75 248 72v160h160C421.3 232 432 242.8 432 256z"})});S6.displayName="AddSvg";const Imt="_unstyledSelect_4k5gh_1",Omt={unstyledSelect:Imt},dve=N.forwardRef((e,t)=>{const{className:n,...r}=e;return S("select",{ref:t,className:[n,Omt.unstyledSelect].join(" "),...r})});dve.displayName="UnstyledSelect";const Dmt="_root_1p200_1",xmt="_label_1p200_14",Mmt="_chevron_1p200_18",Rmt="_select_1p200_24",k_={root:Dmt,label:xmt,chevron:Mmt,select:Rmt},fve=e=>{const{value:t,values:n,onChange:r,placeholder:i="Select one",disabled:a=!1,className:o,selectProps:s,...l}=e,u=n.find(c=>c.value===t);return F("div",{"data-part":"root","data-selected":!!(u!=null&&u.value),"data-disabled":a,className:[k_.root,o].join(" "),...l,children:[S("div",{"data-part":"label",className:k_.label,children:(u==null?void 0:u.label)??i}),S($1,{"data-part":"chevron",className:k_.chevron}),S(dve,{"data-part":"select",disabled:a,className:k_.select,onChange:c=>{r(n.find(d=>d.value===c.target.value))},...s,children:n.map(c=>S("option",{value:c.value,selected:c.value===t,children:c.label},c.value))})]})},Pmt="_timeSelect_1p9kq_1",Fmt="_daySelect_1p9kq_1",Lmt="_invalid_1p9kq_34",zP={timeSelect:Pmt,daySelect:Fmt,invalid:Lmt},Bmt=e=>S(fve,{className:zP.daySelect,...e}),kre=e=>{const{valid:t,...n}=e,r=[zP.timeSelect,t===!1?zP.invalid:void 0].filter(Boolean).join(" ");return S(fve,{className:r,...n})},Are="recaptchaScript",$mt="csp-nonce";function dm(){const[e,t]=Z.useState(!1),n=Z.useRef([]);N.useEffect(()=>{var l;if(document.getElementById(Are))return;const i=document.createElement("script"),{recaptchaPublicSiteKey:a}=va();if(!a){console.warn("No reCAPTCHA public site key available. Using dummy token."),window.grecaptcha={execute:async(u,c)=>"recaptcha_dummy_token",ready(u){u()}};return}i.id=Are,i.src=`https://www.google.com/recaptcha/api.js?render=${a}&onload=onLoadReCaptcha`;const o=(l=document.getElementById($mt))==null?void 0:l.getAttribute("content");o&&i.setAttribute("nonce",o),window.onLoadReCaptcha=()=>{window.grecaptcha.ready(()=>{for(const u of n.current)u();n.current=[]})},window.grecaptcha??(window.grecaptcha={execute:async(...u)=>await new Promise((c,d)=>{window.grecaptcha.ready(()=>{window.grecaptcha.execute(...u).then(c).catch(d)})}),ready(u){n.current.push(u)}}),document.getElementsByTagName("body")[0].appendChild(i)},[n]);async function r(i,a=!1){return t(!0),await new Promise((s,l)=>window.grecaptcha.ready(async()=>{const{recaptchaPublicSiteKey:u}=va();return await window.grecaptcha.execute(u,{action:i}).then(c=>(t(!1),s(c))).catch(c=>(Jn(c),t(!1),l(c)))}))}return{execute:r,isRecaptchaProcessing:e}}const Umt="_root_e8qsl_29",Hmt="_header_e8qsl_37",Vmt="_title_e8qsl_46",zmt="_svgInfo_e8qsl_51",qmt="_svgDown_e8qsl_57",Wmt="_cta_e8qsl_64",jmt="_body_e8qsl_72",Qf={root:Umt,header:Hmt,title:Vmt,svgInfo:zmt,svgDown:qmt,cta:Wmt,body:jmt};function pve(e){const{title:t,cta:n,body:r,isExpanded:i=!1,hideIcon:a=!1}=e,[o,s]=N.useReducer(l=>!l,!!i);return F("div",{className:Qf.root,"data-open":o,children:[F("div",{className:Qf.header,onClick:s,children:[!a&&S(Pge,{className:Qf.svgInfo}),F("div",{className:Qf.title,children:[S("span",{children:t}),n!=null&&S("span",{className:Qf.cta,children:n})]}),S($1,{className:Qf.svgDown})]}),S("div",{className:Qf.body,children:r})]})}function Co({title:e}){return Z.useEffect(()=>{const t=document.title;return()=>{document.title=t}},[]),Z.useEffect(()=>{document.title=e},[e]),null}function b6(e,t){return qe.fromJSDate(e).hasSame(qe.fromJSDate(t),"day")}function Gmt(e,t){return Vn.fromDateTimes(qe.fromJSDate(t.start),qe.fromJSDate(t.end)).contains(qe.fromJSDate(e))}const mve=()=>{const{meetingAvailabilityRequestId:e}=Cu(),{createToast:t}=N.useContext(un),[n,r]=N.useState(!1),[i,a]=N.useState(!1),{data:o,loading:s,error:l}=pr(ZXe,{variables:{meetingAvailabilityRequestId:e}}),{data:u,loading:c,error:d}=pr(WXe,{variables:{meetingAvailabilityRequestId:e},onCompleted:h=>r((h.result.meetingAvailabilityRequest&&!h.result.meetingAvailabilityRequest.isDirectBookingLink)??!1)}),[f]=$t(JXe,{onError:h=>{t(gt.Warning,Gt(h))}}),p=N.useMemo(function(){return function(h){f({variables:{meetingAvailabilityRequestId:e,timezone:h}})}},[f]),m=u&&u.result.errorMessage;if(d||l||m||!s&&(o==null?void 0:o.organization)==null){const h=o&&o.organization&&o.organization.name;return F(St,{children:[S(Co,{title:`Book Meeting${h?` • ${h}`:""}`}),S(Yn,{className:be.errorSection,hasLargeTitle:!0,title:"This meeting isn't available.",children:S("div",{className:be.errorContent,children:"Please contact the meeting organizer to get a valid link."})}),S("div",{className:be.errorBackground})]})}if(c||s)return F(St,{children:[S(Co,{title:"Loading Meeting Request..."}),S(Jmt,{})]});if(u&&u.result.meetingAvailabilityRequest&&o&&o.organization){const h=u.result.meetingAvailabilityRequest,g=h.status===Gc.Unsubmitted||i;return S(Du,{organization:o.organization,children:S(HH,{timezoneName:h.nonUserSelectedTimezone||fBe(al)||o.organization.timezone,onChange:p,children:S(hht,{value:h,children:F(ght,{isCandidateAvailability:n,showCandidateAvailabilityCalendar:r,isRescheduling:i,setIsRescheduling:a,children:[S(Co,{title:`${g?"Book Meeting":"Meeting Details"} • ${o.organization.name}`}),g?F(yg,{children:[S(pn,{path:pt.MeetingAvailabilityCalendar,children:n?S(cht,{}):S(eht,{})}),S(pn,{exact:!0,path:pt.MeetingAvailabilityConfirm,children:S(aht,{})}),S(pn,{path:pt.Meeting,children:S(Ymt,{})})]}):F(yg,{children:[S(pn,{path:pt.Meeting,children:S(Kmt,{})}),S(Sc,{to:Bn(pt.Meeting,{meetingAvailabilityRequestId:e})})]})]})})})})}return S("div",{children:"Error"})};function hve(){const e=N.useContext(cm),t=I1e(e),n=e?e.name:"";return t?S("img",{src:t,className:be.wordmark,alt:n}):S("p",{className:be.wordmarkText,children:n})}function Jmt(){return F("div",{className:be.intro,children:[S(pH,{className:be.blob}),S("div",{children:S(hve,{})}),S("div",{className:be.middle,children:S("h1",{className:be.title,children:"Loading..."})}),S("div",{})]})}function Ymt(){const e=va().maintenanceMode,{id:t,invitee:n,externalRepresentative:r,isDirectBookingLink:i}=N.useContext(xa),{search:a}=Cs(),o=Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:t});return F("div",{className:be.intro,children:[S(pH,{className:be.blob}),S("div",{children:S(hve,{})}),F("div",{className:be.middle,children:[r!=null&&r.avatarUrl?S(bge,{src:r.avatarUrl,alt:r.name||"Interviewer",emptyIcon:hH,className:be.avatar}):"",S("h1",{className:be.title,children:i?`${n&&n.name?`Hi ${n.name}, e`:"E"}xcited to chat!`:`${n&&n.name?`Hi ${n.name}, w`:"W"}e're excited to chat!`}),S("p",{className:be.subtitle,children:i?"Let's find a time to connect.":"Let's get your availability."}),e?S(Xb,{}):S(V1,{className:be.buttons,children:S(Lnt,{priority:Tt.Primary,to:o+a,children:"Get Started"})})]})]})}function Kmt(){var k;const e=N.useContext(xa),{setIsRescheduling:t}=N.useContext(Uf),n=Au(),r=(k=e.invitee)==null?void 0:k.email,i=N.useRef(null);let a,o="",s,l;const{createToast:u}=N.useContext(un);switch(N.useLayoutEffect(()=>{var A;(A=i.current)==null||A.focus()},[]),e.status){case Gc.Submitted:return S(Xmt,{});case Gc.Invalidated:return S(Zmt,{});case Gc.WaitingForReschedule:a=wt.Neutral,o=`Waiting for ${DS(e)} to reschedule.`,l="undo";break;case Gc.InterviewScheduled:a=wt.Positive,o="Interview Confirmed!",s=`Check your inbox${r?` (${r})`:""} for a calendar invite with more details.`,e.isCancellable&&(l="reschedule");break;case Gc.InterviewCompleted:a=wt.Neutral,o="Interview Completed.",e.isCancellable&&(l="reschedule");break;case Gc.Unsubmitted:const A=new Error("An Unsubmitted MeetingAvailabilityRequest should not have an overview.");throw Jn(A),A;default:Qmt(e.status)}const{timezoneName:c}=N.useContext(Ds),{organizer:d,meetingSchedule:f,meetingScheduleSummary:p,instantlyCancelOnReschedule:m}=e,[h,{loading:g}]=$t(KXe,{variables:{meetingAvailabilityRequestId:e.id},onError(A){u(gt.Error,Gt(A))}});function v(){h()}const[y,{loading:b}]=$t(QXe,{variables:{meetingAvailabilityRequestId:e.id},onError(A){u(gt.Error,Gt(A))}});function T(){y()}function _(){if(l===void 0)return;let A=E,D=g,R="Find a new time";return l==="undo"&&(A=T,D=b,R="Retract Reschedule"),S(jt,{priority:Tt.Primary,onClick:A,isLoading:D,children:R})}function E(){t(!0),n.push(e.meetingScheduleSummary?Bn(pt.MeetingAvailabilityDay,{meetingAvailabilityRequestId:e.id,day:qe.fromISO(e.meetingScheduleSummary.startTime).toISODate()}):Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:e.id}))}return F(St,{children:[S(fr,{children:F(x1e,{label:mH,renderPrimaryButton:_,children:[l==="reschedule"&&m?S(jt,{priority:Tt.Primary,highlight:wt.Negative,onClick:v,isLoading:g,children:"Cancel Interview"}):null,d&&d.email?F(yS,{priority:Tt.Tertiary,href:`mailto:${d.email}`,children:["Email ",DS(e)]}):null]})}),F(Yn,{...$N(e),children:[F(Ze,{highlight:a,role:"status","aria-live":"polite",ref:i,tabIndex:-1,children:[S(Wt,{children:"Status"}),S("p",{className:be.status,children:o}),s&&S("p",{className:be.statusAdditionalText,children:s})]}),S(z1,{}),p?F(Ze,{children:[F(So,{hasDarkDivider:!0,children:[S(Wt,{children:"When"}),S("p",{className:be.date,children:ua(p.startTime,c).toLocaleString({weekday:"long",month:"short",day:"numeric",year:"numeric"})}),F("p",{className:be.times,children:[_i(ua(p.startTime,c))," -"," ",_i(ua(p.endTime,c))]})]}),p.location?F(So,{hasDarkDivider:!0,children:[S(Wt,{children:"Location"}),p.conferencingLink?S("p",{children:S("a",{href:p.conferencingLink,target:"_blank",rel:"noopener",children:p.conferencingLink})}):S("p",{children:p.location})]}):"",f&&f.length===1&&f[0].attendees.length?F(So,{hasDarkDivider:!0,children:[S(Wt,{children:"Interviewers"}),f[0].attendees.map((A,D)=>S(Cre,{attendee:A},D))]}):""]}):"",f&&f.length>1?F(Ze,{children:[S(gf,{hasDivider:!0,children:"Schedule"}),f.map((A,D)=>F(So,{hasDarkDivider:!0,children:[S("h3",{className:be.eventTitle,children:"Interview"}),F("p",{className:be.eventWhen,children:[_i(ua(A.startTime,c))," -",_i(ua(A.endTime,c))]}),A.attendees.length?F("div",{className:be.attendees,children:[S(Wt,{className:be.attendeesHeading,children:"Interviewers"}),A.attendees.map((R,B)=>S(Cre,{attendee:R},B))]}):""]},D))]}):""]})]})}function Qmt(e){const t=new Error(`MeetingOverview cannot render status '${e}'`);throw Jn(t),t}function Cre({attendee:e}){const t=N.useContext(cm),n=[];for(const i in e.links)if(e.links.hasOwnProperty(i))switch(i){case"LinkedIn":n.push({icon:_ge,href:e.links[i]});continue}const r=(t==null?void 0:t.shouldIncludeEmployeeInfoInCandidateCommunication)??!1;return F(So,{className:be.attendee,children:[S(bge,{src:e.avatarUrl,alt:e.name||"Attendee",emptyIcon:hH,className:be.attendeeAvatar}),F("div",{children:[S("p",{children:e.name}),r&&e.jobTitle!=null&&S("p",{className:be.jobTitle,children:e.jobTitle})]}),S("div",{className:be.links,children:r?n.map(i=>S(yS,{className:be.link,href:i.href,target:"_blank",rel:"noopener",priority:Tt.Quaternary,children:S(i.icon,{})},i.href)):null})]})}function Zmt(){const e=N.useContext(xa);return F(St,{children:[S(fr,{}),S(Yn,{...$N(e),children:F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"Status"}),S("p",{className:be.status,children:"Canceled."})]})})]})}function Xmt(){const{timezoneName:e}=N.useContext(Ds),t=N.useContext(xa),{organizer:n}=t,r=Au(),{data:i,loading:a,error:o}=pr(dc,{variables:{meetingAvailabilityRequestId:t.id}}),s=[];if(i&&i.selectedTimes){let f;for(const p of i.selectedTimes){const m=Bfe(p.startTime,e);(!f||!b6(m,f))&&(s.push([]),f=m),s.at(-1).push({id:p.id,startDateTime:ua(p.startTime,e),endDateTime:ua(p.endTime,e)})}}const[l,{loading:u}]=$t(YXe,{variables:{meetingAvailabilityRequestId:t.id},onCompleted:()=>{r.push(Bn(pt.MeetingAvailabilityConfirm,{meetingAvailabilityRequestId:t.id}))}});function c(){l()}function d(){return S(jt,{priority:Tt.Primary,onClick:c,isLoading:u,children:"Edit Availability"})}return F(St,{children:[S(fr,{children:S(x1e,{label:mH,renderPrimaryButton:d,children:n&&n.email?F(yS,{priority:Tt.Tertiary,href:`mailto:${n.email}`,children:["Email ",DS(t)]}):""})}),F(Yn,{...$N(t),children:[F(Ze,{highlight:wt.Neutral,children:[S(Wt,{children:"Status"}),F("p",{className:be.status,children:["Waiting for ",DS(t)," to confirm."]})]}),S(z1,{}),S(Qdt,{children:"Your Availability"}),s.length>0?s.map(f=>{const p=f[0].startDateTime;return F(Ze,{children:[S(gf,{hasDivider:!0,children:p.toLocaleString({weekday:"long",month:"short",day:"numeric",year:"numeric"})}),f.map(m=>S(So,{children:F("p",{children:[_i(m.startDateTime)," -"," ",_i(m.endDateTime)]})},m.id))]},p.toISODate())}):a?S(Ze,{children:S(um,{message:"Fetching times you selected..."})}):o?S(IN,{message:Gt(o)}):""]})]})}function $N({invitee:e,interviewScheduleId:t,meetingTitle:n}){return{title:e&&e.name?e.name:t?"Your interview":"Your meeting",subtitle:n}}function DS({organizer:e}){return e&&e.name?e.name:"organizer"}function eht(){var u;const e=N.useContext(xa),[t,n]=N.useState({selectedId:void 0,requiresConfirmation:((u=e.invitee)==null?void 0:u.email)==null||e.locationType===ql.Phone||e.isGenericBookingLink,isConfirming:!1}),[r,i]=N.useState(!1),a=Cs(),s=new URLSearchParams(a.search).get("troubleshootAvailabilityRequest")??void 0,l=s!=null;return S(tht,{value:{selectedTime:t,setSelectedTime:n,isBookingSelectedTime:r,setIsBookingSelectedTime:i},children:t.selectedId&&t.isConfirming&&t.requiresConfirmation?S(mht,{meetingAvailabilityRequest:e,selectedId:t.selectedId}):S(fht,{renderAvailableTime:l?rht:nht,troubleshootingRequestId:s})})}const iV=N.createContext({selectedTime:{selectedId:void 0,isConfirming:!1,requiresConfirmation:!1},setSelectedTime:li,isBookingSelectedTime:!1,setIsBookingSelectedTime:li}),tht=iV.Provider;function nht({availableTime:e}){var v;const{createToast:t}=N.useContext(un),n=N.useContext(xa),{timezoneName:r}=N.useContext(Ds),{selectedTime:i,setSelectedTime:a,isBookingSelectedTime:o,setIsBookingSelectedTime:s}=N.useContext(iV),{setIsRescheduling:l}=N.useContext(Uf),u=Au(),c=(v=n.meetingScheduleSummary)!=null&&v.startTime?qe.fromISO(n.meetingScheduleSummary.startTime):void 0,d=i.selectedId===e.id,f=c!=null&&c.toMillis()===e.startDateTime.toMillis(),[p,{loading:m}]=$t(Ihe,{variables:{meetingAvailabilityRequestId:n.id,timeslotId:e.id,timezone:r},onCompleted(y){s(!1);const{errorMessage:b}=y.result;b==null?(l(!1),u.push(Bn(pt.Meeting,{meetingAvailabilityRequestId:n.id}))):t(gt.Error,b)},onError(y){s(!1),t(gt.Error,Gt(y))},refetchQueries:({data:y})=>{var T;return((T=y==null?void 0:y.result)==null?void 0:T.errorMessage)!=null?[C2(Hb)]:[]}});function h(){n.isDirectBookingLink&&i.selectedId&&(i.requiresConfirmation?a({...i,isConfirming:!0}):(s(!0),p()))}function g(y){a(y?{...i,selectedId:e.id,isConfirming:!1}:{...i,selectedId:void 0,isConfirming:!1})}return F("div",{className:be.selectableTimeAndButton,children:[S(aft,{className:be.selectableTime,value:d,onChange:g,label:`${_i(e.startDateTime)} - ${_i(e.endDateTime)}${f?" (Currently Scheduled Time)":""}`,disabled:f}),d?S(V1,{className:be.bookButtonContainer,children:S(jt,{priority:Tt.Primary,onClick:h,className:be.bookButton,isLoading:m,disabled:!m&&o,children:i.requiresConfirmation?"Select":"Book"})}):""]})}function rht({availableTime:e}){const t=e.unavailableReasons.length===0,[n,r]=N.useState(!1);function i(){r(a=>!a)}return F("div",{className:[be.debuggableTimeslotButton,t?be.available:be.unavailable].join(" "),onClick:i,children:[F("div",{className:be.debugTimeslotDescription,children:[S("span",{children:`${_i(e.startDateTime)} - ${_i(e.endDateTime)}`}),S("div",{className:[be.statusLabel,t?be.available:be.unavailable].join(" "),children:t?S(kN,{}):S(Ege,{})})]}),!t&&n&&F("div",{className:be.unavailabilityReasonContainer,children:[S("span",{children:"Reasons:"}),S("ul",{children:e.unavailableReasons.map((a,o)=>S("li",{className:be.unavailableReason,children:a.details==null?a.description:S(iht,{details:a.details})},o))})]})]})}function iht({details:e}){const{timezoneName:t}=N.useContext(Ds);if(e.__typename==="DebuggableTimeslotDetailsOutsideMeetingHours"){const n=e.meetingPerson.name??"an interviewer";return F(St,{children:["This time is outside ",F("strong",{children:[n,"'s"]})," meeting hours."]})}else if(e.__typename==="DebuggableTimeslotDetailsConflictingEvent"){const n=Vfe({startIsoOrLuxon:e.conflictingEvent.startTime,endIsoOrLuxon:e.conflictingEvent.endTime,timezoneName:t,includeStartDay:"always"});if(e.isMeetingRoomEvent){const r=e.meetingPerson.name??"Meeting Room";return F(St,{children:["Room ",S("strong",{children:r})," has conflicting event"," ",S("em",{children:e.conflictingEvent.title})," (",n,")"]})}else{const r=e.meetingPerson.name??"an interviewer";return F(St,{children:["This time conflicts with ",F("strong",{children:[r,"'s"]})," event"," ",S("em",{children:e.conflictingEvent.title})," (",n,")"]})}}else if(e.__typename==="DebuggableTimeslotDetailsMeetingBuffer"){const n=e.meetingPerson.name??"an interviewer";return F(St,{children:["This time is within ",F("strong",{children:[n,"'s"]})," ",e.eventDescription,"."]})}return null}function aht(){const{createToast:e}=N.useContext(un),t=N.useContext(xa),{timezoneName:n}=N.useContext(Ds),{showCandidateAvailabilityCalendar:r}=N.useContext(Uf),i=Au(),a=Ou(),[o,s]=N.useState(),{loading:l,error:u}=pr(dc,{variables:{meetingAvailabilityRequestId:t.id,shouldSort:!1},fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-only",onCompleted(A){s(A.selectedTimes.map(D=>{const R=qe.fromISO(D.startTime,{zone:n}),B=qe.fromISO(D.endTime,{zone:n});return{id:D.id,startTime:R,endTime:B,isValid:aV(R,B)}}))}}),c=qe.local().startOf("month"),{data:d,loading:f,error:p}=pr(Hb,{variables:{meetingAvailabilityRequestId:t.id,timeframeStart:c.startOf("week").toISO(),timeframeEnd:c.plus({month:1}).endOf("month").endOf("week").toISO(),forCandidateAvailability:!0}}),[m,{loading:h}]=$t(GXe,{variables:{meetingAvailabilityRequestId:t.id,timezone:n},refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:t.id}}],onCompleted(){i.push(Bn(pt.Meeting,{meetingAvailabilityRequestId:t.id}))},onError(A){e(gt.Error,Gt(A))}}),[g]=$t(Vb,{refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:t.id,shouldSort:!1}}],onError(A){e(gt.Error,Gt(A))}});N.useEffect(()=>{if(o!=null){const A=vve(o,n);g({variables:{meetingAvailabilityRequestId:t.id,timeRanges:A.map(D=>({id:D.id,startTimeISO:D.startTime.toISO(),endTimeISO:D.endTime.toISO()}))},onCompleted:()=>s(A)})}},[n]);const{totalDays:v,totalMinutes:y,additionalDaysNeeded:b,additionalMinutesNeeded:T}=N.useMemo(function(){if(o==null)return{totalDays:0,totalMinutes:0,additionalDaysNeeded:t.minimumDaysOfAvailability,additionalMinutesNeeded:t.meetingDurationInMinutes};const A=new Set(o.map(L=>L.startTime.startOf("day").toMillis())).size,D=t.minimumDaysOfAvailability-A,R=o.map(L=>Vn.fromDateTimes(L.startTime,L.endTime)),B=new Set(R.flatMap(L=>L.splitBy({minutes:1})).map(L=>L.start.toMillis())).size,H=t.meetingDurationInMinutes-B;return{totalDays:A,totalMinutes:B,additionalDaysNeeded:D,additionalMinutesNeeded:H}},[o]);function _(){m()}function E(){r(!0),i.push(Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:t.id}))}if(u||p)return F(St,{children:[S(fr,{}),S(Yn,{...$N(t),children:F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"Status"}),S("p",{children:"Error retrieving meeting times. Contact the meeting organizer for more assistance."})]})})]});const k=((o==null?void 0:o.filter(A=>A.isValid).length)??0)>0;return F(St,{children:[S(fr,{children:a?S(Wg,{to:Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:t.id}),children:S(Ns,{})}):F(D1e,{priority:Tt.Quaternary,onClick:E,align:"left",className:be.letterSpacingThin,children:[S(Ns,{}),S("span",{children:"Back to dates"})]})}),F("div",{className:be.maxContentContainer,children:[F("div",{className:be.availabilityDatePicker,children:[S(Yn,{title:"Add a few times you're available",subtitle:a&&b>0?F(St,{children:["Select at least ",S("b",{children:b})," ",v>0?"more":""," ",cd(b,"day")]}):a&&T>0?F(St,{children:["Select at least ",S("b",{children:T})," ",y>0?"more":""," ",cd(T,"minute")]}):'Select "Submit" to confirm times.',hasLargeTitle:!0,contentClassName:be.candidateAvailabilityContainer,children:S(z1,{className:be.timezone})}),l||!o||f||!d?S(um,{message:""}):S(oht,{selectedTimeRanges:o,selectableDays:d.availableTimes.map(A=>{const D=Lfe(A.id);return{label:D.toLocaleString({weekday:a?"short":"long",month:"short",day:"numeric",year:"numeric"}),value:D.toISODate()}}),onClickAddDay:E})]}),S(gve,{disabled:(o==null?void 0:o.some(A=>!A.isValid))||b>0||T>0,isLoading:h,onClick:_,title:"Submit",disabledHint:o!=null&&o.some(A=>!A.isValid)?S("p",{children:"Some time ranges you've entered are invalid."}):b>0?F("p",{children:["Select at least ",S("b",{children:b})," ",k?"more":""," ",cd(b,"day")]}):T>0?F("p",{children:["Select at least ",S("b",{children:T})," ",k?"more":""," ",cd(T,"minute")]}):void 0})]})]})}function oht({selectedTimeRanges:e,selectableDays:t,onClickAddDay:n}){const r=Ou(),i=wmt(e,a=>a.startTime.startOf("day").toISODate());return F(Yn,{title:"My Availability",className:be.fullWidth,titleContainerClassName:be.candidateAvailabilityHeaderContainer,afterTitle:F(jt,{priority:Tt.Quaternary,onClick:n,isCompact:!0,children:[S(S6,{}),S("span",{children:"Add Days"})]}),children:[Object.entries(i).map(([a,o])=>S(sht,{day:a,ranges:o,selectedTimeRanges:e,selectableDays:t},a)),r&&S("div",{className:be.addDayPromptContainer,children:F(jt,{priority:Tt.Secondary,onClick:n,isGreedy:!0,children:[S(S6,{}),S("span",{children:"Add More Days"})]})})]})}function sht({day:e,ranges:t,selectedTimeRanges:n,selectableDays:r}){const{timezoneName:i}=N.useContext(Ds),a=N.useContext(xa),{createToast:o}=N.useContext(un),[s]=$t(Vb,{refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:a.id,shouldSort:!1}}],onError(c){o(gt.Error,Gt(c))}});function l(){const c=qe.fromISO(e).setZone(i,{keepLocalTime:!0});s({variables:{meetingAvailabilityRequestId:a.id,timeRanges:[...n.map(d=>({id:d.id,startTimeISO:d.startTime.toISO(),endTimeISO:d.endTime.toISO()})),{id:rV(),startTimeISO:c.set({hour:9}).toISO(),endTimeISO:c.set({hour:17}).toISO()}]}})}function u(){const c=new Set(t.map(d=>d.id));s({variables:{meetingAvailabilityRequestId:a.id,timeRanges:n.filter(d=>!c.has(d.id)).map(d=>({id:d.id,startTimeISO:d.startTime.toISO(),endTimeISO:d.endTime.toISO()}))}})}return F(Ze,{className:be.availabilitySection,children:[S(gf,{hasDivider:!1,className:be.availabilitySectionHeader,children:F("div",{className:be.availabilitySectionHeaderContentContainer,children:[S(lht,{selectedDay:e,selectableDays:r,selectedTimeRanges:n}),S(jt,{priority:Tt.Quaternary,onClick:u,isCompact:!0,children:S(AN,{})})]})}),S(So,{className:be.availabilitySectionList,children:t.map((c,d)=>S(uht,{selectedTimeRanges:n,selectedTimeRange:c,canRemove:t.length>1},c.id))}),S(So,{className:be.noVerticalPadding,children:F(jt,{priority:Tt.Quaternary,onClick:l,isCompact:!0,children:[S(S6,{}),S("span",{children:"Add Time"})]})})]})}function lht({selectedDay:e,selectableDays:t,selectedTimeRanges:n}){const{timezoneName:r}=N.useContext(Ds),i=N.useContext(xa),{createToast:a}=N.useContext(un),[o]=$t(Vb,{refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:i.id,shouldSort:!1}}],onError(l){a(gt.Error,Gt(l))}});function s(l){o({variables:{meetingAvailabilityRequestId:i.id,timeRanges:n.map(u=>{const c=qe.fromISO(l.value).setZone(r,{keepLocalTime:!0});return u.startTime.startOf("day").toISODate()===e?{id:u.id,startTimeISO:c.set({hour:u.startTime.hour,minute:u.startTime.minute}).toISO(),endTimeISO:c.set({hour:u.endTime.hour,minute:u.endTime.minute}).toISO()}:{id:u.id,startTimeISO:u.startTime.toISO(),endTimeISO:u.endTime.toISO()}})}})}return S("div",{className:be.headerWithButton,children:S(Bmt,{value:e,onChange:s,values:t})})}function uht({selectedTimeRange:e,selectedTimeRanges:t,canRemove:n=!0}){const r=N.useContext(xa),{createToast:i}=N.useContext(un),[a]=$t(Vb,{refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:r.id,shouldSort:!1}}],onError(c){i(gt.Error,Gt(c))}});function o(c){a({variables:{meetingAvailabilityRequestId:r.id,timeRanges:t.map(d=>d.id===e.id?{id:d.id,startTimeISO:c.value,endTimeISO:d.endTime.toISO()}:{id:d.id,startTimeISO:d.startTime.toISO(),endTimeISO:d.endTime.toISO()})}})}function s(c){a({variables:{meetingAvailabilityRequestId:r.id,timeRanges:t.map(d=>d.id===e.id?{id:d.id,startTimeISO:d.startTime.toISO(),endTimeISO:c.value}:{id:d.id,startTimeISO:d.startTime.toISO(),endTimeISO:d.endTime.toISO()})}})}function l(){a({variables:{meetingAvailabilityRequestId:r.id,timeRanges:t.filter(c=>c.id!==e.id).map(c=>({id:c.id,startTimeISO:c.startTime.toISO(),endTimeISO:c.endTime.toISO()}))}})}const u=Vn.fromDateTimes(e.startTime.startOf("day"),e.startTime.endOf("day")).splitBy(xn.fromObject({minutes:15}));return F("div",{className:be.availabilityRow,children:[F("div",{className:be.timeRangeRow,children:[F("div",{className:be.timeRange,children:[S(kre,{value:e.startTime.toISO(),onChange:o,values:u.map(c=>({label:c.start.toFormat("t"),value:c.start.toISO()})),valid:e.isValid}),S("span",{children:"→"}),S(kre,{value:e.endTime.toISO(),onChange:s,values:u.map(c=>({label:c.end.toFormat("t"),value:c.end.toISO()})),valid:e.isValid})]}),n?S(jt,{priority:Tt.Quaternary,onClick:l,isCompact:!0,children:S(AN,{})}):null]}),!e.isValid&&S("p",{children:"The start time must be before the end time."})]})}function cht(){const{createToast:e}=N.useContext(un),t=N.useContext(xa),{timezoneName:n}=N.useContext(Ds),{showCandidateAvailabilityCalendar:r}=N.useContext(Uf),i=Ou(),a=Au(),[o,s]=N.useState(()=>{const E=qe.local().setZone(n).startOf("month");return{start:tu(E.startOf("week")),end:tu(E.plus({months:1}).endOf("month"))}}),[l,u]=N.useState([]),c=t.minimumDaysOfAvailability,[d,{data:f,loading:p}]=gp(Hb,{onError(E){e(gt.Error,Gt(E))}}),[m]=$t(Vb,{refetchQueries:[{query:dc,variables:{meetingAvailabilityRequestId:t.id}}],onError(E){e(gt.Error,Gt(E))},onCompleted:()=>{a.push(Bn(pt.MeetingAvailabilityConfirm,{meetingAvailabilityRequestId:t.id}))}}),{loading:h}=pr(dc,{variables:{meetingAvailabilityRequestId:t.id},fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-only",onCompleted(E){u(E.selectedTimes.map(k=>{const A=ua(k.startTime,n),D=ua(k.endTime,n);return{id:k.id,startTime:A,endTime:D,isValid:aV(A,D)}}))}});N.useEffect(()=>{d({variables:{meetingAvailabilityRequestId:t.id,timeframeStart:Vc(o.start,n),timeframeEnd:Vc(o.end,n),forCandidateAvailability:!0}})},[d,t.id,o.end,o.start,n]),N.useEffect(()=>{u(vve(l,n))},[n]);const g=N.useMemo(function(){return function(E){s(yve(E,n))}},[n,s]),v=N.useMemo(function(){return(f==null?void 0:f.availableTimes.map(E=>tu(Lfe(E.id))))??[]},[f]),y=N.useMemo(function(){const E=new Set(l.map(k=>tu(k.startTime).getTime()));return Array.from(E).map(k=>new Date(k))},[l]),b=N.useMemo(function(){return[{[N1e]:v},{[jct]:y}]},[v,y]);function T(E){if(y.some(k=>b6(k,E)))u([...l.filter(k=>!b6(k.startTime.toJSDate(),E))]);else{const k=Hh(E,n);u([...l,{id:rV(),startTime:k.set({hour:9,minute:0}),endTime:k.set({hour:17,minute:0}),isValid:!0}])}}function _(){m({variables:{meetingAvailabilityRequestId:t.id,timeRanges:Amt(l,E=>E.startTime.toMillis()).map(E=>({id:E.id,startTimeISO:E.startTime.toISO(),endTimeISO:E.endTime.toISO()}))}})}return F(St,{children:[S(fr,{children:t.canCandidateSuggestTimes&&S(dht,{onClick:()=>r(!1)})}),F("div",{className:be.maxContentContainer,children:[F("div",{className:be.availabilityDatePicker,children:[S(Yn,{title:"Pick the days when you're available",subtitle:i&&c>y.length?F(St,{children:["Select at least ",S("b",{children:c-y.length})," ",y.length>0?"more":""," ",cd(c-y.length,"day")]}):'Select "Next" to continue.',hasLargeTitle:!0,contentClassName:be.availabilityContainer,children:S(z1,{className:be.timezone})}),S(Yn,{title:"",children:S(Ze,{className:be.calendarContainer,children:S(BH,{onChange:T,includeDates:v,highlightDates:b,onMonthChange:g,isLoading:p||h,inline:!0})})})]}),S(gve,{disabled:c>y.length,onClick:_,title:"Next",disabledHint:F("p",{children:["Select at least ",S("b",{children:c-y.length})," ",y.length>0?"more":""," ",cd(c-y.length,"day")]})})]})]})}function dht({onClick:e}){const t=N.useContext(xa);return Ou()?S(Wg,{onClick:e,to:Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:t.id}),children:S(Ns,{})}):F(D1e,{priority:Tt.Quaternary,onClick:e,align:"left",className:be.letterSpacingThin,children:[S(Ns,{}),S("span",{children:"Schedule Now"})]})}function gve({title:e,disabledHint:t,disabled:n,onClick:r,isLoading:i}){return Ou()?S(V1,{className:be.availabilityButtonPane,children:S(jt,{priority:Tt.Primary,disabled:n,onClick:r,isLoading:i,children:e})}):F(Ze,{className:be.availabilityButtonPane,children:[n&&t,S(jt,{priority:Tt.Primary,disabled:n,onClick:r,isLoading:i,children:e})]})}function fht({renderAvailableTime:e,children:t,troubleshootingRequestId:n}){var U;const{createToast:r}=N.useContext(un),i=N.useContext(xa),{timezoneName:a}=N.useContext(Ds),{isRescheduling:o,setIsRescheduling:s}=N.useContext(Uf),{search:l}=Cs(),u=Au(),c=Cs(),d=Ou(),f=UB({path:pt.MeetingAvailabilityDay,exact:!0}),p=N.useMemo(function(){return f?qe.fromISO(f.params.day).toJSDate():void 0},[f&&f.params.day]),[m,{data:h,loading:g}]=gp(Hb,{onError(J){r(gt.Error,Gt(J))}}),[v,{data:y,loading:b}]=gp(jXe,{onError(J){r(gt.Error,Gt(J))}}),[T,_]=N.useState(()=>{const J=(p==null?qe.local().setZone(a):Hh(p,a)).startOf("month");return{start:tu(J.startOf("week")),end:tu(J.plus({months:1}).endOf("month"))}});try{T.start.toISOString(),T.end.toISOString()}catch(J){J instanceof RangeError&&Jn(new Error(`Unable to convert timeframe start/end to ISO string on meeting ${i.id} (see #33635): dayDate=${p==null?void 0:p.toISOString()}; localDate=${new Date().toISOString()} localDateTime=${qe.local().toISODate()}; LOCAL_TIMEZONE_NAME=${al}; timezoneName=${a}`))}const[E,k]=N.useState(new Map),A=N.useMemo(function(){return function(J){_(yve(J,a))}},[a,_]);N.useEffect(()=>{n==null?m({variables:{meetingAvailabilityRequestId:i.id,timeframeStart:Vc(T.start,a),timeframeEnd:Vc(T.end,a)}}):v({variables:{meetingAvailabilityRequestId:i.id,troubleshootingRequestId:n,timeframeStart:Vc(T.start,a),timeframeEnd:Vc(T.end,a)}})},[T.start.toISOString(),T.end.toISOString()]);const D=(y==null?void 0:y.debuggableTimes.__typename)==="TroubleshootDirectBookingAvailablitySuccess"?y.debuggableTimes.timeslots:h==null?void 0:h.availableTimes;N.useEffect(()=>{if(p&&Gmt(p,T)){const J=[];if(D!=null)for(const re of D){const X=ua(re.startTime,a),j=tu(X);b6(p,j)&&J.push({...re,id:re.id,startDateTime:X,endDateTime:ua(re.endTime,a)})}k(new Map(J.map(re=>[re.id,re])))}},[D,f&&f.params.day,a]);const R=N.useMemo(function(){const J=[];if(D!=null)for(const re of D){const X=Bfe(re.startTime,a);J.push(X)}return J},[D,a]),B=N.useMemo(function(){return function(J){u.push(Bn(pt.MeetingAvailabilityDay,{meetingAvailabilityRequestId:i.id,day:qe.fromJSDate(J).toISODate()})+l)}},[u,i.id]),H={title:o?"View other days and times we're available":"Select a day to view when we're available.",subtitle:o&&i.meetingScheduleSummary?`Your interview is currently scheduled on ${Vfe({startIsoOrLuxon:i.meetingScheduleSummary.startTime,endIsoOrLuxon:i.meetingScheduleSummary.endTime,timezoneName:a,includeStartDay:"if_not_today",hasBriefZoneName:!0})}. You can book another time if you'd like to reschedule.`:"Then book a time."};d&&p&&(H.title=Hh(p,a).toLocaleString({weekday:"long",month:"short",day:"numeric",year:"numeric"}),H.subtitle="Select a time to book.");const L=N.useMemo(function(){var J;return[{[N1e]:R},{[Gct]:(J=i.meetingScheduleSummary)!=null&&J.startTime?[new Date(i.meetingScheduleSummary.startTime)]:[]}]},[R,(U=i.meetingScheduleSummary)==null?void 0:U.startTime]);N.useEffect(()=>{(y==null?void 0:y.debuggableTimes.__typename)==="TroubleshootDirectBookingAvailablityError"&&(r(gt.Warning,y.debuggableTimes.reason,OS.Long),u.push({...c,search:void 0}),m({variables:{meetingAvailabilityRequestId:i.id,timeframeStart:Vc(T.start,a),timeframeEnd:Vc(T.end,a)}}))},[y==null?void 0:y.debuggableTimes.__typename]);const V=g||b;return F(St,{children:[F(fr,{children:[d&&p?S(Wg,{to:Bn(pt.MeetingAvailabilityCalendar,{meetingAvailabilityRequestId:i.id}),children:S(Ns,{})}):o?S(Wg,{onClick:()=>s(!1),to:Bn(pt.Meeting,{meetingAvailabilityRequestId:i.id}),children:S(Ns,{})}):null,t]}),F(Yn,{...H,contentClassName:[be.availabilityContainer,p?be.daySelected:""].join(" "),children:[S(z1,{className:be.timezone}),d&&p?"":S(Ze,{className:be.calendarContainer,children:S(BH,{selected:p,onChange:B,includeDates:R,highlightDates:L,onMonthChange:A,isLoading:V,openToDate:p,inline:!0})}),p?F(Ze,{className:be.selectableTimesContainer,children:[d?"":S(gf,{children:Hh(p,a).toLocaleString({weekday:"long",month:"short",day:"numeric",year:"numeric"})}),S(Wt,{children:i.isDirectBookingLink?"Which time slot works best for you?":"Please select all of the time slots that work well for you."}),S("div",{className:be.selectableTimes,children:E.size?Array.from(E.values()).map(J=>S(e,{availableTime:J},J.id)):V?S(um,{message:"Retrieving available times..."}):S("p",{children:"Sorry, we're not available on this day."})})]}):S("div",{}),!g&&S(pht,{})]})]})}function pht(){const{createToast:e}=N.useContext(un),t=N.useContext(xa),{showCandidateAvailabilityCalendar:n}=N.useContext(Uf),r=t.organizer,i=()=>{r!=null&&r.email&&navigator.clipboard.writeText(r.email).then(()=>{e(gt.Success,"Email copied to clipboard.",OS.Normal)},()=>{e(gt.Error,"Unable to write to your clipboard. Please copy manually.",OS.Normal)})};return t.canCandidateSuggestTimes?S(Ze,{children:S(pve,{hideIcon:!0,title:"Can't find a time?",body:F(St,{children:[S("p",{children:"Let us know when you're available!"}),S(yS,{priority:Tt.Tertiary,className:be.letterSpacingThin,onClick:()=>n(!0),children:S("span",{children:"Suggest Times"})}),(r==null?void 0:r.email)!=null&&F("p",{children:["Questions? Email"," ",S("span",{className:be.copyEmail,onClick:i,children:r.email})]})]})})}):(r==null?void 0:r.email)==null?null:F(Ze,{className:be.noTimesAvailable,children:[S(Wt,{children:"Can't find a time?"}),F(yS,{priority:Tt.Tertiary,className:be.emailButton,href:`mailto:${r.email}`,children:["Email ",DS(t)]}),F("p",{className:be.directEmail,children:["or click to copy:"," ",S("span",{className:be.copyEmail,onClick:i,children:r.email})]})]})}function mht({meetingAvailabilityRequest:e,selectedId:t,children:n}){var D,R;const{createToast:r}=N.useContext(un),{selectedTime:i,setSelectedTime:a,setIsBookingSelectedTime:o}=N.useContext(iV),{timezoneName:s}=N.useContext(Ds),{setIsRescheduling:l}=N.useContext(Uf),u=Au(),c=Ou(),{execute:d,isRecaptchaProcessing:f}=dm(),[p,{loading:m}]=$t(Ihe,{onCompleted(B){o(!1),l(!1);const{errorMessage:H}=B.result;H==null?u.push(Bn(pt.Meeting,{meetingAvailabilityRequestId:B.result.request.id})):r(gt.Error,H)},onError(B){o(!1),r(gt.Error,Gt(B))},refetchQueries:({data:B})=>{var L;return((L=B==null?void 0:B.result)==null?void 0:L.errorMessage)!=null?[C2(Hb)]:[]}});function h(){a({...i,selectedId:t,isConfirming:!1})}const g=qe.fromISO(t).startOf("day").toISODate(),v=e.meetingDurationInMinutes,y=ua(t,s),b=_i(y),T=v?_i(y.plus({minutes:v})):void 0,_=e.locationType,E=(D=e.invitee)==null?void 0:D.email,k=(R=e.invitee)==null?void 0:R.phoneNumber;function A(B){B.preventDefault();const H=new FormData(B.currentTarget);o(!0),e.isGenericBookingLink?d("schedule_meeting").then(function(L){p({variables:{meetingAvailabilityRequestId:e.id,timeslotId:t,timezone:s,updatedContactInfo:{emailAddress:H.get("email")??void 0,phoneNumber:H.get("phone")??void 0,name:H.get("name")??void 0},recaptchaToken:L}}).catch(li)}).catch(()=>{r(gt.Error,fH)}):p({variables:{meetingAvailabilityRequestId:e.id,timeslotId:t,timezone:s,updatedContactInfo:{emailAddress:H.get("email")??void 0,phoneNumber:H.get("phone")??void 0,name:H.get("name")??void 0}}})}return F(St,{children:[F(fr,{children:[S(Wg,{to:Bn(pt.MeetingAvailabilityDay,{meetingAvailabilityRequestId:e.id,day:g}),children:S(Ns,{onClick:h})}),n]}),F(Yn,{title:"",contentClassName:c?be.meetingDetailsContainerMobile:be.meetingDetailsContainer,children:[F(Ze,{className:be.meetingDetails,children:[S(gf,{children:"Meeting Details"}),S(zu,{className:be.confirmLabel,children:"Duration"}),F("p",{children:[v," minutes"]}),_&&!Vr(zY(_))&&F(St,{children:[S(zu,{className:be.confirmLabel,children:"Location"}),S("p",{children:zY(_)})]}),S(zu,{className:be.confirmLabel,children:"Time"}),F("p",{children:[b," - ",T]}),S(zu,{className:be.confirmLabel,children:"Timezone"}),S("p",{children:$fe(s)})]}),S("form",{onSubmit:A,children:F(Ze,{className:be.contactInfoDetails,children:[S(gf,{children:"Your Contact Information"}),F("div",{className:be.contactInfoForm,children:[e.isGenericBookingLink&&F("div",{children:[S(zu,{htmlFor:"name",className:be.confirmLabel,children:"Name"}),S(Pd,{id:"name",name:"name",placeholder:"Your Name",type:"text",required:!0,autoFocus:!0})]}),E==null&&F("div",{children:[S(zu,{htmlFor:"email",className:be.confirmLabel,children:"Email"}),S(Pd,{id:"email",name:"email",placeholder:"name@example.com",type:"email",required:!0,autoComplete:"email",autoFocus:!e.isGenericBookingLink}),S("p",{className:be.contactDetailHint,children:"We will send a calendar invite to this email address once this interview is scheduled."})]}),_===ql.Phone&&F("div",{children:[S(zu,{htmlFor:"phone",className:be.confirmHeading,children:"Phone Number"}),S(Pd,{id:"phone",name:"phone",placeholder:"(415) 555-5555",defaultValue:k??void 0,type:"tel",required:!0,autoComplete:"tel-national",autoFocus:E!=null&&k==null}),S("p",{className:be.contactDetailHint,children:"We will give you a call at this number at the time of your interview."})]}),S(V1,{className:be.bookButtonPane,children:F(jt,{type:"submit",priority:Tt.Primary,highlight:wt.NeedsAction,className:be.bookButton,isLoading:m||f,children:["Schedule"," "]})})]})]})})]})]})}const xa=N.createContext({id:""}),hht=xa.Provider;function vve(e,t){return[...e].map(n=>{const r=n.startTime.setZone(t,{keepLocalTime:!0}),i=n.endTime.setZone(t,{keepLocalTime:!0});return{id:n.id,startTime:r,endTime:i,isValid:aV(r,i)}})}function aV(e,t){return e.toMillis()F(St,{children:[S(fr,{}),S(Yn,{title:"Page not found",subtitle:"The page you requested was not found"})]});function xu(){const{organizationHostedJobsPageName:e}=Cu(),{customDomainData:t}=va();return(t==null?void 0:t.organizationSlug)!=null?t.organizationSlug:e}const oV=({children:e,duration:t=200})=>{const[n,r]=N.useState(!1);return N.useEffect(()=>{const i=setTimeout(()=>r(!0),t);return()=>clearTimeout(i)},[t]),n?S(St,{children:e}):null},vht="_undecorated_1aam4_1",yht={undecorated:vht};function Sve({url:e,urlSearchParams:t,children:n,target:r}){const i=Au(),a=e?new URL(e):void 0,o=document.referrer?new URL(document.referrer):void 0,s=a&&a.origin!==(o==null?void 0:o.origin),l=c=>{c.shiftKey||c.ctrlKey||c.metaKey||c.altKey||s||(c.preventDefault(),i.push(r),window.parent.postMessage&&window.parent.postMessage("job_tapped","*"))};t.delete("embed");const u=new URL(e);for(const[c,d]of t.entries())u.searchParams.set(c,d);return S("a",{className:yht.undecorated,href:u.href,target:"_top",onClick:l,children:n})}const Sht="_container_j2da7_1",bht={container:Sht},sV=({className:e,disabled:t,...n})=>t?S("span",{className:e,children:n.children}):S(JC,{className:[e,bht.container].join(" "),...n}),Tht="_topDescription_12ylk_30",_ht="_bottomDescription_12ylk_31",Eht="_filtersContainer_12ylk_136",wht="_filtersOpen_12ylk_153",kht="_filtersVisible_12ylk_177",Aht="_filtersFilterIcon_12ylk_182",Cht="_filtersWindow_12ylk_186",Nht="_filtersHeader_12ylk_201",Iht="_filtersLabel_12ylk_213",Oht="_filtersAction_12ylk_218",Dht="_filtersDismissIcon_12ylk_249",xht="_filtersUndoIcon_12ylk_254",Mht="_filters_12ylk_136",Rht="_filterContainer_12ylk_278",Pht="_filterIconContainer_12ylk_283",Fht="_filterDownIcon_12ylk_292",Lht="_filterActive_12ylk_295",Bht="_filter_12ylk_136",$ht="_section_12ylk_341",Uht="_departments_12ylk_345",Hht="_departmentHeading_12ylk_349",Vht="_departmentHeadingLevel_12ylk_364",zht="_jobPosting_12ylk_379",qht="_title_12ylk_383",Wht="_details_12ylk_389",jht="_detailsCompensation_12ylk_395",Ght="_visuallyHidden_12ylk_401",fn={topDescription:Tht,bottomDescription:_ht,filtersContainer:Eht,filtersOpen:wht,filtersVisible:kht,filtersFilterIcon:Aht,filtersWindow:Cht,filtersHeader:Nht,filtersLabel:Iht,filtersAction:Oht,filtersDismissIcon:Dht,filtersUndoIcon:xht,filters:Mht,filterContainer:Rht,filterIconContainer:Pht,filterDownIcon:Fht,filterActive:Lht,filter:Bht,section:$ht,departments:Uht,departmentHeading:Hht,departmentHeadingLevel:Vht,jobPosting:zht,title:qht,details:Wht,detailsCompensation:jht,visuallyHidden:Ght},Dt=({children:e,className:t,usageNotes:n,propertyToSet:r="className"})=>Z.cloneElement(e,{[r]:e.props[r]?`${e.props[r]} ${t}`:t}),bve=N.createContext(null),Tve=({name:e,hasFinished:t,hasErrored:n})=>{const r=N.useContext(bve);N.useEffect(()=>{if(!r){Jn(new Error("Unwrapped call not supported"));return}const{timingBase:i,isInitialNavigation:a}=r;if(t)try{const o=window.performance.now();ug.addAction(e,{timingSinceNavigation:o-i,timingSinceLoad:o,isInitialNavigation:a,success:!n})}catch{Jn(new Error("Failed to record timing for render"))}},[e,t,n,r])},Jht=e=>{const t=N.useRef(void 0);return{startTiming:()=>{try{t.current=window.performance.now()}catch{Jn(new Error("Failed to record start time"))}},endTiming:i=>{if(!t.current){Jn(new Error("Unexpected lack of start time"));return}try{const a=window.performance.now();ug.addAction(e,{duration:a-t.current,success:!i})}catch{Jn(new Error("Failed to record timing for action"))}t.current=void 0}}},_ve=({children:e})=>{const t=Cs(),n=N.useRef(t),r=N.useRef(0),i=N.useCallback(()=>{try{const a=window.performance.now();r.current=a,n.current=t}catch{Jn(new Error("Failed to correctly reset timing base"))}},[]);return t!==n.current&&i(),S(bve.Provider,{value:{timingBase:r.current,isInitialNavigation:r.current!==0},children:e})};function lV({message:e,payload:t,sendOnMount:n=!1}){const r=im(),[i,a]=N.useState(n?null:t);N.useEffect(function(){const o=s=>{const l=s.data;if(typeof l!="string")return;const u=l.split("=");u[0]===`ack_${e}`&&a(u[1])};return window.addEventListener("message",o,!1),()=>window.removeEventListener("message",o,!1)},[e]),N.useEffect(function(){let l=0,u;const c=()=>{if(l<75){const d=t?`${e}=${t}`:e;window.parent.postMessage(d,"*"),l++}else clearInterval(u)};return i!==t&&r===ff.JS&&(c(),u=setInterval(c,200)),()=>{clearInterval(u)}},[r,e,t,i])}function Ec({rules:e}){return Z.useEffect(()=>{const t=document.head.querySelector('meta[name="robots"]');return t==null||t.remove(),t!=null?()=>document.head.appendChild(t):li},[]),Z.useEffect(()=>{const t=document.createElement("meta");return t.name="robots",t.content=Array.isArray(e)?e.join(", "):e,document.head.appendChild(t),()=>t.remove()},[e]),null}const{jobBoard:Yht}=va();function Kht(){var l,u;const e=im(),t=$f(),n=xu(),{data:r,loading:i,error:a}=pr(RXe,{variables:{organizationHostedJobsPageName:n},fetchPolicy:"cache-and-network"});function o(c){if(c.length>0){const f=c.at(-1).contentRect.height;window.parent.postMessage(f,"*")}}if(N.useLayoutEffect(()=>{if(window.ResizeObserver!=null){let c=new ResizeObserver(o);return c.observe(document.body),()=>{c&&(c.disconnect(),c=null)}}},[]),lV({message:"reset_jid",sendOnMount:!0}),Tve({name:"jobBoards.postingsList.loaded",hasFinished:!i,hasErrored:!!a}),a)return F(St,{children:[J0(e)?null:S(fr,{}),S(Yn,{title:"We couldn't retrieve jobs:",children:S(IN,{message:Gt(a)})})]});const s=(r==null?void 0:r.jobBoard)??Yht;return i&&!s?F(St,{children:[J0(e)?null:S(fr,{}),S(oV,{children:S($H,{})})]}):s?F(St,{children:[S(Co,{title:`${t.name||n} Jobs`}),S(Ec,{rules:t.allowJobPostIndexing?"all":"noindex"}),J0(e)?null:S(fr,{}),S(Qht,{showTeams:(l=t.theme)==null?void 0:l.showTeams,showJobFilters:(u=t.theme)==null?void 0:u.showJobFilters,jobPostings:s.jobPostings,teams:s.teams})]}):S("div",{children:"Error"})}function Qht({jobPostings:e,teams:t,showTeams:n,showJobFilters:r}){var v,y;const i=Au(),a=Cs(),o=$f(),s=G0.parse(a.search,{parseBooleans:!0}),{departmentId:l,locationId:u,employmentType:c,...d}=s,f={departmentId:l,locationId:u,employmentType:c};lV({message:"set_filters",payload:JSON.stringify(f)});const p=(b,T)=>{const _=G0.stringify({...f,[b]:T,...d},{skipEmptyString:!0});i.push({pathname:a.pathname,search:_})},m=()=>{const b=G0.stringify(d,{skipEmptyString:!0});i.push({pathname:a.pathname,search:b})},{jobTrees:h,openPositionCount:g}=N.useMemo(()=>{const b=vXe({jobPostings:e,teams:t,showTeams:n});TXe(b,f);const T=bXe(b);return{jobTrees:b,openPositionCount:T}},[e,t,n,f.departmentId,f.locationId,f.employmentType]);return S(Dt,{propertyToSet:"customCssTitleClass",className:Xa.JobBoardHeading,usageNotes:"The heading of the entire job board.",children:F(Yn,{titleAttributes:{role:"status","aria-live":"polite","aria-atomic":"true"},title:F(St,{children:["Open Positions"," ",S(Dt,{className:Xa.JobBoardHeadingCount,usageNotes:"The count of job postings on the job board.",children:F("span",{children:["(",g,")"]})})]}),aboveTitle:(v=o.theme)!=null&&v.jobBoardTopDescriptionHtml?S("div",{className:fn.topDescription,dangerouslySetInnerHTML:{__html:o.theme.jobBoardTopDescriptionHtml}}):void 0,className:`${fn.section}`,children:[r&&S(Zht,{filters:f,departmentTrees:h,onChange:p,onReset:m,showTeams:n||!1}),S("div",{className:fn.departments,children:h.map(b=>S(Eve,{jobTree:b},b.departmentId))}),((y=o.theme)==null?void 0:y.jobBoardBottomDescriptionHtml)&&S("div",{className:fn.bottomDescription,dangerouslySetInnerHTML:{__html:o.theme.jobBoardBottomDescriptionHtml}})]})})}function Zht({filters:e,departmentTrees:t,onChange:n,onReset:r,showTeams:i}){const a=Ou(),o=Sge(),s=!!(e.departmentId||e.employmentType||e.locationId),[l,u]=N.useState(s),{departmentOptions:c,locationOptions:d,employmentTypeOptions:f}=N.useMemo(()=>{const v=[],y=new Map,b=new Set;for(const[T,_]of Ub(t)){(i||_===0)&&v.push([T.departmentId," ".repeat(_)+T.departmentName]);for(const E of T.jobPostings){y.has(E.locationId)||y.set(E.locationId,E.locationName);for(const k of E.secondaryLocations)y.has(k.locationId)||y.set(k.locationId,k.locationName);b.add(E.employmentType)}}return{departmentOptions:v.map(([T,_])=>({label:_,value:T})),locationOptions:Array.from(y).sort(Ire).map(([T,_])=>({label:_,value:T})),employmentTypeOptions:[...b].sort((T,_)=>Ire([T,Wh(T)],[_,Wh(_)])).map(T=>({label:Wh(T),value:T}))}},[t]),p=N.useMemo(()=>[...c,...d,...f],[c,d,f]),m=v=>{n(v.target.name,v.target.value)},h=N.useMemo(()=>tgt(e,p),[e,p]),g=F(St,{children:[F("div",{className:fn.filtersHeader,children:[S("div",{className:fn.filtersLabel,children:"Filters:"}),o?F("button",{className:fn.filtersAction,disabled:!s,tabIndex:s?0:-1,onClick:r,children:[S(Ste,{className:fn.filtersUndoIcon})," Reset filters"]}):S("button",{className:fn.filtersAction,onClick:s?r:()=>u(!1),title:s?"Reset filters":"Close filters",children:s?S(Ste,{className:fn.filtersUndoIcon}):S(gH,{className:fn.filtersDismissIcon})})]}),F("div",{className:fn.filters,children:[S(lD,{label:"Department",name:"departmentId",value:e.departmentId||"",onChange:m,title:"Department",options:c}),S(lD,{label:"Location",name:"locationId",value:e.locationId||"",onChange:m,title:"Location",options:d}),S(lD,{label:"Employment",name:"employmentType",value:e.employmentType||"",onChange:m,title:"Employment Type",options:f})]}),S("div",{className:fn.visuallyHidden,role:"status","aria-live":"polite",children:!h||h.length===0?"No filters applied":F(St,{children:[h.length," Filters applied: ",h.join(", ")]})})]});return a?F("div",{className:[fn.filtersContainer,l?fn.filtersVisible:void 0].join(" "),children:[S("div",{className:fn.filtersWindow,children:g}),S("button",{className:fn.filtersOpen,onClick:()=>u(v=>!v),tabIndex:l?-1:0,disabled:l,children:"Filter Open Positions..."})]}):S("div",{className:fn.filtersContainer,children:g})}function lD({title:e,options:t,value:n,label:r,...i}){return F("div",{className:fn.filterContainer,children:[S(Dt,{className:Xa.JobBoardFilter,usageNotes:"A select box element for filtering the job board.",children:F("select",{"aria-label":r,value:n,className:[fn.filter,n?fn.filterActive:void 0].join(" "),...i,children:[S("option",{value:"",hidden:!0,disabled:!0,children:e}),F("option",{value:"",children:["All ",e,"s"]}),t.map(a=>S("option",{value:a.value,children:a.label},a.value))]})}),S("div",{className:fn.filterIconContainer,children:S($1,{className:[fn.filterDownIcon,n?fn.filterActive:void 0].join(" ")})})]})}function Eve({jobTree:e}){const t=SXe(e);return F(St,{children:[e.jobPostings.length?F(St,{children:[S(Dt,{className:Xa.DepartmentHeading,usageNotes:"The heading of a department, which can have many teams under it.",children:S("h2",{className:`${fn.departmentHeading}`,children:S(Xht,{departmentNames:t})})}),S(Dt,{className:Xa.JobPostingBriefList,usageNotes:"The container for the list of job post briefings.",children:S("div",{children:e.jobPostings.map(n=>S(egt,{jobPosting:n,jobTree:e},n.id))})})]}):null,e.children.map(n=>S(Eve,{jobTree:n},n.departmentId))]})}const Xht=({departmentNames:e})=>S(St,{children:e.map((t,n)=>S(Dt,{className:Xa.DepartmentHeadingLevel,usageNotes:"The heading of a single team.",children:S("span",{className:[fn.departmentHeadingLevel].join(" "),children:t})},n))});function Nre({jobPosting:e,jobTree:t}){return S(Dt,{className:Xa.JobPostingBrief,usageNotes:"The container of the job posting details pane.",children:F(Ze,{className:fn.jobPosting,children:[S(Dt,{className:Xa.JobPostingBriefTitle,usageNotes:"The title of the job posting in the details pane.",children:S("h3",{className:fn.title,children:e.title})}),S(Dt,{className:Xa.JobPostingBriefDetails,usageNotes:"The container for the details of the job posting, in the details pane.",children:F("div",{className:fn.details,children:[F("p",{children:[t.departmentName," • ",e.locationName,e.secondaryLocations.map(n=>`; ${n.locationName}`)," •"," ",Wh(e.employmentType)]}),e.compensationTierSummary!=null&&S("p",{className:fn.detailsCompensation,children:e.compensationTierSummary})]})})]})})}function egt({jobPosting:e,jobTree:t}){const n=Cs(),r=im(),i=$f(),a=xu(),o=n.search,s=Bn(pt.JobPosting,{jobPostingId:e.id,organizationHostedJobsPageName:a});if(r===ff.JS&&i.customJobsPageUrl){const l=new URLSearchParams(o),u=new URLSearchParams;u.append("ashby_jid",e.id);const c=l.get("utm_source");return c&&u.set("utm_source",encodeURIComponent(c)),S(Sve,{url:i.customJobsPageUrl,urlSearchParams:u,target:{search:o,pathname:s},children:S(Nre,{jobPosting:e,jobTree:t})})}else return S(sV,{to:{search:o,pathname:s},children:S(Nre,{jobPosting:e,jobTree:t})})}function Ire([e,t],[n,r]){return e===""?-1:n===""?1:t{var i;return(i=t.find(a=>a.value===r))==null?void 0:i.label})}const wve="ashby_utm_source";function ngt(){let e=G0.parse(location.search).utm_source;if(typeof e!="string"&&(e=void 0),typeof e=="string")try{window.localStorage.setItem(wve,e)}catch{}}function kve(){try{return window.localStorage.getItem(wve)}catch{}}const rgt="_tabs_4fqrp_30",igt="_sticky_4fqrp_36",agt="_back_4fqrp_44",ogt="_tab_4fqrp_30",sgt="_active_4fqrp_60",lgt="_slider_4fqrp_69",ugt="_errorsContainer_4fqrp_81",cgt="_errors_4fqrp_81",dgt="_section_4fqrp_90",fgt="_sectionHeader_4fqrp_97",pgt="_title_4fqrp_103",mgt="_sectionDescription_4fqrp_109",hgt="_error_4fqrp_81",ggt="_descriptionText_4fqrp_201",vgt="_departmentHeadings_4fqrp_280",ygt="_departmentHeading_4fqrp_280",Sgt="_compensationTierList_4fqrp_308",bgt="_compensationTierListItem_4fqrp_314",Tgt="_compensationTitle_4fqrp_324",_gt="_compensationTierSummary_4fqrp_330",Egt="_compensationTierGuideLink_4fqrp_339",wgt="_compensationPhilosophy_4fqrp_345",kgt="_expandCompensationTiersButton_4fqrp_371",Agt="_jobPostingForm_4fqrp_402",Cgt="_description_4fqrp_201",Ngt="_submitButton_4fqrp_411",Igt="_details_4fqrp_417",Ogt="_left_4fqrp_421",Dgt="_applicationLimitCallout_4fqrp_447",xgt="_autofillPane_4fqrp_448",Mgt="_centerLoading_4fqrp_452",Rgt="_recruitingPrivacyPolicyContainer_4fqrp_459",Pgt="_recruitingPrivacyPolicy_4fqrp_459",qt={tabs:rgt,sticky:igt,back:agt,tab:ogt,active:sgt,slider:lgt,errorsContainer:ugt,errors:cgt,section:dgt,sectionHeader:fgt,title:pgt,sectionDescription:mgt,error:hgt,descriptionText:ggt,departmentHeadings:vgt,departmentHeading:ygt,compensationTierList:Sgt,compensationTierListItem:bgt,compensationTitle:Tgt,compensationTierSummary:_gt,compensationTierGuideLink:Egt,compensationPhilosophy:wgt,expandCompensationTiersButton:kgt,jobPostingForm:Agt,description:Cgt,submitButton:Ngt,details:Igt,left:Ogt,applicationLimitCallout:Dgt,autofillPane:xgt,centerLoading:Mgt,recruitingPrivacyPolicyContainer:Rgt,recruitingPrivacyPolicy:Pgt},Ma=N.createContext({formRenderId:"",formDefinitionId:"",organizationHostedJobsPageName:"",candidateTextingConsent:{shouldAskForTextingConsent:!1}});function eT({formRenderId:e,formDefinitionId:t,organizationHostedJobsPageName:n,candidateTextingConsent:r={shouldAskForTextingConsent:!1},...i}){const a=N.useMemo(function(){return{formRenderId:e,organizationHostedJobsPageName:n,formDefinitionId:t,candidateTextingConsent:r}},[e,n,t,r]);return S(Ma.Provider,{value:a,...i})}const Fgt="_container_y2cw4_29",Lgt="_option_y2cw4_33",Bgt="_active_y2cw4_58",$gt="_input_y2cw4_79",Zf={container:Fgt,option:Lgt,active:Bgt,input:$gt};function Ave({onChange:e,value:t,disabled:n,className:r,name:i}){function a(l){e&&e(l.target.checked)}function o(){e&&e(t===!0?void 0:!0)}function s(){e&&e(t===!1?void 0:!1)}return F("div",{className:[Zf.container,r,n?Zf.disabled:""].join(" "),children:[S(TS,{className:[Zf.option,t===!0?Zf.active:""].join(" "),onClick:o,disabled:n,children:"Yes"}),S(TS,{className:[Zf.option,t===!1?Zf.active:""].join(" "),onClick:s,disabled:n,children:"No"}),S("input",{type:"checkbox",onChange:a,checked:t??!1,disabled:n,className:Zf.input,tabIndex:-1,name:i})]})}const Ugt="_fieldEntry_hkyf8_29",Hgt="_input_hkyf8_33",Vgt="_required_hkyf8_38",zgt="_label_hkyf8_43",qgt="_description_hkyf8_49",Wgt="_phoneNumberConsentLegalText_hkyf8_134",jgt="_yesno_hkyf8_143",Ga={fieldEntry:Ugt,input:Hgt,required:Vgt,label:zgt,description:qgt,phoneNumberConsentLegalText:Wgt,yesno:jgt};function Ggt({field:e,savedValue:t,onChangeIsSettingValue:n}){const{formRenderId:r,organizationHostedJobsPageName:i,formDefinitionId:a}=N.useContext(Ma),[o,s]=N.useState(t),[l,{loading:u}]=$t(Dl,{onError:Jn});N.useEffect(function(){t!==o&&l({variables:{organizationHostedJobsPageName:i,formRenderIdentifier:r,path:e.path,value:o,formDefinitionIdentifier:a}})},[o]),N.useEffect(function(){n(e.path,u)},[u]);function c(d){s(d)}return S(Ave,{value:o,onChange:c,name:e.path,className:Ga.yesno})}var Jgt=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function UN(e,t){var n=Ygt(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Ygt(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Jgt.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var Kgt=[".DS_Store","Thumbs.db"];function Qgt(e){return Zo(this,void 0,void 0,function(){return Xo(this,function(t){return[2,Zgt(e)&&e.dataTransfer?t1t(e.dataTransfer,e.type):Xgt(e)]})})}function Zgt(e){return!!e.dataTransfer}function Xgt(e){var t=e1t(e.target)?e.target.files?qP(e.target.files):[]:[];return t.map(function(n){return UN(n)})}function e1t(e){return e!==null}function t1t(e,t){return Zo(this,void 0,void 0,function(){var n,r;return Xo(this,function(i){switch(i.label){case 0:return e.items?(n=qP(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(n1t))]):[3,2];case 1:return r=i.sent(),[2,Ore(Cve(r))];case 2:return[2,Ore(qP(e.files).map(function(a){return UN(a)}))]}})})}function Ore(e){return e.filter(function(t){return Kgt.indexOf(t.name)===-1})}function qP(e){for(var t=[],n=0;n=t&&e.size<=n;if(Uv(t))return e.size>=t;if(Uv(n))return e.size<=n}return!0}function Uv(e){return e!=null}function o1t(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple;return!a&&t.length>1?!1:t.every(function(o){return Ive(o,n)&&Ove(o,r,i)})}function T6(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function A_(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function xre(e){e.preventDefault()}function s1t(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function l1t(e){return e.indexOf("Edge/")!==-1}function u1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return s1t(e)||l1t(e)}function Ml(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Dve=N.forwardRef(function(e,t){var n=e.children,r=_6(e,["children"]),i=uV(r),a=i.open,o=_6(i,["open"]);return N.useImperativeHandle(t,function(){return{open:a}},[a]),Z.createElement(N.Fragment,null,n(Ys({},o,{open:a})))});Dve.displayName="Dropzone";Dve.propTypes={children:Zn.func,accept:Zn.oneOfType([Zn.string,Zn.arrayOf(Zn.string)]),multiple:Zn.bool,preventDropOnDocument:Zn.bool,noClick:Zn.bool,noKeyboard:Zn.bool,noDrag:Zn.bool,noDragEventsBubbling:Zn.bool,minSize:Zn.number,maxSize:Zn.number,disabled:Zn.bool,getFilesFromEvent:Zn.func,onFileDialogCancel:Zn.func,onDragEnter:Zn.func,onDragLeave:Zn.func,onDragOver:Zn.func,onDrop:Zn.func,onDropAccepted:Zn.func,onDropRejected:Zn.func};var y1t={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function uV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.accept,n=e.disabled,r=n===void 0?!1:n,i=e.getFilesFromEvent,a=i===void 0?Qgt:i,o=e.maxSize,s=o===void 0?1/0:o,l=e.minSize,u=l===void 0?0:l,c=e.multiple,d=c===void 0?!0:c,f=e.onDragEnter,p=e.onDragLeave,m=e.onDragOver,h=e.onDrop,g=e.onDropAccepted,v=e.onDropRejected,y=e.onFileDialogCancel,b=e.preventDropOnDocument,T=b===void 0?!0:b,_=e.noClick,E=_===void 0?!1:_,k=e.noKeyboard,A=k===void 0?!1:k,D=e.noDrag,R=D===void 0?!1:D,B=e.noDragEventsBubbling,H=B===void 0?!1:B,L=N.useRef(null),V=N.useRef(null),U=N.useReducer(S1t,y1t),J=p1t(U,2),re=J[0],X=J[1],j=re.isFocused,te=re.isFileDialogActive,M=re.draggedFiles,W=N.useCallback(function(){V.current&&(X({type:"openDialog"}),V.current.value=null,V.current.click())},[X]),ce=function(){te&&setTimeout(function(){if(V.current){var ee=V.current.files;ee.length||(X({type:"closeDialog"}),typeof y=="function"&&y())}},300)};N.useEffect(function(){return window.addEventListener("focus",ce,!1),function(){window.removeEventListener("focus",ce,!1)}},[V,te,y]);var ue=N.useCallback(function($){!L.current||!L.current.isEqualNode($.target)||($.keyCode===32||$.keyCode===13)&&($.preventDefault(),W())},[L,V]),he=N.useCallback(function(){X({type:"focus"})},[]),Ce=N.useCallback(function(){X({type:"blur"})},[]),fe=N.useCallback(function(){E||(u1t()?setTimeout(W,0):W())},[V,E]),ge=N.useRef([]),de=function(ee){L.current&&L.current.contains(ee.target)||(ee.preventDefault(),ge.current=[])};N.useEffect(function(){return T&&(document.addEventListener("dragover",xre,!1),document.addEventListener("drop",de,!1)),function(){T&&(document.removeEventListener("dragover",xre),document.removeEventListener("drop",de))}},[L,T]);var Re=N.useCallback(function($){$.preventDefault(),$.persist(),q($),ge.current.indexOf($.target)===-1&&(ge.current=[].concat(Mre(ge.current),[$.target])),A_($)&&Promise.resolve(a($)).then(function(ee){T6($)&&!H||(X({draggedFiles:ee,isDragActive:!0,type:"setDraggedFiles"}),f&&f($))})},[a,f,H]),De=N.useCallback(function($){if($.preventDefault(),$.persist(),q($),$.dataTransfer)try{$.dataTransfer.dropEffect="copy"}catch{}return A_($)&&m&&m($),!1},[m,H]),Me=N.useCallback(function($){$.preventDefault(),$.persist(),q($);var ee=ge.current.filter(function(pe){return pe!==$.target&&L.current&&L.current.contains(pe)});ge.current=ee,!(ee.length>0)&&(X({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),A_($)&&p&&p($))},[L,p,H]),Ve=N.useCallback(function($){$.preventDefault(),$.persist(),q($),ge.current=[],A_($)&&Promise.resolve(a($)).then(function(ee){if(!(T6($)&&!H)){var pe=[],I=[];ee.forEach(function(w){Ive(w,t)&&Ove(w,u,s)?pe.push(w):I.push(w)}),!d&&pe.length>1&&I.push.apply(I,Mre(pe.splice(0))),X({acceptedFiles:pe,rejectedFiles:I,type:"setFiles"}),h&&h(pe,I,$),I.length>0&&v&&v(I,$),pe.length>0&&g&&g(pe,$)}}),X({type:"reset"})},[d,t,u,s,a,h,g,v,H]),dt=function(ee){return r?null:ee},Nt=function(ee){return A?null:dt(ee)},P=function(ee){return R?null:dt(ee)},q=function(ee){H&&ee.stopPropagation()},Y=N.useMemo(function(){return function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee=$.refKey,pe=ee===void 0?"ref":ee,I=$.onKeyDown,w=$.onFocus,C=$.onBlur,x=$.onClick,z=$.onDragEnter,Q=$.onDragOver,ae=$.onDragLeave,Fe=$.onDrop,Ut=_6($,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return Ys(WP({onKeyDown:Nt(Ml(I,ue)),onFocus:Nt(Ml(w,he)),onBlur:Nt(Ml(C,Ce)),onClick:dt(Ml(x,fe)),onDragEnter:P(Ml(z,Re)),onDragOver:P(Ml(Q,De)),onDragLeave:P(Ml(ae,Me)),onDrop:P(Ml(Fe,Ve))},pe,L),!r&&!A?{tabIndex:0}:{},{},Ut)}},[L,ue,he,Ce,fe,Re,De,Me,Ve,A,R,r]),Se=N.useCallback(function($){$.stopPropagation()},[]),ye=N.useMemo(function(){return function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee=$.refKey,pe=ee===void 0?"ref":ee,I=$.onChange,w=$.onClick,C=_6($,["refKey","onChange","onClick"]),x=WP({accept:t,multiple:d,type:"file",style:{display:"none"},onChange:dt(Ml(I,Ve)),onClick:dt(Ml(w,Se)),autoComplete:"off",tabIndex:-1},pe,V);return Ys({},x,{},C)}},[V,t,d,Ve,r]),Te=M.length,Ye=Te>0&&o1t({files:M,accept:t,minSize:u,maxSize:s,multiple:d}),ft=Te>0&&!Ye;return Ys({},re,{isDragAccept:Ye,isDragReject:ft,isFocused:j&&!r,getRootProps:Y,getInputProps:ye,rootRef:L,inputRef:V,open:dt(W)})}function S1t(e,t){switch(t.type){case"focus":return Ys({},e,{isFocused:!0});case"blur":return Ys({},e,{isFocused:!1});case"openDialog":return Ys({},e,{isFileDialogActive:!0});case"closeDialog":return Ys({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Ys({},e,{draggedFiles:r,isDragActive:n});case"setFiles":return Ys({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return Ys({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return e}}const b1t="_dragInstructions_6k3nb_29",T1t="_instructions_6k3nb_34",_1t="_name_6k3nb_42",E1t="_icon_6k3nb_48",w1t="_loadingIcon_6k3nb_49",k1t="_container_6k3nb_71",A1t="_file_6k3nb_77",C1t="_removeButton_6k3nb_84",N1t="_button_6k3nb_107",I1t="_dragging_6k3nb_147",po={dragInstructions:b1t,instructions:T1t,name:_1t,icon:E1t,loadingIcon:w1t,container:k1t,file:A1t,removeButton:C1t,button:N1t,dragging:I1t},O1t=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],D1t=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],x1t=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],M1t=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Pre=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};var R1t=(e,t)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t=Object.assign({bits:!1,binary:!1},t);const n=t.bits?t.binary?M1t:x1t:t.binary?D1t:O1t;if(t.signed&&e===0)return` 0 ${n[0]}`;const r=e<0,i=r?"-":t.signed?"+":"";r&&(e=-e);let a;if(t.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(a=Object.assign({maximumFractionDigits:t.maximumFractionDigits},a)),e<1){const u=Pre(e,t.locale,a);return i+u+" "+n[0]}const o=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=Math.pow(t.binary?1024:1e3,o),a||(e=e.toPrecision(3));const s=Pre(Number(e),t.locale,a),l=n[o];return i+s+" "+l};const xve=ao(R1t),Mve=[".pdf",".doc",".docx",".odt",".rtf","image/*","video/*","audio/*",...Ahe],P1t=e=>"id"in e?e.id:e.name,C_=e=>e.multiple,Fre=e=>e.name!=null;function Rve(e){const{createToast:t}=N.useContext(un),{isDisabled:n,isUploading:r,priority:i,isRequired:a,children:o,allowedFileTypes:s=Mve,multiple:l,maxSize:u=fhe,id:c}=e,{getRootProps:d,open:f,getInputProps:p,isDragActive:m}=uV({accept:s??void 0,multiple:l,disabled:n||r,noClick:!0,noKeyboard:!0,maxSize:u,onDropRejected:(v,y)=>{v.some(T=>T.size>u)&&t(gt.Warning,`Some files were not accepted because they are too large (greater than ${xve(u,{maximumFractionDigits:0})}).`)},onDropAccepted:(v,y)=>{C_(e)?e.onSaveValue(v):e.onSaveValue(v.at(0))}}),h=v=>()=>{C_(e)?e.onRemoveValue(v):e.onSaveValue(void 0)},g=((C_(e)?e.value:[e.value])??[]).filter(v=>v!=null);return F("div",{...d({className:[po.container,m?po.dragging:""].join(" ")}),children:[S("input",{...p(),id:c,required:a}),g.map(v=>F("div",{className:po.file,children:[F("p",{className:po.name,children:[r?S(K0,{className:po.loadingIcon}):S(HE,{className:po.icon}),S("span",{children:Fre(v)?v.name:v.filename})]}),r||Fre(v)?"":S(jt,{priority:Tt.Quaternary,className:po.removeButton,highlight:wt.Negative,onClick:h(v.id),children:S(AN,{})})]},P1t(v))),C_(e)?F("div",{className:po.instructions,children:[F(jt,{priority:i,disabled:n||g.length>0&&r,className:po.button,onClick:f,isLoading:r,children:[S(HE,{}),S("span",{children:g.length>0?"Add":o})]}),S("p",{className:po.dragInstructions,children:"or drag and drop here"})]}):F("div",{className:po.instructions,children:[F(jt,{priority:i,disabled:n||r,className:po.button,onClick:f,isLoading:g.length===0&&r,children:[g.length>0?"":S(HE,{}),S("span",{children:g.length>0?"Replace":o})]}),S("p",{className:po.dragInstructions,children:"or drag and drop here"})]})]})}function cV({organizationHostedJobsPageName:e,fileUploadContext:t,sizeLimit:n}){const[r]=$t(BXe);return N.useMemo(()=>({uploadFile:async i=>{if(n!=null&&i.size>n)return{file:i,handle:null,message:`${i.name} is too large`};const{data:a}=await r({variables:{fileUploadContext:t,organizationHostedJobsPageName:e,filename:i.name,contentType:i.type,contentLength:i.size},onError:()=>{}}),o=a==null?void 0:a.fileUploadHandle;if(o==null)return{file:i,handle:null};const s=new FormData;s.append("Content-Type",i.type);for(const[u,c]of Object.entries(o.fields))s.append(u,c);return s.append("file",i),(await fetch(o.url,{method:"POST",body:s})).ok?{file:i,handle:o.handle}:{file:i,handle:null}}}),[e,t,r])}function F1t({field:e,savedFile:t,isDisabled:n,isRequired:r,onChangeIsSettingValue:i}){const[a,o]=N.useState(!1),{createToast:s}=N.useContext(un),{formRenderId:l,organizationHostedJobsPageName:u,formDefinitionId:c}=N.useContext(Ma),[d,{loading:f}]=$t(FXe,{onError(y){s(gt.Error,Gt(y)),h(t?{name:t.filename}:void 0)}}),p=f||a,[m,h]=N.useState(),{uploadFile:g}=cV({organizationHostedJobsPageName:u,fileUploadContext:bN.NonUserFormEngine});N.useEffect(function(){(!m||!t||m.name!==t.filename)&&h(t?{name:t.filename}:void 0)},[t&&t.filename]),N.useEffect(function(){i(e.path,p)},[p]);function v(y){p||(h(y),y==null?d({variables:{organizationHostedJobsPageName:u,formRenderIdentifier:l,path:e.path,fileHandle:null,formDefinitionIdentifier:c}}):(o(!0),g(y).then(b=>{o(!1),b.handle!=null?d({variables:{organizationHostedJobsPageName:u,formRenderIdentifier:l,path:e.path,fileHandle:b.handle,formDefinitionIdentifier:c}}):s(gt.Error,`${y.name} failed to upload`)}).catch(()=>{o(!1),s(gt.Error,`${y.name} failed to upload`)})))}return S(Rve,{priority:Tt.Secondary,onSaveValue:v,value:m,isDisabled:n,isUploading:p,isRequired:r,multiple:!1,allowedFileTypes:Mve,id:e.path,children:S("span",{children:"Upload File"})})}var L1t=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const Pve=ao(L1t),B1t="_container_ruukg_29",$1t="_circle_ruukg_74",U1t="_checked_ruukg_87",uD={container:B1t,circle:$1t,checked:U1t};function H1t({onChange:e,checked:t,disabled:n,forwardedRef:r,...i}){const a=[uD.container];function o(l){e&&e(l.target.checked)}function s(){t&&e&&e(!1)}return t&&a.push(uD.checked),F("span",{className:a.join(" "),"data-disabled":n,children:[S("span",{className:uD.circle}),S("input",{type:"radio",onChange:o,onClick:s,checked:t,disabled:n,ref:r,...i})]})}const V1t=N.forwardRef((e,t)=>S(H1t,{forwardedRef:t,...e})),z1t="_container_1v5e2_29",q1t="_option_1v5e2_35",W1t="_label_1v5e2_43",j1t="_checked_1v5e2_58",Fd={container:z1t,option:q1t,label:W1t,checked:j1t};function G1t({fieldEntryId:e,labeledValues:t,value:n,onChange:r,isDisabled:i,className:a,children:o}){return F("fieldset",{className:[Fd.container,a].join(" "),children:[o,t.map((s,l)=>{function u(c){r(c?s.value:void 0)}return S(J1t,{fieldEntryId:e,index:l,checked:n===s.value,onChange:u,idAndName:s.label,label:s.label,disabled:i},s.label)})]})}function J1t({fieldEntryId:e,idAndName:t,index:n,label:r,checked:i,...a}){const o=`${e}-labeled-radio-${n}`;return F("div",{className:[Fd.option,i].join(" "),children:[S(V1t,{...a,id:o,name:e,checked:i}),S("label",{htmlFor:o,className:[Fd.label,i?Fd.checked:""].join(" "),children:r})]})}function Y1t({labeledValues:e,selectedValues:t,fieldEntryId:n,onChange:r,isDisabled:i,className:a,children:o}){return F("fieldset",{className:[Fd.container,a].join(" "),children:[o,e.map((s,l)=>{const u=t.findIndex(f=>f===s.value),c=u>=0;function d(f){if(f)c||r([...t,s.value]);else if(c){const p=[...t];p.splice(u,1),r(p)}}return S(K1t,{index:l,fieldEntryId:n,checked:c,onChange:d,idAndName:s.label,label:s.label,disabled:i},s.label)})]})}function K1t({idAndName:e,fieldEntryId:t,index:n,label:r,checked:i,...a}){const o=`${t}-labeled-checkbox-${n}`;return F("div",{className:Fd.option,children:[S(M1e,{...a,id:o,name:e,checked:i}),S("label",{htmlFor:o,className:[Fd.label,i?Fd.checked:""].join(" "),children:r})]})}function Q1t({field:e,fieldEntryId:t,savedValue:n,isDisabled:r,onChangeIsSettingValue:i,className:a,children:o}){const[s,l]=N.useState(n||Lre),{formRenderId:u,organizationHostedJobsPageName:c,formDefinitionId:d}=N.useContext(Ma),[f,{loading:p}]=$t(Dl,{onError:Jn});N.useEffect(function(){i(e.path,p)},[p]);function m(h){l(h)}return N.useEffect(function(){Pve(s,n)||Object.is(s,Lre)||f({variables:{organizationHostedJobsPageName:c,formRenderIdentifier:u,path:e.path,value:s,formDefinitionIdentifier:d}})},[s]),S(Y1t,{fieldEntryId:t,selectedValues:s,labeledValues:e.selectableValues,onChange:m,isDisabled:r,className:a,children:o})}const Lre=[];function W1(e,t,n=[]){const r=N.useRef(e),i=N.useRef();return N.useEffect(()=>{r.current=e},[e]),N.useEffect(()=>{function a(){r.current()}if(t!==null){i.current&&clearTimeout(i.current);const o=window.setTimeout(a,t);return i.current=o,function(){clearTimeout(o)}}},[t,...n]),i.current}const Z1t="_input_1wkz4_28",X1t="_greedy_1wkz4_59",Bre={input:Z1t,greedy:X1t},evt=({className:e,onChange:t,isInteger:n,isGreedy:r,value:i,onBlur:a,...o})=>{const[s,l]=N.useState(`${i}`);function u(){if(!t)return s;const p=n?Number.parseInt(s,10):Number.parseFloat(s);return i!==p&&t(p),p}const c=W1(u,500,[s]);function d(p){a&&a(p),c&&clearTimeout(c),l(`${u()}`)}function f(p){t&&l(p.target.value)}return S("input",{...o,value:s||void 0,type:"number",className:[e,Bre.input,r?Bre.greedy:void 0].join(" "),onChange:f,onBlur:d})};function tvt({field:e,isDisabled:t,isRequired:n,savedValue:r,onChangeIsSettingValue:i}){const[a,o]=N.useState(r),{formRenderId:s,organizationHostedJobsPageName:l,formDefinitionId:u}=N.useContext(Ma),[c,{loading:d}]=$t(Dl,{onError:Jn});function f(){r!==a&&c({variables:{organizationHostedJobsPageName:l,formRenderIdentifier:s,path:e.path,value:a,formDefinitionIdentifier:u}})}const p=W1(f,500,[a]);N.useEffect(function(){i(e.path,d)},[d]);function m(v){o(v)}function h(){p&&clearTimeout(p),f()}const g="Type here...";return S(evt,{required:n,className:Ga.input,onChange:m,onBlur:h,value:a,placeholder:g,disabled:t,name:e.path,id:e.path})}var HN={exports:{}},Fve={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Lve=Object.keys(Fve).join("|"),nvt=new RegExp(Lve,"g"),rvt=new RegExp(Lve,"");function ivt(e){return Fve[e]}var Bve=function(e){return e.replace(nvt,ivt)},avt=function(e){return!!e.match(rvt)};HN.exports=Bve;HN.exports.has=avt;HN.exports.remove=Bve;var ovt=HN.exports;const svt=ao(ovt);/** * @name match-sorter * @license MIT license. * @copyright (c) 2020 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) */const aa={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},lvt=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function $ve(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=aa.MATCHES,baseSort:a=lvt,sorter:o=u=>u.sort((c,d)=>fvt(c,d,a))}=n,s=e.reduce(l,[]);return o(s).map(u=>{let{item:c}=u;return c});function l(u,c,d){const f=uvt(c,r,t,n),{rank:p,keyThreshold:m=i}=f;return p>=m&&u.push({...f,item:c,index:d}),u}}$ve.rankings=aa;function uvt(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:$re(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return hvt(e,t).reduce((a,o,s)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:d}=a,{itemValue:f,attributes:p}=o,m=$re(f,n,r),h=u;const{minRanking:g,maxRanking:v,threshold:y}=p;return m=aa.MATCHES?m=g:m>v&&(m=v),m>l&&(l=m,c=s,d=y,h=f),{rankedValue:h,rank:l,keyIndex:c,keyThreshold:d}},{rankedValue:e,rank:aa.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function $re(e,t,n){return e=Ure(e,n),t=Ure(t,n),t.length>e.length?aa.NO_MATCH:e===t?aa.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?aa.EQUAL:e.startsWith(t)?aa.STARTS_WITH:e.includes(` ${t}`)?aa.WORD_STARTS_WITH:e.includes(t)?aa.CONTAINS:t.length===1?aa.NO_MATCH:cvt(e).includes(t)?aa.ACRONYM:dvt(e,t))}function cvt(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function dvt(e,t){let n=0,r=0;function i(l,u,c){for(let d=c,f=u.length;d-1))return aa.NO_MATCH}const s=r-o;return a(s)}function fvt(e,t,n){const{rank:a,keyIndex:o}=e,{rank:s,keyIndex:l}=t;return a===s?o===l?n(e,t):os?-1:1}function Ure(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=svt(e)),e}function pvt(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return mvt(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function mvt(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Vre(u,r,l),f=r,p={},m=0;for(let h=0;he.concat(t,t+"-start",t+"-end"),[]);const Ivt={left:"right",right:"left",bottom:"top",top:"bottom"};function w6(e){return e.replace(/left|right|bottom|top/g,t=>Ivt[t])}function Ovt(e,t,n){n===void 0&&(n=!1);const r=tT(e),i=VN(e),a=Uve(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=w6(o)),{main:o,cross:w6(o)}}const Dvt={start:"end",end:"start"};function cD(e){return e.replace(/start|end/g,t=>Dvt[t])}const xvt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...h}=e,g=X0(r),v=X0(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(l.floating)),b=d||(v||!m?[w6(o)]:function(B){const H=w6(B);return[cD(B),H,cD(H)]}(o));d||p==="none"||b.push(...function(B,H,L,V){const U=tT(B);let J=function(re,X,j){const te=["left","right"],M=["right","left"],W=["top","bottom"],ce=["bottom","top"];switch(re){case"top":case"bottom":return j?X?M:te:X?te:M;case"left":case"right":return X?W:ce;default:return[]}}(X0(B),L==="start",V);return U&&(J=J.map(re=>re+"-"+U),H&&(J=J.concat(J.map(cD)))),J}(o,m,p,y));const T=[o,...b],_=await Hve(t,h),E=[];let k=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&E.push(_[g]),c){const{main:B,cross:H}=Ovt(r,a,y);E.push(_[B],_[H])}if(k=[...k,{placement:r,overflows:E}],!E.every(B=>B<=0)){var A,D;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:k},reset:{placement:H}};let L=(D=k.filter(V=>V.overflows[0]<=0).sort((V,U)=>V.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(f){case"bestFit":{var R;const V=(R=k.map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,re)=>J+re,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:R[0];V&&(L=V);break}case"initialPlacement":L=o}if(r!==L)return{reset:{placement:L}}}return{}}}},Mvt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(a,o){const{placement:s,platform:l,elements:u}=a,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),d=X0(s),f=tT(s),p=VN(s)==="x",m=["left","top"].includes(d)?-1:1,h=c&&p?-1:1,g=typeof o=="function"?o(a):o;let{mainAxis:v,crossAxis:y,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return f&&typeof b=="number"&&(y=f==="end"?-1*b:b),p?{x:y*h,y:v*m}:{x:v*m,y:y*h}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},Rvt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=e,l=await Hve(t,s),u=X0(n),c=tT(n),d=VN(n)==="x",{width:f,height:p}=r.floating;let m,h;u==="top"||u==="bottom"?(m=u,h=c===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(h=u,m=c==="end"?"top":"bottom");const g=p-l[m],v=f-l[h],y=!t.middlewareData.shift;let b=g,T=v;if(d){const E=f-l.left-l.right;T=c||y?zre(v,E):E}else{const E=p-l.top-l.bottom;b=c||y?zre(g,E):E}if(y&&!c){const E=km(l.left,0),k=km(l.right,0),A=km(l.top,0),D=km(l.bottom,0);d?T=f-2*(E!==0||k!==0?E+k:km(l.left,l.right)):b=p-2*(A!==0||D!==0?A+D:km(l.top,l.bottom))}await o({...t,availableWidth:T,availableHeight:b});const _=await i.getDimensions(a.floating);return f!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function ws(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pl(e){return ws(e).getComputedStyle(e)}function Vve(e){return e instanceof ws(e).Node}function vf(e){return Vve(e)?(e.nodeName||"").toLowerCase():""}function _l(e){return e instanceof ws(e).HTMLElement}function To(e){return e instanceof ws(e).Element}function qre(e){return typeof ShadowRoot>"u"?!1:e instanceof ws(e).ShadowRoot||e instanceof ShadowRoot}function xS(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Pvt(e){return["table","td","th"].includes(vf(e))}function jP(e){const t=dV(),n=pl(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function dV(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zN(e){return["html","body","#document"].includes(vf(e))}const Wre=Math.min,p2=Math.max,k6=Math.round;function zve(e){const t=pl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=_l(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=k6(n)!==a||k6(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function qve(e){return To(e)?e:e.contextElement}const Wve={x:1,y:1};function Kh(e){const t=qve(e);if(!_l(t))return Wve;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=zve(t);let o=(a?k6(n.width):n.width)/r,s=(a?k6(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const jre={x:0,y:0};function jve(e,t,n){var r,i;if(t===void 0&&(t=!0),!dV())return jre;const a=e?ws(e):window;return!n||t&&n!==a?jre:{x:((r=a.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function Rp(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=qve(e);let o=Wve;t&&(r?To(r)&&(o=Kh(r)):o=Kh(e));const s=jve(a,n,r);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a){const f=ws(a),p=r&&To(r)?ws(r):r;let m=f.frameElement;for(;m&&r&&p!==f;){const h=Kh(m),g=m.getBoundingClientRect(),v=getComputedStyle(m);g.x+=(m.clientLeft+parseFloat(v.paddingLeft))*h.x,g.y+=(m.clientTop+parseFloat(v.paddingTop))*h.y,l*=h.x,u*=h.y,c*=h.x,d*=h.y,l+=g.x,u+=g.y,m=ws(m).frameElement}}return E6({width:c,height:d,x:l,y:u})}function Ld(e){return((Vve(e)?e.ownerDocument:e.document)||window.document).documentElement}function qN(e){return To(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Gve(e){return Rp(Ld(e)).left+qN(e).scrollLeft}function Gg(e){if(vf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qre(e)&&e.host||Ld(e);return qre(t)?t.host:t}function Jve(e){const t=Gg(e);return zN(t)?t.ownerDocument.body:_l(t)&&xS(t)?t:Jve(t)}function Bd(e,t){var n;t===void 0&&(t=[]);const r=Jve(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ws(r);return i?t.concat(a,a.visualViewport||[],xS(r)?r:[]):t.concat(r,Bd(r))}function Gre(e,t,n){let r;if(t==="viewport")r=function(i,a){const o=ws(i),s=Ld(i),l=o.visualViewport;let u=s.clientWidth,c=s.clientHeight,d=0,f=0;if(l){u=l.width,c=l.height;const p=dV();(!p||p&&a==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:u,height:c,x:d,y:f}}(e,n);else if(t==="document")r=function(i){const a=Ld(i),o=qN(i),s=i.ownerDocument.body,l=p2(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),u=p2(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let c=-o.scrollLeft+Gve(i);const d=-o.scrollTop;return pl(s).direction==="rtl"&&(c+=p2(a.clientWidth,s.clientWidth)-l),{width:l,height:u,x:c,y:d}}(Ld(e));else if(To(t))r=function(i,a){const o=Rp(i,!0,a==="fixed"),s=o.top+i.clientTop,l=o.left+i.clientLeft,u=_l(i)?Kh(i):{x:1,y:1};return{width:i.clientWidth*u.x,height:i.clientHeight*u.y,x:l*u.x,y:s*u.y}}(t,n);else{const i=jve(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return E6(r)}function Yve(e,t){const n=Gg(e);return!(n===t||!To(n)||zN(n))&&(pl(n).position==="fixed"||Yve(n,t))}function Jre(e,t){return _l(e)&&pl(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Yre(e,t){const n=ws(e);if(!_l(e))return n;let r=Jre(e,t);for(;r&&Pvt(r)&&pl(r).position==="static";)r=Jre(r,t);return r&&(vf(r)==="html"||vf(r)==="body"&&pl(r).position==="static"&&!jP(r))?n:r||function(i){let a=Gg(i);for(;_l(a)&&!zN(a);){if(jP(a))return a;a=Gg(a)}return null}(e)||n}function Fvt(e,t,n){const r=_l(t),i=Ld(t),a=n==="fixed",o=Rp(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&!a)if((vf(t)!=="body"||xS(i))&&(s=qN(t)),_l(t)){const u=Rp(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Gve(i));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}const Lvt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=n==="clippingAncestors"?function(u,c){const d=c.get(u);if(d)return d;let f=Bd(u).filter(g=>To(g)&&vf(g)!=="body"),p=null;const m=pl(u).position==="fixed";let h=m?Gg(u):u;for(;To(h)&&!zN(h);){const g=pl(h),v=jP(h);v||g.position!=="fixed"||(p=null),(m?!v&&!p:!v&&g.position==="static"&&p&&["absolute","fixed"].includes(p.position)||xS(h)&&!v&&Yve(u,h))?f=f.filter(y=>y!==h):p=g,h=Gg(h)}return c.set(u,f),f}(t,this._c):[].concat(n),o=[...a,r],s=o[0],l=o.reduce((u,c)=>{const d=Gre(t,c,i);return u.top=p2(d.top,u.top),u.right=Wre(d.right,u.right),u.bottom=Wre(d.bottom,u.bottom),u.left=p2(d.left,u.left),u},Gre(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=_l(n),a=Ld(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&r!=="fixed")&&((vf(n)!=="body"||xS(a))&&(o=qN(n)),_l(n))){const u=Rp(n);s=Kh(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}},isElement:To,getDimensions:function(e){return zve(e)},getOffsetParent:Yre,getDocumentElement:Ld,getScale:Kh,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Yre,a=this.getDimensions;return{reference:Fvt(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>pl(e).direction==="rtl"};function Bvt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i||a?[...To(e)?Bd(e):e.contextElement?Bd(e.contextElement):[],...Bd(t)]:[];l.forEach(f=>{const p=!To(f)&&f.toString().includes("V");!i||s&&!p||f.addEventListener("scroll",n,{passive:!0}),a&&f.addEventListener("resize",n)});let u,c=null;o&&(c=new ResizeObserver(()=>{n()}),To(e)&&!s&&c.observe(e),To(e)||!e.contextElement||s||c.observe(e.contextElement),c.observe(t));let d=s?Rp(e):null;return s&&function f(){const p=Rp(e);!d||p.x===d.x&&p.y===d.y&&p.width===d.width&&p.height===d.height||n(),d=p,u=requestAnimationFrame(f)}(),n(),()=>{var f;l.forEach(p=>{i&&p.removeEventListener("scroll",n),a&&p.removeEventListener("resize",n)}),(f=c)==null||f.disconnect(),c=null,s&&cancelAnimationFrame(u)}}const $vt=(e,t,n)=>{const r=new Map,i={platform:Lvt,...n},a={...i.platform,_c:r};return Avt(e,t,{...i,platform:a})};var xw=typeof document<"u"?N.useLayoutEffect:N.useEffect;function A6(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!A6(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!A6(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Kve(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kre(e,t){const n=Kve(e);return Math.round(t*n)/n}function Qre(e){const t=N.useRef(e);return xw(()=>{t.current=e}),t}function Uvt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=N.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=N.useState(r);A6(f,r)||p(r);const[m,h]=N.useState(null),[g,v]=N.useState(null),y=N.useCallback(J=>{J!=E.current&&(E.current=J,h(J))},[h]),b=N.useCallback(J=>{J!==k.current&&(k.current=J,v(J))},[v]),T=a||m,_=o||g,E=N.useRef(null),k=N.useRef(null),A=N.useRef(c),D=Qre(l),R=Qre(i),B=N.useCallback(()=>{if(!E.current||!k.current)return;const J={placement:t,strategy:n,middleware:f};R.current&&(J.platform=R.current),$vt(E.current,k.current,J).then(re=>{const X={...re,isPositioned:!0};H.current&&!A6(A.current,X)&&(A.current=X,Jp.flushSync(()=>{d(X)}))})},[f,t,n,R]);xw(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(J=>({...J,isPositioned:!1})))},[u]);const H=N.useRef(!1);xw(()=>(H.current=!0,()=>{H.current=!1}),[]),xw(()=>{if(T&&(E.current=T),_&&(k.current=_),T&&_){if(D.current)return D.current(T,_,B);B()}},[T,_,B,D]);const L=N.useMemo(()=>({reference:E,floating:k,setReference:y,setFloating:b}),[y,b]),V=N.useMemo(()=>({reference:T,floating:_}),[T,_]),U=N.useMemo(()=>{const J={position:n,left:0,top:0};if(!V.floating)return J;const re=Kre(V.floating,c.x),X=Kre(V.floating,c.y);return s?{...J,transform:"translate("+re+"px, "+X+"px)",...Kve(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:X}},[n,s,V.floating,c.x,c.y]);return N.useMemo(()=>({...c,update:B,refs:L,elements:V,floatingStyles:U}),[c,B,L,V,U])}var Hvt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Am=new WeakMap,N_=new WeakMap,I_={},dD=0,Qve=function(e){return e&&(e.host||Qve(e.parentNode))},Vvt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qve(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zvt=function(e,t,n,r){var i=Vvt(t,Array.isArray(e)?e:[e]);I_[n]||(I_[n]=new WeakMap);var a=I_[n],o=[],s=new Set,l=new Set(i),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};i.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(Am.get(f)||0)+1,g=(a.get(f)||0)+1;Am.set(f,h),a.set(f,g),o.push(f),h===1&&m&&N_.set(f,!0),g===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}})};return c(t),s.clear(),dD++,function(){o.forEach(function(d){var f=Am.get(d)-1,p=a.get(d)-1;Am.set(d,f),a.set(d,p),f||(N_.has(d)||d.removeAttribute(r),N_.delete(d)),p||d.removeAttribute(n)}),dD--,dD||(Am=new WeakMap,Am=new WeakMap,N_=new WeakMap,I_={})}},qvt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Hvt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),zvt(r,i,n,"aria-hidden")):function(){return null}};/*! * tabbable 6.1.2 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var Wvt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],GP=Wvt.join(","),Zve=typeof Element>"u",MS=Zve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,C6=!Zve&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},N6=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},jvt=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Gvt=function(t,n,r){if(N6(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(GP));return n&&MS.call(t,GP)&&i.unshift(t),i=i.filter(r),i},Jvt=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!N6(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,u=e(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=MS.call(o,GP);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!N6(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(d&&f){var p=e(d===!0?o.children:d.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:o,candidates:p})}else a.unshift.apply(a,o.children)}}return i},Xve=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||jvt(t))&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},Yvt=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},eye=function(t){return t.tagName==="INPUT"},Kvt=function(t){return eye(t)&&t.type==="hidden"},Qvt=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Zvt=function(t,n){for(var r=0;rsummary:first-of-type"),o=a?t.parentElement:t;if(MS.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,u=C6(t);if(l&&!l.shadowRoot&&i(l)===!0)return Zre(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(nyt(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Zre(t);return!1},iyt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},syt=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=Xve(s,o),u=o?e(i.candidates):s;l===0?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:u})}),r.sort(Yvt).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},I6=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Jvt([t],n.includeContainer,{filter:Xre.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:oyt}):r=Gvt(t,n.includeContainer,Xre.bind(null,n)),syt(r)};function O6(){return O6=Object.assign||function(e){for(var t=1;t"floating-ui-"+lyt++;function uyt(){const[e,t]=N.useState(()=>fD?eie():void 0);return Ui(()=>{e==null&&t(eie())},[]),N.useEffect(()=>{fD||(fD=!0)},[]),e}const cyt=$ae["useId".toString()],WN=cyt||uyt;function dyt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const fyt=N.createContext(null),pyt=N.createContext(null),tye=()=>{var e;return((e=N.useContext(fyt))==null?void 0:e.id)||null},jN=()=>N.useContext(pyt);function Vl(e){return(e==null?void 0:e.ownerDocument)||document}function nye(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function myt(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function GN(e){return Vl(e).defaultView||window}function I0(e){return e?e instanceof GN(e).Element:!1}function RS(e){return e?e instanceof GN(e).HTMLElement:!1}function hyt(e){if(typeof ShadowRoot>"u")return!1;const t=GN(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rye(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(nye())||t.test(myt()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function iye(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function aye(){return/apple/i.test(navigator.vendor)}function gyt(){return nye().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function jo(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hyt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Qh(e){const t=N.useRef(e);return Ui(()=>{t.current=e}),t}function nd(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let tie=0;function Wu(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(tie);const a=()=>e==null?void 0:e.focus({preventScroll:n});i?a():tie=requestAnimationFrame(a)}function vyt(e,t){var n;let r=[],i=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;i;){const a=e.find(o=>o.id===i);i=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function m2(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var s;return i.parentId===o.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}function oye(e){return"composedPath"in e?e.composedPath()[0]:e.target}const yyt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Syt(e){return RS(e)&&e.matches(yyt)}function ho(e){e.preventDefault(),e.stopPropagation()}const D6=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function sye(e,t){const n=I6(e,D6());t==="prev"&&n.reverse();const r=n.indexOf(nd(Vl(e)));return n.slice(r+1)[0]}function lye(){return sye(document.body,"next")}function uye(){return sye(document.body,"prev")}function h2(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!jo(n,r)}function byt(e){I6(e,D6()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Tyt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const fV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let _yt;function nie(e){e.key==="Tab"&&(e.target,clearTimeout(_yt))}const x6=N.forwardRef(function(t,n){const[r,i]=N.useState();return Ui(()=>(aye()&&i("button"),document.addEventListener("keydown",nie),()=>{document.removeEventListener("keydown",nie)}),[]),N.createElement("span",O6({},t,{ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,"data-floating-ui-focus-guard":"",style:fV}))}),cye=N.createContext(null);function Eyt(e){let{id:t,root:n}=e===void 0?{}:e;const[r,i]=N.useState(null),a=WN(),o=dye(),s=N.useMemo(()=>({id:t,root:n,portalContext:o,uniqueId:a}),[t,n,o,a]),l=N.useRef();return Ui(()=>()=>{r==null||r.remove()},[r,s]),Ui(()=>{if(l.current===s)return;l.current=s;const{id:u,root:c,portalContext:d,uniqueId:f}=s,p=u?document.getElementById(u):null,m="data-floating-ui-portal";if(p){const h=document.createElement("div");h.id=f,h.setAttribute(m,""),p.appendChild(h),i(h)}else{let h=(d==null?void 0:d.portalNode)||c||document.body,g=null;u&&(g=document.createElement("div"),g.id=u,h.appendChild(g));const v=document.createElement("div");v.id=f,v.setAttribute(m,""),h=g||h,h.appendChild(v),i(v)}},[s]),r}function wyt(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e;const a=Eyt({id:n,root:r}),[o,s]=N.useState(null),l=N.useRef(null),u=N.useRef(null),c=N.useRef(null),d=N.useRef(null),f=!!o&&!o.modal&&o.open&&i&&!!(r||a);return N.useEffect(()=>{if(!a||!i||o!=null&&o.modal)return;function p(m){a&&h2(m)&&(m.type==="focusin"?Tyt:byt)(a)}return a.addEventListener("focusin",p,!0),a.addEventListener("focusout",p,!0),()=>{a.removeEventListener("focusin",p,!0),a.removeEventListener("focusout",p,!0)}},[a,i,o==null?void 0:o.modal]),N.createElement(cye.Provider,{value:N.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a])},f&&a&&N.createElement(x6,{"data-type":"outside",ref:l,onFocus:p=>{if(h2(p,a)){var m;(m=c.current)==null||m.focus()}else{const h=uye()||(o==null?void 0:o.refs.domReference.current);h==null||h.focus()}}}),f&&a&&N.createElement("span",{"aria-owns":a.id,style:fV}),a&&Jp.createPortal(t,a),f&&a&&N.createElement(x6,{"data-type":"outside",ref:u,onFocus:p=>{if(h2(p,a)){var m;(m=d.current)==null||m.focus()}else{const h=lye()||(o==null?void 0:o.refs.domReference.current);h==null||h.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1))}}}))}const dye=()=>N.useContext(cye),kyt=N.forwardRef(function(t,n){return N.createElement("button",O6({},t,{type:"button",ref:n,tabIndex:-1,style:fV}))});function Ayt(e){const{context:t,children:n,order:r=["content"],guards:i=!0,initialFocus:a=0,returnFocus:o=!0,modal:s=!0,visuallyHiddenDismiss:l=!1,closeOnFocusOut:u=!0}=e,{open:c,refs:d,nodeId:f,onOpenChange:p,events:m,dataRef:h,elements:{domReference:g,floating:v}}=t,y=Qh(r),b=Qh(a),T=Qh(o),_=jN(),E=dye(),k=typeof a=="number"&&a<0,A=N.useRef(null),D=N.useRef(null),R=N.useRef(!1),B=N.useRef(null),H=N.useRef(!1),L=E!=null,V=g&&g.getAttribute("role")==="combobox"&&Syt(g),U=N.useCallback(function(j){return j===void 0&&(j=v),j?I6(j,D6()):[]},[v]),J=N.useCallback(j=>{const te=U(j);return y.current.map(M=>g&&M==="reference"?g:v&&M==="floating"?v:te).filter(Boolean).flat()},[g,v,y,U]);N.useEffect(()=>{if(!s)return;function j(M){if(M.key==="Tab"){jo(v,nd(Vl(v)))&&U().length===0&&!V&&ho(M);const W=J(),ce=oye(M);y.current[0]==="reference"&&ce===g&&(ho(M),M.shiftKey?Wu(W[W.length-1]):Wu(W[1])),y.current[1]==="floating"&&ce===v&&M.shiftKey&&(ho(M),Wu(W[0]))}}const te=Vl(v);return te.addEventListener("keydown",j),()=>{te.removeEventListener("keydown",j)}},[g,v,s,y,d,V,U,J]),N.useEffect(()=>{if(!u)return;function j(){H.current=!0,setTimeout(()=>{H.current=!1})}function te(M){const W=M.relatedTarget;queueMicrotask(()=>{const ce=!(jo(g,W)||jo(v,W)||jo(W,v)||jo(E==null?void 0:E.portalNode,W)||W!=null&&W.hasAttribute("data-floating-ui-focus-guard")||_&&(m2(_.nodesRef.current,f).find(ue=>{var he,Ce;return jo((he=ue.context)==null?void 0:he.elements.floating,W)||jo((Ce=ue.context)==null?void 0:Ce.elements.domReference,W)})||vyt(_.nodesRef.current,f).find(ue=>{var he,Ce;return((he=ue.context)==null?void 0:he.elements.floating)===W||((Ce=ue.context)==null?void 0:Ce.elements.domReference)===W})));W&&ce&&!H.current&&W!==B.current&&(R.current=!0,p(!1))})}if(v&&RS(g))return g.addEventListener("focusout",te),g.addEventListener("pointerdown",j),!s&&v.addEventListener("focusout",te),()=>{g.removeEventListener("focusout",te),g.removeEventListener("pointerdown",j),!s&&v.removeEventListener("focusout",te)}},[g,v,s,f,_,E,p,u]),N.useEffect(()=>{var j;const te=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("[data-floating-ui-portal]"))||[]);function M(){return[A.current,D.current].filter(Boolean)}if(v&&s){const W=[v,...te,...M()],ce=qvt(y.current.includes("reference")||V?W.concat(g||[]):W);return()=>{ce()}}},[g,v,s,y,E,V]),N.useEffect(()=>{if(s&&!i&&v){const j=[],te=D6(),M=I6(Vl(v).body,te),W=J(),ce=M.filter(ue=>!W.includes(ue));return ce.forEach((ue,he)=>{j[he]=ue.getAttribute("tabindex"),ue.setAttribute("tabindex","-1")}),()=>{ce.forEach((ue,he)=>{const Ce=j[he];Ce==null?ue.removeAttribute("tabindex"):ue.setAttribute("tabindex",Ce)})}}},[v,s,i,J]),Ui(()=>{if(!v)return;const j=Vl(v),te=nd(j);queueMicrotask(()=>{const M=J(v),W=b.current,ce=(typeof W=="number"?M[W]:W.current)||v,ue=jo(v,te);!k&&!ue&&c&&Wu(ce,{preventScroll:ce===v})})},[c,v,k,J,b]),Ui(()=>{if(!v)return;let j=!1;const te=Vl(v),M=nd(te),W=h.current;B.current=M;function ce(ue){if(ue.type==="escapeKey"&&d.domReference.current&&(B.current=d.domReference.current),["referencePress","escapeKey"].includes(ue.type))return;const he=ue.data.returnFocus;typeof he=="object"?(R.current=!1,j=he.preventScroll):R.current=!he}return m.on("dismiss",ce),()=>{m.off("dismiss",ce);const ue=nd(te);(jo(v,ue)||_&&m2(_.nodesRef.current,f).some(Ce=>{var fe;return jo((fe=Ce.context)==null?void 0:fe.elements.floating,ue)})||W.openEvent&&["click","mousedown"].includes(W.openEvent.type))&&d.domReference.current&&(B.current=d.domReference.current),T.current&&RS(B.current)&&!R.current&&Wu(B.current,{cancelPrevious:!1,preventScroll:j})}},[v,T,h,d,m,_,f]),Ui(()=>{if(E)return E.setFocusManagerState({...t,modal:s,closeOnFocusOut:u,open:c}),()=>{E.setFocusManagerState(null)}},[E,s,c,u,t]),Ui(()=>{if(v&&typeof MutationObserver=="function"){const j=()=>{const M=v.getAttribute("tabindex");y.current.includes("floating")||nd(Vl(v))!==d.domReference.current&&U().length===0?M!=="0"&&v.setAttribute("tabindex","0"):M!=="-1"&&v.setAttribute("tabindex","-1")};j();const te=new MutationObserver(j);return te.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{te.disconnect()}}},[v,d,y,U]);function re(j){return l&&s?N.createElement(kyt,{ref:j==="start"?A:D,onClick:()=>p(!1)},typeof l=="string"?l:"Dismiss"):null}const X=i&&!V&&(L||s);return N.createElement(N.Fragment,null,X&&N.createElement(x6,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(s){const M=J();Wu(r[0]==="reference"?M[0]:M[M.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(R.current=!1,h2(j,E.portalNode)){const M=lye()||g;M==null||M.focus()}else{var te;(te=E.beforeOutsideRef.current)==null||te.focus()}}}),!V&&re("start"),n,re("end"),X&&N.createElement(x6,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(s)Wu(J()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(u&&(R.current=!0),h2(j,E.portalNode)){const M=uye()||g;M==null||M.focus()}else{var te;(te=E.afterOutsideRef.current)==null||te.focus()}}}))}const Cyt=$ae["useInsertionEffect".toString()],Nyt=Cyt||(e=>e());function Zh(e){const t=N.useRef(()=>{});return Nyt(()=>{t.current=e}),N.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i{var t,n;return{escapeKeyBubbles:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePressBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function xyt(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,nodeId:a,elements:{reference:o,domReference:s,floating:l},dataRef:u}=e,{enabled:c=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p="pointerdown",referencePress:m=!1,referencePressEvent:h="pointerdown",ancestorScroll:g=!1,bubbles:v}=t,y=jN(),b=tye()!=null,T=Zh(typeof f=="function"?f:()=>!1),_=typeof f=="function"?T:f,E=N.useRef(!1),{escapeKeyBubbles:k,outsidePressBubbles:A}=Dyt(v),D=Zh(B=>{if(!n||!c||!d||B.key!=="Escape")return;const H=y?m2(y.nodesRef.current,a):[];if(!k&&(B.stopPropagation(),H.length>0)){let L=!0;if(H.forEach(V=>{var U;if((U=V.context)!=null&&U.open&&!V.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}i.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}),R=Zh(B=>{const H=E.current;if(E.current=!1,H||typeof _=="function"&&!_(B))return;const L=oye(B);if(RS(L)&&l){const J=L.clientWidth>0&&L.scrollWidth>L.clientWidth,re=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let X=re&&B.offsetX>L.clientWidth;if(re&&GN(l).getComputedStyle(L).direction==="rtl"&&(X=B.offsetX<=L.offsetWidth-L.clientWidth),X||J&&B.offsetY>L.clientHeight)return}const V=y&&m2(y.nodesRef.current,a).some(J=>{var re;return pD(B,(re=J.context)==null?void 0:re.elements.floating)});if(pD(B,l)||pD(B,s)||V)return;const U=y?m2(y.nodesRef.current,a):[];if(U.length>0){let J=!0;if(U.forEach(re=>{var X;if((X=re.context)!=null&&X.open&&!re.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}i.emit("dismiss",{type:"outsidePress",data:{returnFocus:b?{preventScroll:!0}:rye(B)||iye(B)}}),r(!1)});return N.useEffect(()=>{if(!n||!c)return;u.current.__escapeKeyBubbles=k,u.current.__outsidePressBubbles=A;function B(){r(!1)}const H=Vl(l);d&&H.addEventListener("keydown",D),_&&H.addEventListener(p,R);let L=[];return g&&(I0(s)&&(L=Bd(s)),I0(l)&&(L=L.concat(Bd(l))),!I0(o)&&o&&o.contextElement&&(L=L.concat(Bd(o.contextElement)))),L=L.filter(V=>{var U;return V!==((U=H.defaultView)==null?void 0:U.visualViewport)}),L.forEach(V=>{V.addEventListener("scroll",B,{passive:!0})}),()=>{d&&H.removeEventListener("keydown",D),_&&H.removeEventListener(p,R),L.forEach(V=>{V.removeEventListener("scroll",B)})}},[u,l,s,o,d,_,p,n,r,g,c,k,A,D,R]),N.useEffect(()=>{E.current=!1},[_,p]),N.useMemo(()=>c?{reference:{onKeyDown:D,[Iyt[h]]:()=>{m&&(i.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{onKeyDown:D,[Oyt[p]]:()=>{E.current=!0}}}:{},[c,i,m,p,h,r,D])}function Myt(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:i}=e,[a,o]=N.useState(null),s=((t=e.elements)==null?void 0:t.reference)||a,l=Uvt(e),u=jN(),c=Zh(r),d=N.useRef(null),f=N.useRef({}),p=N.useState(()=>dyt())[0],m=WN(),h=N.useCallback(T=>{const _=I0(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),contextElement:T}:T;l.refs.setReference(_)},[l.refs]),g=N.useCallback(T=>{(I0(T)||T===null)&&(d.current=T,o(T)),(I0(l.refs.reference.current)||l.refs.reference.current===null||T!==null&&!I0(T))&&l.refs.setReference(T)},[l.refs]),v=N.useMemo(()=>({...l.refs,setReference:g,setPositionReference:h,domReference:d}),[l.refs,g,h]),y=N.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),b=N.useMemo(()=>({...l,refs:v,elements:y,dataRef:f,nodeId:i,floatingId:m,events:p,open:n,onOpenChange:c}),[l,i,m,p,n,c,v,y]);return Ui(()=>{const T=u==null?void 0:u.nodesRef.current.find(_=>_.id===i);T&&(T.context=b)}),N.useMemo(()=>({...l,context:b,refs:v,elements:y}),[l,v,y,b])}function mD(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(i=>i?i[n]:null).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(o=>{let[s,l]=o;if(s.indexOf("on")===0){if(r.has(s)||r.set(s,[]),typeof l=="function"){var u;(u=r.get(s))==null||u.push(l),i[s]=function(){for(var c,d=arguments.length,f=new Array(d),p=0;pm(...f)).find(m=>m!==void 0)}}}else i[s]=l}),i),{})}}function Ryt(e){e===void 0&&(e=[]);const t=e,n=N.useCallback(a=>mD(a,e,"reference"),t),r=N.useCallback(a=>mD(a,e,"floating"),t),i=N.useCallback(a=>mD(a,e,"item"),e.map(a=>a==null?void 0:a.item));return N.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i}),[n,r,i])}let rie=!1;const pV="ArrowUp",JN="ArrowDown",Jg="ArrowLeft",nT="ArrowRight";function O_(e,t,n){return Math.floor(e/t)!==n}function Hv(e,t){return t<0||t>=e.current.length}function Pi(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:a=1}=t===void 0?{}:t;const o=e.current;let s=n;do{var l,u;s=s+(r?-a:a)}while(s>=0&&s<=o.length-1&&(i?i.includes(s):o[s]==null||(l=o[s])!=null&&l.hasAttribute("disabled")||((u=o[s])==null?void 0:u.getAttribute("aria-disabled"))==="true"));return s}function YN(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function iie(e,t){return YN(t,e===pV||e===JN,e===Jg||e===nT)}function hD(e,t,n){return YN(t,e===JN,n?e===Jg:e===nT)||e==="Enter"||e==" "||e===""}function Pyt(e,t,n){return YN(t,n?e===Jg:e===nT,e===JN)}function Fyt(e,t,n){return YN(t,n?e===nT:e===Jg,e===pV)}function gD(e,t){return Pi(e,{disabledIndices:t})}function aie(e,t){return Pi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Lyt(e,t){const{open:n,onOpenChange:r,refs:i,elements:{domReference:a,floating:o}}=e,{listRef:s,activeIndex:l,onNavigate:u=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:b=!0,disabledIndices:T=void 0,orientation:_="vertical",cols:E=1,scrollItemIntoView:k=!0}=t,A=tye(),D=jN(),R=Zh(u),B=N.useRef(v),H=N.useRef(d??-1),L=N.useRef(null),V=N.useRef(!0),U=N.useRef(R),J=N.useRef(!!o),re=N.useRef(!1),X=N.useRef(!1),j=Qh(T),te=Qh(n),M=Qh(k),[W,ce]=N.useState(),ue=Zh(function(fe,ge,de){de===void 0&&(de=!1);const Re=fe.current[ge.current];Re&&(g?ce(Re.id):Wu(Re,{preventScroll:!0,sync:gyt()&&aye()?rie||re.current:!1}),requestAnimationFrame(()=>{const De=M.current;De&&Re&&(de||!V.current)&&(Re.scrollIntoView==null||Re.scrollIntoView(typeof De=="boolean"?{block:"nearest",inline:"nearest"}:De))}))});Ui(()=>{document.createElement("div").focus({get preventScroll(){return rie=!0,!1}})},[]),Ui(()=>{c&&(n&&o?B.current&&d!=null&&(X.current=!0,R(d)):J.current&&(H.current=-1,U.current(null)))},[c,n,o,d,R]),Ui(()=>{if(c&&n&&o)if(l==null){if(re.current=!1,d!=null)return;if(J.current&&(H.current=-1,ue(s,H)),!J.current&&B.current&&(L.current!=null||B.current===!0&&L.current==null)){let fe=0;const ge=()=>{s.current[0]==null?(fe<2&&(fe?requestAnimationFrame:queueMicrotask)(ge),fe++):(H.current=L.current==null||hD(L.current,_,h)||m?gD(s,j.current):aie(s,j.current),L.current=null,R(H.current))};ge()}}else Hv(s,l)||(H.current=l,ue(s,H,X.current),X.current=!1)},[c,n,o,l,d,m,s,_,h,R,ue,j]),Ui(()=>{if(c&&J.current&&!o&&D){var fe,ge;const de=D.nodesRef.current,Re=(fe=de.find(Ve=>Ve.id===A))==null||(ge=fe.context)==null?void 0:ge.elements.floating,De=nd(Vl(o)),Me=de.some(Ve=>Ve.context&&jo(Ve.context.elements.floating,De));Re&&!Me&&Re.focus({preventScroll:!0})}},[c,o,D,A]),Ui(()=>{U.current=R,J.current=!!o}),Ui(()=>{n||(L.current=null)},[n]);const he=l!=null,Ce=N.useMemo(()=>{function fe(de){if(!n)return;const Re=s.current.indexOf(de);Re!==-1&&R(Re)}return{onFocus(de){let{currentTarget:Re}=de;fe(Re)},onClick:de=>{let{currentTarget:Re}=de;return Re.focus({preventScroll:!0})},...y&&{onMouseMove(de){let{currentTarget:Re}=de;fe(Re)},onPointerLeave(de){let{pointerType:Re}=de;!V.current||Re==="touch"||(H.current=-1,ue(s,H),R(null),g||Wu(i.floating.current,{preventScroll:!0}))}}}},[n,i,ue,y,s,R,g]);return N.useMemo(()=>{if(!c)return{};const fe=j.current;function ge(Me){if(V.current=!1,re.current=!0,!te.current&&Me.currentTarget===i.floating.current)return;if(m&&Fyt(Me.key,_,h)){ho(Me),r(!1),RS(a)&&a.focus();return}const Ve=H.current,dt=gD(s,fe),Nt=aie(s,fe);if(Me.key==="Home"&&(ho(Me),H.current=dt,R(H.current)),Me.key==="End"&&(ho(Me),H.current=Nt,R(H.current)),E>1){const P=H.current;if(Me.key===pV){if(ho(Me),P===-1)H.current=Nt;else if(H.current=Pi(s,{startingIndex:P,amount:E,decrement:!0,disabledIndices:fe}),p&&(P-Eq?Se:Se-E}Hv(s,H.current)&&(H.current=P),R(H.current)}if(Me.key===JN&&(ho(Me),P===-1?H.current=dt:(H.current=Pi(s,{startingIndex:P,amount:E,disabledIndices:fe}),p&&P+E>Nt&&(H.current=Pi(s,{startingIndex:P%E-E,amount:E,disabledIndices:fe}))),Hv(s,H.current)&&(H.current=P),R(H.current)),_==="both"){const q=Math.floor(P/E);Me.key===nT&&(ho(Me),P%E!==E-1?(H.current=Pi(s,{startingIndex:P,disabledIndices:fe}),p&&O_(H.current,E,q)&&(H.current=Pi(s,{startingIndex:P-P%E-1,disabledIndices:fe}))):p&&(H.current=Pi(s,{startingIndex:P-P%E-1,disabledIndices:fe})),O_(H.current,E,q)&&(H.current=P)),Me.key===Jg&&(ho(Me),P%E!==0?(H.current=Pi(s,{startingIndex:P,disabledIndices:fe,decrement:!0}),p&&O_(H.current,E,q)&&(H.current=Pi(s,{startingIndex:P+(E-P%E),decrement:!0,disabledIndices:fe}))):p&&(H.current=Pi(s,{startingIndex:P+(E-P%E),decrement:!0,disabledIndices:fe})),O_(H.current,E,q)&&(H.current=P));const Y=Math.floor(Nt/E)===q;Hv(s,H.current)&&(p&&Y?H.current=Me.key===Jg?Nt:Pi(s,{startingIndex:P-P%E-1,disabledIndices:fe}):H.current=P),R(H.current);return}}if(iie(Me.key,_)){if(ho(Me),n&&!g&&nd(Me.currentTarget.ownerDocument)===Me.currentTarget){H.current=hD(Me.key,_,h)?dt:Nt,R(H.current);return}hD(Me.key,_,h)?p?H.current=Ve>=Nt?f&&Ve!==s.current.length?-1:dt:Pi(s,{startingIndex:Ve,disabledIndices:fe}):H.current=Math.min(Nt,Pi(s,{startingIndex:Ve,disabledIndices:fe})):p?H.current=Ve<=dt?f&&Ve!==-1?s.current.length:Nt:Pi(s,{startingIndex:Ve,decrement:!0,disabledIndices:fe}):H.current=Math.max(dt,Pi(s,{startingIndex:Ve,decrement:!0,disabledIndices:fe})),Hv(s,H.current)?R(null):R(H.current)}}function de(Me){v==="auto"&&rye(Me.nativeEvent)&&(B.current=!0)}function Re(Me){B.current=v,v==="auto"&&iye(Me.nativeEvent)&&(B.current=!0)}const De=g&&n&&he&&{"aria-activedescendant":W};return{reference:{...De,onKeyDown(Me){V.current=!1;const Ve=Me.key.indexOf("Arrow")===0;if(g&&n)return ge(Me);if(!n&&!b&&Ve)return;const dt=Ve||Me.key==="Enter"||Me.key.trim()==="",Nt=iie(Me.key,_),P=Pyt(Me.key,_,h);if(dt&&(L.current=m&&Nt?null:Me.key),m){P&&(ho(Me),n?(H.current=gD(s,fe),R(H.current)):r(!0));return}Nt&&(d!=null&&(H.current=d),ho(Me),!n&&b?r(!0):ge(Me),n&&R(H.current))},onFocus(){n&&R(null)},onPointerDown:Re,onMouseDown:de,onClick:de},floating:{"aria-orientation":_==="both"?void 0:_,...De,onKeyDown:ge,onPointerMove(){V.current=!0}},item:Ce}},[a,i,W,j,te,s,c,_,h,g,n,he,m,d,b,f,E,p,v,R,r,Ce])}function Byt(e,t){t===void 0&&(t={});const{open:n,floatingId:r}=e,{enabled:i=!0,role:a="dialog"}=t,o=WN();return N.useMemo(()=>{const s={id:r,role:a};return i?a==="tooltip"?{reference:{"aria-describedby":n?r:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?r:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:o}},floating:{...s,...a==="menu"&&{"aria-labelledby":o}}}:{}},[i,a,n,r,o])}function fye({onSelect:e,isDisabled:t,selectedItemText:n,placeholder:r="Start typing...",noResultsText:i="No results",onSearch:a,results:o,searchLoading:s,selectedIndex:l,resultComponent:u}){const[c,d]=N.useState(n??""),[f,p]=N.useState(!1),[m,h]=N.useState(null),g=N.useRef([]),{refs:v,floatingStyles:y,context:b}=Myt({whileElementsMounted:Bvt,open:f,onOpenChange:p,middleware:[Mvt({mainAxis:-6}),xvt({padding:10}),Rvt({apply({rects:V,availableHeight:U,elements:J}){J.floating.style.setProperty("--autocomplete-max-height",`calc(${U}px - 16px)`),Object.assign(J.floating.style,{width:`${V.reference.width}px`,maxHeight:"var(--autocomplete-max-height)"})}})]}),T=Byt(b,{role:"listbox"}),_=xyt(b),E=Lyt(b,{listRef:g,activeIndex:m,onNavigate:h,selectedIndex:l,virtual:!0,loop:!0}),{getReferenceProps:k,getFloatingProps:A,getItemProps:D}=Ryt([T,_,E]);N.useEffect(()=>{d(n??"")},[n]);function R(V){var U;e(V),h(null),p(!1),a(""),(U=v.domReference.current)==null||U.focus()}function B(V){const U=V.target.value;d(U),Vr(U)?e(null):(p(!0),h(0)),a(U)}function H(){d(n??"")}function L(V){V.key==="Enter"&&m!=null&&(o==null?void 0:o.at(m))!=null&&R(o[m])}return F(St,{children:[F("div",{className:Ul.inputContainer,children:[S("input",{className:Ul.input,...k({ref:v.setReference,onChange:B,onBlur:H,value:c,placeholder:r,"aria-autocomplete":"list",onKeyDown:L,disabled:t})}),S(TS,{onClick:()=>{var V;f?p(!1):(p(!0),(V=v.reference.current)==null||V.focus())},className:Ul.toggleButton,children:S($1,{})})]}),S(wyt,{children:f&&S(Ayt,{context:b,initialFocus:-1,visuallyHiddenDismiss:!0,children:S("div",{...A({ref:v.setFloating,style:y}),className:Ul.floatingContainer,children:S("div",{className:Ul.resultContainer,children:s?S("div",{className:Ul.loading,children:S(um,{message:"Loading..."})}):o==null||o.length===0?S("div",{className:Ul.noResults,children:S("p",{children:i})}):o.map((V,U)=>S($yt,{...D({key:U,ref(J){g.current[U]=J},onClick:()=>R(V)}),active:m===U,children:S(u,{result:V})}))})})})})]})}const $yt=N.forwardRef(({children:e,active:t,...n},r)=>{const i=WN(),a=(t?[Ul.result,Ul.active]:[Ul.result]).join(" ");return S("div",{ref:r,role:"option",id:i,"aria-selected":t,...n,className:a,children:e})}),Uyt="_container_nh65k_29",Hyt={container:Uyt};function Vyt({labeledValues:e,value:t,onSelect:n,isDisabled:r,className:i,children:a}){var c;const[o,s]=N.useState(e),l=d=>{s($ve(e,d,{keys:["label"]}))},u=t!=null?((c=e.find(d=>d.value===t))==null?void 0:c.label)??t:t;return F("fieldset",{className:[Hyt.container,i].join(" "),children:[a,S(fye,{results:o,onSearch:l,onSelect:d=>n(d==null?void 0:d.value),selectedItemText:u,selectedIndex:o.findIndex(d=>d.value===t),resultComponent:({result:d})=>S(St,{children:d.label}),searchLoading:!1,isDisabled:r})]})}function zyt({fieldEntryId:e,field:t,savedValue:n,isDisabled:r,onChangeIsSettingValue:i,className:a,isRequired:o,children:s}){const[l,u]=N.useState(n),{formRenderId:c,organizationHostedJobsPageName:d,formDefinitionId:f}=N.useContext(Ma),[p,{loading:m}]=$t(Dl,{onError:Jn});N.useEffect(function(){i(t.path,m)},[m]);function h(g){u(g)}return N.useEffect(function(){l!==n&&p({variables:{organizationHostedJobsPageName:d,formRenderIdentifier:c,path:t.path,value:l,formDefinitionIdentifier:f}})},[l]),t.selectableValues.length>8?S(Vyt,{value:l,labeledValues:t.selectableValues,onSelect:h,isDisabled:r,className:a,children:s}):S(G1t,{fieldEntryId:e,value:l,labeledValues:t.selectableValues,onChange:h,isDisabled:r,className:a,isRequired:o,children:s})}const qyt="_input_1wnh2_29",Wyt={input:qyt};function jyt({value:e,onChange:t,className:n,rows:r,...i}){function a(o){t&&t(o.target.value)}return S("textarea",{...i,className:[Wyt.input,n].join(" "),children:e,onChange:a,rows:r??2})}function Gyt({field:e,isDisabled:t,savedValue:n,isRequired:r,onChangeIsSettingValue:i,className:a}){const[o,s]=N.useState(n),{formRenderId:l,organizationHostedJobsPageName:u,formDefinitionId:c}=N.useContext(Ma),[d,{loading:f}]=$t(Dl,{onError:Jn});function p(){n!==o&&d({variables:{organizationHostedJobsPageName:u,formRenderIdentifier:l,path:e.path,value:o,formDefinitionIdentifier:c}})}const m=W1(p,500,[o]);N.useEffect(function(){i(e.path,f)},[f]);function h(y){s(y)}function g(){m&&clearTimeout(m),p()}const v="Type here...";return S(jyt,{className:[Ga.input,a].join(" "),onChange:h,onBlur:g,value:o||"",placeholder:v,disabled:t,required:r,name:e.path,rows:4,id:e.path})}function Jyt({field:e,isDisabled:t,savedValue:n,isRequired:r,onChangeIsSettingValue:i}){const[a,o]=N.useState(n),{formRenderId:s,organizationHostedJobsPageName:l,formDefinitionId:u}=N.useContext(Ma),[c,{loading:d}]=$t(Dl,{onError:Jn});function f(){n!==a&&c({variables:{organizationHostedJobsPageName:l,formRenderIdentifier:s,path:e.path,value:a,formDefinitionIdentifier:u}})}const p=W1(f,500,[a]);N.useEffect(function(){i(e.path,d)},[d]);function m(y){o(y)}function h(){p&&clearTimeout(p),f()}let g="text",v="Type here...";return e instanceof Kk&&(g="email",v="hello@example.com..."),S(Pd,{className:Ga.input,onChange:m,onBlur:h,value:a||"",type:g,placeholder:v,disabled:t,name:e.path,required:r,id:e.path})}function vi(e){this.content=e}vi.prototype={constructor:vi,find:function(e){for(var t=0;t>1}};vi.from=function(e){if(e instanceof vi)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new vi(t)};function pye(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)n++;return n}if(i.content.size||a.content.size){let o=pye(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function mye(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let u=0,c=Math.min(o.text.length,s.text.length);for(;ut&&r(l,i+s,a||null,o)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),r,i+c)}s=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",o=!0;return this.nodesBetween(t,n,(s,l)=>{s.isText?(a+=s.text.slice(Math.max(t,l)-l,n-l),o=!r):s.isLeaf?(i?a+=typeof i=="function"?i(s):i:s.type.spec.leafText&&(a+=s.type.spec.leafText(s)),o=!r):!o&&s.isBlock&&(a+=r,o=!0)},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let a=0,o=0;ot&&((on)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=l}return new _e(r,i)}cutByIndex(t,n){return t==n?_e.empty:t==0&&n==this.content.length?this:new _e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new _e(i,a)}addToStart(t){return new _e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new _e(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let a=this.child(r),o=i+a.nodeSize;if(o>=t)return o==t||n>0?D_(r+1,o):D_(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return _e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new _e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return _e.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}};Cn.none=[];class R6 extends Error{}class ze{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=gye(this.content,t+this.openStart,n);return r&&new ze(r,this.openStart,this.openEnd)}removeBetween(t,n){return new ze(hye(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return ze.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ze(_e.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new ze(t,r,i)}}ze.empty=new ze(_e.empty,0,0);function hye(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(hye(a.content,t-i-1,n-i-1)))}function gye(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=gye(o.content,t-a-1,n);return s&&e.replaceChild(i,o.copy(s))}function Yyt(e,t,n){if(n.openStart>e.depth)throw new R6("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new R6("Inconsistent open depths");return vye(e,t,n,0)}function vye(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function g2(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ep(e.nodeAfter,r),a++));for(let s=a;si&&YP(e,t,i+1),o=r.depth>i&&YP(n,r,i+1),s=[];return g2(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(yye(a,o),ep(tp(a,Sye(e,t,n,r,i+1)),s)):(a&&ep(tp(a,P6(e,t,i+1)),s),g2(t,n,i,s),o&&ep(tp(o,P6(n,r,i+1)),s)),g2(r,null,i,s),new _e(s)}function P6(e,t,n){let r=[];if(g2(null,e,n,r),e.depth>n){let i=YP(e,t,n+1);ep(tp(i,P6(e,t,n+1)),r)}return g2(t,null,n,r),new _e(r)}function Kyt(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(_e.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class PS{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new F6(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let o=t;;){let{index:s,offset:l}=o.content.findIndex(a),u=a-l;if(r.push(o,s,i+l),!u||(o=o.child(s),o.isText))break;a=u-1,i+=l+1}return new PS(n,r,a)}static resolveCached(t,n){for(let i=0;it&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),bye(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=_e.empty,i=0,a=r.childCount){let o=this.contentMatchAt(t).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=_e.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,i,r)}};np.prototype.text=void 0;class L6 extends np{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bye(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new L6(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new L6(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function bye(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Pp{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Xyt(t,n);if(r.next==null)return Pp.empty;let i=Tye(r);r.next&&r.err("Unexpected trailing text");let a=o2t(a2t(i));return s2t(a,r),a}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+t.indexOf(r.next[o].next);return a}).join(` `)}}Pp.empty=new Pp(!0);class Xyt{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function Tye(e){let t=[];do t.push(e2t(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function e2t(e){let t=[];do t.push(t2t(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function t2t(e){let t=i2t(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=n2t(e,t);else break;return t}function oie(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function n2t(e,t){let n=oie(e),r=n;return e.eat(",")&&(e.next!="}"?r=oie(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function r2t(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.groups.indexOf(t)>-1&&i.push(o)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function i2t(e){if(e.eat("(")){let t=Tye(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=r2t(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function a2t(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(o,s,l){let u={term:l,to:s};return t[o].push(u),u}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(a(u,s)),[]);if(o.type=="seq")for(let l=0;;l++){let u=a(o.exprs[l],s);if(l==o.exprs.length-1)return u;i(u,s=n())}else if(o.type=="star"){let l=n();return r(s,l),i(a(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return i(a(o.expr,s),l),i(a(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let u=0;u{e[o].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let a=t[r.join(",")]=new Pp(r.indexOf(e.length-1)>-1);for(let o=0;o-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[a]=new Aye(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class l2t{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class KN{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=kye(i.attrs),this.excluded=null;let a=Eye(this.attrs);this.instance=a?new Cn(this,a):null}create(t=null){return!t&&this.instance?this.instance:new Cn(this,wye(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,o)=>r[a]=new KN(a,i++,n,o)),r}removeFromSet(t){for(var n=0;n-1}}class u2t{constructor(t){this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=vi.from(t.nodes),n.marks=vi.from(t.marks||{}),this.nodes=lie.compile(this.spec.nodes,this),this.marks=KN.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;a.contentMatch=r[o]||(r[o]=Pp.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=s=="_"?null:s?uie(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:uie(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof lie){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new L6(r,r.defaultAttrs,t,Cn.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return np.fromJSON(this,t)}markFromJSON(t){return Cn.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function uie(e,t){let n=[];for(let r=0;r-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}let mV=class QP{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=t.nodes[r.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let r=new die(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new die(this,n,!0);return r.addAll(t,n.from,n.to),ze.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o{r(o=fie(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=fie(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new QP(t,QP.schemaRules(t)))}};const Cye={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},c2t={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Nye={ol:!0,ul:!0},B6=1,$6=2,v2=4;function cie(e,t,n){return t!=null?(t?B6:0)|(t==="full"?$6:0):e&&e.whitespace=="pre"?B6|$6:n&~v2}class x_{constructor(t,n,r,i,a,o,s){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=a,this.options=s,this.content=[],this.activeMarks=Cn.none,this.stashMarks=[],this.match=o||(s&v2?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(_e.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&B6)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=_e.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(_e.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;n{o.clearMark(s)&&(r=s.addToSet(r))}):n=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(n),o.consuming===!1)a=o;else break}return[n,r]}addElementByRule(t,n,r){let i,a,o;n.node?(a=this.parser.schema.nodes[n.node],a.isLeaf?this.insertNode(a.create(n.attrs))||this.leafFallback(t):i=this.enter(a,n.attrs||null,n.preserveWhitespace)):(o=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(o));let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l)}i&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(t,n,r){let i=n||0;for(let a=n?t.childNodes[n]:t.firstChild,o=r==null?null:t.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a);this.findAtPoint(t,i)}findPlace(t){let n,r;for(let i=this.open;i>=0;i--){let a=this.nodes[i],o=a.findWrapping(t);if(o&&(!n||n.length>o.length)&&(n=o,r=a,!o.length)||a.solid)break}if(!n)return!1;this.sync(r);for(let i=0;ithis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let u=n[s];if(u==""){if(s==n.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=h2t(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(t)>-1)i.pendingMarks=t.removeFromSet(i.pendingMarks);else{i.activeMarks=t.removeFromSet(i.activeMarks);let o=i.popFromStashMark(t);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==n)break}}}function d2t(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&Nye.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function f2t(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function p2t(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function fie(e){let t={};for(let n in e)t[n]=e[n];return t}function m2t(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let l=0;l{if(a.length||o.marks.length){let s=0,l=0;for(;s=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&iu.renderSpec(bD(r),i(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[0],a=i.indexOf(" ");a>0&&(r=i.slice(0,a),i=i.slice(a+1));let o,s=r?t.createElementNS(r,i):t.createElement(i),l=n[1],u=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let c in l)if(l[c]!=null){let d=c.indexOf(" ");d>0?s.setAttributeNS(c.slice(0,d),c.slice(d+1),l[c]):s.setAttribute(c,l[c])}}for(let c=u;cu)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:f,contentDOM:p}=iu.renderSpec(t,d,r);if(s.appendChild(f),p){if(o)throw new RangeError("Multiple content holes");o=p}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new iu(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=pie(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return pie(t.marks)}}function pie(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function bD(e){return e.document||window.document}const Iye=65535,Oye=Math.pow(2,16);function g2t(e,t){return e+t*Oye}function mie(e){return e&Iye}function v2t(e){return(e-(e&Iye))/Oye}const Dye=1,xye=2,Mw=4,Mye=8;class ZP{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Mye)>0}get deletedBefore(){return(this.delInfo&(Dye|Mw))>0}get deletedAfter(){return(this.delInfo&(xye|Mw))>0}get deletedAcross(){return(this.delInfo&Mw)>0}}class ds{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&ds.empty)return ds.empty}recover(t){let n=0,r=mie(t);if(!this.inverted)for(let i=0;it)break;let u=this.ranges[s+a],c=this.ranges[s+o],d=l+u;if(t<=d){let f=u?t==l?-1:t==d?1:n:n,p=l+i+(f<0?0:c);if(r)return p;let m=t==(n<0?l:d)?null:g2t(s/3,t-l),h=t==l?xye:t==d?Dye:Mw;return(n<0?t!=l:t!=d)&&(h|=Mye),new ZP(p,h,m)}i+=c-u}return r?t+i:new ZP(t+i,0,null)}touches(t,n){let r=0,i=mie(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;st)break;let u=this.ranges[s+a],c=l+u;if(t<=c&&s==i*3)return!0;r+=this.ranges[s+o]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Xh;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ra&&l!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return zr.fromReplace(t,this.from,this.to,a)}invert(){return new au(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new bd(n.pos,r.pos,this.mark)}merge(t){return t instanceof bd&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new bd(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new bd(n.from,n.to,t.markFromJSON(n.mark))}}lo.jsonID("addMark",bd);class au extends lo{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new ze(hV(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return zr.fromReplace(t,this.from,this.to,r)}invert(){return new bd(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new au(n.pos,r.pos,this.mark)}merge(t){return t instanceof au&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new au(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new au(n.from,n.to,t.markFromJSON(n.mark))}}lo.jsonID("removeMark",au);class Td extends lo{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return zr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return zr.fromReplace(t,this.pos,this.pos+1,new ze(_e.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new oi(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new oi(n.from,n.to,n.gapFrom,n.gapTo,ze.fromJSON(t,n.slice),n.insert,!!n.structure)}}lo.jsonID("replaceAround",oi);function XP(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function y2t(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),p=Math.min(u+l.nodeSize,n),m=r.addToSet(d);for(let h=0;he.step(l)),a.forEach(l=>e.step(l))}function S2t(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(r instanceof KN){let u=o.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let u=Math.min(s+o.nodeSize,n);for(let c=0;ce.step(new au(o.from,o.to,o.style)))}function b2t(e,t,n,r=n.contentMatch){let i=e.doc.nodeAt(t),a=[],o=t+1;for(let s=0;s=0;s--)e.step(a[s])}function T2t(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function j1(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),a=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;m--)h||r.index(m)>0?(h=!0,c=_e.from(r.node(m).copy(c)),d++):l--;let f=_e.empty,p=0;for(let m=a,h=!1;m>n;m--)h||i.after(m+1)=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=_e.from(n[o].type.create(n[o].attrs,r))}let i=t.start,a=t.end;e.step(new oi(i,a,i,a,new ze(r,0,0),n.length,!0))}function A2t(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&C2t(e.doc,e.mapping.slice(a).map(s),r)){e.clearIncompatible(e.mapping.slice(a).map(s,1),r);let l=e.mapping.slice(a),u=l.map(s,1),c=l.map(s+o.nodeSize,1);return e.step(new oi(u,c,u+1,c-1,new ze(_e.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function C2t(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function N2t(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new oi(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new ze(_e.from(o),0,0),1,!0))}function eg(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=n-2;u>a;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),m=r&&r[c]||d;if(m!=d&&(p=p.replaceChild(0,m.type.create(m.attrs))),!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let s=i.indexAfter(a),l=r&&r[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function I2t(e,t,n=1,r){let i=e.doc.resolve(t),a=_e.empty,o=_e.empty;for(let s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){a=_e.from(i.node(s).copy(a));let c=r&&r[u];o=_e.from(c?c.type.create(c.attrs,o):i.node(s).copy(o))}e.step(new Hi(t,t,new ze(a.append(o),n,n),!0))}function Hf(e,t){let n=e.resolve(t),r=n.index();return Rye(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Rye(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function QN(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let a,o,s=r.index(i);if(i==r.depth?(a=r.nodeBefore,o=r.nodeAfter):n>0?(a=r.node(i+1),s++,o=r.node(i).maybeChild(s)):(a=r.node(i).maybeChild(s-1),o=r.node(i+1)),a&&!a.isTextblock&&Rye(a,o)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function O2t(e,t,n){let r=new Hi(t-n,t+n,ze.empty,!0);e.step(r)}function D2t(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(s>0?1:0),u=r.node(o),c=!1;if(a==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function vV(e,t,n=t,r=ze.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Fye(i,a,r)?new Hi(t,n,r):new x2t(i,a,r).fit()}function Fye(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class x2t{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=_e.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=_e.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let l=new ze(a,o,s);return t>-1?new oi(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Hi(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=_D(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:u}=this.frontier[s],c,d=null;if(n==1&&(o?u.matchType(o.type)||(d=u.fillBefore(_e.from(o),!1)):a&&l.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:d};if(n==2&&o&&(c=u.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:c};if(a&&u.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=_D(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ze(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=_D(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new ze(_y(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new ze(_y(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let h=0;h1||l==0||h.content.size)&&(d=g,c.push(Lye(h.mark(f.allowedMarks(h.marks)),u==1?l:0,u==s.childCount?p:-1)))}let m=u==s.childCount;m||(p=-1),this.placed=Ey(this.placed,n,_e.from(c)),this.frontier[n].match=d,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,g=s;h1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n=0;s--){let{match:l,type:u}=this.frontier[s],c=ED(t,s,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ey(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=Ey(this.placed,this.depth,_e.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(_e.empty,!0);n.childCount&&(this.placed=Ey(this.placed,this.frontier.length,n))}}function _y(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(_y(e.firstChild.content,t-1,n)))}function Ey(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Ey(e.lastChild.content,t-1,n)))}function _D(e,t){for(let n=0;n1&&(r=r.replaceChild(0,Lye(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(_e.empty,!0)))),e.copy(r)}function ED(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!M2t(n,a.content,o)?s:null}function M2t(e,t,n){for(let r=n;r0;f--,p--){let m=i.node(f).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;o.indexOf(f)>-1?s=f:i.before(f)==p&&o.splice(1,0,-f)}let l=o.indexOf(s),u=[],c=r.openStart;for(let f=r.content,p=0;;p++){let m=f.firstChild;if(u.push(m),p==r.openStart)break;f=m.content}for(let f=c-1;f>=0;f--){let p=u[f].type,m=R2t(p);if(m&&i.node(l).type!=p)c=f;else if(m||!p.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),m=u[p];if(m)for(let h=0;h=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let p=o[f];p<0||(t=i.before(p),n=a.after(p))}}function Bye(e,t,n,r,i){if(tr){let a=i.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(_e.empty,!0))}return e}function F2t(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=D2t(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new ze(_e.from(r),0,0))}function L2t(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),a=$ye(r,i);for(let o=0;o0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o)return e.delete(r.before(o),n);e.delete(t,n)}function $ye(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(at.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class tg extends lo{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return zr.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return zr.fromReplace(t,this.pos,this.pos+1,new ze(_e.from(i),0,n.isLeaf?0:1))}getMap(){return ds.empty}invert(t){return new tg(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new tg(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new tg(n.pos,n.attr,n.value)}}lo.jsonID("attr",tg);let Kg=class extends Error{};Kg=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Kg.prototype=Object.create(Error.prototype);Kg.prototype.constructor=Kg;Kg.prototype.name="TransformError";class B2t{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Xh}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Kg(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=ze.empty){let i=vV(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new ze(_e.from(r),0,0))}delete(t,n){return this.replace(t,n,ze.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return P2t(this,t,n,r),this}replaceRangeWith(t,n,r){return F2t(this,t,n,r),this}deleteRange(t,n){return L2t(this,t,n),this}lift(t,n){return _2t(this,t,n),this}join(t,n=1){return O2t(this,t,n),this}wrap(t,n){return k2t(this,t,n),this}setBlockType(t,n=t,r,i=null){return A2t(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return N2t(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new tg(t,n,r)),this}addNodeMark(t,n){return this.step(new Td(t,n)),this}removeNodeMark(t,n){if(!(n instanceof Cn)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Yg(t,n)),this}split(t,n=1,r){return I2t(this,t,n,r),this}addMark(t,n,r){return y2t(this,t,n,r),this}removeMark(t,n,r){return S2t(this,t,n,r),this}clearIncompatible(t,n,r){return b2t(this,t,n,r),this}}const wD=Object.create(null);class Rt{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new $2t(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;a--){let o=n<0?Wm(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):Wm(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new ml(t.node(0))}static atStart(t){return Wm(t,t,0,0,1)||new ml(t)}static atEnd(t){return Wm(t,t,t.content.size,t.childCount,-1)||new ml(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=wD[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in wD)throw new RangeError("Duplicate use of selection JSON ID "+t);return wD[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Lt.between(this.$anchor,this.$head).getBookmark()}}Rt.prototype.visible=!0;class $2t{constructor(t,n){this.$from=t,this.$to=n}}let gie=!1;function vie(e){!gie&&!e.parent.inlineContent&&(gie=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Lt extends Rt{constructor(t,n=t){vie(t),vie(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Rt.near(r);let i=t.resolve(n.map(this.anchor));return new Lt(i.parent.inlineContent?i:r,r)}replace(t,n=ze.empty){if(super.replace(t,n),n==ze.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Lt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new ZN(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Lt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=Rt.findFrom(n,r,!0)||Rt.findFrom(n,-r,!0);if(a)n=a.$head;else return Rt.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Rt.findFrom(t,-r,!0)||Rt.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?o=0;o+=i){let s=t.child(o);if(s.isAtom){if(!a&&ht.isSelectable(s))return ht.create(e,n-(i<0?s.nodeSize:0))}else{let l=Wm(e,s,n+i,i<0?s.childCount:0,i,a);if(l)return l}n+=s.nodeSize*i}return null}function yie(e,t,n){let r=e.steps.length-1;if(r{o==null&&(o=c)}),e.setSelection(Rt.near(e.doc.resolve(o),n))}const Sie=1,M_=2,bie=4;class H2t extends B2t{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=M_,this}ensureMarks(t){return Cn.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&M_)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~M_,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Cn.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),this.selection.empty||this.setSelection(Rt.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=bie,this}get scrolledIntoView(){return(this.updated&bie)>0}}function Tie(e,t){return!t||!e?e:e.bind(t)}class wy{constructor(t,n,r){this.name=t,this.init=Tie(n.init,r),this.apply=Tie(n.apply,r)}}const V2t=[new wy("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new wy("selection",{init(e,t){return e.selection||Rt.atStart(t.doc)},apply(e){return e.selection}}),new wy("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new wy("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class kD{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=V2t.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new wy(r.key,r.spec.state,r))})}}class Eh{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new kD(t.schema,t.plugins),a=new Eh(i);return i.fields.forEach(o=>{if(o.name=="doc")a.doc=np.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=Rt.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],u=l.spec.state;if(l.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=u.fromJSON.call(l,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function Uye(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=Uye(i,t,{})),n[r]=i}return n}class Bo{constructor(t){this.spec=t,this.props={},t.props&&Uye(t.props,this,this.props),this.key=t.key?t.key.key:Hye("plugin")}getState(t){return t[this.key]}}const AD=Object.create(null);function Hye(e){return e in AD?e+"$"+ ++AD[e]:(AD[e]=0,e+"$")}class wc{constructor(t="key"){this.key=Hye(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const vo=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},FS=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let _ie=null;const ju=function(e,t,n){let r=_ie||(_ie=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Fp=function(e,t,n,r){return n&&(Eie(e,t,n,r,-1)||Eie(e,t,n,r,1))},z2t=/^(img|br|input|textarea|hr)$/i;function Eie(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Kl(e))){let a=e.parentNode;if(!a||a.nodeType!=1||W2t(e)||z2t.test(e.nodeName)||e.contentEditable=="false")return!1;t=vo(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?Kl(e):0}else return!1}}function Kl(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function q2t(e,t,n){for(let r=t==0,i=t==Kl(e);r||i;){if(e==n)return!0;let a=vo(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==Kl(e)}}function W2t(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const XN=function(e){return e.focusNode&&Fp(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function S0(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function j2t(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}const yf=typeof navigator<"u"?navigator:null,wie=typeof document<"u"?document:null,Vf=yf&&yf.userAgent||"",eF=/Edge\/(\d+)/.exec(Vf),Vye=/MSIE \d/.exec(Vf),tF=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vf),eo=!!(Vye||tF||eF),$d=Vye?document.documentMode:tF?+tF[1]:eF?+eF[1]:0,El=!eo&&/gecko\/(\d+)/i.test(Vf);El&&+(/Firefox\/(\d+)/.exec(Vf)||[0,0])[1];const nF=!eo&&/Chrome\/(\d+)/.exec(Vf),ca=!!nF,G2t=nF?+nF[1]:0,ba=!eo&&!!yf&&/Apple Computer/.test(yf.vendor),Qg=ba&&(/Mobile\/\w+/.test(Vf)||!!yf&&yf.maxTouchPoints>2),Ko=Qg||(yf?/Mac/.test(yf.platform):!1),Xs=/Android \d/.test(Vf),eI=!!wie&&"webkitFontSmoothing"in wie.documentElement.style,J2t=eI?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Y2t(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function xc(e,t){return typeof e=="number"?e:e[t]}function K2t(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function kie(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;o=FS(o)){if(o.nodeType!=1)continue;let s=o,l=s==a.body,u=l?Y2t(a):K2t(s),c=0,d=0;if(t.topu.bottom-xc(r,"bottom")&&(d=t.bottom-u.bottom+xc(i,"bottom")),t.leftu.right-xc(r,"right")&&(c=t.right-u.right+xc(i,"right")),c||d)if(l)a.defaultView.scrollBy(c,d);else{let f=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),c&&(s.scrollLeft+=c);let m=s.scrollLeft-f,h=s.scrollTop-p;t={left:t.left-m,top:t.top-h,right:t.right-m,bottom:t.bottom-h}}if(l)break}}function Q2t(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:zye(e.dom)}}function zye(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=FS(r));return t}function Z2t({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;qye(n,r==0?0:r-t)}function qye(e,t){for(let n=0;n=s){o=Math.max(f.bottom,o),s=Math.min(f.top,s);let p=f.left>t.left?f.left-t.left:f.right=(f.left+f.right)/2?1:0));continue}}!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(a=u+1)}}return n&&n.nodeType==3?eSt(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:Wye(n,i)}function eSt(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function SV(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function tSt(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function rSt(e,t,n,r){let i=-1;for(let a=t;a!=e.dom;){let o=e.docView.nearestDesc(a,!0);if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)){let s=o.dom.getBoundingClientRect();if(o.node.isBlock&&o.parent&&(s.left>r.left||s.top>r.top?i=o.posBefore:(s.right-1?i:e.docView.posFromDOM(t,n,-1)}function jye(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(o=rSt(e,r,i,t))}o==null&&(o=nSt(e,a,t));let s=e.docView.nearestDesc(a,!0);return{pos:o,inside:s?s.posAtStart-s.border:-1}}function Lc(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}const aSt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Gye(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=eI||El;if(r.nodeType==3)if(o&&(aSt.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=Lc(ju(r,i,i),n);if(El&&i&&/\s/.test(r.nodeValue[i-1])&&i=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,Vv(Lc(ju(r,l,u),1),c<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==Kl(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return CD(l.getBoundingClientRect(),!1)}if(a==null&&i=0)}if(a==null&&i&&(n<0||i==Kl(r))){let l=r.childNodes[i-1],u=l.nodeType==3?ju(l,Kl(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Vv(Lc(u,1),!1)}if(a==null&&i=0)}function Vv(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function CD(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Jye(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function oSt(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Jye(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=Gye(e,i.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=ju(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const sSt=/[\u0590-\u08ac]/;function lSt(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return!sSt.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:Jye(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let p=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:m,focusOffset:h}=e.domSelectionRange(),g=m&&!p.contains(m.nodeType==1?m:m.parentNode)||l==m&&u==h;try{s.collapse(c,d),l&&(l!=c||u!=d)&&s.extend&&s.extend(l,u)}catch{}return f!=null&&(s.caretBidiLevel=f),g})}let Aie=null,Cie=null,Nie=!1;function uSt(e,t,n){return Aie==t&&Cie==n?Nie:(Aie=t,Cie=n,Nie=n=="up"||n=="down"?oSt(e,t,n):lSt(e,t,n))}const hl=0,Iie=1,wh=2,Su=3;class rT{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=hl,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nvo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),o;if(a&&(!n||a.node))if(r&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||o instanceof Kye){i=t-a;break}a=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof Yye&&a.side>=0;r--);if(n<=0){let a,o=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?vo(a.dom)+1:0}}else{let a,o=!0;for(;a=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=o;for(let d=s;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=vo(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;cp&&on){let p=s;s=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(f)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+a.border,l=o-a.border;if(t>=s&&n<=l){this.dirty=t==r||n==o?wh:Iie,t==s&&n==l&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Su:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?wh:Su}r=o}this.dirty=wh}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?wh:Iie;n.dirty{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==hl&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class cSt extends rT{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Lp extends rT{constructor(t,n,r,i){super(t,[],r,i),this.mark=n}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=iu.renderSpec(document,n.type.spec.toDOM(n,r))),new Lp(t,n,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Su||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return this.dirty!=Su&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=hl){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(a=aF(a,0,t,r));for(let s=0;s{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=iu.renderSpec(document,n.type.spec.toDOM(n)));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=Xye(c,r,n),u?l=new dSt(t,n,r,i,c,d||null,f,u,a,o+1):n.isText?new tI(t,n,r,i,c,f,a):new Bp(t,n,r,i,c,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>_e.empty)}return t}matchesNode(t,n,r){return this.dirty==hl&&t.eq(this.node)&&iF(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new pSt(this,o&&o.node,t);gSt(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?Cn.none:this.node.child(c).marks,r,t),l.placeWidget(u,t,i)},(u,c,d,f)=>{l.syncToMarks(u.marks,r,t);let p;l.findNodeMatch(u,c,d,f)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(u,c,d,p,t)||l.updateNextNode(u,c,d,t,f)||l.addNode(u,c,d,t,i),i+=u.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==wh)&&(o&&this.protectLocalComposition(t,o),Qye(this.contentDOM,this.children,t),Qg&&vSt(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Lt)||rn+this.node.content.size)return null;let a=t.domSelectionRange(),o=ySt(a.focusNode,a.focusOffset);if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,l=SSt(this.node.content,s,r-n,i-n);return l<0?null:{node:o,pos:l,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new cSt(this,a,n,i);t.input.compositionNodes.push(o),this.children=aF(this.children,r,r+i.length,t,o)}update(t,n,r,i){return this.dirty==Su||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=hl}updateOuterDeco(t){if(iF(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Zye(this.dom,this.nodeDOM,rF(this.outerDeco,this.node,n),rF(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Oie(e,t,n,r,i){return Xye(r,t,e),new Bp(void 0,e,t,n,r,r,r,i,0)}class tI extends Bp{constructor(t,n,r,i,a,o,s){super(t,n,r,i,a,null,o,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==Su||this.dirty!=hl&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=hl||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=hl,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new tI(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Su)}get domAtom(){return!1}}class Kye extends rT{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==hl&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class dSt extends Bp{constructor(t,n,r,i,a,o,s,l,u,c){super(t,n,r,i,a,o,s,u,c),this.spec=l}update(t,n,r,i){if(this.dirty==Su)return!1;if(this.spec.update){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Qye(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a>1,o=Math.min(a,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Lp.create(this.top,t[a],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,r,i){let a=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,r))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof Lp)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function hSt(e,t){return e.type.side-t.type.side}function gSt(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let u=0;ua;)s.push(i[o++]);let f=a+c.nodeSize;if(c.isText){let m=f;o!m.inline):s.slice();r(c,p,t.forChild(a,c),d),a=f}}function vSt(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function ySt(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=Kl(e)}else if(e.nodeType==1&&t=n){let u=s=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function aF(e,t,n,r,i){let a=[];for(let o=0,s=0;o=n||c<=t?a.push(l):(un&&a.push(l.slice(n-u,l.size,r)))}return a}function bV(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,u;if(XN(n)){for(l=s;i&&!i.node;)i=i.parent;let c=i.node;if(i&&c.isAtom&&ht.isSelectable(c)&&i.parent&&!(c.isInline&&q2t(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;u=new ht(o==d?s:r.resolve(d))}}else{let c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;l=r.resolve(c)}if(!u){let c=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!e2e(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function TSt(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,vo(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&eo&&$d<=11&&(r.disabled=!0,r.disabled=!1)}function t2e(e,t){if(t instanceof ht){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Pie(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Pie(e)}function Pie(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function TV(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Lt.between(t,n,r)}function Fie(e){return e.editable&&!e.hasFocus()?!1:n2e(e)}function n2e(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function _St(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Fp(t.node,t.offset,n.anchorNode,n.anchorOffset)}function oF(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Rt.findFrom(a,t)}function b0(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Lie(e,t,n){let r=e.state.selection;if(r instanceof Lt){if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let i=oF(e.state,t);return i&&i instanceof ht?b0(e,i):!1}else if(!(Ko&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?ht.isSelectable(a)?b0(e,new ht(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):eI?b0(e,new Lt(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else{if(r instanceof ht&&r.node.isInline)return b0(e,new Lt(t>0?r.$to:r.$from));{let i=oF(e.state,t);return i?b0(e,i):!1}}}function U6(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function S2(e){let t=e.pmViewDesc;return t&&t.size==0&&(e.nextSibling||e.nodeName!="BR")}function ID(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(El&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(S2(s))i=n,a=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(r2e(n))break;{let s=n.previousSibling;for(;s&&S2(s);)i=n.parentNode,a=vo(s),s=s.previousSibling;if(s)n=s,r=U6(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?sF(e,n,r):i&&sF(e,i,a)}function OD(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=U6(n),a,o;for(;;)if(r{e.state==i&&fc(e)},50)}function Bie(e,t,n){let r=e.state.selection;if(r instanceof Lt&&!r.empty||n.indexOf("s")>-1||Ko&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=oF(e.state,t);if(o&&o instanceof ht)return b0(e,o)}if(!i.parent.inlineContent){let o=t<0?i:a,s=r instanceof ml?Rt.near(o,t):Rt.findFrom(o,t);return s?b0(e,s):!1}return!1}function $ie(e,t){if(!(e.state.selection instanceof Lt))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function Uie(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function ESt(e){if(!ba||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;Uie(e,r,"true"),setTimeout(()=>Uie(e,r,"false"),20)}return!1}function wSt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function kSt(e,t){let n=t.keyCode,r=wSt(t);return n==8||Ko&&n==72&&r=="c"?$ie(e,-1)||ID(e):n==46||Ko&&n==68&&r=="c"?$ie(e,1)||OD(e):n==13||n==27?!0:n==37||Ko&&n==66&&r=="c"?Lie(e,-1,r)||ID(e):n==39||Ko&&n==70&&r=="c"?Lie(e,1,r)||OD(e):n==38||Ko&&n==80&&r=="c"?Bie(e,-1,r)||ID(e):n==40||Ko&&n==78&&r=="c"?ESt(e)||Bie(e,1,r)||OD(e):r==(Ko?"m":"c")&&(n==66||n==73||n==89||n==90)}function i2e(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let o=e.someProp("clipboardSerializer")||iu.fromSchema(e.state.schema),s=c2e(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=u2e[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let m=s.createElement(c[p]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${a}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` `);return{dom:l,text:f}}function a2e(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,a||r,e)}),a)return t?new ze(_e.from(e.state.schema.text(t.replace(/\r\n?/g,` `))),0,0):ze.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:p}=e.state,m=iu.fromSchema(p);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(h=>{let g=o.appendChild(document.createElement("p"));h&&g.appendChild(m.serializeNode(p.text(h,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),o=NSt(n),eI&&ISt(o);let u=o&&o.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=o.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;o=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||mV.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!ASt.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)s=OSt(Hie(s,+c[1],+c[2]),c[4]);else if(s=ze.maxOpen(CSt(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let p=s.content.firstChild;d{s=d(s,e)}),s}const ASt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function CSt(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let l=i.findWrapping(s.type),u;if(!l)return o=null;if(u=o.length&&a.length&&s2e(l,a,s,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=l2e(o[o.length-1],a.length));let c=o2e(s,l);o.push(c),i=i.matchType(c.type),a=l}}),o)return _e.from(o)}return e}function o2e(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,_e.from(e));return e}function s2e(e,t,n,r,i){if(i=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,e.childCount>1||a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(_e.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function Hie(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=c2e().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&u2e[r[1].toLowerCase()])&&(e=i.map(a=>"<"+a+">").join("")+e+i.map(a=>"").reverse().join("")),n.innerHTML=e,i)for(let a=0;a=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=_e.from(l.create(r[s+1],i)),a++,o++}return new ze(i,a,o)}const Ta={},_a={},DSt={touchstart:!0,touchmove:!0};class xSt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function MSt(e){for(let t in Ta){let n=Ta[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{PSt(e,r)&&!_V(e,r)&&(e.editable||!(r.type in _a))&&n(e,r)},DSt[t]?{passive:!0}:void 0)}ba&&e.dom.addEventListener("input",()=>null),uF(e)}function _d(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function RSt(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function uF(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>_V(e,r))})}function _V(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function PSt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function FSt(e,t){!_V(e,t)&&Ta[t.type]&&(e.editable||!(t.type in _a))&&Ta[t.type](e,t)}_a.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!f2e(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Xs&&ca&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Qg&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,S0(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||kSt(e,n)?n.preventDefault():_d(e,"key")};_a.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};_a.keypress=(e,t)=>{let n=t;if(f2e(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ko&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Lt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",a=>a(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function nI(e){return{left:e.clientX,top:e.clientY}}function LSt(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function EV(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),i,!0):s(e,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function ng(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function BSt(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&ht.isSelectable(r)?(ng(e,new ht(n),"pointer"),!0):!1}function $St(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof ht&&(r=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(ht.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(ng(e,ht.create(e.state.doc,i),"pointer"),!0):!1}function USt(e,t,n,r,i){return EV(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?$St(e,n):BSt(e,n))}function HSt(e,t,n,r){return EV(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function VSt(e,t,n,r){return EV(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||zSt(e,n,r)}function zSt(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(ng(e,Lt.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)ng(e,Lt.create(r,s+1,s+1+o.content.size),"pointer");else if(ht.isSelectable(o))ng(e,ht.create(r,s),"pointer");else continue;return!0}}function wV(e){return H6(e)}const d2e=Ko?"metaKey":"ctrlKey";Ta.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=wV(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&LSt(n,e.input.lastClick)&&!n[d2e]&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a};let o=e.posAtCoords(nI(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new qSt(e,o,n,!!r)):(a=="doubleClick"?HSt:VSt)(e,o.pos,o.inside,n)?n.preventDefault():_d(e,"pointer"))};class qSt{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[d2e],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let c=t.state.doc.resolve(n.pos);a=c.parent,o=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:u}=t.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||u instanceof ht&&u.from<=o&&u.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&El&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),_d(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>fc(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(nI(t))),this.updateAllowDefault(t),this.allowDefault||!n?_d(this.view,"pointer"):USt(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||ba&&this.mightDrag&&!this.mightDrag.node.isAtom||ca&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ng(this.view,Rt.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):_d(this.view,"pointer")}move(t){this.updateAllowDefault(t),_d(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Ta.touchstart=e=>{e.input.lastTouch=Date.now(),wV(e),_d(e,"pointer")};Ta.touchmove=e=>{e.input.lastTouch=Date.now(),_d(e,"pointer")};Ta.contextmenu=e=>wV(e);function f2e(e,t){return e.composing?!0:ba&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const WSt=Xs?5e3:-1;_a.compositionstart=_a.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),H6(e,!0),e.markCursor=null;else if(H6(e),El&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){e.domSelection().collapse(o,o.nodeValue.length);break}else i=o,a=-1}}e.input.composing=!0}p2e(e,WSt)};_a.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,p2e(e,20))};function p2e(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>H6(e),t))}function m2e(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=jSt());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function jSt(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function H6(e,t=!1){if(!(Xs&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),m2e(e),t||e.docView&&e.docView.dirty){let n=bV(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function GSt(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Zg=eo&&$d<15||Qg&&J2t<604;Ta.copy=_a.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=Zg?null:n.clipboardData,o=r.content(),{dom:s,text:l}=i2e(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",l)):GSt(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function JSt(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function YSt(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?LS(e,r.value,null,e.input.shiftKey,t):LS(e,r.textContent,r.innerHTML,e.input.shiftKey,t)},50)}function LS(e,t,n,r,i){let a=a2e(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,a||ze.empty)))return!0;if(!a)return!1;let o=JSt(a),s=o?e.state.tr.replaceSelectionWith(o,e.input.shiftKey):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}_a.paste=(e,t)=>{let n=t;if(e.composing&&!Xs)return;let r=Zg?null:n.clipboardData;r&&LS(e,r.getData("text/plain"),r.getData("text/html"),e.input.shiftKey,n)?n.preventDefault():YSt(e,n)};class KSt{constructor(t,n){this.slice=t,this.move=n}}const h2e=Ko?"altKey":"ctrlKey";Ta.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(nI(n));if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof ht?i.to-1:i.to))){if(r&&r.mightDrag)e.dispatch(e.state.tr.setSelection(ht.create(e.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&e.dispatch(e.state.tr.setSelection(ht.create(e.state.doc,u.posBefore)))}}let o=e.state.selection.content(),{dom:s,text:l}=i2e(e,o);n.dataTransfer.clearData(),n.dataTransfer.setData(Zg?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",Zg||n.dataTransfer.setData("text/plain",l),e.dragging=new KSt(o,!n[h2e])};Ta.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};_a.dragover=_a.dragenter=(e,t)=>t.preventDefault();_a.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(nI(n));if(!i)return;let a=e.state.doc.resolve(i.pos),o=r&&r.slice;o?e.someProp("transformPasted",m=>{o=m(o,e)}):o=a2e(e,n.dataTransfer.getData(Zg?"Text":"text/plain"),Zg?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(r&&!n[h2e]);if(e.someProp("handleDrop",m=>m(e,n,o||ze.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let l=o?Pye(e.state.doc,a.pos,o):a.pos;l==null&&(l=a.pos);let u=e.state.tr;s&&u.deleteSelection();let c=u.mapping.map(l),d=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,f=u.doc;if(d?u.replaceRangeWith(c,c,o.content.firstChild):u.replaceRange(c,c,o),u.doc.eq(f))return;let p=u.doc.resolve(c);if(d&&ht.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))u.setSelection(new ht(p));else{let m=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((h,g,v,y)=>m=y),u.setSelection(TV(e,p,u.doc.resolve(m)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};Ta.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&fc(e)},20))};Ta.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Ta.beforeinput=(e,t)=>{if(ca&&Xs&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,S0(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in _a)Ta[e]=_a[e];function BS(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class kV{constructor(t,n){this.toDOM=t,this.spec=n||rp,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:o}=t.mapResult(n.from+i,this.side<0?-1:1);return o?null:new _o(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof kV&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&BS(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ud{constructor(t,n){this.attrs=t,this.spec=n||rp}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new _o(a,o,this)}valid(t,n){return n.from=t&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;ot){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,r,i+s,a)}}map(t,n,r){return this==Li||t.maps.length==0?this:this.mapInner(t,n,0,0,r||rp)}mapInner(t,n,r,i,a){let o;for(let s=0;s{let u=l+r,c;if(c=v2e(n,s,u)){for(i||(i=this.children.slice());as&&d.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;sa&&l.type instanceof Ud){let u=Math.max(a,l.from)-a,c=Math.min(o,l.to)-a;ui.map(t,n,rp));return rd.from(r)}forChild(t,n){if(n.isLeaf)return Pr.empty;let r=[];for(let i=0;in instanceof Pr)?t:t.reduce((n,r)=>n.concat(r instanceof Pr?r:r.members),[]))}}}function QSt(e,t,n,r,i,a,o){let s=e.slice();for(let u=0,c=a;u{let g=h-m-(p-f);for(let v=0;vy+c-d)continue;let b=s[v]+c-d;p>=b?s[v+1]=f<=b?-2:-1:m>=i&&g&&(s[v]+=g,s[v+1]+=g)}d+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let f=n.map(e[u+1]+a,-1),p=f-i,{index:m,offset:h}=r.content.findIndex(d),g=r.maybeChild(m);if(g&&h==d&&h+g.nodeSize==p){let v=s[u+2].mapInner(n,g,c+1,e[u]+a+1,o);v!=Li?(s[u]=d,s[u+1]=p,s[u+2]=v):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=ZSt(s,e,t,n,i,a,o),c=V6(u,r,0,o);t=c.local;for(let d=0;dn&&o.to{let u=v2e(e,s,l+n);if(u){a=!0;let c=V6(u,s,n+l+1,r);c!=Li&&i.push(l,l+s.nodeSize,c)}});let o=g2e(a?y2e(e):e,-n).sort(ip);for(let s=0;s0;)t++;e.splice(t,0,n)}function DD(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Li&&t.push(r)}),e.cursorWrapper&&t.push(Pr.create(e.state.doc,[e.cursorWrapper.deco])),rd.from(t)}const XSt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ebt=eo&&$d<=11;class tbt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class nbt{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tbt,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),ebt&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,XSt)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Fie(this.view)){if(this.suppressingSelectionUpdates)return fc(this.view);if(eo&&$d<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Fp(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=FS(a))n.add(a);for(let a=t.anchorNode;a;a=FS(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.observer?this.observer.takeRecords():[];this.queue.length&&(n=this.queue.concat(n),this.queue.length=0);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Fie(t)&&!this.ignoreSelectionChange(r),a=-1,o=-1,s=!1,l=[];if(t.editable)for(let c=0;c1){let c=l.filter(d=>d.nodeName=="BR");if(c.length==2){let d=c[0],f=c[1];d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}}let u=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(a>-1&&(t.docView.markDirty(a,o),rbt(t)),this.handleDOMChange(a,o,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||fc(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ci;g--){let v=r.childNodes[g-1],y=v.pmViewDesc;if(v.nodeName=="BR"&&!y){a=g;break}if(!y||y.size)break}let d=e.state.doc,f=e.someProp("domParser")||mV.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:obt,context:p});if(u&&u[0].pos!=null){let g=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=g),m={anchor:g+o,head:v+o}}return{doc:h,sel:m,from:o,to:s}}function obt(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(ba&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||ba&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}function sbt(e,t,n,r,i){if(t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,D=bV(e,A);if(D&&!e.state.selection.eq(D)){if(ca&&Xs&&e.input.lastKeyCode===13&&Date.now()-100B(e,S0(13,"Enter"))))return;let R=e.state.tr.setSelection(D);A=="pointer"?R.setMeta("pointer",!0):A=="key"&&R.scrollIntoView(),e.dispatch(R)}return}let a=e.state.doc.resolve(t),o=a.sharedDepth(n);t=a.before(o+1),n=e.state.doc.resolve(n).after(o+1);let s=e.state.selection,l=abt(e,t,n),u=e.state.doc,c=u.slice(l.from,l.to),d,f;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Xs)&&i.some(A=>A.nodeName=="DIV"||A.nodeName=="P"||A.nodeName=="LI")&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",A=>A(e,S0(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&s instanceof Lt&&!s.empty&&s.$head.sameParent(s.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:s.from,endA:s.to,endB:s.to};else{if(l.sel){let A=jie(e,e.state.doc,l.sel);A&&!A.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(A))}return}if(ca&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let A=p.endB-p.start;l.sel={anchor:l.sel.anchor+A,head:l.sel.anchor+A}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),eo&&$d<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),h=l.doc.resolveNoCache(p.endB-l.from),g=u.resolve(p.start),v=m.sameParent(h)&&m.parent.inlineContent&&g.end()>=p.endA,y;if((Qg&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!v&&m.posA(e,S0(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&ubt(u,p.start,p.endA,m,h)&&e.someProp("handleKeyDown",A=>A(e,S0(8,"Backspace")))){Xs&&ca&&e.domObserver.suppressSelectionUpdates();return}ca&&Xs&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),Xs&&!v&&m.start()!=h.start()&&h.parentOffset==0&&m.depth==h.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,h=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,S0(13,"Enter"))})},20));let b=p.start,T=p.endA,_,E,k;if(v){if(m.pos==h.pos)eo&&$d<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>fc(e),20)),_=e.state.tr.delete(b,T),E=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(k=lbt(m.parent.content.cut(m.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,p.endA-g.start()))))_=e.state.tr,k.type=="add"?_.addMark(b,T,k.mark):_.removeMark(b,T,k.mark);else if(m.parent.child(m.index()).isText&&m.index()==h.index()-(h.textOffset?0:1)){let A=m.parent.textBetween(m.parentOffset,h.parentOffset);if(e.someProp("handleTextInput",D=>D(e,b,T,A)))return;_=e.state.tr.insertText(A,b,T)}}if(_||(_=e.state.tr.replace(b,T,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let A=jie(e,_.doc,l.sel);A&&!(ca&&Xs&&e.composing&&A.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:TV(e,t.resolve(n.anchor),t.resolve(n.head))}function lbt(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&a.length==1)s=a[0],o="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||xD(o,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function cbt(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,a-Math.min(o,s));r-=o+l-a}if(o=o?a-r:0;a-=l,s=a+(s-o),o=a}else if(s=s?a-r:0;a-=l,o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}class dbt{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new xSt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Qie),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Yie(this),Jie(this),this.nodeViews=Kie(this),this.docView=Oie(this.state.doc,Gie(this),DD(this),this.dom,this),this.domObserver=new nbt(this,(r,i,a,o)=>sbt(this,r,i,a,o)),this.domObserver.start(),MSt(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&uF(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Qie),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){let r=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(m2e(this),a=!0),this.state=t;let o=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=Kie(this);pbt(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&uF(this),this.editable=Yie(this),Jie(this);let s=DD(this),l=Gie(this),u=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",c=i||!this.docView.matchesNode(t.doc,l,s);(c||!t.selection.eq(r.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Q2t(this);if(a){this.domObserver.stop();let f=c&&(eo||ca)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&fbt(r.selection,t.selection);if(c){let p=ca?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,s,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Oie(t.doc,l,s,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&_St(this))?fc(this,f):(t2e(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&Z2t(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ht){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&kie(this,n.getBoundingClientRect(),t)}else kie(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;nn.ownerDocument.getSelection()),this._root=n}return t||document}posAtCoords(t){return iSt(this,t)}coordsAtPos(t,n=1){return Gye(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return uSt(this,n||this.state,t)}pasteHTML(t,n){return LS(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return LS(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(RSt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],DD(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return FSt(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ba&&this.root.nodeType===11&&j2t(this.dom.ownerDocument)==this.dom?ibt(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Gie(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"&&(t.class+=" "+n[r]),r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),[_o.node(0,e.state.doc.content.size,t)]}function Jie(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:_o.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Yie(e){return!e.someProp("editable",t=>t(e.state)===!1)}function fbt(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Kie(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function pbt(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function Qie(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Sf={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},z6={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},Zie=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),mbt=typeof navigator<"u"&&/Apple Computer/.test(navigator.vendor),hbt=typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),Xie=typeof navigator<"u"&&/Mac/.test(navigator.platform),gbt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),vbt=Zie&&(Xie||+Zie[1]<57)||hbt&&Xie;for(var Ti=0;Ti<10;Ti++)Sf[48+Ti]=Sf[96+Ti]=String(Ti);for(var Ti=1;Ti<=24;Ti++)Sf[Ti+111]="F"+Ti;for(var Ti=65;Ti<=90;Ti++)Sf[Ti]=String.fromCharCode(Ti+32),z6[Ti]=String.fromCharCode(Ti);for(var MD in Sf)z6.hasOwnProperty(MD)||(z6[MD]=Sf[MD]);function ybt(e){var t=vbt&&(e.ctrlKey||e.altKey||e.metaKey)||(mbt||gbt)&&e.shiftKey&&e.key&&e.key.length==1,n=!t&&e.key||(e.shiftKey?z6:Sf)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Sbt=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function bbt(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s127)&&(a=Sf[r.keyCode])&&a!=i){let s=t[RD(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const Ebt=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function wbt(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const kbt=(e,t,n)=>{let r=wbt(e,n);if(!r)return!1;let i=b2e(r);if(!i){let o=r.blockRange(),s=o&&j1(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(!a.type.spec.isolating&&E2e(e,i,t))return!0;if(r.parent.content.size==0&&(Xg(a,"end")||ht.isSelectable(a))){let o=vV(e.doc,r.before(),r.after(),ze.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=b2e(r)}let o=a&&a.nodeBefore;return!o||!ht.isSelectable(o)?!1:(t&&t(e.tr.setSelection(ht.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function b2e(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Cbt(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=Cbt(e,n);if(!r)return!1;let i=T2e(r);if(!i)return!1;let a=i.nodeAfter;if(E2e(e,i,t))return!0;if(r.parent.content.size==0&&(Xg(a,"start")||ht.isSelectable(a))){let o=vV(e.doc,r.before(),r.after(),ze.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof ht,i;if(r){if(n.node.isTextblock||!Hf(e.doc,n.from))return!1;i=n.from}else if(i=QN(e.doc,n.from,-1),i==null)return!1;if(t){let a=e.tr.join(i);r&&a.setSelection(ht.create(a.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},Dbt=(e,t)=>{let n=e.selection,r;if(n instanceof ht){if(n.node.isTextblock||!Hf(e.doc,n.to))return!1;r=n.to}else if(r=QN(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},xbt=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&j1(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},Mbt=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` `).scrollIntoView()),!0)};function _2e(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=_2e(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,o.createAndFill());l.setSelection(Rt.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Pbt=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof ml||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=_2e(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(eg(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&j1(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},Lbt=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(ht.create(e.doc,i))),!0)};function Bbt(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Hf(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)}function E2e(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a,o;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(Bbt(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(a=(o=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&o.matchType(a[0]||i.type).validEnd){if(n){let d=t.pos+i.nodeSize,f=_e.empty;for(let h=a.length-1;h>=0;h--)f=_e.from(a[h].create(null,f));f=_e.from(r.copy(f));let p=e.tr.step(new oi(t.pos-1,d,t.pos,d,new ze(f,1,0),a.length,!0)),m=d+2*a.length;Hf(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let l=Rt.findFrom(t,1),u=l&&l.$from.blockRange(l.$to),c=u&&j1(u);if(c!=null&&c>=t.depth)return n&&n(e.tr.lift(u,c).scrollIntoView()),!0;if(s&&Xg(i,"start",!0)&&Xg(r,"end")){let d=r,f=[];for(;f.push(d),!d.isTextblock;)d=d.lastChild;let p=i,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(n){let h=_e.empty;for(let v=f.length-1;v>=0;v--)h=_e.from(f[v].copy(h));let g=e.tr.step(new oi(t.pos-f.length,t.pos+i.nodeSize,t.pos+m,t.pos+i.nodeSize-m,new ze(h,f.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function w2e(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Lt.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const $bt=w2e(-1),Ubt=w2e(1);function Hbt(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&gV(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function eae(e,t=null){return function(n,r){let i=!1;for(let a=0;a{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let c=n.doc.resolve(u),d=c.index();i=c.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o=2&&i.node(o.depth-1).type.compatibleContent(e)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let c=n.doc.resolve(o.start-2);l=new F6(c,c,o.depth),o.endIndex=0;c--)a=_e.from(n[c].type.create(n[c].attrs,a));e.step(new oi(t.start-(r?2:0),t.end,t.start,t.end,new ze(a,0,0),n.length,!0));let o=0;for(let c=0;co.childCount>0&&o.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Wbt(t,n,e,a):jbt(t,n,a):!0:!1}}function Wbt(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);ah;m--)p-=i.child(m).nodeSize,r.delete(p-1,p+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=a.node(-1),c=a.index(-1);if(!u.canReplace(c+(s?0:1),c+1,o.content.append(l?_e.empty:_e.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new oi(d-(s?1:0),f+(l?1:0),d+1,f-1,new ze((s?_e.empty:_e.from(i.copy(_e.empty))).append(l?_e.empty:_e.from(i.copy(_e.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Gbt(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,l=s.child(o-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=_e.from(u?e.create():null),d=new ze(_e.from(e.create(null,_e.from(s.type.create(null,c)))),u?3:1,0),f=a.start,p=a.end;n(t.tr.step(new oi(f-(u?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function rI(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}class iI{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:a}=r,o=this.buildProps(a);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const d=l(...c)(o);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s=[],l=!!t,u=t||a.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(u),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...h)=>{const g=this.buildProps(u,n),v=p(...h)(g);return s.push(v),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,a=t||r.tr,o=this.buildProps(a,i);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(a,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s={tr:t,editor:i,view:o,state:rI({state:a,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}}class Jbt{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(i=>i.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(i=>i!==n):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function Qe(e,t,n){return e.config[t]===void 0&&e.parent?Qe(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Qe(e.parent,t,n):null}):e.config[t]}function aI(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function k2e(e){const t=[],{nodeExtensions:n,markExtensions:r}=aI(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},l=Qe(o,"addGlobalAttributes",s);if(!l)return;l().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{t.push({type:d,name:f,attribute:{...a,...p}})})})})}),i.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},l=Qe(o,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const f={...a,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,t.push({type:o.name,name:c,attribute:f})})}),t}function ci(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function di(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,a])=>{if(!r[i]){r[i]=a;return}if(i==="class"){const s=a?a.split(" "):[],l=r[i]?r[i].split(" "):[],u=s.filter(c=>!l.includes(c));r[i]=[...l,...u].join(" ")}else i==="style"?r[i]=[r[i],a].join("; "):r[i]=a}),r},{})}function cF(e,t){return t.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>di(n,r),{})}function A2e(e){return typeof e=="function"}function Pt(e,t=void 0,...n){return A2e(e)?t?e.bind(t)(...n):e(...n):e}function Ybt(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Kbt(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function tae(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):Kbt(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...r,...i}}}}function nae(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Ybt(n)?!1:n!=null))}function Qbt(e,t){var n;const r=k2e(e),{nodeExtensions:i,markExtensions:a}=aI(e),o=(n=i.find(u=>Qe(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(u=>{const c=r.filter(v=>v.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((v,y)=>{const b=Qe(y,"extendNodeSchema",d);return{...v,...b?b(u):{}}},{}),p=nae({...f,content:Pt(Qe(u,"content",d)),marks:Pt(Qe(u,"marks",d)),group:Pt(Qe(u,"group",d)),inline:Pt(Qe(u,"inline",d)),atom:Pt(Qe(u,"atom",d)),selectable:Pt(Qe(u,"selectable",d)),draggable:Pt(Qe(u,"draggable",d)),code:Pt(Qe(u,"code",d)),defining:Pt(Qe(u,"defining",d)),isolating:Pt(Qe(u,"isolating",d)),attrs:Object.fromEntries(c.map(v=>{var y;return[v.name,{default:(y=v==null?void 0:v.attribute)===null||y===void 0?void 0:y.default}]}))}),m=Pt(Qe(u,"parseHTML",d));m&&(p.parseDOM=m.map(v=>tae(v,c)));const h=Qe(u,"renderHTML",d);h&&(p.toDOM=v=>h({node:v,HTMLAttributes:cF(v,c)}));const g=Qe(u,"renderText",d);return g&&(p.toText=g),[u.name,p]})),l=Object.fromEntries(a.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((g,v)=>{const y=Qe(v,"extendMarkSchema",d);return{...g,...y?y(u):{}}},{}),p=nae({...f,inclusive:Pt(Qe(u,"inclusive",d)),excludes:Pt(Qe(u,"excludes",d)),group:Pt(Qe(u,"group",d)),spanning:Pt(Qe(u,"spanning",d)),code:Pt(Qe(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var v;return[g.name,{default:(v=g==null?void 0:g.attribute)===null||v===void 0?void 0:v.default}]}))}),m=Pt(Qe(u,"parseHTML",d));m&&(p.parseDOM=m.map(g=>tae(g,c)));const h=Qe(u,"renderHTML",d);return h&&(p.toDOM=g=>h({mark:g,HTMLAttributes:cF(g,c)})),[u.name,p]}));return new u2t({topNode:o,nodes:s,marks:l})}function PD(e,t){return t.nodes[e]||t.marks[e]||null}function rae(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}const Zbt=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,a,o,s)=>{var l,u;const c=((u=(l=i.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:i,pos:a,parent:o,index:s}))||i.textContent||"%leaf%";n+=c.slice(0,Math.max(0,r-a))}),n};function NV(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class IV{constructor(t){this.find=t.find,this.handler=t.handler}}const Xbt=(e,t)=>{if(NV(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function FD(e){var t;const{editor:n,from:r,to:i,text:a,rules:o,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=Zbt(u)+a;return o.forEach(f=>{if(c)return;const p=Xbt(d,f.find);if(!p)return;const m=l.state.tr,h=rI({state:l.state,transaction:m}),g={from:r-(p[0].length-a.length),to:i},{commands:v,chain:y,can:b}=new iI({editor:n,state:h});f.handler({state:h,range:g,match:p,commands:v,chain:y,can:b})===null||!m.steps.length||(m.setMeta(s,{transform:m,from:r,to:i,text:a}),l.dispatch(m),c=!0)}),c}function eTt(e){const{editor:t,rules:n}=e,r=new Bo({state:{init(){return null},apply(i,a){const o=i.getMeta(r);return o||(i.selectionSet||i.docChanged?null:a)}},props:{handleTextInput(i,a,o,s){return FD({editor:t,from:a,to:o,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&FD({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?FD({editor:t,from:o.pos,to:o.pos,text:` `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function tTt(e){return typeof e=="number"}class nTt{constructor(t){this.find=t.find,this.handler=t.handler}}const rTt=(e,t)=>{if(NV(t))return[...e.matchAll(t)];const n=t(e);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=e,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function iTt(e){const{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:l,chain:u,can:c}=new iI({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const h=Math.max(r,m),g=Math.min(i,m+p.content.size),v=p.textBetween(h-m,g-m,void 0,"");rTt(v,a.find).forEach(b=>{if(b.index===void 0)return;const T=h+b.index+1,_=T+b[0].length,E={from:n.tr.mapping.map(T),to:n.tr.mapping.map(_)},k=a.handler({state:n,range:E,match:b,commands:l,chain:u,can:c,pasteEvent:o,dropEvent:s});d.push(k)})}),d.every(p=>p!==null)}function aTt(e){const{editor:t,rules:n}=e;let r=null,i=!1,a=!1,o=new ClipboardEvent("paste"),s=new DragEvent("drop");return n.map(u=>new Bo({view(c){const d=f=>{var p;r=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?c.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(c,d)=>(a=r===c.dom.parentElement,s=d,!1),paste:(c,d)=>{var f;const p=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return o=d,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(c,d,f)=>{const p=c[0],m=p.getMeta("uiEvent")==="paste"&&!i,h=p.getMeta("uiEvent")==="drop"&&!a;if(!m&&!h)return;const g=d.doc.content.findDiffStart(f.doc.content),v=d.doc.content.findDiffEnd(f.doc.content);if(!tTt(g)||!v||g===v.b)return;const y=f.tr,b=rI({state:f,transaction:y});if(!(!iTt({editor:t,state:b,from:Math.max(g-1,0),to:v.b-1,rule:u,pasteEvent:o,dropEvent:s})||!y.steps.length))return s=new DragEvent("drop"),o=new ClipboardEvent("paste"),y}}))}function oTt(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return[...new Set(t)]}class kh{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=kh.resolve(t),this.schema=Qbt(this.extensions,n),this.extensions.forEach(r=>{var i;this.editor.extensionStorage[r.name]=r.storage;const a={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:PD(r.name,this.schema)};r.type==="mark"&&(!((i=Pt(Qe(r,"keepOnSplit",a)))!==null&&i!==void 0)||i)&&this.splittableMarks.push(r.name);const o=Qe(r,"onBeforeCreate",a);o&&this.editor.on("beforeCreate",o);const s=Qe(r,"onCreate",a);s&&this.editor.on("create",s);const l=Qe(r,"onUpdate",a);l&&this.editor.on("update",l);const u=Qe(r,"onSelectionUpdate",a);u&&this.editor.on("selectionUpdate",u);const c=Qe(r,"onTransaction",a);c&&this.editor.on("transaction",c);const d=Qe(r,"onFocus",a);d&&this.editor.on("focus",d);const f=Qe(r,"onBlur",a);f&&this.editor.on("blur",f);const p=Qe(r,"onDestroy",a);p&&this.editor.on("destroy",p)})}static resolve(t){const n=kh.sort(kh.flatten(t)),r=oTt(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=Qe(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((r,i)=>{const a=Qe(r,"priority")||100,o=Qe(i,"priority")||100;return a>o?-1:a{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:PD(n.name,this.schema)},i=Qe(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=kh.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(o=>{const s={name:o.name,options:o.options,storage:o.storage,editor:t,type:PD(o.name,this.schema)},l=[],u=Qe(o,"addKeyboardShortcuts",s);let c={};if(o.type==="mark"&&o.config.exitable&&(c.ArrowRight=()=>bu.handleExit({editor:t,mark:o})),u){const h=Object.fromEntries(Object.entries(u()).map(([g,v])=>[g,()=>v({editor:t})]));c={...c,...h}}const d=_bt(c);l.push(d);const f=Qe(o,"addInputRules",s);rae(o,t.options.enableInputRules)&&f&&r.push(...f());const p=Qe(o,"addPasteRules",s);rae(o,t.options.enablePasteRules)&&p&&i.push(...p());const m=Qe(o,"addProseMirrorPlugins",s);if(m){const h=m();l.push(...h)}return l}).flat();return[eTt({editor:t,rules:r}),...aTt({editor:t,rules:i}),...a]}get attributes(){return k2e(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=aI(this.extensions);return Object.fromEntries(n.filter(r=>!!Qe(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t,type:ci(r.name,this.schema)},o=Qe(r,"addNodeView",a);if(!o)return[];const s=(l,u,c,d)=>{const f=cF(l,i);return o()({editor:t,node:l,getPos:c,decorations:d,HTMLAttributes:f,extension:r})};return[r.name,s]}))}}function sTt(e){return Object.prototype.toString.call(e).slice(8,-1)}function LD(e){return sTt(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function oI(e,t){const n={...e};return LD(e)&&LD(t)&&Object.keys(t).forEach(r=>{LD(t[r])?r in e?n[r]=oI(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}class xo{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Pt(Qe(this,"addOptions",{name:this.name}))),this.storage=Pt(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new xo(t)}configure(t={}){const n=this.extend();return n.options=oI(this.options,t),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new xo(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Pt(Qe(n,"addOptions",{name:n.name})),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}}function C2e(e,t,n){const{from:r,to:i}=t,{blockSeparator:a=` `,textSerializers:o={}}=n||{};let s="",l=!0;return e.nodesBetween(r,i,(u,c,d,f)=>{var p;const m=o==null?void 0:o[u.type.name];m?(u.isBlock&&!l&&(s+=a,l=!0),d&&(s+=m({node:u,pos:c,parent:d,index:f,range:t}))):u.isText?(s+=(p=u==null?void 0:u.text)===null||p===void 0?void 0:p.slice(Math.max(r,c)-c,i-c),l=!1):u.isBlock&&!l&&(s+=a,l=!0)}),s}function N2e(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const lTt=xo.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Bo({key:new wc("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(c=>c.$from.pos)),s=Math.max(...a.map(c=>c.$to.pos)),l=N2e(n);return C2e(r,{from:o,to:s},{textSerializers:l})}}})]}}),uTt=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),cTt=(e=!1)=>({commands:t})=>t.setContent("",e),dTt=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:o})=>{e.doc.nodesBetween(a.pos,o.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),f=u.resolve(c.map(l+s.nodeSize)),p=d.blockRange(f);if(!p)return;const m=j1(p);if(s.type.isTextblock){const{defaultType:h}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,h)}(m||m===0)&&t.lift(p,m)})}),!0},fTt=e=>t=>e(t),pTt=()=>({state:e,dispatch:t})=>Pbt(e,t),mTt=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new Lt(r.doc.resolve(o-1))),!0},hTt=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(t){const s=i.before(a),l=i.after(a);e.delete(s,l).scrollIntoView()}return!0}return!1},gTt=e=>({tr:t,state:n,dispatch:r})=>{const i=ci(e,n.schema),a=t.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===i){if(r){const l=a.before(o),u=a.after(o);t.delete(l,u).scrollIntoView()}return!0}return!1},vTt=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},yTt=()=>({state:e,dispatch:t})=>Ebt(e,t),STt=()=>({commands:e})=>e.keyboardShortcut("Enter"),bTt=()=>({state:e,dispatch:t})=>Rbt(e,t);function q6(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:NV(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function dF(e,t,n={}){return e.find(r=>r.type===t&&q6(r.attrs,n))}function TTt(e,t,n={}){return!!dF(e,t,n)}function OV(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&r.offset!==0&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const i=dF([...r.node.marks],t,n);if(!i)return;let a=r.index,o=e.start()+r.offset,s=a+1,l=o+r.node.nodeSize;for(dF([...r.node.marks],t,n);a>0&&i.isInSet(e.parent.child(a-1).marks);)a-=1,o-=e.parent.child(a).nodeSize;for(;s({tr:n,state:r,dispatch:i})=>{const a=zf(e,r.schema),{doc:o,selection:s}=n,{$from:l,from:u,to:c}=s;if(i){const d=OV(l,a,t);if(d&&d.from<=u&&d.to>=c){const f=Lt.create(o,d.from,d.to);n.setSelection(f)}}return!0},ETt=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};const o=()=>{DV()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!I2e(n.state.selection))return o(),!0;const s=O2e(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return a&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},kTt=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),ATt=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t);function iae(e){const t=`${e}`;return new window.DOMParser().parseFromString(t,"text/html").body}function W6(e,t,n){if(n={slice:!0,parseOptions:{},...n},typeof e=="object"&&e!==null)try{return Array.isArray(e)&&e.length>0?_e.fromArray(e.map(r=>t.nodeFromJSON(r))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),W6("",t,n)}if(typeof e=="string"){const r=mV.fromSchema(t);return n.slice?r.parseSlice(iae(e),n.parseOptions).content:r.parse(iae(e),n.parseOptions)}return W6("",t,n)}function CTt(e,t,n){const r=e.steps.length-1;if(r{o===0&&(o=c)}),e.setSelection(Rt.near(e.doc.resolve(o),n))}const NTt=e=>e.toString().startsWith("<"),ITt=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const o=W6(t,a.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(o.toString()==="<>")return!0;let{from:s,to:l}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},u=!0,c=!0;if((NTt(o)?o:[o]).forEach(f=>{f.check(),u=u?f.isText&&f.marks.length===0:!1,c=c?f.isBlock:!1}),s===l&&c){const{parent:f}=r.doc.resolve(s);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(s-=1,l+=1)}u?Array.isArray(t)?r.insertText(t.map(f=>f.text||"").join(""),s,l):typeof t=="object"&&t&&t.text?r.insertText(t.text,s,l):r.insertText(t,s,l):r.replaceWith(s,l,o),n.updateSelection&&CTt(r,r.steps.length-1,-1)}return!0},OTt=()=>({state:e,dispatch:t})=>Obt(e,t),DTt=()=>({state:e,dispatch:t})=>Dbt(e,t),xTt=()=>({state:e,dispatch:t})=>kbt(e,t),MTt=()=>({state:e,dispatch:t})=>Nbt(e,t),RTt=()=>({tr:e,state:t,dispatch:n})=>{try{const r=QN(t.doc,t.selection.$from.pos,-1);return r==null?!1:(e.join(r,2),n&&n(e),!0)}catch{return!1}},PTt=()=>({state:e,dispatch:t,tr:n})=>{try{const r=QN(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}};function D2e(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function FTt(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,a,o;for(let s=0;s({editor:t,view:n,tr:r,dispatch:i})=>{const a=FTt(e).split(/-(?!$)/),o=a.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))});return l==null||l.steps.forEach(u=>{const c=u.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function $S(e,t,n={}){const{from:r,to:i,empty:a}=e.selection,o=t?ci(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),m=Math.min(i,f+d.nodeSize);s.push({node:d,from:p,to:m})});const l=i-r,u=s.filter(d=>o?o.name===d.node.type.name:!0).filter(d=>q6(d.node.attrs,n,{strict:!1}));return a?!!u.length:u.reduce((d,f)=>d+f.to-f.from,0)>=l}const BTt=(e,t={})=>({state:n,dispatch:r})=>{const i=ci(e,n.schema);return $S(n,i,t)?xbt(n,r):!1},$Tt=()=>({state:e,dispatch:t})=>Fbt(e,t),UTt=e=>({state:t,dispatch:n})=>{const r=ci(e,t.schema);return qbt(r)(t,n)},HTt=()=>({state:e,dispatch:t})=>Mbt(e,t);function sI(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function aae(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const VTt=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=sI(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(a=ci(e,r.schema)),s==="mark"&&(o=zf(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{a&&a===u.type&&n.setNodeMarkup(c,void 0,aae(u.attrs,t)),o&&u.marks.length&&u.marks.forEach(d=>{o===d.type&&n.addMark(c,c+u.nodeSize,o.create(aae(d.attrs,t)))})})}),!0):!1},zTt=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),qTt=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),WTt=()=>({state:e,dispatch:t})=>Abt(e,t),jTt=()=>({state:e,dispatch:t})=>Ibt(e,t),GTt=()=>({state:e,dispatch:t})=>Lbt(e,t),JTt=()=>({state:e,dispatch:t})=>Ubt(e,t),YTt=()=>({state:e,dispatch:t})=>$bt(e,t);function x2e(e,t,n={}){return W6(e,t,{slice:!1,parseOptions:n})}const KTt=(e,t=!1,n={})=>({tr:r,editor:i,dispatch:a})=>{const{doc:o}=r,s=x2e(e,i.schema,n);return a&&r.replaceWith(0,o.content.size,s).setMeta("preventUpdate",!t),!0};function lI(e,t){const n=zf(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{o.push(...l.marks)});const s=o.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function QTt(e){for(let t=0;t0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function xV(e){return t=>ZTt(t.$from,e)}function XTt(e,t){const n=iu.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function e_t(e,t){const n={from:0,to:e.content.size};return C2e(e,n,t)}function t_t(e,t){const n=ci(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,s=>{a.push(s)});const o=a.reverse().find(s=>s.type.name===n.name);return o?{...o.attrs}:{}}function n_t(e,t){const n=sI(typeof t=="string"?t:t.name,e.schema);return n==="node"?t_t(e,t):n==="mark"?lI(e,t):{}}function M2e(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const a=n.resolve(e-1),o=OV(a,i.type);o&&r.push({mark:i,...o})}):n.nodesBetween(e,t,(i,a)=>{r.push(...i.marks.map(o=>({from:a,to:a+i.nodeSize,mark:o})))}),r}function Rw(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(a=>a.type===t&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}function fF(e,t,n={}){const{empty:r,ranges:i}=e.selection,a=t?zf(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>a?a.name===d.type.name:!0).find(d=>q6(d.attrs,n,{strict:!1}));let o=0;const s=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,m=f.pos;e.doc.nodesBetween(p,m,(h,g)=>{if(!h.isText&&!h.marks.length)return;const v=Math.max(p,g),y=Math.min(m,g+h.nodeSize),b=y-v;o+=b,s.push(...h.marks.map(T=>({mark:T,from:v,to:y})))})}),o===0)return!1;const l=s.filter(d=>a?a.name===d.mark.type.name:!0).filter(d=>q6(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),u=s.filter(d=>a?d.mark.type!==a&&d.mark.type.excludes(a):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+u:l)>=o}function r_t(e,t,n={}){if(!t)return $S(e,null,n)||fF(e,null,n);const r=sI(t,e.schema);return r==="node"?$S(e,t,n):r==="mark"?fF(e,t,n):!1}function oae(e,t){const{nodeExtensions:n}=aI(t),r=n.find(o=>o.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},a=Pt(Qe(r,"group",i));return typeof a!="string"?!1:a.split(" ").includes("list")}function i_t(e){var t;const n=(t=e.type.createAndFill())===null||t===void 0?void 0:t.toJSON(),r=e.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function a_t(e,t,n){var r;const{selection:i}=t;let a=null;if(I2e(i)&&(a=i.$cursor),a){const s=(r=e.storedMarks)!==null&&r!==void 0?r:a.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:o}=i;return o.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),m=!!n.isInSet(c.marks)||!c.marks.some(h=>h.type.excludes(n));u=p&&m}return!u}),u})}const o_t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:o,ranges:s}=a,l=zf(e,r.schema);if(i)if(o){const u=lI(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const m=Math.max(p,c),h=Math.min(p+f.nodeSize,d);f.marks.find(v=>v.type===l)?f.marks.forEach(v=>{l===v.type&&n.addMark(m,h,l.create({...v.attrs,...t}))}):n.addMark(m,h,l.create(t))})});return a_t(r,n,l)},s_t=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),l_t=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const a=ci(e,n.schema);return a.isTextblock?i().command(({commands:o})=>eae(a,t)(n)?!0:o.clearNodes()).command(({state:o})=>eae(a,t)(o,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},u_t=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=D0(e,0,r.content.size),a=ht.create(r,i);t.setSelection(a)}return!0},c_t=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:a}=typeof e=="number"?{from:e,to:e}:e,o=Lt.atStart(r).from,s=Lt.atEnd(r).to,l=D0(i,o,s),u=D0(a,o,s),c=Lt.create(r,l,u);t.setSelection(c)}return!0},d_t=e=>({state:t,dispatch:n})=>{const r=ci(e,t.schema);return Gbt(r)(t,n)};function sae(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}const f_t=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:o}=t,{$from:s,$to:l}=a,u=i.extensionManager.attributes,c=Rw(u,s.node().type.name,s.node().attrs);if(a instanceof ht&&a.node.isBlock)return!s.parentOffset||!eg(o,s.pos)?!1:(r&&(e&&sae(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;if(r){const d=l.parentOffset===l.parent.content.size;a instanceof Lt&&t.deleteSelection();const f=s.depth===0?void 0:QTt(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,m=eg(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&eg(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:c}]:void 0),m&&(t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){const h=t.mapping.map(s.before()),g=t.doc.resolve(h);s.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&sae(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return!0},p_t=e=>({tr:t,state:n,dispatch:r,editor:i})=>{var a;const o=ci(e,n.schema),{$from:s,$to:l}=n.selection,u=n.selection.node;if(u&&u.isBlock||s.depth<2||!s.sameParent(l))return!1;const c=s.node(-1);if(c.type!==o)return!1;const d=i.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(r){let g=_e.empty;const v=s.index(-1)?1:s.index(-2)?2:3;for(let k=s.depth-v;k>=s.depth-3;k-=1)g=_e.from(s.node(k).copy(g));const y=s.indexAfter(-1){if(E>-1)return!1;k.isTextblock&&k.content.size===0&&(E=A+1)}),E>-1&&t.setSelection(Lt.near(t.doc.resolve(E))),t.scrollIntoView()}return!0}const f=l.pos===s.end()?c.contentMatchAt(0).defaultType:null,p=Rw(d,c.type.name,c.attrs),m=Rw(d,s.node().type.name,s.node().attrs);t.delete(s.pos,l.pos);const h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!eg(t.doc,s.pos,2))return!1;if(r){const{selection:g,storedMarks:v}=n,{splittableMarks:y}=i.extensionManager,b=v||g.$to.parentOffset&&g.$from.marks();if(t.split(s.pos,2,h).scrollIntoView(),!b||!r)return!0;const T=b.filter(_=>y.includes(_.type.name));t.ensureMarks(T)}return!0},BD=(e,t)=>{const n=xV(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Hf(e.doc,n.pos)&&e.join(n.pos),!0},$D=(e,t)=>{const n=xV(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Hf(e.doc,r)&&e.join(r),!0},m_t=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=ci(e,o.schema),m=ci(t,o.schema),{selection:h,storedMarks:g}=o,{$from:v,$to:y}=h,b=v.blockRange(y),T=g||h.$to.parentOffset&&h.$from.marks();if(!b)return!1;const _=xV(E=>oae(E.type.name,d))(h);if(b.depth>=1&&_&&b.depth-_.depth<=1){if(_.node.type===p)return u.liftListItem(m);if(oae(_.node.type.name,d)&&p.validContent(_.node.content)&&s)return l().command(()=>(a.setNodeMarkup(_.pos,p),!0)).command(()=>BD(a,p)).command(()=>$D(a,p)).run()}return!n||!T||!s?l().command(()=>c().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>BD(a,p)).command(()=>$D(a,p)).run():l().command(()=>{const E=c().wrapInList(p,r),k=T.filter(A=>f.includes(A.type.name));return a.ensureMarks(k),E?!0:u.clearNodes()}).wrapInList(p,r).command(()=>BD(a,p)).command(()=>$D(a,p)).run()},h_t=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,o=zf(e,r.schema);return fF(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},g_t=(e,t,n={})=>({state:r,commands:i})=>{const a=ci(e,r.schema),o=ci(t,r.schema);return $S(r,a,n)?i.setNode(o):i.setNode(a,n)},v_t=(e,t={})=>({state:n,commands:r})=>{const i=ci(e,n.schema);return $S(n,i,t)?r.lift(i):r.wrapIn(i,t)},y_t=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;l-=1)o.step(s.steps[l].invert(s.docs[l]));if(a.text){const l=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,e.schema.text(a.text,l))}else o.delete(a.from,a.to)}return!0}}return!1},S_t=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(a=>{e.removeMark(a.$from.pos,a.$to.pos)}),!0},b_t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var a;const{extendEmptyMarkRange:o=!1}=t,{selection:s}=n,l=zf(e,r.schema),{$from:u,empty:c,ranges:d}=s;if(!i)return!0;if(c&&o){let{from:f,to:p}=s;const m=(a=u.marks().find(g=>g.type===l))===null||a===void 0?void 0:a.attrs,h=OV(u,l,m);h&&(f=h.from,p=h.to),n.removeMark(f,p,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},T_t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=sI(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(a=ci(e,r.schema)),s==="mark"&&(o=zf(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;r.doc.nodesBetween(u,c,(d,f)=>{a&&a===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(p=>{if(o===p.type){const m=Math.max(f,u),h=Math.min(f+d.nodeSize,c);n.addMark(m,h,o.create({...p.attrs,...t}))}})})}),!0):!1},__t=(e,t={})=>({state:n,dispatch:r})=>{const i=ci(e,n.schema);return Hbt(i,t)(n,r)},E_t=(e,t={})=>({state:n,dispatch:r})=>{const i=ci(e,n.schema);return Vbt(i,t)(n,r)};var w_t=Object.freeze({__proto__:null,blur:uTt,clearContent:cTt,clearNodes:dTt,command:fTt,createParagraphNear:pTt,cut:mTt,deleteCurrentNode:hTt,deleteNode:gTt,deleteRange:vTt,deleteSelection:yTt,enter:STt,exitCode:bTt,extendMarkRange:_Tt,first:ETt,focus:wTt,forEach:kTt,insertContent:ATt,insertContentAt:ITt,joinUp:OTt,joinDown:DTt,joinBackward:xTt,joinForward:MTt,joinItemBackward:RTt,joinItemForward:PTt,keyboardShortcut:LTt,lift:BTt,liftEmptyBlock:$Tt,liftListItem:UTt,newlineInCode:HTt,resetAttributes:VTt,scrollIntoView:zTt,selectAll:qTt,selectNodeBackward:WTt,selectNodeForward:jTt,selectParentNode:GTt,selectTextblockEnd:JTt,selectTextblockStart:YTt,setContent:KTt,setMark:o_t,setMeta:s_t,setNode:l_t,setNodeSelection:u_t,setTextSelection:c_t,sinkListItem:d_t,splitBlock:f_t,splitListItem:p_t,toggleList:m_t,toggleMark:h_t,toggleNode:g_t,toggleWrap:v_t,undoInputRule:y_t,unsetAllMarks:S_t,unsetMark:b_t,updateAttributes:T_t,wrapIn:__t,wrapInList:E_t});const k_t=xo.create({name:"commands",addCommands(){return{...w_t}}}),A_t=xo.create({name:"editable",addProseMirrorPlugins(){return[new Bo({key:new wc("editable"),props:{editable:()=>this.editor.options.editable}})]}}),C_t=xo.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Bo({key:new wc("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),N_t=xo.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:l,doc:u}=s,{empty:c,$anchor:d}=l,{pos:f,parent:p}=d,m=d.parent.isTextblock?s.doc.resolve(f-1):d,h=m.parent.type.spec.isolating,g=d.pos-d.parentOffset,v=h&&m.parent.childCount===1?g===d.pos:Rt.atStart(u).from===f;return!c||!v||!p.type.isTextblock||p.textContent.length?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},a={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return DV()||D2e()?a:i},addProseMirrorPlugins(){return[new Bo({key:new wc("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some(m=>m.docChanged)&&!t.doc.eq(n.doc)))return;const{empty:i,from:a,to:o}=t.selection,s=Rt.atStart(t.doc).from,l=Rt.atEnd(t.doc).to;if(i||!(a===s&&o===l)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const d=n.tr,f=rI({state:n,transaction:d}),{commands:p}=new iI({editor:this.editor,state:f});if(p.clearNodes(),!!d.steps.length)return d}})]}}),I_t=xo.create({name:"tabindex",addProseMirrorPlugins(){return[new Bo({key:new wc("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var O_t=Object.freeze({__proto__:null,ClipboardTextSerializer:lTt,Commands:k_t,Editable:A_t,FocusEvents:C_t,Keymap:N_t,Tabindex:I_t});const D_t=`.ProseMirror { position: relative; } .ProseMirror { word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ } .ProseMirror [contenteditable="false"] { white-space: normal; } .ProseMirror [contenteditable="false"] [contenteditable="true"] { white-space: pre-wrap; } .ProseMirror pre { white-space: pre-wrap; } img.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; width: 1px !important; height: 1px !important; } .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; margin: 0; } .ProseMirror-gapcursor:after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid black; animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; } @keyframes ProseMirror-cursor-blink { to { visibility: hidden; } } .ProseMirror-hideselection *::selection { background: transparent; } .ProseMirror-hideselection *::-moz-selection { background: transparent; } .ProseMirror-hideselection * { caret-color: transparent; } .ProseMirror-focused .ProseMirror-gapcursor { display: block; } .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 }`;function x_t(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}let M_t=class extends Jbt{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=x_t(D_t,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const r=A2e(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});this.view.updateState(i)}unregisterPlugin(t){if(this.isDestroyed)return;const n=typeof t=="string"?`${t}$`:t.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(i=>!i.key.startsWith(n))});this.view.updateState(r)}createExtensionManager(){const n=[...this.options.enableCoreExtensions?Object.values(O_t):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new kh(n,this)}createCommandManager(){this.commandManager=new iI({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=x2e(this.options.content,this.schema,this.options.parseOptions),n=O2e(t,this.options.autofocus);this.view=new dbt(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Eh.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(o=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(o)});return}const n=this.state.apply(t),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const i=t.getMeta("focus"),a=t.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),a&&this.emit("blur",{editor:this,event:a.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return n_t(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return r_t(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return XTt(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=` `,textSerializers:r={}}=t||{};return e_t(this.state.doc,{blockSeparator:n,textSerializers:{...N2e(this.schema),...r}})}get isEmpty(){return i_t(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}};function US(e){return new IV({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Pt(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=t,o=r[r.length-1],s=r[0];if(o){const l=s.search(/\S/),u=n.from+s.indexOf(o),c=u+o.length;if(M2e(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(h=>h===e.type&&h!==p.mark.type)).filter(p=>p.to>u).length)return null;cn.from&&a.delete(n.from+l,u);const f=n.from+l+o.length;a.addMark(n.from+l,f,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function pF(e){return new IV({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),a=Pt(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)}})}function HS(e){return new IV({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const a=Pt(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),l=o.doc.resolve(n.from).blockRange(),u=l&&gV(l,e.type,a);if(!u)return null;if(o.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:f}=t,{splittableMarks:p}=e.editor.extensionManager,m=f||d.$to.parentOffset&&d.$from.marks();if(m){const h=m.filter(g=>p.includes(g.type.name));o.ensureMarks(h)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,a).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Hf(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&o.join(n.from-1)}})}class bu{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Pt(Qe(this,"addOptions",{name:this.name}))),this.storage=Pt(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new bu(t)}configure(t={}){const n=this.extend();return n.options=oI(this.options,t),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new bu(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Pt(Qe(n,"addOptions",{name:n.name})),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!!!o.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=o.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}let xs=class mF{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Pt(Qe(this,"addOptions",{name:this.name}))),this.storage=Pt(Qe(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new mF(t)}configure(t={}){const n=this.extend();return n.options=oI(this.options,t),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){const n=new mF(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Pt(Qe(n,"addOptions",{name:n.name})),n.storage=Pt(Qe(n,"addStorage",{name:n.name,options:n.options})),n}};function VS(e){return new nTt({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const a=Pt(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:o}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(M2e(n.from,n.to,t.doc).filter(m=>m.mark.type.excluded.find(g=>g===e.type&&g!==m.mark.type)).filter(m=>m.to>d).length)return null;fn.from&&o.delete(n.from+c,d),u=n.from+c+s.length,o.addMark(n.from+c,u,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}const R_t=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,P_t=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,F_t=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,L_t=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,B_t=bu.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[US({find:R_t,type:this.type}),US({find:F_t,type:this.type})]},addPasteRules(){return[VS({find:P_t,type:this.type}),VS({find:L_t,type:this.type})]}}),$_t=xs.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",di(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),lae=bu.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",di(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=lI(e,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),uae=/^\s*([-+*])\s$/,U_t=xs.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",di(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes($_t.name,this.editor.getAttributes(lae.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=HS({find:uae,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=HS({find:uae,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(lae.name),editor:this.editor})),[e]}}),H_t=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,V_t=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,z_t=bu.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[US({find:H_t,type:this.type})]},addPasteRules(){return[VS({find:V_t,type:this.type})]}}),q_t=/^```([a-z]+)?[\s\n]$/,W_t=/^~~~([a-z]+)?[\s\n]$/,j_t=xs.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,a=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0];return a||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",di(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(` `);return!a||!o?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0||r.nodeAt(s)?!1:e.commands.exitCode()}}},addInputRules(){return[pF({find:q_t,type:this.type,getAttributes:e=>({language:e[1]})}),pF({find:W_t,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Bo({key:new wc("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,a=i==null?void 0:i.mode;if(!n||!a)return!1;const{tr:o}=e.state;return o.replaceSelectionWith(this.type.create({language:a})),o.setSelection(Lt.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.insertText(n.replace(/\r\n?/g,` `)),o.setMeta("paste",!0),e.dispatch(o),!0}}})]}}),G_t=xs.create({name:"doc",topNode:!0,content:"block+"});function J_t(e={}){return new Bo({view(t){return new Y_t(t,e)}})}class Y_t{constructor(t,n){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=n.width||1,this.color=n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=a=>{this[r](a)};return t.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),d=s?c.bottom:c.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let a,o;if(!i||i==document.body&&getComputedStyle(i).position=="static")a=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();a=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=r.left-a+"px",this.element.style.top=r.top-o+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!a){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=Pye(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const K_t=xo.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[J_t(this.options)]}});class yr extends Rt{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return yr.valid(r)?new yr(r):Rt.near(r)}content(){return ze.empty}eq(t){return t instanceof yr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new yr(t.resolve(n.pos))}getBookmark(){return new MV(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!Q_t(t)||!Z_t(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&yr.valid(t))return t;let i=t.pos,a=null;for(let o=t.depth;;o--){let s=t.node(o);if(n>0?t.indexAfter(o)0){a=s.child(n>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;i+=n;let l=t.doc.resolve(i);if(yr.valid(l))return l}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!ht.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue e}break}a=o,i+=n;let s=t.doc.resolve(i);if(yr.valid(s))return s}return null}}}yr.prototype.visible=!1;yr.findFrom=yr.findGapCursorFrom;Rt.jsonID("gapcursor",yr);class MV{constructor(t){this.pos=t}map(t){return new MV(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return yr.valid(n)?new yr(n):Rt.near(n)}}function Q_t(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Z_t(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function X_t(){return new Bo({props:{decorations:rEt,createSelectionBetween(e,t,n){return t.pos==n.pos&&yr.valid(n)?new yr(n):null},handleClick:tEt,handleKeyDown:eEt,handleDOMEvents:{beforeinput:nEt}}})}const eEt=S2e({ArrowLeft:R_("horiz",-1),ArrowRight:R_("horiz",1),ArrowUp:R_("vert",-1),ArrowDown:R_("vert",1)});function R_(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,a){let o=r.selection,s=t>0?o.$to:o.$from,l=o.empty;if(o instanceof Lt){if(!a.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=yr.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new yr(u))),!0):!1}}function tEt(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!yr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&ht.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new yr(r))),!0)}function nEt(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof yr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=_e.empty;for(let o=r.length-1;o>=0;o--)i=_e.from(r[o].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new ze(i,0,0));return a.setSelection(Lt.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function rEt(e){if(!(e.selection instanceof yr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Pr.create(e.doc,[_o.widget(e.selection.head,t,{key:"gapcursor"})])}const iEt=xo.create({name:"gapCursor",addProseMirrorPlugins(){return[X_t()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Pt(Qe(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),aEt=xs.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",di(this.options.HTMLAttributes,e)]},renderText(){return` `},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,l=a||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&o){const d=l.filter(f=>s.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),oEt=xs.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,di(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>pF({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var j6=200,Oi=function(){};Oi.prototype.append=function(t){return t.length?(t=Oi.from(t),!this.length&&t||t.length=n?Oi.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Oi.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Oi.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Oi.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(t(a,o))},n,r),i};Oi.from=function(t){return t instanceof Oi?t:t&&t.length?new R2e(t):Oi.empty};var R2e=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,s){for(var l=a;l=o;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=j6)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=j6)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Oi);Oi.empty=new R2e([]);var sEt=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Oi),P2e=Oi;const lEt=500;class tl{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),a=i.maps.length),a--,c.push(d);return}if(i){c.push(new Bl(d.map));let p=d.step.map(i.slice(a)),m;p&&o.maybeStep(p).doc&&(m=o.mapping.maps[o.mapping.maps.length-1],u.push(new Bl(m,void 0,void 0,u.length+c.length))),a--,m&&i.appendMap(m,a)}else o.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(a)):d.selection,l=new tl(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;ccEt&&(s=uEt(s,u),o-=u),new tl(s.append(a),o)}remapping(t,n){let r=new Xh;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},t,n),r}addMaps(t){return this.eventCount==0?this:new tl(this.items.append(t.map(n=>new Bl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let p=a.getMirror(--l);if(p==null)return;o=Math.min(o,p);let m=a.maps[p];if(f.step){let h=t.steps[p].invert(t.docs[p]),g=f.selection&&f.selection.map(a.slice(l+1,p));g&&s++,r.push(new Bl(m,h,g))}else r.push(new Bl(m))},i);let u=[];for(let f=n;flEt&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)i.push(o),o.selection&&a++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=o.selection&&o.selection.map(n.slice(r));c&&a++;let d=new Bl(u.invert(),l,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new tl(P2e.from(i.reverse()),a)}}tl.empty=new tl(P2e.empty,0);function uEt(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Bl{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Bl(n.getMap().invert(),n,this.selection)}}}class Jc{constructor(t,n,r,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i}}const cEt=20;function dEt(e,t,n,r){let i=n.getMeta(Hd),a;if(i)return i.historyState;n.getMeta(pEt)&&(e=new Jc(e.done,e.undone,null,0));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(Hd))return o.getMeta(Hd).redo?new Jc(e.done.addTransform(n,void 0,r,Pw(t)),e.undone,cae(n.mapping.maps[n.steps.length-1]),e.prevTime):new Jc(e.done,e.undone.addTransform(n,void 0,r,Pw(t)),null,e.prevTime);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=e.prevTime==0||!o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!fEt(n,e.prevRanges)),l=o?UD(e.prevRanges,n.mapping):cae(n.mapping.maps[n.steps.length-1]);return new Jc(e.done.addTransform(n,s?t.selection.getBookmark():void 0,r,Pw(t)),tl.empty,l,n.time)}else return(a=n.getMeta("rebased"))?new Jc(e.done.rebased(n,a),e.undone.rebased(n,a),UD(e.prevRanges,n.mapping),e.prevTime):new Jc(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),UD(e.prevRanges,n.mapping),e.prevTime)}function fEt(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let a=0;a=t[a]&&(n=!0)}),n}function cae(e){let t=[];return e.forEach((n,r,i,a)=>t.push(i,a)),t}function UD(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Hd.getState(e);return!n||n.done.eventCount==0?!1:(t&&F2e(n,e,t,!1),!0)},B2e=(e,t)=>{let n=Hd.getState(e);return!n||n.undone.eventCount==0?!1:(t&&F2e(n,e,t,!0),!0)},hEt=xo.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>L2e(e,t),redo:()=>({state:e,dispatch:t})=>B2e(e,t)}},addProseMirrorPlugins(){return[mEt(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),gEt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,vEt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,yEt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,SEt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,bEt=bu.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[US({find:gEt,type:this.type}),US({find:yEt,type:this.type})]},addPasteRules(){return[VS({find:vEt,type:this.type}),VS({find:SEt,type:this.type})]}}),fae=xs.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",di(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),TEt=xs.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",di(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),pae=bu.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",di(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=lI(e,this.type);return Object.entries(n).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),mae=/^(\d+)\.\s$/,_Et=xs.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",di(this.options.HTMLAttributes,n),0]:["ol",di(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(TEt.name,this.editor.getAttributes(pae.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=HS({find:mae,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=HS({find:mae,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(pae.name)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),EEt=xs.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),wEt=bu.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),kEt=/^\s*>\s$/,AEt=xs.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",di(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[HS({find:kEt,type:this.type})]}}),CEt=xs.create({name:"text",group:"inline"}),NEt=xo.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Bo({key:new wc("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;const a=e.type.createAndFill(),o=(a==null?void 0:a.sameMarkup(e))&&a.content.findDiffStart(e.content)===null;return e.descendants((s,l)=>{const u=r>=l&&r<=l+s.nodeSize,c=!s.isLeaf&&!s.childCount;if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];o&&d.push(this.options.emptyEditorClass);const f=_o.node(l,l+s.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:l,hasAnchor:u}):this.options.placeholder});i.push(f)}return this.options.includeChildren}),Pr.create(e,i)}}})]}}),IEt=({renderers:e})=>Z.createElement(Z.Fragment,null,Object.entries(e).map(([t,n])=>Z7e.createPortal(n.reactElement,n.element,t)));class OEt extends Z.Component{constructor(t){super(t),this.editorContentRef=Z.createRef(),this.initialized=!1,this.state={renderers:{}}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const{editor:t}=this.props;if(t&&t.options.element){if(t.contentComponent)return;const n=this.editorContentRef.current;n.append(...t.options.element.childNodes),t.setOptions({element:n}),t.contentComponent=this,t.createNodeViews(),this.initialized=!0}}maybeFlushSync(t){this.initialized?Jp.flushSync(t):t()}setRenderer(t,n){this.maybeFlushSync(()=>{this.setState(({renderers:r})=>({renderers:{...r,[t]:n}}))})}removeRenderer(t){this.maybeFlushSync(()=>{this.setState(({renderers:n})=>{const r={...n};return delete r[t],{renderers:r}})})}componentWillUnmount(){const{editor:t}=this.props;if(!t||(this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null,!t.options.element.firstChild))return;const n=document.createElement("div");n.append(...t.options.element.childNodes),t.setOptions({element:n})}render(){const{editor:t,...n}=this.props;return Z.createElement(Z.Fragment,null,Z.createElement("div",{ref:this.editorContentRef,...n}),Z.createElement(IEt,{renderers:this.state.renderers}))}}const DEt=e=>{const t=Z.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return Z.createElement(OEt,{key:t,...e})},xEt=Z.memo(DEt);class MEt extends M_t{constructor(){super(...arguments),this.contentComponent=null}}function REt(){const[,e]=N.useState(0);return()=>e(t=>t+1)}const PEt=(e={},t=[])=>{const[n,r]=N.useState(null),i=REt(),{onBeforeCreate:a,onBlur:o,onCreate:s,onDestroy:l,onFocus:u,onSelectionUpdate:c,onTransaction:d,onUpdate:f}=e,p=N.useRef(a),m=N.useRef(o),h=N.useRef(s),g=N.useRef(l),v=N.useRef(u),y=N.useRef(c),b=N.useRef(d),T=N.useRef(f);return N.useEffect(()=>{n&&(a&&(n.off("beforeCreate",p.current),n.on("beforeCreate",a),p.current=a),o&&(n.off("blur",m.current),n.on("blur",o),m.current=o),s&&(n.off("create",h.current),n.on("create",s),h.current=s),l&&(n.off("destroy",g.current),n.on("destroy",l),g.current=l),u&&(n.off("focus",v.current),n.on("focus",u),v.current=u),c&&(n.off("selectionUpdate",y.current),n.on("selectionUpdate",c),y.current=c),d&&(n.off("transaction",b.current),n.on("transaction",d),b.current=d),f&&(n.off("update",T.current),n.on("update",f),T.current=f))},[a,o,s,l,u,c,d,f,n]),N.useEffect(()=>{let _=!0;const E=new MEt(e);return r(E),E.on("transaction",()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{_&&i()})})}),()=>{_=!1}},t),N.useEffect(()=>()=>{n==null||n.destroy()},[n]),n},FEt=N.createContext({editor:null});FEt.Consumer;const LEt=N.createContext({onDragStart:void 0}),BEt=()=>N.useContext(LEt);Z.forwardRef((e,t)=>{const{onDragStart:n}=BEt(),r=e.as||"div";return Z.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});var Yt=(e=>(e[e.Italic=0]="Italic",e[e.Bold=1]="Bold",e[e.Underline=2]="Underline",e[e.CodeMark=3]="CodeMark",e[e.CodeBlock=4]="CodeBlock",e[e.H1=5]="H1",e[e.H2=6]="H2",e[e.H3=7]="H3",e[e.NumberedList=8]="NumberedList",e[e.BulletedList=9]="BulletedList",e[e.Link=10]="Link",e))(Yt||{});const RV={},Us=({editor:e,className:t,kind:n,tooltipLabel:r,...i})=>{const a=[RV.button,t].filter(kr);return S(jt,{...i,onClick:qEt(e,n),priority:Tt.Quaternary,className:a.join(" "),children:zEt(n)})};function $Et(e){return(e==null?void 0:e.icon)!==void 0&&(e==null?void 0:e.tooltipLabel)!==void 0}function UEt(e){return e!==null&&e.stretch===!0}const HEt=({className:e,onClick:t,icon:n,tooltipLabel:r,...i})=>{const a=[RV.button,e];return S(jt,{...i,onClick:t,priority:Tt.Quaternary,className:a.join(" "),children:n})},VEt=()=>S("div",{className:RV.stretcherElement});function zEt(e){switch(e){case Yt.Italic:return S(Ige,{});case Yt.Bold:return S(wge,{});case Yt.Underline:return S(xge,{});case Yt.CodeMark:return S(Rge,{});case Yt.CodeBlock:return S(Mge,{});case Yt.H1:return S(Age,{});case Yt.H2:return S(Cge,{});case Yt.H3:return S(Nge,{});case Yt.NumberedList:return S(Dge,{});case Yt.BulletedList:return S(kge,{});case Yt.Link:return S(Oge,{})}}function qEt(e,t){switch(t){case Yt.Italic:return()=>e.chain().focus().toggleItalic().run();case Yt.Bold:return()=>e.chain().focus().toggleBold().run();case Yt.Underline:return()=>e.chain().focus().toggleUnderline().run();case Yt.CodeMark:return()=>e.chain().focus().toggleCode().run();case Yt.CodeBlock:return()=>e.chain().focus().toggleCodeBlock().run();case Yt.H1:return()=>e.chain().focus().toggleHeading({level:1}).run();case Yt.H2:return()=>e.chain().focus().toggleHeading({level:2}).run();case Yt.H3:return()=>e.chain().focus().toggleHeading({level:3}).run();case Yt.NumberedList:return()=>e.chain().focus().toggleOrderedList().run();case Yt.BulletedList:return()=>e.chain().focus().toggleBulletList().run();case Yt.Link:return()=>{}}}const WEt="_chrome_19ej3_57",jEt={chrome:WEt},GEt=({editor:e,features:t,menuBarClassName:n,hideButtonsForFeatureNames:r=[],customButtons:i})=>F("div",{className:[jEt.chrome,n].filter(kr).join(" "),children:[t.map(a=>{if(r.includes(a.name))return null;switch(a.name){case oe.Italic:return S(Us,{editor:e,kind:Yt.Italic,tooltipLabel:"Italic"},a.name);case oe.Bold:return S(Us,{editor:e,kind:Yt.Bold,tooltipLabel:"Bold"},a.name);case oe.Underline:return S(Us,{editor:e,kind:Yt.Underline,tooltipLabel:"Underline"},a.name);case oe.Code:return S(Us,{editor:e,kind:Yt.CodeMark,tooltipLabel:"Code Line"},a.name);case oe.CodeBlocks:return S(Us,{editor:e,kind:Yt.CodeBlock,tooltipLabel:"Code Block"},a.name);case oe.Headings:return F(N.Fragment,{children:[S(Us,{editor:e,kind:Yt.H1,tooltipLabel:"Large Heading"},`${a.name}_H1`),S(Us,{editor:e,kind:Yt.H2,tooltipLabel:"Medium Heading"},`${a.name}_H2`),S(Us,{editor:e,kind:Yt.H3,tooltipLabel:"Small Heading"},`${a.name}_H3`)]},a.name);case oe.NumberedLists:return S(Us,{editor:e,kind:Yt.NumberedList,tooltipLabel:"Numbered List"},a.name);case oe.BulletedLists:return S(Us,{editor:e,kind:Yt.BulletedList,tooltipLabel:"Bulleted List"},a.name);case oe.Links:return S(Us,{editor:e,kind:Yt.Link,tooltipLabel:"Link"},a.name);default:return null}}),i==null?void 0:i.map((a,o)=>$Et(a)?S(HEt,{...a},a.identifier||`CustomButton_${o}`):UEt(a)?S(VEt,{},`MenuBarStretcher_${o}`):null)]}),JEt="_isEditorEmpty_vi3fm_57",YEt="_editorToolbar_vi3fm_66",KEt="_placeholder_vi3fm_70",QEt="_editor_vi3fm_66",ZEt="_clampHeight_vi3fm_154",XEt="_overflowing_vi3fm_158",ewt="_token_vi3fm_163",twt="_richTextContainer_vi3fm_169",Vs={isEditorEmpty:JEt,editorToolbar:YEt,placeholder:KEt,editor:QEt,clampHeight:ZEt,overflowing:XEt,token:ewt,richTextContainer:twt},$2e=N.forwardRef((e,t)=>S(nwt,{forwardedRef:t,...e})),nwt=({forwardedRef:e,features:t=Eje(),initialDocument:n,autofocus:r=!1,readonly:i=!1,className:a,editorClassName:o,toolbarClassName:s,showToolbar:l="always",onUpdateDelay:u,delayFirstOnUpdate:c=!1,onFocus:d,onBlur:f,onCreate:p,onUpdateDocument:m,onUpdateContent:h,onUpdateHTMLContent:g,onUpdateTextContent:v,hideButtonsForFeatureNames:y,customButtons:b,placeholder:T,isStandalone:_=!0,clampHeight:E,children:k,...A})=>{const[D,R]=N.useState(!1),V=!i&&!(l==="never")&&(l==="always"||l==="onFirstInteraction"&&D);let U=n&&B5({document:n,version:"2"});U=U?{...U,content:LU(U.content)}:void 0;const J=U?U.content:i?T:void 0,{requiredFeatures:re,allowedFeatures:X}=rwt({features:t,placeholder:T,documentFeatures:U?ome(U.features):[]}),j=N.useRef(p);j.current=p;const te=N.useRef(d);te.current=d;const M=N.useRef(f);M.current=f;const W=N.useRef(m);W.current=m;const ce=N.useRef(h);ce.current=h;const ue=N.useRef(g);ue.current=g;const he=N.useRef(v);he.current=v;const Ce=N.useRef(),fe=N.useRef(!1),ge=N.useRef(!1);N.useEffect(()=>(ge.current=!0,()=>{ge.current=!1}),[]);function de(Ve,dt){if(ge.current!==!0)return;let Nt;const P=j.current;dt===0&&P&&P();const q=W.current;dt!==0&&q&&(Nt=Nt||Re({editor:Ve}),q({version:"2",content:Nt,features:t.map(Te=>Te.name)}));const Y=ce.current;dt!==0&&Y&&(Nt=Nt||Re({editor:Ve}),Y({content:Nt}));const Se=ue.current;if(Se){const Te=Ve.getHTML();Se({content:Te})}const ye=he.current;if(ye){const Te=Ve.state.doc.textContent;ye({textContent:Te})}}function Re({editor:Ve}){return Ve.getJSON()}const De=PEt({editorProps:{attributes:o?{class:o}:{}},extensions:iwt(re,A),autofocus:r,editable:!i,content:J,onUpdate:({editor:Ve})=>{const dt=c?fe.current===!0:!0;if(u&&dt){const Nt=Ce.current;Nt&&clearTimeout(Nt),Ce.current=window.setTimeout(de.bind(void 0,Ve,1),u)}else de(Ve,1);fe.current=!0},onCreate:({editor:Ve})=>{de(Ve,0)},onFocus:()=>{var Ve;(Ve=te.current)==null||Ve.call(te),R(!0)},onBlur:()=>{var Ve;(Ve=M.current)==null||Ve.call(M)}});N.useEffect(()=>{if(De===null)return;const Ve=!De.isEditable;i!==Ve&&(De.setEditable(!i),i||De.commands.focus())},[De,i]),N.useImperativeHandle(e,()=>({focus:()=>{De==null||De.commands.focus("end")},isFocused:()=>De?De.isFocused:!1,isEmpty:()=>De?De.isEmpty:!0,setContent:Ve=>{const dt=B5({document:Ve,version:"2"}).content;return Pve(De==null?void 0:De.getJSON(),dt)?!1:(De==null||De.commands.setContent(dt),!0)},insertToken:Ve=>{}}));const Me=De&&De.options.element.scrollHeight>De.options.element.clientHeight;return F("div",{className:[a,i||!_?void 0:Vs.richTextContainer].filter(kr).join(" "),children:[S(xEt,{editor:De,style:!i&&E!=null?{maxHeight:typeof E=="string"?E:`max(calc(100vh - ${E}px), 250px)`}:void 0,className:[i||!_?[Vs.im,Vs.sorry,Vs.readOnlyEditor].join(" "):Vs.editor,Vs.editor,!i&&E!=null&&Me?Vs.overflowing:void 0,!i&&E!=null?Vs.clampHeight:void 0].filter(kr).join(" ")}),De&&k?k:null,De&&V?S(GEt,{editor:De,features:X,menuBarClassName:[_?Vs.editorToolbar:void 0,s].filter(kr).join(" "),hideButtonsForFeatureNames:[oe.Links,...y??[]],customButtons:b}):null]})};function hae(e){return pN({placeholder:e,emptyEditorClass:Vs.isEditorEmpty})}function rwt({features:e,placeholder:t,documentFeatures:n}){let r=e,i=!1;return r=r.map(a=>a.name===oe.Placeholder?(i=!0,hae(t??a.placeholder)):a),!i&&t&&r.push(hae(t)),{requiredFeatures:[...new Set([...r,...n])],allowedFeatures:r}}function iwt(e,t){const n=[G_t,EEt,CEt,K_t,iEt,NQe,aEt,hEt],r=new Set,i=e.map(a=>{if(r.has(a.name))return null;switch(r.add(a.name),a.name){case oe.Unimplemented:return gme;case oe.Mentions:return[];case oe.Placeholder:return NEt.configure({placeholder:a.placeholder,emptyEditorClass:Vs.isEditorEmpty});case oe.Italic:return bEt;case oe.Bold:return B_t;case oe.Underline:return wEt;case oe.Code:return z_t;case oe.CodeBlocks:return j_t.configure({HTMLAttributes:{class:"prosemirrorCodeBlock"}});case oe.Headings:return oEt.configure({levels:[1,2,3]});case oe.NumberedLists:{const o=[];return r.has(oe.BulletedLists)||o.push(fae),o.push(_Et),o}case oe.BulletedLists:{const o=[];return r.has(oe.NumberedLists)||o.push(fae),o.push(U_t),o}case oe.Links:return[Pme.configure({openOnClick:!1,...t})];case oe.UnsubscribeLinks:return[];case oe.Blockquote:return AEt;case oe.InternalImages:{const o=[];return r.has(oe.PublicImages)||o.push(pA.configure({attachmentAccessibility:gu.Internal})),o}case oe.PublicImages:{const o=[];return r.has(oe.InternalImages)||o.push(pA.configure({attachmentAccessibility:gu.Public})),o}case oe.Tokens:case oe.SubstitutionGroups:case oe.QuotedContent:case oe.EmailSignatures:case oe.EmbedVideos:case oe.Table:case oe.RequiredPlaceholders:case oe.AshbyTokenTooltips:case oe.Color:case oe.TextStyle:case oe.FontFamily:case oe.HTMLContent:return;default:return(o=>null)()}}).filter(kr).flat();return[...n,...i]}const awt=({document:e,clamp:t,onCreate:n,...r})=>{const i=wje(),a=N.useMemo(()=>e?B5({document:e,version:"2"}):void 0,[e]),o=a?{...a,content:LU(a.content)}:void 0,s=N.useRef();return N.useEffect(()=>{var u;o&&((u=s.current)==null||u.setContent(o))},[s.current===void 0,o]),S($2e,{...r,ref:s,features:i,initialDocument:o,readonly:!0,showToolbar:"never",onCreate:n})};function owt({field:e,isDisabled:t,savedValue:n,onChangeIsSettingValue:r,className:i}){const{createToast:a}=N.useContext(un),{formRenderId:o,organizationHostedJobsPageName:s,formDefinitionId:l}=N.useContext(Ma),[u,{loading:c}]=$t(Dl,{onError:f=>{a(gt.Error,Gt(f))}});function d(f){f&&u({variables:{organizationHostedJobsPageName:s,formRenderIdentifier:o,path:e.path,value:f,formDefinitionIdentifier:l}})}return S($2e,{onUpdateDelay:500,initialDocument:HQe({document:n,formRenderId:o,formDefinitionId:l,logError:Jn})||void 0,onUpdateDocument:f=>{d(LQe({document:f}))},features:[...qQe,pN({placeholder:"Write here…"})],showToolbar:"onFirstInteraction"})}function swt({field:e,savedValue:t,isDisabled:n,isRequired:r,onChangeIsSettingValue:i,className:a}){const[o,s]=N.useState(t?qe.fromSQL(t).toJSDate():null),{formRenderId:l,organizationHostedJobsPageName:u,formDefinitionId:c}=N.useContext(Ma),[d,{loading:f}]=$t(Dl,{onError:Jn});N.useEffect(function(){i(e.path,f)},[f]),N.useEffect(function(){o==null||jT(o,al)===t||d({variables:{organizationHostedJobsPageName:u,formRenderIdentifier:l,path:e.path,value:jT(o,al),formDefinitionIdentifier:c}})},[o]);function p(m){m?o&&jT(o,al)===jT(m,al)?s(null):s(m):s(null)}return S(BH,{className:a,selected:o,onChange:p,isGreedy:!0,disabled:n,required:r,placeholder:"Pick date..."})}function hF(e){return e!=null&&e.__typename==="JSONBox"}function lwt(e){return e!=null&&e.__typename==="FileList"}function uwt({field:e,savedFiles:t,isDisabled:n,isRequired:r,onChangeIsSettingValue:i}){const{createToast:a}=N.useContext(un),{formRenderId:o,organizationHostedJobsPageName:s,formDefinitionId:l}=N.useContext(Ma),[u,{loading:c}]=$t(LXe,{onError(y){a(gt.Error,Gt(y))}}),[d,{loading:f}]=$t($Xe,{onError(y){a(gt.Error,Gt(y))}}),{uploadFile:p}=cV({organizationHostedJobsPageName:s,fileUploadContext:bN.NonUserFormEngine}),[m,h]=N.useState(!1);function g(y){y&&y.length>0&&(h(!0),Promise.all(y.map(async b=>await p(b))).then(b=>{h(!1);const T=b.filter(E=>E.handle),_=b.filter(E=>!E.handle);for(const E of _)a(gt.Error,`${E.file.name} failed to upload`);T.length>0&&u({variables:{organizationHostedJobsPageName:s,formRenderIdentifier:o,path:e.path,fileHandles:T.map(E=>E.handle),formDefinitionIdentifier:l}})}))}function v(y){d({variables:{organizationHostedJobsPageName:s,formRenderIdentifier:o,path:e.path,fileId:y}})}return S(Rve,{priority:Tt.Secondary,onSaveValue:g,onRemoveValue:v,value:t??void 0,isDisabled:n,isUploading:m||c,multiple:!0,allowedFileTypes:null,isRequired:r,maxSize:dZe,children:S("span",{children:"Upload File(s)"})},e.id)}var cwt=dwt;function dwt(e,t,n){if(e!=null&&typeof e!="number")throw new Error("start must be a number or null");if(t!=null&&typeof t!="number")throw new Error("stop must be a number or null");if(n!=null&&typeof n!="number")throw new Error("step must be a number or null");t==null&&(t=e||0,e=0),n==null&&(n=t>e?1:-1);for(var r=[],i=et;e+=n)r.push(e);return r}const fwt="_value_aisn1_29",pwt="_valueSelected_aisn1_56",mwt="_values_aisn1_67",hwt="_valueHiddenInput_aisn1_71",gwt="_labels_aisn1_78",vwt="_label_aisn1_78",ywt="_labelActive_aisn1_90",Ed={value:fwt,valueSelected:pwt,values:mwt,valueHiddenInput:hwt,labels:gwt,label:vwt,labelActive:ywt},Swt=({className:e,onChange:t,isGreedy:n,value:r,onBlur:i,name:a,minimum:o,maximum:s,minimumLabel:l,maximumLabel:u,...c})=>{const d=r==null?void 0:r.value,f=cwt(o,s+1);return F("div",{children:[S("div",{className:[Ed.values].join(" "),children:f.map(p=>S(bwt,{value:{value:p},selectedValue:r??void 0,onChange:t,name:a,...c},p))}),F("div",{className:Ed.labels,children:[S(gae,{active:d!=null&&d<3,children:l}),S(gae,{active:d!=null&&d>7,children:u})]})]})};function gae({children:e,active:t}){const n=[Ed.label];return t&&n.push(Ed.labelActive),S("div",{className:n.join(" "),children:e})}function bwt({value:e,selectedValue:t,onChange:n,isDisabled:r,name:i}){const a=e.value===(t==null?void 0:t.value);function o(){n(e)}function s(){a&&n({})}return F("label",{className:[Ed.value,a?Ed.valueSelected:""].join(" "),"data-disabled":r,children:[S("span",{className:Ed.valueLabel,children:e.value}),S("input",{className:Ed.valueHiddenInput,type:"radio",onChange:o,onClick:s,checked:a,disabled:r,name:i,id:i})]})}function Twt({field:e,isDisabled:t,savedValue:n,onChangeIsSettingValue:r}){const[i,a]=N.useState(n),{formRenderId:o,organizationHostedJobsPageName:s,formDefinitionId:l}=N.useContext(Ma),[u,{loading:c}]=$t(Dl,{onError:Jn});function d(){n!==i&&u({variables:{organizationHostedJobsPageName:s,formRenderIdentifier:o,path:e.path,value:i,formDefinitionIdentifier:l}})}const f=W1(d,500,[i]);N.useEffect(function(){r(e.path,c)},[c]);function p(g){a(g)}function m(){f&&clearTimeout(f),d()}const h="Type here...";return S(Swt,{className:Ga.input,onChange:p,onBlur:m,value:i,placeholder:h,disabled:t,name:e.path,minimum:e.minimum,maximum:e.maximum,minimumLabel:e.minimumLabel,maximumLabel:e.maximumLabel})}const _wt=1e3;function Ewt(e,t=_wt,n=!1){const[r,i]=N.useState(e),a=N.useRef(!1);return N.useEffect(()=>{const o=a.current;a.current=!0;const s=setTimeout(()=>{a.current=!1,i(e)},t);return!o&&n&&i(e),()=>{clearTimeout(s)}},[e,t,i,n]),r}function wwt({field:e,isDisabled:t,savedValue:n,onChangeIsSettingValue:r}){const{formRenderId:i,organizationHostedJobsPageName:a,formDefinitionId:o}=N.useContext(Ma),[s,l]=N.useState(n),[u,c]=N.useState(""),d=Ewt(u,300),[f,{loading:p}]=$t(Dl,{onError:Jn}),[m,{loading:h,data:g}]=gp(qXe);N.useEffect(function(){r(e.path,p)},[p]),N.useEffect(()=>{m({variables:{text:d,locationTypes:e.locationTypes}})},[d,e,m]);function v(b){const T=b==null?null:{text:b.name,providerLocationId:b.geoLocationPath.at(-1).providerLocationId};l(T),f({variables:{organizationHostedJobsPageName:a,formRenderIdentifier:i,path:e.path,value:T,formDefinitionIdentifier:o}})}function y(b){c(b)}return S(fye,{onSelect:v,isDisabled:t,selectedItemText:s==null?void 0:s.text,onSearch:y,results:g==null?void 0:g.result.suggestions,searchLoading:h||d!==u,resultComponent:kwt})}function kwt({result:e}){return S(St,{children:e.name})}const Awt="_container_1rwuy_1",Cwt="_label_1rwuy_6",Nwt="_radio_1rwuy_12",VD={container:Awt,label:Cwt,radio:Nwt},Iwt=({values:e,currentValue:t,setCurrentValue:n})=>{const r=[VD.container];return S("div",{className:r.join(" "),children:e.map(({id:i,label:a,value:o})=>F("label",{className:VD.label,children:[S("input",{className:VD.radio,type:"radio",value:o,name:"communicationConsent",checked:o===t,onChange:()=>n(o)}),a]},i))})};function Owt({field:e,isDisabled:t,savedValue:n,isRequired:r,onChangeIsSettingValue:i}){const[a,o]=N.useState(n),{formRenderId:s,organizationHostedJobsPageName:l,formDefinitionId:u,candidateTextingConsent:c}=N.useContext(Ma),[d,{loading:f}]=$t(Dl,{onError:Jn});function p(){n!==a&&d({variables:{organizationHostedJobsPageName:l,formRenderIdentifier:s,path:e.path,value:a,formDefinitionIdentifier:u}})}const m=W1(p,500,[a]);N.useEffect(function(){i(e.path,f)},[f]);function h(v){o(v)}function g(){m&&clearTimeout(m),p()}return F(St,{children:[S(Pd,{className:Ga.input,onChange:h,onBlur:g,value:a||"",type:"tel",placeholder:"1-415-555-1234...",disabled:t,name:e.path,required:r,id:e.path}),c!=null&&c.shouldAskForTextingConsent===!0?S(Dwt,{consent:c.consent,candidateTextingPrivacyPolicyUrl:c.candidateTextingPrivacyPolicyUrl}):null]})}const Dwt=({consent:e,candidateTextingPrivacyPolicyUrl:t})=>{const{organizationHostedJobsPageName:n,formRenderId:r,formDefinitionId:i}=N.useContext(Ma),[a,o]=N.useState(e??SA.NotAsked),[s]=$t(HXe);return N.useEffect(()=>{a!==SA.NotAsked&&s({variables:{organizationHostedJobsPageName:n,formRenderIdentifier:r,formDefinitionIdentifier:i,consent:a}})},[a,s,n,r,i]),S(Dt,{className:"ashby-application-form-texting-consent-description",usageNotes:"The text message consent description. Displayed below phone number fields. Will only show if texting is enabled.",children:F("div",{className:Ga.phoneNumberConsentLegalText,children:[F("p",{children:["Check ",S("strong",{children:"Yes"})," or ",S("strong",{children:"No"})," to indicate your agreement to receive text message updates from us regarding your job application. Message and data rates may apply. Reply STOP to opt out of future messaging."]}),F("p",{children:["View our privacy policy here:"," ",S("a",{href:t,target:"_blank",children:"Privacy Policy"})]}),S(Iwt,{values:[{id:"yes",label:F("span",{children:[S("strong",{children:"Yes"})," - I consent to receiving text messages"]}),value:"given"},{id:"no",label:F("span",{children:[S("strong",{children:"No"})," - I do not consent to receiving text messages"]}),value:"notGiven"}],currentValue:a,setCurrentValue:l=>o(l)})]})})};function iT({fieldEntry:e,...t}){const n=Lr(e.field),r=e.isRequired,i=e.fieldValue;let a=null;const o=F(St,{children:[S(Dt,{className:"ashby-application-form-question-title",usageNotes:"The title of each question on an application form.",children:S(zu,{htmlFor:n.path,isRequired:r,className:Ga.label,children:n.title})}),e.descriptionHtml==null?null:S(Dt,{className:"ashby-application-form-question-description",usageNotes:"The description of each question on an application form. Will only show if a description is specified.",children:S("div",{dangerouslySetInnerHTML:{__html:e.descriptionHtml},className:Ga.description})})]});if(n instanceof vR){if(i!=null&&hF(i))throw new Error(`File field, "${n.path}", does not have a value that's a null, undefined, or a file`);if(lwt(i)||n.isMany){const s=i;a=S(uwt,{field:n,isRequired:r,savedFiles:(s==null?void 0:s.files)??[],...t})}else a=S(F1t,{field:n,isRequired:r,savedFile:i,...t})}else{if(i!=null&&!hF(i))throw new Error(`Field, "${n.path}", of type ${n.type} is not supposed to be a file`);if(n instanceof hR||n instanceof Kk)a=S(Jyt,{field:n,savedValue:i&&i.value,isRequired:r,...t});else if(n instanceof yR)a=S(Owt,{field:n,savedValue:i==null?void 0:i.value,isRequired:r,...t});else if(n instanceof SR)a=S(owt,{field:n,savedValue:i&&i.value,...t});else if(n instanceof Z2)a=S(Ggt,{field:n,savedValue:i&&i.value,...t});else{if(n instanceof Q2)return S(zyt,{fieldEntryId:e.id,field:n,savedValue:i&&i.value,className:Ga.fieldEntry,isRequired:r,...t,children:o});if(n instanceof wg)return S(Q1t,{fieldEntryId:e.id,field:n,savedValue:i&&i.value,className:Ga.fieldEntry,isRequired:r,...t,children:o});n instanceof bR?a=S(Gyt,{field:n,isRequired:r,savedValue:i&&i.value,...t}):n instanceof _p?a=S(swt,{field:n,isRequired:r,savedValue:i&&i.value,...t}):n instanceof gR?a=S(tvt,{field:n,isRequired:r,savedValue:i&&i.value,...t}):n instanceof Qk||n instanceof _R?a=S(Twt,{field:n,savedValue:i&&i.value,...t}):n instanceof ER&&(a=S(wwt,{field:n,savedValue:i&&i.value,...t}))}}return S(Dt,{className:"ashby-application-form-field-entry",usageNotes:"A container for the label and input on an application form.",children:F("div",{className:Ga.fieldEntry,children:[o,a]})})}const gF=Z.memo(({organizationHostedJobsPageName:e,shouldAskForTextingConsent:t,candidateTextingPrivacyPolicyUrl:n,formRender:r,loading:i,handleIsSettingValue:a})=>{const o=r.sections.filter(u=>u.isHidden!==!0),s=Z.useRef(null);Z.useLayoutEffect(()=>{r.errorMessages.length>0&&s.current&&s.current.focus()},[r.errorMessages.length]);const l=t===!0&&n!=null?{shouldAskForTextingConsent:t,candidateTextingPrivacyPolicyUrl:n,consent:xwt(r)}:{shouldAskForTextingConsent:!1};return S(Dt,{className:"ashby-application-form-container",usageNotes:"A container for the application form.",children:F(Ze,{className:qt.jobPostingForm,children:[r.errorMessages.length?F(Ze,{highlight:wt.Negative,className:qt.errorsContainer,role:"alert","aria-live":"assertive",ref:s,tabIndex:-1,children:[S(Wt,{children:"Your form needs corrections"}),S("ul",{className:qt.errors,children:r.errorMessages.map((u,c)=>S("li",{className:qt.error,children:S("p",{children:u})},c))})]}):"",S(eT,{formRenderId:r.id,formDefinitionId:r.sourceFormDefinitionId??void 0,organizationHostedJobsPageName:e,candidateTextingConsent:l,children:o.map((u,c)=>S(Dt,{className:"ashby-application-form-section-container",usageNotes:"A single section on the Ashby application form. All questions will be wrapped in sections, though the default section may not have a title.",children:F("div",{className:qt.section,children:[!Vr(u.title)||!Vr(u.descriptionHtml)?S(Dt,{className:"ashby-application-form-section-header",usageNotes:"The header for an application form section, possibly containing a title and description.",children:F("div",{className:qt.sectionHeader,children:[Vr(u.title)?null:S(Dt,{className:"ashby-application-form-section-header-title",usageNotes:"The title for an application form section. May not exist for the default section.",children:S("h2",{className:qt.title,children:u.title})}),Vr(u.descriptionHtml)?null:S(Dt,{className:"ashby-application-form-section-header-description",usageNotes:"The description for an application form section. May not exist if no description was specified.",children:S("div",{className:qt.sectionDescription,dangerouslySetInnerHTML:{__html:u.descriptionHtml}})})]})}):null,u.fieldEntries.filter(d=>d.isHidden!==!0).map(d=>S(iT,{fieldEntry:d,isDisabled:i,onChangeIsSettingValue:a},d.field.path))]})},c))})]})})});function U2e({organization:e}){const t=e==null?void 0:e.appConfirmationTrackingPixelHtml,n=Z.useRef(null);return Z.useLayoutEffect(()=>{var r;(r=n.current)==null||r.focus()},[]),S(Dt,{className:"ashby-application-form-success-container",usageNotes:"A container for the success message",children:F(Ze,{highlight:wt.Positive,role:"status","aria-live":"polite",ref:n,tabIndex:-1,children:[S(Wt,{children:"Success"}),S("p",{children:e&&e.theme&&!Vr(e.theme.applicationSubmittedSuccessMessage)?e.theme.applicationSubmittedSuccessMessage:GQe}),t?S("div",{dangerouslySetInnerHTML:{__html:t}}):null]})})}function H2e({error:e}){return S(Dt,{className:"ashby-application-form-failure-container",usageNotes:"A container for the failure message",children:F(Ze,{highlight:wt.Negative,role:"alert","aria-live":"assertive",children:[S(Wt,{children:"We couldn't submit your application"}),S("p",{children:Gt(e)})]})})}const V2e=({bodyHtml:e})=>S(Ze,{className:qt.applicationLimitCallout,children:S(pve,{title:"This job has application limits",body:S("div",{dangerouslySetInnerHTML:{__html:e}}),isExpanded:!0})});function z2e({messageHtml:e}){return S(Dt,{className:"ashby-application-form-blocked-application-container",usageNotes:"A container for displaying the custom message to the user ",children:F(Ze,{highlight:wt.Warning,role:"alert",children:[S(Wt,{children:"We couldn't submit your application"}),S("div",{dangerouslySetInnerHTML:{__html:e}})]})})}function xwt(e){const t=e.sections.find(i=>i.title===fR.applicationMetadata),n=t==null?void 0:t.fieldEntries.find(i=>Lr(i.field).path===Eg.textingConsent),r=n==null?void 0:n.fieldValue;if(r!=null&&hF(r)&&Object.values(SA).includes(r.value))return r.value}const Mwt="_spinner_8ul1h_9",Rwt="_spin_8ul1h_9",zD={spinner:Mwt,spin:Rwt,"spinner-size-sm":"_spinner-size-sm_8ul1h_22","spinner-size-md":"_spinner-size-md_8ul1h_26","spinner-size-lg":"_spinner-size-lg_8ul1h_30","spinner-size-xl":"_spinner-size-xl_8ul1h_34","spinner-speed-slow":"_spinner-speed-slow_8ul1h_38","spinner-speed-normal":"_spinner-speed-normal_8ul1h_42","spinner-speed-fast":"_spinner-speed-fast_8ul1h_46"},Pwt=N.forwardRef((e,t)=>{const{className:n,size:r="md",speed:i="normal",label:a="Loading..."}=e;return S("span",{ref:t,"aria-label":a,role:"progressbar",className:[n,zD.spinner,zD[`spinner-size-${r}`],zD[`spinner-speed-${i}`]].filter(Boolean).join(" ")})}),Fwt="_root_1l989_1",Lwt="_base_1l989_31",Bwt="_content_1l989_36",$wt="_text_1l989_44",Uwt="_iconContainer_1l989_53",Hwt="_icon_1l989_53",Vwt="_title_1l989_68",zwt="_description_1l989_80",qwt="_cta_1l989_90",Wwt="_ctaButton_1l989_94",jwt="_alert_1l989_100",Gwt="_drag_1l989_106",Jwt="_pending_1l989_107",mo={root:Fwt,base:Lwt,content:Bwt,text:$wt,iconContainer:Uwt,icon:Hwt,title:Vwt,description:zwt,cta:qwt,ctaButton:Wwt,alert:jwt,drag:Gwt,pending:Jwt},Ywt=[".pdf",".doc",".docx",".odt",".rtf",...Ahe],Kwt=e=>{const{children:t,formContext:n=e1.ApplicationForm,isPending:r,maxSize:i=fhe,onChange:a,onRejectFileTooLarge:o}=e,{open:s,isDragActive:l,getRootProps:u,getInputProps:c}=uV({disabled:r,accept:Ywt,maxSize:i,multiple:!1,noClick:!0,noKeyboard:!0,onDropAccepted(d){a&&d[0]&&a(d[0])},onDropRejected(d){d.some(p=>p.size>i)&&(o==null||o())}});return S(Dt,{className:"ashby-application-form-autofill-input-root",usageNotes:"Application autofill input's root element. Can style [data-state] which can be 'pending', 'drag', or 'default'.",children:F("div",{...u(),className:mo.root,"data-state":r?"pending":l?"drag":"default",children:[S("input",{...c()}),S(Dt,{className:"ashby-application-form-autofill-input-base-layer",usageNotes:"Application autofill input's base layer element. This contains standard copy, a CTA button, and potential validation alerts.",children:F("div",{className:mo.base,children:[F("div",{className:mo.content,children:[F("div",{className:mo.text,children:[S("div",{className:mo.iconContainer,children:S(Dt,{className:"ashby-application-form-autofill-input-icon",usageNotes:"Application autofill input's magic sparkles icon.",children:S(Lge,{className:mo.icon})})}),S(Dt,{className:"ashby-application-form-autofill-input-title",usageNotes:"Application autofill input's title.",children:S("h3",{className:mo.title,children:"Autofill from resume"})}),S(Dt,{className:"ashby-application-form-autofill-input-description",usageNotes:"Application autofill input's description.",children:F("p",{className:mo.description,children:["Upload your resume here to autofill key"," ",n===e1.SourcingForm?"form":"application"," ","fields."]})})]}),S("div",{className:mo.cta,children:S(jt,{priority:Tt.Secondary,onClick:s,disabled:r,className:mo.ctaButton,children:"Upload file"})})]}),t]})}),S(Dt,{className:"ashby-application-form-autofill-input-drag-layer",usageNotes:"Application autofill input's drag state overlay element. Can style [data-state] which can be 'active' or 'hidden'.",children:F("div",{className:mo.drag,"data-state":l?"active":"hidden",children:[S(Fge,{}),S("span",{children:"Drop your resume here!"})]})}),S(Dt,{className:"ashby-application-form-autofill-input-pending-layer",usageNotes:"Application autofill input's pending state overlay element. Can style [data-state] which can be 'active' or 'hidden'.",children:F("div",{className:mo.pending,"data-state":r?"active":"hidden",children:[S(Pwt,{}),S("span",{children:"Parsing your resume. Autofilling key fields..."})]})})]})})},Qwt="Oops!",Zwt="Some fields couldn't be filled automatically. You can still apply as usual.",vae=e=>{const{highlight:t,heading:n,message:r}=e,i=n==null||typeof n=="string"&&n.trim()==="",a=!i&&n.toLowerCase().trim()==="error",o=r==null||typeof r=="string"&&r.trim()==="",s=o&&t===wt.Negative?wt.Neutral:t;return S(Dt,{className:"ashby-application-form-autofill-input-pending-layer",usageNotes:"Application autofill input form's alert element. Can style [data-highlight] which can be 'negative' or 'positive'.",children:F(Ze,{highlight:s,className:mo.alert,children:[S(Wt,{children:i||a?Qwt:n}),S(zdt,{children:o?Zwt:r})]})})},qD=6*1024*1024;var e1=(e=>(e.ApplicationForm="applicationForm",e.SourcingForm="sourcingForm",e))(e1||{});const PV=e=>{const{formRender:t,formContext:n,onAutofillSuccess:r,organizationHostedJobsPageName:i}=e,{execute:a}=dm(),[o,s]=N.useState(null),[l,u]=N.useState(!1),[c,d]=N.useState(!1),{uploadFile:f}=cV({organizationHostedJobsPageName:i,fileUploadContext:bN.NonUserFormEngine,sizeLimit:qD}),[p]=$t(UXe);async function m(y){const b=await f(y);if(b.handle){const _=await a(n==="sourcingForm"?"autofill_sourcing_form":"autofill_application_form");await p({variables:{organizationHostedJobsPageName:i,formRenderIdentifier:t.id,fileHandle:b.handle,recaptchaToken:_,formDefinitionIdentifier:t.sourceFormDefinitionId},onError(E){throw new Error(Gt(E))},onCompleted(){d(!0),r==null||r()}})}else throw b.message!=null?new Error(b.message):new Error}function h(y){u(!0),d(!1),s(null),Promise.all([m(y),_Xe(500)]).catch(b=>{s({highlight:wt.Negative,heading:"Error",message:(b==null?void 0:b.message)??`Failed to autofill using ${y.name}.`})}).finally(()=>{u(!1)})}function g(){s({highlight:wt.Warning,heading:"Oops!",message:`The maximum file size allowed is ${xve(qD,{maximumFractionDigits:0})}.`})}let v=null;return l||(c?v=S(vae,{highlight:wt.Positive,heading:"Autofill completed!",message:"Please review the information we filled in for you below."}):o!=null&&(v=S(vae,{...o}))),S(Kwt,{formContext:n,isPending:l,maxSize:qD,onChange:h,onRejectFileTooLarge:g,children:v})};function FV(e="key-$"){const[t,n]=N.useReducer(i=>i+1,0);return[e.replace("$",t.toString()),n]}function Xwt({url:e,urlSearchParams:t,children:n,target:r,...i}){const a=new URL(e);for(const[o,s]of t.entries())a.searchParams.set(o,s);return S("a",{...i,className:Fr.link,href:a.href,target:"_top",children:n})}const ekt="_automatedProcessingText_16wht_29",tkt={automatedProcessingText:ekt};function q2e({organizationHostedJobsPageName:e,automatedProcessingLegalNotice:t}){const n=$f();if(!O1e(O.AiJobCriteraEvaluationLegalConfiguration))return null;const i=Bn(pt.AutomatedProcessingLegalNotice,{organizationHostedJobsPageName:e}),a=`${n.name} may use Artificial Intelligence with this application. `;return F("p",{className:tkt.automatedProcessingText,children:[a,S("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"Learn more."})," "]})}const{posting:P_}=va();function nkt(){const e=Au(),n=Cs().search,r=im(),{createToast:i}=N.useContext(un),[a,o]=N.useState(!1),{organizationHostedJobsPageName:s,jobPostingId:l}=Cu(),{data:u,loading:c,error:d}=pr(PXe,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{organizationHostedJobsPageName:s,jobPostingId:l},pollInterval:1e3*60*60*24*7});function f(v){if(v.length>0){const b=v.at(-1).contentRect.height;window.parent.postMessage(b,"*")}}N.useLayoutEffect(()=>{if(window.ResizeObserver!=null){let v=new ResizeObserver(f);return v.observe(document.body),()=>{v&&(v.disconnect(),v=null)}}else return li},[]);const p=()=>{o(!0),requestAnimationFrame(()=>{window.scrollTo(0,0)})},m=(P_==null?void 0:P_.id)===l?P_:null,h=(u==null?void 0:u.jobPosting)??m,g=h?h.id:"";if(N.useEffect(()=>{g&&window.scrollTo(0,0)},[g]),lV({message:"set_jid",payload:g,sendOnMount:!0}),Tve({name:"jobBoards.posting.loaded",hasFinished:!c,hasErrored:!!d}),c&&!h)return F(St,{children:[J0(r)?null:S(W2e,{organizationHostedJobsPageName:s}),S(oV,{children:S($H,{})})]});if(d&&!h)i(gt.Error,Gt(d)),e.push(Bn(pt.JobBoard,{organizationHostedJobsPageName:s}));else if(h){let v=h.descriptionHtml;return h.scrapeableCompensationSalarySummary!=null&&(v=`${v}

Compensation Range: ${h.scrapeableCompensationSalarySummary}

`),F(St,{children:[S(rkt,{jobPosting:h,children:F(yg,{children:[S(pn,{path:pt.JobPosting,exact:!0,children:F(Ze,{className:qt.description,tabIndex:0,role:"tabpanel","aria-labelledby":"job-overview",id:"overview",children:[S("div",{className:qt.descriptionText,dangerouslySetInnerHTML:{__html:v}}),S(sV,{to:{search:n,pathname:Bn(pt.JobPostingApplication,{organizationHostedJobsPageName:s,jobPostingId:l})},children:S(jt,{priority:Tt.Primary,isGreedy:!0,onClick:()=>{r===ff.JS&&window.parent.postMessage("apply_for_job_tapped","*")},children:"Apply for this Job"})})]})}),S(pn,{path:pt.JobPostingApplication,exact:!0,children:S("div",{tabIndex:0,role:"tabpanel","aria-labelledby":"job-application-form",id:"form",children:h.applicationForm&&h.surveyForms?h.surveyForms.length?S(lkt,{applicationForm:h.applicationForm,surveyForms:h.surveyForms,jobPostingId:l,organizationHostedJobsPageName:s,shouldAskForTextingConsent:h.shouldAskForTextingConsent,candidateTextingPrivacyPolicyUrl:h.candidateTextingPrivacyPolicyUrl,onSuccessfulSubmission:p,isSuccessfullySubmitted:a,applicationLimitCalloutHtml:h.applicationLimitCalloutHtml,automatedProcessingLegalNotice:h.automatedProcessingLegalNotice}):S(skt,{applicationForm:h.applicationForm,jobPostingId:l,organizationHostedJobsPageName:s,shouldAskForTextingConsent:h.shouldAskForTextingConsent,candidateTextingPrivacyPolicyUrl:h.candidateTextingPrivacyPolicyUrl,onSuccessfulSubmission:p,isSuccessfullySubmitted:a,applicationLimitCalloutHtml:h.applicationLimitCalloutHtml,automatedProcessingLegalNotice:h.automatedProcessingLegalNotice},h.applicationForm.id):c?S("div",{className:qt.centerLoading,children:S(um,{message:"Fetching application form"})}):S(IN,{message:"Application submission is unavailable at this time, please try again later."})})})]})}),S(TN,{})]})}return S(io,{})}function rkt({jobPosting:e,children:t}){var d,f,p;const n=Cs(),r=n.search,{noChrome:i,displayMode:a}=G0.parse(r),o=$f(),s=im(),{organizationHostedJobsPageName:l,jobPostingId:u}=Cu();if(i==="true"||a==="application-form-only")return S(St,{children:t});const c=o.allowJobPostIndexing&&e.isListed&&!e.isConfidential;return F(St,{children:[S(Co,{title:`${e.title} @ ${o.name||l}`}),S(Ec,{rules:c?"all":"noindex"}),J0(s)?S("div",{className:qt.sticky,children:s===ff.IFrame||s===ff.JS&&o.customJobsPageUrl==null?S(sV,{to:{search:r,pathname:Bn(pt.JobBoard,{organizationHostedJobsPageName:l})},children:S(yae,{priority:Tt.Quaternary})}):S(Sve,{url:((d=o.theme)==null?void 0:d.jobPostingBackUrl)??o.customJobsPageUrl??"",urlSearchParams:new URLSearchParams(n.search),target:{search:r,pathname:Bn(pt.JobBoard,{organizationHostedJobsPageName:l})},children:S(yae,{priority:Tt.Quaternary})})}):S(W2e,{organizationHostedJobsPageName:l}),S(Dt,{className:Xa.JobPostingHeading,propertyToSet:"customCssTitleClass",usageNotes:"The heading of a job post",children:F(Yn,{title:e.title,hasLargeTitle:!0,contentClassName:qt.details,children:[S(Dt,{className:"ashby-job-posting-left-pane",usageNotes:"The left pane of the job posting, with the job posting details",children:F(Ze,{className:qt.left,children:[F(So,{children:[S(Wt,{children:"Location"}),F("p",{children:[e.locationName,(f=e.secondaryLocationNames)==null?void 0:f.map(m=>`, ${m}`)]})]}),F(So,{children:[S(Wt,{children:"Type"}),S("p",{children:Wh(e.employmentType)})]}),F(So,{children:[S(Wt,{children:"Department"}),S(ikt,{jobPosting:e,showTeams:(p=o.theme)==null?void 0:p.showTeams})]}),e.applicationDeadline&&F(So,{children:[S(Wt,{children:"Deadline to Apply"}),S("p",{children:qe.fromISO(e.applicationDeadline).toLocaleString(qe.DATETIME_FULL)})]}),e.compensationTierSummary&&F(So,{children:[S(Wt,{children:"Compensation"}),S(akt,{jobPosting:e})]})]})}),S(Dt,{className:"ashby-job-posting-right-pane",usageNotes:"The right pane of the job posting, containing the tabs, overview, and application form",children:F("div",{children:[F("nav",{className:qt.tabs,role:"tablist",children:[S(Sae,{to:{search:r,pathname:Bn(pt.JobPosting,{organizationHostedJobsPageName:l,jobPostingId:u})},id:"job-overview","aria-controls":"overview",children:"Overview"}),S(Sae,{to:{search:r,pathname:Bn(pt.JobPostingApplication,{organizationHostedJobsPageName:l,jobPostingId:u})},id:"job-application-form","aria-controls":"form",children:"Application"}),S("span",{className:qt.slider})]}),t]})})]})})]})}const W2e=({organizationHostedJobsPageName:e})=>{var r;const t=location.search,n=$f();return S(Dt,{className:"ashby-job-posting-header",usageNotes:"The main header on the job posting page",children:S(fr,{children:S(Dt,{className:"ashby-job-board-back-to-all-jobs-button",usageNotes:"The button which allows users to navigate from an individual posting back to the list of all job postings.",children:((r=n.theme)==null?void 0:r.jobPostingBackUrl)!=null?S(Xwt,{url:n.theme.jobPostingBackUrl,urlSearchParams:new URLSearchParams(location.search),target:{search:t,pathname:Bn(pt.JobBoard,{organizationHostedJobsPageName:e})},"aria-label":`Back to ${n.name||e}’s Job Listings`,children:S(Ns,{})}):S(Wg,{to:{search:t,pathname:Bn(pt.JobBoard,{organizationHostedJobsPageName:e})},"aria-label":`Back to ${n.name||e}’s Job Listings`,children:S(Ns,{})})})})})},yae=e=>S(Dt,{className:"ashby-job-board-back-to-all-jobs-button",usageNotes:"The button which allows users to navigate from an individual posting back to the list of all job postings.",children:F(jt,{className:qt.back,...e,children:[S(Ns,{}),S("span",{children:"All Jobs"})]})}),ikt=({jobPosting:e,showTeams:t})=>t?S(Dt,{className:Xa.JobPostingBriefDepartmentHeading,usageNotes:"The heading of a department name. Departments group teams.",children:S("p",{className:[qt.departmentHeadings].join(" "),children:e.teamNames.map((n,r)=>S(Dt,{className:Xa.JobPostingBriefDepartmentHeadingLevel,usageNotes:"The heading of a single team.",children:S("span",{className:[qt.departmentHeading].join(" "),children:n})},r))})}):S("p",{children:e.departmentName});function akt({jobPosting:e}){return Ou()?S(okt,{jobPosting:e}):S(j2e,{jobPosting:e})}function okt({jobPosting:e}){const[t,n]=N.useState(!1);function r(){n(a=>!a)}let i;return t?i=S(j2e,{jobPosting:e}):i=S("p",{children:e.compensationTierSummary}),F("div",{children:[i,(e.compensationTiers.length>1||e.compensationPhilosophyHtml!=null)&&S(jt,{priority:Tt.Quaternary,onClick:r,className:qt.expandCompensationTiersButton,children:t?"See Less":"See More"})]})}function j2e({jobPosting:e}){return F(St,{children:[S("ul",{className:qt.compensationTierList,children:e.compensationTiers.map(t=>F("li",{className:qt.compensationTierListItem,children:[t.title!=null&&S("span",{className:qt.compensationTitle,children:t.title}),S("span",{className:qt.compensationTierSummary,children:t.tierSummary})]},t.id))}),e.compensationTierGuideUrl!=null&&e.compensationTiers.length>1&&S("a",{href:e.compensationTierGuideUrl,target:"_blank",rel:"noopener",className:qt.compensationTierGuideLink,children:"Tier Guide"}),e.compensationPhilosophyHtml!=null&&S("div",{className:qt.compensationPhilosophy,dangerouslySetInnerHTML:{__html:e.compensationPhilosophyHtml}})]})}function skt({applicationForm:e,jobPostingId:t,organizationHostedJobsPageName:n,shouldAskForTextingConsent:r,candidateTextingPrivacyPolicyUrl:i,isSuccessfullySubmitted:a,onSuccessfulSubmission:o,applicationLimitCalloutHtml:s,automatedProcessingLegalNotice:l}){var J,re;const{createToast:u,dismissToast:c}=N.useContext(un),d=$f(),[f,p]=FV("job-posting-form-$"),m=kve(),[h,g]=N.useState(new Set),{startTiming:v,endTiming:y}=Jht("jobBoards.apply"),[b,{loading:T,error:_,data:E}]=$t(zXe,{onCompleted(X){y(!1),X.submitApplicationFormAction.applicationFormResult.__typename==="FormSubmitSuccess"?(o(),window.parent.postMessage("application_submitted","*")):X.submitApplicationFormAction.applicationFormResult.__typename==="FormRender"&&X.submitApplicationFormAction.applicationFormResult.errorMessages.length>0&&window.parent.postMessage("application_errored","*")},onError:X=>{var te;const j=!((te=X.graphQLErrors[0])!=null&&te.extensions.ashbyErrorType);y(j)}}),k=((J=d.theme)==null?void 0:J.showAutofillApplicationsBox)??!1,A=e.sections.some(X=>X.fieldEntries.some(j=>j.field.path===Ci.resume)),{execute:D,isRecaptchaProcessing:R}=dm(),B=N.useRef([]),H=h.size!==0;function L(X,j){if(j)g(ro(h,{$add:[X]}));else{g(ro(h,{$remove:[X]}));for(const te of B.current)c(te);B.current=[]}}function V(){H?B.current.push(u(gt.Warning,"We're updating your application (e.g. uploading files), please try again when they're finished.")):D("job_apply").then(function(X){v(),b({variables:{organizationHostedJobsPageName:n,formRenderIdentifier:e.id,formDefinitionIdentifier:e.sourceFormDefinitionId??null,actionIdentifier:e.formControls[0].identifier,jobPostingId:t,recaptchaToken:X,sourceAttributionCode:m,viewedAutomatedProcessingLegalNoticeRuleId:(l==null?void 0:l.automatedProcessingLegalNoticeRuleId)??null}}).catch(li)}).catch(X=>{u(gt.Error,fH)})}const U=(re=E==null?void 0:E.submitApplicationFormAction.messages)==null?void 0:re.blockMessageForCandidateHtml;return a?U?S(z2e,{messageHtml:U}):S(U2e,{organization:d}):_&&!T?S(H2e,{error:_}):F(St,{children:[s!=null&&S(V2e,{bodyHtml:s}),k&&A?S(Dt,{className:"ashby-application-form-autofill-pane",usageNotes:"Container element for application autofill input form.",children:S(Ze,{className:qt.autofillPane,children:S(PV,{formRender:e,formContext:e1.ApplicationForm,onAutofillSuccess:p,organizationHostedJobsPageName:n})})}):null,S(gF,{formRender:e,organizationHostedJobsPageName:n,shouldAskForTextingConsent:r,candidateTextingPrivacyPolicyUrl:i,loading:T||R,handleIsSettingValue:L},f),d.recruitingPrivacyPolicyUrl?S(LV,{recruitingPrivacyPolicyUrl:d.recruitingPrivacyPolicyUrl}):null,S(G2e,{priority:Tt.Primary,className:qt.submitButton,onClick:V,isLoading:T||R,isGreedy:!0}),l!=null?S(q2e,{organizationHostedJobsPageName:n,automatedProcessingLegalNotice:l}):null]})}function lkt({applicationForm:e,surveyForms:t,jobPostingId:n,organizationHostedJobsPageName:r,shouldAskForTextingConsent:i,candidateTextingPrivacyPolicyUrl:a,isSuccessfullySubmitted:o,onSuccessfulSubmission:s,applicationLimitCalloutHtml:l,automatedProcessingLegalNotice:u}){var U,J;const{createToast:c,dismissToast:d}=N.useContext(un),f=$f(),[p,m]=FV("job-posting-form-$"),h=kve(),[g,v]=N.useState(new Set),[y,{loading:b,error:T,data:_}]=$t(VXe,{onCompleted(re){re.submitMultipleFormsAction.applicationFormResult.__typename==="FormSubmitSuccess"&&re.submitMultipleFormsAction.surveyFormResults.every(X=>X.__typename==="FormSubmitSuccess")?(s(),window.parent.postMessage("application_submitted","*")):re.submitMultipleFormsAction.applicationFormResult.__typename==="FormRender"&&re.submitMultipleFormsAction.surveyFormResults.some(X=>X.__typename==="FormRender"&&X.errorMessages.length>0)&&window.parent.postMessage("application_errored","*")},onError:li}),E=((U=f.theme)==null?void 0:U.showAutofillApplicationsBox)??!1,k=e.sections.some(re=>re.fieldEntries.some(X=>X.field.path===Ci.resume)),{execute:A,isRecaptchaProcessing:D}=dm(),R=g.size!==0,B=N.useRef([]);function H(re,X){if(X)v(ro(g,{$add:[re]}));else{v(ro(g,{$remove:[re]}));for(const j of B.current)d(j);B.current=[]}}function L(){if(R)B.current.push(c(gt.Warning,"We're updating your forms (e.g. uploading files), please try again when they're finished."));else{const re=t.map(X=>({formRenderId:X.id,actionIdentifier:X.formControls[0].identifier,sourceFormDefinitionId:X.sourceFormDefinitionId}));A("job_apply").then(function(X){y({variables:{organizationHostedJobsPageName:r,applicationFormRenderIdentifier:e.id,applicationFormActionIdentifier:e.formControls[0].identifier,applicationFormDefinitionIdentifier:e.sourceFormDefinitionId??null,surveyIdentifiers:re,jobPostingId:n,recaptchaToken:X,sourceAttributionCode:h,viewedAutomatedProcessingLegalNoticeRuleId:(u==null?void 0:u.automatedProcessingLegalNoticeRuleId)??null}}).catch(li)}).catch(X=>{c(gt.Error,fH)})}}const V=(J=_==null?void 0:_.submitMultipleFormsAction.messages)==null?void 0:J.blockMessageForCandidateHtml;return o?V?S(z2e,{messageHtml:V}):S(U2e,{organization:f}):T&&!b?S(H2e,{error:T}):F(St,{children:[E&&k?S(Dt,{className:"ashby-application-form-autofill-uploader",usageNotes:"The resume uploader to auto-fill the application form",children:S(Ze,{className:qt.autofillPane,children:S(PV,{formRender:e,formContext:e1.ApplicationForm,onAutofillSuccess:m,organizationHostedJobsPageName:r})})}):null,l!=null&&S(V2e,{bodyHtml:l}),S(gF,{formRender:e,organizationHostedJobsPageName:r,shouldAskForTextingConsent:i,candidateTextingPrivacyPolicyUrl:a,loading:b||D,handleIsSettingValue:H},p),S(Dt,{className:"ashby-survey-form-container",usageNotes:"A container for any surveys specified for this application form.",children:S("div",{children:t.map(re=>S(gF,{formRender:re,organizationHostedJobsPageName:r,shouldAskForTextingConsent:i,candidateTextingPrivacyPolicyUrl:a,loading:b||D,handleIsSettingValue:H},re.id))})}),f.recruitingPrivacyPolicyUrl?S(LV,{recruitingPrivacyPolicyUrl:f.recruitingPrivacyPolicyUrl}):null,S(G2e,{priority:Tt.Primary,className:qt.submitButton,onClick:L,isLoading:b||D,isGreedy:!0}),u!=null?S(q2e,{organizationHostedJobsPageName:r,automatedProcessingLegalNotice:u}):null]})}const G2e=e=>S(Dt,{className:"ashby-application-form-submit-button",usageNotes:"The application submission button. Will have loading and hover states that should be tested.",children:F(jt,{className:qt.submitButton,...e,children:[S("span",{children:"Submit Application"}),S(CN,{})]})});function Sae(e){const t=typeof e.to=="string"?e.to:e.to.pathname,n=UB(t),r=i=>{if(i.key==="ArrowLeft"||i.key==="ArrowRight"){if(!i.currentTarget.parentNode)return;const a=[...i.currentTarget.parentNode.childNodes],o=a.findIndex(l=>l===i.target),s=i.key==="ArrowLeft"?o===0?a.length-1:o-1:o===a.length-1?0:o+1;a[s].focus(),a[s].click()}};return S(XPe,{...e,tabIndex:n!=null&&n.isExact?0:-1,"aria-selected":n!=null&&n.isExact?"true":"false",role:"tab",onKeyDown:r,className:qt.tab,activeClassName:qt.active,exact:!0})}function LV({recruitingPrivacyPolicyUrl:e}){return S(Ze,{children:S("span",{className:qt.recruitingPrivacyPolicyContainer,children:S("a",{target:"_blank",rel:"noopener",className:qt.recruitingPrivacyPolicy,href:e,children:"Recruiting Privacy Policy"})})})}const ukt=()=>{const{pathname:e}=Cs();N.useLayoutEffect(()=>{window.scrollTo(0,0)},[e])};function qf(e,t){var n;return t?((n=t.hostedJobsPageSlug)==null?void 0:n.toLowerCase())!==e.toLowerCase()?[!0,`${window.location.pathname.replace(new RegExp(`^/${e}`,"i"),`/${t.hostedJobsPageSlug}`)}${window.location.search}${window.location.hash}`]:[!1]:[!1]}const{organization:ckt}=va();function dkt(){const e=im(),t=xu(),n=UB(pt.JobPosting)?i7.JobPosting:i7.JobBoard,{data:r,loading:i,error:a}=pr(Lf,{variables:{organizationHostedJobsPageName:t,searchContext:J0(e)?null:n}}),s=i||a?ckt:r==null?void 0:r.organization;ukt();const[l,u]=qf(t,r==null?void 0:r.organization);return l&&u?S(Sc,{to:u}):i&&!s?S(oV,{children:S($H,{withNav:J0(e)})}):s?S(Du,{organization:s,children:F(yg,{children:[S(pn,{path:pt.JobBoard,exact:!0,children:S(Kht,{})}),S(pn,{path:pt.JobPosting,children:S(nkt,{})})]})}):S(io,{})}const fkt="_tabs_smp2c_29",pkt="_submitContainer_smp2c_35",mkt="_tab_smp2c_29",hkt="_active_smp2c_51",gkt="_slider_smp2c_60",vkt="_errorsContainer_smp2c_72",ykt="_errors_smp2c_72",Skt="_section_smp2c_81",bkt="_sectionHeader_smp2c_88",Tkt="_title_smp2c_93",_kt="_sectionDescription_smp2c_99",Ekt="_error_smp2c_72",wkt="_descriptionText_smp2c_191",kkt="_application_smp2c_296",Akt="_description_smp2c_191",Ckt="_details_smp2c_313",Nkt="_left_smp2c_317",Ikt="_submitPadding_smp2c_346",Ur={tabs:fkt,submitContainer:pkt,tab:mkt,active:hkt,slider:gkt,errorsContainer:vkt,errors:ykt,section:Skt,sectionHeader:bkt,title:Tkt,sectionDescription:_kt,error:Ekt,descriptionText:wkt,application:kkt,description:Akt,details:Ckt,left:Nkt,submitPadding:Ikt},J2e=()=>{const e=va().maintenanceMode,{createToast:t}=N.useContext(un),[n,r]=N.useState(!1),i=xu(),{surveyRequestId:a}=Cu(),{data:o,loading:s}=pr(net,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{surveyRequestId:a,organizationHostedJobsPageName:i},onCompleted(m){m.survey&&m.survey.submittedAt!=null&&r(!0)},onError(m){t(gt.Error,Gt(m))}}),{data:l,loading:u}=pr(Lf,{variables:{organizationHostedJobsPageName:i}}),[c,d]=qf(i,l==null?void 0:l.organization);if(c&&d)return S(Sc,{to:d});if(s||u)return null;const f=o&&o.survey,p=l==null?void 0:l.organization;return!f||!p?S(io,{}):F(Du,{organization:p,children:[S(Co,{title:Dkt({organizationName:p.name,surveyType:f.surveyType})}),S(Ec,{rules:"noindex"}),S(fr,{}),S(Yn,{title:"",children:e?S(Xb,{}):S(Okt,{surveyRequest:f,surveyFormId:f.surveyFormDefinitionId,onSuccessfulSubmission:()=>{r(!0)},isSuccessfullySubmitted:n,organizationHostedJobsPageName:i})})]})};function Okt({surveyRequest:e,surveyFormId:t,isSuccessfullySubmitted:n,onSuccessfulSubmission:r,organizationHostedJobsPageName:i}){const{createToast:a}=N.useContext(un),o=N.useContext(cm),[s,l]=N.useState(new Set),[u,c]=N.useState(void 0),d=O1e(O.AnonymousCandidateExperience),[f,{loading:p,error:m}]=$t(ret,{onCompleted(k){k&&k.submitSurveyFormAction.__typename==="FormSubmitSuccess"&&r()},onError:li}),h=e.id,g=e.surveyType,v=e.surveyFormRender,y=d&&td.CandidateExperience&&e.showAnonymousSubmissionUI,b=s.size!==0;function T(k,A){l(A?ro(s,{$add:[k]}):ro(s,{$remove:[k]}))}function _(){b?a(gt.Warning,"We're updating your form (e.g. uploading files), please try again when it's finished."):f({variables:{surveyRequestId:h,formRenderIdentifier:v.id,actionIdentifier:v.formControls[0].identifier,submitAnonymously:y?u:void 0}})}if(n)return F(Ze,{highlight:wt.Positive,children:[S(Wt,{children:"Success"}),S("p",{children:"Your form was submitted!"})]});if(m&&!p)return F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"We couldn't submit your form"}),S("p",{children:Gt(m)})]});const E=v.sections.filter(k=>k.isHidden!==!0);return F(Ze,{className:Ur.application,children:[v.errorMessages.length?F(Ze,{highlight:wt.Negative,className:Ur.errorsContainer,children:[S(Wt,{children:"Your form needs corrections"}),S("ul",{className:Ur.errors,children:v.errorMessages.map((k,A)=>S("li",{className:Ur.error,children:S("p",{children:k})},A))})]}):"",F(eT,{formRenderId:v.id,formDefinitionId:t,organizationHostedJobsPageName:i,children:[E.map((k,A)=>F("div",{className:Ur.section,children:[!Vr(k.title)||!Vr(k.descriptionHtml)?F("div",{className:Ur.sectionHeader,children:[Vr(k.title)?null:S("h2",{className:Ur.title,children:k.title}),Vr(k.descriptionHtml)?null:S("div",{className:Ur.sectionDescription,dangerouslySetInnerHTML:{__html:k.descriptionHtml}})]}):null,k.fieldEntries.filter(D=>D.isHidden!==!0).map(D=>S(iT,{fieldEntry:D,isDisabled:p,onChangeIsSettingValue:T},D.field.path))]},A)),d&&g===td.CandidateExperience&&e.showAnonymousSubmissionUI?F(St,{children:[S(zu,{className:Ga.label,children:"Would you like to submit your feedback anonymously?"}),S(Ave,{className:Ga.yesno,value:u,onChange:k=>c(k)})]}):null]}),o&&o.recruitingPrivacyPolicyUrl?S(LV,{recruitingPrivacyPolicyUrl:o.recruitingPrivacyPolicyUrl}):null,S("div",{className:Ur.submitContainer,children:S(jt,{priority:Tt.Primary,onClick:_,isLoading:p,children:F("span",{className:Ur.submitPadding,children:[S("span",{children:"Submit"}),S(CN,{})]})})})]})}function Dkt({organizationName:e,surveyType:t}){switch(t){case td.CandidateExperience:return`${e} Candidate Experience Survey`;case td.Eeoc:return`${e} EEO Survey`;case td.Diversity:return`${e} Diversity Survey`;case td.CandidateDataConsent:return`${e} Consent Form`;case td.Questionnaire:return`${e} Questionnaire`;default:ko("Unknown survey type",t)}}const Y2e=()=>{var m;const e=va().maintenanceMode,{createToast:t}=N.useContext(un),[n,r]=N.useState(!1),i=xu(),{takeHomeScheduleId:a}=Cu(),{data:o,loading:s}=pr(iet,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{takeHomeScheduleId:a,organizationHostedJobsPageName:i},onCompleted(h){h.takeHomeSchedule&&h.takeHomeSchedule.processStatus!==Nhe.WaitingOnSubmission&&r(!0)},onError(h){t(gt.Error,Gt(h))}}),{data:l,loading:u}=pr(Lf,{variables:{organizationHostedJobsPageName:i}}),[c,d]=qf(i,l==null?void 0:l.organization);if(c&&d)return S(Sc,{to:d});if(s||u)return null;const f=o&&o.takeHomeSchedule,p=l==null?void 0:l.organization;return!f||!p?S(io,{}):F(Du,{organization:p,children:[S(Ec,{rules:"noindex"}),S(fr,{}),S(Yn,{title:"Assignment",children:S(awt,{document:(m=f.interview)==null?void 0:m.candidateAssignment,placeholder:"No assignment instructions were provided."})}),S(Yn,{title:"Submission",children:e?S(Xb,{}):S(xkt,{takeHomeForm:f.takeHomeFormRender,takeHomeScheduleId:a,takeHomeFormId:f.takeHomeFormDefinitionId,onSuccessfulSubmission:()=>{r(!0)},isSuccessfullySubmitted:n,organizationHostedJobsPageName:i})})]})};function xkt({takeHomeForm:e,takeHomeScheduleId:t,takeHomeFormId:n,isSuccessfullySubmitted:r,onSuccessfulSubmission:i,organizationHostedJobsPageName:a}){const{createToast:o}=N.useContext(un),[s,l]=N.useState(new Set),[u,{loading:c,error:d}]=$t(aet,{onCompleted(h){h&&h.submitTakeHomeFormAction.__typename==="FormSubmitSuccess"&&i()},onError:li}),f=s.size!==0;function p(h,g){l(g?ro(s,{$add:[h]}):ro(s,{$remove:[h]}))}function m(){f?o(gt.Warning,"We're updating your assignment form (e.g. uploading files), please try again when it's finished."):u({variables:{takeHomeScheduleId:t,formRenderIdentifier:e.id,actionIdentifier:e.formControls[0].identifier}})}return r?F(Ze,{highlight:wt.Positive,children:[S(Wt,{children:"Success"}),S("p",{children:"Your assignment was submitted!"})]}):d&&!c?F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"We couldn't submit your assignment"}),S("p",{children:Gt(d)})]}):F(Ze,{className:Ur.application,children:[e.errorMessages.length?F(Ze,{highlight:wt.Negative,className:Ur.errorsContainer,children:[S(Wt,{children:"Your assignment needs corrections"}),S("ul",{className:Ur.errors,children:e.errorMessages.map((h,g)=>S("li",{className:Ur.error,children:S("p",{children:h})},g))})]}):"",S(eT,{formRenderId:e.id,formDefinitionId:n,organizationHostedJobsPageName:a,children:e.sections.map((h,g)=>F("div",{className:Ur.section,children:[!Vr(h.title)||!Vr(h.descriptionHtml)?F("div",{className:Ur.sectionHeader,children:[Vr(h.title)?null:S("h2",{className:Ur.title,children:h.title}),Vr(h.descriptionHtml)?null:S("div",{className:Ur.sectionDescription,dangerouslySetInnerHTML:{__html:h.descriptionHtml}})]}):null,h.fieldEntries.map(v=>S(iT,{fieldEntry:v,isDisabled:c,onChangeIsSettingValue:p},v.field.path))]},g))}),S("div",{className:Ur.submitContainer,children:F(jt,{priority:Tt.Primary,onClick:m,isLoading:c,children:[S("span",{children:"Submit Assignment"}),S(CN,{})]})})]})}var Mkt=" daum[ /]| deusu/| yadirectfetcher|(?:^| )site|(?:^|[^g])news|(?S("svg",{viewBox:"0 0 384 512",height:"1em",...e,children:S("path",{d:"M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z"})});Q2e.displayName="LocationSvg";const Z2e=e=>S("svg",{viewBox:"0 0 512 512",height:"1em",...e,children:S("path",{d:"M199 331.4L189.6 386C187.9 395.9 198.3 403.2 207 398.6L255.9 372.8L304.8 398.6C313.5 403.2 323.9 395.8 322.2 386L312.8 331.4L352.4 292.8C359.5 285.9 355.6 273.8 345.8 272.3L291.1 264.3L266.6 214.7C262.2 205.9 249.5 205.7 245.1 214.7L220.6 264.3L165.9 272.3C156.1 273.7 152.2 285.8 159.3 292.8L199 331.4ZM432 64H384V16C384 7.2 376.8 0 368 0H336C327.2 0 320 7.2 320 16V64H192V16C192 7.2 184.8 0 176 0H144C135.2 0 128 7.2 128 16V64H80C53.5 64 32 85.5 32 112V464C32 490.5 53.5 512 80 512H432C458.5 512 480 490.5 480 464V112C480 85.5 458.5 64 432 64ZM432 458C432 461.3 429.3 464 426 464H86C82.7 464 80 461.3 80 458V160H432V458Z"})});Z2e.displayName="ScheduleScoreSvg";const X2e=()=>{const{createToast:e}=Z.useContext(un),t=xu(),{data:n,loading:r}=pr(Lf,{variables:{organizationHostedJobsPageName:t}}),{hiringEventId:i}=Cu(),{data:a,loading:o}=pr(xXe,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{organizationHostedJobsPageName:t,...w0e(i)?{hiringEventId:i}:{hiringEventSlug:i}},onError(d){e(gt.Error,Gt(d))}}),[s,l]=qf(t,n==null?void 0:n.organization);if(s&&l)return S(Sc,{to:l});if(o||r)return null;const u=n==null?void 0:n.organization,c=a==null?void 0:a.hiringEvent;return!c||!u?S(io,{}):F(Du,{organization:u,children:[S(Co,{title:`${c.title} - ${u.name}`}),S(Ec,{rules:"noindex"}),S(fr,{}),S(r3t,{hiringEvent:c,organizationHostedJobsPageName:t})]})};function r3t({hiringEvent:e,organizationHostedJobsPageName:t}){const n=va().maintenanceMode;return F("div",{className:Xn.sectionContent,children:[S(i3t,{hiringEvent:e}),n?S(Yn,{title:"",children:S(Xb,{})}):S(a3t,{hiringEvent:e,organizationHostedJobsPageName:t})]})}function i3t({hiringEvent:e}){const t=e.descriptionHeaderHtml?S("div",{dangerouslySetInnerHTML:{__html:e.descriptionHeaderHtml||""},className:Xn.headerDescription}):void 0,n=e.locationType===Che.Virtual?e.locationDescription:e.geoLocation!=null?HUe(e.geoLocation):null;return F(Yn,{title:e.title,aboveTitle:t,className:Xn.eventInfoContainer,contentClassName:Xn.eventContentContainer,customCssTitleClass:Xn.eventTitle,children:[F("div",{className:Xn.eventDetails,children:[F("div",{className:Xn.eventDetailsRow,children:[S(Z2e,{className:Xn.icon}),S("p",{children:uBe({isoString:e.startTime,timezoneName:e.timezone})})]}),n?F("div",{className:Xn.eventDetailsRow,children:[S(Q2e,{className:Xn.icon}),S("p",{children:n})]}):null]}),S("div",{dangerouslySetInnerHTML:{__html:e.descriptionFooterHtml||""},className:Xn.footerDescription})]})}function a3t({hiringEvent:e,organizationHostedJobsPageName:t}){const{createToast:n,dismissToast:r}=N.useContext(un),[i,a]=N.useState(!1),[o,s]=N.useState(new Set),[l,u]=N.useState(null),[c,{loading:d,error:f}]=$t(MXe,{onCompleted(y){y.submitRegistrationFormAction.__typename==="FormSubmitSuccess"&&a(!0)},onError:li}),p=o.size!==0,m=Z.useRef([]);function h(y,b){if(b)s(ro(o,{$add:[y]}));else{s(ro(o,{$remove:[y]}));for(const T of m.current)r(T);m.current=[]}}const g=e.registrationFormRender;function v(){p?m.current.push(n(gt.Warning,"We're updating your application (e.g. uploading files), please try again when they're finished.")):l==null&&e.timeslots.length>0?n(gt.Error,"Please select a timeslot to submit your registration."):c({variables:{formRenderIdentifier:g.id,actionIdentifier:g.formControls[0].identifier,hiringEventId:e.id,timeslotId:l}}).catch(li)}return i?S("div",{className:Xn.formResultContainer,children:F(Ze,{highlight:wt.Positive,children:[S(Wt,{children:"Success"}),S("p",{children:"Your registration was submitted!"})]})}):f&&!d?S("div",{className:Xn.formResultContainer,children:F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"We couldn't submit your registration"}),S("p",{children:Gt(f)})]})}):S(Yn,{title:"Register",className:Xn.registrationContainer,children:F(eT,{formRenderId:g.id,formDefinitionId:g.sourceFormDefinitionId,organizationHostedJobsPageName:t,children:[g.errorMessages.length?F(Ze,{highlight:wt.Negative,className:Xn.errorsContainer,children:[S(Wt,{children:"Your registration needs corrections:"}),S("ul",{className:Xn.errors,children:g.errorMessages.map((y,b)=>S("li",{children:S("p",{children:y})},b))})]}):"",F("div",{className:Xn.formContainer,children:[g.sections.filter(y=>y.isHidden!==!0).map((y,b)=>F("div",{className:Xn.section,children:[Vr(y.title)?null:S("h2",{children:y.title}),Vr(y.descriptionHtml)?null:S("div",{className:Xn.sectionHeader,children:S("div",{className:Xn.sectionDescription,dangerouslySetInnerHTML:{__html:y.descriptionHtml}})}),y.fieldEntries.filter(T=>T.isHidden!==!0).map(T=>S(iT,{fieldEntry:T,onChangeIsSettingValue:h},T.field.path)),e.timeslots.length?S(o3t,{hiringEvent:e,selectedTimeslot:l,setSelectedTimeslot:u}):null]},b)),S(jt,{onClick:v,priority:Tt.Primary,isLoading:d,isGreedy:!0,children:"Register"})]})]})})}function o3t({hiringEvent:e,selectedTimeslot:t,setSelectedTimeslot:n}){const[r]=N.useState(()=>{const i=[];for(const a of e.timeslots.filter(o=>o.hasAvailability))i.push({label:`${_i(a.startTime)} - ${_i(a.endTime)}`,value:a.id});return i});return F("div",{className:Xn.timeslotFieldContainer,children:[S("label",{className:Xn.label,children:"Time"}),S("div",{className:Xn.description,children:"Choose a time to arrive at the event."}),S(VH,{placeholder:"Select a time",value:t??void 0,onChange:i=>n(i.value),values:r,className:Xn.timeslotSelect})]})}const s3t="_section_e30it_34",l3t="_sectionContent_e30it_48",u3t="_buttons_e30it_92",c3t="_buttonContainer_e30it_99",d3t="_saveButton_e30it_103",f3t="_unsubscribeAllButton_e30it_112",Xf={section:s3t,sectionContent:l3t,buttons:u3t,buttonContainer:c3t,saveButton:d3t,unsubscribeAllButton:f3t},vF=()=>{const{stageId:e,organizationId:t,organizationBrandId:n,resourceType:r}=Cu(),{createToast:i}=N.useContext(un),[a,o]=N.useState(!0),[s,l]=N.useState(!0),[u,c]=N.useState(!0),{data:d,loading:f,error:p}=pr(XXe,{variables:{organizationId:t,organizationBrandId:n}}),{data:m,loading:h,refetch:g}=pr(OXe,{variables:{stageId:e,organizationId:t,resourceType:r},onError:Jn}),[v,{loading:y}]=$t(DXe,{onError:Jn,onCompleted:()=>{i(gt.Success,"Subscription preferences successfully saved",OS.Normal),g()}});N.useEffect(()=>{(m==null?void 0:m.subscriptionPreferences)!=null&&(o(m.subscriptionPreferences.subscribedToCurrentSequence),l(m.subscriptionPreferences.subscribedToAllSequences),c(m.subscriptionPreferences.subscribedToAllNewsletters))},[m]);function b(R){o(R)}function T(R){o(R),l(R)}function _(){v({variables:{stageId:e,organizationId:t,resourceType:r,subscriptionPreferences:{subscribedToCurrentSequence:a,subscribedToAllSequences:s,subscribedToAllNewsletters:u}}})}function E(){o(!1),l(!1),c(!1),v({variables:{stageId:e,organizationId:t,resourceType:r,subscriptionPreferences:{subscribedToCurrentSequence:!1,subscribedToAllSequences:!1,subscribedToAllNewsletters:!1}}})}if(p)return F(St,{children:[S(fr,{}),S(Yn,{title:"We couldn't retrieve subscriptions:",children:S(IN,{message:Gt(p)})})]});if(f||h)return F(St,{children:[S(Co,{title:"Loading..."}),S(fr,{})]});if((d==null?void 0:d.organization)==null)return S("div",{children:"Error"});const{organization:k}=d,A=(m==null?void 0:m.subscriptionPreferences.subscribedToCurrentSequence)===a&&m.subscriptionPreferences.subscribedToAllSequences===s&&m.subscriptionPreferences.subscribedToAllNewsletters===u,D=(m==null?void 0:m.subscriptionPreferences.subscribedToCurrentSequence)===!1&&m.subscriptionPreferences.subscribedToAllSequences===!1&&m.subscriptionPreferences.subscribedToAllNewsletters===!1;return F(Du,{organization:k,children:[S(Co,{title:`Subscriptions • ${k.name}`}),S(fr,{}),F(Yn,{title:"Subscription Preferences",hasLargeTitle:!0,className:Xf.section,contentClassName:Xf.sectionContent,children:[F("ul",{children:[(m==null?void 0:m.subscriptionPreferences.subscribedToCurrentSequence)&&S(WD,{title:"Current Outreach",subtitle:"The current role we've been contacting you about.",checked:a,onChange:b}),S(WD,{title:"Outreaches about New Roles",subtitle:"We'll occasionally reach out with new open positions we think may be a fit for you.",checked:s,onChange:T}),S(WD,{title:"Newsletters",subtitle:`Stay up-to-date with the latest news and updates from ${k.name}.`,checked:u,onChange:c})]}),F("div",{className:Xf.buttons,children:[S("div",{className:Xf.buttonContainer,children:S(jt,{className:Xf.saveButton,priority:Tt.Primary,onClick:_,isLoading:y,disabled:A,children:"Save Preferences"})}),S("div",{className:Xf.buttonContainer,children:S(TS,{className:Xf.unsubscribeAllButton,onClick:E,disabled:D,children:"Unsubscribe from all communication"})})]})]})]})};function WD({title:e,subtitle:t,checked:n,onChange:r}){return F("li",{children:[F("div",{children:[S("h2",{children:e}),S("p",{children:t})]}),S(M1e,{checked:n,onChange:r})]})}const p3t="_sectionContent_tkbzs_29",m3t="_formTitle_tkbzs_36",h3t="_headerDescription_tkbzs_40",g3t="_footerDescription_tkbzs_45",v3t="_formContainer_tkbzs_154",y3t="_sectionHeader_tkbzs_161",S3t="_title_tkbzs_167",b3t="_sectionDescription_tkbzs_176",T3t="_errorsContainer_tkbzs_264",_3t="_errors_tkbzs_264",E3t="_autofillPane_tkbzs_273",Ks={sectionContent:p3t,formTitle:m3t,headerDescription:h3t,footerDescription:g3t,formContainer:v3t,sectionHeader:y3t,title:S3t,sectionDescription:b3t,errorsContainer:T3t,errors:_3t,autofillPane:E3t},eSe=()=>{const{createToast:e}=N.useContext(un),t=xu(),{data:n,loading:r}=pr(Lf,{variables:{organizationHostedJobsPageName:t}}),{sourcingFormId:i}=Cu(),{data:a,loading:o}=pr(eet,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{organizationHostedJobsPageName:t,...w0e(i)?{sourcingFormId:i}:{sourcingFormSlug:i}},onError(d){e(gt.Error,Gt(d))}}),[s,l]=qf(t,n==null?void 0:n.organization);if(s&&l)return S(Sc,{to:l});if(o||r)return null;const u=n==null?void 0:n.organization,c=a==null?void 0:a.sourcingForm;return!c||!u?S(io,{}):F(Du,{organization:u,children:[S(Co,{title:`${c.publicTitle} - ${u.name}`}),S(Ec,{rules:"noindex"}),S(fr,{}),S(w3t,{sourcingForm:c,organizationHostedJobsPageName:t})]})};function w3t({sourcingForm:e,organizationHostedJobsPageName:t}){const n=va().maintenanceMode,r=e.descriptionHeaderHtml?S("div",{dangerouslySetInnerHTML:{__html:e.descriptionHeaderHtml},className:Ks.headerDescription}):void 0,i=e.descriptionFooterHtml?S("div",{dangerouslySetInnerHTML:{__html:e.descriptionFooterHtml},className:Ks.footerDescription}):void 0;return S("div",{className:Ks.sectionContent,children:S(Yn,{title:e.publicTitle,afterTitle:r,customCssTitleClass:Ks.formTitle,children:F(Yn,{title:"",children:[n?S(Xb,{}):S(k3t,{sourcingForm:e,organizationHostedJobsPageName:t}),i]})})})}function k3t({sourcingForm:e,organizationHostedJobsPageName:t}){const n=e.submissionSuccessMessageHtml?S("div",{dangerouslySetInnerHTML:{__html:e.submissionSuccessMessageHtml}}):void 0,r=e.sourcingFormRender.sections.some(_=>_.fieldEntries.some(E=>E.field.path===Ci.resume)),i=e.showAutofillBox&&r,[a,o]=FV("sourcing-form-$"),{createToast:s,dismissToast:l}=N.useContext(un),[u,c]=N.useState(!1),[d,f]=N.useState(new Set),[p,{loading:m,error:h}]=$t(tet,{onCompleted(_){_.submitSourcingFormAction.__typename==="FormSubmitSuccess"&&c(!0)},onError:li}),g=d.size!==0,v=N.useRef([]);function y(_,E){if(E)f(ro(d,{$add:[_]}));else{f(ro(d,{$remove:[_]}));for(const k of v.current)l(k);v.current=[]}}const b=e.sourcingFormRender;function T(){g?v.current.push(s(gt.Warning,"We're updating your form (e.g. uploading files), please try again when they're finished.")):p({variables:{formRenderIdentifier:b.id,actionIdentifier:b.formControls[0].identifier,sourcingFormId:e.id}}).catch(li)}return u?F(Ze,{highlight:wt.Positive,children:[S(Wt,{children:"Success"}),n??S("p",{children:"Your form has been successfully submitted."})]}):h&&!m?F(Ze,{highlight:wt.Negative,children:[S(Wt,{children:"We couldn't submit your form."}),S("p",{children:Gt(h)})]}):F(St,{children:[i?S(Ze,{className:Ks.autofillPane,children:S(PV,{formRender:e.sourcingFormRender,formContext:e1.SourcingForm,onAutofillSuccess:o,organizationHostedJobsPageName:t})}):null,F(eT,{formRenderId:b.id,formDefinitionId:b.sourceFormDefinitionId,organizationHostedJobsPageName:t,children:[b.errorMessages.length?F(Ze,{highlight:wt.Negative,className:Ks.errorsContainer,children:[S(Wt,{children:"Your form needs corrections:"}),S("ul",{className:Ks.errors,children:b.errorMessages.map((_,E)=>S("li",{children:S("p",{children:_})},E))})]}):"",F("div",{className:Ks.formContainer,children:[b.sections.filter(_=>_.isHidden!==!0).map((_,E)=>F("div",{className:Ks.section,children:[Vr(_.title)?null:S("h2",{children:_.title}),Vr(_.descriptionHtml)?null:S("div",{className:Ks.sectionHeader,children:S("div",{className:Ks.sectionDescription,dangerouslySetInnerHTML:{__html:_.descriptionHtml}})}),_.fieldEntries.filter(k=>k.isHidden!==!0).map(k=>S(iT,{fieldEntry:k,onChangeIsSettingValue:y},k.field.path))]},E)),S(jt,{onClick:T,priority:Tt.Primary,isLoading:m,isGreedy:!0,children:e.submitButtonText??"Submit"})]})]},a)]})}const A3t="_container_3jiof_29",C3t="_section_3jiof_36",N3t="_divider_3jiof_40",I3t="_optOutPane_3jiof_47",O3t="_legalOverview_3jiof_51",D3t="_heading_3jiof_59",x3t="_errorMessage_3jiof_63",M3t="_successMessage_3jiof_63",R3t="_form_3jiof_67",P3t="_label_3jiof_74",F3t="_optOutConfirmation_3jiof_80",L3t="_input_3jiof_93",B3t="_button_3jiof_103",$3t="_smallParagraph_3jiof_112",U3t="_pane_3jiof_130",yn={container:A3t,section:C3t,divider:N3t,optOutPane:I3t,legalOverview:O3t,heading:D3t,errorMessage:x3t,successMessage:M3t,form:R3t,label:P3t,optOutConfirmation:F3t,input:L3t,button:B3t,smallParagraph:$3t,pane:U3t},tSe=e=>S("svg",{viewBox:"0 0 206 12",fill:"none",height:"1em",...e,children:S("path",{d:"M1.76068 11C4.57288 9.33333 13.0095 1 18.6339 1C24.2583 1 29.8827 11 35.5071 11C41.1315 11 46.7559 1 52.3803 1C58.0048 1 63.6292 11 69.2536 11C74.878 11 80.5023 1 86.1267 1C91.751 1 97.3755 11 103 11C108.625 11 114.249 1 119.874 1C125.498 1 131.122 11 136.746 11C142.371 11 147.995 1 153.62 1C159.244 1 164.869 11 170.493 11C176.118 11 181.741 1 187.366 1C192.99 1 201.428 9.33333 204.239 11",strokeWidth:"2",strokeLinejoin:"round"})});tSe.displayName="SquigglyLineSvg";const bae="There was an error verifying that you are not a robot. Please try again.",nSe=()=>{var J,re;const e=xu(),{data:t,loading:n}=pr(Lf,{variables:{organizationHostedJobsPageName:e}}),[r,i]=N.useState(""),[a,o]=N.useState(""),{data:s,loading:l,error:u}=pr(NXe,{variables:{organizationHostedJobsPageName:e}}),[c,d]=N.useState(!1),[f,p]=N.useState(!1),[m,h]=N.useState(null),[g,v]=N.useState(null),{execute:y,isRecaptchaProcessing:b}=dm(),{createToast:T}=Z.useContext(un),[_,{loading:E}]=gp(kXe,{onCompleted:()=>{d(!0)},onError:X=>{h(Gt(X))},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),[k,{loading:A}]=gp(CXe,{onCompleted:()=>{p(!0)},onError:X=>{v(Gt(X))},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),D=async X=>{X.preventDefault(),d(!1),h(null),y("opt_out_of_automated_processing").then(function(j){_({variables:{email:r,organizationHostedJobsPageName:e,recaptchaToken:j}})}).catch(()=>{T(gt.Error,bae)})},R=async X=>{X.preventDefault(),p(!1),v(null),y("check_legal_opt_out_status").then(function(j){k({variables:{email:a,organizationHostedJobsPageName:e,recaptchaToken:j}})}).catch(()=>{T(gt.Error,bae)})},[B,H]=qf(e,t==null?void 0:t.organization);if(B&&H)return S(Sc,{to:H});if(n)return null;const L=t==null?void 0:t.organization;if(!L)return S(io,{});if(!L.activeFeatureFlags.includes(O.AiJobCriteraEvaluationLegalConfiguration))return S(io,{});const U=((J=s==null?void 0:s.getAutomatedProcessingLegalText)==null?void 0:J.pageTitle)??"Automated Processing Legal Notice";return F(Du,{organization:L,children:[S(Co,{title:U}),S(Ec,{rules:"noindex"}),S(fr,{}),F("div",{className:yn.container,children:[F(Ze,{className:yn.pane,children:[S("h2",{className:yn.heading,children:U}),l?S(um,{message:"Loading..."}):u!=null||((re=s==null?void 0:s.getAutomatedProcessingLegalText)==null?void 0:re.legalNoticeHtml)==null?S(Ze,{highlight:wt.Negative,children:S("p",{children:"There was an error retrieving the legal text. Please reach out to the company to get the full legal text."})}):S("div",{dangerouslySetInnerHTML:{__html:s.getAutomatedProcessingLegalText.legalNoticeHtml}})]}),S(tSe,{className:yn.divider}),F(Ze,{className:[yn.pane,yn.optOutPane].join(" "),children:[S("h5",{className:yn.heading,children:"Opt-Out"}),F("p",{className:yn.smallParagraph,children:["You can opt out of AI-assisted evaluations by ",L.name,". A confirmation link will be sent to your email."]}),F("form",{onSubmit:X=>{D(X)},className:yn.form,children:[S(Pd,{id:"optOutEmail",name:"email",type:"email",value:r,onChange:i,placeholder:"name@example.com",required:!0,autoComplete:"email",className:yn.input}),S(jt,{type:"submit",priority:Tt.Quaternary,className:yn.button,disabled:E||b,children:E||b?"Processing...":"Opt Out"}),c&&S(Ze,{highlight:wt.Positive,className:yn.successMessage,children:S("p",{children:"An email has been sent to confirm your opt-out request."})}),m&&S(Ze,{highlight:wt.Negative,className:yn.errorMessage,children:S("p",{children:m})})]})]}),F(Ze,{className:yn.pane,children:[S("h5",{className:yn.heading,children:"Check Opt-Out Status"}),F("p",{className:yn.smallParagraph,children:["Check your opt-out status for this job board. You will receive an email confirming your current opt-out status for ",L.name," jobs. If you have opted out, you can opt back in."]}),F("form",{onSubmit:X=>{R(X)},className:yn.form,children:[S(Pd,{id:"checkStatusEmail",name:"email",type:"email",value:a,onChange:o,placeholder:"name@example.com",required:!0,autoComplete:"email",className:yn.input}),S(jt,{type:"submit",priority:Tt.Quaternary,className:yn.button,disabled:A||b,children:A||b?"Checking...":"Check Status"}),f&&S(Ze,{highlight:wt.Positive,className:yn.successMessage,children:S("p",{children:"An email has been sent with your opt-out status."})}),g&&S(Ze,{highlight:wt.Negative,className:yn.errorMessage,children:S("p",{children:g})})]})]})]}),S(TN,{})]})},H3t="There was an error verifying that you are not a robot. Please try again.",V3t=()=>{const t=new URLSearchParams(window.location.search).get("email");return t&&typeof t=="string"?t:""},rSe=()=>{const e=xu(),{data:t,loading:n}=pr(Lf,{variables:{organizationHostedJobsPageName:e}}),r=V3t(),[i,a]=N.useState(r||""),[o,s]=N.useState(!1),[l,u]=N.useState(null),{execute:c,isRecaptchaProcessing:d}=dm(),{createToast:f}=Z.useContext(un),[p,{loading:m}]=gp(AXe,{onCompleted:()=>{s(!0)},onError:T=>{u(Gt(T))},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),h=async T=>{T.preventDefault(),s(!1),u(null),c("opt_in_to_automated_processing").then(function(_){p({variables:{email:i,organizationHostedJobsPageName:e,recaptchaToken:_}})}).catch(()=>{f(gt.Error,H3t)})},[g,v]=qf(e,t==null?void 0:t.organization);if(g&&v)return S(Sc,{to:v});if(n)return null;const y=t==null?void 0:t.organization;return y?y.activeFeatureFlags.includes(O.AiJobCriteraEvaluationLegalConfiguration)?F(Du,{organization:y,children:[S(Co,{title:"Automated Processing Legal Notice - Opt In"}),S(Ec,{rules:"noindex"}),S(fr,{}),S("div",{className:yn.container,children:F(Ze,{children:[S(gf,{children:"Opt-In"}),F("p",{children:["You may opt back into AI-assisted application processing. To do so, enter your email. This will enable AI-assisted application processing for any job posted by",y.name," on this job board."]}),F("form",{onSubmit:T=>{h(T)},className:yn.form,children:[S(Pd,{id:"optInEmail",name:"email",type:"email",value:i,onChange:a,placeholder:"name@example.com",required:!0,autoComplete:"email",className:yn.input}),S(jt,{type:"submit",priority:Tt.Primary,className:yn.button,disabled:m||d,children:m||d?"Processing...":"Opt In"}),o&&S(Ze,{highlight:wt.Positive,className:yn.successMessage,children:S("p",{children:"An email has been sent to confirm your opt-in request."})}),l&&S(Ze,{highlight:wt.Negative,className:yn.errorMessage,children:S("p",{children:l})})]})]})}),S(TN,{})]}):S(io,{}):S(io,{})},z3t="There was an error verifying that you are not a robot. Please try again.",iSe=()=>{const{eventId:e}=Cu(),t=xu(),[n,r]=N.useState(null),[i,a]=N.useState(null),[o,s]=N.useState(!1),{execute:l,isRecaptchaProcessing:u}=dm(),{createToast:c}=Z.useContext(un),{data:d,loading:f}=pr(Lf,{variables:{organizationHostedJobsPageName:t}}),[p,{loading:m}]=$t(IXe,{onCompleted:b=>{r(b.confirmOptOutEvent)},onError:b=>{a(Gt(b))}});N.useEffect(()=>{e&&t&&!o?(s(!0),l("confirm_opt_out_event").then(function(b){p({variables:{eventId:e,organizationHostedJobsPageName:t,recaptchaToken:b}})}).catch(()=>{c(gt.Error,z3t)})):(!e||!t)&&a("Confirmation code could not be read from the URL.")},[e,t,p,l,c,o]);const[h,g]=qf(t,d==null?void 0:d.organization);if(h&&g)return S(Sc,{to:g});if(f||m||u)return S(um,{message:"Processing..."});const v=d==null?void 0:d.organization;return v?v.activeFeatureFlags.includes(O.AiJobCriteraEvaluationLegalConfiguration)?F(Du,{organization:v,children:[S(Co,{title:"Confirm Opt-Out Status"}),S(Ec,{rules:"noindex"}),S(fr,{}),S("div",{className:yn.container,children:F(Ze,{children:[S(gf,{children:"Confirm Opt-Out Status"}),S("p",{children:"By clicking this link through your email, you are verifying your recent request related to your opt-out."}),n?F("div",{children:[S(Ze,{highlight:wt.Positive,children:S("p",{children:"Your request has been completed"})}),S("div",{className:yn.optOutConfirmation,children:S("div",{dangerouslySetInnerHTML:{__html:n}})})]}):i?S(Ze,{highlight:wt.Negative,children:S("p",{children:i})}):null]})}),S(TN,{})]}):S(io,{}):S(io,{})},{environment:Tae}=va(),_ae=Tae==="production"?"production":Tae==="development"?"prapp":void 0;_ae!=null&&nCe({dsn:"https://a8322b571f9b446994fd91336a8e71e3@sentry.io/1863591",environment:_ae,release:"22a3be054271ef665005577d88fa2e795f4e7d7d".toString(),dist:"22a3be054271ef665005577d88fa2e795f4e7d7d".toString(),maxValueLength:500});Sxe();gxe();ngt();const{routerPrefix:aSe,customDomainData:jD}=va(),q3t=()=>S(Wue,{client:Ohe,children:S(cve,{children:S(HH,{children:F(jde,{forceRefresh:K2e(navigator.userAgent)&&BU(location.search)===ff.None,basename:aSe,children:[S(_ve,{children:F(yg,{children:[S(pn,{path:pt.Meeting,children:S(mve,{})}),S(pn,{path:pt.SubscriptionPreferencesWithBrandId,children:S(vF,{})}),S(pn,{path:pt.SubscriptionPreferences,children:S(vF,{})}),S(pn,{path:pt.Survey,children:S(J2e,{})}),S(pn,{path:pt.TakeHome,children:S(Y2e,{})}),S(pn,{path:pt.HiringEvent,children:S(X2e,{})}),S(pn,{path:pt.SourcingForm,children:S(eSe,{})}),S(pn,{path:pt.AutomatedProcessingLegalNotice,children:S(nSe,{})}),S(pn,{path:pt.AutomatedProcessingLegalNoticeOptIn,children:S(rSe,{})}),S(pn,{path:pt.AutomatedProcessingEmailConfirmation,children:S(iSe,{})}),S(pn,{path:pt.JobBoard,children:S(dkt,{})}),S(pn,{children:S(io,{})})]})}),S(xhe,{})]})})})}),W3t=()=>S(Wue,{client:Ohe,children:S(cve,{children:S(HH,{children:F(jde,{forceRefresh:K2e(navigator.userAgent)&&BU(location.search)===ff.None,basename:aSe,children:[S(_ve,{children:F(yg,{children:[S(pn,{path:pt.Meeting,children:S(mve,{})}),S(pn,{path:Rl.SubscriptionPreferences,children:S(vF,{})}),S(pn,{path:Rl.Survey,children:S(J2e,{})}),S(pn,{path:Rl.TakeHome,children:S(Y2e,{})}),S(pn,{path:Rl.HiringEvent,children:S(X2e,{})}),S(pn,{path:Rl.SourcingForm,children:S(eSe,{})}),S(pn,{path:Rl.AutomatedProcessingLegalNotice,children:S(nSe,{})}),S(pn,{path:Rl.AutomatedProcessingLegalNoticeOptIn,children:S(rSe,{})}),S(pn,{path:Rl.AutomatedProcessingEmailConfirmation,children:S(iSe,{})}),S(pn,{children:S(io,{})})]})}),S(xhe,{})]})})})});function j3t(){return(jD==null?void 0:jD.organizationSlug)!=null?S(W3t,{}):S(q3t,{})}Jp.render(S(j3t,{}),document.getElementById("root"))});export default G3t(); //# sourceMappingURL=index-d756a25f.js.map