@flarehr/apollo-benefits 2.12.366 → 2.12.368
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/assets/banner-icon-dd5e974a.js +456 -0
- package/dist/assets/{contentful-service-ec08fb7b.js → contentful-service-aef0566a.js} +2 -2
- package/dist/assets/formik.esm-f59e445c.js +8 -0
- package/dist/assets/header-c8b1645a.js +1 -0
- package/dist/assets/index-3dc81d1d.js +1 -0
- package/dist/assets/index-52c3a920.js +2 -0
- package/dist/assets/index-572ac200.js +1 -0
- package/dist/assets/index-728c5d9e.js +28 -0
- package/dist/assets/index-a63bc832.js +1 -0
- package/dist/assets/index-b80f1ed5.js +1 -0
- package/dist/assets/index-c5c3bb02.js +1 -0
- package/dist/assets/index-c5f8d653.js +1 -0
- package/dist/assets/index-d499c1ee.js +1 -0
- package/dist/assets/index-fee1b285.js +1 -0
- package/dist/assets/{item-details-35ad7588.js → item-details-f4dde7c7.js} +2 -2
- package/dist/assets/loading-state-63ca3a52.js +1 -0
- package/dist/assets/modal-240be87a.js +1 -0
- package/dist/assets/motion-0b0c6f7d.js +1 -0
- package/dist/assets/pillar-tag-20509680.js +1 -0
- package/dist/assets/use-feature-flag-f624fbae.js +1 -0
- package/dist/assets/vendor-ece7687a.js +107 -0
- package/dist/index.html +27 -2
- package/dist/sw-esm.js +4 -1
- package/package.json +1 -1
- package/dist/assets/banner-icon-0117e93c.js +0 -456
- package/dist/assets/formik.esm-d8b8267f.js +0 -8
- package/dist/assets/header-e651d68b.js +0 -1
- package/dist/assets/index-24d35a11.js +0 -28
- package/dist/assets/index-58cc2d72.js +0 -1
- package/dist/assets/index-7ce86e27.js +0 -1
- package/dist/assets/index-84b83088.js +0 -1
- package/dist/assets/index-bd9ee342.js +0 -1
- package/dist/assets/index-c1d302f8.js +0 -1
- package/dist/assets/index-c40b5413.js +0 -107
- package/dist/assets/index-cfddcd4c.js +0 -1
- package/dist/assets/index-e7929e3d.js +0 -1
- package/dist/assets/index-f88c4655.js +0 -2
- package/dist/assets/loading-state-4b750837.js +0 -1
- package/dist/assets/modal-e9f61093.js +0 -1
- package/dist/assets/motion-aecc8ecb.js +0 -1
- package/dist/assets/pillar-tag-d2869d71.js +0 -1
- package/dist/assets/use-feature-flag-17b4c424.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as x,y as c,S as M,f as S,t as j,E as T,n as z,w as P,U as H,g as R,F as D,h as B,o as r,H as V,a as h,b as u,X as W,L as U,s as k,c as p,B as G,M as y,_ as b,p as K,e as X,R as q,d as J,i as Q,j as v}from"./index-c40b5413.js";import{u as Y,_}from"./use-feature-flag-17b4c424.js";function Z({title:a,titleId:t,...n},o){return c("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),a?c("title",{id:t},a):null,c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"}))}const ee=x(Z),re=ee;function te({title:a,titleId:t,...n},o){return c("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),a?c("title",{id:t},a):null,c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 11.25v8.25a1.5 1.5 0 01-1.5 1.5H5.25a1.5 1.5 0 01-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 109.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1114.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"}))}const ae=x(te),ne=ae;function ie({title:a,titleId:t,...n},o){return c("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),a?c("title",{id:t},a):null,c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z"}))}const oe=x(ie),se=oe;function ce({title:a,titleId:t,...n},o){return c("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),a?c("title",{id:t},a):null,c("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122"}))}const le=x(ce),de=le;var A,N,F,m;function ue(a,t,n,o,l){var e={};return Object.keys(o).forEach(function(s){e[s]=o[s]}),e.enumerable=!!e.enumerable,e.configurable=!!e.configurable,("value"in e||e.initializer)&&(e.writable=!0),e=n.slice().reverse().reduce(function(s,d){return d(a,t,s)||s},e),l&&e.initializer!==void 0&&(e.value=e.initializer?e.initializer.call(l):void 0,e.initializer=void 0),e.initializer===void 0&&(Object.defineProperty(a,t,e),e=null),e}function me(){return{filter:"Upcoming",editableItemType:"customEvent",featuredItems:[],selectedItem:z,editDialog:{screen:"hidden"}}}let fe=(A=M({name:"events-manager",cache:{ttl:"3600000"},resettable:!0,producerFn:S}),N=j(),A(F=(m=class extends T{constructor(){super(me())}removeFromFeatured(t){this.update(t,n=>{n.visibility.isFeatured=!1}),this.update(n=>{n.featuredItems.splice(n.featuredItems.indexOf(t),1)})}},ue(m.prototype,"removeFromFeatured",[N],Object.getOwnPropertyDescriptor(m.prototype,"removeFromFeatured"),m.prototype),m))||F);const L=new fe,Oe=L,he={eventName:"Section"},g=a=>()=>({...he,eventAction:"Opened",section:a}),O=[{name:"Perks",href:"#/admin",icon:ne,current:!0,access:(a,t)=>["accountAdmin","accountEditor"].includes(a),trackingEvent:g("perks")},{name:"Events",href:"#/admin/events",icon:re,current:!0,access:(a,t)=>["accountAdmin","accountEditor"].includes(a)&&t.flareMobileApp,trackingEvent:g("events")},{name:"Collections",href:"#/admin/collections",icon:de,current:!0,access:(a,t)=>["accountAdmin","accountEditor"].includes(a)&&t.flareMobileApp,trackingEvent:g("collections")},{name:"Access",href:"#/admin/access",icon:se,current:!1,access:(a,t)=>["accountAdmin"].includes(a),trackingEvent:g("access")}],pe=a=>{var w;const t=P.useContext(H),n=((w=R(t))==null?void 0:w.benefitsProfile.role)??"user",{getAllTreatments:o}=Y(),l=D(()=>o(),[o]),[e,s]=B(!1),d=i=>window.location.hash.replace(/\/+$/,"")===i.replace(/\/+$/,"");return r(u,{children:[r(V,{user:t}),r("div",{className:"min-w-5xl mx-auto h-screen flex overflow-hidden bg-white",children:[r(h.Root,{show:e,as:u,children:r(_,{as:"div",static:!0,className:"fixed inset-0 flex z-40 md:hidden",open:e,onClose:s,children:[r(h.Child,{as:u,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:r(_.Overlay,{className:"fixed inset-0 bg-gray-600 bg-opacity-75"})}),r(h.Child,{as:u,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:r("div",{className:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white",children:[r(h.Child,{as:u,enter:"ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:r("div",{className:"absolute top-0 right-0 -mr-12 pt-2",children:r("button",{className:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:()=>s(!1),children:[r("span",{className:"sr-only",children:"Close sidebar"}),r(W,{className:"h-6 w-6 text-white","aria-hidden":"true"})]})})}),r("div",{className:"flex-shrink-0 flex items-center px-4",children:r("img",{className:"block h-8 w-auto",src:U,alt:"Flare Benefits"})}),r("div",{className:"mt-5 flex-1 h-0 overflow-y-auto",children:r("nav",{className:"px-2 space-y-1",children:O.filter(i=>i.access(n,l)).map(i=>r("a",{href:i.href,onClick:k.handleTrackingOnClick(i.trackingEvent),className:p(d(i.href)?"bg-secondary text-primary":"text-gray-600 hover:bg-secondary hover:text-primary","group flex items-center px-2 py-2 text-base font-medium rounded-md"),children:[r(i.icon,{className:p(d(i.href)?"text-primary":"text-gray-400 group-hover:text-primary","mr-4 flex-shrink-0 h-6 w-6"),"aria-hidden":"true"}),i.name]},i.name))})})]})}),r("div",{className:"flex-shrink-0 w-14","aria-hidden":"true"})]})}),r("div",{className:"hidden md:flex md:flex-shrink-0",children:r("div",{className:"flex flex-col w-64",children:r("div",{className:"flex flex-col flex-grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto",children:r("div",{className:"mt-5 flex-grow flex flex-col",children:r("nav",{className:"flex-1 px-2 bg-white space-y-1",children:O.filter(i=>i.access(n,l)).map(i=>r("a",{href:i.href,onClick:k.handleTrackingOnClick(i.trackingEvent),className:p(d(i.href)?"bg-secondary text-primary":"text-gray-600 hover:bg-secondary hover:text-primary","group flex items-center px-2 py-2 text-sm font-medium rounded-md"),children:[r(i.icon,{className:p(d(i.href)?"text-primary":"text-gray-400 group-hover:text-primary","mr-3 flex-shrink-0 h-6 w-6"),"aria-hidden":"true"}),i.name]},i.name))})})})})}),r("div",{className:"flex flex-col w-0 flex-1 overflow-hidden",children:[r("div",{className:"relative z-10 flex-shrink-0 flex h-16 bg-white",children:r("button",{className:"px-4 text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary md:hidden",onClick:()=>s(!0),children:[r("span",{className:"sr-only",children:"Open sidebar"}),r(G,{className:"h-6 w-6","aria-hidden":"true"})]})}),r("main",{className:"flex flex-col flex-1 overflow-auto focus:outline-none px-4 sm:px-6 lg:px-8 pt-1",children:a.children})]})]})]})};var E,C,I,f;function ve(a,t,n,o,l){var e={};return Object.keys(o).forEach(function(s){e[s]=o[s]}),e.enumerable=!!e.enumerable,e.configurable=!!e.configurable,("value"in e||e.initializer)&&(e.writable=!0),e=n.slice().reverse().reduce(function(s,d){return d(a,t,s)||s},e),l&&e.initializer!==void 0&&(e.value=e.initializer?e.initializer.call(l):void 0,e.initializer=void 0),e.initializer===void 0&&(Object.defineProperty(a,t,e),e=null),e}function ge(){return{featuredItems:[],editableItemType:"customPerk",filter:"All",selectedItem:z,editDialog:{screen:"hidden"}}}let xe=(E=M({name:"perks-manager",cache:{ttl:"3600000"},resettable:!0,producerFn:S}),C=j(),E(I=(f=class extends T{constructor(){super(ge())}removeFromFeatured(t){this.update(t,n=>{n.visibility.isFeatured=!1}),this.update(n=>{n.featuredItems.splice(n.featuredItems.indexOf(t),1)})}},ve(f.prototype,"removeFromFeatured",[C],Object.getOwnPropertyDescriptor(f.prototype,"removeFromFeatured"),f.prototype),f))||I);const $=new xe,Ce=$,ye=y(()=>b(()=>import("./index-7ce86e27.js"),["assets/index-7ce86e27.js","assets/index-c40b5413.js","assets/index-9e4abade.css","assets/header-e651d68b.js","assets/formik.esm-d8b8267f.js","assets/promise-76b37e88.js","assets/modal-e9f61093.js","assets/use-feature-flag-17b4c424.js"])),be=y(()=>b(()=>import("./index-c1d302f8.js"),["assets/index-c1d302f8.js","assets/index-c40b5413.js","assets/index-9e4abade.css","assets/loading-state-4b750837.js","assets/use-feature-flag-17b4c424.js","assets/motion-aecc8ecb.js","assets/pillar-tag-d2869d71.js","assets/header-e651d68b.js","assets/contentful-service-ec08fb7b.js","assets/promise-76b37e88.js"])),we=y(()=>b(()=>import("./index-bd9ee342.js"),["assets/index-bd9ee342.js","assets/index-c40b5413.js","assets/index-9e4abade.css","assets/index-24d35a11.js","assets/item-details-35ad7588.js","assets/index-e7929e3d.js","assets/pillar-tag-d2869d71.js","assets/loading-state-4b750837.js","assets/use-feature-flag-17b4c424.js","assets/motion-aecc8ecb.js","assets/modal-e9f61093.js","assets/promise-76b37e88.js","assets/formik.esm-d8b8267f.js","assets/header-e651d68b.js"])),ke=y(()=>b(()=>import("./index-58cc2d72.js"),["assets/index-58cc2d72.js","assets/index-c40b5413.js","assets/index-9e4abade.css","assets/loading-state-4b750837.js","assets/use-feature-flag-17b4c424.js","assets/motion-aecc8ecb.js","assets/pillar-tag-d2869d71.js","assets/header-e651d68b.js","assets/index-24d35a11.js","assets/item-details-35ad7588.js","assets/index-e7929e3d.js","assets/modal-e9f61093.js","assets/promise-76b37e88.js","assets/formik.esm-d8b8267f.js"])),_e=()=>(K(()=>{L.setHasCache(!1),$.setHasCache(!1),X.trackAdminOpenedAsync()},[]),r(pe,{children:r(q,{history:J(Q()),children:[r(v,{path:"/admin",component:ke}),r(v,{path:"/admin/events",component:we}),r(v,{path:"/admin/access",component:ye}),r(v,{path:"/admin/collections",component:be})]})})),Ie=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"}));export{re as C,$ as a,Oe as e,Ie as i,Ce as p,L as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as O,aU as ve,aq as ge,aV as ye,aW as we,aX as ie,au as be,aY as pe,ax as j,aZ as oe,aw as Te,at as Oe,a_ as Ce,ay as Me,a$ as G,b0 as P,b1 as K,b2 as A,b3 as De,b4 as N,b5 as J,b6 as Pe,b7 as ke,Q as Se,aO as xe,aN as H,b8 as We,b9 as Ue,ba as z}from"./index-c40b5413.js";var _e=Array.isArray;function Ee(r,e){return _e(e)?r.apply(void 0,ve([],ge(e))):r(e)}function Ye(r){return O(function(e){return Ee(r,e)})}var Ae=Array.isArray,Ne=Object.getPrototypeOf,$e=Object.prototype,Fe=Object.keys;function qe(r){if(r.length===1){var e=r[0];if(Ae(e))return{args:e,keys:null};if(Le(e)){var t=Fe(e);return{args:t.map(function(a){return e[a]}),keys:t}}}return{args:r,keys:null}}function Le(r){return r&&typeof r=="object"&&Ne(r)===$e}function Be(r,e){return r.reduce(function(t,a,n){return t[a]=e[n],t},{})}function Qe(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=ye(r),a=we(r),n=qe(r),i=n.args,o=n.keys;if(i.length===0)return ie([],t);var s=new be(Ve(i,t,o?function(d){return Be(o,d)}:oe));return a?s.pipe(Ye(a)):s}function Ve(r,e,t){return t===void 0&&(t=oe),function(a){Z(e,function(){for(var n=r.length,i=new Array(n),o=n,s=n,d=function(c){Z(e,function(){var l=ie(r[c],e),h=!1;l.subscribe(j(a,function(m){i[c]=m,h||(h=!0,s--),s||a.next(t(i.slice()))},function(){--o||a.complete()}))},a)},u=0;u<n;u++)d(u)},a)}}function Z(r,e,t){r?pe(t,r,e):e()}function Ie(r){return Te(function(e,t){var a=!1,n=null,i=null,o=!1,s=function(){if(i==null||i.unsubscribe(),i=null,a){a=!1;var u=n;n=null,t.next(u)}o&&t.complete()},d=function(){i=null,o&&t.complete()};e.subscribe(j(t,function(u){a=!0,n=u,i||Oe(r(u)).subscribe(i=j(t,s,d))},function(){o=!0,(!a||!i||i.closed)&&t.complete()}))})}function Re(r,e){return e===void 0&&(e=Me),Ie(function(){return Ce(r,e)})}function He(){return G((r,e)=>r===e?!0:!P(r)||!P(e)?!1:K(r)&&K(e)?!0:r.length!==e.length?!1:e.some((a,n)=>r[n]!==a)===!1)}function gr(r){return Qe(r).pipe(Re(0))}function Xe(r,e){let t=[];const{ids:a,entities:n}=r,{filterBy:i,limitTo:o,sortBy:s,sortByOrder:d}=e;for(let c=0;c<a.length;c++){const l=n[a[c]];if(!i){t.push(l);continue}N(i).every(v=>v(l,c))&&t.push(l)}if(s){let c=A(s)?s:De(s,d);t=t.sort((l,h)=>c(l,h,r))}const u=Math.min(o||t.length,t.length);return u===t.length?t:t.slice(0,u)}function je(r,e){const t={},{filterBy:a,limitTo:n}=e,{ids:i,entities:o}=r;if(!a&&!n)return o;const s=J(n)===!1;if(a&&s){let d=0;for(let u=0,c=i.length;u<c&&d!==n;u++){const l=i[u],h=o[l];N(a).every(v=>v(h,u))&&(t[l]=h,d++)}}else{const d=Math.min(n||i.length,i.length);for(let u=0;u<d;u++){const c=i[u],l=o[c];if(!a){t[c]=l;continue}N(a).every(m=>m(l,u))&&(t[c]=l)}}return t}function Ge(r,e){for(const t of Object.keys(e))if(r(e[t])===!0)return t}function ee(r,e){return function(t){const a=t[r];if(!Pe(a))return e?ke(e)?a[e]:e(a):a}}function Je(r,e){return r.reduce((t,a,n,i)=>{const o=e(a,n,i);return o!==void 0&&t.push(o),t},[])}function Ke(r,e){r.sortBy=r.sortBy||e&&e.sortBy,r.sortByOrder=r.sortByOrder||e&&e.sortByOrder}class ze extends Se{constructor(e,t={}){super(e),this.options=t,this.__store__=e}selectAll(e={asObject:!1}){return this.select(t=>t.entities).pipe(O(()=>this.getAll(e)))}getAll(e={asObject:!1,filterBy:void 0,limitTo:void 0}){return e.asObject?je(this.getValue(),e):(Ke(e,this.config||this.options),Xe(this.getValue(),e))}selectMany(e,t){return!e||!e.length?xe([]):this.select(a=>a.entities).pipe(O(a=>Je(e,n=>ee(n,t)(a))),He())}selectEntity(e,t){let a=e;return A(e)&&(a=Ge(e,this.getValue().entities)),this.select(n=>n.entities).pipe(O(ee(a,t)),G())}getEntity(e){return this.getValue().entities[e]}selectActiveId(){return this.select(e=>e.active)}getActiveId(){return this.getValue().active}selectActive(e){return P(this.getActive())?this.selectActiveId().pipe(H(t=>this.selectMany(t,e))):this.selectActiveId().pipe(H(t=>this.selectEntity(t,e)))}getActive(){const e=this.getActiveId();return P(e)?e.map(t=>this.getValue().entities[t]):We(e)?this.getEntity(e):void 0}selectCount(e){return this.select(t=>t.entities).pipe(O(()=>this.getCount(e)))}getCount(e){return A(e)?this.getAll().filter(e).length:this.getValue().ids.length}selectLast(e){return this.selectAt(t=>t[t.length-1],e)}selectFirst(e){return this.selectAt(t=>t[0],e)}selectEntityAction(e){if(J(e))return this.store.selectEntityAction$;const t=P(e)?n=>n:({ids:n})=>n,a=N(e);return this.store.selectEntityAction$.pipe(Ue(({type:n})=>a.includes(n)),O(n=>t(n)))}hasEntity(e){return J(e)?this.getValue().ids.length>0:A(e)?this.getAll().some(e):P(e)?e.every(t=>t in this.getValue().entities):e in this.getValue().entities}hasActive(e){const t=this.getValue().active,a=z(e);return Array.isArray(t)?a?t.includes(e):t.length>0:a?t===e:z(t)}createUIQuery(){this.ui=new Ze(this.__store__.ui)}selectAt(e,t){return this.select(a=>a.ids).pipe(O(e),G(),H(a=>this.selectEntity(a,t)))}}class Ze extends ze{constructor(e){super(e)}}function $(r){"@babel/helpers - typeof";return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function g(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function w(r){g(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||$(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[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 et(r,e){g(2,arguments);var t=w(r).getTime(),a=M(e);return new Date(t+a)}var tt={};function L(){return tt}function rt(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function at(r){return g(1,arguments),r instanceof Date||$(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function nt(r){if(g(1,arguments),!at(r)&&typeof r!="number")return!1;var e=w(r);return!isNaN(Number(e))}function it(r,e){g(2,arguments);var t=M(e);return et(r,-t)}var ot=864e5;function ut(r){g(1,arguments);var e=w(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/ot)+1}function F(r){g(1,arguments);var e=1,t=w(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function ue(r){g(1,arguments);var e=w(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=F(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=F(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function st(r){g(1,arguments);var e=ue(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=F(t);return a}var lt=6048e5;function dt(r){g(1,arguments);var e=w(r),t=F(e).getTime()-st(e).getTime();return Math.round(t/lt)+1}function q(r,e){var t,a,n,i,o,s,d,u;g(1,arguments);var c=L(),l=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&n!==void 0?n:c.weekStartsOn)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=w(r),m=h.getUTCDay(),v=(m<l?7:0)+m-l;return h.setUTCDate(h.getUTCDate()-v),h.setUTCHours(0,0,0,0),h}function se(r,e){var t,a,n,i,o,s,d,u;g(1,arguments);var c=w(r),l=c.getUTCFullYear(),h=L(),m=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&a!==void 0?a:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(l+1,0,m),v.setUTCHours(0,0,0,0);var k=q(v,e),T=new Date(0);T.setUTCFullYear(l,0,m),T.setUTCHours(0,0,0,0);var S=q(T,e);return c.getTime()>=k.getTime()?l+1:c.getTime()>=S.getTime()?l:l-1}function ct(r,e){var t,a,n,i,o,s,d,u;g(1,arguments);var c=L(),l=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:c.firstWeekContainsDate)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=se(r,e),m=new Date(0);m.setUTCFullYear(h,0,l),m.setUTCHours(0,0,0,0);var v=q(m,e);return v}var ft=6048e5;function ht(r,e){g(1,arguments);var t=w(r),a=q(t,e).getTime()-ct(t,e).getTime();return Math.round(a/ft)+1}function f(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var mt={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return f(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):f(a+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return f(i,t.length)}};const p=mt;var D={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vt={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,a,n){var i=se(e,n),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return f(s,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):f(o,t.length)},R:function(e,t){var a=ue(e);return f(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return f(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return f(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return f(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return f(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=ht(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):f(i,t.length)},I:function(e,t,a){var n=dt(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):f(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,a){var n=ut(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):f(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return f(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return f(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=D.noon:n===0?i=D.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=D.evening:n>=12?i=D.afternoon:n>=4?i=D.morning:i=D.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return p.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return re(o);case"XXXX":case"XX":return C(o);case"XXXXX":case"XXX":default:return C(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return re(o);case"xxxx":case"xx":return C(o);case"xxxxx":case"xxx":default:return C(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+te(o,":");case"OOOO":default:return"GMT"+C(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+te(o,":");case"zzzz":default:return"GMT"+C(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return f(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return f(o,t.length)}};function te(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e||"";return t+String(n)+o+f(i,2)}function re(r,e){if(r%60===0){var t=r>0?"-":"+";return t+f(Math.abs(r)/60,2)}return C(r,e)}function C(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=f(Math.floor(n/60),2),o=f(n%60,2);return a+i+t+o}const gt=vt;var ae=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},le=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yt=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return ae(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",ae(n,t)).replace("{{time}}",le(i,t))},wt={p:le,P:yt};const bt=wt;var pt=["D","DD"],Tt=["YY","YYYY"];function Ot(r){return pt.indexOf(r)!==-1}function Ct(r){return Tt.indexOf(r)!==-1}function ne(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Mt={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"}},Dt=function(e,t,a){var n,i=Mt[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const Pt=Dt;function X(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var kt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},St={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wt={date:X({formats:kt,defaultWidth:"full"}),time:X({formats:St,defaultWidth:"full"}),dateTime:X({formats:xt,defaultWidth:"full"})};const Ut=Wt;var _t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Et=function(e,t,a,n){return _t[e]};const Yt=Et;function U(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var s=r.defaultWidth,d=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[d]||r.values[s]}var u=r.argumentCallback?r.argumentCallback(e):e;return n[u]}}var At={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$t={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"]},Ft={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"]},qt={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"}},Lt={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"}},Bt=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Qt={ordinalNumber:Bt,era:U({values:At,defaultWidth:"wide"}),quarter:U({values:Nt,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:U({values:$t,defaultWidth:"wide"}),day:U({values:Ft,defaultWidth:"wide"}),dayPeriod:U({values:qt,defaultWidth:"wide",formattingValues:Lt,defaultFormattingWidth:"wide"})};const Vt=Qt;function _(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],s=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],d=Array.isArray(s)?Rt(s,function(l){return l.test(o)}):It(s,function(l){return l.test(o)}),u;u=r.valueCallback?r.valueCallback(d):d,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function It(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Rt(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Ht(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(n.length);return{value:o,rest:s}}}var Xt=/^(\d+)(th|st|nd|rd)?/i,jt=/\d+/i,Gt={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},Jt={any:[/^b/i,/^(a|c)/i]},Kt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zt={any:[/1/i,/2/i,/3/i,/4/i]},Zt={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},er={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]},tr={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},rr={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]},ar={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},nr={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}},ir={ordinalNumber:Ht({matchPattern:Xt,parsePattern:jt,valueCallback:function(e){return parseInt(e,10)}}),era:_({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),quarter:_({matchPatterns:Kt,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_({matchPatterns:Zt,defaultMatchWidth:"wide",parsePatterns:er,defaultParseWidth:"any"}),day:_({matchPatterns:tr,defaultMatchWidth:"wide",parsePatterns:rr,defaultParseWidth:"any"}),dayPeriod:_({matchPatterns:ar,defaultMatchWidth:"any",parsePatterns:nr,defaultParseWidth:"any"})};const or=ir;var ur={code:"en-US",formatDistance:Pt,formatLong:Ut,formatRelative:Yt,localize:Vt,match:or,options:{weekStartsOn:0,firstWeekContainsDate:1}};const sr=ur;var lr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cr=/^'([^]*?)'?$/,fr=/''/g,hr=/[a-zA-Z]/;function yr(r,e,t){var a,n,i,o,s,d,u,c,l,h,m,v,k,T,S,B,Q,V;g(2,arguments);var de=String(e),x=L(),W=(a=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:x.locale)!==null&&a!==void 0?a:sr,I=M((i=(o=(s=(d=t==null?void 0:t.firstWeekContainsDate)!==null&&d!==void 0?d:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:x.firstWeekContainsDate)!==null&&o!==void 0?o:(l=x.locale)===null||l===void 0||(h=l.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=M((m=(v=(k=(T=t==null?void 0:t.weekStartsOn)!==null&&T!==void 0?T:t==null||(S=t.locale)===null||S===void 0||(B=S.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&k!==void 0?k:x.weekStartsOn)!==null&&v!==void 0?v:(Q=x.locale)===null||Q===void 0||(V=Q.options)===null||V===void 0?void 0:V.weekStartsOn)!==null&&m!==void 0?m:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!W.localize)throw new RangeError("locale must contain localize property");if(!W.formatLong)throw new RangeError("locale must contain formatLong property");var E=w(r);if(!nt(E))throw new RangeError("Invalid time value");var ce=rt(E),fe=it(E,ce),he={firstWeekContainsDate:I,weekStartsOn:R,locale:W,_originalDate:E},me=de.match(dr).map(function(y){var b=y[0];if(b==="p"||b==="P"){var Y=bt[b];return Y(y,W.formatLong)}return y}).join("").match(lr).map(function(y){if(y==="''")return"'";var b=y[0];if(b==="'")return mr(y);var Y=gt[b];if(Y)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Ct(y)&&ne(y,e,String(r)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Ot(y)&&ne(y,e,String(r)),Y(fe,y,W.localize,he);if(b.match(hr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return y}).join("");return me}function mr(r){var e=r.match(cr);return e?e[1].replace(fr,"'"):r}export{ze as Q,$ as _,M as a,f as b,gr as c,F as d,ht as e,yr as f,se as g,dt as h,L as i,sr as j,Ct as k,bt as l,Ye as m,ne as n,Ot as o,it as p,rt as q,g as r,q as s,w as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var Ie=Object.defineProperty;var be=(t,a,u)=>a in t?Ie(t,a,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[a]=u;var q=(t,a,u)=>(be(t,typeof a!="symbol"?a+"":a,u),u);import{k as se,y as P,p as U,l as ve,m as ye,E as pe,S as ge,f as Re,q as Ke,O as F,n as Ee,o as r,b as J,h as Z,r as re,u as He,v as oe,e as j,P as Pe,x as Me,z as we,A as Ge,C as A,w as Ue,U as ke,H as je,R as Ye,d as xe,i as Ve,j as X}from"./index-c40b5413.js";import{G as We,a as $e,b as Qe,C as qe,S as Xe,P as ze,B as Fe,c as Je,p as Ze,d as en,m as nn}from"./banner-icon-0117e93c.js";import{c as de}from"./contentful-service-ec08fb7b.js";import{Q as tn,c as rn,f as an}from"./index-e7929e3d.js";import{P as ln}from"./pillar-tag-d2869d71.js";import{w as cn}from"./promise-76b37e88.js";import{m as ae}from"./motion-aecc8ecb.js";function un({title:t,titleId:a,...u},c){return P("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:c,"aria-labelledby":a},u),t?P("title",{id:a},t):null,P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const sn=se(un),En=sn,_e=(t,a,u)=>{U(()=>{let c=!0;return t(()=>c),()=>{c=!1,ve.pipe(a,ye(()=>{},n=>n()))}},u)};function on({title:t,titleId:a,...u},c){return P("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:c,"aria-labelledby":a},u),t?P("title",{id:a},t):null,P("path",{d:"M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 101.06-1.06l-8.689-8.69a2.25 2.25 0 00-3.182 0l-8.69 8.69a.75.75 0 001.061 1.06l8.69-8.69z"}),P("path",{d:"M12 5.432l8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V21a.75.75 0 01-.75.75H5.625a1.875 1.875 0 01-1.875-1.875v-6.198a2.29 2.29 0 00.091-.086L12 5.43z"}))}const dn=se(on),_n=dn;var le,ie;const Ln=()=>({all:[],money:[],mind:[],body:[],work:[],life:[]}),fn=()=>({currentTab:"all",searchString:""});let Sn=(le=ge({name:"explore-wellbeing",cache:{ttl:"3600000"},resettable:!0,producerFn:Re}),le(ie=class extends pe{constructor(){super(fn())}})||ie);const x=new Sn;class V extends tn{constructor(u){super(u);q(this,"currentTab$",this.select(u=>u.currentTab));q(this,"previewsOnStage$",rn([this.selectAll(),this.select(u=>u.searchString),this.select(u=>u.currentTab)]).pipe(Ke(([u,c,n])=>this.getHasCache()?F.fromNullable(V.filterPreviews(u,c,n)):Ee)));this.store=u}get isPreviewsLoaded(){var u;return(((u=this.getValue().ids)==null?void 0:u.length)??0)>0}static filterPreviews(u,c,n){return V.searchPreviews(u,c).filter(d=>n==="all"||d.pillar===n)}static searchPreviews(u,c){return u.filter(n=>n.title.toLowerCase().includes(c.toLowerCase())||n.subtitle.toLowerCase().includes(c.toLowerCase()))}static classifyPreviews(u){const c=Ln();return u.forEach(n=>{const d=n.pillar;c[d].push(n)}),c.all=u,c}}const ee=new V(x),On=()=>({setTab:t=>{x.update(a=>{a.currentTab=t})},searchPreviews:t=>{x.update(a=>{a.searchString=t,a.currentTab="all"})},loadEntryPreviews:()=>ee.selectCached(()=>de.loadAvailableEntryPreviewsAsync(),t=>x.set(t))}),k=On(),Tn=()=>r(J,{children:[...Array(3).keys()].map((t,a)=>r(We,{},a))}),Bn=()=>{const[t,a]=Z(Ee);U(()=>{const n=[ee.previewsOnStage$.subscribe(a)];return()=>{n.map(d=>d.unsubscribe())}},[]);const u=async n=>{n.externalLink||oe(`/wellbeing-hub/articles/${n.slug}`),j.trackEntryViewed({contentId:n.id,contentTitle:n.slug,contentType:n.primaryContentType,contentPillar:n.pillar})},c=re(t,[]).length>0?re(t,[]).map(n=>r($e,{className:"uiid-preview-item",imageUrl:`${n.coverPhotoUrl}?fm=jpg&q=50&w=640&h=480`,externalLink:n.externalLink,onClick:()=>u(n),children:r("div",{className:"flex-1",children:[r("div",{className:"flex items-center",children:[r(ln,{className:"uiid-preview-tag",name:n.pillar}),r("div",{className:"text-sm leading-5 font-normal px-2 text-gray-300",children:"|"}),r("div",{className:"text-xs leading-4 font-semibold tracking-wider uppercase text-gray-400",children:n.primaryContentType}),r("div",{className:"flex-grow"}),n.externalLink&&r(En,{className:"h-5 w-5 text-gray-400 border-0"})]}),r("div",{className:"block mt-2",children:[r("p",{className:"uiid-preview-item-title text-xl font-semibold text-gray-900",children:n.title}),r("p",{className:"uiid-preview-item-subtitle mt-1 text-sm text-gray-500",children:n.subtitle})]})]})},n.id)):r(Qe,{children:[r("p",{children:"Sorry, no entries were found matching your search request."}),r("p",{children:"Please try another search."})]});return r(qe,{className:"uiid-preview-grid",children:He(t)?r(Tn,{}):c})},mn=()=>{const[t,a]=Z("all");U(()=>{const n=[ee.currentTab$.subscribe(a),k.loadEntryPreviews().subscribe()];return()=>{n.map(d=>d.unsubscribe())}},[]),U(()=>()=>{k.searchPreviews("")},[]);const u=async n=>{k.setTab(n),oe(`/wellbeing-hub/${n}`),j.trackEntriesListViewedAsync(n)},c=async n=>{k.searchPreviews(n),j.trackEntriesListSearchedAsync(n)};return r("div",{className:"flex flex-col",style:{minHeight:window.innerHeight},children:[r("div",{className:"sm:flex sm:items-center sm:justify-between",children:[r("div",{className:"flex",children:r("div",{className:"text-3xl leading-9 font-semibold text-gray-700",children:"Explore the 5 pillars of wellness"})}),r("div",{className:"mt-4 sm:mt-0",children:r(Xe,{onSearchEvent:c})})]}),r("div",{className:"mt-4",children:r(ze,{currentTab:t,onTabClicked:u})}),r("div",{className:"mt-6",children:r(Bn,{})})]})},Cn="/benefits/app/assets/wellbeing_banner-6903d615.png",Dn=()=>r("div",{className:"flex gap-4",children:Pe.map(t=>r(Fe,{children:r("div",{className:Je[t],children:Ze(t)})}))}),Nn=()=>r(en,{className:"h-full",bgImageUrl:Cn,children:r("div",{className:"px-4 py-10 md:px-8 md:py-24 text-white",children:[r("div",{className:"text-2xl leading-8 font-bold",children:"Wellbeing Hub"}),r("div",{className:"max-w-sm text-md md:text-lg leading-6 mt-1 font-medium hidden md:block",children:"Providing education, support and tools to help you live a healthier and happier life!"}),r("div",{className:"pt-4 hidden md:block",children:r(Dn,{})})]})}),ce=({pillarFilter:t})=>{const a=Me(null);return _e(async()=>{await j.trackWellbeingOpenedAsync()},F.none,[]),U(()=>{var u;k.setTab(t??"all"),j.trackEntriesListViewedAsync(t??"all"),t&&((u=a.current)==null||u.scrollIntoView({behavior:"smooth"}))},[t,a]),r("div",{className:"max-w-7xl min-w-5xl mx-auto px-4 py-8 sm:px-6 lg:px-8 mb-20",children:[r("div",{className:"flex flex-col md:flex-row",children:r("div",{className:"w-full",children:r(Nn,{})})}),r("div",{className:"mt-8 pt-4",ref:a,children:r(mn,{})})]})},hn=({pages:t,homePageUrl:a})=>r("nav",{className:"bg-white border-b border-gray-200 flex","aria-label":"Breadcrumb",children:r("ol",{role:"list",className:"max-w-screen-xl w-full mx-auto px-4 flex space-x-4 sm:px-6 lg:px-8",children:[r("li",{className:"flex",children:r("div",{className:"flex items-center",children:r("a",{href:a??"#",className:"text-gray-400 hover:text-gray-500",children:[r(_n,{className:"flex-shrink-0 h-5 w-5","aria-hidden":"true"}),r("span",{className:"sr-only",children:"Home"})]})})}),t.map((u,c)=>r("li",{className:"flex",children:r("div",{className:"flex items-center",children:[r("svg",{className:"flex-shrink-0 w-6 h-full text-gray-200",viewBox:"0 0 24 44",preserveAspectRatio:"none",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:r("path",{d:"M.293 0l22 22-22 22h1.414l22-22-22-22H.293z"})}),r("a",{href:u.href,className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700","aria-current":t.length===c+1?"page":void 0,children:u.name})]})},u.name))]})}),An=(t,a)=>{U(()=>{window.scrollTo(t)},a)},In=(t,a)=>{An({top:0,...t},a)};var Le={};const bn=we(Ge);(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(i){return i&&typeof i=="object"&&"default"in i?i.default:i}var u=bn,c=a(u),n=function(){return n=Object.assign||function(e){for(var s,T=1,B=arguments.length;T<B;T++){s=arguments[T];for(var I in s)Object.prototype.hasOwnProperty.call(s,I)&&(e[I]=s[I])}return e},n.apply(this,arguments)},d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof A<"u"?A:typeof self<"u"?self:{};function h(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function C(i,e){return e={exports:{}},i(e,e.exports),e.exports}var l=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BLOCKS=void 0,function(s){s.DOCUMENT="document",s.PARAGRAPH="paragraph",s.HEADING_1="heading-1",s.HEADING_2="heading-2",s.HEADING_3="heading-3",s.HEADING_4="heading-4",s.HEADING_5="heading-5",s.HEADING_6="heading-6",s.OL_LIST="ordered-list",s.UL_LIST="unordered-list",s.LIST_ITEM="list-item",s.HR="hr",s.QUOTE="blockquote",s.EMBEDDED_ENTRY="embedded-entry-block",s.EMBEDDED_ASSET="embedded-asset-block",s.EMBEDDED_RESOURCE="embedded-resource-block",s.TABLE="table",s.TABLE_ROW="table-row",s.TABLE_CELL="table-cell",s.TABLE_HEADER_CELL="table-header-cell"}(e.BLOCKS||(e.BLOCKS={}))});h(l),l.BLOCKS;var b=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.INLINES=void 0,function(s){s.HYPERLINK="hyperlink",s.ENTRY_HYPERLINK="entry-hyperlink",s.ASSET_HYPERLINK="asset-hyperlink",s.RESOURCE_HYPERLINK="resource-hyperlink",s.EMBEDDED_ENTRY="embedded-entry-inline",s.EMBEDDED_RESOURCE="embedded-resource-inline"}(e.INLINES||(e.INLINES={}))});h(b),b.INLINES;var v=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0});var s;(function(T){T.BOLD="bold",T.ITALIC="italic",T.UNDERLINE="underline",T.CODE="code",T.SUPERSCRIPT="superscript",T.SUBSCRIPT="subscript"})(s||(s={})),e.default=s});h(v);var E=C(function(i,e){var s=d&&d.__spreadArray||function(O,p,o){if(o||arguments.length===2)for(var _=0,S=p.length,D;_<S;_++)(D||!(_ in p))&&(D||(D=Array.prototype.slice.call(p,0,_)),D[_]=p[_]);return O.concat(D||Array.prototype.slice.call(p))},T=d&&d.__importDefault||function(O){return O&&O.__esModule?O:{default:O}},B;Object.defineProperty(e,"__esModule",{value:!0}),e.V1_MARKS=e.V1_NODE_TYPES=e.TEXT_CONTAINERS=e.HEADINGS=e.CONTAINERS=e.VOID_BLOCKS=e.TABLE_BLOCKS=e.LIST_ITEM_BLOCKS=e.TOP_LEVEL_BLOCKS=void 0;var I=T(v);e.TOP_LEVEL_BLOCKS=[l.BLOCKS.PARAGRAPH,l.BLOCKS.HEADING_1,l.BLOCKS.HEADING_2,l.BLOCKS.HEADING_3,l.BLOCKS.HEADING_4,l.BLOCKS.HEADING_5,l.BLOCKS.HEADING_6,l.BLOCKS.OL_LIST,l.BLOCKS.UL_LIST,l.BLOCKS.HR,l.BLOCKS.QUOTE,l.BLOCKS.EMBEDDED_ENTRY,l.BLOCKS.EMBEDDED_ASSET,l.BLOCKS.EMBEDDED_RESOURCE,l.BLOCKS.TABLE],e.LIST_ITEM_BLOCKS=[l.BLOCKS.PARAGRAPH,l.BLOCKS.HEADING_1,l.BLOCKS.HEADING_2,l.BLOCKS.HEADING_3,l.BLOCKS.HEADING_4,l.BLOCKS.HEADING_5,l.BLOCKS.HEADING_6,l.BLOCKS.OL_LIST,l.BLOCKS.UL_LIST,l.BLOCKS.HR,l.BLOCKS.QUOTE,l.BLOCKS.EMBEDDED_ENTRY,l.BLOCKS.EMBEDDED_ASSET,l.BLOCKS.EMBEDDED_RESOURCE],e.TABLE_BLOCKS=[l.BLOCKS.TABLE,l.BLOCKS.TABLE_ROW,l.BLOCKS.TABLE_CELL,l.BLOCKS.TABLE_HEADER_CELL],e.VOID_BLOCKS=[l.BLOCKS.HR,l.BLOCKS.EMBEDDED_ENTRY,l.BLOCKS.EMBEDDED_ASSET,l.BLOCKS.EMBEDDED_RESOURCE],e.CONTAINERS=(B={},B[l.BLOCKS.OL_LIST]=[l.BLOCKS.LIST_ITEM],B[l.BLOCKS.UL_LIST]=[l.BLOCKS.LIST_ITEM],B[l.BLOCKS.LIST_ITEM]=e.LIST_ITEM_BLOCKS,B[l.BLOCKS.QUOTE]=[l.BLOCKS.PARAGRAPH],B[l.BLOCKS.TABLE]=[l.BLOCKS.TABLE_ROW],B[l.BLOCKS.TABLE_ROW]=[l.BLOCKS.TABLE_CELL,l.BLOCKS.TABLE_HEADER_CELL],B[l.BLOCKS.TABLE_CELL]=[l.BLOCKS.PARAGRAPH],B[l.BLOCKS.TABLE_HEADER_CELL]=[l.BLOCKS.PARAGRAPH],B),e.HEADINGS=[l.BLOCKS.HEADING_1,l.BLOCKS.HEADING_2,l.BLOCKS.HEADING_3,l.BLOCKS.HEADING_4,l.BLOCKS.HEADING_5,l.BLOCKS.HEADING_6],e.TEXT_CONTAINERS=s([l.BLOCKS.PARAGRAPH],e.HEADINGS,!0),e.V1_NODE_TYPES=[l.BLOCKS.DOCUMENT,l.BLOCKS.PARAGRAPH,l.BLOCKS.HEADING_1,l.BLOCKS.HEADING_2,l.BLOCKS.HEADING_3,l.BLOCKS.HEADING_4,l.BLOCKS.HEADING_5,l.BLOCKS.HEADING_6,l.BLOCKS.OL_LIST,l.BLOCKS.UL_LIST,l.BLOCKS.LIST_ITEM,l.BLOCKS.HR,l.BLOCKS.QUOTE,l.BLOCKS.EMBEDDED_ENTRY,l.BLOCKS.EMBEDDED_ASSET,b.INLINES.HYPERLINK,b.INLINES.ENTRY_HYPERLINK,b.INLINES.ASSET_HYPERLINK,b.INLINES.EMBEDDED_ENTRY,"text"],e.V1_MARKS=[I.default.BOLD,I.default.CODE,I.default.ITALIC,I.default.UNDERLINE]});h(E),E.V1_MARKS,E.V1_NODE_TYPES,E.TEXT_CONTAINERS,E.HEADINGS,E.CONTAINERS,E.VOID_BLOCKS,E.TABLE_BLOCKS,E.LIST_ITEM_BLOCKS,E.TOP_LEVEL_BLOCKS;var L=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0})});h(L);var N=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0})});h(N);var g=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0});var s={nodeType:l.BLOCKS.DOCUMENT,data:{},content:[{nodeType:l.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};e.default=s});h(g);var y=C(function(i,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isText=e.isBlock=e.isInline=void 0;function s(O,p){for(var o=0,_=Object.keys(O);o<_.length;o++){var S=_[o];if(p===O[S])return!0}return!1}function T(O){return s(b.INLINES,O.nodeType)}e.isInline=T;function B(O){return s(l.BLOCKS,O.nodeType)}e.isBlock=B;function I(O){return O.nodeType==="text"}e.isText=I});h(y),y.isText,y.isBlock,y.isInline;var M=C(function(i,e){var s=d&&d.__createBinding||(Object.create?function(o,_,S,D){D===void 0&&(D=S);var G=Object.getOwnPropertyDescriptor(_,S);(!G||("get"in G?!_.__esModule:G.writable||G.configurable))&&(G={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(o,D,G)}:function(o,_,S,D){D===void 0&&(D=S),o[D]=_[S]}),T=d&&d.__setModuleDefault||(Object.create?function(o,_){Object.defineProperty(o,"default",{enumerable:!0,value:_})}:function(o,_){o.default=_}),B=d&&d.__exportStar||function(o,_){for(var S in o)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&s(_,o,S)},I=d&&d.__importStar||function(o){if(o&&o.__esModule)return o;var _={};if(o!=null)for(var S in o)S!=="default"&&Object.prototype.hasOwnProperty.call(o,S)&&s(_,o,S);return T(_,o),_},O=d&&d.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.helpers=e.EMPTY_DOCUMENT=e.MARKS=e.INLINES=e.BLOCKS=void 0,Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return l.BLOCKS}}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return b.INLINES}}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return O(v).default}}),B(E,e),B(L,e),B(N,e),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return O(g).default}});var p=I(y);e.helpers=p});h(M);var me=M.helpers;M.EMPTY_DOCUMENT;var w=M.MARKS,H=M.INLINES,m=M.BLOCKS;function Ce(i,e){return u.isValidElement(i)&&i.key===null?u.cloneElement(i,{key:e}):i}function De(i,e){return i.map(function(s,T){return Ce(te(s,e),T)})}function te(i,e){var s=e.renderNode,T=e.renderMark,B=e.renderText,I=e.preserveWhitespace;if(me.isText(i)){var O=B?B(i.value):i.value;if(I){O=O.replace(/ {2,}/g,function(S){return" ".repeat(S.length)});var p=O.split(`
|
|
2
|
-
`),o=[];p.forEach(function(S,D){o.push(S),D!==p.length-1&&o.push(c.createElement("br",null))}),O=o}return i.marks.reduce(function(S,D){return T[D.type]?T[D.type](S):S},O)}else{var _=De(i.content,e);return!i.nodeType||!s[i.nodeType]?c.createElement(c.Fragment,null,_):s[i.nodeType](i,_)}}var f,R,Ne=(f={},f[m.DOCUMENT]=function(i,e){return e},f[m.PARAGRAPH]=function(i,e){return c.createElement("p",null,e)},f[m.HEADING_1]=function(i,e){return c.createElement("h1",null,e)},f[m.HEADING_2]=function(i,e){return c.createElement("h2",null,e)},f[m.HEADING_3]=function(i,e){return c.createElement("h3",null,e)},f[m.HEADING_4]=function(i,e){return c.createElement("h4",null,e)},f[m.HEADING_5]=function(i,e){return c.createElement("h5",null,e)},f[m.HEADING_6]=function(i,e){return c.createElement("h6",null,e)},f[m.EMBEDDED_ENTRY]=function(i,e){return c.createElement("div",null,e)},f[m.EMBEDDED_RESOURCE]=function(i,e){return c.createElement("div",null,e)},f[m.UL_LIST]=function(i,e){return c.createElement("ul",null,e)},f[m.OL_LIST]=function(i,e){return c.createElement("ol",null,e)},f[m.LIST_ITEM]=function(i,e){return c.createElement("li",null,e)},f[m.QUOTE]=function(i,e){return c.createElement("blockquote",null,e)},f[m.HR]=function(){return c.createElement("hr",null)},f[m.TABLE]=function(i,e){return c.createElement("table",null,c.createElement("tbody",null,e))},f[m.TABLE_ROW]=function(i,e){return c.createElement("tr",null,e)},f[m.TABLE_HEADER_CELL]=function(i,e){return c.createElement("th",null,e)},f[m.TABLE_CELL]=function(i,e){return c.createElement("td",null,e)},f[H.ASSET_HYPERLINK]=function(i){return Q(H.ASSET_HYPERLINK,i)},f[H.ENTRY_HYPERLINK]=function(i){return Q(H.ENTRY_HYPERLINK,i)},f[H.EMBEDDED_ENTRY]=function(i){return Q(H.EMBEDDED_ENTRY,i)},f[H.HYPERLINK]=function(i,e){return c.createElement("a",{href:i.data.uri},e)},f),he=(R={},R[w.BOLD]=function(i){return c.createElement("b",null,i)},R[w.ITALIC]=function(i){return c.createElement("i",null,i)},R[w.UNDERLINE]=function(i){return c.createElement("u",null,i)},R[w.CODE]=function(i){return c.createElement("code",null,i)},R[w.SUPERSCRIPT]=function(i){return c.createElement("sup",null,i)},R[w.SUBSCRIPT]=function(i){return c.createElement("sub",null,i)},R);function Q(i,e){return c.createElement("span",{key:e.data.target.sys.id},"type: ",e.nodeType," id: ",e.data.target.sys.id)}function Ae(i,e){return e===void 0&&(e={}),i?te(i,{renderNode:n(n({},Ne),e.renderNode),renderMark:n(n({},he),e.renderMark),renderText:e.renderText,preserveWhitespace:e.preserveWhitespace}):null}t.documentToReactComponents=Ae})(Le);var fe={},Y={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCKS=void 0,function(a){a.DOCUMENT="document",a.PARAGRAPH="paragraph",a.HEADING_1="heading-1",a.HEADING_2="heading-2",a.HEADING_3="heading-3",a.HEADING_4="heading-4",a.HEADING_5="heading-5",a.HEADING_6="heading-6",a.OL_LIST="ordered-list",a.UL_LIST="unordered-list",a.LIST_ITEM="list-item",a.HR="hr",a.QUOTE="blockquote",a.EMBEDDED_ENTRY="embedded-entry-block",a.EMBEDDED_ASSET="embedded-asset-block",a.EMBEDDED_RESOURCE="embedded-resource-block",a.TABLE="table",a.TABLE_ROW="table-row",a.TABLE_CELL="table-cell",a.TABLE_HEADER_CELL="table-header-cell"}(t.BLOCKS||(t.BLOCKS={}))})(Y);var W={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.INLINES=void 0,function(a){a.HYPERLINK="hyperlink",a.ENTRY_HYPERLINK="entry-hyperlink",a.ASSET_HYPERLINK="asset-hyperlink",a.RESOURCE_HYPERLINK="resource-hyperlink",a.EMBEDDED_ENTRY="embedded-entry-inline",a.EMBEDDED_RESOURCE="embedded-resource-inline"}(t.INLINES||(t.INLINES={}))})(W);var $={};Object.defineProperty($,"__esModule",{value:!0});var z;(function(t){t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CODE="code",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript"})(z||(z={}));$.default=z;var Se={};(function(t){var a=A&&A.__spreadArray||function(C,l,b){if(b||arguments.length===2)for(var v=0,E=l.length,L;v<E;v++)(L||!(v in l))&&(L||(L=Array.prototype.slice.call(l,0,v)),L[v]=l[v]);return C.concat(L||Array.prototype.slice.call(l))},u=A&&A.__importDefault||function(C){return C&&C.__esModule?C:{default:C}},c;Object.defineProperty(t,"__esModule",{value:!0}),t.V1_MARKS=t.V1_NODE_TYPES=t.TEXT_CONTAINERS=t.HEADINGS=t.CONTAINERS=t.VOID_BLOCKS=t.TABLE_BLOCKS=t.LIST_ITEM_BLOCKS=t.TOP_LEVEL_BLOCKS=void 0;var n=Y,d=W,h=u($);t.TOP_LEVEL_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE,n.BLOCKS.TABLE],t.LIST_ITEM_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],t.TABLE_BLOCKS=[n.BLOCKS.TABLE,n.BLOCKS.TABLE_ROW,n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],t.VOID_BLOCKS=[n.BLOCKS.HR,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],t.CONTAINERS=(c={},c[n.BLOCKS.OL_LIST]=[n.BLOCKS.LIST_ITEM],c[n.BLOCKS.UL_LIST]=[n.BLOCKS.LIST_ITEM],c[n.BLOCKS.LIST_ITEM]=t.LIST_ITEM_BLOCKS,c[n.BLOCKS.QUOTE]=[n.BLOCKS.PARAGRAPH],c[n.BLOCKS.TABLE]=[n.BLOCKS.TABLE_ROW],c[n.BLOCKS.TABLE_ROW]=[n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],c[n.BLOCKS.TABLE_CELL]=[n.BLOCKS.PARAGRAPH],c[n.BLOCKS.TABLE_HEADER_CELL]=[n.BLOCKS.PARAGRAPH],c),t.HEADINGS=[n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6],t.TEXT_CONTAINERS=a([n.BLOCKS.PARAGRAPH],t.HEADINGS,!0),t.V1_NODE_TYPES=[n.BLOCKS.DOCUMENT,n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.LIST_ITEM,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,d.INLINES.HYPERLINK,d.INLINES.ENTRY_HYPERLINK,d.INLINES.ASSET_HYPERLINK,d.INLINES.EMBEDDED_ENTRY,"text"],t.V1_MARKS=[h.default.BOLD,h.default.CODE,h.default.ITALIC,h.default.UNDERLINE]})(Se);var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});var Te={};Object.defineProperty(Te,"__esModule",{value:!0});var ne={};Object.defineProperty(ne,"__esModule",{value:!0});var ue=Y,vn={nodeType:ue.BLOCKS.DOCUMENT,data:{},content:[{nodeType:ue.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};ne.default=vn;var K={};Object.defineProperty(K,"__esModule",{value:!0});K.isText=K.isBlock=K.isInline=void 0;var yn=Y,pn=W;function Be(t,a){for(var u=0,c=Object.keys(t);u<c.length;u++){var n=c[u];if(a===t[n])return!0}return!1}function gn(t){return Be(pn.INLINES,t.nodeType)}K.isInline=gn;function Rn(t){return Be(yn.BLOCKS,t.nodeType)}K.isBlock=Rn;function Kn(t){return t.nodeType==="text"}K.isText=Kn;(function(t){var a=A&&A.__createBinding||(Object.create?function(E,L,N,g){g===void 0&&(g=N);var y=Object.getOwnPropertyDescriptor(L,N);(!y||("get"in y?!L.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return L[N]}}),Object.defineProperty(E,g,y)}:function(E,L,N,g){g===void 0&&(g=N),E[g]=L[N]}),u=A&&A.__setModuleDefault||(Object.create?function(E,L){Object.defineProperty(E,"default",{enumerable:!0,value:L})}:function(E,L){E.default=L}),c=A&&A.__exportStar||function(E,L){for(var N in E)N!=="default"&&!Object.prototype.hasOwnProperty.call(L,N)&&a(L,E,N)},n=A&&A.__importStar||function(E){if(E&&E.__esModule)return E;var L={};if(E!=null)for(var N in E)N!=="default"&&Object.prototype.hasOwnProperty.call(E,N)&&a(L,E,N);return u(L,E),L},d=A&&A.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.helpers=t.EMPTY_DOCUMENT=t.MARKS=t.INLINES=t.BLOCKS=void 0;var h=Y;Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return h.BLOCKS}});var C=W;Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return C.INLINES}});var l=$;Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return d(l).default}}),c(Se,t),c(Oe,t),c(Te,t);var b=ne;Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return d(b).default}});var v=n(K);t.helpers=v})(fe);const Hn={renderNode:{[fe.BLOCKS.EMBEDDED_ASSET]:t=>{const{title:a,description:u,file:c}=t.data.target.fields;return r("figure",{children:[r("img",{src:`${c.url}?fm=jpg&q=90&w=640&h=480`,alt:a}),r("figcaption",{children:u})]})}}},Pn=({body:t})=>r("article",{className:"prose prose-lg prose-indigo",children:Le.documentToReactComponents(t,Hn)}),Mn=()=>r("div",{className:"max-w-3xl mx-auto py-6 px-4 sm:py-10 sm:px-6 lg:px-8 animate-pulse",children:[r("div",{class:"h-8 bg-gray-200 rounded w-2/3"}),r("div",{className:"flex space-x-3 mt-4",children:[r("div",{className:"flex-shrink-0",children:r("div",{class:"rounded-full bg-gray-200 h-10 w-10 mr-1"})}),r("div",{className:"min-w-0 flex flex-col justify-between flex-1",children:[r("div",{class:"h-4 bg-gray-200 rounded w-1/3"}),r("div",{class:"h-4 bg-gray-200 rounded w-1/4"})]})]}),r("div",{className:"mt-8",children:r("div",{class:"flex-1 space-y-8 py-1",children:[r("div",{class:"h-8 bg-gray-200 rounded w-3/4"}),r("div",{class:"h-48 bg-gray-200 rounded w-full"}),r("div",{class:"h-24 bg-gray-200 rounded w-3/4"}),r("div",{class:"h-36 bg-gray-200 rounded w-full"}),r("div",{class:"h-12 bg-gray-200 rounded w-1/4"})]})})]}),wn=({articleSlug:t})=>{const[a,u]=Z();if(_e(async n=>{const d=await cn(de.loadArticleAsync(t),700);n()&&u(d)},F.none,[t]),In(),!a)return r(ae.div,{initial:{opacity:0},animate:{opacity:1},children:r(Mn,{})},"loading");const c=[{name:a==null?void 0:a.pillar,href:`#/wellbeing-hub/${a==null?void 0:a.pillar.toLowerCase()}`}];return r(J,{children:[r(hn,{pages:c,homePageUrl:"#/wellbeing-hub"}),r(ae.div,{initial:{opacity:0},animate:{opacity:1},children:r("div",{className:"max-w-3xl mx-auto py-6 px-4 sm:py-10 sm:px-6 lg:px-8",children:[r("h2",{className:"text-4xl leading-10 font-extrabold tracking-tight",children:a.title}),r("div",{className:"flex space-x-3 mt-4",children:[r("div",{className:"flex-shrink-0",children:r("img",{className:"h-10 w-10 rounded-full",src:`${a.author.fields.avatar.fields.file.url}?fm=jpg&q=90&w=640&h=480`,alt:""})}),r("div",{className:"min-w-0 flex-1",children:[r("p",{className:"text-sm font-medium text-gray-900",children:a.author.fields.name}),r("p",{className:"text-sm text-gray-500",children:an(new Date(a.originalPublicationDate),"dd MMM yyyy")})]})]}),r("div",{className:"mt-8",children:r(Pn,{body:a.articleBody})})]})},"article")]})},Qn=()=>{const t=Ue.useContext(ke),a=nn.isPba();return r(J,{children:[!a&&r(je,{user:t}),r(Ye,{history:xe(Ve()),children:[r(X,{path:"/wellbeing-hub",component:ce}),r(X,{path:"/wellbeing-hub/:pillarFilter",component:ce}),r(X,{path:"/wellbeing-hub/articles/:articleSlug",component:wn})]})]})};export{Qn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as y,x as b,W as g,aa as M,T as j,af as z,a0 as K,ad as Z,V as S,G as v,F as w,w as f,bf as J,a6 as Q,p as k,bg as ee,ap as te,ao as R,b as O,k as N,y as u,am as E,o as l,c as F}from"./index-c40b5413.js";import{b as re,c as ne,p as ae,M as se}from"./use-feature-flag-17b4c424.js";import{u as le,f as oe,L as G,m as ce}from"./motion-aecc8ecb.js";import{X as ie}from"./pillar-tag-d2869d71.js";function de(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function ue(e,t,n){let[r,o]=y(n),a=e!==void 0,s=b(a),i=b(!1),c=b(!1);return a&&!s.current&&!i.current?(i.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&s.current&&!c.current&&(c.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,g(p=>(a||o(p),t==null?void 0:t(p)))]}let A=M(null);function U(){let e=v(A);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,U),t}return e}function me(){let[e,t]=y([]);return[e.length>0?e.join(" "):void 0,w(()=>function(n){let r=g(a=>(t(s=>[...s,a]),()=>t(s=>{let i=s.slice(),c=i.indexOf(a);return c!==-1&&i.splice(c,1),i}))),o=w(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return f.createElement(A.Provider,{value:o},n.children)},[t])]}let pe="label";function fe(e,t){let n=z(),{id:r=`headlessui-label-${n}`,passive:o=!1,...a}=e,s=U(),i=K(t);Z(()=>s.register(r),[r,s.register]);let c={ref:i,...s.props,id:r};return o&&("onClick"in c&&(delete c.htmlFor,delete c.onClick),"onClick"in a&&delete a.onClick),S({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:pe,name:s.name||"Label"})}let he=j(fe),ge=Object.assign(he,{}),T=M(null);T.displayName="GroupContext";let be=O;function ye(e){var t;let[n,r]=y(null),[o,a]=me(),[s,i]=se(),c=w(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),p={},$=e;return f.createElement(i,{name:"Switch.Description"},f.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=c.switch)==null?void 0:t.id,onClick(m){n&&(m.currentTarget.tagName==="LABEL"&&m.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},f.createElement(T.Provider,{value:c},S({ourProps:p,theirProps:$,defaultTag:be,name:"Switch.Group"}))))}let ve="button";function we(e,t){let n=z(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:a=!1,onChange:s,name:i,value:c,form:p,...$}=e,m=v(T),x=b(null),X=K(x,t,m===null?null:m.setSwitch),[h,C]=ue(o,s,a),I=g(()=>C==null?void 0:C(!h)),_=g(d=>{if(te(d.currentTarget))return d.preventDefault();d.preventDefault(),I()}),q=g(d=>{d.key===R.Space?(d.preventDefault(),I()):d.key===R.Enter&&de(d.currentTarget)}),H=g(d=>d.preventDefault()),W=w(()=>({checked:h}),[h]),Y={id:r,ref:X,role:"switch",type:J(e,x),tabIndex:0,"aria-checked":h,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,onClick:_,onKeyUp:q,onKeyPress:H},V=Q();return k(()=>{var d;let L=(d=x.current)==null?void 0:d.closest("form");L&&a!==void 0&&V.addEventListener(L,"reset",()=>{C(a)})},[x,C]),f.createElement(f.Fragment,null,i!=null&&h&&f.createElement(ne,{features:ae.Hidden,...ee({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:p,checked:h,name:i,value:c})}),S({ourProps:Y,theirProps:$,slot:W,defaultTag:ve,name:"Switch"}))}let xe=j(we),Ce=ye,He=Object.assign(xe,{Group:Ce,Label:ge,Description:re});function ke({title:e,titleId:t,...n},r){return u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u("title",{id:t},e):null,u("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const Ne=N(ke),$e=Ne;function Me({title:e,titleId:t,...n},r){return u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u("title",{id:t},e):null,u("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))}const Se=N(Me),D=Se;function Te({title:e,titleId:t,...n},r){return u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u("title",{id:t},e):null,u("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"}))}const Ie=N(Te),Le=Ie;function Re({title:e,titleId:t,...n},r){return u("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u("title",{id:t},e):null,u("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"}))}const Ee=N(Re),Fe=Ee;function Ge(){const e=b(!1);return le(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function De(){const e=Ge(),[t,n]=y(0),r=E(()=>{e.current&&n(t+1)},[t]);return[E(()=>oe.postRender(r),[r]),t]}const Pe=M(null),je=e=>!e.isLayoutDirty&&e.willUpdate(!1);function P(){const e=new Set,t=new WeakMap,n=()=>e.forEach(je);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const B=e=>e===!0,ze=e=>B(e===!0)||e==="id",We=({children:e,id:t,inherit:n=!0})=>{const r=v(G),o=v(Pe),[a,s]=De(),i=b(null),c=r.id||o;i.current===null&&(ze(n)&&c&&(t=t?c+"-"+t:c),i.current={id:t,group:B(n)&&r.group||P()});const p=w(()=>({...i.current,forceRender:a}),[s]);return u(G.Provider,{value:p},e)};var Ke=(e=>(e[e.Information=0]="Information",e[e.Error=1]="Error",e[e.Success=2]="Success",e))(Ke||{});const Oe={actionMessages:[],setActionMessages:()=>({})},Ae=f.createContext(Oe),Ue=()=>{const e=v(Ae),[t,n]=y([]);return k(()=>{n(e.actionMessages)},[e.actionMessages]),[t,a=>e.setActionMessages([a,...e.actionMessages]),a=>{if(a>=0&&a<e.actionMessages.length){const s=e.actionMessages.filter((i,c)=>c!==a);e.setActionMessages(s)}}]},Ye=e=>{const[t,n,r]=Ue(),o=t.map((a,s)=>{let i="",c=l(D,{});switch(a.level){case 0:{i="bg-secondary text-primary",c=l(D,{className:"text-blue-400"});break}case 2:{i="bg-green-50 text-green-800",c=l($e,{className:"text-green-400"});break}case 1:{i="bg-red-50 text-red-800",c=l(Fe,{className:"text-red-400"});break}}return l(ce.li,{className:`p-4 rounded-md relative ${i}`,layoutId:s.toString(),layout:"position",children:[l("div",{className:"absolute left-0 top-0 bottom-0 my-auto w-4 h-4 ml-4",children:c}),l("p",{className:"text-sm leading-5 font-medium mx-8 w-100",children:a.message}),l("button",{className:"absolute right-0 top-0 bottom-0 my-auto w-4 h-4 mr-4",onClick:()=>r(s),children:l(ie,{})})]},s)});return l("ul",{className:`space-y-4 ${e.className}`,children:o})},Ve=e=>{const[t,n]=y(0),{tabs:r}=e;k(()=>n(r.findIndex(a=>a.filterKey===e.filterKey)),[e.filterKey,r]),k(()=>e.onFilterChanged(r[t].filterKey),[t]);const o=a=>{n(r.findIndex(s=>s.filterKey===a.currentTarget.value))};return l("div",{children:[l("div",{className:"sm:hidden",children:[l("label",{htmlFor:"tabs",className:"sr-only",children:"Select a tab"}),l("select",{id:"tabs",name:"tabs",className:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary focus:border-primary sm:text-sm rounded-md",value:r[t].filterKey,onChange:o,children:r.map(a=>l("option",{value:a.filterKey,children:a.name}))})]}),l("div",{className:"hidden sm:block",children:l("div",{className:"border-b border-gray-200",children:l("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:r.map((a,s)=>l(O,{children:[l("div",{className:F(s===t?"border-primary text-primary":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200","whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"),"aria-current":s===t?"page":void 0,onClick:()=>n(s),children:[a.name,a.getCount()!==void 0&&l("span",{className:F(s===t?"bg-secondary text-primary":"bg-gray-100 text-gray-900","hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"),children:`${a.getCount()}`})]},a.name),a.showDivider&&l("div",{className:"my-4 border-l-2 border-grey-900"})]}))})})})]})},Ze=()=>{const e=()=>l("div",{class:"border border-gray-100 shadow rounded-md px-4 py-2 sm:px-6 w-full mx-auto",children:l("div",{class:"animate-pulse flex items-center justify-start",children:[l("div",{className:"flex items-center justify-start text-gray-300",children:l(Le,{className:"mr-1.5 h-6 w-6","aria-hidden":"true"})}),l("div",{class:"rounded-full bg-gray-300 h-12 w-12 mx-6"}),l("div",{class:"flex-1 space-y-2 py-1",children:[l("div",{class:"h-4 bg-gray-300 rounded w-3/4"}),l("div",{class:"space-y-2",children:[l("div",{class:"h-3 bg-gray-300 rounded"}),l("div",{class:"h-3 bg-gray-300 rounded w-5/6"})]})]})]})});return l("div",{className:"space-y-3",children:[...Array(5).keys()].map(e)})};export{Ke as A,He as G,Ve as I,We as L,Le as S,Ze as a,Ye as b,Ae as c,Ue as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,b as a,a as t}from"./index-c40b5413.js";import{_ as i}from"./use-feature-flag-17b4c424.js";const c=({isOpen:s,onClose:o,children:l})=>e(t.Root,{show:s,as:a,children:e(i,{as:"div",static:!0,className:"modal fixed z-10 inset-0 overflow-y-auto",open:s,onClose:o,children:e("div",{className:"flex items-center justify-center min-h-screen p-4 text-center block",children:[e(t.Child,{as:a,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e(i.Overlay,{className:"fixed inset-0 bg-black bg-opacity-75 transition-opacity"})}),e("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:""}),e(t.Child,{as:a,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:e("div",{className:"inline-block align-bottom transition-all sm:align-middle bg-white rounded-lg text-left overflow-hidden shadow-xl transform",children:l})})]})})});export{c as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aa as vt,bd as Ei,p as Be,G as j,x as ye,bh as ji,am as Oi,F as qt,k as Ii,y as ve,bi as Ui,w as fs}from"./index-c40b5413.js";const ds=vt({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Zt=vt({}),Fe=vt(null),Qt=typeof document<"u",Ni=Qt?Ei:Be,ms=vt({strict:!1});function Gi(t,e,n,s){const{visualElement:i}=j(Zt),o=j(ms),r=j(Fe),a=j(ds).reducedMotion,l=ye();s=s||o.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:i,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;ji(()=>{c&&c.update(n,r)});const u=ye(!!window.HandoffAppearAnimations);return Ni(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),Be(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)}),c}function ft(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Wi(t,e,n){return Oi(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):ft(n)&&(n.current=s))},[e])}function Dt(t){return typeof t=="string"||Array.isArray(t)}function Jt(t){return typeof t=="object"&&typeof t.start=="function"}const ke=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ee=["initial",...ke];function te(t){return Jt(t.animate)||Ee.some(e=>Dt(t[e]))}function ps(t){return!!(te(t)||t.variants)}function $i(t,e){if(te(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Dt(n)?n:void 0,animate:Dt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Hi(t){const{initial:e,animate:n}=$i(t,j(Zt));return qt(()=>({initial:e,animate:n}),[ln(e),ln(n)])}function ln(t){return Array.isArray(t)?t.join(" "):t}const cn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mt={};for(const t in cn)Mt[t]={isEnabled:e=>cn[t].some(n=>!!e[n])};function zi(t){for(const e in t)Mt[e]={...Mt[e],...t[e]}}const gs=vt({}),ys=vt({}),Ki=Symbol.for("motionComponentSymbol");function _i({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&zi(t);function o(a,l){let c;const u={...j(ds),...a,layoutId:Xi(a)},{isStatic:h}=u,f=Hi(a),d=s(a,h);if(!h&&Qt){f.visualElement=Gi(i,d,u,e);const m=j(ys),p=j(ms).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,p,t,m))}return ve(Zt.Provider,{value:f},c&&f.visualElement?ve(c,{visualElement:f.visualElement,...u}):null,n(i,a,Wi(d,f.visualElement,l),d,h,f.visualElement))}const r=Ii(o);return r[Ki]=i,r}function Xi({layoutId:t}){const e=j(gs).id;return e&&t!==void 0?e+"-"+t:t}function Yi(t){function e(s,i={}){return _i(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const qi=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function je(t){return typeof t!="string"||t.includes("-")?!1:!!(qi.indexOf(t)>-1||/[A-Z]/.test(t))}const Wt={};function Zi(t){Object.assign(Wt,t)}const Rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ct=new Set(Rt);function vs(t,{layout:e,layoutId:n}){return ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Wt[t]||t==="opacity")}const O=t=>!!(t&&t.getVelocity),Qi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ji=Rt.length;function tr(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let o="";for(let r=0;r<Ji;r++){const a=Rt[r];if(t[a]!==void 0){const l=Qi[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,s?"":o):n&&s&&(o="none"),o}const xs=t=>e=>typeof e=="string"&&e.startsWith(t),Ps=xs("--"),xe=xs("var(--"),er=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,nr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,et=(t,e,n)=>Math.min(Math.max(n,t),e),ut={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},St={...ut,transform:t=>et(0,1,t)},jt={...ut,default:1},At=t=>Math.round(t*1e5)/1e5,ee=/(-)?([\d]*\.?[\d])+/g,Ts=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Bt(t){return typeof t=="string"}const Ft=t=>({test:e=>Bt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=Ft("deg"),G=Ft("%"),v=Ft("px"),ir=Ft("vh"),rr=Ft("vw"),un={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},hn={...ut,transform:Math.round},bs={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,size:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:Z,skewX:Z,skewY:Z,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:St,originX:un,originY:un,originZ:v,zIndex:hn,fillOpacity:St,strokeOpacity:St,numOctaves:hn};function Oe(t,e,n,s){const{style:i,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const f=e[h];if(Ps(h)){o[h]=f;continue}const d=bs[h],m=nr(f,d);if(ct.has(h)){if(l=!0,r[h]=m,!u)continue;f!==(d.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=m):i[h]=m}if(e.transform||(l||s?i.transform=tr(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:f="50%",originZ:d=0}=a;i.transformOrigin=`${h} ${f} ${d}`}}const Ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vs(t,e,n){for(const s in e)!O(e[s])&&!vs(s,n)&&(t[s]=e[s])}function or({transformTemplate:t},e,n){return qt(()=>{const s=Ie();return Oe(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function ar(t,e,n){const s=t.style||{},i={};return Vs(i,s,t),Object.assign(i,or(t,e,n)),t.transformValues?t.transformValues(i):i}function lr(t,e,n){const s={},i=ar(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const cr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $t(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||cr.has(t)}let Ss=t=>!$t(t);function ur(t){t&&(Ss=e=>e.startsWith("on")?!$t(e):t(e))}try{ur(require("@emotion/is-prop-valid").default)}catch{}function hr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ss(i)||n===!0&&$t(i)||!e&&!$t(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function fn(t,e,n){return typeof t=="string"?t:v.transform(e+n*t)}function fr(t,e,n){const s=fn(e,t.x,t.width),i=fn(n,t.y,t.height);return`${s} ${i}`}const dr={offset:"stroke-dashoffset",array:"stroke-dasharray"},mr={offset:"strokeDashoffset",array:"strokeDasharray"};function pr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?dr:mr;t[o.offset]=v.transform(-s);const r=v.transform(e),a=v.transform(n);t[o.array]=`${r} ${a}`}function Ue(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,f){if(Oe(t,c,u,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=fr(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&pr(d,r,a,l,!1)}const As=()=>({...Ie(),attrs:{}}),Ne=t=>typeof t=="string"&&t.toLowerCase()==="svg";function gr(t,e,n,s){const i=qt(()=>{const o=As();return Ue(o,e,{enableHardwareAcceleration:!1},Ne(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Vs(o,t.style,t),i.style={...o,...i.style}}return i}function yr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(je(n)?gr:lr)(s,o,r,n),u={...hr(s,typeof n=="string",t),...l,ref:i},{children:h}=s,f=qt(()=>O(h)?h.get():h,[h]);return ve(n,{...u,children:f})}}const Ge=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ws(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Cs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ds(t,e,n,s){ws(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Cs.has(i)?i:Ge(i),e.attrs[i])}function We(t,e){const{style:n}=t,s={};for(const i in n)(O(n[i])||e.style&&O(e.style[i])||vs(i,t))&&(s[i]=n[i]);return s}function Ms(t,e){const n=We(t,e);for(const s in t)if(O(t[s])||O(e[s])){const i=Rt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=t[s]}return n}function $e(t,e,n,s={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),e}function vr(t){const e=ye(null);return e.current===null&&(e.current=t()),e.current}const Ht=t=>Array.isArray(t),xr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Pr=t=>Ht(t)?t[t.length-1]||0:t;function Nt(t){const e=O(t)?t.get():t;return xr(e)?e.toValue():e}function Tr({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:br(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Ls=t=>(e,n)=>{const s=j(Zt),i=j(Fe),o=()=>Tr(t,e,s,i);return n?o():vr(o)};function br(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Nt(o[f]);let{initial:r,animate:a}=t;const l=te(t),c=ps(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!Jt(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const m=$e(t,d);if(!m)return;const{transitionEnd:p,transition:x,...b}=m;for(const y in b){let g=b[y];if(Array.isArray(g)){const P=u?g.length-1:0;g=g[P]}g!==null&&(i[y]=g)}for(const y in p)i[y]=p[y]}),i}const M=t=>t;class dn{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Vr(t){let e=new dn,n=new dn,s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,f=h?e:n;return c&&r.add(l),f.add(l)&&h&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c<s;c++){const u=e.order[c];u(l),r.has(u)&&(a.schedule(u),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const Ot=["prepare","read","update","preRender","render","postRender"],Sr=40;function Ar(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ot.reduce((h,f)=>(h[f]=Vr(()=>n=!0),h),{}),r=h=>o[h].process(i),a=()=>{const h=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(h-i.timestamp,Sr),1),i.timestamp=h,i.isProcessing=!0,Ot.forEach(r),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:Ot.reduce((h,f)=>{const d=o[f];return h[f]=(m,p=!1,x=!1)=>(n||l(),d.schedule(m,p,x)),h},{}),cancel:h=>Ot.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:S,cancel:_,state:F,steps:re}=Ar(typeof requestAnimationFrame<"u"?requestAnimationFrame:M,!0),wr={useVisualState:Ls({scrapeMotionValuesFromProps:Ms,createRenderState:As,onMount:(t,e,{renderState:n,latestValues:s})=>{S.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),S.render(()=>{Ue(n,s,{enableHardwareAcceleration:!1},Ne(e.tagName),t.transformTemplate),Ds(e,n)})}})},Cr={useVisualState:Ls({scrapeMotionValuesFromProps:We,createRenderState:Ie})};function Dr(t,{forwardMotionProps:e=!1},n,s){return{...je(t)?wr:Cr,preloadedFeatures:n,useRender:yr(e),createVisualElement:s,Component:t}}function H(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Rs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ne(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Mr=t=>e=>Rs(e)&&t(e,ne(e));function z(t,e,n,s){return H(t,e,Mr(n),s)}const Lr=(t,e)=>n=>e(t(n)),J=(...t)=>t.reduce(Lr);function Bs(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const mn=Bs("dragHorizontal"),pn=Bs("dragVertical");function Fs(t){let e=!1;if(t==="y")e=pn();else if(t==="x")e=mn();else{const n=mn(),s=pn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function ks(){const t=Fs(!0);return t?(t(),!1):!0}class st{constructor(e){this.isMounted=!1,this.node=e}update(){}}function gn(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),i=(o,r)=>{if(o.type==="touch"||ks())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&S.update(()=>a[s](o,r))};return z(t.current,n,i,{passive:!t.getProps()[s]})}class Rr extends st{mount(){this.unmount=J(gn(this.node,!0),gn(this.node,!1))}unmount(){}}class Br extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=J(H(this.node.current,"focus",()=>this.onFocus()),H(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Es=(t,e)=>e?t===e?!0:Es(t,e.parentElement):!1;function oe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ne(n))}class Fr extends st{constructor(){super(...arguments),this.removeStartListeners=M,this.removeEndListeners=M,this.removeAccessibleListeners=M,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const s=this.node.getProps(),o=z(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();S.update(()=>{Es(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(s.onTap||s.onPointerUp)}),r=z(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=J(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||oe("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&S.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=H(this.node.current,"keyup",r),oe("down",(a,l)=>{this.startPress(a,l)})},n=H(this.node.current,"keydown",e),s=()=>{this.isPressing&&oe("cancel",(o,r)=>this.cancelPress(o,r))},i=H(this.node.current,"blur",s);this.removeAccessibleListeners=J(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&S.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ks()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&S.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=z(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=H(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=J(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Pe=new WeakMap,ae=new WeakMap,kr=t=>{const e=Pe.get(t.target);e&&e(t)},Er=t=>{t.forEach(kr)};function jr({root:t,...e}){const n=t||document;ae.has(n)||ae.set(n,{});const s=ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Er,{root:t,...e})),s[i]}function Or(t,e,n){const s=jr(e);return Pe.set(t,n),s.observe(t),()=>{Pe.delete(t),s.unobserve(t)}}const Ir={some:0,all:1};class Ur extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ir[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return Or(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nr(e,n))&&this.startObserver()}unmount(){}}function Nr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Gr={inView:{Feature:Ur},tap:{Feature:Fr},focus:{Feature:Br},hover:{Feature:Rr}};function js(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Wr(t){const e={};return t.values.forEach((n,s)=>e[s]=n.get()),e}function $r(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function se(t,e,n){const s=t.getProps();return $e(s,e,n!==void 0?n:s.custom,Wr(t),$r(t))}const Hr="framerAppearId",zr="data-"+Ge(Hr);let Kr=M,He=M;const tt=t=>t*1e3,K=t=>t/1e3,_r={current:!1},Os=t=>Array.isArray(t)&&typeof t[0]=="number";function Is(t){return!!(!t||typeof t=="string"&&Us[t]||Os(t)||Array.isArray(t)&&t.every(Is))}const Vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Us={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vt([0,.65,.55,1]),circOut:Vt([.55,0,1,.45]),backIn:Vt([.31,.01,.66,-.59]),backOut:Vt([.33,1.53,.69,.99])};function Ns(t){if(t)return Os(t)?Vt(t):Array.isArray(t)?t.map(Ns):Us[t]}function Xr(t,e,n,{delay:s=0,duration:i,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Ns(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}function Yr(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const Gs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,qr=1e-7,Zr=12;function Qr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Gs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>qr&&++a<Zr);return r}function kt(t,e,n,s){if(t===e&&n===s)return M;const i=o=>Qr(o,0,1,t,n);return o=>o===0||o===1?o:Gs(i(o),e,s)}const Jr=kt(.42,0,1,1),to=kt(0,0,.58,1),Ws=kt(.42,0,.58,1),eo=t=>Array.isArray(t)&&typeof t[0]!="number",$s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Hs=t=>e=>1-t(1-e),zs=t=>1-Math.sin(Math.acos(t)),ze=Hs(zs),no=$s(ze),Ks=kt(.33,1.53,.69,.99),Ke=Hs(Ks),so=$s(Ke),io=t=>(t*=2)<1?.5*Ke(t):.5*(2-Math.pow(2,-10*(t-1))),ro={linear:M,easeIn:Jr,easeInOut:Ws,easeOut:to,circIn:zs,circInOut:no,circOut:ze,backIn:Ke,backInOut:so,backOut:Ks,anticipate:io},yn=t=>{if(Array.isArray(t)){He(t.length===4);const[e,n,s,i]=t;return kt(e,n,s,i)}else if(typeof t=="string")return ro[t];return t},_e=(t,e)=>n=>!!(Bt(n)&&sr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),_s=(t,e,n)=>s=>{if(!Bt(s))return s;const[i,o,r,a]=s.match(ee);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},oo=t=>et(0,255,t),le={...ut,transform:t=>Math.round(oo(t))},lt={test:_e("rgb","red"),parse:_s("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+le.transform(t)+", "+le.transform(e)+", "+le.transform(n)+", "+At(St.transform(s))+")"};function ao(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Te={test:_e("#"),parse:ao,transform:lt.transform},dt={test:_e("hsl","hue"),parse:_s("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+G.transform(At(e))+", "+G.transform(At(n))+", "+At(St.transform(s))+")"},E={test:t=>lt.test(t)||Te.test(t)||dt.test(t),parse:t=>lt.test(t)?lt.parse(t):dt.test(t)?dt.parse(t):Te.parse(t),transform:t=>Bt(t)?t:t.hasOwnProperty("red")?lt.transform(t):dt.transform(t)},C=(t,e,n)=>-n*t+n*e+t;function ce(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ce(l,a,t+1/3),o=ce(l,a,t),r=ce(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}const ue=(t,e,n)=>{const s=t*t;return Math.sqrt(Math.max(0,n*(e*e-s)+s))},co=[Te,lt,dt],uo=t=>co.find(e=>e.test(t));function vn(t){const e=uo(t);let n=e.parse(t);return e===dt&&(n=lo(n)),n}const Xs=(t,e)=>{const n=vn(t),s=vn(e),i={...n};return o=>(i.red=ue(n.red,s.red,o),i.green=ue(n.green,s.green,o),i.blue=ue(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),lt.transform(i))};function ho(t){var e,n;return isNaN(t)&&Bt(t)&&(((e=t.match(ee))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ts))===null||n===void 0?void 0:n.length)||0)>0}const Ys={regex:er,countKey:"Vars",token:"${v}",parse:M},qs={regex:Ts,countKey:"Colors",token:"${c}",parse:E.parse},Zs={regex:ee,countKey:"Numbers",token:"${n}",parse:ut.parse};function he(t,{regex:e,countKey:n,token:s,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,s),t.values.push(...o.map(i)))}function zt(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&he(n,Ys),he(n,qs),he(n,Zs),n}function Qs(t){return zt(t).values}function Js(t){const{values:e,numColors:n,numVars:s,tokenised:i}=zt(t),o=e.length;return r=>{let a=i;for(let l=0;l<o;l++)l<s?a=a.replace(Ys.token,r[l]):l<s+n?a=a.replace(qs.token,E.transform(r[l])):a=a.replace(Zs.token,At(r[l]));return a}}const fo=t=>typeof t=="number"?0:t;function mo(t){const e=Qs(t);return Js(t)(e.map(fo))}const nt={test:ho,parse:Qs,createTransformer:Js,getAnimatableNone:mo},ti=(t,e)=>n=>`${n>0?e:t}`;function ei(t,e){return typeof t=="number"?n=>C(t,e,n):E.test(t)?Xs(t,e):t.startsWith("var(")?ti(t,e):si(t,e)}const ni=(t,e)=>{const n=[...t],s=n.length,i=t.map((o,r)=>ei(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}},po=(t,e)=>{const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ei(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}},si=(t,e)=>{const n=nt.createTransformer(e),s=zt(t),i=zt(e);return s.numVars===i.numVars&&s.numColors===i.numColors&&s.numNumbers>=i.numNumbers?J(ni(s.values,i.values),n):ti(t,e)},Lt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},xn=(t,e)=>n=>C(t,e,n);function go(t){return typeof t=="number"?xn:typeof t=="string"?E.test(t)?Xs:si:Array.isArray(t)?ni:typeof t=="object"?po:xn}function yo(t,e,n){const s=[],i=n||go(t[0]),o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||M:e;a=J(l,a)}s.push(a)}return s}function ii(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(He(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=yo(e,s,i),a=r.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=Lt(t[u],t[u+1],c);return r[u](h)};return n?c=>l(et(t[0],t[o-1],c)):l}function vo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(C(n,1,i))}}function xo(t){const e=[0];return vo(e,t.length-1),e}function Po(t,e){return t.map(n=>n*e)}function To(t,e){return t.map(()=>e||Ws).splice(0,t.length-1)}function Kt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=eo(s)?s.map(yn):yn(s),o={done:!1,value:e[0]},r=Po(n&&n.length===e.length?n:xo(e),t),a=ii(r,e,{ease:Array.isArray(i)?i:To(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function ri(t,e){return e?t*(1e3/e):0}const bo=5;function oi(t,e,n){const s=Math.max(e-bo,0);return ri(n-t(s),e-s)}const fe=.001,Vo=.01,Pn=10,So=.05,Ao=1;function wo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o;Kr(t<=tt(Pn));let r=1-e;r=et(So,Ao,r),t=et(Vo,Pn,K(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=be(c,r),m=Math.exp(-h);return fe-f/d*m},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-h),p=be(Math.pow(c,2),r);return(-i(c)+fe>0?-1:1)*((f-d)*m)/p}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-fe+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Do(i,o,a);if(t=tt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Co=12;function Do(t,e,n){let s=n;for(let i=1;i<Co;i++)s=s-t(s)/e(s);return s}function be(t,e){return t*Math.sqrt(1-e*e)}const Mo=["duration","bounce"],Lo=["stiffness","damping","mass"];function Tn(t,e){return e.some(n=>t[n]!==void 0)}function Ro(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Tn(t,Lo)&&Tn(t,Mo)){const n=wo(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function ai({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:f}=Ro(s),d=u?-K(u):0,m=l/(2*Math.sqrt(a*c)),p=o-i,x=K(Math.sqrt(a/c)),b=Math.abs(p)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let y;if(m<1){const g=be(x,m);y=P=>{const T=Math.exp(-m*x*P);return o-T*((d+m*x*p)/g*Math.sin(g*P)+p*Math.cos(g*P))}}else if(m===1)y=g=>o-Math.exp(-x*g)*(p+(d+x*p)*g);else{const g=x*Math.sqrt(m*m-1);y=P=>{const T=Math.exp(-m*x*P),k=Math.min(g*P,300);return o-T*((d+m*x*p)*Math.sinh(k)+g*p*Math.cosh(k))/g}}return{calculatedDuration:f&&h||null,next:g=>{const P=y(g);if(f)r.done=g>=h;else{let T=d;g!==0&&(m<1?T=oi(y,g,P):T=0);const k=Math.abs(T)<=n,A=Math.abs(o-P)<=e;r.done=k&&A}return r.value=r.done?o:P,r}}}function bn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,m=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let p=n*e;const x=h+p,b=r===void 0?x:r(x);b!==x&&(p=b-h);const y=V=>-p*Math.exp(-V/s),g=V=>b+y(V),P=V=>{const D=y(V),W=g(V);f.done=Math.abs(D)<=c,f.value=f.done?b:W};let T,k;const A=V=>{d(f.value)&&(T=V,k=ai({keyframes:[f.value,m(f.value)],velocity:oi(g,V,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:V=>{let D=!1;return!k&&T===void 0&&(D=!0,P(V),A(V)),T!==void 0&&V>T?k.next(V-T):(!D&&P(V),f)}}}const Bo=t=>{const e=({timestamp:n})=>t(n);return{start:()=>S.update(e,!0),stop:()=>_(e),now:()=>F.isProcessing?F.timestamp:performance.now()}},Vn=2e4;function Sn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Vn;)e+=n,s=t.next(e);return e>=Vn?1/0:e}const Fo={decay:bn,inertia:bn,tween:Kt,keyframes:Kt,spring:ai};function _t({autoplay:t=!0,delay:e=0,driver:n=Bo,keyframes:s,type:i="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:h,...f}){let d=1,m=!1,p,x;const b=()=>{x=new Promise(w=>{p=w})};b();let y;const g=Fo[i]||Kt;let P;g!==Kt&&typeof s[0]!="number"&&(P=ii([0,100],s,{clamp:!1}),s=[0,100]);const T=g({...f,keyframes:s});let k;a==="mirror"&&(k=g({...f,keyframes:[...s].reverse(),velocity:-(f.velocity||0)}));let A="idle",V=null,D=null,W=null;T.calculatedDuration===null&&o&&(T.calculatedDuration=Sn(T));const{calculatedDuration:$}=T;let X=1/0,Y=1/0;$!==null&&(X=$+r,Y=X*(o+1)-r);let B=0;const R=w=>{if(D===null)return;d>0&&(D=Math.min(D,w)),d<0&&(D=Math.min(w-Y/d,D)),V!==null?B=V:B=Math.round(w-D)*d;const xt=B-e*(d>=0?1:-1),en=d>=0?xt<0:xt>Y;B=Math.max(xt,0),A==="finished"&&V===null&&(B=Y);let nn=B,sn=T;if(o){const ie=B/X;let Et=Math.floor(ie),it=ie%1;!it&&ie>=1&&(it=1),it===1&&Et--,Et=Math.min(Et,o+1);const on=!!(Et%2);on&&(a==="reverse"?(it=1-it,r&&(it-=r/X)):a==="mirror"&&(sn=k));let an=et(0,1,it);B>Y&&(an=a==="reverse"&&on?1:0),nn=an*X}const Pt=en?{done:!1,value:s[0]}:sn.next(nn);P&&(Pt.value=P(Pt.value));let{done:rn}=Pt;!en&&$!==null&&(rn=d>=0?B>=Y:B<=0);const ki=V===null&&(A==="finished"||A==="running"&&rn);return h&&h(Pt.value),ki&&Fi(),Pt},q=()=>{y&&y.stop(),y=void 0},ht=()=>{A="idle",q(),p(),b(),D=W=null},Fi=()=>{A="finished",u&&u(),q(),p()},Je=()=>{if(m)return;y||(y=n(R));const w=y.now();l&&l(),V!==null?D=w-V:(!D||A==="finished")&&(D=w),A==="finished"&&b(),W=D,V=null,A="running",y.start()};t&&Je();const tn={then(w,xt){return x.then(w,xt)},get time(){return K(B)},set time(w){w=tt(w),B=w,V!==null||!y||d===0?V=w:D=y.now()-w/d},get duration(){const w=T.calculatedDuration===null?Sn(T):T.calculatedDuration;return K(w)},get speed(){return d},set speed(w){w===d||!y||(d=w,tn.time=K(B))},get state(){return A},play:Je,pause:()=>{A="paused",V=B},stop:()=>{m=!0,A!=="idle"&&(A="idle",c&&c(),ht())},cancel:()=>{W!==null&&R(W),ht()},complete:()=>{A="finished"},sample:w=>(D=0,R(w))};return tn}function ko(t){let e;return()=>(e===void 0&&(e=t()),e)}const Eo=ko(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),It=10,Oo=2e4,Io=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Is(e.ease);function Uo(t,e,{onUpdate:n,onComplete:s,...i}){if(!(Eo()&&jo.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let r=!1,a,l;const c=()=>{l=new Promise(y=>{a=y})};c();let{keyframes:u,duration:h=300,ease:f,times:d}=i;if(Io(e,i)){const y=_t({...i,repeat:0,delay:0});let g={done:!1,value:u[0]};const P=[];let T=0;for(;!g.done&&T<Oo;)g=y.sample(T),P.push(g.value),T+=It;d=void 0,u=P,h=T-It,f="linear"}const m=Xr(t.owner.current,e,u,{...i,duration:h,ease:f,times:d});i.syncStart&&(m.startTime=F.isProcessing?F.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>m.cancel(),x=()=>{S.update(p),a(),c()};return m.onfinish=()=>{t.set(Yr(u,i)),s&&s(),x()},{then(y,g){return l.then(y,g)},attachTimeline(y){return m.timeline=y,m.onfinish=null,M},get time(){return K(m.currentTime||0)},set time(y){m.currentTime=tt(y)},get speed(){return m.playbackRate},set speed(y){m.playbackRate=y},get duration(){return K(h)},play:()=>{r||(m.play(),_(p))},pause:()=>m.pause(),stop:()=>{if(r=!0,m.playState==="idle")return;const{currentTime:y}=m;if(y){const g=_t({...i,autoplay:!1});t.setWithVelocity(g.sample(y-It).value,g.sample(y).value,It)}x()},complete:()=>m.finish(),cancel:x}}function No({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const i=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:M,pause:M,stop:M,then:o=>(o(),Promise.resolve()),cancel:M,complete:M});return e?_t({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const Go={type:"spring",stiffness:500,damping:25,restSpeed:10},Wo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),$o={type:"keyframes",duration:.8},Ho={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zo=(t,{keyframes:e})=>e.length>2?$o:ct.has(t)?t.startsWith("scale")?Wo(e[1]):Go:Ho,Ve=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url(")),Ko=new Set(["brightness","contrast","saturate","opacity"]);function _o(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ee)||[];if(!s)return t;const i=n.replace(s,"");let o=Ko.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Xo=/([a-z-]*)\(.*?\)/g,Se={...nt,getAnimatableNone:t=>{const e=t.match(Xo);return e?e.map(_o).join(" "):t}},Yo={...bs,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Se,WebkitFilter:Se},Xe=t=>Yo[t];function li(t,e){let n=Xe(t);return n!==Se&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ci=t=>/^0[^.\s]+$/.test(t);function qo(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||ci(t)}function Zo(t,e,n,s){const i=Ve(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const r=s.from!==void 0?s.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?r:o[c-1]),qo(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const u=l[c];o[u]=li(e,a)}return o}function Qo({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function ui(t,e){return t[e]||t.default||t}const Ye=(t,e,n,s={})=>i=>{const o=ui(s,t)||{},r=o.delay||s.delay||0;let{elapsed:a=0}=s;a=a-tt(r);const l=Zo(e,t,n,o),c=l[0],u=l[l.length-1],h=Ve(t,c),f=Ve(t,u);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{e.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Qo(o)||(d={...d,...zo(t,d)}),d.duration&&(d.duration=tt(d.duration)),d.repeatDelay&&(d.repeatDelay=tt(d.repeatDelay)),!h||!f||_r.current||o.type===!1)return No(d);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=Uo(e,t,d);if(m)return m}return _t(d)};function Xt(t){return!!(O(t)&&t.add)}const hi=t=>/^\-?\d*\.?\d+$/.test(t);function qe(t,e){t.indexOf(e)===-1&&t.push(e)}function Ze(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qe{constructor(){this.subscriptions=[]}add(e){return qe(this.subscriptions,e),()=>Ze(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jo=t=>!isNaN(parseFloat(t));class ta{constructor(e,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,i=!0)=>{this.prev=this.current,this.current=s;const{delta:o,timestamp:r}=F;this.lastUpdated!==r&&(this.timeDelta=o,this.lastUpdated=r,S.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>S.postRender(this.velocityCheck),this.velocityCheck=({timestamp:s})=>{s!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Jo(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Qe);const s=this.events[e].add(n);return e==="change"?()=>{s(),S.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=e,this.timeDelta=s}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ri(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gt(t,e){return new ta(t,e)}const fi=t=>e=>e.test(t),ea={test:t=>t==="auto",parse:t=>t},di=[ut,v,G,Z,rr,ir,ea],Tt=t=>di.find(fi(t)),na=[...di,E,nt],sa=t=>na.find(fi(t));function ia(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function ra(t,e){const n=se(t,e);let{transitionEnd:s={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const r in o){const a=Pr(o[r]);ia(t,r,a)}}function oa(t,e,n){var s,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),r=o.length;if(r)for(let a=0;a<r;a++){const l=o[a],c=e[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(i=(s=n[l])!==null&&s!==void 0?s:t.readValue(l))!==null&&i!==void 0?i:e[l]),u!=null&&(typeof u=="string"&&(hi(u)||ci(u))?u=parseFloat(u):!sa(u)&&nt.test(c)&&(u=li(l,c)),t.addValue(l,gt(u,{owner:t})),n[l]===void 0&&(n[l]=u),u!==null&&t.setBaseTarget(l,u))}}function aa(t,e){return e?(e[t]||e.default||e).from:void 0}function la(t,e,n){const s={};for(const i in t){const o=aa(i,e);if(o!==void 0)s[i]=o;else{const r=n.getValue(i);r&&(s[i]=r.get())}}return s}function ca({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function mi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const f=t.getValue(h),d=a[h];if(!f||d===void 0||u&&ca(u,h))continue;const m={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!f.hasAnimated){const x=t.getProps()[zr];x&&(m.elapsed=window.HandoffAppearAnimations(x,h,f,S),m.syncStart=!0)}f.start(Ye(h,f,d,t.shouldReduceMotion&&ct.has(h)?{type:!1}:m));const p=f.animation;Xt(l)&&(l.add(h),p.then(()=>l.remove(h))),c.push(p)}return r&&Promise.all(c).then(()=>{r&&ra(t,r)}),c}function Ae(t,e,n={}){const s=se(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(mi(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return ua(t,e,c+l,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function ua(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(ha).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Ae(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function ha(t,e){return t.sortNodePosition(e)}function fa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ae(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ae(t,e,n);else{const i=typeof e=="function"?se(t,e,n.custom):e;s=Promise.all(mi(t,i,n))}return s.then(()=>t.notify("AnimationComplete",e))}const da=[...ke].reverse(),ma=ke.length;function pa(t){return e=>Promise.all(e.map(({animation:n,options:s})=>fa(t,n,s)))}function ga(t){let e=pa(t);const n=va();let s=!0;const i=(l,c)=>{const u=se(t,c);if(u){const{transition:h,transitionEnd:f,...d}=u;l={...l,...d,...f}}return l};function o(l){e=l(t)}function r(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},f=[],d=new Set;let m={},p=1/0;for(let b=0;b<ma;b++){const y=da[b],g=n[y],P=u[y]!==void 0?u[y]:h[y],T=Dt(P),k=y===c?g.isActive:null;k===!1&&(p=b);let A=P===h[y]&&P!==u[y]&&T;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),g.protectedKeys={...m},!g.isActive&&k===null||!P&&!g.prevProp||Jt(P)||typeof P=="boolean")continue;const V=ya(g.prevProp,P);let D=V||y===c&&g.isActive&&!A&&T||b>p&&T;const W=Array.isArray(P)?P:[P];let $=W.reduce(i,{});k===!1&&($={});const{prevResolvedValues:X={}}=g,Y={...X,...$},B=R=>{D=!0,d.delete(R),g.needsAnimating[R]=!0};for(const R in Y){const q=$[R],ht=X[R];m.hasOwnProperty(R)||(q!==ht?Ht(q)&&Ht(ht)?!js(q,ht)||V?B(R):g.protectedKeys[R]=!0:q!==void 0?B(R):d.add(R):q!==void 0&&d.has(R)?B(R):g.protectedKeys[R]=!0)}g.prevProp=P,g.prevResolvedValues=$,g.isActive&&(m={...m,...$}),s&&t.blockInitialAnimation&&(D=!1),D&&!A&&f.push(...W.map(R=>({animation:R,options:{type:y,...l}})))}if(d.size){const b={};d.forEach(y=>{const g=t.getBaseTarget(y);g!==void 0&&(b[y]=g)}),f.push({animation:b})}let x=!!f.length;return s&&u.initial===!1&&!t.manuallyAnimateOnMount&&(x=!1),s=!1,x?e(f):Promise.resolve()}function a(l,c,u){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const f=r(u,l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function ya(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!js(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function va(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class xa extends st{constructor(e){super(e),e.animationState||(e.animationState=ga(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Jt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Pa=0;class Ta extends st{constructor(){super(...arguments),this.id=Pa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ba={animation:{Feature:xa},exit:{Feature:Ta}},An=(t,e)=>Math.abs(t-e);function Va(t,e){const n=An(t.x,e.x),s=An(t.y,e.y);return Math.sqrt(n**2+s**2)}class pi{constructor(e,n,{transformPagePoint:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=me(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,h=Va(c.offset,{x:0,y:0})>=3;if(!u&&!h)return;const{point:f}=c,{timestamp:d}=F;this.history.push({...f,timestamp:d});const{onStart:m,onMove:p}=this.handlers;u||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=de(u,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:f}=this.handlers,d=me(c.type==="pointercancel"?this.lastMoveEventInfo:de(u,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,d),f&&f(c,d)},!Rs(e))return;this.handlers=n,this.transformPagePoint=s;const i=ne(e),o=de(i,this.transformPagePoint),{point:r}=o,{timestamp:a}=F;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=n;l&&l(e,me(o,this.history)),this.removeListeners=J(z(window,"pointermove",this.handlePointerMove),z(window,"pointerup",this.handlePointerUp),z(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),_(this.updatePoint)}}function de(t,e){return e?{point:e(t.point)}:t}function wn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function me({point:t},e){return{point:t,delta:wn(t,gi(e)),offset:wn(t,Sa(e)),velocity:Aa(e,.1)}}function Sa(t){return t[0]}function gi(t){return t[t.length-1]}function Aa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=gi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>tt(e)));)n--;if(!s)return{x:0,y:0};const o=K(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function I(t){return t.max-t.min}function we(t,e=0,n=.01){return Math.abs(t-e)<=n}function Cn(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=I(n)/I(e),(we(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(we(t.translate)||isNaN(t.translate))&&(t.translate=0)}function wt(t,e,n,s){Cn(t.x,e.x,n.x,s?s.originX:void 0),Cn(t.y,e.y,n.y,s?s.originY:void 0)}function Dn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function wa(t,e,n){Dn(t.x,e.x,n.x),Dn(t.y,e.y,n.y)}function Mn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Ct(t,e,n){Mn(t.x,e.x,n.x),Mn(t.y,e.y,n.y)}function Ca(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?C(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function Ln(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Da(t,{top:e,left:n,bottom:s,right:i}){return{x:Ln(t.x,n,i),y:Ln(t.y,e,s)}}function Rn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Ma(t,e){return{x:Rn(t.x,e.x),y:Rn(t.y,e.y)}}function La(t,e){let n=.5;const s=I(t),i=I(e);return i>s?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),et(0,1,n)}function Ra(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ce=.35;function Ba(t=Ce){return t===!1?t=0:t===!0&&(t=Ce),{x:Bn(t,"left","right"),y:Bn(t,"top","bottom")}}function Bn(t,e,n){return{min:Fn(t,e),max:Fn(t,n)}}function Fn(t,e){return typeof t=="number"?t:t[e]||0}const kn=()=>({translate:0,scale:1,origin:0,originPoint:0}),mt=()=>({x:kn(),y:kn()}),En=()=>({min:0,max:0}),L=()=>({x:En(),y:En()});function N(t){return[t("x"),t("y")]}function yi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Fa({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ka(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function pe(t){return t===void 0||t===1}function De({scale:t,scaleX:e,scaleY:n}){return!pe(t)||!pe(e)||!pe(n)}function ot(t){return De(t)||vi(t)||t.z||t.rotate||t.rotateX||t.rotateY}function vi(t){return jn(t.x)||jn(t.y)}function jn(t){return t&&t!=="0%"}function Yt(t,e,n){const s=t-n,i=e*s;return n+i}function On(t,e,n,s,i){return i!==void 0&&(t=Yt(t,i,s)),Yt(t,n,s)+e}function Me(t,e=0,n=1,s,i){t.min=On(t.min,e,n,s,i),t.max=On(t.max,e,n,s,i)}function xi(t,{x:e,y:n}){Me(t.x,e.translate,e.scale,e.originPoint),Me(t.y,n.translate,n.scale,n.originPoint)}function Ea(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&pt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,xi(t,r)),s&&ot(o.latestValues)&&pt(t,o.latestValues))}e.x=In(e.x),e.y=In(e.y)}function In(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Q(t,e){t.min=t.min+e,t.max=t.max+e}function Un(t,e,[n,s,i]){const o=e[i]!==void 0?e[i]:.5,r=C(t.min,t.max,o);Me(t,e[n],e[s],r,e.scale)}const ja=["x","scaleX","originX"],Oa=["y","scaleY","originY"];function pt(t,e){Un(t.x,e,ja),Un(t.y,e,Oa)}function Pi(t,e){return yi(ka(t.getBoundingClientRect(),e))}function Ia(t,e,n){const s=Pi(t,n),{scroll:i}=e;return i&&(Q(s.x,i.offset.x),Q(s.y,i.offset.y)),s}const Ua=new WeakMap;class Na{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(ne(l,"page").point)},o=(l,c)=>{const{drag:u,dragPropagation:h,onDragStart:f}=this.getProps();if(u&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Fs(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),N(m=>{let p=this.getAxisMotionValue(m).get()||0;if(G.test(p)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[m];b&&(p=I(b)*(parseFloat(p)/100))}}this.originPoint[m]=p}),f&&S.update(()=>f(l,c),!1,!0);const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},r=(l,c)=>{const{dragPropagation:u,dragDirectionLock:h,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:m}=c;if(h&&this.currentDirection===null){this.currentDirection=Ga(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),d&&d(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new pi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&S.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ut(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Ca(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),{layout:s}=this.visualElement.projection||{},i=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Da(s.layoutBox,e):this.constraints=!1,this.elastic=Ba(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&N(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=Ra(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ft(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ia(s,i.root,this.visualElement.getTransformPagePoint());let r=Ma(i.layout.layoutBox,o);if(n){const a=n(Fa(r));this.hasMutatedConstraints=!!a,a&&(r=yi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=N(u=>{if(!Ut(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(Ye(e,s,0,n))}stopAnimation(){N(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){N(n=>{const{drag:s}=this.getProps();if(!Ut(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ft(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};N(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();i[r]=La({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),N(r=>{if(!Ut(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(C(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Ua.set(this.visualElement,this);const e=this.visualElement.current,n=z(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();ft(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),s();const r=H(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(N(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ce,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Ut(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Ga(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Wa extends st{constructor(e){super(e),this.removeGroupControls=M,this.removeListeners=M,this.controls=new Na(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||M}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nn=t=>(e,n)=>{t&&S.update(()=>t(e,n))};class $a extends st{constructor(){super(...arguments),this.removePointerDownListener=M}onPointerDown(e){this.session=new pi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Nn(e),onStart:Nn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&S.update(()=>i(o,r))}}}mount(){this.removePointerDownListener=z(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ha(){const t=j(Fe);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=Ui();return Be(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Gt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const bt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(v.test(t))t=parseFloat(t);else return t;const n=Gn(t,e.target.x),s=Gn(t,e.target.y);return`${n}% ${s}%`}},za={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=nt.parse(t);if(i.length>5)return s;const o=nt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class Ka extends fs.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Zi(_a),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Gt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||S.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ti(t){const[e,n]=Ha(),s=j(gs);return fs.createElement(Ka,{...t,layoutGroup:s,switchLayoutGroup:j(ys),isPresent:e,safeToRemove:n})}const _a={borderRadius:{...bt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bt,borderTopRightRadius:bt,borderBottomLeftRadius:bt,borderBottomRightRadius:bt,boxShadow:za},bi=["TopLeft","TopRight","BottomLeft","BottomRight"],Xa=bi.length,Wn=t=>typeof t=="string"?parseFloat(t):t,$n=t=>typeof t=="number"||v.test(t);function Ya(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,qa(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Za(s))):o&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<Xa;r++){const a=`border${bi[r]}Radius`;let l=Hn(e,a),c=Hn(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||$n(l)===$n(c)?(t[a]=Math.max(C(Wn(l),Wn(c),s),0),(G.test(c)||G.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=C(e.rotate||0,n.rotate||0,s))}function Hn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const qa=Vi(0,.5,ze),Za=Vi(.5,.95,M);function Vi(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function zn(t,e){t.min=e.min,t.max=e.max}function U(t,e){zn(t.x,e.x),zn(t.y,e.y)}function Kn(t,e,n,s,i){return t-=e,t=Yt(t,1/n,s),i!==void 0&&(t=Yt(t,1/i,s)),t}function Qa(t,e=0,n=1,s=.5,i,o=t,r=t){if(G.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=Kn(t.min,e,n,a,i),t.max=Kn(t.max,e,n,a,i)}function _n(t,e,[n,s,i],o,r){Qa(t,e[n],e[s],e[i],e.scale,o,r)}const Ja=["x","scaleX","originX"],tl=["y","scaleY","originY"];function Xn(t,e,n,s){_n(t.x,e,Ja,n?n.x:void 0,s?s.x:void 0),_n(t.y,e,tl,n?n.y:void 0,s?s.y:void 0)}function Yn(t){return t.translate===0&&t.scale===1}function Si(t){return Yn(t.x)&&Yn(t.y)}function el(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ai(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function qn(t){return I(t.x)/I(t.y)}class nl{constructor(){this.members=[]}add(e){qe(this.members,e),e.scheduleRender()}remove(e){if(Ze(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zn(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(s=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),u&&(s+=`rotateY(${u}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(s+=`scale(${r}, ${a})`),s||"none"}const sl=(t,e)=>t.depth-e.depth;class il{constructor(){this.children=[],this.isDirty=!1}add(e){qe(this.children,e),this.isDirty=!0}remove(e){Ze(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sl),this.isDirty=!1,this.children.forEach(e)}}function rl(t,e){const n=performance.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(_(s),t(o-e))};return S.read(s,!0),()=>_(s)}function ol(t){window.MotionDebug&&window.MotionDebug.record(t)}function al(t){return t instanceof SVGElement&&t.tagName!=="svg"}function ll(t,e,n){const s=O(t)?t:gt(t);return s.start(Ye("",s,e,n)),s.animation}const Qn=["","X","Y","Z"],Jn=1e3;let cl=0;const at={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function wi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=cl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{at.totalNodes=at.resolvedTargetDeltas=at.recalculatedProjection=0,this.nodes.forEach(fl),this.nodes.forEach(yl),this.nodes.forEach(vl),this.nodes.forEach(dl),ol(at)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new il)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Qe),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=al(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=rl(f,250),Gt.hasAnimatedSinceResize&&(Gt.hasAnimatedSinceResize=!1,this.nodes.forEach(es))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Vl,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=u.getProps(),y=!this.targetLayout||!Ai(this.targetLayout,m)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const P={...ui(p,"layout"),onPlay:x,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||es(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ts);return}this.isUpdating||this.nodes.forEach(pl),this.isUpdating=!1,this.nodes.forEach(gl),this.nodes.forEach(ul),this.nodes.forEach(hl),this.clearAllSnapshots();const a=performance.now();F.delta=et(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,re.update.process(F),re.preRender.process(F),re.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ml),this.sharedNodes.forEach(Pl)}scheduleUpdateProjection(){S.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){S.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=L(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:r,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Si(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&(a||ot(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Sl(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return L();const a=r.measureViewportBox(),{scroll:l}=this.root;return l&&(Q(a.x,l.offset.x),Q(a.y,l.offset.y)),a}removeElementScroll(r){const a=L();U(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;if(c!==this.root&&u&&h.layoutScroll){if(u.isRoot){U(a,r);const{scroll:f}=this.root;f&&(Q(a.x,-f.offset.x),Q(a.y,-f.offset.y))}Q(a.x,u.offset.x),Q(a.y,u.offset.y)}}return a}applyTransform(r,a=!1){const l=L();U(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&pt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ot(u.latestValues)&&pt(l,u.latestValues)}return ot(this.latestValues)&&pt(l,this.latestValues),l}removeTransform(r){const a=L();U(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ot(c.latestValues))continue;De(c.latestValues)&&c.updateSnapshot();const u=L(),h=c.measurePageBox();U(u,h),Xn(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ot(this.latestValues)&&Xn(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=F.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),Ct(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wa(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),xi(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),Ct(this.relativeTargetOrigin,this.target,d.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}at.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||De(this.parent.latestValues)||vi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;U(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Ea(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=mt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=mt(),this.projectionDeltaWithTransform=mt());const p=this.projectionTransform;wt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Zn(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==f||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),at.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=mt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=L(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,x=this.getStack(),b=!x||x.members.length<=1,y=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(bl));this.animationProgress=0;let g;this.mixTargetDelta=P=>{const T=P/1e3;ns(h.x,r.x,T),ns(h.y,r.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ct(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tl(this.relativeTarget,this.relativeTargetOrigin,f,T),g&&el(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=L()),U(g,this.relativeTarget)),p&&(this.animationValues=u,Ya(u,c,this.latestValues,T,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{Gt.hasAnimatedSinceResize=!0,this.currentAnimation=ll(0,Jn,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jn),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Ci(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}U(a,l),pt(a,u),wt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new nl),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u<Qn.length;u++){const h="rotate"+Qn[u];l[h]&&(c[h]=l[h],r.setStaticValue(h,0))}r.render();for(const u in c)r.setStaticValue(u,c[u]);r.scheduleRender()}getProjectionStyles(r={}){var a,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Nt(r.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Nt(r.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=Zn(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:d,y:m}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in Wt){if(f[p]===void 0)continue;const{correct:x,applyTo:b}=Wt[p],y=c.transform==="none"?f[p]:x(f[p],h);if(b){const g=b.length;for(let P=0;P<g;P++)c[b[P]]=y}else c[p]=y}return this.options.layoutId&&(c.pointerEvents=h===this?Nt(r.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ts),this.root.sharedNodes.clear()}}}function ul(t){t.updateLayout()}function hl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Ci(o,n.layoutBox,s)&&N(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=mt();wt(a,s,n.layoutBox);const l=mt();r?wt(l,t.applyTransform(i,!0),n.measuredBox):wt(l,s,n.layoutBox);const c=!Si(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=L();Ct(m,n.layoutBox,f.layoutBox);const p=L();Ct(p,s,d.layoutBox),Ai(m,p)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function fl(t){at.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function dl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ml(t){t.clearSnapshot()}function ts(t){t.clearMeasurements()}function pl(t){t.isLayoutDirty=!1}function gl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function es(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yl(t){t.resolveTargetDelta()}function vl(t){t.calcProjection()}function xl(t){t.resetRotation()}function Pl(t){t.removeLeadSnapshot()}function ns(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function Tl(t,e,n,s){ss(t.x,e.x,n.x,s),ss(t.y,e.y,n.y,s)}function bl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vl={duration:.45,ease:[.4,0,.1,1]},is=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),rs=is("applewebkit/")&&!is("chrome/")?Math.round:M;function os(t){t.min=rs(t.min),t.max=rs(t.max)}function Sl(t){os(t.x),os(t.y)}function Ci(t,e,n){return t==="position"||t==="preserve-aspect"&&!we(qn(e),qn(n),.2)}const Al=wi({attachResizeListener:(t,e)=>H(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ge={current:void 0},Di=wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ge.current){const t=new Al({});t.mount(window),t.setOptions({layoutScroll:!0}),ge.current=t}return ge.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wl={pan:{Feature:$a},drag:{Feature:Wa,ProjectionNode:Di,MeasureLayout:Ti}},Cl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dl(t){const e=Cl.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function Le(t,e,n=1){const[s,i]=Dl(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return hi(r)?parseFloat(r):r}else return xe(i)?Le(i,e,n+1):i}function Ml(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!xe(o))return;const r=Le(o,s);r&&i.set(r)});for(const i in e){const o=e[i];if(!xe(o))continue;const r=Le(o,s);r&&(e[i]=r,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Ll=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mi=t=>Ll.has(t),Rl=t=>Object.keys(t).some(Mi),as=t=>t===ut||t===v,ls=(t,e)=>parseFloat(t.split(", ")[e]),cs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return ls(i[1],e);{const o=s.match(/^matrix\((.+)\)$/);return o?ls(o[1],t):0}},Bl=new Set(["x","y","z"]),Fl=Rt.filter(t=>!Bl.has(t));function kl(t){const e=[];return Fl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const yt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:cs(4,13),y:cs(5,14)};yt.translateX=yt.x;yt.translateY=yt.y;const El=(t,e,n)=>{const s=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=yt[c](s,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=yt[c](l,o)}),t},jl=(t,e,n={},s={})=>{e={...e},s={...s};const i=Object.keys(e).filter(Mi);let o=[],r=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=Tt(u);const f=e[l];let d;if(Ht(f)){const m=f.length,p=f[0]===null?1:0;u=f[p],h=Tt(u);for(let x=p;x<m&&f[x]!==null;x++)d?He(Tt(f[x])===d):d=Tt(f[x])}else d=Tt(f);if(h!==d)if(as(h)&&as(d)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof f=="string"?e[l]=parseFloat(f):Array.isArray(f)&&d===v&&(e[l]=f.map(parseFloat))}else h!=null&&h.transform&&(d!=null&&d.transform)&&(u===0||f===0)?u===0?c.set(d.transform(u)):e[l]=h.transform(f):(r||(o=kl(t),r=!0),a.push(l),s[l]=s[l]!==void 0?s[l]:e[l],c.jump(f))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=El(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),Qt&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Ol(t,e,n,s){return Rl(e)?jl(t,e,n,s):{target:e,transitionEnd:s}}const Il=(t,e,n,s)=>{const i=Ml(t,e,s);return e=i.target,s=i.transitionEnd,Ol(t,e,n,s)},Re={current:null},Li={current:!1};function Ul(){if(Li.current=!0,!!Qt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addListener(e),e()}else Re.current=!1}function Nl(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(O(o))t.addValue(i,o),Xt(s)&&s.add(i);else if(O(r))t.addValue(i,gt(o,{owner:t})),Xt(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,gt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const us=new WeakMap,Ri=Object.keys(Mt),Gl=Ri.length,hs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wl=Ee.length;class $l{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>S.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=te(n),this.isVariantNode=ps(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const f=u[h];a[h]!==void 0&&O(f)&&(f.set(a[h],!1),Xt(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,us.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Li.current||Ul(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Re.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){us.delete(this.current),this.projection&&this.projection.unmount(),_(this.notifyUpdate),_(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=ct.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&S.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,o){let r,a;for(let l=0;l<Gl;l++){const c=Ri[l],{isEnabled:u,Feature:h,ProjectionNode:f,MeasureLayout:d}=Mt[c];f&&(r=f),u(n)&&(!this.features[c]&&h&&(this.features[c]=new h(this)),d&&(a=d))}if(!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:f,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&ft(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<hs.length;s++){const i=hs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Nl(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<Wl;s++){const i=Ee[s],o=this.props[i];(Dt(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=gt(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,i=typeof s=="string"||typeof s=="object"?(n=$e(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!O(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Qe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bi extends $l{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},{transformValues:i},o){let r=la(s,e||{},this);if(i&&(n&&(n=i(n)),s&&(s=i(s)),r&&(r=i(r))),o){oa(this,s,r);const a=Il(this,s,r,n);n=a.transitionEnd,s=a.target}return{transition:e,transitionEnd:n,...s}}}function Hl(t){return window.getComputedStyle(t)}class zl extends Bi{readValueFromInstance(e,n){if(ct.has(n)){const s=Xe(n);return s&&s.default||0}else{const s=Hl(e),i=(Ps(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Pi(e,n)}build(e,n,s,i){Oe(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return We(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;O(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){ws(e,n,s,i)}}class Kl extends Bi{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ct.has(n)){const s=Xe(n);return s&&s.default||0}return n=Cs.has(n)?n:Ge(n),e.getAttribute(n)}measureInstanceViewportBox(){return L()}scrapeMotionValuesFromProps(e,n){return Ms(e,n)}build(e,n,s,i){Ue(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){Ds(e,n,s,i)}mount(e){this.isSVGTag=Ne(e.tagName),super.mount(e)}}const _l=(t,e)=>je(t)?new Kl(e,{enableHardwareAcceleration:!1}):new zl(e,{enableHardwareAcceleration:!0}),Xl={layout:{ProjectionNode:Di,MeasureLayout:Ti}},Yl={...ba,...Gr,...wl,...Xl},Ql=Yi((t,e)=>Dr(t,e,Yl,_l));export{gs as L,S as f,Ql as m,Ni as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as z,y as N,o as B,c as L}from"./index-c40b5413.js";function $({title:n,titleId:o,...a},g){return N("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:g,"aria-labelledby":o},a),n?N("title",{id:o},n):null,N("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"}))}const E=z($),Y=E;var j={},s={};Object.defineProperty(s,"__esModule",{value:!0});s.AnonymousSelectKey=s.Select=s.Not=s.Guard=s.PatternKind=void 0;s.PatternKind=Symbol("@ts-pattern/pattern-kind");s.Guard=Symbol("@ts-pattern/guard");s.Not=Symbol("@ts-pattern/not");s.Select=Symbol("@ts-pattern/select");s.AnonymousSelectKey="@ts-pattern/__anonymous-select-key";var M={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.instanceOf=n.select=n.not=n.when=void 0;const o=s,a=u=>({[o.PatternKind]:o.Guard,[o.Guard]:u});n.when=a;const g=u=>({[o.PatternKind]:o.Not,[o.Not]:u});n.not=g;function S(u){return u===void 0?{[o.PatternKind]:o.Select,[o.Select]:o.AnonymousSelectKey}:{[o.PatternKind]:o.Select,[o.Select]:u}}n.select=S;function m(u){return O=>O instanceof u}const _=u=>(0,n.when)(m(u));n.instanceOf=_})(M);var P={};Object.defineProperty(P,"__esModule",{value:!0});P.__=void 0;const w=M;function I(n){return!0}function R(n){return typeof n=="number"}function X(n){return Number.isNaN(n)}function C(n){return typeof n=="string"}function T(n){return typeof n=="boolean"}function F(n){return n==null}const J=(0,w.when)(I),U=(0,w.when)(C),V=(0,w.when)(R),q=(0,w.when)(X),D=(0,w.when)(T),H=(0,w.when)(F);P.__=Object.assign(J,{string:U,number:V,NaN:q,boolean:D,nullish:H});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.isMatching=n.match=n.instanceOf=n.select=n.not=n.when=n.__=void 0;const o=s,a=M;Object.defineProperty(n,"when",{enumerable:!0,get:function(){return a.when}}),Object.defineProperty(n,"not",{enumerable:!0,get:function(){return a.not}}),Object.defineProperty(n,"select",{enumerable:!0,get:function(){return a.select}}),Object.defineProperty(n,"instanceOf",{enumerable:!0,get:function(){return a.instanceOf}});const g=P;Object.defineProperty(n,"__",{enumerable:!0,get:function(){return g.__}});const S=e=>m(e,[]);n.match=S;const m=(e,t)=>{const c=()=>{const r=t.find(({test:i})=>i(e));if(!r){let i;try{i=JSON.stringify(e)}catch{i=e}throw new Error(`Pattern matching error: no pattern matches value ${i}`)}return r.handler(r.select(e),e)};return{with(...r){const i=r[r.length-1],f=[],l=[];for(let h=0;h<r.length-1;h++){const b=r[h];typeof b=="function"?l.push(b):f.push(b)}let y={};const A=h=>!!(f.some(b=>d(b,h,(k,v)=>{y[k]=v}))&&l.every(b=>b(h)));return m(e,t.concat([{test:A,handler:i,select:h=>Object.keys(y).length?o.AnonymousSelectKey in y?y[o.AnonymousSelectKey]:y:h}]))},when:(r,i)=>m(e,t.concat([{test:r,handler:i,select:f=>f}])),otherwise:r=>m(e,t.concat([{test:()=>!0,handler:r,select:i=>i}])).run(),exhaustive:()=>c(),run:c}},_=e=>!!(e&&typeof e=="object"),u=e=>{const t=e;return t&&t[o.PatternKind]===o.Guard},O=e=>{const t=e;return t&&t[o.PatternKind]===o.Not},K=e=>{const t=e;return t&&t[o.PatternKind]===o.Select},d=(e,t,c)=>{if(_(e)){if(u(e))return!!e[o.Guard](t);if(K(e))return c(e[o.Select],t),!0;if(O(e))return!d(e[o.Not],t,c);if(!_(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length===1){const r={},i=(l,y)=>{r[l]=(r[l]||[]).concat([y])},f=t.every(l=>d(e[0],l,i));return f&&Object.keys(r).forEach(l=>c(l,r[l])),f}return e.length===t.length?e.every((r,i)=>d(r,t[i],c)):!1}if(e instanceof Map)return t instanceof Map?[...e.keys()].every(r=>d(e.get(r),t.get(r),c)):!1;if(e instanceof Set){if(!(t instanceof Set))return!1;if(e.size===0)return t.size===0;if(e.size===1){const[r]=[...e.values()];return Object.values(g.__).includes(r)?d([r],[...t.values()],c):t.has(r)}return[...e.values()].every(r=>t.has(r))}return Object.keys(e).every(r=>r in t&&d(e[r],t[r],c))}return t===e};function G(...e){if(e.length===1){const[t]=e;return c=>d(t,c,()=>{})}if(e.length===2){const[t,c]=e;return d(t,c,()=>{})}throw new Error(`isMatching wasn't given enough arguments: expected 1 or 2, received ${e.length}.`)}n.isMatching=G})(j);const Q=n=>j.match(n.toLowerCase()).with("body",()=>"bg-pink-100 text-pink-800").with("life",()=>"bg-yellow-100 text-yellow-800").with("mind",()=>"bg-green-100 text-green-800").with("money",()=>"bg-blue-100 text-blue-800").with("work",()=>"bg-orange-100 text-orange-800").with(j.__,()=>"bg-gray-100 text-gray-800").exhaustive(),Z=n=>{const o=Q(n.name),a=n.size==="xs"?"text-xs":"text-sm";return B("div",{className:L(n.className??"","capitalize inline-flex items-center px-2 py-0.5 rounded font-medium",o,a),children:n.name})};export{Z as P,Y as X,j as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as E,V as b,x as $,W as m,p as F,Y as Ze,Z as Je,$ as de,a0 as P,a1 as fe,a2 as _,a3 as W,a4 as Z,a5 as R,a6 as Ke,w as d,a7 as be,a8 as O,a9 as Qe,aa as N,G as S,F as w,ab as et,h as ee,ac as Te,ad as A,ae as tt,b as ye,af as H,A as le,ag as Pe,ah as $e,ai as nt,aj as X,ak as rt,al as ot,am as J,an as lt,ao as at,ap as it,U as ut,g as st}from"./index-c40b5413.js";let ct="div";var K=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(K||{});function dt(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return b({ourProps:l,theirProps:r,slot:{},defaultTag:ct,name:"Hidden"})}let ae=E(dt);function pe(e,t){let n=$([]),r=m(e);F(()=>{let l=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let i=r(t,l);return n.current=t,i}},[r,...t])}function ft(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var j=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(j||{});function pt(){let e=$(0);return Ze("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Se(e,t,n,r){let l=Je(n);F(()=>{e=e??window;function o(a){l.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function mt(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Le(e){let t=m(e),n=$(!1);F(()=>(n.current=!1,()=>{n.current=!0,de(()=>{n.current&&t()})}),[t])}function De(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let gt="div";var Fe=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Fe||{});function ht(e,t){let n=$(null),r=P(n,t),{initialFocus:l,containers:o,features:a=30,...i}=e;fe()||(a=1);let u=_(n);$t({ownerDocument:u},!!(a&16));let s=Et({ownerDocument:u,container:n,initialFocus:l},!!(a&2));bt({ownerDocument:u,container:n,containers:o,previousActiveElement:s},!!(a&8));let c=pt(),B=m(f=>{let T=n.current;T&&(L=>L())(()=>{W(c.current,{[j.Forwards]:()=>{Z(T,R.First,{skipElements:[f.relatedTarget]})},[j.Backwards]:()=>{Z(T,R.Last,{skipElements:[f.relatedTarget]})}})})}),k=Ke(),g=$(!1),te={ref:r,onKeyDown(f){f.key=="Tab"&&(g.current=!0,k.requestAnimationFrame(()=>{g.current=!1}))},onBlur(f){let T=De(o);n.current instanceof HTMLElement&&T.add(n.current);let L=f.relatedTarget;L instanceof HTMLElement&&L.dataset.headlessuiFocusGuard!=="true"&&(ke(T,L)||(g.current?Z(n.current,W(c.current,{[j.Forwards]:()=>R.Next,[j.Backwards]:()=>R.Previous})|R.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&O(f.target)))}};return d.createElement(d.Fragment,null,!!(a&4)&&d.createElement(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:B,features:K.Focusable}),b({ourProps:te,theirProps:i,defaultTag:gt,name:"FocusTrap"}),!!(a&4)&&d.createElement(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:B,features:K.Focusable}))}let vt=E(ht),x=Object.assign(vt,{features:Fe}),D=[];mt(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&D[0]!==t.target&&(D.unshift(t.target),D=D.filter(n=>n!=null&&n.isConnected),D.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function wt(e=!0){let t=$(D.slice());return pe(([n],[r])=>{r===!0&&n===!1&&de(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=D.slice())},[e,D,t]),m(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function $t({ownerDocument:e},t){let n=wt(t);pe(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&O(n())},[t]),Le(()=>{t&&O(n())})}function Et({ownerDocument:e,container:t,initialFocus:n},r){let l=$(null),o=be();return pe(()=>{if(!r)return;let a=t.current;a&&de(()=>{if(!o.current)return;let i=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===i){l.current=i;return}}else if(a.contains(i)){l.current=i;return}n!=null&&n.current?O(n.current):Z(a,R.First)===Qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=e==null?void 0:e.activeElement})},[r]),l}function bt({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let o=be();Se(e==null?void 0:e.defaultView,"focus",a=>{if(!l||!o.current)return;let i=De(n);t.current instanceof HTMLElement&&i.add(t.current);let u=r.current;if(!u)return;let s=a.target;s&&s instanceof HTMLElement?ke(i,s)?(r.current=s,O(s)):(a.preventDefault(),a.stopPropagation(),O(u)):O(r.current)},!0)}function ke(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Ce=N(!1);function Tt(){return S(Ce)}function ie(e){return d.createElement(Ce.Provider,{value:e.force},e.children)}function yt(e){let t=Tt(),n=S(Oe),r=_(e),[l,o]=ee(()=>{if(!t&&n!==null||Te.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)});return F(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),F(()=>{t||n!==null&&o(n.current)},[n,o,t]),l}let Pt=ye;function St(e,t){let n=e,r=$(null),l=P(et(c=>{r.current=c}),t),o=_(r),a=yt(r),[i]=ee(()=>{var c;return Te.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),u=S(ue),s=fe();return A(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),A(()=>{if(i&&u)return u.register(i)},[u,i]),Le(()=>{var c;!a||!i||(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&((c=a.parentElement)==null||c.removeChild(a)))}),s?!a||!i?null:tt(b({ourProps:{ref:l},theirProps:n,defaultTag:Pt,name:"Portal"}),i):null}let Lt=ye,Oe=N(null);function Dt(e,t){let{target:n,...r}=e,l={ref:P(t)};return d.createElement(Oe.Provider,{value:n},b({ourProps:l,theirProps:r,defaultTag:Lt,name:"Popover.Group"}))}let ue=N(null);function Ft(){let e=S(ue),t=$([]),n=m(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=m(o=>{let a=t.current.indexOf(o);a!==-1&&t.current.splice(a,1),e&&e.unregister(o)}),l=w(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,w(()=>function({children:o}){return d.createElement(ue.Provider,{value:l},o)},[l])]}let kt=E(St),Ct=E(Dt),se=Object.assign(kt,{Group:Ct}),Me=N(null);function Re(){let e=S(Me);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Re),t}return e}function Ot(){let[e,t]=ee([]);return[e.length>0?e.join(" "):void 0,w(()=>function(n){let r=m(o=>(t(a=>[...a,o]),()=>t(a=>{let i=a.slice(),u=i.indexOf(o);return u!==-1&&i.splice(u,1),i}))),l=w(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return d.createElement(Me.Provider,{value:l},n.children)},[t])]}let Mt="p";function Rt(e,t){let n=H(),{id:r=`headlessui-description-${n}`,...l}=e,o=Re(),a=P(t);A(()=>o.register(r),[r,o.register]);let i={ref:a,...o.props,id:r};return b({ourProps:i,theirProps:l,slot:o.slot||{},defaultTag:Mt,name:o.name||"Description"})}let At=E(Rt),Nt=Object.assign(At,{}),me=N(()=>{});me.displayName="StackContext";var ce=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ce||{});function Ht(){return S(me)}function Bt({children:e,onUpdate:t,type:n,element:r,enabled:l}){let o=Ht(),a=m((...i)=>{t==null||t(...i),o(...i)});return A(()=>{let i=l===void 0||l===!0;return i&&a(0,n,r),()=>{i&&a(1,n,r)}},[a,n,r,l]),d.createElement(me.Provider,{value:a},e)}function xt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const It=typeof Object.is=="function"?Object.is:xt,{useState:jt,useEffect:Wt,useLayoutEffect:_t,useDebugValue:Yt}=le;function Ut(e,t,n){const r=t(),[{inst:l},o]=jt({inst:{value:r,getSnapshot:t}});return _t(()=>{l.value=r,l.getSnapshot=t,re(l)&&o({inst:l})},[e,r,t]),Wt(()=>(re(l)&&o({inst:l}),e(()=>{re(l)&&o({inst:l})})),[e]),Yt(r),r}function re(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!It(n,r)}catch{return!0}}function Vt(e,t,n){return t()}const qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gt=!qt,zt=Gt?Vt:Ut,Xt="useSyncExternalStore"in le?(e=>e.useSyncExternalStore)(le):zt;function Zt(e){return Xt(e.subscribe,e.getSnapshot,e.getSnapshot)}function Jt(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...o){let a=t[l].call(n,...o);a&&(n=a,r.forEach(i=>i()))}}}function Kt(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,o=e-l;n.style(r,"paddingRight",`${o}px`)}}}function Qt(){if(!ft())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(o){return r.containers.flatMap(a=>a()).some(a=>a.contains(o))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let a=Pe();a.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>a.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;n.addEventListener(t,"click",a=>{if(a.target instanceof HTMLElement)try{let i=a.target.closest("a");if(!i)return;let{hash:u}=new URL(i.href),s=t.querySelector(u);s&&!l(s)&&(o=s)}catch{}},!0),n.addEventListener(t,"touchmove",a=>{a.target instanceof HTMLElement&&!l(a.target)&&a.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}}function en(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function tn(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let C=Jt(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pe(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:tn(n)},l=[Qt(),Kt(),en()];l.forEach(({before:o})=>o==null?void 0:o(r)),l.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});C.subscribe(()=>{let e=C.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&C.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&C.dispatch("TEARDOWN",n)}});function nn(e,t,n){let r=Zt(C),l=e?r.get(e):void 0,o=l?l.count>0:!1;return A(()=>{if(!(!e||!t))return C.dispatch("PUSH",e,n),()=>C.dispatch("POP",e,n)},[t,e]),o}let oe=new Map,I=new Map;function Ee(e,t=!0){A(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var a;if(!r)return;let i=(a=I.get(r))!=null?a:1;if(i===1?I.delete(r):I.set(r,i-1),i!==1)return;let u=oe.get(r);u&&(u["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",u["aria-hidden"]),r.inert=u.inert,oe.delete(r))}let o=(n=I.get(r))!=null?n:0;return I.set(r,o+1),o!==0||(oe.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}function rn({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let l=$((r=n==null?void 0:n.current)!=null?r:null),o=_(l),a=m(()=>{var i;let u=[];for(let s of e)s!==null&&(s instanceof HTMLElement?u.push(s):"current"in s&&s.current instanceof HTMLElement&&u.push(s.current));if(t!=null&&t.current)for(let s of t.current)u.push(s);for(let s of(i=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?i:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(s.contains(l.current)||u.some(c=>s.contains(c))||u.push(s));return u});return{resolveContainers:a,contains:m(i=>a().some(u=>u.contains(i))),mainTreeNodeRef:l,MainTreeNode:w(()=>function(){return n!=null?null:d.createElement(ae,{features:K.Hidden,ref:l})},[l,n])}}var on=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(on||{}),ln=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ln||{});let an={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Q=N(null);Q.displayName="DialogContext";function Y(e){let t=S(Q);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Y),n}return t}function un(e,t,n=()=>[document.body]){nn(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function sn(e,t){return W(t.type,an,e,t)}let cn="div",dn=$e.RenderStrategy|$e.Static;function fn(e,t){var n;let r=H(),{id:l=`headlessui-dialog-${r}`,open:o,onClose:a,initialFocus:i,__demoMode:u=!1,...s}=e,[c,B]=ee(0),k=nt();o===void 0&&k!==null&&(o=(k&X.Open)===X.Open);let g=$(null),te=P(g,t),f=_(g),T=e.hasOwnProperty("open")||k!==null,L=e.hasOwnProperty("onClose");if(!T&&!L)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!T)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!L)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof a!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let h=o?0:1,[U,Ae]=rt(sn,{titleId:null,descriptionId:null,panelRef:ot()}),M=m(()=>a(!1)),ge=m(p=>Ae({type:0,id:p})),V=fe()?u?!1:h===0:!1,q=c>1,he=S(Q)!==null,[Ne,He]=Ft(),{resolveContainers:ne,mainTreeNodeRef:G,MainTreeNode:Be}=rn({portals:Ne,defaultContainers:[(n=U.panelRef.current)!=null?n:g.current]}),xe=q?"parent":"leaf",ve=k!==null?(k&X.Closing)===X.Closing:!1,Ie=(()=>he||ve?!1:V)(),je=J(()=>{var p,y;return(y=Array.from((p=f==null?void 0:f.querySelectorAll("body > *"))!=null?p:[]).find(v=>v.id==="headlessui-portal-root"?!1:v.contains(G.current)&&v instanceof HTMLElement))!=null?y:null},[G]);Ee(je,Ie);let We=(()=>q?!0:V)(),_e=J(()=>{var p,y;return(y=Array.from((p=f==null?void 0:f.querySelectorAll("[data-headlessui-portal]"))!=null?p:[]).find(v=>v.contains(G.current)&&v instanceof HTMLElement))!=null?y:null},[G]);Ee(_e,We);let Ye=(()=>!(!V||q))();lt(ne,M,Ye);let Ue=(()=>!(q||h!==0))();Se(f==null?void 0:f.defaultView,"keydown",p=>{Ue&&(p.defaultPrevented||p.key===at.Escape&&(p.preventDefault(),p.stopPropagation(),M()))});let Ve=(()=>!(ve||h!==0||he))();un(f,Ve,ne),F(()=>{if(h!==0||!g.current)return;let p=new ResizeObserver(y=>{for(let v of y){let z=v.target.getBoundingClientRect();z.x===0&&z.y===0&&z.width===0&&z.height===0&&M()}});return p.observe(g.current),()=>p.disconnect()},[h,g,M]);let[qe,Ge]=Ot(),ze=w(()=>[{dialogState:h,close:M,setTitleId:ge},U],[h,U,M,ge]),we=w(()=>({open:h===0}),[h]),Xe={ref:te,id:l,role:"dialog","aria-modal":h===0?!0:void 0,"aria-labelledby":U.titleId,"aria-describedby":qe};return d.createElement(Bt,{type:"Dialog",enabled:h===0,element:g,onUpdate:m((p,y)=>{y==="Dialog"&&W(p,{[ce.Add]:()=>B(v=>v+1),[ce.Remove]:()=>B(v=>v-1)})})},d.createElement(ie,{force:!0},d.createElement(se,null,d.createElement(Q.Provider,{value:ze},d.createElement(se.Group,{target:g},d.createElement(ie,{force:!1},d.createElement(Ge,{slot:we,name:"Dialog.Description"},d.createElement(x,{initialFocus:i,containers:ne,features:V?W(xe,{parent:x.features.RestoreFocus,leaf:x.features.All&~x.features.FocusLock}):x.features.None},d.createElement(He,null,b({ourProps:Xe,theirProps:s,slot:we,defaultTag:cn,features:dn,visible:h===0,name:"Dialog"}))))))))),d.createElement(Be,null))}let pn="div";function mn(e,t){let n=H(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:o,close:a}]=Y("Dialog.Overlay"),i=P(t),u=m(c=>{if(c.target===c.currentTarget){if(it(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),a()}}),s=w(()=>({open:o===0}),[o]);return b({ourProps:{ref:i,id:r,"aria-hidden":!0,onClick:u},theirProps:l,slot:s,defaultTag:pn,name:"Dialog.Overlay"})}let gn="div";function hn(e,t){let n=H(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:o},a]=Y("Dialog.Backdrop"),i=P(t);F(()=>{if(a.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let u=w(()=>({open:o===0}),[o]);return d.createElement(ie,{force:!0},d.createElement(se,null,b({ourProps:{ref:i,id:r,"aria-hidden":!0},theirProps:l,slot:u,defaultTag:gn,name:"Dialog.Backdrop"})))}let vn="div";function wn(e,t){let n=H(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:o},a]=Y("Dialog.Panel"),i=P(t,a.panelRef),u=w(()=>({open:o===0}),[o]),s=m(c=>{c.stopPropagation()});return b({ourProps:{ref:i,id:r,onClick:s},theirProps:l,slot:u,defaultTag:vn,name:"Dialog.Panel"})}let $n="h2";function En(e,t){let n=H(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:o,setTitleId:a}]=Y("Dialog.Title"),i=P(t);F(()=>(a(r),()=>a(null)),[r,a]);let u=w(()=>({open:o===0}),[o]);return b({ourProps:{ref:i,id:r},theirProps:l,slot:u,defaultTag:$n,name:"Dialog.Title"})}let bn=E(fn),Tn=E(hn),yn=E(wn),Pn=E(mn),Sn=E(En),Dn=Object.assign(bn,{Backdrop:Tn,Panel:yn,Overlay:Pn,Title:Sn,Description:Nt});const Fn=()=>{const e=S(ut),t=w(()=>st(e),[e]),n=J(l=>{if(!t)return!1;const{featureFlags:o}=t;return o[l]},[t]),r=J(()=>t?t.featureFlags:{},[t]);return{getTreatment:n,getAllTreatments:r}};export{Ot as M,Dn as _,Nt as b,ae as c,K as p,Fn as u};
|