@photonhealth/elements 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -759,7 +759,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
759
759
|
mutation deleteWebhookConfig($id: String!) {
|
|
760
760
|
deleteWebhookConfig(id: $id)
|
|
761
761
|
}
|
|
762
|
-
`;return gn(this.apollo,t)}}class ow{constructor(t){this.client=new nw(t),this.organization=new rw(t),this.webhook=new iw(t)}}var Fp;(function(e){e.Drug="DRUG",e.Package="PACKAGE",e.Product="PRODUCT"})(Fp||(Fp={}));var Rp;(function(e){e.Icd10="ICD10"})(Rp||(Rp={}));var Lp;(function(e){e.Canceled="CANCELED",e.New="NEW",e.Scheduled="SCHEDULED",e.Sent="SENT"})(Lp||(Lp={}));var jp;(function(e){e.MailOrder="MAIL_ORDER",e.PickUp="PICK_UP"})(jp||(jp={}));var zp;(function(e){e.Otc="OTC",e.Rx="RX"})(zp||(zp={}));var Vp;(function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Error="ERROR",e.Pending="PENDING",e.Placed="PLACED",e.Routing="ROUTING"})(Vp||(Vp={}));var Up;(function(e){e.Pharmacy="PHARMACY",e.Prescriber="PRESCRIBER"})(Up||(Up={}));var Bp;(function(e){e.Active="ACTIVE",e.Depleted="DEPLETED",e.Expired="EXPIRED",e.Canceled="CANCELED"})(Bp||(Bp={}));var Hp;(function(e){e.I="I",e.Ii="II",e.Iii="III",e.Iv="IV",e.V="V"})(Hp||(Hp={}));var qp;(function(e){e.Concept="CONCEPT",e.Form="FORM",e.Route="ROUTE",e.Strength="STRENGTH"})(qp||(qp={}));var Wp;(function(e){e.Female="FEMALE",e.Male="MALE",e.Unknown="UNKNOWN"})(Wp||(Wp={}));const aw="@photonhealth/sdk",sw="1.3.2",lw="dist/lib.js",dw={build:"npx nx run sdk:build",docs:'find src -name "*.ts" | xargs npx typedoc --out docs',prepublishOnly:"npm run build"},cw={access:"public"},uw=[],fw="",hw="ISC",pw={"@babel/core":"^7.18.9","@babel/preset-env":"^7.18.9","@rollup/plugin-typescript":"^8.3.4","@types/node":"^18.6.3",path:"^0.12.7",rimraf:"^3.0.2",tslib:"^2.4.0",typedoc:"^0.23.10"},mw={"@apollo/client":"^3.6.9","@auth0/auth0-spa-js":"^2.1.3","@nanostores/react":"^0.4.1",nanostores:"^0.7.4"},gw={".":{import:"./dist/lib.mjs",require:"./dist/lib.js"}},vw="./dist/lib.d.ts",yw={type:"git",url:"git+https://github.com/Photon-Health/photon-sdk-js.git"},bw={url:"https://github.com/Photon-Health/photon-sdk-js/issues"},$w="https://github.com/Photon-Health/photon-sdk-js#readme",ww="",_w="af370de34a8764638dbdc4bd5092f62db2eefee2",n0={name:aw,version:sw,main:lw,scripts:dw,publishConfig:cw,keywords:uw,author:fw,license:hw,devDependencies:pw,dependencies:mw,exports:gw,types:vw,repository:yw,bugs:bw,homepage:$w,description:ww,gitHead:_w};var r0;const xw=(r0=n0?.version)!==null&&r0!==void 0?r0:"unknown";class kw{constructor({domain:t,clientId:n,redirectURI:r,organization:i,env:o="photon",audience:a,connection:s,uri:l,developmentMode:d=!1},c){this.audience=a||Js[o],this.uri=l||`${Js[o]}/graphql`,this.clinicalUrl=l?H$(l):S1[o],this.clinicalApiUri=`${Dp[o]}/graphql`,d&&(this.audience=Js.neutron,this.uri=`${Js.neutron}/graphql`,this.clinicalApiUri=`${Dp.neutron}/graphql`);const u={domain:t||(d?"auth.neutron.health":"auth.photon.health"),clientId:n,cacheLocation:"localstorage",useRefreshTokens:!0,useRefreshTokensFallback:!0,authorizationParams:Object.assign({redirect_uri:r,audience:this.audience},s?{connection:s}:{})};this.auth0Client=new x8(u),this.organization=i,this.authentication=new Np(Object.assign({authentication:this.auth0Client,organization:this.organization,audience:this.audience},s?{connection:s}:{})),this.apollo=this.constructApolloClient({elementsVersion:c,isServices:!1}),this.apolloClinical=this.constructApolloClient({elementsVersion:c,isServices:!0}),this.clinical=new tw(this.apollo),this.management=new ow(this.apollo)}constructApolloClient({elementsVersion:t,isServices:n}={isServices:!1}){return new T$({link:L$((i,o)=>Ie(this,void 0,void 0,function*(){var{headers:a}=o,s=gi(o,["headers"]);const l=yield this.authentication.getAccessToken(),d=Object.assign(Object.assign(Object.assign({},a),{"x-photon-sdk-version":xw}),t?{"x-photon-elements-version":t}:{});return l?Object.assign(Object.assign({},s),{headers:n?Object.assign(Object.assign({},d),{"x-photon-auth-token":l,"x-photon-auth-token-type":"auth0"}):Object.assign(Object.assign({},d),{authorization:l})}):Object.assign({headers:d},s)})).concat(new vv({uri:n?this.clinicalApiUri:this.uri})),defaultOptions:{query:{fetchPolicy:"cache-first",errorPolicy:"all"},mutate:{onQueryUpdated:Ew}},cache:new w$({typePolicies:{Patient:{fields:{name:{merge(i,o,{mergeObjects:a}){return a(i,o)}},address:{merge(i,o,{mergeObjects:a}){return a(i,o)}}}},User:{fields:{name:{merge(i,o,{mergeObjects:a}){return a(i,o)}},address:{merge(i,o,{mergeObjects:a}){return a(i,o)}}}}}})})}setOrganization(t){return this.organization=t,this.authentication=new Np({authentication:this.auth0Client,organization:t,audience:this.audience}),this}}const Cw=e=>new Promise(t=>setTimeout(t,e)),Ew=e=>Ie(void 0,void 0,void 0,function*(){yield Cw(1e3),e.refetch()}),Sw=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ow=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Sw]),Tw=new Set(["innerHTML","textContent","innerText","children"]),Nw=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Gp=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Pw=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Aw=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Iw={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Mw(e,t,n){let r=n.length,i=t.length,o=r,a=0,s=0,l=t[i-1].nextSibling,d=null;for(;a<i||s<o;){if(t[a]===n[s]){a++,s++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){const c=o<r?s?n[s-1].nextSibling:n[o-s]:l;for(;s<o;)e.insertBefore(n[s++],c)}else if(o===s)for(;a<i;)(!d||!d.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[s]===t[i-1]){const c=t[--i].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--o],c),t[i]=n[o]}else{if(!d){d=new Map;let u=s;for(;u<o;)d.set(n[u],u++)}const c=d.get(t[a]);if(c!=null)if(s<c&&c<o){let u=a,f=1,h;for(;++u<i&&u<o&&!((h=d.get(t[u]))==null||h!==c+f);)f++;if(f>c-s){const p=t[a];for(;s<c;)e.insertBefore(n[s++],p)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}const Qp="_$DX_DELEGATE";function b(e,t,n){const r=document.createElement("template");r.innerHTML=e;let i=r.content.firstChild;return n&&(i=i.firstChild),i}function Gr(e,t=window.document){const n=t[Qp]||(t[Qp]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,zw))}}function nt(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function Dw(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function _t(e,t){t==null?e.removeAttribute("class"):e.className=t}function Gv(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n)}function Fw(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(Kp(e,s,!1),delete n[s])}for(o=0,a=r.length;o<a;o++){const s=r[o],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(Kp(e,s,!0),n[s]=l)}return n}function or(e,t,n){if(!t)return n?nt(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function Kn(e,t={},n,r){const i={};return r||ee(()=>i.children=ea(e,t.children,i.children)),ee(()=>t.ref&&t.ref(e)),ee(()=>Rw(e,t,n,!0,i,!0)),i}function Nr(e,t,n){return se(()=>e(t,n))}function S(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return ea(e,t,r,n);ee(i=>ea(e,t(),i,n),r)}function Rw(e,t,n,r,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=Yp(e,a,null,i[a],n,o)}for(const a in t){if(a==="children"){r||ea(e,t.children);continue}const s=t[a];i[a]=Yp(e,a,s,i[a],n,o)}}function Lw(e){let t,n;return!Qe.context||!(t=Qe.registry.get(n=Vw()))?e.cloneNode(!0):(Qe.completed&&Qe.completed.add(t),Qe.registry.delete(n),t)}function jw(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Kp(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function Yp(e,t,n,r,i,o){let a,s,l;if(t==="style")return or(e,n,r);if(t==="classList")return Fw(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);r&&e.removeEventListener(d,r),n&&e.addEventListener(d,n)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);r&&e.removeEventListener(d,r,!0),n&&e.addEventListener(d,n,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),c=Pw.has(d);if(!c&&r){const u=Array.isArray(r)?r[0]:r;e.removeEventListener(d,u)}(c||n)&&(Gv(e,d,n,c),c&&Gr([d]))}else if((l=Tw.has(t))||!i&&(Gp[t]||(s=Ow.has(t)))||(a=e.nodeName.includes("-")))t==="class"||t==="className"?_t(e,n):a&&!s&&!l?e[jw(t)]=n:e[Gp[t]||t]=n;else{const d=i&&t.indexOf(":")>-1&&Iw[t.split(":")[0]];d?Dw(e,d,t,n):nt(e,Nw[t]||t,n)}return n}function zw(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),Qe.registry&&!Qe.done&&(Qe.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>{for(;r&&r.nodeType!==8&&r.nodeValue!=="pl-"+e;){let i=r.nextSibling;r.remove(),r=i}r&&r.remove()}));n;){const r=n[t];if(r&&!n.disabled){const i=n[`${t}Data`];if(i!==void 0?r.call(n,i,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function ea(e,t,n,r,i){for(Qe.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(Qe.context)return n;if(o==="number"&&(t=t.toString()),a){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=bo(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(Qe.context)return n;n=bo(e,n,r)}else{if(o==="function")return ee(()=>{let s=t();for(;typeof s=="function";)s=s();n=ea(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],l=n&&Array.isArray(n);if(O1(s,t,n,i))return ee(()=>n=ea(e,s,n,r,!0)),()=>n;if(Qe.context){if(!s.length)return n;for(let d=0;d<s.length;d++)if(s[d].parentNode)return n=s}if(s.length===0){if(n=bo(e,n,r),a)return n}else l?n.length===0?Zp(e,s,r):Mw(e,n,s):(n&&bo(e),Zp(e,s));n=s}else if(t instanceof Node){if(Qe.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=bo(e,n,r,t);bo(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function O1(e,t,n,r){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=n&&n[o];if(s instanceof Node)e.push(s);else if(!(s==null||s===!0||s===!1))if(Array.isArray(s))i=O1(e,s,l)||i;else if(typeof s=="function")if(r){for(;typeof s=="function";)s=s();i=O1(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else e.push(s),i=!0;else{const d=String(s);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return i}function Zp(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function bo(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,n):l&&s.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}function Vw(){const e=Qe.context;return`${e.id}${e.count++}`}const Uw="http://www.w3.org/2000/svg";function Bw(e,t=!1){return t?document.createElementNS(Uw,e):document.createElement(e)}function Hw(e){const[t,n]=Yo(e,["component"]),r=G(()=>t.component);return G(()=>{const i=r();switch(typeof i){case"function":return se(()=>i(n));case"string":const o=Aw.has(i),a=Qe.context?Lw():Bw(i,o);return Kn(a,n,o),a}})}function qw(e,...t){const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function jr(e){let t;return qw(e,n=>t=n)(),t}class Ww extends Error{constructor(t,n){super(t),this.name="FelteSubmitError",this.response=n}}function Gw(e,t){return Object.keys(e).some(n=>t(e[n]))}function ru(e,t){return Object.keys(e||{}).reduce((n,r)=>Object.assign(Object.assign({},n),{[r]:t(e[r])}),{})}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function En(e){return Object.keys(e||{}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:Le(e[n])?En(e[n]):Array.isArray(e[n])?[...e[n]]:e[n]}),{})}function Qw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Kw(e){return function(t){if(Le(t)){const n=Sn(t,e);return Qw(n,["key"])}return e}}function Sn(e,t){return ru(e,n=>Le(n)?Sn(n,t):Array.isArray(n)?n.map(Kw(t)):t)}function ui(...e){const t=e.pop(),n=e.shift();if(typeof n=="string")return n;const r=En(n);if(e.length===0)return r;for(const i of e){if(!i)continue;if(typeof i=="string")return i;let o=t(r,i);if(typeof o<"u")return o;const a=Array.from(new Set(Object.keys(r).concat(Object.keys(i))));for(const s of a)if(o=t(r[s],i[s]),typeof o<"u")r[s]=o;else if(Le(i[s])&&Le(r[s]))r[s]=ui(r[s],i[s],t);else if(Array.isArray(i[s]))r[s]=i[s].map((l,d)=>{if(!Le(l))return l;const c=Array.isArray(r[s])?r[s][d]:r[s];return ui(c,l,t)});else if(Le(i[s])){const l=Sn(En(i[s]),void 0);r[s]=ui(l,i[s],t)}else typeof i[s]<"u"&&(r[s]=i[s])}return r}function Yw(e,t){if(!(Le(e)&&Le(t))){if(Array.isArray(t)){if(t.some(Le))return;const n=Array.isArray(e)?e:[];return t.map((r,i)=>{var o;return(o=n[i])!==null&&o!==void 0?o:r})}if(typeof e<"u")return e}}function Xp(...e){return ui(...e,Yw)}function Qv(...e){return ui(...e,()=>{})}function Er(e,t,n){const r=o=>String.prototype.split.call(t,o).filter(Boolean).reduce((a,s)=>a!=null?a[s]:a,e),i=r(/[,[\]]+?/)||r(/[,[\].]+?/);return i===void 0||i===e?n:i}function pa(e,t,n){e&&(e=En(e)),Le(e)||(e={});const r=Array.isArray(t)?t:t.match(/[^.[\]]+/g)||[],i=r[r.length-1];if(!i)return e;let o=e;for(let a=0;a<r.length-1;a++){const s=r[a];if(!o[s]||!Le(o[s])&&!Array.isArray(o[s])){const l=r[a+1];isNaN(Number(l))?o[s]={}:o[s]=[]}o=o[s]}return o[i]=n(o[i]),e}function ct(e,t,n){return pa(e,t,()=>n)}function Ya(e,t){if(!e||Object(e)!==e)return;typeof e<"u"&&(e=En(e));const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[],r=n.length===1?e:Er(e,n.slice(0,-1).join("."));return Array.isArray(r)?r.splice(Number(n[n.length-1]),1):r==null||delete r[n[n.length-1]],e}function ps(e,t){return Gw(e,n=>Le(n)?ps(n,t):Array.isArray(n)?n.length===0||n.every(r=>typeof r=="string")?t(n):n.some(r=>Le(r)?ps(r,t):t(r)):t(n))}function Bo(e){return e?.nodeName==="INPUT"}function Zw(e){return e?.nodeName==="TEXTAREA"}function Ho(e){return e?.nodeName==="SELECT"}function iu(e){return e?.nodeName==="FIELDSET"}function Ht(e){return Bo(e)||Zw(e)||Ho(e)}function T1(e){return e.nodeType===Node.ELEMENT_NODE}function tn(e,t){return t??(Ht(e)?e.name:"")}function i0(e){let t=e;for(;t&&t.nodeName!=="FORM";){if(t.hasAttribute("data-felte-ignore"))return!0;t=t.parentElement}return!1}function Jp(e,t){return!Le(e)||!t?e:typeof t=="string"?Er(e,t):t(e)}function Xw(e,t){if(!(Le(e)||Le(t))){if(e===null||e==="")return t;if(t===null||t===""||!t)return e;if(!(!e||!t)){if(Array.isArray(e)){if(!Array.isArray(t))return[...e,t];const n=[],r=Math.max(t.length,e.length);for(let i=0;i<r;i++){let o=e[i],a=t[i];!Le(o)&&!Le(a)?(Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]),n.push(...o,...a)):n.push(So([o??{},a??{}]))}return n.filter(Boolean)}return Array.isArray(t)||(t=[t]),[e,...t].reduce((n,r)=>n.concat(r),[]).filter(Boolean)}}}function So(e){return ui(...e,Xw)}function Jw(e,t){return t?(Array.isArray(t)?t:[t]).map(n=>n(e)):[]}function N1(e,t){return t?Array.isArray(t)?t.reduce((n,r)=>r(n),e):t(e):e}function Kv(e=8){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function P1(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>P1(n,t[r]));if(Le(e)&&Le(t)){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>P1(e[i],t[i]))}return!1}function Dd(e,t,{onInit:n,onEnd:r}={}){let i;return(...o)=>{i||n?.(),i&&clearTimeout(i),i=setTimeout(()=>{e.apply(this,o),i=void 0,r?.()},t)}}function A1(e){if(Ht(e))return[e];if(e.childElementCount===0)return[];const t=new Set;for(const n of e.children){if(Ht(n)&&t.add(n),iu(n))for(const r of n.elements)Ht(r)&&t.add(r);n.childElementCount>0&&A1(n).forEach(r=>t.add(r))}return Array.from(t)}function Yv(e){for(const t of e.elements)!Ht(t)&&!iu(t)||e.hasAttribute("data-felte-keep-on-remove")&&!t.hasAttribute("data-felte-keep-on-remove")&&(t.dataset.felteKeepOnRemove=e.dataset.felteKeepOnRemove)}function Zv(e){return e.type.match(/^(number|range)$/)?e.value?+e.value:null:e.value}function e3(e){var t;let n={},r={};for(const i of e.elements){if(iu(i)&&Yv(i),!Ht(i)||!i.name)continue;const o=tn(i);if(Bo(i)){if(i.type==="checkbox"){if(typeof Er(n,o)>"u"){if(Array.from(e.querySelectorAll(`[name="${i.name}"]`)).filter(s=>Ht(s)?o===tn(s):!1).length===1){n=ct(n,o,i.checked),r=ct(r,o,!1);continue}n=ct(n,o,i.checked?[i.value]:[]),r=ct(r,o,!1);continue}Array.isArray(Er(n,o))&&i.checked&&(n=pa(n,o,s=>[...s,i.value]));continue}if(i.type==="radio"){if(Er(n,o))continue;n=ct(n,o,i.checked?i.value:void 0),r=ct(r,o,!1);continue}if(i.type==="file"){n=ct(n,o,i.multiple?Array.from(i.files||[]):(t=i.files)===null||t===void 0?void 0:t[0]),r=ct(r,o,!1);continue}}else if(Ho(i)){if(!i.multiple)n=ct(n,o,i.value);else{const s=Array.from(i.selectedOptions).map(l=>l.value);n=ct(n,o,s)}r=ct(r,o,!1);continue}const a=Zv(i);n=ct(n,o,a),r=ct(r,o,!1)}return{defaultData:n,defaultTouched:r}}function Tl(e,t){var n;if(!Ht(e))return;const r=t;if(Bo(e)){if(e.type==="checkbox"){const i=r;if(typeof i>"u"||typeof i=="boolean"){e.checked=!!i;return}Array.isArray(i)&&(i.includes(e.value)?e.checked=!0:e.checked=!1);return}if(e.type==="radio"){const i=r;e.value===i?e.checked=!0:e.checked=!1;return}if(e.type==="file"){if(t instanceof FileList)e.files=t;else if(t instanceof File&&typeof DataTransfer<"u"){const i=new DataTransfer;i.items.add(t),e.files=i.files}else if(typeof DataTransfer<"u"&&Array.isArray(t)&&t.some(i=>i instanceof File)){const i=new DataTransfer;for(const o of t)o instanceof File&&i.items.add(o);e.files=i.files}else(!t||Array.isArray(t)&&!t.length)&&(e.files=null,e.value="");return}}else if(Ho(e)){if(e.multiple){if(Array.isArray(r)){e.value=String((n=r[0])!==null&&n!==void 0?n:"");const i=r.map(o=>String(o));for(const o of e.options)i.includes(o.value)?o.selected=!0:o.selected=!1}}else{e.value=String(r??"");for(const i of e.options)i.value===String(r)?i.selected=!0:i.selected=!1}return}e.value=String(r??"")}function el(e,t){for(const n of e.elements){if(iu(n)&&Yv(n),!Ht(n)||!n.name)continue;const r=tn(n);Tl(n,Er(t,r))}}const e_={attributes:!0,attributeFilter:["data-felte-validation-message","aria-invalid"]};function t_(e,t){var n,r;let i,o,a,s,l,d;typeof e=="string"?(i=e,o=t?.defaultValue,a=(n=t?.touchOnChange)!==null&&n!==void 0?n:!1,d=t?.onFormReset):(i=e.name,o=e.defaultValue,a=(r=e.touchOnChange)!==null&&r!==void 0?r:!1,d=e?.onFormReset);function c($,k){if(!l)return;Tl(l,k);const _=new Event($,{bubbles:!0,composed:!0});l.dispatchEvent(_)}function u($){$.forEach(()=>{const k=l.getAttribute("aria-invalid");k?s.setAttribute("aria-invalid",k):s.removeAttribute("aria-invalid");const _=l.getAttribute("data-felte-validation-message");_?s.setAttribute("data-felte-validation-message",_):s.removeAttribute("data-felte-validation-message")})}function f($){!d||(Tl(l,o),d($))}function h($){s=$;let k,_;if(Ht($))return l=$,l.name=i,{};{let y=!1,x=!1;return setTimeout(()=>{if(x)return;const O=s.parentNode;if(!O||!T1(O))return;const N=O.querySelector(`[name="${i}"]`);if(!N||!Ht(N)){const P=document.createElement("input");P.type="hidden",P.name=i,O.insertBefore(P,$.nextSibling),l=P,y=!0}else l=N;Tl(l,o),k=new MutationObserver(u),k.observe(l,e_),_=l.closest("form"),_?.addEventListener("reset",f)}),{destroy(){var O;y&&((O=l.parentNode)===null||O===void 0||O.removeChild(l)),x=!0,k?.disconnect(),_?.removeEventListener("reset",f)}}}}function p($){c(a?"change":"input",$)}function v(){c("focusout")}return{field:h,onInput:p,onChange:p,onBlur:v}}function Xv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zr(e,t){return ru(e,n=>Le(n)?zr(n,t):Array.isArray(n)?n.length===0||n.every(r=>typeof r=="string")?t:n.map(r=>{const i=zr(r,t);return Xv(i,["key"])}):t)}function no(e){return e?ru(e,t=>Le(t)?no(t):Array.isArray(t)?t.length===0||t.every(n=>typeof n=="string")?t:t.map(n=>{if(!Le(n))return n;const r=no(n);return r.key||(r.key=Kv()),r}):t):{}}function Gi(e){return e?ru(e,t=>Le(t)?Gi(t):Array.isArray(t)?t.length===0||t.every(n=>typeof n=="string")?t:t.map(n=>{if(!Le(n))return n;const r=Gi(n);return Xv(r,["key"])}):t):{}}function n_(){class e extends CustomEvent{constructor(i){super("feltesuccess",{detail:i})}}class t extends CustomEvent{constructor(i){super("felteerror",{detail:i,cancelable:!0})}setErrors(i){this.preventDefault(),this.errors=i}}class n extends Event{constructor(){super("feltesubmit",{cancelable:!0})}handleSubmit(i){this.onSubmit=i}handleError(i){this.onError=i}handleSuccess(i){this.onSuccess=i}}return{createErrorEvent:r=>new t(r),createSubmitEvent:()=>new n,createSuccessEvent:r=>new e(r)}}function r_(e){if(e)return async function(){let t=new FormData(e);const n=new URL(e.action),r=e.method.toLowerCase()==="get"?"get":n.searchParams.get("_method")||e.method;let i=e.enctype;e.querySelector('input[type="file"]')&&(i="multipart/form-data"),(r==="get"||i==="application/x-www-form-urlencoded")&&(t=new URLSearchParams(t));let o;r==="get"?(t.forEach((s,l)=>{n.searchParams.append(l,s)}),o={method:r,headers:{Accept:"application/json"}}):o={method:r,body:t,headers:Object.assign(Object.assign({},i!=="multipart/form-data"&&{"Content-Type":i}),{Accept:"application/json"})};const a=await window.fetch(n.toString(),o);if(a.ok)return a;throw new Ww("An error occurred while submitting the form",a)}}function tl(e,t,n,r){return pa(e,t,i=>(typeof i<"u"&&!Array.isArray(i)||(i||(i=[]),typeof r>"u"?i.push(n):i.splice(r,0,n)),i))}function i_(e,t,n,r){return pa(e,t,i=>(!i||!Array.isArray(i)||([i[n],i[r]]=[i[r],i[n]]),i))}function o_(e,t,n,r){return pa(e,t,i=>(!i||!Array.isArray(i)||i.splice(r,0,i.splice(n,1)[0]),i))}function t3(e){return typeof e=="function"}function Xr(e){return(t,n)=>{if(typeof t=="string"){const r=t;e(i=>{const o=t3(n)?n(Er(i,r)):n;return ct(i,r,o)})}else e(r=>t3(t)?t(r):t)}}function a_({stores:e,config:t,validateErrors:n,validateWarnings:r,_getCurrentExtenders:i}){var o;let a,s=no((o=t.initialValues)!==null&&o!==void 0?o:{});const{data:l,touched:d,errors:c,warnings:u,isDirty:f,isSubmitting:h,interacted:p}=e,v=Xr(l.update),$=Xr(d.update),k=Xr(c.update),_=Xr(u.update);function y(z){v(re=>{const Z=z(re);return a&&el(a,Z),Z})}const x=(z,re,Z)=>{Xr(y)(z,re),typeof z=="string"&&Z&&$(z,!0)};function O(z,re,Z){const te=Le(re)?zr(re,!1):!1,V=Le(te)?Sn(te,[]):[];re=Le(re)?Object.assign(Object.assign({},re),{key:Kv()}):re,c.update(_e=>tl(_e,z,V,Z)),u.update(_e=>tl(_e,z,V,Z)),d.update(_e=>tl(_e,z,te,Z)),l.update(_e=>{const Te=tl(_e,z,re,Z);return setTimeout(()=>a&&el(a,Te)),Te})}function N(z){c.update(z),u.update(z),d.update(z),l.update(re=>{const Z=z(re);return setTimeout(()=>a&&el(a,Z)),Z})}function P(z){N(re=>Ya(re,z))}function A(z,re,Z){N(te=>i_(te,z,re,Z))}function j(z,re,Z){N(te=>o_(te,z,re,Z))}function U(z){const re=Er(s,z),Z=Le(re)?zr(re,!1):!1,te=Le(Z)?Sn(Z,[]):[];l.update(V=>{const _e=ct(V,z,re);return a&&el(a,_e),_e}),d.update(V=>ct(V,z,Z)),c.update(V=>ct(V,z,te)),u.update(V=>ct(V,z,te))}const W=Xr(h.update),R=Xr(f.update),L=Xr(p.update);async function q(){const z=jr(l);d.set(zr(z,!0)),p.set(null);const re=await n(z);return await r(z),re}function I(){x(En(s)),$(z=>Sn(z,!1)),p.set(null),f.set(!1)}function ne(z){return async function(re){var Z,te,V,_e,Te,ze,ae;const{createErrorEvent:Ee,createSubmitEvent:Ce,createSuccessEvent:me}=n_(),xe=Ce();a?.dispatchEvent(xe);const ke=(te=(Z=xe.onError)!==null&&Z!==void 0?Z:z?.onError)!==null&&te!==void 0?te:t.onError,De=(_e=(V=xe.onSuccess)!==null&&V!==void 0?V:z?.onSuccess)!==null&&_e!==void 0?_e:t.onSuccess,ue=(ae=(ze=(Te=xe.onSubmit)!==null&&Te!==void 0?Te:z?.onSubmit)!==null&&ze!==void 0?ze:t.onSubmit)!==null&&ae!==void 0?ae:r_(a);if(!ue||(re?.preventDefault(),xe.defaultPrevented))return;h.set(!0),p.set(null);const K=Gi(jr(l)),ye=await n(K,z?.validate),Ne=await r(K,z?.warn);if(Ne&&u.set(Qv(Sn(K,[]),Ne)),d.set(zr(K,!0)),ye&&(d.set(zr(ye,!0)),ps(ye,Xe=>Array.isArray(Xe)?Xe.length>=1:!!Xe))){await new Promise(Xe=>setTimeout(Xe)),i().forEach(Xe=>{var Pt;return(Pt=Xe.onSubmitError)===null||Pt===void 0?void 0:Pt.call(Xe,{data:K,errors:ye})}),h.set(!1);return}const $t={event:re,setFields:x,setData:v,setTouched:$,setErrors:k,setWarnings:_,unsetField:P,addField:O,resetField:U,reset:I,setInitialValues:ie.setInitialValues,moveField:j,swapFields:A,form:a,controls:a&&Array.from(a.elements).filter(Ht),config:Object.assign(Object.assign({},t),z)};try{const Xe=await ue(K,$t);a?.dispatchEvent(me(Object.assign({response:Xe},$t))),await De?.(Xe,$t)}catch(Xe){const Pt=Ee(Object.assign({error:Xe},$t));if(a?.dispatchEvent(Pt),!ke&&!Pt.defaultPrevented)throw Xe;if(!ke&&!Pt.errors)return;const vt=Pt.errors||await ke?.(Xe,$t);vt&&(d.set(zr(vt,!0)),c.set(vt),await new Promise(zn=>setTimeout(zn)),i().forEach(zn=>{var Vn;return(Vn=zn.onSubmitError)===null||Vn===void 0?void 0:Vn.call(zn,{data:K,errors:jr(c)})}))}finally{h.set(!1)}}}const ie={setData:v,setFields:x,setTouched:$,setErrors:k,setWarnings:_,setIsSubmitting:W,setIsDirty:R,setInteracted:L,validate:q,reset:I,unsetField:P,resetField:U,addField:O,swapFields:A,moveField:j,createSubmitHandler:ne,handleSubmit:ne(),setInitialValues:z=>{s=no(z)}};return{public:ie,private:{_setFormNode(z){a=z},_getInitialValues:()=>s}}}function s_({helpers:e,stores:t,config:n,extender:r,createSubmitHandler:i,handleSubmit:o,_setFormNode:a,_getInitialValues:s,_setCurrentExtenders:l,_getCurrentExtenders:d}){const{setFields:c,setTouched:u,reset:f,setInitialValues:h}=e,{addValidator:p,addTransformer:v,validate:$}=e,{data:k,errors:_,warnings:y,touched:x,isSubmitting:O,isDirty:N,interacted:P,isValid:A,isValidating:j}=t;function U(W){W.requestSubmit||(W.requestSubmit=o);function R(ue){return function(K){return K({form:W,stage:ue,controls:Array.from(W.elements).filter(Ht),data:k,errors:_,warnings:y,touched:x,isValid:A,isValidating:j,isSubmitting:O,isDirty:N,interacted:P,config:n,addValidator:p,addTransformer:v,setFields:c,validate:$,reset:f,createSubmitHandler:i,handleSubmit:o})}}l(r.map(R("MOUNT"))),W.noValidate=!!n.validate;const{defaultData:L,defaultTouched:q}=e3(W);a(W),h(Qv(En(L),s())),c(s()),x.set(q);function I(ue){const K=tn(ue),ye=Array.from(W.querySelectorAll(`[name="${ue.name}"]`)).filter(Ne=>Ht(Ne)?K===tn(Ne):!1);if(ye.length!==0)return ye.length===1?k.update(Ne=>ct(Ne,tn(ue),ue.checked)):k.update(Ne=>ct(Ne,tn(ue),ye.filter(Bo).filter($t=>$t.checked).map($t=>$t.value)))}function ne(ue){const K=W.querySelectorAll(`[name="${ue.name}"]`),ye=Array.from(K).find(Ne=>Bo(Ne)&&Ne.checked);k.update(Ne=>ct(Ne,tn(ue),ye?.value))}function ie(ue){var K;const ye=Array.from((K=ue.files)!==null&&K!==void 0?K:[]);k.update(Ne=>ct(Ne,tn(ue),ue.multiple?ye:ye[0]))}function z(ue){if(!ue.multiple)k.update(K=>ct(K,tn(ue),ue.value));else{const K=Array.from(ue.selectedOptions).map(ye=>ye.value);k.update(ye=>ct(ye,tn(ue),K))}}function re(ue){const K=ue.target;if(!K||!Ht(K)||Ho(K)||i0(K)||["checkbox","radio","file"].includes(K.type)||!K.name)return;N.set(!0);const ye=Zv(K);P.set(K.name),k.update(Ne=>ct(Ne,tn(K),ye))}function Z(ue){const K=ue.target;if(!(!K||!Ht(K)||i0(K))&&!!K.name)if(u(tn(K),!0),P.set(K.name),(Ho(K)||["checkbox","radio","file","hidden"].includes(K.type))&&N.set(!0),K.type==="hidden"&&k.update(ye=>ct(ye,tn(K),K.value)),Ho(K))z(K);else if(Bo(K))K.type==="checkbox"?I(K):K.type==="radio"?ne(K):K.type==="file"&&ie(K);else return}function te(ue){const K=ue.target;!K||!Ht(K)||i0(K)||!K.name||(u(tn(K),!0),P.set(K.name))}function V(ue){ue.preventDefault(),f()}const _e={childList:!0,subtree:!0};function Te(ue){let K=jr(k),ye=jr(x),Ne=jr(_),$t=jr(y);for(const Xe of ue.reverse()){if(Xe.hasAttribute("data-felte-keep-on-remove")&&Xe.dataset.felteKeepOnRemove!=="false")continue;const Pt=/.*(\[[0-9]+\]|\.[0-9]+)\.[^.]+$/;let vt=tn(Xe);const zn=jr(x);if(Pt.test(vt)){const Vn=vt.split(".").slice(0,-1).join("."),Oi=Er(zn,Vn);Le(Oi)&&Object.keys(Oi).length<=1&&(vt=Vn)}K=Ya(K,vt),ye=Ya(ye,vt),Ne=Ya(Ne,vt),$t=Ya($t,vt)}k.set(K),x.set(ye),_.set(Ne),y.set($t)}const ze=Dd(()=>{d().forEach(ye=>{var Ne;return(Ne=ye.destroy)===null||Ne===void 0?void 0:Ne.call(ye)}),l(r.map(R("UPDATE")));const{defaultData:ue,defaultTouched:K}=e3(W);k.update(ye=>Xp(ye,ue)),x.update(ye=>Xp(ye,K)),e.setFields(jr(k))},0);let ae=[];const Ee=Dd(()=>{d().forEach(ue=>{var K;return(K=ue.destroy)===null||K===void 0?void 0:K.call(ue)}),l(r.map(R("UPDATE"))),Te(ae),ae=[]},0);function Ce(ue){!Array.from(ue.addedNodes).some(K=>T1(K)?Ht(K)?!0:A1(K).length>0:!1)||ze()}function me(ue){for(const K of ue.removedNodes){if(!T1(K))continue;const ye=A1(K);ye.length!==0&&(ae.push(...ye),Ee())}}function xe(ue){for(const K of ue)K.type==="childList"&&(K.addedNodes.length>0&&Ce(K),K.removedNodes.length>0&&me(K))}const ke=new MutationObserver(xe);ke.observe(W,_e),W.addEventListener("input",re),W.addEventListener("change",Z),W.addEventListener("focusout",te),W.addEventListener("submit",o),W.addEventListener("reset",V);const De=_.subscribe(ue=>{for(const K of W.elements){if(!Ht(K)||!K.name)continue;const ye=Er(ue,tn(K)),Ne=Array.isArray(ye)?ye.join(`
|
|
762
|
+
`;return gn(this.apollo,t)}}class ow{constructor(t){this.client=new nw(t),this.organization=new rw(t),this.webhook=new iw(t)}}var Fp;(function(e){e.Drug="DRUG",e.Package="PACKAGE",e.Product="PRODUCT"})(Fp||(Fp={}));var Rp;(function(e){e.Icd10="ICD10"})(Rp||(Rp={}));var Lp;(function(e){e.Canceled="CANCELED",e.New="NEW",e.Scheduled="SCHEDULED",e.Sent="SENT"})(Lp||(Lp={}));var jp;(function(e){e.MailOrder="MAIL_ORDER",e.PickUp="PICK_UP"})(jp||(jp={}));var zp;(function(e){e.Otc="OTC",e.Rx="RX"})(zp||(zp={}));var Vp;(function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Error="ERROR",e.Pending="PENDING",e.Placed="PLACED",e.Routing="ROUTING"})(Vp||(Vp={}));var Up;(function(e){e.Pharmacy="PHARMACY",e.Prescriber="PRESCRIBER"})(Up||(Up={}));var Bp;(function(e){e.Active="ACTIVE",e.Depleted="DEPLETED",e.Expired="EXPIRED",e.Canceled="CANCELED"})(Bp||(Bp={}));var Hp;(function(e){e.I="I",e.Ii="II",e.Iii="III",e.Iv="IV",e.V="V"})(Hp||(Hp={}));var qp;(function(e){e.Concept="CONCEPT",e.Form="FORM",e.Route="ROUTE",e.Strength="STRENGTH"})(qp||(qp={}));var Wp;(function(e){e.Female="FEMALE",e.Male="MALE",e.Unknown="UNKNOWN"})(Wp||(Wp={}));const aw="@photonhealth/sdk",sw="1.3.3",lw="dist/lib.js",dw={build:"npx nx run sdk:build",docs:'find src -name "*.ts" | xargs npx typedoc --out docs',prepublishOnly:"npm run build"},cw={access:"public"},uw=[],fw="",hw="ISC",pw={"@babel/core":"^7.18.9","@babel/preset-env":"^7.18.9","@rollup/plugin-typescript":"^8.3.4","@types/node":"^18.6.3",path:"^0.12.7",rimraf:"^3.0.2",tslib:"^2.4.0",typedoc:"^0.23.10"},mw={"@apollo/client":"^3.6.9","@auth0/auth0-spa-js":"^2.1.3","@nanostores/react":"^0.4.1",nanostores:"^0.7.4"},gw={".":{import:"./dist/lib.mjs",require:"./dist/lib.js"}},vw="./dist/lib.d.ts",yw={type:"git",url:"git+https://github.com/Photon-Health/photon-sdk-js.git"},bw={url:"https://github.com/Photon-Health/photon-sdk-js/issues"},$w="https://github.com/Photon-Health/photon-sdk-js#readme",ww="",_w="af370de34a8764638dbdc4bd5092f62db2eefee2",n0={name:aw,version:sw,main:lw,scripts:dw,publishConfig:cw,keywords:uw,author:fw,license:hw,devDependencies:pw,dependencies:mw,exports:gw,types:vw,repository:yw,bugs:bw,homepage:$w,description:ww,gitHead:_w};var r0;const xw=(r0=n0?.version)!==null&&r0!==void 0?r0:"unknown";class kw{constructor({domain:t,clientId:n,redirectURI:r,organization:i,env:o="photon",audience:a,connection:s,uri:l,developmentMode:d=!1},c){this.audience=a||Js[o],this.uri=l||`${Js[o]}/graphql`,this.clinicalUrl=l?H$(l):S1[o],this.clinicalApiUri=`${Dp[o]}/graphql`,d&&(this.audience=Js.neutron,this.uri=`${Js.neutron}/graphql`,this.clinicalApiUri=`${Dp.neutron}/graphql`);const u={domain:t||(d?"auth.neutron.health":"auth.photon.health"),clientId:n,cacheLocation:"localstorage",useRefreshTokens:!0,useRefreshTokensFallback:!0,authorizationParams:Object.assign({redirect_uri:r,audience:this.audience},s?{connection:s}:{})};this.auth0Client=new x8(u),this.organization=i,this.authentication=new Np(Object.assign({authentication:this.auth0Client,organization:this.organization,audience:this.audience},s?{connection:s}:{})),this.apollo=this.constructApolloClient({elementsVersion:c,isServices:!1}),this.apolloClinical=this.constructApolloClient({elementsVersion:c,isServices:!0}),this.clinical=new tw(this.apollo),this.management=new ow(this.apollo)}constructApolloClient({elementsVersion:t,isServices:n}={isServices:!1}){return new T$({link:L$((i,o)=>Ie(this,void 0,void 0,function*(){var{headers:a}=o,s=gi(o,["headers"]);const l=yield this.authentication.getAccessToken(),d=Object.assign(Object.assign(Object.assign({},a),{"x-photon-sdk-version":xw}),t?{"x-photon-elements-version":t}:{});return l?Object.assign(Object.assign({},s),{headers:n?Object.assign(Object.assign({},d),{"x-photon-auth-token":l,"x-photon-auth-token-type":"auth0"}):Object.assign(Object.assign({},d),{authorization:l})}):Object.assign({headers:d},s)})).concat(new vv({uri:n?this.clinicalApiUri:this.uri})),defaultOptions:{query:{fetchPolicy:"cache-first",errorPolicy:"all"},mutate:{onQueryUpdated:Ew}},cache:new w$({typePolicies:{Patient:{fields:{name:{merge(i,o,{mergeObjects:a}){return a(i,o)}},address:{merge(i,o,{mergeObjects:a}){return a(i,o)}}}},User:{fields:{name:{merge(i,o,{mergeObjects:a}){return a(i,o)}},address:{merge(i,o,{mergeObjects:a}){return a(i,o)}}}}}})})}setOrganization(t){return this.organization=t,this.authentication=new Np({authentication:this.auth0Client,organization:t,audience:this.audience}),this}}const Cw=e=>new Promise(t=>setTimeout(t,e)),Ew=e=>Ie(void 0,void 0,void 0,function*(){yield Cw(1e3),e.refetch()}),Sw=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ow=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Sw]),Tw=new Set(["innerHTML","textContent","innerText","children"]),Nw=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Gp=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Pw=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Aw=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Iw={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Mw(e,t,n){let r=n.length,i=t.length,o=r,a=0,s=0,l=t[i-1].nextSibling,d=null;for(;a<i||s<o;){if(t[a]===n[s]){a++,s++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){const c=o<r?s?n[s-1].nextSibling:n[o-s]:l;for(;s<o;)e.insertBefore(n[s++],c)}else if(o===s)for(;a<i;)(!d||!d.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[s]===t[i-1]){const c=t[--i].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--o],c),t[i]=n[o]}else{if(!d){d=new Map;let u=s;for(;u<o;)d.set(n[u],u++)}const c=d.get(t[a]);if(c!=null)if(s<c&&c<o){let u=a,f=1,h;for(;++u<i&&u<o&&!((h=d.get(t[u]))==null||h!==c+f);)f++;if(f>c-s){const p=t[a];for(;s<c;)e.insertBefore(n[s++],p)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}const Qp="_$DX_DELEGATE";function b(e,t,n){const r=document.createElement("template");r.innerHTML=e;let i=r.content.firstChild;return n&&(i=i.firstChild),i}function Gr(e,t=window.document){const n=t[Qp]||(t[Qp]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,zw))}}function nt(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function Dw(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function _t(e,t){t==null?e.removeAttribute("class"):e.className=t}function Gv(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n)}function Fw(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(Kp(e,s,!1),delete n[s])}for(o=0,a=r.length;o<a;o++){const s=r[o],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(Kp(e,s,!0),n[s]=l)}return n}function or(e,t,n){if(!t)return n?nt(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function Kn(e,t={},n,r){const i={};return r||ee(()=>i.children=ea(e,t.children,i.children)),ee(()=>t.ref&&t.ref(e)),ee(()=>Rw(e,t,n,!0,i,!0)),i}function Nr(e,t,n){return se(()=>e(t,n))}function S(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return ea(e,t,r,n);ee(i=>ea(e,t(),i,n),r)}function Rw(e,t,n,r,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=Yp(e,a,null,i[a],n,o)}for(const a in t){if(a==="children"){r||ea(e,t.children);continue}const s=t[a];i[a]=Yp(e,a,s,i[a],n,o)}}function Lw(e){let t,n;return!Qe.context||!(t=Qe.registry.get(n=Vw()))?e.cloneNode(!0):(Qe.completed&&Qe.completed.add(t),Qe.registry.delete(n),t)}function jw(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Kp(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function Yp(e,t,n,r,i,o){let a,s,l;if(t==="style")return or(e,n,r);if(t==="classList")return Fw(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);r&&e.removeEventListener(d,r),n&&e.addEventListener(d,n)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);r&&e.removeEventListener(d,r,!0),n&&e.addEventListener(d,n,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),c=Pw.has(d);if(!c&&r){const u=Array.isArray(r)?r[0]:r;e.removeEventListener(d,u)}(c||n)&&(Gv(e,d,n,c),c&&Gr([d]))}else if((l=Tw.has(t))||!i&&(Gp[t]||(s=Ow.has(t)))||(a=e.nodeName.includes("-")))t==="class"||t==="className"?_t(e,n):a&&!s&&!l?e[jw(t)]=n:e[Gp[t]||t]=n;else{const d=i&&t.indexOf(":")>-1&&Iw[t.split(":")[0]];d?Dw(e,d,t,n):nt(e,Nw[t]||t,n)}return n}function zw(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),Qe.registry&&!Qe.done&&(Qe.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>{for(;r&&r.nodeType!==8&&r.nodeValue!=="pl-"+e;){let i=r.nextSibling;r.remove(),r=i}r&&r.remove()}));n;){const r=n[t];if(r&&!n.disabled){const i=n[`${t}Data`];if(i!==void 0?r.call(n,i,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function ea(e,t,n,r,i){for(Qe.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(Qe.context)return n;if(o==="number"&&(t=t.toString()),a){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=bo(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(Qe.context)return n;n=bo(e,n,r)}else{if(o==="function")return ee(()=>{let s=t();for(;typeof s=="function";)s=s();n=ea(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],l=n&&Array.isArray(n);if(O1(s,t,n,i))return ee(()=>n=ea(e,s,n,r,!0)),()=>n;if(Qe.context){if(!s.length)return n;for(let d=0;d<s.length;d++)if(s[d].parentNode)return n=s}if(s.length===0){if(n=bo(e,n,r),a)return n}else l?n.length===0?Zp(e,s,r):Mw(e,n,s):(n&&bo(e),Zp(e,s));n=s}else if(t instanceof Node){if(Qe.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=bo(e,n,r,t);bo(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function O1(e,t,n,r){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=n&&n[o];if(s instanceof Node)e.push(s);else if(!(s==null||s===!0||s===!1))if(Array.isArray(s))i=O1(e,s,l)||i;else if(typeof s=="function")if(r){for(;typeof s=="function";)s=s();i=O1(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else e.push(s),i=!0;else{const d=String(s);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return i}function Zp(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function bo(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,n):l&&s.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}function Vw(){const e=Qe.context;return`${e.id}${e.count++}`}const Uw="http://www.w3.org/2000/svg";function Bw(e,t=!1){return t?document.createElementNS(Uw,e):document.createElement(e)}function Hw(e){const[t,n]=Yo(e,["component"]),r=G(()=>t.component);return G(()=>{const i=r();switch(typeof i){case"function":return se(()=>i(n));case"string":const o=Aw.has(i),a=Qe.context?Lw():Bw(i,o);return Kn(a,n,o),a}})}function qw(e,...t){const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function jr(e){let t;return qw(e,n=>t=n)(),t}class Ww extends Error{constructor(t,n){super(t),this.name="FelteSubmitError",this.response=n}}function Gw(e,t){return Object.keys(e).some(n=>t(e[n]))}function ru(e,t){return Object.keys(e||{}).reduce((n,r)=>Object.assign(Object.assign({},n),{[r]:t(e[r])}),{})}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function En(e){return Object.keys(e||{}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:Le(e[n])?En(e[n]):Array.isArray(e[n])?[...e[n]]:e[n]}),{})}function Qw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Kw(e){return function(t){if(Le(t)){const n=Sn(t,e);return Qw(n,["key"])}return e}}function Sn(e,t){return ru(e,n=>Le(n)?Sn(n,t):Array.isArray(n)?n.map(Kw(t)):t)}function ui(...e){const t=e.pop(),n=e.shift();if(typeof n=="string")return n;const r=En(n);if(e.length===0)return r;for(const i of e){if(!i)continue;if(typeof i=="string")return i;let o=t(r,i);if(typeof o<"u")return o;const a=Array.from(new Set(Object.keys(r).concat(Object.keys(i))));for(const s of a)if(o=t(r[s],i[s]),typeof o<"u")r[s]=o;else if(Le(i[s])&&Le(r[s]))r[s]=ui(r[s],i[s],t);else if(Array.isArray(i[s]))r[s]=i[s].map((l,d)=>{if(!Le(l))return l;const c=Array.isArray(r[s])?r[s][d]:r[s];return ui(c,l,t)});else if(Le(i[s])){const l=Sn(En(i[s]),void 0);r[s]=ui(l,i[s],t)}else typeof i[s]<"u"&&(r[s]=i[s])}return r}function Yw(e,t){if(!(Le(e)&&Le(t))){if(Array.isArray(t)){if(t.some(Le))return;const n=Array.isArray(e)?e:[];return t.map((r,i)=>{var o;return(o=n[i])!==null&&o!==void 0?o:r})}if(typeof e<"u")return e}}function Xp(...e){return ui(...e,Yw)}function Qv(...e){return ui(...e,()=>{})}function Er(e,t,n){const r=o=>String.prototype.split.call(t,o).filter(Boolean).reduce((a,s)=>a!=null?a[s]:a,e),i=r(/[,[\]]+?/)||r(/[,[\].]+?/);return i===void 0||i===e?n:i}function pa(e,t,n){e&&(e=En(e)),Le(e)||(e={});const r=Array.isArray(t)?t:t.match(/[^.[\]]+/g)||[],i=r[r.length-1];if(!i)return e;let o=e;for(let a=0;a<r.length-1;a++){const s=r[a];if(!o[s]||!Le(o[s])&&!Array.isArray(o[s])){const l=r[a+1];isNaN(Number(l))?o[s]={}:o[s]=[]}o=o[s]}return o[i]=n(o[i]),e}function ct(e,t,n){return pa(e,t,()=>n)}function Ya(e,t){if(!e||Object(e)!==e)return;typeof e<"u"&&(e=En(e));const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g)||[],r=n.length===1?e:Er(e,n.slice(0,-1).join("."));return Array.isArray(r)?r.splice(Number(n[n.length-1]),1):r==null||delete r[n[n.length-1]],e}function ps(e,t){return Gw(e,n=>Le(n)?ps(n,t):Array.isArray(n)?n.length===0||n.every(r=>typeof r=="string")?t(n):n.some(r=>Le(r)?ps(r,t):t(r)):t(n))}function Bo(e){return e?.nodeName==="INPUT"}function Zw(e){return e?.nodeName==="TEXTAREA"}function Ho(e){return e?.nodeName==="SELECT"}function iu(e){return e?.nodeName==="FIELDSET"}function Ht(e){return Bo(e)||Zw(e)||Ho(e)}function T1(e){return e.nodeType===Node.ELEMENT_NODE}function tn(e,t){return t??(Ht(e)?e.name:"")}function i0(e){let t=e;for(;t&&t.nodeName!=="FORM";){if(t.hasAttribute("data-felte-ignore"))return!0;t=t.parentElement}return!1}function Jp(e,t){return!Le(e)||!t?e:typeof t=="string"?Er(e,t):t(e)}function Xw(e,t){if(!(Le(e)||Le(t))){if(e===null||e==="")return t;if(t===null||t===""||!t)return e;if(!(!e||!t)){if(Array.isArray(e)){if(!Array.isArray(t))return[...e,t];const n=[],r=Math.max(t.length,e.length);for(let i=0;i<r;i++){let o=e[i],a=t[i];!Le(o)&&!Le(a)?(Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]),n.push(...o,...a)):n.push(So([o??{},a??{}]))}return n.filter(Boolean)}return Array.isArray(t)||(t=[t]),[e,...t].reduce((n,r)=>n.concat(r),[]).filter(Boolean)}}}function So(e){return ui(...e,Xw)}function Jw(e,t){return t?(Array.isArray(t)?t:[t]).map(n=>n(e)):[]}function N1(e,t){return t?Array.isArray(t)?t.reduce((n,r)=>r(n),e):t(e):e}function Kv(e=8){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function P1(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>P1(n,t[r]));if(Le(e)&&Le(t)){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>P1(e[i],t[i]))}return!1}function Dd(e,t,{onInit:n,onEnd:r}={}){let i;return(...o)=>{i||n?.(),i&&clearTimeout(i),i=setTimeout(()=>{e.apply(this,o),i=void 0,r?.()},t)}}function A1(e){if(Ht(e))return[e];if(e.childElementCount===0)return[];const t=new Set;for(const n of e.children){if(Ht(n)&&t.add(n),iu(n))for(const r of n.elements)Ht(r)&&t.add(r);n.childElementCount>0&&A1(n).forEach(r=>t.add(r))}return Array.from(t)}function Yv(e){for(const t of e.elements)!Ht(t)&&!iu(t)||e.hasAttribute("data-felte-keep-on-remove")&&!t.hasAttribute("data-felte-keep-on-remove")&&(t.dataset.felteKeepOnRemove=e.dataset.felteKeepOnRemove)}function Zv(e){return e.type.match(/^(number|range)$/)?e.value?+e.value:null:e.value}function e3(e){var t;let n={},r={};for(const i of e.elements){if(iu(i)&&Yv(i),!Ht(i)||!i.name)continue;const o=tn(i);if(Bo(i)){if(i.type==="checkbox"){if(typeof Er(n,o)>"u"){if(Array.from(e.querySelectorAll(`[name="${i.name}"]`)).filter(s=>Ht(s)?o===tn(s):!1).length===1){n=ct(n,o,i.checked),r=ct(r,o,!1);continue}n=ct(n,o,i.checked?[i.value]:[]),r=ct(r,o,!1);continue}Array.isArray(Er(n,o))&&i.checked&&(n=pa(n,o,s=>[...s,i.value]));continue}if(i.type==="radio"){if(Er(n,o))continue;n=ct(n,o,i.checked?i.value:void 0),r=ct(r,o,!1);continue}if(i.type==="file"){n=ct(n,o,i.multiple?Array.from(i.files||[]):(t=i.files)===null||t===void 0?void 0:t[0]),r=ct(r,o,!1);continue}}else if(Ho(i)){if(!i.multiple)n=ct(n,o,i.value);else{const s=Array.from(i.selectedOptions).map(l=>l.value);n=ct(n,o,s)}r=ct(r,o,!1);continue}const a=Zv(i);n=ct(n,o,a),r=ct(r,o,!1)}return{defaultData:n,defaultTouched:r}}function Tl(e,t){var n;if(!Ht(e))return;const r=t;if(Bo(e)){if(e.type==="checkbox"){const i=r;if(typeof i>"u"||typeof i=="boolean"){e.checked=!!i;return}Array.isArray(i)&&(i.includes(e.value)?e.checked=!0:e.checked=!1);return}if(e.type==="radio"){const i=r;e.value===i?e.checked=!0:e.checked=!1;return}if(e.type==="file"){if(t instanceof FileList)e.files=t;else if(t instanceof File&&typeof DataTransfer<"u"){const i=new DataTransfer;i.items.add(t),e.files=i.files}else if(typeof DataTransfer<"u"&&Array.isArray(t)&&t.some(i=>i instanceof File)){const i=new DataTransfer;for(const o of t)o instanceof File&&i.items.add(o);e.files=i.files}else(!t||Array.isArray(t)&&!t.length)&&(e.files=null,e.value="");return}}else if(Ho(e)){if(e.multiple){if(Array.isArray(r)){e.value=String((n=r[0])!==null&&n!==void 0?n:"");const i=r.map(o=>String(o));for(const o of e.options)i.includes(o.value)?o.selected=!0:o.selected=!1}}else{e.value=String(r??"");for(const i of e.options)i.value===String(r)?i.selected=!0:i.selected=!1}return}e.value=String(r??"")}function el(e,t){for(const n of e.elements){if(iu(n)&&Yv(n),!Ht(n)||!n.name)continue;const r=tn(n);Tl(n,Er(t,r))}}const e_={attributes:!0,attributeFilter:["data-felte-validation-message","aria-invalid"]};function t_(e,t){var n,r;let i,o,a,s,l,d;typeof e=="string"?(i=e,o=t?.defaultValue,a=(n=t?.touchOnChange)!==null&&n!==void 0?n:!1,d=t?.onFormReset):(i=e.name,o=e.defaultValue,a=(r=e.touchOnChange)!==null&&r!==void 0?r:!1,d=e?.onFormReset);function c($,k){if(!l)return;Tl(l,k);const _=new Event($,{bubbles:!0,composed:!0});l.dispatchEvent(_)}function u($){$.forEach(()=>{const k=l.getAttribute("aria-invalid");k?s.setAttribute("aria-invalid",k):s.removeAttribute("aria-invalid");const _=l.getAttribute("data-felte-validation-message");_?s.setAttribute("data-felte-validation-message",_):s.removeAttribute("data-felte-validation-message")})}function f($){!d||(Tl(l,o),d($))}function h($){s=$;let k,_;if(Ht($))return l=$,l.name=i,{};{let y=!1,x=!1;return setTimeout(()=>{if(x)return;const O=s.parentNode;if(!O||!T1(O))return;const N=O.querySelector(`[name="${i}"]`);if(!N||!Ht(N)){const P=document.createElement("input");P.type="hidden",P.name=i,O.insertBefore(P,$.nextSibling),l=P,y=!0}else l=N;Tl(l,o),k=new MutationObserver(u),k.observe(l,e_),_=l.closest("form"),_?.addEventListener("reset",f)}),{destroy(){var O;y&&((O=l.parentNode)===null||O===void 0||O.removeChild(l)),x=!0,k?.disconnect(),_?.removeEventListener("reset",f)}}}}function p($){c(a?"change":"input",$)}function v(){c("focusout")}return{field:h,onInput:p,onChange:p,onBlur:v}}function Xv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zr(e,t){return ru(e,n=>Le(n)?zr(n,t):Array.isArray(n)?n.length===0||n.every(r=>typeof r=="string")?t:n.map(r=>{const i=zr(r,t);return Xv(i,["key"])}):t)}function no(e){return e?ru(e,t=>Le(t)?no(t):Array.isArray(t)?t.length===0||t.every(n=>typeof n=="string")?t:t.map(n=>{if(!Le(n))return n;const r=no(n);return r.key||(r.key=Kv()),r}):t):{}}function Gi(e){return e?ru(e,t=>Le(t)?Gi(t):Array.isArray(t)?t.length===0||t.every(n=>typeof n=="string")?t:t.map(n=>{if(!Le(n))return n;const r=Gi(n);return Xv(r,["key"])}):t):{}}function n_(){class e extends CustomEvent{constructor(i){super("feltesuccess",{detail:i})}}class t extends CustomEvent{constructor(i){super("felteerror",{detail:i,cancelable:!0})}setErrors(i){this.preventDefault(),this.errors=i}}class n extends Event{constructor(){super("feltesubmit",{cancelable:!0})}handleSubmit(i){this.onSubmit=i}handleError(i){this.onError=i}handleSuccess(i){this.onSuccess=i}}return{createErrorEvent:r=>new t(r),createSubmitEvent:()=>new n,createSuccessEvent:r=>new e(r)}}function r_(e){if(e)return async function(){let t=new FormData(e);const n=new URL(e.action),r=e.method.toLowerCase()==="get"?"get":n.searchParams.get("_method")||e.method;let i=e.enctype;e.querySelector('input[type="file"]')&&(i="multipart/form-data"),(r==="get"||i==="application/x-www-form-urlencoded")&&(t=new URLSearchParams(t));let o;r==="get"?(t.forEach((s,l)=>{n.searchParams.append(l,s)}),o={method:r,headers:{Accept:"application/json"}}):o={method:r,body:t,headers:Object.assign(Object.assign({},i!=="multipart/form-data"&&{"Content-Type":i}),{Accept:"application/json"})};const a=await window.fetch(n.toString(),o);if(a.ok)return a;throw new Ww("An error occurred while submitting the form",a)}}function tl(e,t,n,r){return pa(e,t,i=>(typeof i<"u"&&!Array.isArray(i)||(i||(i=[]),typeof r>"u"?i.push(n):i.splice(r,0,n)),i))}function i_(e,t,n,r){return pa(e,t,i=>(!i||!Array.isArray(i)||([i[n],i[r]]=[i[r],i[n]]),i))}function o_(e,t,n,r){return pa(e,t,i=>(!i||!Array.isArray(i)||i.splice(r,0,i.splice(n,1)[0]),i))}function t3(e){return typeof e=="function"}function Xr(e){return(t,n)=>{if(typeof t=="string"){const r=t;e(i=>{const o=t3(n)?n(Er(i,r)):n;return ct(i,r,o)})}else e(r=>t3(t)?t(r):t)}}function a_({stores:e,config:t,validateErrors:n,validateWarnings:r,_getCurrentExtenders:i}){var o;let a,s=no((o=t.initialValues)!==null&&o!==void 0?o:{});const{data:l,touched:d,errors:c,warnings:u,isDirty:f,isSubmitting:h,interacted:p}=e,v=Xr(l.update),$=Xr(d.update),k=Xr(c.update),_=Xr(u.update);function y(z){v(re=>{const Z=z(re);return a&&el(a,Z),Z})}const x=(z,re,Z)=>{Xr(y)(z,re),typeof z=="string"&&Z&&$(z,!0)};function O(z,re,Z){const te=Le(re)?zr(re,!1):!1,V=Le(te)?Sn(te,[]):[];re=Le(re)?Object.assign(Object.assign({},re),{key:Kv()}):re,c.update(_e=>tl(_e,z,V,Z)),u.update(_e=>tl(_e,z,V,Z)),d.update(_e=>tl(_e,z,te,Z)),l.update(_e=>{const Te=tl(_e,z,re,Z);return setTimeout(()=>a&&el(a,Te)),Te})}function N(z){c.update(z),u.update(z),d.update(z),l.update(re=>{const Z=z(re);return setTimeout(()=>a&&el(a,Z)),Z})}function P(z){N(re=>Ya(re,z))}function A(z,re,Z){N(te=>i_(te,z,re,Z))}function j(z,re,Z){N(te=>o_(te,z,re,Z))}function U(z){const re=Er(s,z),Z=Le(re)?zr(re,!1):!1,te=Le(Z)?Sn(Z,[]):[];l.update(V=>{const _e=ct(V,z,re);return a&&el(a,_e),_e}),d.update(V=>ct(V,z,Z)),c.update(V=>ct(V,z,te)),u.update(V=>ct(V,z,te))}const W=Xr(h.update),R=Xr(f.update),L=Xr(p.update);async function q(){const z=jr(l);d.set(zr(z,!0)),p.set(null);const re=await n(z);return await r(z),re}function I(){x(En(s)),$(z=>Sn(z,!1)),p.set(null),f.set(!1)}function ne(z){return async function(re){var Z,te,V,_e,Te,ze,ae;const{createErrorEvent:Ee,createSubmitEvent:Ce,createSuccessEvent:me}=n_(),xe=Ce();a?.dispatchEvent(xe);const ke=(te=(Z=xe.onError)!==null&&Z!==void 0?Z:z?.onError)!==null&&te!==void 0?te:t.onError,De=(_e=(V=xe.onSuccess)!==null&&V!==void 0?V:z?.onSuccess)!==null&&_e!==void 0?_e:t.onSuccess,ue=(ae=(ze=(Te=xe.onSubmit)!==null&&Te!==void 0?Te:z?.onSubmit)!==null&&ze!==void 0?ze:t.onSubmit)!==null&&ae!==void 0?ae:r_(a);if(!ue||(re?.preventDefault(),xe.defaultPrevented))return;h.set(!0),p.set(null);const K=Gi(jr(l)),ye=await n(K,z?.validate),Ne=await r(K,z?.warn);if(Ne&&u.set(Qv(Sn(K,[]),Ne)),d.set(zr(K,!0)),ye&&(d.set(zr(ye,!0)),ps(ye,Xe=>Array.isArray(Xe)?Xe.length>=1:!!Xe))){await new Promise(Xe=>setTimeout(Xe)),i().forEach(Xe=>{var Pt;return(Pt=Xe.onSubmitError)===null||Pt===void 0?void 0:Pt.call(Xe,{data:K,errors:ye})}),h.set(!1);return}const $t={event:re,setFields:x,setData:v,setTouched:$,setErrors:k,setWarnings:_,unsetField:P,addField:O,resetField:U,reset:I,setInitialValues:ie.setInitialValues,moveField:j,swapFields:A,form:a,controls:a&&Array.from(a.elements).filter(Ht),config:Object.assign(Object.assign({},t),z)};try{const Xe=await ue(K,$t);a?.dispatchEvent(me(Object.assign({response:Xe},$t))),await De?.(Xe,$t)}catch(Xe){const Pt=Ee(Object.assign({error:Xe},$t));if(a?.dispatchEvent(Pt),!ke&&!Pt.defaultPrevented)throw Xe;if(!ke&&!Pt.errors)return;const vt=Pt.errors||await ke?.(Xe,$t);vt&&(d.set(zr(vt,!0)),c.set(vt),await new Promise(zn=>setTimeout(zn)),i().forEach(zn=>{var Vn;return(Vn=zn.onSubmitError)===null||Vn===void 0?void 0:Vn.call(zn,{data:K,errors:jr(c)})}))}finally{h.set(!1)}}}const ie={setData:v,setFields:x,setTouched:$,setErrors:k,setWarnings:_,setIsSubmitting:W,setIsDirty:R,setInteracted:L,validate:q,reset:I,unsetField:P,resetField:U,addField:O,swapFields:A,moveField:j,createSubmitHandler:ne,handleSubmit:ne(),setInitialValues:z=>{s=no(z)}};return{public:ie,private:{_setFormNode(z){a=z},_getInitialValues:()=>s}}}function s_({helpers:e,stores:t,config:n,extender:r,createSubmitHandler:i,handleSubmit:o,_setFormNode:a,_getInitialValues:s,_setCurrentExtenders:l,_getCurrentExtenders:d}){const{setFields:c,setTouched:u,reset:f,setInitialValues:h}=e,{addValidator:p,addTransformer:v,validate:$}=e,{data:k,errors:_,warnings:y,touched:x,isSubmitting:O,isDirty:N,interacted:P,isValid:A,isValidating:j}=t;function U(W){W.requestSubmit||(W.requestSubmit=o);function R(ue){return function(K){return K({form:W,stage:ue,controls:Array.from(W.elements).filter(Ht),data:k,errors:_,warnings:y,touched:x,isValid:A,isValidating:j,isSubmitting:O,isDirty:N,interacted:P,config:n,addValidator:p,addTransformer:v,setFields:c,validate:$,reset:f,createSubmitHandler:i,handleSubmit:o})}}l(r.map(R("MOUNT"))),W.noValidate=!!n.validate;const{defaultData:L,defaultTouched:q}=e3(W);a(W),h(Qv(En(L),s())),c(s()),x.set(q);function I(ue){const K=tn(ue),ye=Array.from(W.querySelectorAll(`[name="${ue.name}"]`)).filter(Ne=>Ht(Ne)?K===tn(Ne):!1);if(ye.length!==0)return ye.length===1?k.update(Ne=>ct(Ne,tn(ue),ue.checked)):k.update(Ne=>ct(Ne,tn(ue),ye.filter(Bo).filter($t=>$t.checked).map($t=>$t.value)))}function ne(ue){const K=W.querySelectorAll(`[name="${ue.name}"]`),ye=Array.from(K).find(Ne=>Bo(Ne)&&Ne.checked);k.update(Ne=>ct(Ne,tn(ue),ye?.value))}function ie(ue){var K;const ye=Array.from((K=ue.files)!==null&&K!==void 0?K:[]);k.update(Ne=>ct(Ne,tn(ue),ue.multiple?ye:ye[0]))}function z(ue){if(!ue.multiple)k.update(K=>ct(K,tn(ue),ue.value));else{const K=Array.from(ue.selectedOptions).map(ye=>ye.value);k.update(ye=>ct(ye,tn(ue),K))}}function re(ue){const K=ue.target;if(!K||!Ht(K)||Ho(K)||i0(K)||["checkbox","radio","file"].includes(K.type)||!K.name)return;N.set(!0);const ye=Zv(K);P.set(K.name),k.update(Ne=>ct(Ne,tn(K),ye))}function Z(ue){const K=ue.target;if(!(!K||!Ht(K)||i0(K))&&!!K.name)if(u(tn(K),!0),P.set(K.name),(Ho(K)||["checkbox","radio","file","hidden"].includes(K.type))&&N.set(!0),K.type==="hidden"&&k.update(ye=>ct(ye,tn(K),K.value)),Ho(K))z(K);else if(Bo(K))K.type==="checkbox"?I(K):K.type==="radio"?ne(K):K.type==="file"&&ie(K);else return}function te(ue){const K=ue.target;!K||!Ht(K)||i0(K)||!K.name||(u(tn(K),!0),P.set(K.name))}function V(ue){ue.preventDefault(),f()}const _e={childList:!0,subtree:!0};function Te(ue){let K=jr(k),ye=jr(x),Ne=jr(_),$t=jr(y);for(const Xe of ue.reverse()){if(Xe.hasAttribute("data-felte-keep-on-remove")&&Xe.dataset.felteKeepOnRemove!=="false")continue;const Pt=/.*(\[[0-9]+\]|\.[0-9]+)\.[^.]+$/;let vt=tn(Xe);const zn=jr(x);if(Pt.test(vt)){const Vn=vt.split(".").slice(0,-1).join("."),Oi=Er(zn,Vn);Le(Oi)&&Object.keys(Oi).length<=1&&(vt=Vn)}K=Ya(K,vt),ye=Ya(ye,vt),Ne=Ya(Ne,vt),$t=Ya($t,vt)}k.set(K),x.set(ye),_.set(Ne),y.set($t)}const ze=Dd(()=>{d().forEach(ye=>{var Ne;return(Ne=ye.destroy)===null||Ne===void 0?void 0:Ne.call(ye)}),l(r.map(R("UPDATE")));const{defaultData:ue,defaultTouched:K}=e3(W);k.update(ye=>Xp(ye,ue)),x.update(ye=>Xp(ye,K)),e.setFields(jr(k))},0);let ae=[];const Ee=Dd(()=>{d().forEach(ue=>{var K;return(K=ue.destroy)===null||K===void 0?void 0:K.call(ue)}),l(r.map(R("UPDATE"))),Te(ae),ae=[]},0);function Ce(ue){!Array.from(ue.addedNodes).some(K=>T1(K)?Ht(K)?!0:A1(K).length>0:!1)||ze()}function me(ue){for(const K of ue.removedNodes){if(!T1(K))continue;const ye=A1(K);ye.length!==0&&(ae.push(...ye),Ee())}}function xe(ue){for(const K of ue)K.type==="childList"&&(K.addedNodes.length>0&&Ce(K),K.removedNodes.length>0&&me(K))}const ke=new MutationObserver(xe);ke.observe(W,_e),W.addEventListener("input",re),W.addEventListener("change",Z),W.addEventListener("focusout",te),W.addEventListener("submit",o),W.addEventListener("reset",V);const De=_.subscribe(ue=>{for(const K of W.elements){if(!Ht(K)||!K.name)continue;const ye=Er(ue,tn(K)),Ne=Array.isArray(ye)?ye.join(`
|
|
763
763
|
`):typeof ye=="string"?ye:void 0;Ne!==K.dataset.felteValidationMessage&&(Ne?(K.dataset.felteValidationMessage=Ne,K.setAttribute("aria-invalid","true")):(delete K.dataset.felteValidationMessage,K.removeAttribute("aria-invalid")))}});return{destroy(){ke.disconnect(),W.removeEventListener("input",re),W.removeEventListener("change",Z),W.removeEventListener("focusout",te),W.removeEventListener("submit",o),W.removeEventListener("reset",V),De(),d().forEach(ue=>{var K;return(K=ue.destroy)===null||K===void 0?void 0:K.call(ue)})}}}return{form:U}}function l_(e){const t={aborted:!1,priority:e};return{signal:t,abort(){t.aborted=!0}}}function d_(e,t){if(Le(e))return!t||Le(t)&&Object.keys(t).length===0?Sn(e,null):void 0;if(Array.isArray(e)){if(e.some(Le))return;const n=Array.isArray(t)?t:[];return e.map((r,i)=>{const o=n[i];return Array.isArray(o)&&o.length===0?null:r&&o||null})}return Array.isArray(t)&&t.length===0?null:Array.isArray(t)?e?t:null:e&&t?[t]:null}function c_(e,t){if(Le(e))return!t||Le(t)&&Object.keys(t).length===0?Sn(e,null):void 0;if(Array.isArray(e)){if(e.some(Le))return;const n=Array.isArray(t)?t:[];return e.map((r,i)=>{const o=n[i];return Array.isArray(o)&&o.length===0?null:o||null})}return Array.isArray(t)&&t.length===0?null:Array.isArray(t)?t:t?[t]:null}function u_([e,t]){return ui(t,e,d_)}function f_([e,t]){return ui(t,e,c_)}function h_(e){return function(t,n,r){const i=Array.isArray(t)?t:[t],o=new Array(i.length),a=e(r),s=a.set,l=a.subscribe;let d;function c(){d=i.map((f,h)=>f.subscribe(p=>{o[h]=p,s(n(o))}))}function u(){d?.forEach(f=>f())}return a.subscribe=function(f){const h=l(f);return()=>{h()}},[a,c,u]}}function p_(e,t){var n,r,i,o,a,s,l,d,c;const u=h_(e),f=t.initialValues=t.initialValues?no(N1(En(t.initialValues),t.transform)):{},h=zr(Gi(f),!1),p=e(h),v=e(0),[$,k,_]=u([p,v],([dt,xt])=>ps(dt,kt=>!!kt)&&xt>=1,!1);delete $.set,delete $.update;function y(dt){let xt;return async function(kt,Pn,Un,Jt=!1){if(!Un||!kt)return;let tr=Pn&&Object.keys(Pn).length>0?Pn:Sn(kt,[]);const nr=l_(Jt);if((!xt?.signal.priority||Jt)&&(xt?.abort(),xt=nr),xt.signal.priority&&!Jt)return;v.update(Bn=>Bn+1);const gr=Jw(kt,Un);return gr.forEach(async Bn=>{const Rr=await Bn;nr.signal.aborted||(tr=So([tr,Rr]),dt.set(tr))}),await Promise.all(gr),xt=void 0,v.update(Bn=>Bn-1),tr}}let x=Sn(h,[]);const O=e(f),N=Sn(h,[]),P=e(N),A=e(En(N)),[j,U,W]=u([P,A],So,En(N)),R=Sn(h,[]),L=e(R),q=e(En(R)),[I,ne,ie]=u([L,q],So,En(R)),[z,re,Z]=u([j,p],u_,En(N)),[te,V,_e]=u([I,p],f_,En(R));let Te=!1;const[ze,ae,Ee]=u(j,([dt])=>{var xt;return Te?!ps(dt,kt=>Array.isArray(kt)?kt.length>=1:!!kt):(Te=!0,!t.validate&&!(!((xt=t.debounced)===null||xt===void 0)&&xt.validate))},!t.validate&&!(!((n=t.debounced)===null||n===void 0)&&n.validate));delete ze.set,delete ze.update;const Ce=e(!1),me=e(!1),xe=e(null),ke=y(P),De=y(L),ue=y(A),K=y(q),ye=Dd(ue,(a=(i=(r=t.debounced)===null||r===void 0?void 0:r.validateTimeout)!==null&&i!==void 0?i:(o=t.debounced)===null||o===void 0?void 0:o.timeout)!==null&&a!==void 0?a:300,{onInit:()=>{v.update(dt=>dt+1)},onEnd:()=>{v.update(dt=>dt-1)}}),Ne=Dd(K,(c=(l=(s=t.debounced)===null||s===void 0?void 0:s.warnTimeout)!==null&&l!==void 0?l:(d=t.debounced)===null||d===void 0?void 0:d.timeout)!==null&&c!==void 0?c:300);async function $t(dt,xt){var kt;const Pn=Gi(dt),Un=ke(Pn,x,xt??t.validate,!0);if(xt)return Un;const Jt=ue(Pn,x,(kt=t.debounced)===null||kt===void 0?void 0:kt.validate,!0);return So(await Promise.all([Un,Jt]))}async function Xe(dt,xt){var kt;const Pn=Gi(dt),Un=De(Pn,x,xt??t.warn,!0);if(xt)return Un;const Jt=K(Pn,x,(kt=t.debounced)===null||kt===void 0?void 0:kt.warn,!0);return So(await Promise.all([Un,Jt]))}let Pt=N,vt=R;function zn(){const dt=O.subscribe(Jt=>{var tr,nr;const gr=Gi(Jt);ke(gr,x,t.validate),De(gr,x,t.warn),ye(gr,x,(tr=t.debounced)===null||tr===void 0?void 0:tr.validate),Ne(gr,x,(nr=t.debounced)===null||nr===void 0?void 0:nr.warn)}),xt=p.subscribe(Jt=>{x=Sn(Jt,[])}),kt=j.subscribe(Jt=>{Pt=Jt}),Pn=I.subscribe(Jt=>{vt=Jt});U(),ae(),ne(),re(),V(),k();function Un(){dt(),Z(),W(),ie(),_e(),Ee(),_(),xt(),kt(),Pn()}return Un}function Vn(dt){P.set(dt(Pt)),A.set({})}function Oi(dt){L.set(dt(vt)),q.set({})}function xu(dt){Vn(()=>dt)}function ku(dt){Oi(()=>dt)}return z.set=xu,z.update=Vn,te.set=ku,te.update=Oi,{data:O,errors:z,warnings:te,touched:p,isValid:ze,isSubmitting:Ce,isDirty:me,isValidating:$,interacted:xe,validateErrors:$t,validateWarnings:Xe,cleanup:t.preventStoreStart?()=>{}:zn(),start:zn}}function m_(e,t){var n,r;(n=e.extend)!==null&&n!==void 0||(e.extend=[]),(r=e.debounced)!==null&&r!==void 0||(e.debounced={}),e.validate&&!Array.isArray(e.validate)&&(e.validate=[e.validate]),e.debounced.validate&&!Array.isArray(e.debounced.validate)&&(e.debounced.validate=[e.debounced.validate]),e.transform&&!Array.isArray(e.transform)&&(e.transform=[e.transform]),e.warn&&!Array.isArray(e.warn)&&(e.warn=[e.warn]),e.debounced.warn&&!Array.isArray(e.debounced.warn)&&(e.debounced.warn=[e.debounced.warn]);function i(ne,{debounced:ie,level:z}={debounced:!1,level:"error"}){var re;const Z=z==="error"?"validate":"warn";(re=e.debounced)!==null&&re!==void 0||(e.debounced={});const te=ie?e.debounced:e;te[Z]?te[Z]=[...te[Z],ne]:te[Z]=[ne]}function o(ne){e.transform?e.transform=[...e.transform,ne]:e.transform=[ne]}const a=Array.isArray(e.extend)?e.extend:[e.extend];let s=[];const l=()=>s,d=ne=>{s=ne},{isSubmitting:c,isValidating:u,data:f,errors:h,warnings:p,touched:v,isValid:$,isDirty:k,cleanup:_,start:y,validateErrors:x,validateWarnings:O,interacted:N}=p_(t.storeFactory,e),P=f.update,A=f.set,j=ne=>P(ie=>no(N1(ne(ie),e.transform))),U=ne=>A(no(N1(ne,e.transform)));f.update=j,f.set=U;const W=a_({extender:a,config:e,addValidator:i,addTransformer:o,validateErrors:x,validateWarnings:O,_getCurrentExtenders:l,stores:{data:f,errors:h,warnings:p,touched:v,isValid:$,isValidating:u,isSubmitting:c,isDirty:k,interacted:N}}),{createSubmitHandler:R,handleSubmit:L}=W.public;s=a.map(ne=>ne({stage:"SETUP",errors:h,warnings:p,touched:v,data:f,isDirty:k,isValid:$,isValidating:u,isSubmitting:c,interacted:N,config:e,addValidator:i,addTransformer:o,setFields:W.public.setFields,reset:W.public.reset,validate:W.public.validate,handleSubmit:L,createSubmitHandler:R}));const q=Object.assign({config:e,stores:{data:f,touched:v,errors:h,warnings:p,isSubmitting:c,isValidating:u,isValid:$,isDirty:k,interacted:N},createSubmitHandler:R,handleSubmit:L,helpers:Object.assign(Object.assign({},W.public),{addTransformer:o,addValidator:i}),extender:a,_getCurrentExtenders:l,_setCurrentExtenders:d},W.private),{form:I}=s_(q);return Object.assign({data:f,errors:h,warnings:p,touched:v,isValid:$,isSubmitting:c,isValidating:u,isDirty:k,interacted:N,form:I,cleanup:_,startStores:y},W.public)}function g_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function v_(e){const t={},n={};function r(i){if(!i)return e();if(!t[i.toString()]){const a=H(Jp(se(e),i));n[i.toString()]=a,t[i.toString()]=i}const[o]=n[i.toString()];return o()}return pe(()=>{const i=e(),o=Object.keys(t);for(const a of o){const s=t[a],l=Jp(i,s),[d,c]=n[s.toString()];P1(l,se(d))||c(l)}}),r}function y_(e){return function(t){return jo(n=>(pe(()=>t(e())),n))}}const b_=e=>{const[t,n]=H(e);function r(s){n(()=>s)}function i(s){n(s)}const o=v_(t),a=y_(t);return o.subscribe=a,o.set=r,o.update=i,o};function Jv(e){const t=m_(e??{},{storeFactory:b_}),{form:n,cleanup:r,startStores:i,data:o,errors:a,warnings:s,touched:l}=t,d=g_(t,["form","cleanup","startStores","data","errors","warnings","touched"]);function c(u){const{destroy:f}=n(u);return bn(f),{destroy:f}}return bn(r),Object.assign(Object.assign({},d),{data:o,errors:a,warnings:s,touched:l,form:c})}function $_(e,t){const{field:n,onChange:r,onInput:i,onBlur:o}=t_(e,t);function a(s){const{destroy:l}=n(s);return bn(()=>l?.()),{destroy:l}}return{field:a,onChange:r,onInput:i,onBlur:o}}function w_(e){function t(n){return n.issues.reduce((r,i)=>i.path?pa(r,i.path.join("."),o=>!o||!Array.isArray(o)?[i.message]:[...o,i.message]):r,{})}return async function(n){try{await e.parseAsync(n)}catch(r){return t(r)}}}function e6({schema:e,level:t="error"}){return function(n){if(n.stage!=="SETUP")return{};const r=w_(e);return n.addValidator(r,{level:t}),{}}}var Ge;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(Ge||(Ge={}));var n3;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(n3||(n3={}));const $e=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ui=e=>{switch(typeof e){case"undefined":return $e.undefined;case"string":return $e.string;case"number":return isNaN(e)?$e.nan:$e.number;case"boolean":return $e.boolean;case"function":return $e.function;case"bigint":return $e.bigint;case"symbol":return $e.symbol;case"object":return Array.isArray(e)?$e.array:e===null?$e.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?$e.promise:typeof Map<"u"&&e instanceof Map?$e.map:typeof Set<"u"&&e instanceof Set?$e.set:typeof Date<"u"&&e instanceof Date?$e.date:$e.object;default:return $e.unknown}},de=Ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ro extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const d=a.path[l];l===a.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(n(a))):s[d]=s[d]||{_errors:[]},s=s[d],l++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ge.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ro.create=e=>new ro(e);const t6=(e,t)=>{let n;switch(e.code){case de.invalid_type:e.received===$e.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case de.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ge.jsonStringifyReplacer)}`;break;case de.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ge.joinValues(e.keys,", ")}`;break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ge.joinValues(e.options)}`;break;case de.invalid_enum_value:n=`Invalid enum value. Expected ${Ge.joinValues(e.options)}, received '${e.received}'`;break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case de.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case de.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ge.assertNever(e)}return{message:n}};let __=t6;function x_(){return __}const k_=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};let s="";const l=r.filter(d=>!!d).slice().reverse();for(const d of l)s=d(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function be(e,t){const n=k_({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,x_(),t6].filter(r=>!!r)});e.common.issues.push(n)}class Dn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ve;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Dn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return Ve;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const Ve=Object.freeze({status:"aborted"}),C_=e=>({status:"dirty",value:e}),Xn=e=>({status:"valid",value:e}),r3=e=>e.status==="aborted",i3=e=>e.status==="dirty",Fd=e=>e.status==="valid",I1=e=>typeof Promise<"u"&&e instanceof Promise;var Se;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Se||(Se={}));class $i{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const o3=(e,t)=>{if(Fd(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ro(e.common.issues);return this._error=n,this._error}}};function je(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:i}}class qe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Ui(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ui(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Dn,ctx:{common:t.parent.common,data:t.data,parsedType:Ui(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(I1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n?.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ui(t)},o=this._parseSync({data:t,path:i.path,parent:i});return o3(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ui(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(I1(i)?i:Promise.resolve(i));return o3(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:de.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new na({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return fi.create(this,this._def)}nullable(){return ra.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sr.create(this,this._def)}promise(){return zd.create(this,this._def)}or(t){return Ld.create([this,t],this._def)}and(t){return jd.create(this,t,this._def)}transform(t){return new na({...je(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new D1({...je(this._def),innerType:this,defaultValue:n,typeName:Me.ZodDefault})}brand(){return new R_({typeName:Me.ZodBranded,type:this,...je(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new F1({...je(this._def),innerType:this,catchValue:n,typeName:Me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return vh.create(this,t)}readonly(){return R1.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const E_=/^c[^\s-]{8,}$/i,S_=/^[a-z][a-z0-9]*$/,O_=/^[0-9A-HJKMNP-TV-Z]{26}$/,T_=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,N_=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,P_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let o0;const A_=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,I_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,M_=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function D_(e,t){return!!((t==="v4"||!t)&&A_.test(e)||(t==="v6"||!t)&&I_.test(e))}class di extends qe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$e.string){const i=this._getOrReturnCtx(t);return be(i,{code:de.invalid_type,expected:$e.string,received:i.parsedType}),Ve}const n=new Dn;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),be(r,{code:de.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),be(r,{code:de.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?be(r,{code:de.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&be(r,{code:de.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")N_.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"email",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")o0||(o0=new RegExp(P_,"u")),o0.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"emoji",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")T_.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"uuid",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")E_.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"cuid",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")S_.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"cuid2",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")O_.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"ulid",code:de.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),be(r,{validation:"url",code:de.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"regex",code:de.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),be(r,{code:de.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),be(r,{code:de.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),be(r,{code:de.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?M_(i).test(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:de.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="ip"?D_(t.data,i.version)||(r=this._getOrReturnCtx(t,r),be(r,{validation:"ip",code:de.invalid_string,message:i.message}),n.dirty()):Ge.assertNever(i);return{status:n.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:de.invalid_string,...Se.errToObj(r)})}_addCheck(t){return new di({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(n=t?.offset)!==null&&n!==void 0?n:!1,...Se.errToObj(t?.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Se.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Se.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Se.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Se.errToObj(n)})}nonempty(t){return this.min(1,Se.errToObj(t))}trim(){return new di({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new di({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new di({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}di.create=e=>{var t;return new di({checks:[],typeName:Me.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function F_(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class ms extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$e.number){const i=this._getOrReturnCtx(t);return be(i,{code:de.invalid_type,expected:$e.number,received:i.parsedType}),Ve}let n;const r=new Dn;for(const i of this._def.checks)i.kind==="int"?Ge.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),be(n,{code:de.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?F_(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),be(n,{code:de.not_finite,message:i.message}),r.dirty()):Ge.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Se.toString(n))}setLimit(t,n,r,i){return new ms({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Se.toString(i)}]})}_addCheck(t){return new ms({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}ms.create=e=>new ms({checks:[],typeName:Me.ZodNumber,coerce:e?.coerce||!1,...je(e)});class gs extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==$e.bigint){const i=this._getOrReturnCtx(t);return be(i,{code:de.invalid_type,expected:$e.bigint,received:i.parsedType}),Ve}let n;const r=new Dn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),be(n,{code:de.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):Ge.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Se.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Se.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Se.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Se.toString(n))}setLimit(t,n,r,i){return new gs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Se.toString(i)}]})}_addCheck(t){return new gs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}gs.create=e=>{var t;return new gs({checks:[],typeName:Me.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};class a3 extends qe{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==$e.boolean){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.boolean,received:n.parsedType}),Ve}return Xn(t.data)}}a3.create=e=>new a3({typeName:Me.ZodBoolean,coerce:e?.coerce||!1,...je(e)});class Rd extends qe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$e.date){const i=this._getOrReturnCtx(t);return be(i,{code:de.invalid_type,expected:$e.date,received:i.parsedType}),Ve}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return be(i,{code:de.invalid_date}),Ve}const n=new Dn;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),be(r,{code:de.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),be(r,{code:de.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Ge.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Rd({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Se.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Rd.create=e=>new Rd({checks:[],coerce:e?.coerce||!1,typeName:Me.ZodDate,...je(e)});class s3 extends qe{_parse(t){if(this._getType(t)!==$e.symbol){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.symbol,received:n.parsedType}),Ve}return Xn(t.data)}}s3.create=e=>new s3({typeName:Me.ZodSymbol,...je(e)});class l3 extends qe{_parse(t){if(this._getType(t)!==$e.undefined){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.undefined,received:n.parsedType}),Ve}return Xn(t.data)}}l3.create=e=>new l3({typeName:Me.ZodUndefined,...je(e)});class d3 extends qe{_parse(t){if(this._getType(t)!==$e.null){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.null,received:n.parsedType}),Ve}return Xn(t.data)}}d3.create=e=>new d3({typeName:Me.ZodNull,...je(e)});class c3 extends qe{constructor(){super(...arguments),this._any=!0}_parse(t){return Xn(t.data)}}c3.create=e=>new c3({typeName:Me.ZodAny,...je(e)});class u3 extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xn(t.data)}}u3.create=e=>new u3({typeName:Me.ZodUnknown,...je(e)});class wi extends qe{_parse(t){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.never,received:n.parsedType}),Ve}}wi.create=e=>new wi({typeName:Me.ZodNever,...je(e)});class f3 extends qe{_parse(t){if(this._getType(t)!==$e.undefined){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.void,received:n.parsedType}),Ve}return Xn(t.data)}}f3.create=e=>new f3({typeName:Me.ZodVoid,...je(e)});class Sr extends qe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==$e.array)return be(n,{code:de.invalid_type,expected:$e.array,received:n.parsedType}),Ve;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(be(n,{code:a?de.too_big:de.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(be(n,{code:de.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(be(n,{code:de.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new $i(n,a,n.path,s)))).then(a=>Dn.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new $i(n,a,n.path,s)));return Dn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Sr({...this._def,minLength:{value:t,message:Se.toString(n)}})}max(t,n){return new Sr({...this._def,maxLength:{value:t,message:Se.toString(n)}})}length(t,n){return new Sr({...this._def,exactLength:{value:t,message:Se.toString(n)}})}nonempty(t){return this.min(1,t)}}Sr.create=(e,t)=>new Sr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...je(t)});function Oo(e){if(e instanceof Et){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=fi.create(Oo(r))}return new Et({...e._def,shape:()=>t})}else return e instanceof Sr?new Sr({...e._def,type:Oo(e.element)}):e instanceof fi?fi.create(Oo(e.unwrap())):e instanceof ra?ra.create(Oo(e.unwrap())):e instanceof io?io.create(e.items.map(t=>Oo(t))):e}class Et extends qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==$e.object){const l=this._getOrReturnCtx(t);return be(l,{code:de.invalid_type,expected:$e.object,received:l.parsedType}),Ve}const{status:n,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof wi&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const s=[];for(const l of o){const d=i[l],c=r.data[l];s.push({key:{status:"valid",value:l},value:d._parse(new $i(r,c,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof wi){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of a)s.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(l==="strict")a.length>0&&(be(r,{code:de.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const d of a){const c=r.data[d];s.push({key:{status:"valid",value:d},value:l._parse(new $i(r,c,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of s){const c=await d.key;l.push({key:c,value:await d.value,alwaysSet:d.alwaysSet})}return l}).then(l=>Dn.mergeObjectSync(n,l)):Dn.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new Et({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,a,s;const l=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=Se.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Et({...this._def,unknownKeys:"strip"})}passthrough(){return new Et({...this._def,unknownKeys:"passthrough"})}extend(t){return new Et({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Et({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Et({...this._def,catchall:t})}pick(t){const n={};return Ge.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Et({...this._def,shape:()=>n})}omit(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Et({...this._def,shape:()=>n})}deepPartial(){return Oo(this)}partial(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Et({...this._def,shape:()=>n})}required(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof fi;)i=i._def.innerType;n[r]=i}}),new Et({...this._def,shape:()=>n})}keyof(){return n6(Ge.objectKeys(this.shape))}}Et.create=(e,t)=>new Et({shape:()=>e,unknownKeys:"strip",catchall:wi.create(),typeName:Me.ZodObject,...je(t)});Et.strictCreate=(e,t)=>new Et({shape:()=>e,unknownKeys:"strict",catchall:wi.create(),typeName:Me.ZodObject,...je(t)});Et.lazycreate=(e,t)=>new Et({shape:e,unknownKeys:"strip",catchall:wi.create(),typeName:Me.ZodObject,...je(t)});class Ld extends qe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new ro(s.ctx.common.issues));return be(n,{code:de.invalid_union,unionErrors:a}),Ve}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const d={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:d});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new ro(l));return be(n,{code:de.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}Ld.create=(e,t)=>new Ld({options:e,typeName:Me.ZodUnion,...je(t)});function M1(e,t){const n=Ui(e),r=Ui(t);if(e===t)return{valid:!0,data:e};if(n===$e.object&&r===$e.object){const i=Ge.objectKeys(t),o=Ge.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=M1(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===$e.array&&r===$e.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=M1(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===$e.date&&r===$e.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class jd extends qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(r3(o)||r3(a))return Ve;const s=M1(o.value,a.value);return s.valid?((i3(o)||i3(a))&&n.dirty(),{status:n.value,value:s.data}):(be(r,{code:de.invalid_intersection_types}),Ve)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}jd.create=(e,t,n)=>new jd({left:e,right:t,typeName:Me.ZodIntersection,...je(n)});class io extends qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$e.array)return be(r,{code:de.invalid_type,expected:$e.array,received:r.parsedType}),Ve;if(r.data.length<this._def.items.length)return be(r,{code:de.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&r.data.length>this._def.items.length&&(be(r,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const s=this._def.items[a]||this._def.rest;return s?s._parse(new $i(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Dn.mergeArray(n,o)):Dn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new io({...this._def,rest:t})}}io.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new io({items:e,typeName:Me.ZodTuple,rest:null,...je(t)})};class h3 extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$e.map)return be(r,{code:de.invalid_type,expected:$e.map,received:r.parsedType}),Ve;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],d)=>({key:i._parse(new $i(r,s,r.path,[d,"key"])),value:o._parse(new $i(r,l,r.path,[d,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const d=await l.key,c=await l.value;if(d.status==="aborted"||c.status==="aborted")return Ve;(d.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(d.value,c.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const d=l.key,c=l.value;if(d.status==="aborted"||c.status==="aborted")return Ve;(d.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(d.value,c.value)}return{status:n.value,value:s}}}}h3.create=(e,t,n)=>new h3({valueType:t,keyType:e,typeName:Me.ZodMap,...je(n)});class vs extends qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$e.set)return be(r,{code:de.invalid_type,expected:$e.set,received:r.parsedType}),Ve;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(be(r,{code:de.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(be(r,{code:de.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const d=new Set;for(const c of l){if(c.status==="aborted")return Ve;c.status==="dirty"&&n.dirty(),d.add(c.value)}return{status:n.value,value:d}}const s=[...r.data.values()].map((l,d)=>o._parse(new $i(r,l,r.path,d)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new vs({...this._def,minSize:{value:t,message:Se.toString(n)}})}max(t,n){return new vs({...this._def,maxSize:{value:t,message:Se.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vs.create=(e,t)=>new vs({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...je(t)});class p3 extends qe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}p3.create=(e,t)=>new p3({getter:e,typeName:Me.ZodLazy,...je(t)});class m3 extends qe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return be(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}m3.create=(e,t)=>new m3({value:e,typeName:Me.ZodLiteral,...je(t)});function n6(e,t){return new ta({values:e,typeName:Me.ZodEnum,...je(t)})}class ta extends qe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{expected:Ge.joinValues(r),received:n.parsedType,code:de.invalid_type}),Ve}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{received:n.data,code:de.invalid_enum_value,options:r}),Ve}return Xn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return ta.create(t)}exclude(t){return ta.create(this.options.filter(n=>!t.includes(n)))}}ta.create=n6;class g3 extends qe{_parse(t){const n=Ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$e.string&&r.parsedType!==$e.number){const i=Ge.objectValues(n);return be(r,{expected:Ge.joinValues(i),received:r.parsedType,code:de.invalid_type}),Ve}if(n.indexOf(t.data)===-1){const i=Ge.objectValues(n);return be(r,{received:r.data,code:de.invalid_enum_value,options:i}),Ve}return Xn(t.data)}get enum(){return this._def.values}}g3.create=(e,t)=>new g3({values:e,typeName:Me.ZodNativeEnum,...je(t)});class zd extends qe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$e.promise&&n.common.async===!1)return be(n,{code:de.invalid_type,expected:$e.promise,received:n.parsedType}),Ve;const r=n.parsedType===$e.promise?n.data:Promise.resolve(n.data);return Xn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zd.create=(e,t)=>new zd({type:e,typeName:Me.ZodPromise,...je(t)});class na extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{be(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(a).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:a,path:r.path,parent:r})}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Fd(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Fd(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):a);Ge.assertNever(i)}}na.create=(e,t,n)=>new na({schema:e,typeName:Me.ZodEffects,effect:t,...je(n)});na.createWithPreprocess=(e,t,n)=>new na({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...je(n)});class fi extends qe{_parse(t){return this._getType(t)===$e.undefined?Xn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fi.create=(e,t)=>new fi({innerType:e,typeName:Me.ZodOptional,...je(t)});class ra extends qe{_parse(t){return this._getType(t)===$e.null?Xn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ra.create=(e,t)=>new ra({innerType:e,typeName:Me.ZodNullable,...je(t)});class D1 extends qe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===$e.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}D1.create=(e,t)=>new D1({innerType:e,typeName:Me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});class F1 extends qe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return I1(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ro(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ro(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}F1.create=(e,t)=>new F1({innerType:e,typeName:Me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});class v3 extends qe{_parse(t){if(this._getType(t)!==$e.nan){const n=this._getOrReturnCtx(t);return be(n,{code:de.invalid_type,expected:$e.nan,received:n.parsedType}),Ve}return{status:"valid",value:t.data}}}v3.create=e=>new v3({typeName:Me.ZodNaN,...je(e)});class R_ extends qe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class vh extends qe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ve:i.status==="dirty"?(n.dirty(),C_(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ve:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new vh({in:t,out:n,typeName:Me.ZodPipeline})}}class R1 extends qe{_parse(t){const n=this._def.innerType._parse(t);return Fd(n)&&(n.value=Object.freeze(n.value)),n}}R1.create=(e,t)=>new R1({innerType:e,typeName:Me.ZodReadonly,...je(t)});Et.lazycreate;var Me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Me||(Me={}));const To=di.create;wi.create;Sr.create;const r6=Et.create;Et.strictCreate;Ld.create;jd.create;io.create;ta.create;zd.create;fi.create;ra.create;var ia=function(){return ia=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ia.apply(this,arguments)};function a0(e,t){if(!Boolean(e))throw new Error(t)}function L_(e){return typeof e=="object"&&e!==null}function j_(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const z_=/\r\n|[\n\r]/g;function L1(e,t){let n=0,r=1;for(const i of e.body.matchAll(z_)){if(typeof i.index=="number"||j_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function V_(e){return i6(e.source,L1(e.source,e.start))}function i6(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?n:0,l=t.column+s,d=`${e.name}:${a}:${l}
|
|
764
764
|
`,c=r.split(/\r\n|[\n\r]/g),u=c[i];if(u.length>120){const f=Math.floor(l/80),h=l%80,p=[];for(let v=0;v<u.length;v+=80)p.push(u.slice(v,v+80));return d+y3([[`${a} |`,p[0]],...p.slice(1,f+1).map(v=>["|",v]),["|","^".padStart(h)],["|",p[f+1]]])}return d+y3([[`${a-1} |`,c[i-1]],[`${a} |`,u],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function y3(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
|
|
765
765
|
`)}function U_(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class yh extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:l,path:d,originalError:c,extensions:u}=U_(n);super(t),this.name="GraphQLError",this.path=d??void 0,this.originalError=c??void 0,this.nodes=b3(Array.isArray(a)?a:a?[a]:void 0);const f=b3((r=this.nodes)===null||r===void 0?void 0:r.map(p=>p.loc).filter(p=>p!=null));this.source=s??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=l??f?.map(p=>p.start),this.locations=l&&s?l.map(p=>L1(s,p)):f?.map(p=>L1(p.source,p.start));const h=L_(c?.extensions)?c?.extensions:void 0;this.extensions=(o=u??h)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,yh):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
@@ -1265,7 +1265,7 @@ Description:
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
|
-
`,eV={CatalogTreatmentsFieldsElementsFragment:Jz};class tV{sdk;setStore;store;authentication;getSDK;clinical;autoLogin;constructor(t,n=!1){this.sdk=t,this.autoLogin=n;const[r,i]=Ei({authentication:{isAuthenticated:!1,isInOrg:!1,permissions:[],isLoading:!0,error:void 0,user:void 0},catalog:{isLoading:!1,treatments:[],templates:[]},catalogs:{isLoading:!1,catalogs:[]},dispenseUnits:{isLoading:!1,dispenseUnits:new Array},patients:{isLoading:!1,patients:[],finished:!1},patient:{isLoading:!1,patient:void 0},prescription:{isLoading:!1,errors:[],error:void 0,data:void 0}});this.setStore=i,this.store=r,this.authentication={state:r.authentication,handleRedirect:async o=>{try{const a=await this.sdk.authentication.handleRedirect(o);Xz(a?.appState)}catch(a){const l=new URLSearchParams(window.location.search).get("error_description");a.message.includes("must be an organization id")?this.setStore("authentication",{...this.store.authentication,error:"The provided organization id is invalid or does not exist"}):l?.includes("is not part of the org")?this.setStore("authentication",{...this.store.authentication,error:"User is not authorized",isLoading:!1}):this.setStore("authentication",{...this.store.authentication,error:a.message})}},checkSession:this.checkSession.bind(this),login:this.login.bind(this),logout:this.logout.bind(this)},this.getSDK=this._getSDK.bind(this),this.clinical={catalog:{state:r.catalog,getCatalog:this.getCatalog.bind(this)},catalogs:{state:r.catalogs,getCatalogs:this.getCatalogs.bind(this)},dispenseUnits:{state:r.dispenseUnits,getDispenseUnits:this.getDispenseUnits.bind(this)},patients:{state:r.patients,getPatients:this.getPatients.bind(this)},patient:{state:r.patient,getPatient:this.getPatient.bind(this)},prescription:{state:r.prescription,createPrescription:this.createPrescription.bind(this)}}}_getSDK(){return this.sdk}async checkSession(){try{await this.sdk.authentication.checkSession();const t=await this.sdk.authentication.isAuthenticated();this.setStore("authentication",{...this.store.authentication,isAuthenticated:t});const n=await this.sdk.authentication.getUser(),r=!!this.sdk?.organization&&!!n?.org_id;let i;try{const o=await this.sdk.authentication.getAccessToken();i=o9(o)?.permissions||[]}catch{i=[]}this.setStore("authentication",{...this.store.authentication,user:n,isLoading:!1,isInOrg:t&&r&&this.sdk.organization===n.org_id,permissions:i||[]})}catch{this.setStore("authentication",{...this.store.authentication,isLoading:!1})}}async login(t={}){await this.sdk.authentication.login(t),await this.checkSession()}async logout(t={}){await this.sdk.authentication.logout(t),this.setStore("authentication",{...this.store.authentication,isAuthenticated:!1,isInOrg:!1,permissions:[],user:void 0})}async getPatients(t){t||(t={}),this.setStore("patients",{...this.store.patients,isLoading:!0});const{data:n}=await this.sdk.clinical.patient.getPatients(t);this.setStore("patients",{...this.store.patients,isLoading:!1,patients:t.clear?n.patients:this.store.patients.patients.concat(n.patients),finished:n.patients.length==0})}async getPatient(t){this.setStore("patient",{...this.store.patient,isLoading:!0});const{data:n}=await this.sdk.clinical.patient.getPatient(t);return this.setStore("patient",{...this.store.patient,isLoading:!1,patient:n.patient}),n.patient}async getCatalog(t){this.setStore("catalog",{...this.store.catalog,isLoading:!0});const{data:n}=await this.sdk.clinical.catalog.getCatalog({id:t.id,fragment:eV});this.setStore("catalog",{...this.store.catalog,isLoading:!1,treatments:n.catalog.treatments.map(r=>r)||[],templates:n.catalog.templates.map(r=>r)||[]})}async getCatalogs(){this.setStore("catalogs",{...this.store.catalogs,isLoading:!0});const{data:t}=await this.sdk.clinical.catalog.getCatalogs();this.setStore("catalogs",{...this.store.catalogs,isLoading:!1,catalogs:t.catalogs})}async getDispenseUnits(){this.setStore("dispenseUnits",{...this.store.dispenseUnits,isLoading:!0});const{data:t}=await this.sdk.clinical.prescription.getDispenseUnits();this.setStore("dispenseUnits",{...this.store.dispenseUnits,isLoading:!1,dispenseUnits:t.dispenseUnits.map((n,r)=>({id:String(r),...n}))})}async createPrescription(t){this.setStore("prescription",{...this.store.prescription,isLoading:!0});const n=this.sdk.clinical.prescription.createPrescription({});try{const{data:r,errors:i}=await n({variables:t,refetchQueries:[],awaitRefetchQueries:!1});return i&&i.length>0&&this.setStore("prescription",{...this.store.prescription,errors:[...i]}),r?.createPrescription&&this.setStore("prescription",{...this.store.prescription,data:r.createPrescription}),this.setStore("prescription",{...this.store.prescription,isLoading:!1}),{data:r,errors:i}}catch(r){return this.setStore("prescription",{...this.store.prescription,error:r,isLoading:!1}),{data:null,errors:[]}}}}const nV=/[?&]code=[^&]+/,rV=/[?&]state=[^&]+/,iV=/[?&]error=[^&]+/,oV=(e=window.location.search)=>(nV.test(e)||iV.test(e))&&rV.test(e),aV=e=>/^\d+$/.test(e)&&e.length>=5,a9=Rn(),Nn=()=>xn(a9),sV="@photonhealth/elements",lV="0.7.1",dV="",cV="dist/index.js",uV="./dist/index.d.ts",fV={start:"vite --port 3000",build:"rimraf dist && NODE_ENV=development vite build","build:prod":"npx nx run elements:build","build:watch":"rimraf dist && vite build --watch",prepublishOnly:"npm run build:prod","upload-s3":"npm run upload-s3:package-json && npm run upload-s3:dist && npm run upload-s3:package-json-latest && npm run upload-s3:dist-latest","upload-s3:package-json":"s3-deploy './package.json' --cwd './' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX","upload-s3:dist":"s3-deploy './dist/**' --cwd './dist/' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX/dist","upload-s3:package-json-latest":"s3-deploy './package.json' --cwd './' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX_LATEST","upload-s3:dist-latest":"s3-deploy './dist/**' --cwd './dist/' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX_LATEST/dist",lint:"eslint src","lint:only-errors":"eslint src --quiet","lint:fix":"eslint src --fix"},hV={access:"public"},pV=["dist","package.json"],mV=[],gV="",vV="ISC",yV={"@babel/core":"^7.18.13","@csstools/postcss-sass":"^5.0.1","@rollup/plugin-typescript":"^11.0.0","@types/lodash":"^4.14.185","@types/node":"^18.7.18","@typescript-eslint/eslint-plugin":"^5.48.1","@typescript-eslint/parser":"^5.48.1",autoprefixer:"^10.4.13","babel-loader":"^8.2.5","css-has-pseudo":"^4.0.1",eslint:"^8.31.0","eslint-plugin-unused-imports":"^2.0.0","fast-glob":"^3.2.12","open-props":"^1.4.16",postcss:"^8.4.31","postcss-custom-media":"^8.0.2","postcss-jit-props":"^1.0.7",rimraf:"^3.0.2",vite:"^3.0.6","vite-plugin-solid":"^2.3.0","vite-plugin-static-copy":"^0.13.1"},bV={"@photonhealth/components":"*","@photonhealth/sdk":"*","@shoelace-style/shoelace":"^2.4.0","@solid-primitives/scheduled":"^1.2.0","@solid-primitives/timer":"^1.3.4","@tanstack/solid-virtual":"^3.0.0-beta.6","date-fns":"^2.29.3",graphql:"^16.6.0","graphql-tag":"^2.12.6","jwt-decode":"^3.1.2","libphonenumber-js":"^1.10.14","solid-element":"^1.6.4",superstruct:"^1.0.3"},$V={".":{import:"./dist/index.mjs",require:"./dist/index.js"}},wV="3283ed3794cd092af27cfc26db5ad4535853caf8",_V={name:sV,version:lV,description:dV,main:cV,types:uV,scripts:fV,publishConfig:hV,files:pV,keywords:mV,author:gV,license:vV,devDependencies:yV,dependencies:bV,exports:$V,gitHead:wV},xV=Q("<slot></slot>"),kV=Q("<div></div>"),CV=_V?.version??"unknown",EV=e=>{let t;const n=new kw({env:e.env,domain:e.domain,audience:e.audience,connection:e.connection,uri:e.uri,clientId:e.id,redirectURI:e.redirectUri?e.redirectUri:window.location.origin,organization:e.org,developmentMode:e.developmentMode},CV),r=new tV(n,e.autoLogin);e.developmentMode&&console.info("[PhotonClient]: Development mode enabled");const[i]=H(r),o=async()=>{await i()?.authentication.handleRedirect(),e.redirectPath&&window.location.replace(e.redirectPath)},a=async()=>{await i()?.authentication.checkSession(),Hz(async()=>{await i()?.authentication.checkSession()},6e4,setInterval)};return pe(()=>{oV()&&i()?o():i()&&a()}),pe(()=>{if(!i()?.authentication.state.isLoading){if(!i()?.authentication.state.isAuthenticated&&e.autoLogin){const s={appState:{}};e.redirectPath&&(s.appState.returnTo=e.redirectPath),i()?.authentication.login(s)}else if(e.externalUserId!=null&&i().authentication.state.user?.sub?.split("|").reverse()[0]!==e.externalUserId){i()?.authentication.logout();const s={appState:{}};e.redirectPath&&(s.appState.returnTo=e.redirectPath),i()?.authentication.login(s)}}}),(()=>{const s=kV.cloneNode(!0),l=t;return typeof l=="function"?He(l,s):t=s,T(s,g(a9.Provider,{get value(){return i()},get children(){return g(WD,{client:n,get children(){const d=xV.cloneNode(!0);return d._$owner=ce(),d}})}})),s})()};lt("photon-client",{domain:{attribute:"domain",value:void 0,reflect:!1,notify:!1,parse:!1},id:{attribute:"id",value:void 0,reflect:!1,notify:!1,parse:!1},redirectUri:{attribute:"redirect-uri",value:void 0,reflect:!1,notify:!1,parse:!1},redirectPath:{attribute:"redirect-path",value:void 0,reflect:!1,notify:!1,parse:!1},org:{attribute:"org",value:void 0,reflect:!1,notify:!1,parse:!1},audience:{attribute:"audience",value:void 0,reflect:!1,notify:!1,parse:!1},connection:{attribute:"connection",value:void 0,reflect:!1,notify:!1,parse:!1},uri:{attribute:"uri",value:void 0,reflect:!1,notify:!1,parse:!1},developmentMode:{attribute:"dev-mode",value:!1,reflect:!0,notify:!1,parse:!0},errorMessage:{attribute:"error-message",value:"Oh snap! There was an error loading. Please contact your site's administrator",reflect:!1,notify:!1,parse:!1},autoLogin:{attribute:"auto-login",value:!1,reflect:!1,notify:!1,parse:!0},env:{attribute:"env",value:void 0,reflect:!1,notify:!1,parse:!1},externalUserId:{attribute:"userId",value:void 0,reflect:!0,notify:!0,parse:!1}},EV);const Dt=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.left-4{left:1rem}.top-0{top:0}.z-10{z-index:10}.order-last{order:9999}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-\\[21px\\]{height:21px}.h-\\[28px\\]{height:28px}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-2\\/5{width:40%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\\[40\\%\\]{min-width:40%}.min-w-\\[48\\%\\]{min-width:48%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * (1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.bg-\\[\\#F9FAFB\\]{--tw-bg-opacity: 1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-photon-blue{--tw-bg-opacity: 1;background-color:rgb(49 130 206/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-\\[19\\.75px\\]{padding-left:19.75px}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pt-28{padding-top:7rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-card{--tw-shadow: 0px 0px 1px rgba(48, 49, 51, .05),0px 2px 4px rgba(48, 49, 51, .1);--tw-shadow-colored: 0px 0px 1px var(--tw-shadow-color), 0px 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\\:bg-photon-blue-dark:hover{--tw-bg-opacity: 1;background-color:rgb(43 108 176/var(--tw-bg-opacity))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.disabled\\:bg-gray-500:disabled{--tw-bg-opacity: 1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}@media (min-width: 475px){.xs\\:mx-auto{margin-left:auto;margin-right:auto}.xs\\:min-w-\\[40\\%\\]{min-width:40%}.xs\\:min-w-\\[48\\%\\]{min-width:48%}.xs\\:flex-row{flex-direction:row}.xs\\:gap-4{gap:1rem}.xs\\:pb-2{padding-bottom:.5rem}.xs\\:pt-28{padding-top:7rem}.xs\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 640px){.sm\\:order-first{order:-9999}.sm\\:mt-0{margin-top:0}.sm\\:inline{display:inline}.sm\\:grid{display:grid}.sm\\:w-\\[600px\\]{width:600px}.sm\\:w-auto{width:auto}.sm\\:flex-none{flex:none}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:gap-3{gap:.75rem}.sm\\:gap-4{gap:1rem}.sm\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\\:text-right{text-align:right}}@media (min-width: 768px){.md\\:static{position:static}.md\\:mb-0{margin-bottom:0}.md\\:\\!w-auto{width:auto!important}.md\\:flex-1{flex:1 1 0%}.md\\:flex-row{flex-direction:row}.md\\:justify-center{justify-content:center}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\\:pb-52{padding-bottom:13rem}.md\\:pr-2{padding-right:.5rem}.md\\:pt-4{padding-top:1rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\\:gap-2{gap:.5rem}.lg\\:pt-20{padding-top:5rem}}
|
|
1268
|
+
`,eV={CatalogTreatmentsFieldsElementsFragment:Jz};class tV{sdk;setStore;store;authentication;getSDK;clinical;autoLogin;constructor(t,n=!1){this.sdk=t,this.autoLogin=n;const[r,i]=Ei({authentication:{isAuthenticated:!1,isInOrg:!1,permissions:[],isLoading:!0,error:void 0,user:void 0},catalog:{isLoading:!1,treatments:[],templates:[]},catalogs:{isLoading:!1,catalogs:[]},dispenseUnits:{isLoading:!1,dispenseUnits:new Array},patients:{isLoading:!1,patients:[],finished:!1},patient:{isLoading:!1,patient:void 0},prescription:{isLoading:!1,errors:[],error:void 0,data:void 0}});this.setStore=i,this.store=r,this.authentication={state:r.authentication,handleRedirect:async o=>{try{const a=await this.sdk.authentication.handleRedirect(o);Xz(a?.appState)}catch(a){const l=new URLSearchParams(window.location.search).get("error_description");a.message.includes("must be an organization id")?this.setStore("authentication",{...this.store.authentication,error:"The provided organization id is invalid or does not exist"}):l?.includes("is not part of the org")?this.setStore("authentication",{...this.store.authentication,error:"User is not authorized",isLoading:!1}):this.setStore("authentication",{...this.store.authentication,error:a.message})}},checkSession:this.checkSession.bind(this),login:this.login.bind(this),logout:this.logout.bind(this)},this.getSDK=this._getSDK.bind(this),this.clinical={catalog:{state:r.catalog,getCatalog:this.getCatalog.bind(this)},catalogs:{state:r.catalogs,getCatalogs:this.getCatalogs.bind(this)},dispenseUnits:{state:r.dispenseUnits,getDispenseUnits:this.getDispenseUnits.bind(this)},patients:{state:r.patients,getPatients:this.getPatients.bind(this)},patient:{state:r.patient,getPatient:this.getPatient.bind(this)},prescription:{state:r.prescription,createPrescription:this.createPrescription.bind(this)}}}_getSDK(){return this.sdk}async checkSession(){try{await this.sdk.authentication.checkSession();const t=await this.sdk.authentication.isAuthenticated();this.setStore("authentication",{...this.store.authentication,isAuthenticated:t});const n=await this.sdk.authentication.getUser(),r=!!this.sdk?.organization&&!!n?.org_id;let i;try{const o=await this.sdk.authentication.getAccessToken();i=o9(o)?.permissions||[]}catch{i=[]}this.setStore("authentication",{...this.store.authentication,user:n,isLoading:!1,isInOrg:t&&r&&this.sdk.organization===n.org_id,permissions:i||[]})}catch{this.setStore("authentication",{...this.store.authentication,isLoading:!1})}}async login(t={}){await this.sdk.authentication.login(t),await this.checkSession()}async logout(t={}){await this.sdk.authentication.logout(t),this.setStore("authentication",{...this.store.authentication,isAuthenticated:!1,isInOrg:!1,permissions:[],user:void 0})}async getPatients(t){t||(t={}),this.setStore("patients",{...this.store.patients,isLoading:!0});const{data:n}=await this.sdk.clinical.patient.getPatients(t);this.setStore("patients",{...this.store.patients,isLoading:!1,patients:t.clear?n.patients:this.store.patients.patients.concat(n.patients),finished:n.patients.length==0})}async getPatient(t){this.setStore("patient",{...this.store.patient,isLoading:!0});const{data:n}=await this.sdk.clinical.patient.getPatient(t);return this.setStore("patient",{...this.store.patient,isLoading:!1,patient:n.patient}),n.patient}async getCatalog(t){this.setStore("catalog",{...this.store.catalog,isLoading:!0});const{data:n}=await this.sdk.clinical.catalog.getCatalog({id:t.id,fragment:eV});this.setStore("catalog",{...this.store.catalog,isLoading:!1,treatments:n.catalog.treatments.map(r=>r)||[],templates:n.catalog.templates.map(r=>r)||[]})}async getCatalogs(){this.setStore("catalogs",{...this.store.catalogs,isLoading:!0});const{data:t}=await this.sdk.clinical.catalog.getCatalogs();this.setStore("catalogs",{...this.store.catalogs,isLoading:!1,catalogs:t.catalogs})}async getDispenseUnits(){this.setStore("dispenseUnits",{...this.store.dispenseUnits,isLoading:!0});const{data:t}=await this.sdk.clinical.prescription.getDispenseUnits();this.setStore("dispenseUnits",{...this.store.dispenseUnits,isLoading:!1,dispenseUnits:t.dispenseUnits.map((n,r)=>({id:String(r),...n}))})}async createPrescription(t){this.setStore("prescription",{...this.store.prescription,isLoading:!0});const n=this.sdk.clinical.prescription.createPrescription({});try{const{data:r,errors:i}=await n({variables:t,refetchQueries:[],awaitRefetchQueries:!1});return i&&i.length>0&&this.setStore("prescription",{...this.store.prescription,errors:[...i]}),r?.createPrescription&&this.setStore("prescription",{...this.store.prescription,data:r.createPrescription}),this.setStore("prescription",{...this.store.prescription,isLoading:!1}),{data:r,errors:i}}catch(r){return this.setStore("prescription",{...this.store.prescription,error:r,isLoading:!1}),{data:null,errors:[]}}}}const nV=/[?&]code=[^&]+/,rV=/[?&]state=[^&]+/,iV=/[?&]error=[^&]+/,oV=(e=window.location.search)=>(nV.test(e)||iV.test(e))&&rV.test(e),aV=e=>/^\d+$/.test(e)&&e.length>=5,a9=Rn(),Nn=()=>xn(a9),sV="@photonhealth/elements",lV="0.7.2",dV="",cV="dist/index.js",uV="./dist/index.d.ts",fV={start:"vite --port 3000",build:"rimraf dist && NODE_ENV=development vite build","build:prod":"npx nx run elements:build","build:watch":"rimraf dist && vite build --watch",prepublishOnly:"npm run build:prod","upload-s3":"npm run upload-s3:package-json && npm run upload-s3:dist && npm run upload-s3:package-json-latest && npm run upload-s3:dist-latest","upload-s3:package-json":"s3-deploy './package.json' --cwd './' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX","upload-s3:dist":"s3-deploy './dist/**' --cwd './dist/' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX/dist","upload-s3:package-json-latest":"s3-deploy './package.json' --cwd './' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX_LATEST","upload-s3:dist-latest":"s3-deploy './dist/**' --cwd './dist/' --region 'us-east-1' --bucket 'cdn.rx.dev' --filePrefix $PREFIX_LATEST/dist",lint:"eslint src","lint:only-errors":"eslint src --quiet","lint:fix":"eslint src --fix"},hV={access:"public"},pV=["dist","package.json"],mV=[],gV="",vV="ISC",yV={"@babel/core":"^7.18.13","@csstools/postcss-sass":"^5.0.1","@rollup/plugin-typescript":"^11.0.0","@types/lodash":"^4.14.185","@types/node":"^18.7.18","@typescript-eslint/eslint-plugin":"^5.48.1","@typescript-eslint/parser":"^5.48.1",autoprefixer:"^10.4.13","babel-loader":"^8.2.5","css-has-pseudo":"^4.0.1",eslint:"^8.31.0","eslint-plugin-unused-imports":"^2.0.0","fast-glob":"^3.2.12","open-props":"^1.4.16",postcss:"^8.4.31","postcss-custom-media":"^8.0.2","postcss-jit-props":"^1.0.7",rimraf:"^3.0.2",vite:"^3.0.6","vite-plugin-solid":"^2.3.0","vite-plugin-static-copy":"^0.13.1"},bV={"@photonhealth/components":"*","@photonhealth/sdk":"*","@shoelace-style/shoelace":"^2.4.0","@solid-primitives/scheduled":"^1.2.0","@solid-primitives/timer":"^1.3.4","@tanstack/solid-virtual":"^3.0.0-beta.6","date-fns":"^2.29.3",graphql:"^16.6.0","graphql-tag":"^2.12.6","jwt-decode":"^3.1.2","libphonenumber-js":"^1.10.14","solid-element":"^1.6.4",superstruct:"^1.0.3"},$V={".":{import:"./dist/index.mjs",require:"./dist/index.js"}},wV="3283ed3794cd092af27cfc26db5ad4535853caf8",_V={name:sV,version:lV,description:dV,main:cV,types:uV,scripts:fV,publishConfig:hV,files:pV,keywords:mV,author:gV,license:vV,devDependencies:yV,dependencies:bV,exports:$V,gitHead:wV},xV=Q("<slot></slot>"),kV=Q("<div></div>"),CV=_V?.version??"unknown",EV=e=>{let t;const n=new kw({env:e.env,domain:e.domain,audience:e.audience,connection:e.connection,uri:e.uri,clientId:e.id,redirectURI:e.redirectUri?e.redirectUri:window.location.origin,organization:e.org,developmentMode:e.developmentMode},CV),r=new tV(n,e.autoLogin);e.developmentMode&&console.info("[PhotonClient]: Development mode enabled");const[i]=H(r),o=async()=>{await i()?.authentication.handleRedirect(),e.redirectPath&&window.location.replace(e.redirectPath)},a=async()=>{await i()?.authentication.checkSession(),Hz(async()=>{await i()?.authentication.checkSession()},6e4,setInterval)};return pe(()=>{oV()&&i()?o():i()&&e.autoLogin&&a()}),pe(()=>{if(!i()?.authentication.state.isLoading){if(!i()?.authentication.state.isAuthenticated&&e.autoLogin){const s={appState:{}};e.redirectPath&&(s.appState.returnTo=e.redirectPath),i()?.authentication.login(s)}else if(e.externalUserId!=null&&i().authentication.state.user?.sub?.split("|").reverse()[0]!==e.externalUserId){i()?.authentication.logout();const s={appState:{}};e.redirectPath&&(s.appState.returnTo=e.redirectPath),i()?.authentication.login(s)}}}),(()=>{const s=kV.cloneNode(!0),l=t;return typeof l=="function"?He(l,s):t=s,T(s,g(a9.Provider,{get value(){return i()},get children(){return g(WD,{client:n,get children(){const d=xV.cloneNode(!0);return d._$owner=ce(),d}})}})),s})()};lt("photon-client",{domain:{attribute:"domain",value:void 0,reflect:!1,notify:!1,parse:!1},id:{attribute:"id",value:void 0,reflect:!1,notify:!1,parse:!1},redirectUri:{attribute:"redirect-uri",value:void 0,reflect:!1,notify:!1,parse:!1},redirectPath:{attribute:"redirect-path",value:void 0,reflect:!1,notify:!1,parse:!1},org:{attribute:"org",value:void 0,reflect:!1,notify:!1,parse:!1},audience:{attribute:"audience",value:void 0,reflect:!1,notify:!1,parse:!1},connection:{attribute:"connection",value:void 0,reflect:!1,notify:!1,parse:!1},uri:{attribute:"uri",value:void 0,reflect:!1,notify:!1,parse:!1},developmentMode:{attribute:"dev-mode",value:!1,reflect:!0,notify:!1,parse:!0},errorMessage:{attribute:"error-message",value:"Oh snap! There was an error loading. Please contact your site's administrator",reflect:!1,notify:!1,parse:!1},autoLogin:{attribute:"auto-login",value:!1,reflect:!1,notify:!1,parse:!0},env:{attribute:"env",value:void 0,reflect:!1,notify:!1,parse:!1},externalUserId:{attribute:"userId",value:void 0,reflect:!0,notify:!0,parse:!1}},EV);const Dt=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.left-4{left:1rem}.top-0{top:0}.z-10{z-index:10}.order-last{order:9999}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-\\[21px\\]{height:21px}.h-\\[28px\\]{height:28px}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-2\\/5{width:40%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\\[40\\%\\]{min-width:40%}.min-w-\\[48\\%\\]{min-width:48%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * (1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.bg-\\[\\#F9FAFB\\]{--tw-bg-opacity: 1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-photon-blue{--tw-bg-opacity: 1;background-color:rgb(49 130 206/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-\\[19\\.75px\\]{padding-left:19.75px}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pt-28{padding-top:7rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-card{--tw-shadow: 0px 0px 1px rgba(48, 49, 51, .05),0px 2px 4px rgba(48, 49, 51, .1);--tw-shadow-colored: 0px 0px 1px var(--tw-shadow-color), 0px 2px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\\:bg-photon-blue-dark:hover{--tw-bg-opacity: 1;background-color:rgb(43 108 176/var(--tw-bg-opacity))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.disabled\\:bg-gray-500:disabled{--tw-bg-opacity: 1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}@media (min-width: 475px){.xs\\:mx-auto{margin-left:auto;margin-right:auto}.xs\\:min-w-\\[40\\%\\]{min-width:40%}.xs\\:min-w-\\[48\\%\\]{min-width:48%}.xs\\:flex-row{flex-direction:row}.xs\\:gap-4{gap:1rem}.xs\\:pb-2{padding-bottom:.5rem}.xs\\:pt-28{padding-top:7rem}.xs\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 640px){.sm\\:order-first{order:-9999}.sm\\:mt-0{margin-top:0}.sm\\:inline{display:inline}.sm\\:grid{display:grid}.sm\\:w-\\[600px\\]{width:600px}.sm\\:w-auto{width:auto}.sm\\:flex-none{flex:none}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:gap-3{gap:.75rem}.sm\\:gap-4{gap:1rem}.sm\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\\:text-right{text-align:right}}@media (min-width: 768px){.md\\:static{position:static}.md\\:mb-0{margin-bottom:0}.md\\:\\!w-auto{width:auto!important}.md\\:flex-1{flex:1 1 0%}.md\\:flex-row{flex-direction:row}.md\\:justify-center{justify-content:center}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\\:pb-52{padding-bottom:13rem}.md\\:pr-2{padding-right:.5rem}.md\\:pt-4{padding-top:1rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\\:gap-2{gap:.5rem}.lg\\:pt-20{padding-top:5rem}}
|
|
1269
1269
|
`,SV=Q("<style></style>"),OV=Q('<button class="w-full disabled:bg-gray-500 bg-photon-blue hover:bg-blue-700 text-white h-10 px-4 rounded-lg font-sans hover:bg-photon-blue-dark transition ease-in-out delay-50"></button>'),TV=e=>{const t=Nn();return pe(()=>{t||console.error("[photon-auth-button] No valid PhotonClient instance was provided. Please ensure you are wrapping the element in a photon-client element")}),[(()=>{const n=SV.cloneNode(!0);return T(n,Dt),n})(),t?(()=>{const n=OV.cloneNode(!0);return n.$$click=async()=>{const r={appState:{}};e.redirectPath&&(r.appState.returnTo=e.redirectPath),t.authentication.state.isAuthenticated?await t.authentication.logout():await t.authentication.login(r)},T(n,()=>t.authentication.state.isAuthenticated?"Log out":"Log in"),ee(()=>n.disabled=t.authentication.state.isLoading),n})():null]};lt("photon-auth-button",{redirectPath:{attribute:"redirect-path",value:void 0,reflect:!1,notify:!1,parse:!1}},TV);qc(["click"]);const NV=Q("<style></style>"),PV=Q(`<div class="flex flex-col w-screen max-w-sm"><svg viewBox="0 0 305 62.61" xmlns="http://www.w3.org/2000/svg" class="h-[28px] pl-[19.75px]"><g fill="#273D52"><path d="M0 54.1169H6.81375V35.7722H18.0826C29.5481 35.7722 34.3963 30.3343 34.3963 18.7378V17.4275C34.3963 5.76548 29.417 0.655167 18.0826 0.655167H0V54.1169ZM6.81375 30.1377V6.28961H18.2792C24.7653 6.28961 27.386 8.9758 27.386 16.0516V20.0481C27.386 27.1895 24.7653 30.1377 18.2792 30.1377H6.81375Z"></path><path d="M70.9593 54.1169H77.773V0.655167H70.9593V24.4378H50.8456V0.655167H44.0319V54.1169H50.8456V30.3343H70.9593V54.1169Z"></path><path d="M107.146 54.772C119.528 54.772 125.687 46.5169 125.687 34.9205V19.7861C125.687 8.25511 119.528 0 107.146 0C94.6974 0 88.5388 8.25511 88.5388 19.7861V34.9205C88.5388 46.5169 94.6974 54.772 107.146 54.772ZM95.5491 35.9687V18.8033C95.5491 10.7448 99.4801 5.89651 107.146 5.89651C114.745 5.89651 118.677 10.7448 118.677 18.8033V35.9687C118.677 44.0928 114.745 48.8755 107.146 48.8755C99.4801 48.8755 95.5491 44.0928 95.5491 35.9687Z"></path><path d="M144.295 54.1169H151.109V6.48616H164.54V0.655167H130.864V6.48616H144.295V54.1169Z"></path><path d="M188.299 54.772C200.682 54.772 206.841 46.5169 206.841 34.9205V19.7861C206.841 8.25511 200.682 0 188.299 0C175.851 0 169.693 8.25511 169.693 19.7861V34.9205C169.693 46.5169 175.851 54.772 188.299 54.772ZM176.703 35.9687V18.8033C176.703 10.7448 180.634 5.89651 188.299 5.89651C195.899 5.89651 199.83 10.7448 199.83 18.8033V35.9687C199.83 44.0928 195.899 48.8755 188.299 48.8755C180.634 48.8755 176.703 44.0928 176.703 35.9687Z"></path><path d="M217.6 54.1169H224.021V14.3482L245.576 54.1169H252.608L248.058 45.1084L245.641 40.4239L224.086 0.655167H217.6V54.1169Z"></path></g><g fill="#B35724"><circle cx="249.798" cy="5.202" r="5.202"></circle></g></svg><h1 class="font-medium text-3xl text-center font-sans mt-6 mb-3">Log in to your account</h1><p class="text-gray-500 font-sans text-center mb-8">Don't have an account? <a href="mailto:rado@photon.health" class="text-teal-600 hover:underline hover:cursor-pointer font-sans font-light">Contact Sales</a></p><photon-auth-button></photon-auth-button></div>`),AV=e=>{const t=Nn();return pe(()=>{t||console.error("[photon-login] No valid PhotonClient instance was provided. Please ensure you are wrapping the element in a photon-client element")}),[(()=>{const n=NV.cloneNode(!0);return T(n,Dt),n})(),(()=>{const n=se(()=>document.importNode(PV,!0)),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,a=o.nextSibling;return a._$owner=ce(),ee(()=>a.redirectPath=e.redirectPath),n})()]};lt("photon-login",{redirectPath:{attribute:"redirect-path",value:void 0,reflect:!1,notify:!1,parse:!1}},AV);var Mh=(e,t)=>{let n;const r=()=>clearTimeout(n);return ce()&&bn(r),Object.assign((...o)=>{n!==void 0&&r(),n=setTimeout(()=>e(...o),t)},{clear:r})},Ml=window,Dh=Ml.ShadowRoot&&(Ml.ShadyCSS===void 0||Ml.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fh=Symbol(),G3=new WeakMap,s9=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Fh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Dh&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=G3.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&G3.set(t,e))}return e}toString(){return this.cssText}},IV=e=>new s9(typeof e=="string"?e:e+"",void 0,Fh),Zt=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((r,i,o)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new s9(n,e,Fh)},MV=(e,t)=>{Dh?e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const r=document.createElement("style"),i=Ml.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)})},Q3=Dh?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return IV(n)})(e):e,g0,Yd=window,K3=Yd.trustedTypes,DV=K3?K3.emptyScript:"",Y3=Yd.reactiveElementPolyfillSupport,_s={toAttribute(e,t){switch(t){case Boolean:e=e?DV:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},l9=(e,t)=>t!==e&&(t==t||e==e),v0={attribute:!0,type:String,converter:_s,reflect:!1,hasChanged:l9},Io=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=v0){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v0}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(Q3(r))}else e!==void 0&&t.push(Q3(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return MV(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=v0){var r;const i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){const o=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:_s).toAttribute(t,n.type);this._$El=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,i=r._$Ev.get(e);if(i!==void 0&&this._$El!==i){const o=r.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?o.converter:_s;this._$El=i,this[i]=a.fromAttribute(t,o.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||l9)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,i)=>this[i]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostUpdate)===null||i===void 0?void 0:i.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Io.finalized=!0,Io.elementProperties=new Map,Io.elementStyles=[],Io.shadowRootOptions={mode:"open"},Y3?.({ReactiveElement:Io}),((g0=Yd.reactiveElementVersions)!==null&&g0!==void 0?g0:Yd.reactiveElementVersions=[]).push("1.6.1");var y0,Zd=window,sa=Zd.trustedTypes,Z3=sa?sa.createPolicy("lit-html",{createHTML:e=>e}):void 0,si=`lit$${(Math.random()+"").slice(9)}$`,d9="?"+si,FV=`<${d9}>`,la=document,xs=(e="")=>la.createComment(e),ks=e=>e===null||typeof e!="object"&&typeof e!="function",c9=Array.isArray,RV=e=>c9(e)||typeof e?.[Symbol.iterator]=="function",za=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X3=/-->/g,J3=/>/g,Ii=RegExp(`>|[
|
|
1270
1270
|
\f\r](?:([^\\s"'>=/]+)([
|
|
1271
1271
|
\f\r]*=[
|
|
@@ -2774,7 +2774,7 @@ lit-html/static.js:
|
|
|
2774
2774
|
<slot part="label" class="switch__label"></slot>
|
|
2775
2775
|
</label>
|
|
2776
2776
|
`}};dn.styles=OB;C([Ft('input[type="checkbox"]')],dn.prototype,"input",2);C([Fr()],dn.prototype,"hasFocus",2);C([D()],dn.prototype,"title",2);C([D()],dn.prototype,"name",2);C([D()],dn.prototype,"value",2);C([D({reflect:!0})],dn.prototype,"size",2);C([D({type:Boolean,reflect:!0})],dn.prototype,"disabled",2);C([D({type:Boolean,reflect:!0})],dn.prototype,"checked",2);C([vu("checked")],dn.prototype,"defaultChecked",2);C([D({reflect:!0})],dn.prototype,"form",2);C([D({type:Boolean,reflect:!0})],dn.prototype,"required",2);C([mt("checked",{waitUntilFirstUpdate:!0})],dn.prototype,"handleCheckedChange",1);C([mt("disabled",{waitUntilFirstUpdate:!0})],dn.prototype,"handleDisabledChange",1);dn=C([un("sl-switch")],dn);const Kr=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}h1,h2,h3,h4,h5,h6,p,div,li,a,ul,input{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;line-height:1.625}body,html{--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}h1,h2,h3,h4,h5,h6,label{font-weight:500;line-height:1.25}h1{font-size:1.875rem;line-height:2.25rem;margin-top:.5rem;margin-bottom:.5rem}h2{font-size:1.5rem;line-height:2rem;margin-top:.5rem;margin-bottom:.5rem}h3{font-size:1.25rem;line-height:1.75rem;margin-top:.25rem;margin-bottom:.25rem}h4{font-size:1.125rem;line-height:1.75rem;margin-top:.25rem;margin-bottom:.25rem}h5{font-size:1rem;line-height:1.5rem;margin-top:.25rem;margin-bottom:.25rem}h6,label{font-size:.875rem;line-height:1.25rem;margin-top:.25rem;margin-bottom:.25rem}p{margin-top:.5rem;margin-bottom:.5rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-8{bottom:-2rem}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-10{z-index:10}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-px{margin-top:1px;margin-bottom:1px}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-3{margin-left:.75rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-px{height:1px}.max-h-60{max-height:15rem}.max-h-80{max-height:20rem}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-10{row-gap:2.5rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * (1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * (1 - var(--tw-space-x-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * (1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-solid{border-style:solid}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253/var(--tw-border-opacity))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172/var(--tw-border-opacity))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252/var(--tw-border-opacity))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(249 168 212/var(--tw-border-opacity))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-\\[\\#FFFAEB\\]{--tw-bg-opacity: 1;background-color:rgb(255 250 235/var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 231 243/var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.fill-blue-500{fill:#3b82f6}.fill-green-500{fill:#22c55e}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-snug{line-height:1.375}.text-\\[\\#DC6803\\]{--tw-text-opacity: 1;color:rgb(220 104 3/var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202/var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93/var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.ring-blue-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.ring-gray-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-red-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity))}.ring-red-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.theme-photon,[data-theme=photon]{--twc-primaryText: 210 20% 98%;--twc-primary500: 238.70000000000005 83.5% 66.7%;--twc-primary600: 243.39999999999998 75.4% 58.6%;--twc-secondaryText: 220.89999999999998 39.3% 11%;--twc-secondary50: 225.89999999999998 100% 96.7%;--twc-secondary100: 226.5 100% 93.9%}.theme-weekend,[data-theme=weekend]{--twc-primaryText: 210 20% 98%;--twc-primary500: 198.60000000000002 88.7% 48.4%;--twc-primary600: 200.39999999999998 98% 39.4%;--twc-secondaryText: 220.89999999999998 39.3% 11%;--twc-secondary50: 204 100% 97.1%;--twc-secondary100: 204 93.8% 93.7%}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}@keyframes animateEnter{0%{transform:translate3d(0,-20%,0) scale(.8);opacity:.5}to{transform:translateZ(0) scale(1);opacity:1}}@keyframes animateLeave{0%{transform:translateZ(-1px) scale(1);opacity:1}to{transform:translate3d(0,-20%,-1px) scale(.8);opacity:0}}.animate-enter{animation:animateEnter .2s cubic-bezier(.21,1.02,.73,1) forwards}.animate-leave{animation:animateLeave .2s cubic-bezier(.06,.71,.55,1) forwards}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\\:text-red-300::-moz-placeholder{--tw-text-opacity: 1;color:rgb(252 165 165/var(--tw-text-opacity))}.placeholder\\:text-red-300::placeholder{--tw-text-opacity: 1;color:rgb(252 165 165/var(--tw-text-opacity))}.even\\:bg-gray-50:nth-child(even){--tw-bg-opacity: 1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:text-amber-500:hover{--tw-text-opacity: 1;color:rgb(245 158 11/var(--tw-text-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246/var(--tw-text-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68/var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-0:focus{outline-width:0px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.group:hover .group-hover\\:bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.group:hover .group-hover\\:text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.group:hover .group-hover\\:text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138/var(--tw-text-opacity))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (prefers-color-scheme: dark){.dark\\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99/var(--tw-text-opacity))}}@media (min-width: 640px){.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:block{display:block}.sm\\:grid{display:grid}.sm\\:w-auto{width:auto}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-md{max-width:28rem}.sm\\:max-w-sm{max-width:24rem}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:gap-2{gap:.5rem}.sm\\:gap-4{gap:1rem}.sm\\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * (1 - var(--tw-space-x-reverse)))}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\\:pr-6{padding-right:1.5rem}.sm\\:pt-6{padding-top:1.5rem}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-6{line-height:1.5rem}}@media (min-width: 768px){.md\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * (1 - var(--tw-space-x-reverse)))}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
2777
|
-
`,TB=Q('<sl-alert variant="warning" open><sl-icon slot="icon" name="exclamation-triangle"></sl-icon><strong></strong><br></sl-alert>'),NB=Q('<div class="w-full flex justify-center"></div>');qt("https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.4.0/dist/");function k4(e,t){return e.every(n=>t.includes(n))}function A0(e){return(()=>{const t=se(()=>document.importNode(TB,!0)),n=t.firstChild,r=n.nextSibling;return t._$owner=ce(),n._$owner=ce(),T(r,()=>e.message),t})()}const F9=e=>{const t=Fe({permissions:[]},e),n=Nn(),[r,i]=H(n?.authentication.state.isLoading||!1),[o,a]=H(n?.authentication.state.isAuthenticated||!1),[s,l]=H(n?.authentication.state.isInOrg||!1),[d,c]=H(k4(t.permissions,n?.authentication.state.permissions||[]));pe(()=>{i(n?.authentication.state.isLoading||!1)}),pe(()=>{a(n?.authentication.state.isAuthenticated||!1)}),pe(()=>{l(n?.authentication.state.isInOrg||!1)}),pe(()=>{c(k4(t.permissions,n?.authentication.state.permissions||[]))});const u=G(()=>o()&&s()&&d());return g(oe,{get when(){return n&&!r()},get children(){return g(oe,{get when(){return u()},get fallback(){return g(oe,{get when(){return!o()},get fallback(){return g(oe,{get when(){return!s()},get fallback(){return g(A0,{message:"You are not authorized to prescribe"})},get children(){return g(A0,{message:"You tried logging in with an account not associated with any organizations"})}})},get children(){return g(oe,{get when(){return n?.autoLogin},get fallback(){return g(A0,{message:"You are not signed in"})},get children(){const f=NB.cloneNode(!0);return T(f,g(Qr,{color:"green"})),f}})}})},get children(){return t.children}})}})};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 gt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rl=function(n){return typeof n}:Rl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rl(e)}function Wt(e){gt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Rl(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 PB(e,t){gt(2,arguments);var n=Wt(e).getTime(),r=Tn(t);return new Date(n+r)}var AB={};function Ea(){return AB}function R9(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()}function C4(e){gt(1,arguments);var t=Wt(e);return t.setHours(0,0,0,0),t}var IB=6e4,L9=36e5,MB=1e3;function DB(e,t){gt(2,arguments);var n=C4(e),r=C4(t);return n.getTime()===r.getTime()}function Ll(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ll=function(n){return typeof n}:Ll=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ll(e)}function FB(e){return gt(1,arguments),e instanceof Date||Ll(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function RB(e){if(gt(1,arguments),!FB(e)&&typeof e!="number")return!1;var t=Wt(e);return!isNaN(Number(t))}function LB(e,t){return gt(2,arguments),Wt(e).getTime()-Wt(t).getTime()}var E4={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},jB="trunc";function zB(e){return e?E4[e]:E4[jB]}function VB(e,t,n){gt(2,arguments);var r=LB(e,t)/L9;return zB(n?.roundingMethod)(r)}function j9(e,t){gt(2,arguments);var n=Tn(t);return PB(e,-n)}var UB=864e5;function BB(e){gt(1,arguments);var t=Wt(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/UB)+1}function ca(e){gt(1,arguments);var t=1,n=Wt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function z9(e){gt(1,arguments);var t=Wt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ca(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ca(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function HB(e){gt(1,arguments);var t=z9(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ca(n);return r}var qB=6048e5;function V9(e){gt(1,arguments);var t=Wt(e),n=ca(t).getTime()-HB(t).getTime();return Math.round(n/qB)+1}function uo(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Ea(),u=Tn((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.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||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Wt(e),h=f.getUTCDay(),p=(h<u?7:0)+h-u;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function Hh(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Wt(e),u=c.getUTCFullYear(),f=Ea(),h=Tn((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,h),p.setUTCHours(0,0,0,0);var v=uo(p,t),$=new Date(0);$.setUTCFullYear(u,0,h),$.setUTCHours(0,0,0,0);var k=uo($,t);return c.getTime()>=v.getTime()?u+1:c.getTime()>=k.getTime()?u:u-1}function WB(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Ea(),u=Tn((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.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||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Hh(e,t),h=new Date(0);h.setUTCFullYear(f,0,u),h.setUTCHours(0,0,0,0);var p=uo(h,t);return p}var GB=6048e5;function U9(e,t){gt(1,arguments);var n=Wt(e),r=uo(n,t).getTime()-WB(n,t).getTime();return Math.round(r/GB)+1}function et(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var QB={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return et(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):et(r+1,2)},d:function(t,n){return et(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 et(t.getUTCHours()%12||12,n.length)},H:function(t,n){return et(t.getUTCHours(),n.length)},m:function(t,n){return et(t.getUTCMinutes(),n.length)},s:function(t,n){return et(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return et(o,n.length)}};const ni=QB;var xo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},KB={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(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ni.y(t,n)},Y:function(t,n,r,i){var o=Hh(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return et(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):et(a,n.length)},R:function(t,n){var r=z9(t);return et(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return et(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 et(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 et(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 ni.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 et(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 o=U9(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):et(o,n.length)},I:function(t,n,r){var i=V9(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):et(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ni.d(t,n)},D:function(t,n,r){var i=BB(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):et(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 o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return et(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return et(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return et(o,n.length);case"io":return r.ordinalNumber(o,{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(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=xo.noon:i===0?o=xo.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=xo.evening:i>=12?o=xo.afternoon:i>=4?o=xo.morning:o=xo.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{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 ni.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ni.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):et(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):et(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ni.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ni.s(t,n)},S:function(t,n){return ni.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return O4(a);case"XXXX":case"XX":return ji(a);case"XXXXX":case"XXX":default:return ji(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return O4(a);case"xxxx":case"xx":return ji(a);case"xxxxx":case"xxx":default:return ji(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+S4(a,":");case"OOOO":default:return"GMT"+ji(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+S4(a,":");case"zzzz":default:return"GMT"+ji(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return et(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return et(a,n.length)}};function S4(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+et(o,2)}function O4(e,t){if(e%60===0){var n=e>0?"-":"+";return n+et(Math.abs(e)/60,2)}return ji(e,t)}function ji(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=et(Math.floor(i/60),2),a=et(i%60,2);return r+o+n+a}const YB=KB;var T4=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"})}},B9=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"})}},ZB=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return T4(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",T4(i,n)).replace("{{time}}",B9(o,n))},XB={p:B9,P:ZB};const y2=XB;var JB=["D","DD"],eH=["YY","YYYY"];function H9(e){return JB.indexOf(e)!==-1}function q9(e){return eH.indexOf(e)!==-1}function ic(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 tH={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"}},nH=function(t,n,r){var i,o=tH[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const rH=nH;function I0(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 iH={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sH={date:I0({formats:iH,defaultWidth:"full"}),time:I0({formats:oH,defaultWidth:"full"}),dateTime:I0({formats:aH,defaultWidth:"full"})};const lH=sH;var dH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},cH=function(t,n,r,i){return dH[t]};const uH=cH;function Ha(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var fH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pH={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"]},mH={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"]},gH={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"}},vH={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"}},yH=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"},bH={ordinalNumber:yH,era:Ha({values:fH,defaultWidth:"wide"}),quarter:Ha({values:hH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ha({values:pH,defaultWidth:"wide"}),day:Ha({values:mH,defaultWidth:"wide"}),dayPeriod:Ha({values:gH,defaultWidth:"wide",formattingValues:vH,defaultFormattingWidth:"wide"})};const $H=bH;function qa(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],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?_H(s,function(u){return u.test(a)}):wH(s,function(u){return u.test(a)}),d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function wH(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function _H(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function xH(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var kH=/^(\d+)(th|st|nd|rd)?/i,CH=/\d+/i,EH={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},SH={any:[/^b/i,/^(a|c)/i]},OH={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},NH={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},PH={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]},AH={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},IH={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]},MH={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},DH={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}},FH={ordinalNumber:xH({matchPattern:kH,parsePattern:CH,valueCallback:function(t){return parseInt(t,10)}}),era:qa({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:qa({matchPatterns:OH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qa({matchPatterns:NH,defaultMatchWidth:"wide",parsePatterns:PH,defaultParseWidth:"any"}),day:qa({matchPatterns:AH,defaultMatchWidth:"wide",parsePatterns:IH,defaultParseWidth:"any"}),dayPeriod:qa({matchPatterns:MH,defaultMatchWidth:"any",parsePatterns:DH,defaultParseWidth:"any"})};const RH=FH;var LH={code:"en-US",formatDistance:rH,formatLong:lH,formatRelative:uH,localize:$H,match:RH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const W9=LH;var jH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VH=/^'([^]*?)'?$/,UH=/''/g,BH=/[a-zA-Z]/;function qh(e,t,n){var r,i,o,a,s,l,d,c,u,f,h,p,v,$,k,_,y,x;gt(2,arguments);var O=String(t),N=Ea(),P=(r=(i=n?.locale)!==null&&i!==void 0?i:N.locale)!==null&&r!==void 0?r:W9,A=Tn((o=(a=(s=(l=n?.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:N.firstWeekContainsDate)!==null&&a!==void 0?a:(u=N.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=Tn((h=(p=(v=($=n?.weekStartsOn)!==null&&$!==void 0?$:n==null||(k=n.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&v!==void 0?v:N.weekStartsOn)!==null&&p!==void 0?p:(y=N.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var U=Wt(e);if(!RB(U))throw new RangeError("Invalid time value");var W=R9(U),R=j9(U,W),L={firstWeekContainsDate:A,weekStartsOn:j,locale:P,_originalDate:U},q=O.match(zH).map(function(I){var ne=I[0];if(ne==="p"||ne==="P"){var ie=y2[ne];return ie(I,P.formatLong)}return I}).join("").match(jH).map(function(I){if(I==="''")return"'";var ne=I[0];if(ne==="'")return HH(I);var ie=YB[ne];if(ie)return!(n!=null&&n.useAdditionalWeekYearTokens)&&q9(I)&&ic(I,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&H9(I)&&ic(I,t,String(e)),ie(R,I,P.localize,L);if(ne.match(BH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return I}).join("");return q}function HH(e){var t=e.match(VH);return t?t[1].replace(UH,"'"):e}function qH(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 jl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jl=function(n){return typeof n}:jl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jl(e)}function G9(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&&b2(e,t)}function b2(e,t){return b2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},b2(e,t)}function Q9(e){var t=GH();return function(){var r=oc(e),i;if(t){var o=oc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return WH(this,i)}}function WH(e,t){return t&&(jl(t)==="object"||typeof t=="function")?t:$2(e)}function $2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GH(){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 oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oc(e)}function Wh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gh(e,t,n){return t&&N4(e.prototype,t),n&&N4(e,n),e}function w2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=10,K9=function(){function e(){Wh(this,e),w2(this,"subPriority",0)}return Gh(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),KH=function(e){G9(n,e);var t=Q9(n);function n(r,i,o,a,s){var l;return Wh(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return Gh(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n}(K9),YH=function(e){G9(n,e);var t=Q9(n);function n(){var r;Wh(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),w2($2(r),"priority",QH),w2($2(r),"subPriority",-1),r}return Gh(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n}(K9);function ZH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XH(e,t,n){return t&&P4(e.prototype,t),n&&P4(e,n),e}var Ye=function(){function e(){ZH(this,e)}return XH(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new KH(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}();function zl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zl=function(n){return typeof n}:zl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zl(e)}function JH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eq(e,t,n){return t&&A4(e.prototype,t),n&&A4(e,n),e}function tq(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&&_2(e,t)}function _2(e,t){return _2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_2(e,t)}function nq(e){var t=iq();return function(){var r=ac(e),i;if(t){var o=ac(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rq(this,i)}}function rq(e,t){return t&&(zl(t)==="object"||typeof t=="function")?t:x2(e)}function x2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iq(){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 ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ac(e)}function I4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oq=function(e){tq(n,e);var t=nq(n);function n(){var r;JH(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),I4(x2(r),"priority",140),I4(x2(r),"incompatibleTokens",["R","u","t","T"]),r}return eq(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye),At={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},wr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function It(e,t){return e&&{value:t(e.value),rest:e.rest}}function wt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function _r(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*L9+o*IB+a*MB),rest:t.slice(n[0].length)}}function Y9(e){return wt(At.anyDigitsSigned,e)}function Nt(e,t){switch(e){case 1:return wt(At.singleDigit,t);case 2:return wt(At.twoDigits,t);case 3:return wt(At.threeDigits,t);case 4:return wt(At.fourDigits,t);default:return wt(new RegExp("^\\d{1,"+e+"}"),t)}}function sc(e,t){switch(e){case 1:return wt(At.singleDigitSigned,t);case 2:return wt(At.twoDigitsSigned,t);case 3:return wt(At.threeDigitsSigned,t);case 4:return wt(At.fourDigitsSigned,t);default:return wt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Z9(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function X9(e){return e%400===0||e%4===0&&e%100!==0}function Vl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vl=function(n){return typeof n}:Vl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vl(e)}function aq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sq(e,t,n){return t&&M4(e.prototype,t),n&&M4(e,n),e}function lq(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&&k2(e,t)}function k2(e,t){return k2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},k2(e,t)}function dq(e){var t=uq();return function(){var r=lc(e),i;if(t){var o=lc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return cq(this,i)}}function cq(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:C2(e)}function C2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uq(){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 lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lc(e)}function D4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fq=function(e){lq(n,e);var t=dq(n);function n(){var r;aq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),D4(C2(r),"priority",130),D4(C2(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return sq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return It(Nt(4,i),s);case"yo":return It(a.ordinalNumber(i,{unit:"year"}),s);default:return It(Nt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=Z9(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Ul(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ul=function(n){return typeof n}:Ul=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ul(e)}function hq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pq(e,t,n){return t&&F4(e.prototype,t),n&&F4(e,n),e}function mq(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&&E2(e,t)}function E2(e,t){return E2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},E2(e,t)}function gq(e){var t=yq();return function(){var r=dc(e),i;if(t){var o=dc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vq(this,i)}}function vq(e,t){return t&&(Ul(t)==="object"||typeof t=="function")?t:S2(e)}function S2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yq(){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 dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dc(e)}function R4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bq=function(e){mq(n,e);var t=gq(n);function n(){var r;hq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),R4(S2(r),"priority",130),R4(S2(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return pq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return It(Nt(4,i),s);case"Yo":return It(a.ordinalNumber(i,{unit:"year"}),s);default:return It(Nt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=Hh(i,s);if(a.isTwoDigitYear){var d=Z9(a.year,l);return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),uo(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),uo(i,s)}}]),n}(Ye);function Bl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bl=function(n){return typeof n}:Bl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bl(e)}function $q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wq(e,t,n){return t&&L4(e.prototype,t),n&&L4(e,n),e}function _q(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&&O2(e,t)}function O2(e,t){return O2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},O2(e,t)}function xq(e){var t=Cq();return function(){var r=cc(e),i;if(t){var o=cc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kq(this,i)}}function kq(e,t){return t&&(Bl(t)==="object"||typeof t=="function")?t:T2(e)}function T2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cq(){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 cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cc(e)}function j4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eq=function(e){_q(n,e);var t=xq(n);function n(){var r;$q(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),j4(T2(r),"priority",130),j4(T2(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return wq(n,[{key:"parse",value:function(i,o){return sc(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),ca(s)}}]),n}(Ye);function Hl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hl=function(n){return typeof n}:Hl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hl(e)}function Sq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oq(e,t,n){return t&&z4(e.prototype,t),n&&z4(e,n),e}function Tq(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&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},N2(e,t)}function Nq(e){var t=Aq();return function(){var r=uc(e),i;if(t){var o=uc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pq(this,i)}}function Pq(e,t){return t&&(Hl(t)==="object"||typeof t=="function")?t:P2(e)}function P2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aq(){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 uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uc(e)}function V4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iq=function(e){Tq(n,e);var t=Nq(n);function n(){var r;Sq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),V4(P2(r),"priority",130),V4(P2(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Oq(n,[{key:"parse",value:function(i,o){return sc(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function ql(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ql=function(n){return typeof n}:ql=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ql(e)}function Mq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dq(e,t,n){return t&&U4(e.prototype,t),n&&U4(e,n),e}function Fq(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&&A2(e,t)}function A2(e,t){return A2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},A2(e,t)}function Rq(e){var t=jq();return function(){var r=fc(e),i;if(t){var o=fc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lq(this,i)}}function Lq(e,t){return t&&(ql(t)==="object"||typeof t=="function")?t:I2(e)}function I2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jq(){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 fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fc(e)}function B4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zq=function(e){Fq(n,e);var t=Rq(n);function n(){var r;Mq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),B4(I2(r),"priority",120),B4(I2(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Dq(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Nt(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Wl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wl=function(n){return typeof n}:Wl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wl(e)}function Vq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uq(e,t,n){return t&&H4(e.prototype,t),n&&H4(e,n),e}function Bq(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&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M2(e,t)}function Hq(e){var t=Wq();return function(){var r=hc(e),i;if(t){var o=hc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qq(this,i)}}function qq(e,t){return t&&(Wl(t)==="object"||typeof t=="function")?t:D2(e)}function D2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wq(){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 hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hc(e)}function q4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gq=function(e){Bq(n,e);var t=Hq(n);function n(){var r;Vq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),q4(D2(r),"priority",120),q4(D2(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Uq(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Nt(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Gl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gl=function(n){return typeof n}:Gl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gl(e)}function Qq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kq(e,t,n){return t&&W4(e.prototype,t),n&&W4(e,n),e}function Yq(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&&F2(e,t)}function F2(e,t){return F2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},F2(e,t)}function Zq(e){var t=Jq();return function(){var r=pc(e),i;if(t){var o=pc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xq(this,i)}}function Xq(e,t){return t&&(Gl(t)==="object"||typeof t=="function")?t:R2(e)}function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jq(){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 pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pc(e)}function G4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eW=function(e){Yq(n,e);var t=Zq(n);function n(){var r;Qq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),G4(R2(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),G4(R2(r),"priority",110),r}return Kq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d-1};switch(o){case"M":return It(wt(At.month,i),s);case"MM":return It(Nt(2,i),s);case"Mo":return It(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Ql(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ql=function(n){return typeof n}:Ql=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ql(e)}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nW(e,t,n){return t&&Q4(e.prototype,t),n&&Q4(e,n),e}function rW(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&&L2(e,t)}function L2(e,t){return L2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},L2(e,t)}function iW(e){var t=aW();return function(){var r=mc(e),i;if(t){var o=mc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oW(this,i)}}function oW(e,t){return t&&(Ql(t)==="object"||typeof t=="function")?t:j2(e)}function j2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aW(){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 mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mc(e)}function K4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sW=function(e){rW(n,e);var t=iW(n);function n(){var r;tW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),K4(j2(r),"priority",110),K4(j2(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return nW(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d-1};switch(o){case"L":return It(wt(At.month,i),s);case"LL":return It(Nt(2,i),s);case"Lo":return It(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function lW(e,t,n){gt(2,arguments);var r=Wt(e),i=Tn(t),o=U9(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Kl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kl=function(n){return typeof n}:Kl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kl(e)}function dW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cW(e,t,n){return t&&Y4(e.prototype,t),n&&Y4(e,n),e}function uW(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&&z2(e,t)}function z2(e,t){return z2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},z2(e,t)}function fW(e){var t=pW();return function(){var r=gc(e),i;if(t){var o=gc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hW(this,i)}}function hW(e,t){return t&&(Kl(t)==="object"||typeof t=="function")?t:V2(e)}function V2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pW(){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 gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gc(e)}function Z4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mW=function(e){uW(n,e);var t=fW(n);function n(){var r;dW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Z4(V2(r),"priority",100),Z4(V2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return cW(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return wt(At.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return uo(lW(i,a,s),s)}}]),n}(Ye);function gW(e,t){gt(2,arguments);var n=Wt(e),r=Tn(t),i=V9(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Yl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yl=function(n){return typeof n}:Yl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yl(e)}function vW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yW(e,t,n){return t&&X4(e.prototype,t),n&&X4(e,n),e}function bW(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&&U2(e,t)}function U2(e,t){return U2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},U2(e,t)}function $W(e){var t=_W();return function(){var r=vc(e),i;if(t){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wW(this,i)}}function wW(e,t){return t&&(Yl(t)==="object"||typeof t=="function")?t:B2(e)}function B2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _W(){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 vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vc(e)}function J4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xW=function(e){bW(n,e);var t=$W(n);function n(){var r;vW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J4(B2(r),"priority",100),J4(B2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return yW(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return wt(At.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return ca(gW(i,a))}}]),n}(Ye);function Zl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zl=function(n){return typeof n}:Zl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zl(e)}function kW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CW(e,t,n){return t&&em(e.prototype,t),n&&em(e,n),e}function EW(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&&H2(e,t)}function H2(e,t){return H2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},H2(e,t)}function SW(e){var t=TW();return function(){var r=yc(e),i;if(t){var o=yc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OW(this,i)}}function OW(e,t){return t&&(Zl(t)==="object"||typeof t=="function")?t:Xl(e)}function Xl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TW(){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 yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yc(e)}function M0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NW=[31,28,31,30,31,30,31,31,30,31,30,31],PW=[31,29,31,30,31,30,31,31,30,31,30,31],AW=function(e){EW(n,e);var t=SW(n);function n(){var r;kW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),M0(Xl(r),"priority",90),M0(Xl(r),"subPriority",1),M0(Xl(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return CW(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return wt(At.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=X9(a),l=i.getUTCMonth();return s?o>=1&&o<=PW[l]:o>=1&&o<=NW[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Jl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jl=function(n){return typeof n}:Jl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jl(e)}function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function MW(e,t,n){return t&&tm(e.prototype,t),n&&tm(e,n),e}function DW(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&&q2(e,t)}function q2(e,t){return q2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},q2(e,t)}function FW(e){var t=LW();return function(){var r=bc(e),i;if(t){var o=bc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return RW(this,i)}}function RW(e,t){return t&&(Jl(t)==="object"||typeof t=="function")?t:ed(e)}function ed(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LW(){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 bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bc(e)}function D0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jW=function(e){DW(n,e);var t=FW(n);function n(){var r;IW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),D0(ed(r),"priority",90),D0(ed(r),"subpriority",1),D0(ed(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return MW(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return wt(At.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=X9(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Kh(e,t,n){var r,i,o,a,s,l,d,c;gt(2,arguments);var u=Ea(),f=Tn((r=(i=(o=(a=n?.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&i!==void 0?i:(d=u.locale)===null||d===void 0||(c=d.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 h=Wt(e),p=Tn(t),v=h.getUTCDay(),$=p%7,k=($+7)%7,_=(k<f?7:0)+p-v;return h.setUTCDate(h.getUTCDate()+_),h}function td(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?td=function(n){return typeof n}:td=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},td(e)}function zW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function VW(e,t,n){return t&&nm(e.prototype,t),n&&nm(e,n),e}function UW(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&&W2(e,t)}function W2(e,t){return W2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},W2(e,t)}function BW(e){var t=qW();return function(){var r=$c(e),i;if(t){var o=$c(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HW(this,i)}}function HW(e,t){return t&&(td(t)==="object"||typeof t=="function")?t:G2(e)}function G2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qW(){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 $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$c(e)}function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WW=function(e){UW(n,e);var t=BW(n);function n(){var r;zW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),rm(G2(r),"priority",90),rm(G2(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return VW(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nd=function(n){return typeof n}:nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nd(e)}function GW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QW(e,t,n){return t&&im(e.prototype,t),n&&im(e,n),e}function KW(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&&Q2(e,t)}function Q2(e,t){return Q2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Q2(e,t)}function YW(e){var t=XW();return function(){var r=wc(e),i;if(t){var o=wc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ZW(this,i)}}function ZW(e,t){return t&&(nd(t)==="object"||typeof t=="function")?t:K2(e)}function K2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XW(){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 wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wc(e)}function om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JW=function(e){KW(n,e);var t=YW(n);function n(){var r;GW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),om(K2(r),"priority",90),om(K2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return QW(n,[{key:"parse",value:function(i,o,a,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return It(Nt(o.length,i),l);case"eo":return It(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function rd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rd=function(n){return typeof n}:rd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rd(e)}function eG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tG(e,t,n){return t&&am(e.prototype,t),n&&am(e,n),e}function nG(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&&Y2(e,t)}function Y2(e,t){return Y2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Y2(e,t)}function rG(e){var t=oG();return function(){var r=_c(e),i;if(t){var o=_c(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iG(this,i)}}function iG(e,t){return t&&(rd(t)==="object"||typeof t=="function")?t:Z2(e)}function Z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oG(){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 _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_c(e)}function sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aG=function(e){nG(n,e);var t=rG(n);function n(){var r;eG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),sm(Z2(r),"priority",90),sm(Z2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return tG(n,[{key:"parse",value:function(i,o,a,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return It(Nt(o.length,i),l);case"co":return It(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function sG(e,t){gt(2,arguments);var n=Tn(t);n%7===0&&(n=n-7);var r=1,i=Wt(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?id=function(n){return typeof n}:id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},id(e)}function lG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dG(e,t,n){return t&&lm(e.prototype,t),n&&lm(e,n),e}function cG(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&&X2(e,t)}function X2(e,t){return X2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},X2(e,t)}function uG(e){var t=hG();return function(){var r=xc(e),i;if(t){var o=xc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fG(this,i)}}function fG(e,t){return t&&(id(t)==="object"||typeof t=="function")?t:J2(e)}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hG(){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 xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xc(e)}function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pG=function(e){cG(n,e);var t=uG(n);function n(){var r;lG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),dm(J2(r),"priority",90),dm(J2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return dG(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return Nt(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return It(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return It(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return It(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return It(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=sG(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?od=function(n){return typeof n}:od=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},od(e)}function mG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gG(e,t,n){return t&&cm(e.prototype,t),n&&cm(e,n),e}function vG(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&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ef(e,t)}function yG(e){var t=$G();return function(){var r=kc(e),i;if(t){var o=kc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bG(this,i)}}function bG(e,t){return t&&(od(t)==="object"||typeof t=="function")?t:tf(e)}function tf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $G(){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 kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kc(e)}function um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wG=function(e){vG(n,e);var t=yG(n);function n(){var r;mG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),um(tf(r),"priority",80),um(tf(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return gG(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ad=function(n){return typeof n}:ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ad(e)}function _G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xG(e,t,n){return t&&fm(e.prototype,t),n&&fm(e,n),e}function kG(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nf(e,t)}function CG(e){var t=SG();return function(){var r=Cc(e),i;if(t){var o=Cc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return EG(this,i)}}function EG(e,t){return t&&(ad(t)==="object"||typeof t=="function")?t:rf(e)}function rf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SG(){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 Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cc(e)}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OG=function(e){kG(n,e);var t=CG(n);function n(){var r;_G(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),hm(rf(r),"priority",80),hm(rf(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return xG(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function sd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sd=function(n){return typeof n}:sd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sd(e)}function TG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NG(e,t,n){return t&&pm(e.prototype,t),n&&pm(e,n),e}function PG(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&&of(e,t)}function of(e,t){return of=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},of(e,t)}function AG(e){var t=MG();return function(){var r=Ec(e),i;if(t){var o=Ec(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return IG(this,i)}}function IG(e,t){return t&&(sd(t)==="object"||typeof t=="function")?t:af(e)}function af(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MG(){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 Ec(e){return Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ec(e)}function mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DG=function(e){PG(n,e);var t=AG(n);function n(){var r;TG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),mm(af(r),"priority",80),mm(af(r),"incompatibleTokens",["a","b","t","T"]),r}return NG(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ld=function(n){return typeof n}:ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ld(e)}function FG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RG(e,t,n){return t&&gm(e.prototype,t),n&&gm(e,n),e}function LG(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&&sf(e,t)}function sf(e,t){return sf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sf(e,t)}function jG(e){var t=VG();return function(){var r=Sc(e),i;if(t){var o=Sc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zG(this,i)}}function zG(e,t){return t&&(ld(t)==="object"||typeof t=="function")?t:lf(e)}function lf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VG(){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 Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sc(e)}function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UG=function(e){LG(n,e);var t=jG(n);function n(){var r;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),vm(lf(r),"priority",70),vm(lf(r),"incompatibleTokens",["H","K","k","t","T"]),r}return RG(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return wt(At.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function dd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dd=function(n){return typeof n}:dd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dd(e)}function BG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HG(e,t,n){return t&&ym(e.prototype,t),n&&ym(e,n),e}function qG(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&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},df(e,t)}function WG(e){var t=QG();return function(){var r=Oc(e),i;if(t){var o=Oc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return GG(this,i)}}function GG(e,t){return t&&(dd(t)==="object"||typeof t=="function")?t:cf(e)}function cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QG(){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 Oc(e){return Oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Oc(e)}function bm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KG=function(e){qG(n,e);var t=WG(n);function n(){var r;BG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),bm(cf(r),"priority",70),bm(cf(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return HG(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return wt(At.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function cd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cd=function(n){return typeof n}:cd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cd(e)}function YG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZG(e,t,n){return t&&$m(e.prototype,t),n&&$m(e,n),e}function XG(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&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},uf(e,t)}function JG(e){var t=tQ();return function(){var r=Tc(e),i;if(t){var o=Tc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return eQ(this,i)}}function eQ(e,t){return t&&(cd(t)==="object"||typeof t=="function")?t:ff(e)}function ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tQ(){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 Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tc(e)}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nQ=function(e){XG(n,e);var t=JG(n);function n(){var r;YG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),wm(ff(r),"priority",70),wm(ff(r),"incompatibleTokens",["h","H","k","t","T"]),r}return ZG(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return wt(At.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function ud(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ud=function(n){return typeof n}:ud=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ud(e)}function rQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iQ(e,t,n){return t&&_m(e.prototype,t),n&&_m(e,n),e}function oQ(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&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hf(e,t)}function aQ(e){var t=lQ();return function(){var r=Nc(e),i;if(t){var o=Nc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sQ(this,i)}}function sQ(e,t){return t&&(ud(t)==="object"||typeof t=="function")?t:pf(e)}function pf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lQ(){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 Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nc(e)}function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dQ=function(e){oQ(n,e);var t=aQ(n);function n(){var r;rQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),xm(pf(r),"priority",70),xm(pf(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return iQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return wt(At.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n}(Ye);function fd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fd=function(n){return typeof n}:fd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fd(e)}function cQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function km(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uQ(e,t,n){return t&&km(e.prototype,t),n&&km(e,n),e}function fQ(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&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},mf(e,t)}function hQ(e){var t=mQ();return function(){var r=Pc(e),i;if(t){var o=Pc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pQ(this,i)}}function pQ(e,t){return t&&(fd(t)==="object"||typeof t=="function")?t:gf(e)}function gf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mQ(){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 Pc(e){return Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pc(e)}function Cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gQ=function(e){fQ(n,e);var t=hQ(n);function n(){var r;cQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Cm(gf(r),"priority",60),Cm(gf(r),"incompatibleTokens",["t","T"]),r}return uQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return wt(At.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(Ye);function hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hd=function(n){return typeof n}:hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hd(e)}function vQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yQ(e,t,n){return t&&Em(e.prototype,t),n&&Em(e,n),e}function bQ(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&&vf(e,t)}function vf(e,t){return vf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vf(e,t)}function $Q(e){var t=_Q();return function(){var r=Ac(e),i;if(t){var o=Ac(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wQ(this,i)}}function wQ(e,t){return t&&(hd(t)==="object"||typeof t=="function")?t:yf(e)}function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Q(){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 Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ac(e)}function Sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xQ=function(e){bQ(n,e);var t=$Q(n);function n(){var r;vQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Sm(yf(r),"priority",50),Sm(yf(r),"incompatibleTokens",["t","T"]),r}return yQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return wt(At.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(Ye);function pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pd=function(n){return typeof n}:pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pd(e)}function kQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CQ(e,t,n){return t&&Om(e.prototype,t),n&&Om(e,n),e}function EQ(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&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bf(e,t)}function SQ(e){var t=TQ();return function(){var r=Ic(e),i;if(t){var o=Ic(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OQ(this,i)}}function OQ(e,t){return t&&(pd(t)==="object"||typeof t=="function")?t:$f(e)}function $f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TQ(){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 Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ic(e)}function Tm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NQ=function(e){EQ(n,e);var t=SQ(n);function n(){var r;kQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Tm($f(r),"priority",30),Tm($f(r),"incompatibleTokens",["t","T"]),r}return CQ(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return It(Nt(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n}(Ye);function md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?md=function(n){return typeof n}:md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},md(e)}function PQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function AQ(e,t,n){return t&&Nm(e.prototype,t),n&&Nm(e,n),e}function IQ(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&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wf(e,t)}function MQ(e){var t=FQ();return function(){var r=Mc(e),i;if(t){var o=Mc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return DQ(this,i)}}function DQ(e,t){return t&&(md(t)==="object"||typeof t=="function")?t:_f(e)}function _f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FQ(){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 Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mc(e)}function Pm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RQ=function(e){IQ(n,e);var t=MQ(n);function n(){var r;PQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Pm(_f(r),"priority",10),Pm(_f(r),"incompatibleTokens",["t","T","x"]),r}return AQ(n,[{key:"parse",value:function(i,o){switch(o){case"X":return _r(wr.basicOptionalMinutes,i);case"XX":return _r(wr.basic,i);case"XXXX":return _r(wr.basicOptionalSeconds,i);case"XXXXX":return _r(wr.extendedOptionalSeconds,i);case"XXX":default:return _r(wr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Ye);function gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gd=function(n){return typeof n}:gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gd(e)}function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jQ(e,t,n){return t&&Am(e.prototype,t),n&&Am(e,n),e}function zQ(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&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xf(e,t)}function VQ(e){var t=BQ();return function(){var r=Dc(e),i;if(t){var o=Dc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return UQ(this,i)}}function UQ(e,t){return t&&(gd(t)==="object"||typeof t=="function")?t:kf(e)}function kf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BQ(){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 Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dc(e)}function Im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HQ=function(e){zQ(n,e);var t=VQ(n);function n(){var r;LQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Im(kf(r),"priority",10),Im(kf(r),"incompatibleTokens",["t","T","X"]),r}return jQ(n,[{key:"parse",value:function(i,o){switch(o){case"x":return _r(wr.basicOptionalMinutes,i);case"xx":return _r(wr.basic,i);case"xxxx":return _r(wr.basicOptionalSeconds,i);case"xxxxx":return _r(wr.extendedOptionalSeconds,i);case"xxx":default:return _r(wr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Ye);function vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vd=function(n){return typeof n}:vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vd(e)}function qQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WQ(e,t,n){return t&&Mm(e.prototype,t),n&&Mm(e,n),e}function GQ(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&&Cf(e,t)}function Cf(e,t){return Cf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cf(e,t)}function QQ(e){var t=YQ();return function(){var r=Fc(e),i;if(t){var o=Fc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return KQ(this,i)}}function KQ(e,t){return t&&(vd(t)==="object"||typeof t=="function")?t:Ef(e)}function Ef(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YQ(){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 Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fc(e)}function Dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZQ=function(e){GQ(n,e);var t=QQ(n);function n(){var r;qQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Dm(Ef(r),"priority",40),Dm(Ef(r),"incompatibleTokens","*"),r}return WQ(n,[{key:"parse",value:function(i){return Y9(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(Ye);function yd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yd=function(n){return typeof n}:yd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yd(e)}function XQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JQ(e,t,n){return t&&Fm(e.prototype,t),n&&Fm(e,n),e}function eK(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&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Sf(e,t)}function tK(e){var t=rK();return function(){var r=Rc(e),i;if(t){var o=Rc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nK(this,i)}}function nK(e,t){return t&&(yd(t)==="object"||typeof t=="function")?t:Of(e)}function Of(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rK(){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 Rc(e){return Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rc(e)}function Rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iK=function(e){eK(n,e);var t=tK(n);function n(){var r;XQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Rm(Of(r),"priority",20),Rm(Of(r),"incompatibleTokens","*"),r}return JQ(n,[{key:"parse",value:function(i){return Y9(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(Ye),oK={G:new oq,y:new fq,Y:new bq,R:new Eq,u:new Iq,Q:new zq,q:new Gq,M:new eW,L:new sW,w:new mW,I:new xW,d:new AW,D:new jW,E:new WW,e:new JW,c:new aG,i:new pG,a:new wG,b:new OG,B:new DG,h:new UG,H:new KG,K:new nQ,k:new dQ,m:new gQ,s:new xQ,S:new NQ,X:new RQ,x:new HQ,t:new ZQ,T:new iK};function bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bd=function(n){return typeof n}:bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bd(e)}function Lm(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=aK(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(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2777
|
+
`,TB=Q('<sl-alert variant="warning" open><sl-icon slot="icon" name="exclamation-triangle"></sl-icon><strong></strong><br></sl-alert>'),NB=Q('<div class="w-full flex justify-center"></div>');qt("https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.4.0/dist/");function k4(e,t){return e.every(n=>t.includes(n))}function A0(e){return(()=>{const t=se(()=>document.importNode(TB,!0)),n=t.firstChild,r=n.nextSibling;return t._$owner=ce(),n._$owner=ce(),T(r,()=>e.message),t})()}const F9=e=>{const t=Fe({permissions:[]},e),n=Nn(),[r,i]=H(n?.authentication.state.isLoading||!1),[o,a]=H(n?.authentication.state.isAuthenticated||!1),[s,l]=H(n?.authentication.state.isInOrg||!1),[d,c]=H(k4(t.permissions,n?.authentication.state.permissions||[]));pe(()=>{i(n?.authentication.state.isLoading||!1)}),pe(()=>{a(n?.authentication.state.isAuthenticated||!1)}),pe(()=>{l(n?.authentication.state.isInOrg||!1)}),pe(()=>{c(k4(t.permissions,n?.authentication.state.permissions||[]))});const u=G(()=>o()&&s()&&d());return g(oe,{get when(){return n&&!r()},get children(){return g(oe,{get when(){return u()},get fallback(){return g(oe,{get when(){return!o()},get fallback(){return g(oe,{get when(){return!s()},get fallback(){return g(A0,{message:"You are not authorized to prescribe"})},get children(){return g(A0,{message:"You tried logging in with an account not associated with any organizations. Please check your email for an invite, or ask your administrator for assistance."})}})},get children(){return g(oe,{get when(){return n?.autoLogin},get fallback(){return g(A0,{message:"You are not signed in"})},get children(){const f=NB.cloneNode(!0);return T(f,g(Qr,{color:"green"})),f}})}})},get children(){return t.children}})}})};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 gt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rl=function(n){return typeof n}:Rl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rl(e)}function Wt(e){gt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Rl(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 PB(e,t){gt(2,arguments);var n=Wt(e).getTime(),r=Tn(t);return new Date(n+r)}var AB={};function Ea(){return AB}function R9(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()}function C4(e){gt(1,arguments);var t=Wt(e);return t.setHours(0,0,0,0),t}var IB=6e4,L9=36e5,MB=1e3;function DB(e,t){gt(2,arguments);var n=C4(e),r=C4(t);return n.getTime()===r.getTime()}function Ll(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ll=function(n){return typeof n}:Ll=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ll(e)}function FB(e){return gt(1,arguments),e instanceof Date||Ll(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function RB(e){if(gt(1,arguments),!FB(e)&&typeof e!="number")return!1;var t=Wt(e);return!isNaN(Number(t))}function LB(e,t){return gt(2,arguments),Wt(e).getTime()-Wt(t).getTime()}var E4={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},jB="trunc";function zB(e){return e?E4[e]:E4[jB]}function VB(e,t,n){gt(2,arguments);var r=LB(e,t)/L9;return zB(n?.roundingMethod)(r)}function j9(e,t){gt(2,arguments);var n=Tn(t);return PB(e,-n)}var UB=864e5;function BB(e){gt(1,arguments);var t=Wt(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/UB)+1}function ca(e){gt(1,arguments);var t=1,n=Wt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function z9(e){gt(1,arguments);var t=Wt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ca(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ca(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function HB(e){gt(1,arguments);var t=z9(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ca(n);return r}var qB=6048e5;function V9(e){gt(1,arguments);var t=Wt(e),n=ca(t).getTime()-HB(t).getTime();return Math.round(n/qB)+1}function uo(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Ea(),u=Tn((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.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||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Wt(e),h=f.getUTCDay(),p=(h<u?7:0)+h-u;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function Hh(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Wt(e),u=c.getUTCFullYear(),f=Ea(),h=Tn((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,h),p.setUTCHours(0,0,0,0);var v=uo(p,t),$=new Date(0);$.setUTCFullYear(u,0,h),$.setUTCHours(0,0,0,0);var k=uo($,t);return c.getTime()>=v.getTime()?u+1:c.getTime()>=k.getTime()?u:u-1}function WB(e,t){var n,r,i,o,a,s,l,d;gt(1,arguments);var c=Ea(),u=Tn((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.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||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Hh(e,t),h=new Date(0);h.setUTCFullYear(f,0,u),h.setUTCHours(0,0,0,0);var p=uo(h,t);return p}var GB=6048e5;function U9(e,t){gt(1,arguments);var n=Wt(e),r=uo(n,t).getTime()-WB(n,t).getTime();return Math.round(r/GB)+1}function et(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var QB={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return et(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):et(r+1,2)},d:function(t,n){return et(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 et(t.getUTCHours()%12||12,n.length)},H:function(t,n){return et(t.getUTCHours(),n.length)},m:function(t,n){return et(t.getUTCMinutes(),n.length)},s:function(t,n){return et(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return et(o,n.length)}};const ni=QB;var xo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},KB={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(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return ni.y(t,n)},Y:function(t,n,r,i){var o=Hh(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return et(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):et(a,n.length)},R:function(t,n){var r=z9(t);return et(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return et(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 et(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 et(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 ni.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 et(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 o=U9(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):et(o,n.length)},I:function(t,n,r){var i=V9(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):et(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ni.d(t,n)},D:function(t,n,r){var i=BB(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):et(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 o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return et(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return et(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return et(o,n.length);case"io":return r.ordinalNumber(o,{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(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=xo.noon:i===0?o=xo.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=xo.evening:i>=12?o=xo.afternoon:i>=4?o=xo.morning:o=xo.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{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 ni.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ni.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):et(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):et(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ni.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ni.s(t,n)},S:function(t,n){return ni.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return O4(a);case"XXXX":case"XX":return ji(a);case"XXXXX":case"XXX":default:return ji(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return O4(a);case"xxxx":case"xx":return ji(a);case"xxxxx":case"xxx":default:return ji(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+S4(a,":");case"OOOO":default:return"GMT"+ji(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+S4(a,":");case"zzzz":default:return"GMT"+ji(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return et(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return et(a,n.length)}};function S4(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+et(o,2)}function O4(e,t){if(e%60===0){var n=e>0?"-":"+";return n+et(Math.abs(e)/60,2)}return ji(e,t)}function ji(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=et(Math.floor(i/60),2),a=et(i%60,2);return r+o+n+a}const YB=KB;var T4=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"})}},B9=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"})}},ZB=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return T4(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",T4(i,n)).replace("{{time}}",B9(o,n))},XB={p:B9,P:ZB};const y2=XB;var JB=["D","DD"],eH=["YY","YYYY"];function H9(e){return JB.indexOf(e)!==-1}function q9(e){return eH.indexOf(e)!==-1}function ic(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 tH={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"}},nH=function(t,n,r){var i,o=tH[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const rH=nH;function I0(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 iH={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sH={date:I0({formats:iH,defaultWidth:"full"}),time:I0({formats:oH,defaultWidth:"full"}),dateTime:I0({formats:aH,defaultWidth:"full"})};const lH=sH;var dH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},cH=function(t,n,r,i){return dH[t]};const uH=cH;function Ha(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var fH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pH={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"]},mH={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"]},gH={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"}},vH={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"}},yH=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"},bH={ordinalNumber:yH,era:Ha({values:fH,defaultWidth:"wide"}),quarter:Ha({values:hH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ha({values:pH,defaultWidth:"wide"}),day:Ha({values:mH,defaultWidth:"wide"}),dayPeriod:Ha({values:gH,defaultWidth:"wide",formattingValues:vH,defaultFormattingWidth:"wide"})};const $H=bH;function qa(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],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?_H(s,function(u){return u.test(a)}):wH(s,function(u){return u.test(a)}),d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function wH(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function _H(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function xH(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var kH=/^(\d+)(th|st|nd|rd)?/i,CH=/\d+/i,EH={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},SH={any:[/^b/i,/^(a|c)/i]},OH={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},NH={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},PH={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]},AH={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},IH={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]},MH={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},DH={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}},FH={ordinalNumber:xH({matchPattern:kH,parsePattern:CH,valueCallback:function(t){return parseInt(t,10)}}),era:qa({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:qa({matchPatterns:OH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qa({matchPatterns:NH,defaultMatchWidth:"wide",parsePatterns:PH,defaultParseWidth:"any"}),day:qa({matchPatterns:AH,defaultMatchWidth:"wide",parsePatterns:IH,defaultParseWidth:"any"}),dayPeriod:qa({matchPatterns:MH,defaultMatchWidth:"any",parsePatterns:DH,defaultParseWidth:"any"})};const RH=FH;var LH={code:"en-US",formatDistance:rH,formatLong:lH,formatRelative:uH,localize:$H,match:RH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const W9=LH;var jH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VH=/^'([^]*?)'?$/,UH=/''/g,BH=/[a-zA-Z]/;function qh(e,t,n){var r,i,o,a,s,l,d,c,u,f,h,p,v,$,k,_,y,x;gt(2,arguments);var O=String(t),N=Ea(),P=(r=(i=n?.locale)!==null&&i!==void 0?i:N.locale)!==null&&r!==void 0?r:W9,A=Tn((o=(a=(s=(l=n?.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:N.firstWeekContainsDate)!==null&&a!==void 0?a:(u=N.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=Tn((h=(p=(v=($=n?.weekStartsOn)!==null&&$!==void 0?$:n==null||(k=n.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&v!==void 0?v:N.weekStartsOn)!==null&&p!==void 0?p:(y=N.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var U=Wt(e);if(!RB(U))throw new RangeError("Invalid time value");var W=R9(U),R=j9(U,W),L={firstWeekContainsDate:A,weekStartsOn:j,locale:P,_originalDate:U},q=O.match(zH).map(function(I){var ne=I[0];if(ne==="p"||ne==="P"){var ie=y2[ne];return ie(I,P.formatLong)}return I}).join("").match(jH).map(function(I){if(I==="''")return"'";var ne=I[0];if(ne==="'")return HH(I);var ie=YB[ne];if(ie)return!(n!=null&&n.useAdditionalWeekYearTokens)&&q9(I)&&ic(I,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&H9(I)&&ic(I,t,String(e)),ie(R,I,P.localize,L);if(ne.match(BH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return I}).join("");return q}function HH(e){var t=e.match(VH);return t?t[1].replace(UH,"'"):e}function qH(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 jl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jl=function(n){return typeof n}:jl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jl(e)}function G9(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&&b2(e,t)}function b2(e,t){return b2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},b2(e,t)}function Q9(e){var t=GH();return function(){var r=oc(e),i;if(t){var o=oc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return WH(this,i)}}function WH(e,t){return t&&(jl(t)==="object"||typeof t=="function")?t:$2(e)}function $2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GH(){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 oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oc(e)}function Wh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gh(e,t,n){return t&&N4(e.prototype,t),n&&N4(e,n),e}function w2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=10,K9=function(){function e(){Wh(this,e),w2(this,"subPriority",0)}return Gh(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),KH=function(e){G9(n,e);var t=Q9(n);function n(r,i,o,a,s){var l;return Wh(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return Gh(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n}(K9),YH=function(e){G9(n,e);var t=Q9(n);function n(){var r;Wh(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),w2($2(r),"priority",QH),w2($2(r),"subPriority",-1),r}return Gh(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n}(K9);function ZH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XH(e,t,n){return t&&P4(e.prototype,t),n&&P4(e,n),e}var Ye=function(){function e(){ZH(this,e)}return XH(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new KH(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}();function zl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zl=function(n){return typeof n}:zl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zl(e)}function JH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eq(e,t,n){return t&&A4(e.prototype,t),n&&A4(e,n),e}function tq(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&&_2(e,t)}function _2(e,t){return _2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_2(e,t)}function nq(e){var t=iq();return function(){var r=ac(e),i;if(t){var o=ac(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rq(this,i)}}function rq(e,t){return t&&(zl(t)==="object"||typeof t=="function")?t:x2(e)}function x2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iq(){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 ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ac(e)}function I4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oq=function(e){tq(n,e);var t=nq(n);function n(){var r;JH(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),I4(x2(r),"priority",140),I4(x2(r),"incompatibleTokens",["R","u","t","T"]),r}return eq(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye),At={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},wr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function It(e,t){return e&&{value:t(e.value),rest:e.rest}}function wt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function _r(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*L9+o*IB+a*MB),rest:t.slice(n[0].length)}}function Y9(e){return wt(At.anyDigitsSigned,e)}function Nt(e,t){switch(e){case 1:return wt(At.singleDigit,t);case 2:return wt(At.twoDigits,t);case 3:return wt(At.threeDigits,t);case 4:return wt(At.fourDigits,t);default:return wt(new RegExp("^\\d{1,"+e+"}"),t)}}function sc(e,t){switch(e){case 1:return wt(At.singleDigitSigned,t);case 2:return wt(At.twoDigitsSigned,t);case 3:return wt(At.threeDigitsSigned,t);case 4:return wt(At.fourDigitsSigned,t);default:return wt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Z9(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function X9(e){return e%400===0||e%4===0&&e%100!==0}function Vl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vl=function(n){return typeof n}:Vl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vl(e)}function aq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sq(e,t,n){return t&&M4(e.prototype,t),n&&M4(e,n),e}function lq(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&&k2(e,t)}function k2(e,t){return k2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},k2(e,t)}function dq(e){var t=uq();return function(){var r=lc(e),i;if(t){var o=lc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return cq(this,i)}}function cq(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:C2(e)}function C2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uq(){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 lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lc(e)}function D4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fq=function(e){lq(n,e);var t=dq(n);function n(){var r;aq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),D4(C2(r),"priority",130),D4(C2(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return sq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return It(Nt(4,i),s);case"yo":return It(a.ordinalNumber(i,{unit:"year"}),s);default:return It(Nt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=Z9(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Ul(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ul=function(n){return typeof n}:Ul=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ul(e)}function hq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pq(e,t,n){return t&&F4(e.prototype,t),n&&F4(e,n),e}function mq(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&&E2(e,t)}function E2(e,t){return E2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},E2(e,t)}function gq(e){var t=yq();return function(){var r=dc(e),i;if(t){var o=dc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vq(this,i)}}function vq(e,t){return t&&(Ul(t)==="object"||typeof t=="function")?t:S2(e)}function S2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yq(){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 dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dc(e)}function R4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bq=function(e){mq(n,e);var t=gq(n);function n(){var r;hq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),R4(S2(r),"priority",130),R4(S2(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return pq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return It(Nt(4,i),s);case"Yo":return It(a.ordinalNumber(i,{unit:"year"}),s);default:return It(Nt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=Hh(i,s);if(a.isTwoDigitYear){var d=Z9(a.year,l);return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),uo(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),uo(i,s)}}]),n}(Ye);function Bl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bl=function(n){return typeof n}:Bl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bl(e)}function $q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wq(e,t,n){return t&&L4(e.prototype,t),n&&L4(e,n),e}function _q(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&&O2(e,t)}function O2(e,t){return O2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},O2(e,t)}function xq(e){var t=Cq();return function(){var r=cc(e),i;if(t){var o=cc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kq(this,i)}}function kq(e,t){return t&&(Bl(t)==="object"||typeof t=="function")?t:T2(e)}function T2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cq(){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 cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cc(e)}function j4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eq=function(e){_q(n,e);var t=xq(n);function n(){var r;$q(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),j4(T2(r),"priority",130),j4(T2(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return wq(n,[{key:"parse",value:function(i,o){return sc(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),ca(s)}}]),n}(Ye);function Hl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hl=function(n){return typeof n}:Hl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hl(e)}function Sq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oq(e,t,n){return t&&z4(e.prototype,t),n&&z4(e,n),e}function Tq(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&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},N2(e,t)}function Nq(e){var t=Aq();return function(){var r=uc(e),i;if(t){var o=uc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pq(this,i)}}function Pq(e,t){return t&&(Hl(t)==="object"||typeof t=="function")?t:P2(e)}function P2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aq(){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 uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uc(e)}function V4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iq=function(e){Tq(n,e);var t=Nq(n);function n(){var r;Sq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),V4(P2(r),"priority",130),V4(P2(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Oq(n,[{key:"parse",value:function(i,o){return sc(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function ql(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ql=function(n){return typeof n}:ql=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ql(e)}function Mq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dq(e,t,n){return t&&U4(e.prototype,t),n&&U4(e,n),e}function Fq(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&&A2(e,t)}function A2(e,t){return A2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},A2(e,t)}function Rq(e){var t=jq();return function(){var r=fc(e),i;if(t){var o=fc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lq(this,i)}}function Lq(e,t){return t&&(ql(t)==="object"||typeof t=="function")?t:I2(e)}function I2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jq(){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 fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fc(e)}function B4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zq=function(e){Fq(n,e);var t=Rq(n);function n(){var r;Mq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),B4(I2(r),"priority",120),B4(I2(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Dq(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Nt(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Wl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wl=function(n){return typeof n}:Wl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wl(e)}function Vq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uq(e,t,n){return t&&H4(e.prototype,t),n&&H4(e,n),e}function Bq(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&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M2(e,t)}function Hq(e){var t=Wq();return function(){var r=hc(e),i;if(t){var o=hc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qq(this,i)}}function qq(e,t){return t&&(Wl(t)==="object"||typeof t=="function")?t:D2(e)}function D2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wq(){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 hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hc(e)}function q4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gq=function(e){Bq(n,e);var t=Hq(n);function n(){var r;Vq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),q4(D2(r),"priority",120),q4(D2(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Uq(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Nt(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Gl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gl=function(n){return typeof n}:Gl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gl(e)}function Qq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kq(e,t,n){return t&&W4(e.prototype,t),n&&W4(e,n),e}function Yq(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&&F2(e,t)}function F2(e,t){return F2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},F2(e,t)}function Zq(e){var t=Jq();return function(){var r=pc(e),i;if(t){var o=pc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xq(this,i)}}function Xq(e,t){return t&&(Gl(t)==="object"||typeof t=="function")?t:R2(e)}function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jq(){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 pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pc(e)}function G4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eW=function(e){Yq(n,e);var t=Zq(n);function n(){var r;Qq(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),G4(R2(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),G4(R2(r),"priority",110),r}return Kq(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d-1};switch(o){case"M":return It(wt(At.month,i),s);case"MM":return It(Nt(2,i),s);case"Mo":return It(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Ql(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ql=function(n){return typeof n}:Ql=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ql(e)}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nW(e,t,n){return t&&Q4(e.prototype,t),n&&Q4(e,n),e}function rW(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&&L2(e,t)}function L2(e,t){return L2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},L2(e,t)}function iW(e){var t=aW();return function(){var r=mc(e),i;if(t){var o=mc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oW(this,i)}}function oW(e,t){return t&&(Ql(t)==="object"||typeof t=="function")?t:j2(e)}function j2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aW(){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 mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mc(e)}function K4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sW=function(e){rW(n,e);var t=iW(n);function n(){var r;tW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),K4(j2(r),"priority",110),K4(j2(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return nW(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d-1};switch(o){case"L":return It(wt(At.month,i),s);case"LL":return It(Nt(2,i),s);case"Lo":return It(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function lW(e,t,n){gt(2,arguments);var r=Wt(e),i=Tn(t),o=U9(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Kl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kl=function(n){return typeof n}:Kl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kl(e)}function dW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cW(e,t,n){return t&&Y4(e.prototype,t),n&&Y4(e,n),e}function uW(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&&z2(e,t)}function z2(e,t){return z2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},z2(e,t)}function fW(e){var t=pW();return function(){var r=gc(e),i;if(t){var o=gc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hW(this,i)}}function hW(e,t){return t&&(Kl(t)==="object"||typeof t=="function")?t:V2(e)}function V2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pW(){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 gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gc(e)}function Z4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mW=function(e){uW(n,e);var t=fW(n);function n(){var r;dW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Z4(V2(r),"priority",100),Z4(V2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return cW(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return wt(At.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return uo(lW(i,a,s),s)}}]),n}(Ye);function gW(e,t){gt(2,arguments);var n=Wt(e),r=Tn(t),i=V9(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Yl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yl=function(n){return typeof n}:Yl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yl(e)}function vW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yW(e,t,n){return t&&X4(e.prototype,t),n&&X4(e,n),e}function bW(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&&U2(e,t)}function U2(e,t){return U2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},U2(e,t)}function $W(e){var t=_W();return function(){var r=vc(e),i;if(t){var o=vc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wW(this,i)}}function wW(e,t){return t&&(Yl(t)==="object"||typeof t=="function")?t:B2(e)}function B2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _W(){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 vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vc(e)}function J4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xW=function(e){bW(n,e);var t=$W(n);function n(){var r;vW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J4(B2(r),"priority",100),J4(B2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return yW(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return wt(At.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return ca(gW(i,a))}}]),n}(Ye);function Zl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zl=function(n){return typeof n}:Zl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zl(e)}function kW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CW(e,t,n){return t&&em(e.prototype,t),n&&em(e,n),e}function EW(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&&H2(e,t)}function H2(e,t){return H2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},H2(e,t)}function SW(e){var t=TW();return function(){var r=yc(e),i;if(t){var o=yc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OW(this,i)}}function OW(e,t){return t&&(Zl(t)==="object"||typeof t=="function")?t:Xl(e)}function Xl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TW(){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 yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yc(e)}function M0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NW=[31,28,31,30,31,30,31,31,30,31,30,31],PW=[31,29,31,30,31,30,31,31,30,31,30,31],AW=function(e){EW(n,e);var t=SW(n);function n(){var r;kW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),M0(Xl(r),"priority",90),M0(Xl(r),"subPriority",1),M0(Xl(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return CW(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return wt(At.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=X9(a),l=i.getUTCMonth();return s?o>=1&&o<=PW[l]:o>=1&&o<=NW[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Jl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jl=function(n){return typeof n}:Jl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jl(e)}function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function MW(e,t,n){return t&&tm(e.prototype,t),n&&tm(e,n),e}function DW(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&&q2(e,t)}function q2(e,t){return q2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},q2(e,t)}function FW(e){var t=LW();return function(){var r=bc(e),i;if(t){var o=bc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return RW(this,i)}}function RW(e,t){return t&&(Jl(t)==="object"||typeof t=="function")?t:ed(e)}function ed(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LW(){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 bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bc(e)}function D0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jW=function(e){DW(n,e);var t=FW(n);function n(){var r;IW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),D0(ed(r),"priority",90),D0(ed(r),"subpriority",1),D0(ed(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return MW(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return wt(At.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=X9(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function Kh(e,t,n){var r,i,o,a,s,l,d,c;gt(2,arguments);var u=Ea(),f=Tn((r=(i=(o=(a=n?.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&i!==void 0?i:(d=u.locale)===null||d===void 0||(c=d.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 h=Wt(e),p=Tn(t),v=h.getUTCDay(),$=p%7,k=($+7)%7,_=(k<f?7:0)+p-v;return h.setUTCDate(h.getUTCDate()+_),h}function td(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?td=function(n){return typeof n}:td=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},td(e)}function zW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function VW(e,t,n){return t&&nm(e.prototype,t),n&&nm(e,n),e}function UW(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&&W2(e,t)}function W2(e,t){return W2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},W2(e,t)}function BW(e){var t=qW();return function(){var r=$c(e),i;if(t){var o=$c(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HW(this,i)}}function HW(e,t){return t&&(td(t)==="object"||typeof t=="function")?t:G2(e)}function G2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qW(){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 $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$c(e)}function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WW=function(e){UW(n,e);var t=BW(n);function n(){var r;zW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),rm(G2(r),"priority",90),rm(G2(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return VW(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nd=function(n){return typeof n}:nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nd(e)}function GW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QW(e,t,n){return t&&im(e.prototype,t),n&&im(e,n),e}function KW(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&&Q2(e,t)}function Q2(e,t){return Q2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Q2(e,t)}function YW(e){var t=XW();return function(){var r=wc(e),i;if(t){var o=wc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ZW(this,i)}}function ZW(e,t){return t&&(nd(t)==="object"||typeof t=="function")?t:K2(e)}function K2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XW(){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 wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wc(e)}function om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JW=function(e){KW(n,e);var t=YW(n);function n(){var r;GW(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),om(K2(r),"priority",90),om(K2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return QW(n,[{key:"parse",value:function(i,o,a,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return It(Nt(o.length,i),l);case"eo":return It(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function rd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rd=function(n){return typeof n}:rd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rd(e)}function eG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tG(e,t,n){return t&&am(e.prototype,t),n&&am(e,n),e}function nG(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&&Y2(e,t)}function Y2(e,t){return Y2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Y2(e,t)}function rG(e){var t=oG();return function(){var r=_c(e),i;if(t){var o=_c(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iG(this,i)}}function iG(e,t){return t&&(rd(t)==="object"||typeof t=="function")?t:Z2(e)}function Z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oG(){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 _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_c(e)}function sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aG=function(e){nG(n,e);var t=rG(n);function n(){var r;eG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),sm(Z2(r),"priority",90),sm(Z2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return tG(n,[{key:"parse",value:function(i,o,a,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return It(Nt(o.length,i),l);case"co":return It(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Kh(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function sG(e,t){gt(2,arguments);var n=Tn(t);n%7===0&&(n=n-7);var r=1,i=Wt(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?id=function(n){return typeof n}:id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},id(e)}function lG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dG(e,t,n){return t&&lm(e.prototype,t),n&&lm(e,n),e}function cG(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&&X2(e,t)}function X2(e,t){return X2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},X2(e,t)}function uG(e){var t=hG();return function(){var r=xc(e),i;if(t){var o=xc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fG(this,i)}}function fG(e,t){return t&&(id(t)==="object"||typeof t=="function")?t:J2(e)}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hG(){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 xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xc(e)}function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pG=function(e){cG(n,e);var t=uG(n);function n(){var r;lG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),dm(J2(r),"priority",90),dm(J2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return dG(n,[{key:"parse",value:function(i,o,a){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return Nt(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return It(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return It(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return It(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return It(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=sG(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(Ye);function od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?od=function(n){return typeof n}:od=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},od(e)}function mG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gG(e,t,n){return t&&cm(e.prototype,t),n&&cm(e,n),e}function vG(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&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ef(e,t)}function yG(e){var t=$G();return function(){var r=kc(e),i;if(t){var o=kc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bG(this,i)}}function bG(e,t){return t&&(od(t)==="object"||typeof t=="function")?t:tf(e)}function tf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $G(){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 kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kc(e)}function um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wG=function(e){vG(n,e);var t=yG(n);function n(){var r;mG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),um(tf(r),"priority",80),um(tf(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return gG(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ad=function(n){return typeof n}:ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ad(e)}function _G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xG(e,t,n){return t&&fm(e.prototype,t),n&&fm(e,n),e}function kG(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nf(e,t)}function CG(e){var t=SG();return function(){var r=Cc(e),i;if(t){var o=Cc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return EG(this,i)}}function EG(e,t){return t&&(ad(t)==="object"||typeof t=="function")?t:rf(e)}function rf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SG(){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 Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cc(e)}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OG=function(e){kG(n,e);var t=CG(n);function n(){var r;_G(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),hm(rf(r),"priority",80),hm(rf(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return xG(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function sd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sd=function(n){return typeof n}:sd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sd(e)}function TG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NG(e,t,n){return t&&pm(e.prototype,t),n&&pm(e,n),e}function PG(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&&of(e,t)}function of(e,t){return of=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},of(e,t)}function AG(e){var t=MG();return function(){var r=Ec(e),i;if(t){var o=Ec(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return IG(this,i)}}function IG(e,t){return t&&(sd(t)==="object"||typeof t=="function")?t:af(e)}function af(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MG(){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 Ec(e){return Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ec(e)}function mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DG=function(e){PG(n,e);var t=AG(n);function n(){var r;TG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),mm(af(r),"priority",80),mm(af(r),"incompatibleTokens",["a","b","t","T"]),r}return NG(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Qh(a),0,0,0),i}}]),n}(Ye);function ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ld=function(n){return typeof n}:ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ld(e)}function FG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RG(e,t,n){return t&&gm(e.prototype,t),n&&gm(e,n),e}function LG(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&&sf(e,t)}function sf(e,t){return sf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},sf(e,t)}function jG(e){var t=VG();return function(){var r=Sc(e),i;if(t){var o=Sc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zG(this,i)}}function zG(e,t){return t&&(ld(t)==="object"||typeof t=="function")?t:lf(e)}function lf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VG(){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 Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sc(e)}function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UG=function(e){LG(n,e);var t=jG(n);function n(){var r;FG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),vm(lf(r),"priority",70),vm(lf(r),"incompatibleTokens",["H","K","k","t","T"]),r}return RG(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return wt(At.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function dd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dd=function(n){return typeof n}:dd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dd(e)}function BG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HG(e,t,n){return t&&ym(e.prototype,t),n&&ym(e,n),e}function qG(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&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},df(e,t)}function WG(e){var t=QG();return function(){var r=Oc(e),i;if(t){var o=Oc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return GG(this,i)}}function GG(e,t){return t&&(dd(t)==="object"||typeof t=="function")?t:cf(e)}function cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QG(){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 Oc(e){return Oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Oc(e)}function bm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KG=function(e){qG(n,e);var t=WG(n);function n(){var r;BG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),bm(cf(r),"priority",70),bm(cf(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return HG(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return wt(At.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function cd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cd=function(n){return typeof n}:cd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cd(e)}function YG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZG(e,t,n){return t&&$m(e.prototype,t),n&&$m(e,n),e}function XG(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&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},uf(e,t)}function JG(e){var t=tQ();return function(){var r=Tc(e),i;if(t){var o=Tc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return eQ(this,i)}}function eQ(e,t){return t&&(cd(t)==="object"||typeof t=="function")?t:ff(e)}function ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tQ(){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 Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tc(e)}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nQ=function(e){XG(n,e);var t=JG(n);function n(){var r;YG(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),wm(ff(r),"priority",70),wm(ff(r),"incompatibleTokens",["h","H","k","t","T"]),r}return ZG(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return wt(At.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(Ye);function ud(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ud=function(n){return typeof n}:ud=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ud(e)}function rQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iQ(e,t,n){return t&&_m(e.prototype,t),n&&_m(e,n),e}function oQ(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&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hf(e,t)}function aQ(e){var t=lQ();return function(){var r=Nc(e),i;if(t){var o=Nc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sQ(this,i)}}function sQ(e,t){return t&&(ud(t)==="object"||typeof t=="function")?t:pf(e)}function pf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lQ(){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 Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nc(e)}function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dQ=function(e){oQ(n,e);var t=aQ(n);function n(){var r;rQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),xm(pf(r),"priority",70),xm(pf(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return iQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return wt(At.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n}(Ye);function fd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fd=function(n){return typeof n}:fd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fd(e)}function cQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function km(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uQ(e,t,n){return t&&km(e.prototype,t),n&&km(e,n),e}function fQ(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&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},mf(e,t)}function hQ(e){var t=mQ();return function(){var r=Pc(e),i;if(t){var o=Pc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pQ(this,i)}}function pQ(e,t){return t&&(fd(t)==="object"||typeof t=="function")?t:gf(e)}function gf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mQ(){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 Pc(e){return Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pc(e)}function Cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gQ=function(e){fQ(n,e);var t=hQ(n);function n(){var r;cQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Cm(gf(r),"priority",60),Cm(gf(r),"incompatibleTokens",["t","T"]),r}return uQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return wt(At.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(Ye);function hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hd=function(n){return typeof n}:hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hd(e)}function vQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yQ(e,t,n){return t&&Em(e.prototype,t),n&&Em(e,n),e}function bQ(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&&vf(e,t)}function vf(e,t){return vf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vf(e,t)}function $Q(e){var t=_Q();return function(){var r=Ac(e),i;if(t){var o=Ac(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wQ(this,i)}}function wQ(e,t){return t&&(hd(t)==="object"||typeof t=="function")?t:yf(e)}function yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Q(){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 Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ac(e)}function Sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xQ=function(e){bQ(n,e);var t=$Q(n);function n(){var r;vQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Sm(yf(r),"priority",50),Sm(yf(r),"incompatibleTokens",["t","T"]),r}return yQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return wt(At.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Nt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(Ye);function pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pd=function(n){return typeof n}:pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pd(e)}function kQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CQ(e,t,n){return t&&Om(e.prototype,t),n&&Om(e,n),e}function EQ(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&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bf(e,t)}function SQ(e){var t=TQ();return function(){var r=Ic(e),i;if(t){var o=Ic(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OQ(this,i)}}function OQ(e,t){return t&&(pd(t)==="object"||typeof t=="function")?t:$f(e)}function $f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TQ(){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 Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ic(e)}function Tm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NQ=function(e){EQ(n,e);var t=SQ(n);function n(){var r;kQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Tm($f(r),"priority",30),Tm($f(r),"incompatibleTokens",["t","T"]),r}return CQ(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return It(Nt(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n}(Ye);function md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?md=function(n){return typeof n}:md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},md(e)}function PQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function AQ(e,t,n){return t&&Nm(e.prototype,t),n&&Nm(e,n),e}function IQ(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&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wf(e,t)}function MQ(e){var t=FQ();return function(){var r=Mc(e),i;if(t){var o=Mc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return DQ(this,i)}}function DQ(e,t){return t&&(md(t)==="object"||typeof t=="function")?t:_f(e)}function _f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FQ(){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 Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mc(e)}function Pm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RQ=function(e){IQ(n,e);var t=MQ(n);function n(){var r;PQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Pm(_f(r),"priority",10),Pm(_f(r),"incompatibleTokens",["t","T","x"]),r}return AQ(n,[{key:"parse",value:function(i,o){switch(o){case"X":return _r(wr.basicOptionalMinutes,i);case"XX":return _r(wr.basic,i);case"XXXX":return _r(wr.basicOptionalSeconds,i);case"XXXXX":return _r(wr.extendedOptionalSeconds,i);case"XXX":default:return _r(wr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Ye);function gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gd=function(n){return typeof n}:gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gd(e)}function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jQ(e,t,n){return t&&Am(e.prototype,t),n&&Am(e,n),e}function zQ(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&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xf(e,t)}function VQ(e){var t=BQ();return function(){var r=Dc(e),i;if(t){var o=Dc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return UQ(this,i)}}function UQ(e,t){return t&&(gd(t)==="object"||typeof t=="function")?t:kf(e)}function kf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BQ(){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 Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dc(e)}function Im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HQ=function(e){zQ(n,e);var t=VQ(n);function n(){var r;LQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Im(kf(r),"priority",10),Im(kf(r),"incompatibleTokens",["t","T","X"]),r}return jQ(n,[{key:"parse",value:function(i,o){switch(o){case"x":return _r(wr.basicOptionalMinutes,i);case"xx":return _r(wr.basic,i);case"xxxx":return _r(wr.basicOptionalSeconds,i);case"xxxxx":return _r(wr.extendedOptionalSeconds,i);case"xxx":default:return _r(wr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(Ye);function vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vd=function(n){return typeof n}:vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vd(e)}function qQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function WQ(e,t,n){return t&&Mm(e.prototype,t),n&&Mm(e,n),e}function GQ(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&&Cf(e,t)}function Cf(e,t){return Cf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cf(e,t)}function QQ(e){var t=YQ();return function(){var r=Fc(e),i;if(t){var o=Fc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return KQ(this,i)}}function KQ(e,t){return t&&(vd(t)==="object"||typeof t=="function")?t:Ef(e)}function Ef(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YQ(){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 Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fc(e)}function Dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZQ=function(e){GQ(n,e);var t=QQ(n);function n(){var r;qQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Dm(Ef(r),"priority",40),Dm(Ef(r),"incompatibleTokens","*"),r}return WQ(n,[{key:"parse",value:function(i){return Y9(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(Ye);function yd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yd=function(n){return typeof n}:yd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yd(e)}function XQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JQ(e,t,n){return t&&Fm(e.prototype,t),n&&Fm(e,n),e}function eK(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&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Sf(e,t)}function tK(e){var t=rK();return function(){var r=Rc(e),i;if(t){var o=Rc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nK(this,i)}}function nK(e,t){return t&&(yd(t)==="object"||typeof t=="function")?t:Of(e)}function Of(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rK(){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 Rc(e){return Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rc(e)}function Rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iK=function(e){eK(n,e);var t=tK(n);function n(){var r;XQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Rm(Of(r),"priority",20),Rm(Of(r),"incompatibleTokens","*"),r}return JQ(n,[{key:"parse",value:function(i){return Y9(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(Ye),oK={G:new oq,y:new fq,Y:new bq,R:new Eq,u:new Iq,Q:new zq,q:new Gq,M:new eW,L:new sW,w:new mW,I:new xW,d:new AW,D:new jW,E:new WW,e:new JW,c:new aG,i:new pG,a:new wG,b:new OG,B:new DG,h:new UG,H:new KG,K:new nQ,k:new dQ,m:new gQ,s:new xQ,S:new NQ,X:new RQ,x:new HQ,t:new ZQ,T:new iK};function bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bd=function(n){return typeof n}:bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bd(e)}function Lm(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=aK(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(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2778
2778
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var d=n.next();return o=d.done,d},e:function(d){a=!0,s=d},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function aK(e,t){if(!!e){if(typeof e=="string")return jm(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 jm(e,t)}}function jm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dK=/^'([^]*?)'?$/,cK=/''/g,uK=/\S/,fK=/[a-zA-Z]/;function hK(e,t,n,r){var i,o,a,s,l,d,c,u,f,h,p,v,$,k,_,y,x,O;gt(3,arguments);var N=String(e),P=String(t),A=Ea(),j=(i=(o=r?.locale)!==null&&o!==void 0?o:A.locale)!==null&&i!==void 0?i:W9;if(!j.match)throw new RangeError("locale must contain match property");var U=Tn((a=(s=(l=(d=r?.firstWeekContainsDate)!==null&&d!==void 0?d:r==null||(c=r.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:A.firstWeekContainsDate)!==null&&s!==void 0?s:(f=A.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Tn((p=(v=($=(k=r?.weekStartsOn)!==null&&k!==void 0?k:r==null||(_=r.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&$!==void 0?$:A.weekStartsOn)!==null&&v!==void 0?v:(x=A.locale)===null||x===void 0||(O=x.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return N===""?Wt(n):new Date(NaN);var R={firstWeekContainsDate:U,weekStartsOn:W,locale:j},L=[new YH],q=P.match(lK).map(function(Ce){var me=Ce[0];if(me in y2){var xe=y2[me];return xe(Ce,j.formatLong)}return Ce}).join("").match(sK),I=[],ne=Lm(q),ie;try{var z=function(){var me=ie.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&q9(me)&&ic(me,P,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&H9(me)&&ic(me,P,e);var xe=me[0],ke=oK[xe];if(ke){var De=ke.incompatibleTokens;if(Array.isArray(De)){var ue=I.find(function(ye){return De.includes(ye.token)||ye.token===xe});if(ue)throw new RangeError("The format string mustn't contain `".concat(ue.fullToken,"` and `").concat(me,"` at the same time"))}else if(ke.incompatibleTokens==="*"&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(me,"` and any other token at the same time"));I.push({token:xe,fullToken:me});var K=ke.run(N,me,j.match,R);if(!K)return{v:new Date(NaN)};L.push(K.setter),N=K.rest}else{if(xe.match(fK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+xe+"`");if(me==="''"?me="'":xe==="'"&&(me=pK(me)),N.indexOf(me)===0)N=N.slice(me.length);else return{v:new Date(NaN)}}};for(ne.s();!(ie=ne.n()).done;){var re=z();if(bd(re)==="object")return re.v}}catch(Ce){ne.e(Ce)}finally{ne.f()}if(N.length>0&&uK.test(N))return new Date(NaN);var Z=L.map(function(Ce){return Ce.priority}).sort(function(Ce,me){return me-Ce}).filter(function(Ce,me,xe){return xe.indexOf(Ce)===me}).map(function(Ce){return L.filter(function(me){return me.priority===Ce}).sort(function(me,xe){return xe.subPriority-me.subPriority})}).map(function(Ce){return Ce[0]}),te=Wt(n);if(isNaN(te.getTime()))return new Date(NaN);var V=j9(te,R9(te)),_e={},Te=Lm(Z),ze;try{for(Te.s();!(ze=Te.n()).done;){var ae=ze.value;if(!ae.validate(V,R))return new Date(NaN);var Ee=ae.set(V,_e,R);Array.isArray(Ee)?(V=Ee[0],qH(_e,Ee[1])):V=Ee}}catch(Ce){Te.e(Ce)}finally{Te.f()}return V}function pK(e){return e.match(dK)[1].replace(cK,"'")}function mK(e){return gt(1,arguments),DB(e,Date.now())}const zt=(e,t)=>ka("message",n=>I9(n,e)?!0:t),gK=ka("NotFutureDate",e=>{const t=new Date(e);if(!(t instanceof Date))return!1;const n=new Date;return t<=n}),vK=(e,t=n=>hK(n,"yyyy-MM-dd",new Date))=>ka("between",function(r){return VB(t(r),e)>=0||mK(t(r))}),yK=()=>Ca(Mn(),"zipString",e=>/^\d{5}(-\d{4})?$/.test(e)),bK=()=>Ca(Mn(),"email",e=>e.length===0?!0:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)),F0=()=>Ca(js(),"empty",e=>e===null||e==null);var $K=Zt`
|
|
2779
2779
|
${cn}
|
|
2780
2780
|
|