@fluidattacks/design 3.31.10 → 3.31.11
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/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/advanced-badge/index.js +1 -1
- package/dist/components/advisories-card/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/indicator-card/index.js +1 -1
- package/dist/components/card/indicator-card/index.stories.d.ts +8 -8
- package/dist/components/card-container/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/fa-tag/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card-db/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/fields/text-input/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/item-card-db/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/paginator-db/btn/index.js +1 -1
- package/dist/components/paginator-db/dropdown/index.js +1 -1
- package/dist/components/paginator-db/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-cards/card/index.js +1 -1
- package/dist/components/priority-cards/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/rank-position/icon/index.js +1 -1
- package/dist/components/rank-position/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-dropdown/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/table-content/index.js +1 -1
- package/dist/components/table-content/item-content/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-section/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/weaknesses-card/index.js +1 -1
- package/dist/{components-DB92tR8V.mjs → components-BZu7rr0s.mjs} +1 -1
- package/dist/{components-Bnu9_6G6.js → components-D4e9Mpql.js} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-dFwAYKb7.js +169 -0
- package/dist/{vendor-EAX708zd.mjs → vendor-wPtnQTdA.mjs} +14733 -14605
- package/package.json +11 -11
- package/dist/vendor-D--QYeGr.js +0 -164
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');var _N=Object.defineProperty;var MN=(e,t,n)=>t in e?_N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hc=(e,t,n)=>MN(e,typeof t!="symbol"?t+"":t,n);const L=require("react"),Qa=require("react/jsx-runtime"),Mp=require("react-dom");function W2(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ce=W2(L),Os=W2(Mp);var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wg,vw;function H2(){if(vw)return wg;vw=1;var e=typeof qi=="object"&&qi&&qi.Object===Object&&qi;return wg=e,wg}var Cg,yw;function Us(){if(yw)return Cg;yw=1;var e=H2(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Cg=n,Cg}var Eg,bw;function Fp(){if(bw)return Eg;bw=1;var e=Us(),t=e.Symbol;return Eg=t,Eg}var Sg,$w;function FN(){if($w)return Sg;$w=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Sg=e,Sg}var Dg,xw;function ts(){if(xw)return Dg;xw=1;var e=Array.isArray;return Dg=e,Dg}var Ag,ww;function RN(){if(ww)return Ag;ww=1;var e=Fp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(s){var o=n.call(s,i),l=s[i];try{s[i]=void 0;var d=!0}catch{}var h=r.call(s);return d&&(o?s[i]=l:delete s[i]),h}return Ag=a,Ag}var Tg,Cw;function kN(){if(Cw)return Tg;Cw=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Tg=n,Tg}var Pg,Ew;function tc(){if(Ew)return Pg;Ew=1;var e=Fp(),t=RN(),n=kN(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?i:r:a&&a in Object(o)?t(o):n(o)}return Pg=s,Pg}var _g,Sw;function nc(){if(Sw)return _g;Sw=1;function e(t){return t!=null&&typeof t=="object"}return _g=e,_g}var Mg,Dw;function Rp(){if(Dw)return Mg;Dw=1;var e=tc(),t=nc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Mg=r,Mg}var Fg,Aw;function ON(){if(Aw)return Fg;Aw=1;var e=Fp(),t=FN(),n=ts(),r=Rp(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(n(o))return t(o,s)+"";if(r(o))return a?a.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return Fg=s,Fg}var Rg,Tw;function o4(){if(Tw)return Rg;Tw=1;var e=ON();function t(n){return n==null?"":e(n)}return Rg=t,Rg}var kg,Pw;function IN(){if(Pw)return kg;Pw=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(a);++i<a;)s[i]=t[i+n];return s}return kg=e,kg}var Og,_w;function LN(){if(_w)return Og;_w=1;var e=IN();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return Og=t,Og}var Ig,Mw;function G2(){if(Mw)return Ig;Mw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+i+a+"]");function l(d){return o.test(d)}return Ig=l,Ig}var Lg,Fw;function BN(){if(Fw)return Lg;Fw=1;function e(t){return t.split("")}return Lg=e,Lg}var Bg,Rw;function VN(){if(Rw)return Bg;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",s="["+e+"]",o="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",d="(?:"+o+"|"+l+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",w=d+"?",x="["+a+"]?",A="(?:"+b+"(?:"+[h,m,g].join("|")+")"+x+w+")*",E=x+w+A,C="(?:"+[h+o+"?",o,m,g,s].join("|")+")",S=RegExp(l+"(?="+l+")|"+C+E,"g");function M(_){return _.match(S)||[]}return Bg=M,Bg}var Vg,kw;function NN(){if(kw)return Vg;kw=1;var e=BN(),t=G2(),n=VN();function r(i){return t(i)?n(i):e(i)}return Vg=r,Vg}var Ng,Ow;function jN(){if(Ow)return Ng;Ow=1;var e=LN(),t=G2(),n=NN(),r=o4();function i(a){return function(s){s=r(s);var o=t(s)?n(s):void 0,l=o?o[0]:s.charAt(0),d=o?e(o,1).join(""):s.slice(1);return l[a]()+d}}return Ng=i,Ng}var jg,Iw;function KN(){if(Iw)return jg;Iw=1;var e=jN(),t=e("toUpperCase");return jg=t,jg}var Kg,Lw;function UN(){if(Lw)return Kg;Lw=1;var e=o4(),t=KN();function n(r){return t(e(r).toLowerCase())}return Kg=n,Kg}var qN=UN();const zN=yr(qN);var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",x="[object Promise]",A="[object RegExp]",E="[object Set]",C="[object String]",S="[object Symbol]",M="[object WeakMap]",_="[object ArrayBuffer]",R="[object DataView]",z="[object Float32Array]",re="[object Float64Array]",ge="[object Int8Array]",le="[object Int16Array]",I="[object Int32Array]",Ce="[object Uint8Array]",we="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,O=/\w*$/,K=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,k={};k[a]=k[s]=k[_]=k[R]=k[o]=k[l]=k[z]=k[re]=k[ge]=k[le]=k[I]=k[g]=k[b]=k[w]=k[A]=k[E]=k[C]=k[S]=k[Ce]=k[we]=k[U]=k[ee]=!0,k[d]=k[h]=k[M]=!1;var se=typeof ho=="object"&&ho&&ho.Object===Object&&ho,oe=typeof self=="object"&&self&&self.Object===Object&&self,Te=se||oe||Function("return this")(),Me=t&&!t.nodeType&&t,Le=Me&&!0&&e&&!e.nodeType&&e,Ye=Le&&Le.exports===Me;function Qe(ie,Fe){return ie.set(Fe[0],Fe[1]),ie}function Ue(ie,Fe){return ie.add(Fe),ie}function Ge(ie,Fe){for(var ze=-1,pt=ie?ie.length:0;++ze<pt&&Fe(ie[ze],ze,ie)!==!1;);return ie}function Ie(ie,Fe){for(var ze=-1,pt=Fe.length,yn=ie.length;++ze<pt;)ie[yn+ze]=Fe[ze];return ie}function Ne(ie,Fe,ze,pt){for(var yn=-1,tr=ie?ie.length:0;++yn<tr;)ze=Fe(ze,ie[yn],yn,ie);return ze}function Ae(ie,Fe){for(var ze=-1,pt=Array(ie);++ze<ie;)pt[ze]=Fe(ze);return pt}function He(ie,Fe){return ie==null?void 0:ie[Fe]}function ht(ie){var Fe=!1;if(ie!=null&&typeof ie.toString!="function")try{Fe=!!(ie+"")}catch{}return Fe}function Ht(ie){var Fe=-1,ze=Array(ie.size);return ie.forEach(function(pt,yn){ze[++Fe]=[yn,pt]}),ze}function $t(ie,Fe){return function(ze){return ie(Fe(ze))}}function _t(ie){var Fe=-1,ze=Array(ie.size);return ie.forEach(function(pt){ze[++Fe]=pt}),ze}var qr=Array.prototype,Qt=Function.prototype,be=Object.prototype,De=Te["__core-js_shared__"],_e=function(){var ie=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return ie?"Symbol(src)_1."+ie:""}(),Xe=Qt.toString,et=be.hasOwnProperty,Je=be.toString,gt=RegExp("^"+Xe.call(et).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ye?Te.Buffer:void 0,xt=Te.Symbol,vn=Te.Uint8Array,br=$t(Object.getPrototypeOf,Object),Ut=Object.create,Pt=be.propertyIsEnumerable,It=qr.splice,qt=Object.getOwnPropertySymbols,fr=Rt?Rt.isBuffer:void 0,zr=$t(Object.keys,Object),si=ci(Te,"DataView"),Pr=ci(Te,"Map"),Da=ci(Te,"Promise"),Do=ci(Te,"Set"),bt=ci(Te,"WeakMap"),oi=ci(Object,"create"),is=Fr(si),bc=Fr(Pr),ku=Fr(Da),$c=Fr(Do),Ou=Fr(bt),Ao=xt?xt.prototype:void 0,Iu=Ao?Ao.valueOf:void 0;function Ji(ie){var Fe=-1,ze=ie?ie.length:0;for(this.clear();++Fe<ze;){var pt=ie[Fe];this.set(pt[0],pt[1])}}function Qi(){this.__data__=oi?oi(null):{}}function yt(ie){return this.has(ie)&&delete this.__data__[ie]}function Cn(ie){var Fe=this.__data__;if(oi){var ze=Fe[ie];return ze===r?void 0:ze}return et.call(Fe,ie)?Fe[ie]:void 0}function as(ie){var Fe=this.__data__;return oi?Fe[ie]!==void 0:et.call(Fe,ie)}function Lu(ie,Fe){var ze=this.__data__;return ze[ie]=oi&&Fe===void 0?r:Fe,this}Ji.prototype.clear=Qi,Ji.prototype.delete=yt,Ji.prototype.get=Cn,Ji.prototype.has=as,Ji.prototype.set=Lu;function $r(ie){var Fe=-1,ze=ie?ie.length:0;for(this.clear();++Fe<ze;){var pt=ie[Fe];this.set(pt[0],pt[1])}}function Bu(){this.__data__=[]}function Vu(ie){var Fe=this.__data__,ze=ss(Fe,ie);if(ze<0)return!1;var pt=Fe.length-1;return ze==pt?Fe.pop():It.call(Fe,ze,1),!0}function xc(ie){var Fe=this.__data__,ze=ss(Fe,ie);return ze<0?void 0:Fe[ze][1]}function Wr(ie){return ss(this.__data__,ie)>-1}function at(ie,Fe){var ze=this.__data__,pt=ss(ze,ie);return pt<0?ze.push([ie,Fe]):ze[pt][1]=Fe,this}$r.prototype.clear=Bu,$r.prototype.delete=Vu,$r.prototype.get=xc,$r.prototype.has=Wr,$r.prototype.set=at;function cn(ie){var Fe=-1,ze=ie?ie.length:0;for(this.clear();++Fe<ze;){var pt=ie[Fe];this.set(pt[0],pt[1])}}function ea(){this.__data__={hash:new Ji,map:new(Pr||$r),string:new Ji}}function ui(ie){return Ei(this,ie).delete(ie)}function Gn(ie){return Ei(this,ie).get(ie)}function To(ie){return Ei(this,ie).has(ie)}function Aa(ie,Fe){return Ei(this,ie).set(ie,Fe),this}cn.prototype.clear=ea,cn.prototype.delete=ui,cn.prototype.get=Gn,cn.prototype.has=To,cn.prototype.set=Aa;function li(ie){this.__data__=new $r(ie)}function kn(){this.__data__=new $r}function Ws(ie){return this.__data__.delete(ie)}function jt(ie){return this.__data__.get(ie)}function wc(ie){return this.__data__.has(ie)}function Nu(ie,Fe){var ze=this.__data__;if(ze instanceof $r){var pt=ze.__data__;if(!Pr||pt.length<n-1)return pt.push([ie,Fe]),this;ze=this.__data__=new cn(pt)}return ze.set(ie,Fe),this}li.prototype.clear=kn,li.prototype.delete=Ws,li.prototype.get=jt,li.prototype.has=wc,li.prototype.set=Nu;function Cc(ie,Fe){var ze=fs(ie)||_a(ie)?Ae(ie.length,String):[],pt=ze.length,yn=!!pt;for(var tr in ie)et.call(ie,tr)&&!(yn&&(tr=="length"||ko(tr,pt)))&&ze.push(tr);return ze}function Po(ie,Fe,ze){var pt=ie[Fe];(!(et.call(ie,Fe)&&Pa(pt,ze))||ze===void 0&&!(Fe in ie))&&(ie[Fe]=ze)}function ss(ie,Fe){for(var ze=ie.length;ze--;)if(Pa(ie[ze][0],Fe))return ze;return-1}function ju(ie,Fe){return ie&&hr(Fe,ps(Fe),ie)}function _o(ie,Fe,ze,pt,yn,tr,ir){var Vn;if(pt&&(Vn=tr?pt(ie,yn,tr,ir):pt(ie)),Vn!==void 0)return Vn;if(!hs(ie))return ie;var En=fs(ie);if(En){if(Vn=Ro(ie),!Fe)return Hs(ie,Vn)}else{var Di=Si(ie),Ai=Di==h||Di==m;if(Gs(ie))return Fo(ie,Fe);if(Di==w||Di==a||Ai&&!tr){if(ht(ie))return tr?ie:{};if(Vn=zu(Ai?{}:ie),!Fe)return us(ie,ju(Vn,ie))}else{if(!k[Di])return tr?ie:{};Vn=dn(ie,Di,_o,Fe)}}ir||(ir=new li);var Lo=ir.get(ie);if(Lo)return Lo;if(ir.set(ie,Vn),!En)var Ys=ze?ls(ie):ps(ie);return Ge(Ys||ie,function(ar,ms){Ys&&(ms=ar,ar=ie[ms]),Po(Vn,ms,_o(ar,Fe,ze,pt,ms,ie,ir))}),Vn}function Ec(ie){return hs(ie)?Ut(ie):{}}function Sc(ie,Fe,ze){var pt=Fe(ie);return fs(ie)?pt:Ie(pt,ze(ie))}function Dc(ie){return Je.call(ie)}function Ku(ie){if(!hs(ie)||Oo(ie))return!1;var Fe=Hu(ie)||ht(ie)?gt:K;return Fe.test(Fr(ie))}function Mo(ie){if(!Wu(ie))return zr(ie);var Fe=[];for(var ze in Object(ie))et.call(ie,ze)&&ze!="constructor"&&Fe.push(ze);return Fe}function Fo(ie,Fe){if(Fe)return ie.slice();var ze=new ie.constructor(ie.length);return ie.copy(ze),ze}function os(ie){var Fe=new ie.constructor(ie.byteLength);return new vn(Fe).set(new vn(ie)),Fe}function Uu(ie,Fe){var ze=Fe?os(ie.buffer):ie.buffer;return new ie.constructor(ze,ie.byteOffset,ie.byteLength)}function qu(ie,Fe,ze){var pt=Fe?ze(Ht(ie),!0):Ht(ie);return Ne(pt,Qe,new ie.constructor)}function _r(ie){var Fe=new ie.constructor(ie.source,O.exec(ie));return Fe.lastIndex=ie.lastIndex,Fe}function dr(ie,Fe,ze){var pt=Fe?ze(_t(ie),!0):_t(ie);return Ne(pt,Ue,new ie.constructor)}function Mr(ie){return Iu?Object(Iu.call(ie)):{}}function Ta(ie,Fe){var ze=Fe?os(ie.buffer):ie.buffer;return new ie.constructor(ze,ie.byteOffset,ie.length)}function Hs(ie,Fe){var ze=-1,pt=ie.length;for(Fe||(Fe=Array(pt));++ze<pt;)Fe[ze]=ie[ze];return Fe}function hr(ie,Fe,ze,pt){ze||(ze={});for(var yn=-1,tr=Fe.length;++yn<tr;){var ir=Fe[yn],Vn=void 0;Po(ze,ir,Vn===void 0?ie[ir]:Vn)}return ze}function us(ie,Fe){return hr(ie,rr(ie),Fe)}function ls(ie){return Sc(ie,ps,rr)}function Ei(ie,Fe){var ze=ie.__data__;return cs(Fe)?ze[typeof Fe=="string"?"string":"hash"]:ze.map}function ci(ie,Fe){var ze=He(ie,Fe);return Ku(ze)?ze:void 0}var rr=qt?$t(qt,Object):Gt,Si=Dc;(si&&Si(new si(new ArrayBuffer(1)))!=R||Pr&&Si(new Pr)!=g||Da&&Si(Da.resolve())!=x||Do&&Si(new Do)!=E||bt&&Si(new bt)!=M)&&(Si=function(ie){var Fe=Je.call(ie),ze=Fe==w?ie.constructor:void 0,pt=ze?Fr(ze):void 0;if(pt)switch(pt){case is:return R;case bc:return g;case ku:return x;case $c:return E;case Ou:return M}return Fe});function Ro(ie){var Fe=ie.length,ze=ie.constructor(Fe);return Fe&&typeof ie[0]=="string"&&et.call(ie,"index")&&(ze.index=ie.index,ze.input=ie.input),ze}function zu(ie){return typeof ie.constructor=="function"&&!Wu(ie)?Ec(br(ie)):{}}function dn(ie,Fe,ze,pt){var yn=ie.constructor;switch(Fe){case _:return os(ie);case o:case l:return new yn(+ie);case R:return Uu(ie,pt);case z:case re:case ge:case le:case I:case Ce:case we:case U:case ee:return Ta(ie,pt);case g:return qu(ie,pt,ze);case b:case C:return new yn(ie);case A:return _r(ie);case E:return dr(ie,pt,ze);case S:return Mr(ie)}}function ko(ie,Fe){return Fe=Fe??i,!!Fe&&(typeof ie=="number"||de.test(ie))&&ie>-1&&ie%1==0&&ie<Fe}function cs(ie){var Fe=typeof ie;return Fe=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?ie!=="__proto__":ie===null}function Oo(ie){return!!_e&&_e in ie}function Wu(ie){var Fe=ie&&ie.constructor,ze=typeof Fe=="function"&&Fe.prototype||be;return ie===ze}function Fr(ie){if(ie!=null){try{return Xe.call(ie)}catch{}try{return ie+""}catch{}}return""}function Io(ie){return _o(ie,!0,!0)}function Pa(ie,Fe){return ie===Fe||ie!==ie&&Fe!==Fe}function _a(ie){return ds(ie)&&et.call(ie,"callee")&&(!Pt.call(ie,"callee")||Je.call(ie)==a)}var fs=Array.isArray;function ta(ie){return ie!=null&&Ac(ie.length)&&!Hu(ie)}function ds(ie){return Tc(ie)&&ta(ie)}var Gs=fr||en;function Hu(ie){var Fe=hs(ie)?Je.call(ie):"";return Fe==h||Fe==m}function Ac(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=i}function hs(ie){var Fe=typeof ie;return!!ie&&(Fe=="object"||Fe=="function")}function Tc(ie){return!!ie&&typeof ie=="object"}function ps(ie){return ta(ie)?Cc(ie):Mo(ie)}function Gt(){return[]}function en(){return!1}e.exports=Io})(Sb,Sb.exports);var po=Sb.exports,Db=function(){return Db=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Db.apply(this,arguments)};function WN(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(h){try{d(r.next(h))}catch(m){s(m)}}function l(h){try{d(r.throw(h))}catch(m){s(m)}}function d(h){h.done?a(h.value):i(h.value).then(o,l)}d((r=r.apply(e,[])).next())})}function HN(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function qh(e,t,n,r,i){return WN(this,void 0,void 0,function(){var a,s;return HN(this,function(o){switch(o.label){case 0:if(n===void 0)return[2];s=0,o.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(a=o.sent(),a==="canceled")return[3,4];o.label=3;case 3:return s++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Ab=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Db({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},GN=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=po(n);qh(t,s,r,this.htmlPluginState,i).then(function(o){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Ab(i,o);a.imgElement.setAttribute("src",s.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=po(t);qh(this.imgElement,a,n,this.htmlPluginState).then(function(s){if(i.isMounted){var o=Ab(r,s);i.imgElement.setAttribute("src",a.toURL(o))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Rn=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},YN=class extends Error{constructor(t="Unsupported"){super(t)}};function u4(e){return new YN(e)}function ZN(){return this._qualifierModel||{error:u4(`unsupported qualifier ${this.constructor.name}`)}}let XN=class{constructor(){this._qualifierModel={}}toJson(){return ZN.apply(this)}},Ot=class extends XN{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Rn?this.qualifierValue=n:(this.qualifierValue=new Rn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Gi=class extends Ot{constructor(t,n){let r;n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function JN(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function QN(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:u4(`unsupported action ${this.constructor.name}`)}}let ej=class{constructor(){this._actionModel={}}toJson(){return QN.apply(this)}},Ca=class extends ej{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),JN(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Gi(r)):this.qualifiers.set(n,new Ot(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Gi(t)):t instanceof Gi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class l4 extends Ca{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class kp extends l4{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ot("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ot("h",t)),this}static fromJson(t){const n=new kp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function tj(){return new kp}function Y2(){return new l4("faces")}function nj(){return new l4("ocr_text")}class rj extends Ca{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Ot("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`blur_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`blur_faces${t}`))):this.addQualifier(new Ot("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(Y2()),r&&r.regionType==="ocr_text"&&i.region(nj()),r&&r.regionType==="custom"&&i.region(kp.fromJson(r)),i}}function Au(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const Z2={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},ij={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},X2={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},J2={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},aj={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Q2={444:"CHROMA_444",420:"CHROMA_420"},sj={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},oj=Au(Q2);Au(sj);const uj=Au(Z2),lj=Au(ij),eP=Au(X2);Au(J2);Au(aj);class tP extends Ca{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=eP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=new Rn(t),new Ot("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=X2[n]||n;return new this(a,r||i)}}class cj extends tP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=eP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function Op(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class fj extends Ca{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Rn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Rn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Rn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Rn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Rn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ot("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:s,numOfColors:o}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),s&&l.detailsLevel(s),o&&l.numOfColors(o),l}}class dj extends cj{level(t){return this._actionModel.level=t,this.setLevel(t)}}class hj extends Ca{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ot("e",new Rn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ot("e",new Rn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ot("e",new Rn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class pj extends dj{color(t){return this._actionModel.color=t,this.addQualifier(new Ot("co",new Rn(Op(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class mj extends Ca{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Ot("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`pixelate_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`pixelate_faces${t}`))):this.addQualifier(new Ot("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(Y2()),n&&n.regionType==="custom"&&i.region(tj()),i}}const gj=e=>xj(encodeURIComponent,bj,$j)(e),vj=/[!'()*~_.-]/g,yj={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},bj=e=>e.replace(vj,t=>{var n;return(n=yj[t])!==null&&n!==void 0?n:t}),$j=e=>e.replace(/%20/g," "),xj=(...e)=>t=>e.reduce((n,r)=>r(n),t);function wj(e){return new rj(e)}function Cj(){return new tP("grayscale")}function Bw(e){return new pj("colorize",e)}function Ej(){return new fj}function Sj(){return new hj}function Dj(e){return new mj(e)}let Aj=class extends Ca{constructor(t){super(),this._actionModel={},this.addQualifier(new Ot("b",new Rn(Op(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},Vw=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:u4(`unsupported action ${this.constructor.name}`)}}};function Tj(e){const t=e;return"error"in t&&!!t.error}function Pj(){return new Gi("ignore_aspect_ratio")}function _j(){return new Gi("lossy")}function Mj(){return new Gi("preserve_transparency")}function Fj(e){return new Gi("progressive",e)}function Rj(){return new Gi("region_relative")}function kj(){return new Gi("relative")}let c4=class extends Rn{constructor(t){super(t),this.val=t}getValue(){return this.val}},nP=class extends Ca{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof c4?i=n.getValue():i=n,this._actionModel.actionType=lj[t],this._actionModel[r]=i,this.addQualifier(new Ot(t,n))}},Oj=class extends Gi{constructor(t){super("progressive",t)}},Tb=class extends nP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(_j()),this}progressive(t){return t instanceof Oj?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(Fj(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Mj()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}},Ip=class rP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Vw(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof rP?this.actions=this.actions.concat(t.actions):this.actions.push(new Vw(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Tb("q",t)),this}format(t){return this.addAction(new Tb("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Aj(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ca;let r=t;return typeof t=="string"&&(r=new Gi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(Tj(r))return r;t.push(r)}return{actions:t}}};function Nw(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class Ij extends Rn{}class Lj extends Ca{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=uj[t]||t,this.addQualifier(new Ot("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ot("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ot("w",t))}aspectRatio(t){if(t instanceof Ij)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ot("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=Nw(t),this.addQualifier(new Ot("ar",Nw(t)));if(t instanceof Gi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(kj())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Rj())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:s,width:o,height:l}=r,d=Z2[n]||n,h=new this(d,o,l);return s&&h.aspectRatio(s==="ignore_aspect_ratio"?Pj():s),i&&h.relative(),a&&h.regionRelative(),h}}class f4 extends Ot{constructor(t){super("g",new Rn(t))}}class iP extends f4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class aP extends f4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class sP extends f4{constructor(t){super(t)}}function Bj(e){return new sP(e)}function oP(...e){const t=[...e];return new aP(t)}function uP(){return new iP}class Nl extends Rn{constructor(t){super(),this.name=t}toString(){return this.name}}function Vj(){return new Nl("ocr_text")}function Nj(e){return e&&`${e}`.split(":")[0]==="auto"}function jj(e){const t=d4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function d4(e){return`${e}`.replace("g_","")}function Kj(e){return{compass:d4(e),gravityType:"direction"}}function Uj(e){return d4(e)==="ocr_text"}function qj(){return{gravityType:"ocr"}}function zj(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Wj(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function lP(e){let t;const n=e==="auto"?new iP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(Wj)}}function Hj(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),s=uP().autoFocus(...a);i.fallbackGravity=lP(s)}return i}function Gj(e){const n=e.split(":").map(r=>new Nl(r));return new aP(n)}function Yj(e){return jj(e)?Kj(e):Uj(e)?qj():Nj(e)||zj(e)?lP(e):Hj(typeof e=="string"?Gj(e):e)}class h4 extends Rn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Nl?t:new Nl(t);return new h4(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class cP extends Rn{constructor(t){super(),this.val=t}toString(){return this.val}}function Zj(e){return e.gravityType==="direction"}function Xj(e){return e.gravityType==="ocr"}function Jj(e){return e.gravityType==="auto"}function Qj(e){const{object:t,weight:n,avoid:r}=e,i=new h4(new Nl(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function fP(e){const n=(e.autoFocus||[]).map(Qj);return uP().autoFocus(...n)}function eK(e){const t=(e.focusOnObjects||[]).map(r=>new Nl(r)),n=oP(...t);if(e.fallbackGravity){const r=fP(e.fallbackGravity);n.fallbackGravity(r)}return n}function tK(e){return Zj(e)?new sP(new cP(e.compass)):Xj(e)?oP(Vj()):Jj(e)?fP(e):eK(e)}class p4 extends Lj{gravity(t){this._actionModel.gravity=Yj(t);const n=typeof t=="string"?new Ot("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(tK(t.gravity)),n}}class Zf extends Ot{constructor(t){super("b"),t&&this.addValue(t)}}const dP=100,nK=0;class rK extends Zf{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${dP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var hP=rK;class m4 extends Zf{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Op(n)),this}}class pP extends m4{toString(){return`
|
|
2
|
+
b_auto:border
|
|
3
|
+
${this._contrast?"_contrast":""}
|
|
4
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
5
|
+
`.replace(/\s+/g,"")}}class mP extends m4{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class gP extends mP{toString(){return`
|
|
6
|
+
b_auto:border_gradient
|
|
7
|
+
${this._contrast?"_contrast":""}
|
|
8
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
9
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
10
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
11
|
+
`.replace(/\s+/g,"")}}class vP extends mP{toString(){return`
|
|
12
|
+
b_auto:predominant_gradient
|
|
13
|
+
${this._contrast?"_contrast":""}
|
|
14
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
15
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
16
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
17
|
+
`.replace(/\s+/g,"")}}class yP extends m4{toString(){return`
|
|
18
|
+
b_auto:predominant
|
|
19
|
+
${this._contrast?"_contrast":""}
|
|
20
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
21
|
+
`.replace(/\s+/g,"")}}class bP extends Zf{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${gj(this._prompt)}`:""}`}}function $P(e){return`${e}`.replace("b_","")}function iK(){return{backgroundType:"auto"}}function aK(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function g4(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function sK(e){return Object.assign(Object.assign({},g4(e)),{backgroundType:"border"})}function xP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=g4(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function oK(e){return Object.assign(Object.assign({},xP(e)),{backgroundType:"borderGradient"})}function uK(e){return{backgroundType:"color",color:$P(e)}}function lK(e){return Object.assign(Object.assign({},g4(e)),{backgroundType:"predominant"})}function cK(e){return Object.assign(Object.assign({},xP(e)),{backgroundType:"predominantGradient"})}function fK(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function dK(e){return $P(e)==="auto"?iK():e instanceof hP?aK(e):e instanceof pP?sK(e):e instanceof gP?oK(e):e instanceof yP?lK(e):e instanceof vP?cK(e):e instanceof bP?fK(e):uK(e)}function hK(){return new c4("svg")}function v4(){return new c4("auto")}function wP(){return new pP}function CP(){return new Zf("auto")}function EP(){return new gP}function SP(){return new vP}function DP(){return new yP}function AP(e){return new Zf(Op(e))}function pK(){return new hP}function TP(){return new bP}const PP={auto:CP,border:wP,borderGradient:EP,predominantGradient:SP,predominant:DP,color:AP,blurred:pK,generativeFill:TP};function mK(e){const{brightness:t,intensity:n}=e,r=PP.blurred();return r.brightness(t??nK),r.intensity(n??dP),r}function jw(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function Kw(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function gK(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function vK(e){const{backgroundType:t}=e;switch(t){case"auto":return CP();case"blurred":return mK(e);case"border":return Kw(wP(),e);case"borderGradient":return jw(EP(),e);case"predominant":return Kw(DP(),e);case"predominantGradient":return jw(SP(),e);case"generativeFill":return gK(TP(),e);default:return AP(e.color)}}class yK extends p4{background(t){return this._actionModel.background=dK(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(vK(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class bK extends p4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ot("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class $K extends p4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function xK(e,t){return new bK("crop",e,t)}function wK(e,t){return new $K("fill",e,t)}function CK(e,t){return new yK("pad",e,t)}class EK extends nP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Q2[t];const n=new Rn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ot("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Rn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ot("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=J2[n]||n,s=new this(a);if(r){const o=oj[r.toUpperCase()];o&&s.chromaSubSampling(+o)}return i&&s.quantization(i),s}}function Lp(e){return new Tb("f",e)}function Bp(e){return new EK(e)}function SK(){return new cP("north_east")}Bw(70).color("black"),Bw(40).color("white"),Cj(),Sj();var DK=new Ip().effect(Ej()).delivery(Bp("auto")).delivery(Lp(hK())),AK=new Ip().effect(Dj()).delivery(Bp("auto")).delivery(Lp(v4())),TK=new Ip().effect(wj(2e3)).delivery(Bp("auto")).delivery(Lp(v4())),PK=new Ip().resize(CK("iw_div_2").aspectRatio(1).background(PP.auto())).resize(xK(1,1).gravity(Bj(SK()))).resize(wK().height("ih").width("iw")).delivery(Bp("auto")).delivery(Lp(v4())),Uw={vectorize:DK,pixelate:AK,blur:TK,"predominant-color":PK},qw="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",zw={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Ww="?_a=",_K=function(){function e(t,n,r,i,a,s,o){var l=this;this.mimeType="video",this.mimeSubTypes=zw,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=po(n);qh(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(a,s),l.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(a){r.appendSourceTag(po(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,s=i.codecs,o=i.transcode;return r.appendSourceTag(po(t).transcode(o),a,r.buildMimeType(a,s))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),s=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;s&&t.format(n);var o=t.toURL(),l=o.split(Ww),d=l[1]?"".concat(Ww).concat(l[1]):"",h=s?"":".".concat(n);a.src="".concat(l[0]).concat(h).concat(d),a.type=r||"video/".concat(zw[n]||n),this.videoElement.appendChild(a)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=po(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var a=0,s=Object.entries(t);a<s.length;a++){var o=s[a],l=o[0],d=o[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,a){var s=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);qh(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,a),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),MK=typeof ho=="object"&&ho&&ho.Object===Object&&ho,FK=typeof self=="object"&&self&&self.Object===Object&&self;MK||FK||Function("return this")();function y4(){return typeof window<"u"}function RK(e){return e instanceof HTMLImageElement}function kK(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return OK.bind(null,r,a)}function OK(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),y4()?new Promise(function(s){var o=function(){return s({lazyload:!0})},l=LK(n,o,e,t);i.cleanupCallbacks.push(function(){l(),s("canceled")})}):!1}function IK(){return window&&"IntersectionObserver"in window}function LK(e,t,n,r){try{if(!IK())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(s){s.isIntersecting&&(i.unobserve(s.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function BK(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return VK.bind(null,r)}function VK(e,t,n,r,i,a){Uw[e]||(e="vectorize");var s=Uw[e].actions,o=po(n);if(s.forEach(function(d){o.addAction(d)}),!y4())return n.transformation=o.transformation,!0;if(RK(t)){o.transformation.actions.forEach(function(d,h){d instanceof Ca&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var l=Ab(i,{placeholder:!0});return t.src=o.toURL(l),t.onerror=function(){t.src=qw},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=qw,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function NK(e,t,n){var r=po(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL(n?{trackedAnalytics:n}:null)}function zh(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
22
|
+
Copyright (c) Microsoft Corporation.
|
|
23
|
+
|
|
24
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
25
|
+
purpose with or without fee is hereby granted.
|
|
26
|
+
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
28
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
29
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
30
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
31
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
32
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
33
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
34
|
+
***************************************************************************** */var Pb=function(e,t){return Pb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Pb(e,t)};function _P(e,t){Pb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Tf=function(){return Tf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Tf.apply(this,arguments)};function MP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ug={sdkSemver:"1.14.3",techVersion:ce.default.version,sdkCode:"J"},jK=function(e){_P(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=ce.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new GN(this.imageRef.current,this.props.cldImg,this.props.plugins,Ug)},t.prototype.componentDidUpdate=function(){zh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Ug)},t.prototype.componentWillUnmount=function(){zh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=MP(n,["cldImg","plugins"]);if(y4())return ce.default.createElement("img",Tf({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=NK(this.props.plugins,this.props.cldImg,Ug);return ce.default.createElement("img",Tf({},r,{src:i}))},t}(ce.default.Component),KK=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){_P(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=L.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new _K(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){zh(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){zh(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return KK.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=MP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return ce.default.createElement("video",Tf({},r,{ref:this.attachRef}))},t})(L.Component);function UK(e){return!(typeof e!="object"||e instanceof Array)}class qK{filterOutNonSupportedKeys(t,n){const r=Object.create({});return UK(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const Hw=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class b4 extends qK{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Hw);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Hw);return new b4(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class Pf{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class zK extends Error{constructor(t="Unsupported"){super(t)}}function $4(e){return new zK(e)}function WK(){return this._qualifierModel||{error:$4(`unsupported qualifier ${this.constructor.name}`)}}class HK{constructor(){this._qualifierModel={}}toJson(){return WK.apply(this)}}class Vp extends HK{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Pf?this.qualifierValue=n:(this.qualifierValue=new Pf,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class yo extends Vp{constructor(t,n){let r;n?r=new Pf([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function GK(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function YK(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:$4(`unsupported action ${this.constructor.name}`)}}class ZK{constructor(){this._actionModel={}}toJson(){return YK.apply(this)}}class x4 extends ZK{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),GK(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new yo(r)):this.qualifiers.set(n,new Vp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new yo(t)):t instanceof yo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function XK(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class JK extends x4{constructor(t){super(),this._actionModel={},this.addQualifier(new Vp("b",new Pf(XK(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Gw{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:$4(`unsupported action ${this.constructor.name}`)}}}function QK(e){const t=e;return"error"in t&&!!t.error}function eU(){return new yo("lossy")}function tU(){return new yo("preserve_transparency")}function nU(e){return new yo("progressive",e)}class rU extends Pf{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Tu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const iU={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},aU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},sU={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},oU={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},uU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},lU={444:"CHROMA_444",420:"CHROMA_420"},cU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Tu(lU);Tu(cU);Tu(iU);const fU=Tu(aU);Tu(sU);Tu(oU);Tu(uU);class dU extends x4{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof rU?i=n.getValue():i=n,this._actionModel.actionType=fU[t],this._actionModel[r]=i,this.addQualifier(new Vp(t,n))}}class hU extends yo{constructor(t){super("progressive",t)}}class Wh extends dU{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(eU()),this}progressive(t){return t instanceof hU?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(nU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(tU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}}class Np{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Gw(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Np?this.actions=this.actions.concat(t.actions):this.actions.push(new Gw(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Wh("q",t)),this}format(t){return this.addAction(new Wh("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new JK(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new x4;let r=t;return typeof t=="string"&&(r=new yo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(QK(r))return r;t.push(r)}return{actions:t}}}class pU extends Np{}class mU extends Np{}function gU(e){return e.match(/^https?:\//)}function vU(e){return e.indexOf("/")<0}function yU(e){return e.match(/^v[0-9]+/)}function bU(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function $U(e){return e||"image"}function xU(e){return e||"upload"}function wU(e,t,n){const r=n!==!1;return t?`v${t}`:yU(e)||gU(e)||vU(e)?"":r?"v1":""}function w4(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=CU(i,r/i.length)),i.slice(0,r)+String(e))}function CU(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const EU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hh={};let Yw=0;EU.split("").forEach(e=>{let t=Yw.toString(2);t=w4(t,6,"0"),Hh[t]=e,Yw++});function SU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function DU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return w4(t,2,"0")}).join(".")}function Zw(e){let t="";const r=e.split(".").length*6,i=SU(e),a=DU(i);let o=parseInt(a.split(".").join("")).toString(2);if(o=w4(o,r,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(l=>{t+=Hh[l]}),t}function AU(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),e.feature&&(t.feature=e.feature),t}const TU="1.22.0";function PU(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return Hh[a]+Hh[s]}function _U(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function MU(e){const t={techVersion:_U(),sdkCode:"T",sdkSemver:TU.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function Xw(e){const t=MU(e),n=AU(t);try{const r=FU(n.techVersion),i=Zw(n.sdkSemver),a=Zw(r),s=PU(n.osVersion),o=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${a}${h}${s}${o}`}catch{return"E"}}function FU(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Jw={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class RU{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new b4(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=$U(this.assetType),n=xU(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=Jw[`${t}/${n}`],s=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(Jw).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=bU(this.cloudName,this.urlConfig),i=t?t.toString():"",a=wU(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,s.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const o=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",Xw(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",l&&(d+=`${d.length>0?"&":""}_a=${Xw(n)}`);return d?`${o}?${d}`:o}}}class FP extends RU{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new Wh("q",t)),this}format(t){return this.addAction(new Wh("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class kU extends FP{constructor(t,n,r){super(t,n,r,new pU)}}class OU extends FP{constructor(t,n,r){super(t,n,r,new mU),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class IU{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new kU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new OU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var qg,Qw;function RP(){if(Qw)return qg;Qw=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return qg=e,qg}var zg,eC;function LU(){if(eC)return zg;eC=1;function e(){this.__data__=[],this.size=0}return zg=e,zg}var Wg,tC;function C4(){if(tC)return Wg;tC=1;function e(t,n){return t===n||t!==t&&n!==n}return Wg=e,Wg}var Hg,nC;function jp(){if(nC)return Hg;nC=1;var e=C4();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Hg=t,Hg}var Gg,rC;function BU(){if(rC)return Gg;rC=1;var e=jp(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():n.call(a,s,1),--this.size,!0}return Gg=r,Gg}var Yg,iC;function VU(){if(iC)return Yg;iC=1;var e=jp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Yg=t,Yg}var Zg,aC;function NU(){if(aC)return Zg;aC=1;var e=jp();function t(n){return e(this.__data__,n)>-1}return Zg=t,Zg}var Xg,sC;function jU(){if(sC)return Xg;sC=1;var e=jp();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return Xg=t,Xg}var Jg,oC;function Kp(){if(oC)return Jg;oC=1;var e=LU(),t=BU(),n=VU(),r=NU(),i=jU();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Jg=a,Jg}var Qg,uC;function KU(){if(uC)return Qg;uC=1;var e=Kp();function t(){this.__data__=new e,this.size=0}return Qg=t,Qg}var ev,lC;function UU(){if(lC)return ev;lC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ev=e,ev}var tv,cC;function qU(){if(cC)return tv;cC=1;function e(t){return this.__data__.get(t)}return tv=e,tv}var nv,fC;function zU(){if(fC)return nv;fC=1;function e(t){return this.__data__.has(t)}return nv=e,nv}var rv,dC;function Pu(){if(dC)return rv;dC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return rv=e,rv}var iv,hC;function E4(){if(hC)return iv;hC=1;var e=tc(),t=Pu(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!t(o))return!1;var l=e(o);return l==r||l==i||l==n||l==a}return iv=s,iv}var av,pC;function WU(){if(pC)return av;pC=1;var e=Us(),t=e["__core-js_shared__"];return av=t,av}var sv,mC;function HU(){if(mC)return sv;mC=1;var e=WU(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return sv=n,sv}var ov,gC;function kP(){if(gC)return ov;gC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return ov=n,ov}var uv,vC;function GU(){if(vC)return uv;vC=1;var e=E4(),t=HU(),n=Pu(),r=kP(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,d=o.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:a;return b.test(r(g))}return uv=m,uv}var lv,yC;function YU(){if(yC)return lv;yC=1;function e(t,n){return t==null?void 0:t[n]}return lv=e,lv}var cv,bC;function rc(){if(bC)return cv;bC=1;var e=GU(),t=YU();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return cv=n,cv}var fv,$C;function S4(){if($C)return fv;$C=1;var e=rc(),t=Us(),n=e(t,"Map");return fv=n,fv}var dv,xC;function Up(){if(xC)return dv;xC=1;var e=rc(),t=e(Object,"create");return dv=t,dv}var hv,wC;function ZU(){if(wC)return hv;wC=1;var e=Up();function t(){this.__data__=e?e(null):{},this.size=0}return hv=t,hv}var pv,CC;function XU(){if(CC)return pv;CC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return pv=e,pv}var mv,EC;function JU(){if(EC)return mv;EC=1;var e=Up(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var s=this.__data__;if(e){var o=s[a];return o===t?void 0:o}return r.call(s,a)?s[a]:void 0}return mv=i,mv}var gv,SC;function QU(){if(SC)return gv;SC=1;var e=Up(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return gv=r,gv}var vv,DC;function eq(){if(DC)return vv;DC=1;var e=Up(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return vv=n,vv}var yv,AC;function tq(){if(AC)return yv;AC=1;var e=ZU(),t=XU(),n=JU(),r=QU(),i=eq();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,yv=a,yv}var bv,TC;function nq(){if(TC)return bv;TC=1;var e=tq(),t=Kp(),n=S4();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return bv=r,bv}var $v,PC;function rq(){if(PC)return $v;PC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return $v=e,$v}var xv,_C;function qp(){if(_C)return xv;_C=1;var e=rq();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return xv=t,xv}var wv,MC;function iq(){if(MC)return wv;MC=1;var e=qp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return wv=t,wv}var Cv,FC;function aq(){if(FC)return Cv;FC=1;var e=qp();function t(n){return e(this,n).get(n)}return Cv=t,Cv}var Ev,RC;function sq(){if(RC)return Ev;RC=1;var e=qp();function t(n){return e(this,n).has(n)}return Ev=t,Ev}var Sv,kC;function oq(){if(kC)return Sv;kC=1;var e=qp();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return Sv=t,Sv}var Dv,OC;function D4(){if(OC)return Dv;OC=1;var e=nq(),t=iq(),n=aq(),r=sq(),i=oq();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var d=s[o];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Dv=a,Dv}var Av,IC;function uq(){if(IC)return Av;IC=1;var e=Kp(),t=S4(),n=D4(),r=200;function i(a,s){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<r-1)return l.push([a,s]),this.size=++o.size,this;o=this.__data__=new n(l)}return o.set(a,s),this.size=o.size,this}return Av=i,Av}var Tv,LC;function OP(){if(LC)return Tv;LC=1;var e=Kp(),t=KU(),n=UU(),r=qU(),i=zU(),a=uq();function s(o){var l=this.__data__=new e(o);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=a,Tv=s,Tv}var Pv,BC;function lq(){if(BC)return Pv;BC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Pv=t,Pv}var _v,VC;function cq(){if(VC)return _v;VC=1;function e(t){return this.__data__.has(t)}return _v=e,_v}var Mv,NC;function fq(){if(NC)return Mv;NC=1;var e=D4(),t=lq(),n=cq();function r(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Mv=r,Mv}var Fv,jC;function dq(){if(jC)return Fv;jC=1;function e(t,n){return t.has(n)}return Fv=e,Fv}var Rv,KC;function IP(){if(KC)return Rv;KC=1;var e=fq(),t=RP(),n=dq(),r=1,i=2;function a(s,o,l,d,h,m){var g=l&r,b=s.length,w=o.length;if(b!=w&&!(g&&w>b))return!1;var x=m.get(s),A=m.get(o);if(x&&A)return x==o&&A==s;var E=-1,C=!0,S=l&i?new e:void 0;for(m.set(s,o),m.set(o,s);++E<b;){var M=s[E],_=o[E];if(d)var R=g?d(_,M,E,o,s,m):d(M,_,E,s,o,m);if(R!==void 0){if(R)continue;C=!1;break}if(S){if(!t(o,function(z,re){if(!n(S,re)&&(M===z||h(M,z,l,d,m)))return S.push(re)})){C=!1;break}}else if(!(M===_||h(M,_,l,d,m))){C=!1;break}}return m.delete(s),m.delete(o),C}return Rv=a,Rv}var kv,UC;function hq(){if(UC)return kv;UC=1;var e=Us(),t=e.Uint8Array;return kv=t,kv}var Ov,qC;function pq(){if(qC)return Ov;qC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Ov=e,Ov}var Iv,zC;function mq(){if(zC)return Iv;zC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Iv=e,Iv}var Lv,WC;function gq(){if(WC)return Lv;WC=1;var e=Fp(),t=hq(),n=C4(),r=IP(),i=pq(),a=mq(),s=1,o=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",w="[object Set]",x="[object String]",A="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",S=e?e.prototype:void 0,M=S?S.valueOf:void 0;function _(R,z,re,ge,le,I,Ce){switch(re){case C:if(R.byteLength!=z.byteLength||R.byteOffset!=z.byteOffset)return!1;R=R.buffer,z=z.buffer;case E:return!(R.byteLength!=z.byteLength||!I(new t(R),new t(z)));case l:case d:case g:return n(+R,+z);case h:return R.name==z.name&&R.message==z.message;case b:case x:return R==z+"";case m:var we=i;case w:var U=ge&s;if(we||(we=a),R.size!=z.size&&!U)return!1;var ee=Ce.get(R);if(ee)return ee==z;ge|=o,Ce.set(R,z);var N=r(we(R),we(z),ge,le,I,Ce);return Ce.delete(R),N;case A:if(M)return M.call(R)==M.call(z)}return!1}return Lv=_,Lv}var Bv,HC;function vq(){if(HC)return Bv;HC=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return Bv=e,Bv}var Vv,GC;function yq(){if(GC)return Vv;GC=1;var e=vq(),t=ts();function n(r,i,a){var s=i(r);return t(r)?s:e(s,a(r))}return Vv=n,Vv}var Nv,YC;function bq(){if(YC)return Nv;YC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,s=[];++r<i;){var o=t[r];n(o,r,t)&&(s[a++]=o)}return s}return Nv=e,Nv}var jv,ZC;function $q(){if(ZC)return jv;ZC=1;function e(){return[]}return jv=e,jv}var Kv,XC;function xq(){if(XC)return Kv;XC=1;var e=bq(),t=$q(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(o){return r.call(s,o)}))}:t;return Kv=a,Kv}var Uv,JC;function wq(){if(JC)return Uv;JC=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Uv=e,Uv}var qv,QC;function Cq(){if(QC)return qv;QC=1;var e=tc(),t=nc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return qv=r,qv}var zv,eE;function LP(){if(eE)return zv;eE=1;var e=Cq(),t=nc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return zv=a,zv}var sf={exports:{}},Wv,tE;function Eq(){if(tE)return Wv;tE=1;function e(){return!1}return Wv=e,Wv}sf.exports;var nE;function A4(){return nE||(nE=1,function(e,t){var n=Us(),r=Eq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,o=s?n.Buffer:void 0,l=o?o.isBuffer:void 0,d=l||r;e.exports=d}(sf,sf.exports)),sf.exports}var Hv,rE;function T4(){if(rE)return Hv;rE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Hv=n,Hv}var Gv,iE;function P4(){if(iE)return Gv;iE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Gv=t,Gv}var Yv,aE;function Sq(){if(aE)return Yv;aE=1;var e=tc(),t=P4(),n=nc(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",x="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",S="[object Float64Array]",M="[object Int8Array]",_="[object Int16Array]",R="[object Int32Array]",z="[object Uint8Array]",re="[object Uint8ClampedArray]",ge="[object Uint16Array]",le="[object Uint32Array]",I={};I[C]=I[S]=I[M]=I[_]=I[R]=I[z]=I[re]=I[ge]=I[le]=!0,I[r]=I[i]=I[A]=I[a]=I[E]=I[s]=I[o]=I[l]=I[d]=I[h]=I[m]=I[g]=I[b]=I[w]=I[x]=!1;function Ce(we){return n(we)&&t(we.length)&&!!I[e(we)]}return Yv=Ce,Yv}var Zv,sE;function Dq(){if(sE)return Zv;sE=1;function e(t){return function(n){return t(n)}}return Zv=e,Zv}var of={exports:{}};of.exports;var oE;function Aq(){return oE||(oE=1,function(e,t){var n=H2(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,o=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o}(of,of.exports)),of.exports}var Xv,uE;function _4(){if(uE)return Xv;uE=1;var e=Sq(),t=Dq(),n=Aq(),r=n&&n.isTypedArray,i=r?t(r):e;return Xv=i,Xv}var Jv,lE;function Tq(){if(lE)return Jv;lE=1;var e=wq(),t=LP(),n=ts(),r=A4(),i=T4(),a=_4(),s=Object.prototype,o=s.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),w=!m&&!g&&!b&&a(d),x=m||g||b||w,A=x?e(d.length,String):[],E=A.length;for(var C in d)(h||o.call(d,C))&&!(x&&(C=="length"||b&&(C=="offset"||C=="parent")||w&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,E)))&&A.push(C);return A}return Jv=l,Jv}var Qv,cE;function Pq(){if(cE)return Qv;cE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Qv=t,Qv}var ey,fE;function BP(){if(fE)return ey;fE=1;function e(t,n){return function(r){return t(n(r))}}return ey=e,ey}var ty,dE;function _q(){if(dE)return ty;dE=1;var e=BP(),t=e(Object.keys,Object);return ty=t,ty}var ny,hE;function Mq(){if(hE)return ny;hE=1;var e=Pq(),t=_q(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var o in Object(a))r.call(a,o)&&o!="constructor"&&s.push(o);return s}return ny=i,ny}var ry,pE;function M4(){if(pE)return ry;pE=1;var e=E4(),t=P4();function n(r){return r!=null&&t(r.length)&&!e(r)}return ry=n,ry}var iy,mE;function F4(){if(mE)return iy;mE=1;var e=Tq(),t=Mq(),n=M4();function r(i){return n(i)?e(i):t(i)}return iy=r,iy}var ay,gE;function Fq(){if(gE)return ay;gE=1;var e=yq(),t=xq(),n=F4();function r(i){return e(i,n,t)}return ay=r,ay}var sy,vE;function Rq(){if(vE)return sy;vE=1;var e=Fq(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,s,o,l,d,h){var m=o&t,g=e(a),b=g.length,w=e(s),x=w.length;if(b!=x&&!m)return!1;for(var A=b;A--;){var E=g[A];if(!(m?E in s:r.call(s,E)))return!1}var C=h.get(a),S=h.get(s);if(C&&S)return C==s&&S==a;var M=!0;h.set(a,s),h.set(s,a);for(var _=m;++A<b;){E=g[A];var R=a[E],z=s[E];if(l)var re=m?l(z,R,E,s,a,h):l(R,z,E,a,s,h);if(!(re===void 0?R===z||d(R,z,o,l,h):re)){M=!1;break}_||(_=E=="constructor")}if(M&&!_){var ge=a.constructor,le=s.constructor;ge!=le&&"constructor"in a&&"constructor"in s&&!(typeof ge=="function"&&ge instanceof ge&&typeof le=="function"&&le instanceof le)&&(M=!1)}return h.delete(a),h.delete(s),M}return sy=i,sy}var oy,yE;function kq(){if(yE)return oy;yE=1;var e=rc(),t=Us(),n=e(t,"DataView");return oy=n,oy}var uy,bE;function Oq(){if(bE)return uy;bE=1;var e=rc(),t=Us(),n=e(t,"Promise");return uy=n,uy}var ly,$E;function Iq(){if($E)return ly;$E=1;var e=rc(),t=Us(),n=e(t,"Set");return ly=n,ly}var cy,xE;function Lq(){if(xE)return cy;xE=1;var e=rc(),t=Us(),n=e(t,"WeakMap");return cy=n,cy}var fy,wE;function Bq(){if(wE)return fy;wE=1;var e=kq(),t=S4(),n=Oq(),r=Iq(),i=Lq(),a=tc(),s=kP(),o="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=s(e),w=s(t),x=s(n),A=s(r),E=s(i),C=a;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=o||n&&C(n.resolve())!=d||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(S){var M=a(S),_=M==l?S.constructor:void 0,R=_?s(_):"";if(R)switch(R){case b:return g;case w:return o;case x:return d;case A:return h;case E:return m}return M}),fy=C,fy}var dy,CE;function Vq(){if(CE)return dy;CE=1;var e=OP(),t=IP(),n=gq(),r=Rq(),i=Bq(),a=ts(),s=A4(),o=_4(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w(x,A,E,C,S,M){var _=a(x),R=a(A),z=_?h:i(x),re=R?h:i(A);z=z==d?m:z,re=re==d?m:re;var ge=z==m,le=re==m,I=z==re;if(I&&s(x)){if(!s(A))return!1;_=!0,ge=!1}if(I&&!ge)return M||(M=new e),_||o(x)?t(x,A,E,C,S,M):n(x,A,z,E,C,S,M);if(!(E&l)){var Ce=ge&&b.call(x,"__wrapped__"),we=le&&b.call(A,"__wrapped__");if(Ce||we){var U=Ce?x.value():x,ee=we?A.value():A;return M||(M=new e),S(U,ee,E,C,M)}}return I?(M||(M=new e),r(x,A,E,C,S,M)):!1}return dy=w,dy}var hy,EE;function R4(){if(EE)return hy;EE=1;var e=Vq(),t=nc();function n(r,i,a,s,o){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,s,n,o)}return hy=n,hy}var py,SE;function Nq(){if(SE)return py;SE=1;var e=OP(),t=R4(),n=1,r=2;function i(a,s,o,l){var d=o.length,h=d,m=!l;if(a==null)return!h;for(a=Object(a);d--;){var g=o[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=o[d];var b=g[0],w=a[b],x=g[1];if(m&&g[2]){if(w===void 0&&!(b in a))return!1}else{var A=new e;if(l)var E=l(w,x,b,a,s,A);if(!(E===void 0?t(x,w,n|r,l,A):E))return!1}}return!0}return py=i,py}var my,DE;function VP(){if(DE)return my;DE=1;var e=Pu();function t(n){return n===n&&!e(n)}return my=t,my}var gy,AE;function jq(){if(AE)return gy;AE=1;var e=VP(),t=F4();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],o=r[s];i[a]=[s,o,e(o)]}return i}return gy=n,gy}var vy,TE;function NP(){if(TE)return vy;TE=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vy=e,vy}var yy,PE;function Kq(){if(PE)return yy;PE=1;var e=Nq(),t=jq(),n=NP();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return yy=r,yy}var by,_E;function k4(){if(_E)return by;_E=1;var e=ts(),t=Rp(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return by=i,by}var $y,ME;function Uq(){if(ME)return $y;ME=1;var e=D4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],l=a.cache;if(l.has(o))return l.get(o);var d=r.apply(this,s);return a.cache=l.set(o,d)||l,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,$y=n,$y}var xy,FE;function qq(){if(FE)return xy;FE=1;var e=Uq(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return xy=n,xy}var wy,RE;function zq(){if(RE)return wy;RE=1;var e=qq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,o,l,d){a.push(l?d.replace(n,"$1"):o||s)}),a});return wy=r,wy}var Cy,kE;function jP(){if(kE)return Cy;kE=1;var e=ts(),t=k4(),n=zq(),r=o4();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return Cy=i,Cy}var Ey,OE;function zp(){if(OE)return Ey;OE=1;var e=Rp();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Ey=t,Ey}var Sy,IE;function KP(){if(IE)return Sy;IE=1;var e=jP(),t=zp();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return Sy=n,Sy}var Dy,LE;function Wq(){if(LE)return Dy;LE=1;var e=KP();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return Dy=t,Dy}var Ay,BE;function Hq(){if(BE)return Ay;BE=1;function e(t,n){return t!=null&&n in Object(t)}return Ay=e,Ay}var Ty,VE;function Gq(){if(VE)return Ty;VE=1;var e=jP(),t=LP(),n=ts(),r=T4(),i=P4(),a=zp();function s(o,l,d){l=e(l,o);for(var h=-1,m=l.length,g=!1;++h<m;){var b=a(l[h]);if(!(g=o!=null&&d(o,b)))break;o=o[b]}return g||++h!=m?g:(m=o==null?0:o.length,!!m&&i(m)&&r(b,m)&&(n(o)||t(o)))}return Ty=s,Ty}var Py,NE;function Yq(){if(NE)return Py;NE=1;var e=Hq(),t=Gq();function n(r,i){return r!=null&&t(r,i,e)}return Py=n,Py}var _y,jE;function Zq(){if(jE)return _y;jE=1;var e=R4(),t=Wq(),n=Yq(),r=k4(),i=VP(),a=NP(),s=zp(),o=1,l=2;function d(h,m){return r(h)&&i(m)?a(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,o|l)}}return _y=d,_y}var My,KE;function Xq(){if(KE)return My;KE=1;function e(t){return t}return My=e,My}var Fy,UE;function Jq(){if(UE)return Fy;UE=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Fy=e,Fy}var Ry,qE;function Qq(){if(qE)return Ry;qE=1;var e=KP();function t(n){return function(r){return e(r,n)}}return Ry=t,Ry}var ky,zE;function ez(){if(zE)return ky;zE=1;var e=Jq(),t=Qq(),n=k4(),r=zp();function i(a){return n(a)?e(r(a)):t(a)}return ky=i,ky}var Oy,WE;function UP(){if(WE)return Oy;WE=1;var e=Kq(),t=Zq(),n=Xq(),r=ts(),i=ez();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return Oy=a,Oy}var Iy,HE;function tz(){if(HE)return Iy;HE=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),o=i(n),l=o.length;l--;){var d=o[t?l:++a];if(r(s[d],d,s)===!1)break}return n}}return Iy=e,Iy}var Ly,GE;function nz(){if(GE)return Ly;GE=1;var e=tz(),t=e();return Ly=t,Ly}var By,YE;function qP(){if(YE)return By;YE=1;var e=nz(),t=F4();function n(r,i){return r&&e(r,i,t)}return By=n,By}var Vy,ZE;function rz(){if(ZE)return Vy;ZE=1;var e=M4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,o=r?s:-1,l=Object(i);(r?o--:++o<s)&&a(l[o],o,l)!==!1;);return i}}return Vy=t,Vy}var Ny,XE;function iz(){if(XE)return Ny;XE=1;var e=qP(),t=rz(),n=t(e);return Ny=n,Ny}var jy,JE;function az(){if(JE)return jy;JE=1;var e=iz();function t(n,r){var i;return e(n,function(a,s,o){return i=r(a,s,o),!i}),!!i}return jy=t,jy}var Ky,QE;function zP(){if(QE)return Ky;QE=1;var e=C4(),t=M4(),n=T4(),r=Pu();function i(a,s,o){if(!r(o))return!1;var l=typeof s;return(l=="number"?t(o)&&n(s,o.length):l=="string"&&s in o)?e(o[s],a):!1}return Ky=i,Ky}var Uy,eS;function sz(){if(eS)return Uy;eS=1;var e=RP(),t=UP(),n=az(),r=ts(),i=zP();function a(s,o,l){var d=r(s)?e:n;return l&&i(s,o,l)&&(o=void 0),d(s,t(o,3))}return Uy=a,Uy}var oz=sz();const uz=yr(oz);var uf={exports:{}};/**
|
|
35
|
+
* @license
|
|
36
|
+
* Lodash <https://lodash.com/>
|
|
37
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
38
|
+
* Released under MIT license <https://lodash.com/license>
|
|
39
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
40
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
41
|
+
*/var lz=uf.exports,tS;function cz(){return tS||(tS=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,w=1,x=2,A=1,E=2,C=4,S=8,M=16,_=32,R=64,z=128,re=256,ge=512,le=30,I="...",Ce=800,we=16,U=1,ee=2,N=3,O=1/0,K=9007199254740991,de=17976931348623157e292,k=NaN,se=4294967295,oe=se-1,Te=se>>>1,Me=[["ary",z],["bind",A],["bindKey",E],["curry",S],["curryRight",M],["flip",ge],["partial",_],["partialRight",R],["rearg",re]],Le="[object Arguments]",Ye="[object Array]",Qe="[object AsyncFunction]",Ue="[object Boolean]",Ge="[object Date]",Ie="[object DOMException]",Ne="[object Error]",Ae="[object Function]",He="[object GeneratorFunction]",ht="[object Map]",Ht="[object Number]",$t="[object Null]",_t="[object Object]",qr="[object Promise]",Qt="[object Proxy]",be="[object RegExp]",De="[object Set]",_e="[object String]",Xe="[object Symbol]",et="[object Undefined]",Je="[object WeakMap]",gt="[object WeakSet]",Rt="[object ArrayBuffer]",xt="[object DataView]",vn="[object Float32Array]",br="[object Float64Array]",Ut="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",fr="[object Uint8ClampedArray]",zr="[object Uint16Array]",si="[object Uint32Array]",Pr=/\b__p \+= '';/g,Da=/\b(__p \+=) '' \+/g,Do=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,oi=/[&<>"']/g,is=RegExp(bt.source),bc=RegExp(oi.source),ku=/<%-([\s\S]+?)%>/g,$c=/<%([\s\S]+?)%>/g,Ou=/<%=([\s\S]+?)%>/g,Ao=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iu=/^\w*$/,Ji=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qi=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(Qi.source),Cn=/^\s+/,as=/\s/,Lu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$r=/\{\n\/\* \[wrapped with (.+)\] \*/,Bu=/,? & /,Vu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xc=/[()=,{}\[\]\/\s]/,Wr=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cn=/\w*$/,ea=/^[-+]0x[0-9a-f]+$/i,ui=/^0b[01]+$/i,Gn=/^\[object .+?Constructor\]$/,To=/^0o[0-7]+$/i,Aa=/^(?:0|[1-9]\d*)$/,li=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,Ws=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",wc="\\u0300-\\u036f",Nu="\\ufe20-\\ufe2f",Cc="\\u20d0-\\u20ff",Po=wc+Nu+Cc,ss="\\u2700-\\u27bf",ju="a-z\\xdf-\\xf6\\xf8-\\xff",_o="\\xac\\xb1\\xd7\\xf7",Ec="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sc="\\u2000-\\u206f",Dc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ku="A-Z\\xc0-\\xd6\\xd8-\\xde",Mo="\\ufe0e\\ufe0f",Fo=_o+Ec+Sc+Dc,os="['’]",Uu="["+jt+"]",qu="["+Fo+"]",_r="["+Po+"]",dr="\\d+",Mr="["+ss+"]",Ta="["+ju+"]",Hs="[^"+jt+Fo+dr+ss+ju+Ku+"]",hr="\\ud83c[\\udffb-\\udfff]",us="(?:"+_r+"|"+hr+")",ls="[^"+jt+"]",Ei="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+Ku+"]",Si="\\u200d",Ro="(?:"+Ta+"|"+Hs+")",zu="(?:"+rr+"|"+Hs+")",dn="(?:"+os+"(?:d|ll|m|re|s|t|ve))?",ko="(?:"+os+"(?:D|LL|M|RE|S|T|VE))?",cs=us+"?",Oo="["+Mo+"]?",Wu="(?:"+Si+"(?:"+[ls,Ei,ci].join("|")+")"+Oo+cs+")*",Fr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pa=Oo+cs+Wu,_a="(?:"+[Mr,Ei,ci].join("|")+")"+Pa,fs="(?:"+[ls+_r+"?",_r,Ei,ci,Uu].join("|")+")",ta=RegExp(os,"g"),ds=RegExp(_r,"g"),Gs=RegExp(hr+"(?="+hr+")|"+fs+Pa,"g"),Hu=RegExp([rr+"?"+Ta+"+"+dn+"(?="+[qu,rr,"$"].join("|")+")",zu+"+"+ko+"(?="+[qu,rr+Ro,"$"].join("|")+")",rr+"?"+Ro+"+"+dn,rr+"+"+ko,Io,Fr,dr,_a].join("|"),"g"),Ac=RegExp("["+Si+jt+Po+Mo+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ps=-1,Gt={};Gt[vn]=Gt[br]=Gt[Ut]=Gt[Pt]=Gt[It]=Gt[qt]=Gt[fr]=Gt[zr]=Gt[si]=!0,Gt[Le]=Gt[Ye]=Gt[Rt]=Gt[Ue]=Gt[xt]=Gt[Ge]=Gt[Ne]=Gt[Ae]=Gt[ht]=Gt[Ht]=Gt[_t]=Gt[be]=Gt[De]=Gt[_e]=Gt[Je]=!1;var en={};en[Le]=en[Ye]=en[Rt]=en[xt]=en[Ue]=en[Ge]=en[vn]=en[br]=en[Ut]=en[Pt]=en[It]=en[ht]=en[Ht]=en[_t]=en[be]=en[De]=en[_e]=en[Xe]=en[qt]=en[fr]=en[zr]=en[si]=!0,en[Ne]=en[Ae]=en[Je]=!1;var ie={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fe={"&":"&","<":"<",">":">",'"':""","'":"'"},ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,tr=parseInt,ir=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Vn=typeof self=="object"&&self&&self.Object===Object&&self,En=ir||Vn||Function("return this")(),Di=t&&!t.nodeType&&t,Ai=Di&&!0&&e&&!e.nodeType&&e,Lo=Ai&&Ai.exports===Di,Ys=Lo&&ir.process,ar=function(){try{var F=Ai&&Ai.require&&Ai.require("util").types;return F||Ys&&Ys.binding&&Ys.binding("util")}catch{}}(),ms=ar&&ar.isArrayBuffer,Ad=ar&&ar.isDate,Td=ar&&ar.isMap,Pc=ar&&ar.isRegExp,Zs=ar&&ar.isSet,na=ar&&ar.isTypedArray;function On(F,Q,G){switch(G.length){case 0:return F.call(Q);case 1:return F.call(Q,G[0]);case 2:return F.call(Q,G[0],G[1]);case 3:return F.call(Q,G[0],G[1],G[2])}return F.apply(Q,G)}function Ma(F,Q,G,he){for(var fe=-1,W=F==null?0:F.length;++fe<W;){var Y=F[fe];Q(he,Y,G(Y),F)}return he}function fn(F,Q){for(var G=-1,he=F==null?0:F.length;++G<he&&Q(F[G],G,F)!==!1;);return F}function sr(F,Q){for(var G=F==null?0:F.length;G--&&Q(F[G],G,F)!==!1;);return F}function gs(F,Q){for(var G=-1,he=F==null?0:F.length;++G<he;)if(!Q(F[G],G,F))return!1;return!0}function xr(F,Q){for(var G=-1,he=F==null?0:F.length,fe=0,W=[];++G<he;){var Y=F[G];Q(Y,G,F)&&(W[fe++]=Y)}return W}function Fa(F,Q){var G=F==null?0:F.length;return!!G&&vs(F,Q,0)>-1}function Gu(F,Q,G){for(var he=-1,fe=F==null?0:F.length;++he<fe;)if(G(Q,F[he]))return!0;return!1}function un(F,Q){for(var G=-1,he=F==null?0:F.length,fe=Array(he);++G<he;)fe[G]=Q(F[G],G,F);return fe}function ra(F,Q){for(var G=-1,he=Q.length,fe=F.length;++G<he;)F[fe+G]=Q[G];return F}function Yu(F,Q,G,he){var fe=-1,W=F==null?0:F.length;for(he&&W&&(G=F[++fe]);++fe<W;)G=Q(G,F[fe],fe,F);return G}function Bo(F,Q,G,he){var fe=F==null?0:F.length;for(he&&fe&&(G=F[--fe]);fe--;)G=Q(G,F[fe],fe,F);return G}function Ra(F,Q){for(var G=-1,he=F==null?0:F.length;++G<he;)if(Q(F[G],G,F))return!0;return!1}var Vo=Zu("length");function No(F){return F.split("")}function Am(F){return F.match(Vu)||[]}function _c(F,Q,G){var he;return G(F,function(fe,W,Y){if(Q(fe,W,Y))return he=W,!1}),he}function jo(F,Q,G,he){for(var fe=F.length,W=G+(he?1:-1);he?W--:++W<fe;)if(Q(F[W],W,F))return W;return-1}function vs(F,Q,G){return Q===Q?p(F,Q,G):jo(F,Mc,G)}function Pd(F,Q,G,he){for(var fe=G-1,W=F.length;++fe<W;)if(he(F[fe],Q))return fe;return-1}function Mc(F){return F!==F}function Ko(F,Q){var G=F==null?0:F.length;return G?ka(F,Q)/G:k}function Zu(F){return function(Q){return Q==null?n:Q[F]}}function Xu(F){return function(Q){return F==null?n:F[Q]}}function Fc(F,Q,G,he,fe){return fe(F,function(W,Y,B){G=he?(he=!1,W):Q(G,W,Y,B)}),G}function Uo(F,Q){var G=F.length;for(F.sort(Q);G--;)F[G]=F[G].value;return F}function ka(F,Q){for(var G,he=-1,fe=F.length;++he<fe;){var W=Q(F[he]);W!==n&&(G=G===n?W:G+W)}return G}function Ju(F,Q){for(var G=-1,he=Array(F);++G<F;)he[G]=Q(G);return he}function Tm(F,Q){return un(Q,function(G){return[G,F[G]]})}function _d(F){return F&&F.slice(0,P(F)+1).replace(Cn,"")}function wr(F){return function(Q){return F(Q)}}function Rc(F,Q){return un(Q,function(G){return F[G]})}function hn(F,Q){return F.has(Q)}function Qu(F,Q){for(var G=-1,he=F.length;++G<he&&vs(Q,F[G],0)>-1;);return G}function or(F,Q){for(var G=F.length;G--&&vs(Q,F[G],0)>-1;);return G}function Pm(F,Q){for(var G=F.length,he=0;G--;)F[G]===Q&&++he;return he}var _m=Xu(ie),ys=Xu(Fe);function fi(F){return"\\"+pt[F]}function Mm(F,Q){return F==null?n:F[Q]}function Cr(F){return Ac.test(F)}function kc(F){return hs.test(F)}function Oa(F){for(var Q,G=[];!(Q=F.next()).done;)G.push(Q.value);return G}function In(F){var Q=-1,G=Array(F.size);return F.forEach(function(he,fe){G[++Q]=[fe,he]}),G}function Ti(F,Q){return function(G){return F(Q(G))}}function Hr(F,Q){for(var G=-1,he=F.length,fe=0,W=[];++G<he;){var Y=F[G];(Y===Q||Y===h)&&(F[G]=h,W[fe++]=G)}return W}function Xs(F){var Q=-1,G=Array(F.size);return F.forEach(function(he){G[++Q]=he}),G}function c(F){var Q=-1,G=Array(F.size);return F.forEach(function(he){G[++Q]=[he,he]}),G}function p(F,Q,G){for(var he=G-1,fe=F.length;++he<fe;)if(F[he]===Q)return he;return-1}function v(F,Q,G){for(var he=G+1;he--;)if(F[he]===Q)return he;return he}function $(F){return Cr(F)?me(F):Vo(F)}function T(F){return Cr(F)?J(F):No(F)}function P(F){for(var Q=F.length;Q--&&as.test(F.charAt(Q)););return Q}var q=Xu(ze);function me(F){for(var Q=Gs.lastIndex=0;Gs.test(F);)++Q;return Q}function J(F){return F.match(Gs)||[]}function $e(F){return F.match(Hu)||[]}var Ee=function F(Q){Q=Q==null?En:Re.defaults(En.Object(),Q,Re.pick(En,Tc));var G=Q.Array,he=Q.Date,fe=Q.Error,W=Q.Function,Y=Q.Math,B=Q.Object,j=Q.RegExp,H=Q.String,te=Q.TypeError,ae=G.prototype,pe=W.prototype,Oe=B.prototype,nt=Q["__core-js_shared__"],tt=pe.toString,Ve=Oe.hasOwnProperty,ot=0,ct=function(){var u=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Be=Oe.toString,xe=tt.call(B),ue=En._,X=j("^"+tt.call(Ve).replace(Qi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Lo?Q.Buffer:n,je=Q.Symbol,ke=Q.Uint8Array,lt=ve?ve.allocUnsafe:n,At=Ti(B.getPrototypeOf,B),Ct=B.create,bn=Oe.propertyIsEnumerable,zt=ae.splice,ur=je?je.isConcatSpreadable:n,Yn=je?je.iterator:n,Ln=je?je.toStringTag:n,Nn=function(){try{var u=Go(B,"defineProperty");return u({},"",{}),u}catch{}}(),jn=Q.clearTimeout!==En.clearTimeout&&Q.clearTimeout,pr=he&&he.now!==En.Date.now&&he.now,ft=Q.setTimeout!==En.setTimeout&&Q.setTimeout,ln=Y.ceil,Gr=Y.floor,Pi=B.getOwnPropertySymbols,ia=ve?ve.isBuffer:n,di=Q.isFinite,aa=ae.join,sa=Ti(B.keys,B),Yt=Y.max,$n=Y.min,Ia=he.now,hi=Q.parseInt,oa=Y.random,pi=ae.reverse,ua=Go(Q,"DataView"),La=Go(Q,"Map"),Js=Go(Q,"Promise"),el=Go(Q,"Set"),Oc=Go(Q,"WeakMap"),Ic=Go(B,"create"),Md=Oc&&new Oc,tl={},BI=Yo(ua),VI=Yo(La),NI=Yo(Js),jI=Yo(el),KI=Yo(Oc),Fd=je?je.prototype:n,Lc=Fd?Fd.valueOf:n,O$=Fd?Fd.toString:n;function Z(u){if(Bn(u)&&!Mt(u)&&!(u instanceof Kt)){if(u instanceof _i)return u;if(Ve.call(u,"__wrapped__"))return Ix(u)}return new _i(u)}var nl=function(){function u(){}return function(f){if(!Tn(f))return{};if(Ct)return Ct(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function Rd(){}function _i(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}Z.templateSettings={escape:ku,evaluate:$c,interpolate:Ou,variable:"",imports:{_:Z}},Z.prototype=Rd.prototype,Z.prototype.constructor=Z,_i.prototype=nl(Rd.prototype),_i.prototype.constructor=_i;function Kt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=se,this.__views__=[]}function UI(){var u=new Kt(this.__wrapped__);return u.__actions__=Yr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Yr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Yr(this.__views__),u}function qI(){if(this.__filtered__){var u=new Kt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function zI(){var u=this.__wrapped__.value(),f=this.__dir__,y=Mt(u),D=f<0,V=y?u.length:0,ne=rL(0,V,this.__views__),ye=ne.start,Se=ne.end,Pe=Se-ye,qe=D?Se:ye-1,We=this.__iteratees__,Ze=We.length,st=0,vt=$n(Pe,this.__takeCount__);if(!y||!D&&V==Pe&&vt==Pe)return ax(u,this.__actions__);var Et=[];e:for(;Pe--&&st<vt;){qe+=f;for(var Lt=-1,St=u[qe];++Lt<Ze;){var Vt=We[Lt],Wt=Vt.iteratee,vi=Vt.type,Or=Wt(St);if(vi==ee)St=Or;else if(!Or){if(vi==U)continue e;break e}}Et[st++]=St}return Et}Kt.prototype=nl(Rd.prototype),Kt.prototype.constructor=Kt;function qo(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function WI(){this.__data__=Ic?Ic(null):{},this.size=0}function HI(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function GI(u){var f=this.__data__;if(Ic){var y=f[u];return y===l?n:y}return Ve.call(f,u)?f[u]:n}function YI(u){var f=this.__data__;return Ic?f[u]!==n:Ve.call(f,u)}function ZI(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=Ic&&f===n?l:f,this}qo.prototype.clear=WI,qo.prototype.delete=HI,qo.prototype.get=GI,qo.prototype.has=YI,qo.prototype.set=ZI;function bs(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function XI(){this.__data__=[],this.size=0}function JI(u){var f=this.__data__,y=kd(f,u);if(y<0)return!1;var D=f.length-1;return y==D?f.pop():zt.call(f,y,1),--this.size,!0}function QI(u){var f=this.__data__,y=kd(f,u);return y<0?n:f[y][1]}function e9(u){return kd(this.__data__,u)>-1}function t9(u,f){var y=this.__data__,D=kd(y,u);return D<0?(++this.size,y.push([u,f])):y[D][1]=f,this}bs.prototype.clear=XI,bs.prototype.delete=JI,bs.prototype.get=QI,bs.prototype.has=e9,bs.prototype.set=t9;function $s(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function n9(){this.size=0,this.__data__={hash:new qo,map:new(La||bs),string:new qo}}function r9(u){var f=Wd(this,u).delete(u);return this.size-=f?1:0,f}function i9(u){return Wd(this,u).get(u)}function a9(u){return Wd(this,u).has(u)}function s9(u,f){var y=Wd(this,u),D=y.size;return y.set(u,f),this.size+=y.size==D?0:1,this}$s.prototype.clear=n9,$s.prototype.delete=r9,$s.prototype.get=i9,$s.prototype.has=a9,$s.prototype.set=s9;function zo(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new $s;++f<y;)this.add(u[f])}function o9(u){return this.__data__.set(u,l),this}function u9(u){return this.__data__.has(u)}zo.prototype.add=zo.prototype.push=o9,zo.prototype.has=u9;function la(u){var f=this.__data__=new bs(u);this.size=f.size}function l9(){this.__data__=new bs,this.size=0}function c9(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function f9(u){return this.__data__.get(u)}function d9(u){return this.__data__.has(u)}function h9(u,f){var y=this.__data__;if(y instanceof bs){var D=y.__data__;if(!La||D.length<i-1)return D.push([u,f]),this.size=++y.size,this;y=this.__data__=new $s(D)}return y.set(u,f),this.size=y.size,this}la.prototype.clear=l9,la.prototype.delete=c9,la.prototype.get=f9,la.prototype.has=d9,la.prototype.set=h9;function I$(u,f){var y=Mt(u),D=!y&&Zo(u),V=!y&&!D&&ro(u),ne=!y&&!D&&!V&&sl(u),ye=y||D||V||ne,Se=ye?Ju(u.length,H):[],Pe=Se.length;for(var qe in u)(f||Ve.call(u,qe))&&!(ye&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||ne&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||Es(qe,Pe)))&&Se.push(qe);return Se}function L$(u){var f=u.length;return f?u[Km(0,f-1)]:n}function p9(u,f){return Hd(Yr(u),Wo(f,0,u.length))}function m9(u){return Hd(Yr(u))}function Fm(u,f,y){(y!==n&&!ca(u[f],y)||y===n&&!(f in u))&&xs(u,f,y)}function Bc(u,f,y){var D=u[f];(!(Ve.call(u,f)&&ca(D,y))||y===n&&!(f in u))&&xs(u,f,y)}function kd(u,f){for(var y=u.length;y--;)if(ca(u[y][0],f))return y;return-1}function g9(u,f,y,D){return Qs(u,function(V,ne,ye){f(D,V,y(V),ye)}),D}function B$(u,f){return u&&Va(f,lr(f),u)}function v9(u,f){return u&&Va(f,Xr(f),u)}function xs(u,f,y){f=="__proto__"&&Nn?Nn(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function Rm(u,f){for(var y=-1,D=f.length,V=G(D),ne=u==null;++y<D;)V[y]=ne?n:hg(u,f[y]);return V}function Wo(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function Mi(u,f,y,D,V,ne){var ye,Se=f&m,Pe=f&g,qe=f&b;if(y&&(ye=V?y(u,D,V,ne):y(u)),ye!==n)return ye;if(!Tn(u))return u;var We=Mt(u);if(We){if(ye=aL(u),!Se)return Yr(u,ye)}else{var Ze=Er(u),st=Ze==Ae||Ze==He;if(ro(u))return ux(u,Se);if(Ze==_t||Ze==Le||st&&!V){if(ye=Pe||st?{}:Ax(u),!Se)return Pe?G9(u,v9(ye,u)):H9(u,B$(ye,u))}else{if(!en[Ze])return V?u:{};ye=sL(u,Ze,Se)}}ne||(ne=new la);var vt=ne.get(u);if(vt)return vt;ne.set(u,ye),nw(u)?u.forEach(function(St){ye.add(Mi(St,f,y,St,u,ne))}):ew(u)&&u.forEach(function(St,Vt){ye.set(Vt,Mi(St,f,y,Vt,u,ne))});var Et=qe?Pe?Qm:Jm:Pe?Xr:lr,Lt=We?n:Et(u);return fn(Lt||u,function(St,Vt){Lt&&(Vt=St,St=u[Vt]),Bc(ye,Vt,Mi(St,f,y,Vt,u,ne))}),ye}function y9(u){var f=lr(u);return function(y){return V$(y,u,f)}}function V$(u,f,y){var D=y.length;if(u==null)return!D;for(u=B(u);D--;){var V=y[D],ne=f[V],ye=u[V];if(ye===n&&!(V in u)||!ne(ye))return!1}return!0}function N$(u,f,y){if(typeof u!="function")throw new te(s);return zc(function(){u.apply(n,y)},f)}function Vc(u,f,y,D){var V=-1,ne=Fa,ye=!0,Se=u.length,Pe=[],qe=f.length;if(!Se)return Pe;y&&(f=un(f,wr(y))),D?(ne=Gu,ye=!1):f.length>=i&&(ne=hn,ye=!1,f=new zo(f));e:for(;++V<Se;){var We=u[V],Ze=y==null?We:y(We);if(We=D||We!==0?We:0,ye&&Ze===Ze){for(var st=qe;st--;)if(f[st]===Ze)continue e;Pe.push(We)}else ne(f,Ze,D)||Pe.push(We)}return Pe}var Qs=hx(Ba),j$=hx(Om,!0);function b9(u,f){var y=!0;return Qs(u,function(D,V,ne){return y=!!f(D,V,ne),y}),y}function Od(u,f,y){for(var D=-1,V=u.length;++D<V;){var ne=u[D],ye=f(ne);if(ye!=null&&(Se===n?ye===ye&&!gi(ye):y(ye,Se)))var Se=ye,Pe=ne}return Pe}function $9(u,f,y,D){var V=u.length;for(y=kt(y),y<0&&(y=-y>V?0:V+y),D=D===n||D>V?V:kt(D),D<0&&(D+=V),D=y>D?0:iw(D);y<D;)u[y++]=f;return u}function K$(u,f){var y=[];return Qs(u,function(D,V,ne){f(D,V,ne)&&y.push(D)}),y}function mr(u,f,y,D,V){var ne=-1,ye=u.length;for(y||(y=uL),V||(V=[]);++ne<ye;){var Se=u[ne];f>0&&y(Se)?f>1?mr(Se,f-1,y,D,V):ra(V,Se):D||(V[V.length]=Se)}return V}var km=px(),U$=px(!0);function Ba(u,f){return u&&km(u,f,lr)}function Om(u,f){return u&&U$(u,f,lr)}function Id(u,f){return xr(f,function(y){return Ss(u[y])})}function Ho(u,f){f=to(f,u);for(var y=0,D=f.length;u!=null&&y<D;)u=u[Na(f[y++])];return y&&y==D?u:n}function q$(u,f,y){var D=f(u);return Mt(u)?D:ra(D,y(u))}function Rr(u){return u==null?u===n?et:$t:Ln&&Ln in B(u)?nL(u):mL(u)}function Im(u,f){return u>f}function x9(u,f){return u!=null&&Ve.call(u,f)}function w9(u,f){return u!=null&&f in B(u)}function C9(u,f,y){return u>=$n(f,y)&&u<Yt(f,y)}function Lm(u,f,y){for(var D=y?Gu:Fa,V=u[0].length,ne=u.length,ye=ne,Se=G(ne),Pe=1/0,qe=[];ye--;){var We=u[ye];ye&&f&&(We=un(We,wr(f))),Pe=$n(We.length,Pe),Se[ye]=!y&&(f||V>=120&&We.length>=120)?new zo(ye&&We):n}We=u[0];var Ze=-1,st=Se[0];e:for(;++Ze<V&&qe.length<Pe;){var vt=We[Ze],Et=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(st?hn(st,Et):D(qe,Et,y))){for(ye=ne;--ye;){var Lt=Se[ye];if(!(Lt?hn(Lt,Et):D(u[ye],Et,y)))continue e}st&&st.push(Et),qe.push(vt)}}return qe}function E9(u,f,y,D){return Ba(u,function(V,ne,ye){f(D,y(V),ne,ye)}),D}function Nc(u,f,y){f=to(f,u),u=Mx(u,f);var D=u==null?u:u[Na(Ri(f))];return D==null?n:On(D,u,y)}function z$(u){return Bn(u)&&Rr(u)==Le}function S9(u){return Bn(u)&&Rr(u)==Rt}function D9(u){return Bn(u)&&Rr(u)==Ge}function jc(u,f,y,D,V){return u===f?!0:u==null||f==null||!Bn(u)&&!Bn(f)?u!==u&&f!==f:A9(u,f,y,D,jc,V)}function A9(u,f,y,D,V,ne){var ye=Mt(u),Se=Mt(f),Pe=ye?Ye:Er(u),qe=Se?Ye:Er(f);Pe=Pe==Le?_t:Pe,qe=qe==Le?_t:qe;var We=Pe==_t,Ze=qe==_t,st=Pe==qe;if(st&&ro(u)){if(!ro(f))return!1;ye=!0,We=!1}if(st&&!We)return ne||(ne=new la),ye||sl(u)?Ex(u,f,y,D,V,ne):eL(u,f,Pe,y,D,V,ne);if(!(y&w)){var vt=We&&Ve.call(u,"__wrapped__"),Et=Ze&&Ve.call(f,"__wrapped__");if(vt||Et){var Lt=vt?u.value():u,St=Et?f.value():f;return ne||(ne=new la),V(Lt,St,y,D,ne)}}return st?(ne||(ne=new la),tL(u,f,y,D,V,ne)):!1}function T9(u){return Bn(u)&&Er(u)==ht}function Bm(u,f,y,D){var V=y.length,ne=V,ye=!D;if(u==null)return!ne;for(u=B(u);V--;){var Se=y[V];if(ye&&Se[2]?Se[1]!==u[Se[0]]:!(Se[0]in u))return!1}for(;++V<ne;){Se=y[V];var Pe=Se[0],qe=u[Pe],We=Se[1];if(ye&&Se[2]){if(qe===n&&!(Pe in u))return!1}else{var Ze=new la;if(D)var st=D(qe,We,Pe,u,f,Ze);if(!(st===n?jc(We,qe,w|x,D,Ze):st))return!1}}return!0}function W$(u){if(!Tn(u)||cL(u))return!1;var f=Ss(u)?X:Gn;return f.test(Yo(u))}function P9(u){return Bn(u)&&Rr(u)==be}function _9(u){return Bn(u)&&Er(u)==De}function M9(u){return Bn(u)&&Qd(u.length)&&!!Gt[Rr(u)]}function H$(u){return typeof u=="function"?u:u==null?Jr:typeof u=="object"?Mt(u)?Z$(u[0],u[1]):Y$(u):mw(u)}function Vm(u){if(!qc(u))return sa(u);var f=[];for(var y in B(u))Ve.call(u,y)&&y!="constructor"&&f.push(y);return f}function F9(u){if(!Tn(u))return pL(u);var f=qc(u),y=[];for(var D in u)D=="constructor"&&(f||!Ve.call(u,D))||y.push(D);return y}function Nm(u,f){return u<f}function G$(u,f){var y=-1,D=Zr(u)?G(u.length):[];return Qs(u,function(V,ne,ye){D[++y]=f(V,ne,ye)}),D}function Y$(u){var f=tg(u);return f.length==1&&f[0][2]?Px(f[0][0],f[0][1]):function(y){return y===u||Bm(y,u,f)}}function Z$(u,f){return rg(u)&&Tx(f)?Px(Na(u),f):function(y){var D=hg(y,u);return D===n&&D===f?pg(y,u):jc(f,D,w|x)}}function Ld(u,f,y,D,V){u!==f&&km(f,function(ne,ye){if(V||(V=new la),Tn(ne))R9(u,f,ye,y,Ld,D,V);else{var Se=D?D(ag(u,ye),ne,ye+"",u,f,V):n;Se===n&&(Se=ne),Fm(u,ye,Se)}},Xr)}function R9(u,f,y,D,V,ne,ye){var Se=ag(u,y),Pe=ag(f,y),qe=ye.get(Pe);if(qe){Fm(u,y,qe);return}var We=ne?ne(Se,Pe,y+"",u,f,ye):n,Ze=We===n;if(Ze){var st=Mt(Pe),vt=!st&&ro(Pe),Et=!st&&!vt&&sl(Pe);We=Pe,st||vt||Et?Mt(Se)?We=Se:Kn(Se)?We=Yr(Se):vt?(Ze=!1,We=ux(Pe,!0)):Et?(Ze=!1,We=lx(Pe,!0)):We=[]:Wc(Pe)||Zo(Pe)?(We=Se,Zo(Se)?We=aw(Se):(!Tn(Se)||Ss(Se))&&(We=Ax(Pe))):Ze=!1}Ze&&(ye.set(Pe,We),V(We,Pe,D,ne,ye),ye.delete(Pe)),Fm(u,y,We)}function X$(u,f){var y=u.length;if(y)return f+=f<0?y:0,Es(f,y)?u[f]:n}function J$(u,f,y){f.length?f=un(f,function(ne){return Mt(ne)?function(ye){return Ho(ye,ne.length===1?ne[0]:ne)}:ne}):f=[Jr];var D=-1;f=un(f,wr(wt()));var V=G$(u,function(ne,ye,Se){var Pe=un(f,function(qe){return qe(ne)});return{criteria:Pe,index:++D,value:ne}});return Uo(V,function(ne,ye){return W9(ne,ye,y)})}function k9(u,f){return Q$(u,f,function(y,D){return pg(u,D)})}function Q$(u,f,y){for(var D=-1,V=f.length,ne={};++D<V;){var ye=f[D],Se=Ho(u,ye);y(Se,ye)&&Kc(ne,to(ye,u),Se)}return ne}function O9(u){return function(f){return Ho(f,u)}}function jm(u,f,y,D){var V=D?Pd:vs,ne=-1,ye=f.length,Se=u;for(u===f&&(f=Yr(f)),y&&(Se=un(u,wr(y)));++ne<ye;)for(var Pe=0,qe=f[ne],We=y?y(qe):qe;(Pe=V(Se,We,Pe,D))>-1;)Se!==u&&zt.call(Se,Pe,1),zt.call(u,Pe,1);return u}function ex(u,f){for(var y=u?f.length:0,D=y-1;y--;){var V=f[y];if(y==D||V!==ne){var ne=V;Es(V)?zt.call(u,V,1):zm(u,V)}}return u}function Km(u,f){return u+Gr(oa()*(f-u+1))}function I9(u,f,y,D){for(var V=-1,ne=Yt(ln((f-u)/(y||1)),0),ye=G(ne);ne--;)ye[D?ne:++V]=u,u+=y;return ye}function Um(u,f){var y="";if(!u||f<1||f>K)return y;do f%2&&(y+=u),f=Gr(f/2),f&&(u+=u);while(f);return y}function Bt(u,f){return sg(_x(u,f,Jr),u+"")}function L9(u){return L$(ol(u))}function B9(u,f){var y=ol(u);return Hd(y,Wo(f,0,y.length))}function Kc(u,f,y,D){if(!Tn(u))return u;f=to(f,u);for(var V=-1,ne=f.length,ye=ne-1,Se=u;Se!=null&&++V<ne;){var Pe=Na(f[V]),qe=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(V!=ye){var We=Se[Pe];qe=D?D(We,Pe,Se):n,qe===n&&(qe=Tn(We)?We:Es(f[V+1])?[]:{})}Bc(Se,Pe,qe),Se=Se[Pe]}return u}var tx=Md?function(u,f){return Md.set(u,f),u}:Jr,V9=Nn?function(u,f){return Nn(u,"toString",{configurable:!0,enumerable:!1,value:gg(f),writable:!0})}:Jr;function N9(u){return Hd(ol(u))}function Fi(u,f,y){var D=-1,V=u.length;f<0&&(f=-f>V?0:V+f),y=y>V?V:y,y<0&&(y+=V),V=f>y?0:y-f>>>0,f>>>=0;for(var ne=G(V);++D<V;)ne[D]=u[D+f];return ne}function j9(u,f){var y;return Qs(u,function(D,V,ne){return y=f(D,V,ne),!y}),!!y}function Bd(u,f,y){var D=0,V=u==null?D:u.length;if(typeof f=="number"&&f===f&&V<=Te){for(;D<V;){var ne=D+V>>>1,ye=u[ne];ye!==null&&!gi(ye)&&(y?ye<=f:ye<f)?D=ne+1:V=ne}return V}return qm(u,f,Jr,y)}function qm(u,f,y,D){var V=0,ne=u==null?0:u.length;if(ne===0)return 0;f=y(f);for(var ye=f!==f,Se=f===null,Pe=gi(f),qe=f===n;V<ne;){var We=Gr((V+ne)/2),Ze=y(u[We]),st=Ze!==n,vt=Ze===null,Et=Ze===Ze,Lt=gi(Ze);if(ye)var St=D||Et;else qe?St=Et&&(D||st):Se?St=Et&&st&&(D||!vt):Pe?St=Et&&st&&!vt&&(D||!Lt):vt||Lt?St=!1:St=D?Ze<=f:Ze<f;St?V=We+1:ne=We}return $n(ne,oe)}function nx(u,f){for(var y=-1,D=u.length,V=0,ne=[];++y<D;){var ye=u[y],Se=f?f(ye):ye;if(!y||!ca(Se,Pe)){var Pe=Se;ne[V++]=ye===0?0:ye}}return ne}function rx(u){return typeof u=="number"?u:gi(u)?k:+u}function mi(u){if(typeof u=="string")return u;if(Mt(u))return un(u,mi)+"";if(gi(u))return O$?O$.call(u):"";var f=u+"";return f=="0"&&1/u==-O?"-0":f}function eo(u,f,y){var D=-1,V=Fa,ne=u.length,ye=!0,Se=[],Pe=Se;if(y)ye=!1,V=Gu;else if(ne>=i){var qe=f?null:J9(u);if(qe)return Xs(qe);ye=!1,V=hn,Pe=new zo}else Pe=f?[]:Se;e:for(;++D<ne;){var We=u[D],Ze=f?f(We):We;if(We=y||We!==0?We:0,ye&&Ze===Ze){for(var st=Pe.length;st--;)if(Pe[st]===Ze)continue e;f&&Pe.push(Ze),Se.push(We)}else V(Pe,Ze,y)||(Pe!==Se&&Pe.push(Ze),Se.push(We))}return Se}function zm(u,f){return f=to(f,u),u=Mx(u,f),u==null||delete u[Na(Ri(f))]}function ix(u,f,y,D){return Kc(u,f,y(Ho(u,f)),D)}function Vd(u,f,y,D){for(var V=u.length,ne=D?V:-1;(D?ne--:++ne<V)&&f(u[ne],ne,u););return y?Fi(u,D?0:ne,D?ne+1:V):Fi(u,D?ne+1:0,D?V:ne)}function ax(u,f){var y=u;return y instanceof Kt&&(y=y.value()),Yu(f,function(D,V){return V.func.apply(V.thisArg,ra([D],V.args))},y)}function Wm(u,f,y){var D=u.length;if(D<2)return D?eo(u[0]):[];for(var V=-1,ne=G(D);++V<D;)for(var ye=u[V],Se=-1;++Se<D;)Se!=V&&(ne[V]=Vc(ne[V]||ye,u[Se],f,y));return eo(mr(ne,1),f,y)}function sx(u,f,y){for(var D=-1,V=u.length,ne=f.length,ye={};++D<V;){var Se=D<ne?f[D]:n;y(ye,u[D],Se)}return ye}function Hm(u){return Kn(u)?u:[]}function Gm(u){return typeof u=="function"?u:Jr}function to(u,f){return Mt(u)?u:rg(u,f)?[u]:Ox(an(u))}var K9=Bt;function no(u,f,y){var D=u.length;return y=y===n?D:y,!f&&y>=D?u:Fi(u,f,y)}var ox=jn||function(u){return En.clearTimeout(u)};function ux(u,f){if(f)return u.slice();var y=u.length,D=lt?lt(y):new u.constructor(y);return u.copy(D),D}function Ym(u){var f=new u.constructor(u.byteLength);return new ke(f).set(new ke(u)),f}function U9(u,f){var y=f?Ym(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function q9(u){var f=new u.constructor(u.source,cn.exec(u));return f.lastIndex=u.lastIndex,f}function z9(u){return Lc?B(Lc.call(u)):{}}function lx(u,f){var y=f?Ym(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function cx(u,f){if(u!==f){var y=u!==n,D=u===null,V=u===u,ne=gi(u),ye=f!==n,Se=f===null,Pe=f===f,qe=gi(f);if(!Se&&!qe&&!ne&&u>f||ne&&ye&&Pe&&!Se&&!qe||D&&ye&&Pe||!y&&Pe||!V)return 1;if(!D&&!ne&&!qe&&u<f||qe&&y&&V&&!D&&!ne||Se&&y&&V||!ye&&V||!Pe)return-1}return 0}function W9(u,f,y){for(var D=-1,V=u.criteria,ne=f.criteria,ye=V.length,Se=y.length;++D<ye;){var Pe=cx(V[D],ne[D]);if(Pe){if(D>=Se)return Pe;var qe=y[D];return Pe*(qe=="desc"?-1:1)}}return u.index-f.index}function fx(u,f,y,D){for(var V=-1,ne=u.length,ye=y.length,Se=-1,Pe=f.length,qe=Yt(ne-ye,0),We=G(Pe+qe),Ze=!D;++Se<Pe;)We[Se]=f[Se];for(;++V<ye;)(Ze||V<ne)&&(We[y[V]]=u[V]);for(;qe--;)We[Se++]=u[V++];return We}function dx(u,f,y,D){for(var V=-1,ne=u.length,ye=-1,Se=y.length,Pe=-1,qe=f.length,We=Yt(ne-Se,0),Ze=G(We+qe),st=!D;++V<We;)Ze[V]=u[V];for(var vt=V;++Pe<qe;)Ze[vt+Pe]=f[Pe];for(;++ye<Se;)(st||V<ne)&&(Ze[vt+y[ye]]=u[V++]);return Ze}function Yr(u,f){var y=-1,D=u.length;for(f||(f=G(D));++y<D;)f[y]=u[y];return f}function Va(u,f,y,D){var V=!y;y||(y={});for(var ne=-1,ye=f.length;++ne<ye;){var Se=f[ne],Pe=D?D(y[Se],u[Se],Se,y,u):n;Pe===n&&(Pe=u[Se]),V?xs(y,Se,Pe):Bc(y,Se,Pe)}return y}function H9(u,f){return Va(u,ng(u),f)}function G9(u,f){return Va(u,Sx(u),f)}function Nd(u,f){return function(y,D){var V=Mt(y)?Ma:g9,ne=f?f():{};return V(y,u,wt(D,2),ne)}}function rl(u){return Bt(function(f,y){var D=-1,V=y.length,ne=V>1?y[V-1]:n,ye=V>2?y[2]:n;for(ne=u.length>3&&typeof ne=="function"?(V--,ne):n,ye&&kr(y[0],y[1],ye)&&(ne=V<3?n:ne,V=1),f=B(f);++D<V;){var Se=y[D];Se&&u(f,Se,D,ne)}return f})}function hx(u,f){return function(y,D){if(y==null)return y;if(!Zr(y))return u(y,D);for(var V=y.length,ne=f?V:-1,ye=B(y);(f?ne--:++ne<V)&&D(ye[ne],ne,ye)!==!1;);return y}}function px(u){return function(f,y,D){for(var V=-1,ne=B(f),ye=D(f),Se=ye.length;Se--;){var Pe=ye[u?Se:++V];if(y(ne[Pe],Pe,ne)===!1)break}return f}}function Y9(u,f,y){var D=f&A,V=Uc(u);function ne(){var ye=this&&this!==En&&this instanceof ne?V:u;return ye.apply(D?y:this,arguments)}return ne}function mx(u){return function(f){f=an(f);var y=Cr(f)?T(f):n,D=y?y[0]:f.charAt(0),V=y?no(y,1).join(""):f.slice(1);return D[u]()+V}}function il(u){return function(f){return Yu(hw(dw(f).replace(ta,"")),u,"")}}function Uc(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=nl(u.prototype),D=u.apply(y,f);return Tn(D)?D:y}}function Z9(u,f,y){var D=Uc(u);function V(){for(var ne=arguments.length,ye=G(ne),Se=ne,Pe=al(V);Se--;)ye[Se]=arguments[Se];var qe=ne<3&&ye[0]!==Pe&&ye[ne-1]!==Pe?[]:Hr(ye,Pe);if(ne-=qe.length,ne<y)return $x(u,f,jd,V.placeholder,n,ye,qe,n,n,y-ne);var We=this&&this!==En&&this instanceof V?D:u;return On(We,this,ye)}return V}function gx(u){return function(f,y,D){var V=B(f);if(!Zr(f)){var ne=wt(y,3);f=lr(f),y=function(Se){return ne(V[Se],Se,V)}}var ye=u(f,y,D);return ye>-1?V[ne?f[ye]:ye]:n}}function vx(u){return Cs(function(f){var y=f.length,D=y,V=_i.prototype.thru;for(u&&f.reverse();D--;){var ne=f[D];if(typeof ne!="function")throw new te(s);if(V&&!ye&&zd(ne)=="wrapper")var ye=new _i([],!0)}for(D=ye?D:y;++D<y;){ne=f[D];var Se=zd(ne),Pe=Se=="wrapper"?eg(ne):n;Pe&&ig(Pe[0])&&Pe[1]==(z|S|_|re)&&!Pe[4].length&&Pe[9]==1?ye=ye[zd(Pe[0])].apply(ye,Pe[3]):ye=ne.length==1&&ig(ne)?ye[Se]():ye.thru(ne)}return function(){var qe=arguments,We=qe[0];if(ye&&qe.length==1&&Mt(We))return ye.plant(We).value();for(var Ze=0,st=y?f[Ze].apply(this,qe):We;++Ze<y;)st=f[Ze].call(this,st);return st}})}function jd(u,f,y,D,V,ne,ye,Se,Pe,qe){var We=f&z,Ze=f&A,st=f&E,vt=f&(S|M),Et=f&ge,Lt=st?n:Uc(u);function St(){for(var Vt=arguments.length,Wt=G(Vt),vi=Vt;vi--;)Wt[vi]=arguments[vi];if(vt)var Or=al(St),yi=Pm(Wt,Or);if(D&&(Wt=fx(Wt,D,V,vt)),ne&&(Wt=dx(Wt,ne,ye,vt)),Vt-=yi,vt&&Vt<qe){var Un=Hr(Wt,Or);return $x(u,f,jd,St.placeholder,y,Wt,Un,Se,Pe,qe-Vt)}var fa=Ze?y:this,As=st?fa[u]:u;return Vt=Wt.length,Se?Wt=gL(Wt,Se):Et&&Vt>1&&Wt.reverse(),We&&Pe<Vt&&(Wt.length=Pe),this&&this!==En&&this instanceof St&&(As=Lt||Uc(As)),As.apply(fa,Wt)}return St}function yx(u,f){return function(y,D){return E9(y,u,f(D),{})}}function Kd(u,f){return function(y,D){var V;if(y===n&&D===n)return f;if(y!==n&&(V=y),D!==n){if(V===n)return D;typeof y=="string"||typeof D=="string"?(y=mi(y),D=mi(D)):(y=rx(y),D=rx(D)),V=u(y,D)}return V}}function Zm(u){return Cs(function(f){return f=un(f,wr(wt())),Bt(function(y){var D=this;return u(f,function(V){return On(V,D,y)})})})}function Ud(u,f){f=f===n?" ":mi(f);var y=f.length;if(y<2)return y?Um(f,u):f;var D=Um(f,ln(u/$(f)));return Cr(f)?no(T(D),0,u).join(""):D.slice(0,u)}function X9(u,f,y,D){var V=f&A,ne=Uc(u);function ye(){for(var Se=-1,Pe=arguments.length,qe=-1,We=D.length,Ze=G(We+Pe),st=this&&this!==En&&this instanceof ye?ne:u;++qe<We;)Ze[qe]=D[qe];for(;Pe--;)Ze[qe++]=arguments[++Se];return On(st,V?y:this,Ze)}return ye}function bx(u){return function(f,y,D){return D&&typeof D!="number"&&kr(f,y,D)&&(y=D=n),f=Ds(f),y===n?(y=f,f=0):y=Ds(y),D=D===n?f<y?1:-1:Ds(D),I9(f,y,D,u)}}function qd(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=ki(f),y=ki(y)),u(f,y)}}function $x(u,f,y,D,V,ne,ye,Se,Pe,qe){var We=f&S,Ze=We?ye:n,st=We?n:ye,vt=We?ne:n,Et=We?n:ne;f|=We?_:R,f&=~(We?R:_),f&C||(f&=-4);var Lt=[u,f,V,vt,Ze,Et,st,Se,Pe,qe],St=y.apply(n,Lt);return ig(u)&&Fx(St,Lt),St.placeholder=D,Rx(St,u,f)}function Xm(u){var f=Y[u];return function(y,D){if(y=ki(y),D=D==null?0:$n(kt(D),292),D&&di(y)){var V=(an(y)+"e").split("e"),ne=f(V[0]+"e"+(+V[1]+D));return V=(an(ne)+"e").split("e"),+(V[0]+"e"+(+V[1]-D))}return f(y)}}var J9=el&&1/Xs(new el([,-0]))[1]==O?function(u){return new el(u)}:bg;function xx(u){return function(f){var y=Er(f);return y==ht?In(f):y==De?c(f):Tm(f,u(f))}}function ws(u,f,y,D,V,ne,ye,Se){var Pe=f&E;if(!Pe&&typeof u!="function")throw new te(s);var qe=D?D.length:0;if(qe||(f&=-97,D=V=n),ye=ye===n?ye:Yt(kt(ye),0),Se=Se===n?Se:kt(Se),qe-=V?V.length:0,f&R){var We=D,Ze=V;D=V=n}var st=Pe?n:eg(u),vt=[u,f,y,D,V,We,Ze,ne,ye,Se];if(st&&hL(vt,st),u=vt[0],f=vt[1],y=vt[2],D=vt[3],V=vt[4],Se=vt[9]=vt[9]===n?Pe?0:u.length:Yt(vt[9]-qe,0),!Se&&f&(S|M)&&(f&=-25),!f||f==A)var Et=Y9(u,f,y);else f==S||f==M?Et=Z9(u,f,Se):(f==_||f==(A|_))&&!V.length?Et=X9(u,f,y,D):Et=jd.apply(n,vt);var Lt=st?tx:Fx;return Rx(Lt(Et,vt),u,f)}function wx(u,f,y,D){return u===n||ca(u,Oe[y])&&!Ve.call(D,y)?f:u}function Cx(u,f,y,D,V,ne){return Tn(u)&&Tn(f)&&(ne.set(f,u),Ld(u,f,n,Cx,ne),ne.delete(f)),u}function Q9(u){return Wc(u)?n:u}function Ex(u,f,y,D,V,ne){var ye=y&w,Se=u.length,Pe=f.length;if(Se!=Pe&&!(ye&&Pe>Se))return!1;var qe=ne.get(u),We=ne.get(f);if(qe&&We)return qe==f&&We==u;var Ze=-1,st=!0,vt=y&x?new zo:n;for(ne.set(u,f),ne.set(f,u);++Ze<Se;){var Et=u[Ze],Lt=f[Ze];if(D)var St=ye?D(Lt,Et,Ze,f,u,ne):D(Et,Lt,Ze,u,f,ne);if(St!==n){if(St)continue;st=!1;break}if(vt){if(!Ra(f,function(Vt,Wt){if(!hn(vt,Wt)&&(Et===Vt||V(Et,Vt,y,D,ne)))return vt.push(Wt)})){st=!1;break}}else if(!(Et===Lt||V(Et,Lt,y,D,ne))){st=!1;break}}return ne.delete(u),ne.delete(f),st}function eL(u,f,y,D,V,ne,ye){switch(y){case xt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Rt:return!(u.byteLength!=f.byteLength||!ne(new ke(u),new ke(f)));case Ue:case Ge:case Ht:return ca(+u,+f);case Ne:return u.name==f.name&&u.message==f.message;case be:case _e:return u==f+"";case ht:var Se=In;case De:var Pe=D&w;if(Se||(Se=Xs),u.size!=f.size&&!Pe)return!1;var qe=ye.get(u);if(qe)return qe==f;D|=x,ye.set(u,f);var We=Ex(Se(u),Se(f),D,V,ne,ye);return ye.delete(u),We;case Xe:if(Lc)return Lc.call(u)==Lc.call(f)}return!1}function tL(u,f,y,D,V,ne){var ye=y&w,Se=Jm(u),Pe=Se.length,qe=Jm(f),We=qe.length;if(Pe!=We&&!ye)return!1;for(var Ze=Pe;Ze--;){var st=Se[Ze];if(!(ye?st in f:Ve.call(f,st)))return!1}var vt=ne.get(u),Et=ne.get(f);if(vt&&Et)return vt==f&&Et==u;var Lt=!0;ne.set(u,f),ne.set(f,u);for(var St=ye;++Ze<Pe;){st=Se[Ze];var Vt=u[st],Wt=f[st];if(D)var vi=ye?D(Wt,Vt,st,f,u,ne):D(Vt,Wt,st,u,f,ne);if(!(vi===n?Vt===Wt||V(Vt,Wt,y,D,ne):vi)){Lt=!1;break}St||(St=st=="constructor")}if(Lt&&!St){var Or=u.constructor,yi=f.constructor;Or!=yi&&"constructor"in u&&"constructor"in f&&!(typeof Or=="function"&&Or instanceof Or&&typeof yi=="function"&&yi instanceof yi)&&(Lt=!1)}return ne.delete(u),ne.delete(f),Lt}function Cs(u){return sg(_x(u,n,Vx),u+"")}function Jm(u){return q$(u,lr,ng)}function Qm(u){return q$(u,Xr,Sx)}var eg=Md?function(u){return Md.get(u)}:bg;function zd(u){for(var f=u.name+"",y=tl[f],D=Ve.call(tl,f)?y.length:0;D--;){var V=y[D],ne=V.func;if(ne==null||ne==u)return V.name}return f}function al(u){var f=Ve.call(Z,"placeholder")?Z:u;return f.placeholder}function wt(){var u=Z.iteratee||vg;return u=u===vg?H$:u,arguments.length?u(arguments[0],arguments[1]):u}function Wd(u,f){var y=u.__data__;return lL(f)?y[typeof f=="string"?"string":"hash"]:y.map}function tg(u){for(var f=lr(u),y=f.length;y--;){var D=f[y],V=u[D];f[y]=[D,V,Tx(V)]}return f}function Go(u,f){var y=Mm(u,f);return W$(y)?y:n}function nL(u){var f=Ve.call(u,Ln),y=u[Ln];try{u[Ln]=n;var D=!0}catch{}var V=Be.call(u);return D&&(f?u[Ln]=y:delete u[Ln]),V}var ng=Pi?function(u){return u==null?[]:(u=B(u),xr(Pi(u),function(f){return bn.call(u,f)}))}:$g,Sx=Pi?function(u){for(var f=[];u;)ra(f,ng(u)),u=At(u);return f}:$g,Er=Rr;(ua&&Er(new ua(new ArrayBuffer(1)))!=xt||La&&Er(new La)!=ht||Js&&Er(Js.resolve())!=qr||el&&Er(new el)!=De||Oc&&Er(new Oc)!=Je)&&(Er=function(u){var f=Rr(u),y=f==_t?u.constructor:n,D=y?Yo(y):"";if(D)switch(D){case BI:return xt;case VI:return ht;case NI:return qr;case jI:return De;case KI:return Je}return f});function rL(u,f,y){for(var D=-1,V=y.length;++D<V;){var ne=y[D],ye=ne.size;switch(ne.type){case"drop":u+=ye;break;case"dropRight":f-=ye;break;case"take":f=$n(f,u+ye);break;case"takeRight":u=Yt(u,f-ye);break}}return{start:u,end:f}}function iL(u){var f=u.match($r);return f?f[1].split(Bu):[]}function Dx(u,f,y){f=to(f,u);for(var D=-1,V=f.length,ne=!1;++D<V;){var ye=Na(f[D]);if(!(ne=u!=null&&y(u,ye)))break;u=u[ye]}return ne||++D!=V?ne:(V=u==null?0:u.length,!!V&&Qd(V)&&Es(ye,V)&&(Mt(u)||Zo(u)))}function aL(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Ve.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function Ax(u){return typeof u.constructor=="function"&&!qc(u)?nl(At(u)):{}}function sL(u,f,y){var D=u.constructor;switch(f){case Rt:return Ym(u);case Ue:case Ge:return new D(+u);case xt:return U9(u,y);case vn:case br:case Ut:case Pt:case It:case qt:case fr:case zr:case si:return lx(u,y);case ht:return new D;case Ht:case _e:return new D(u);case be:return q9(u);case De:return new D;case Xe:return z9(u)}}function oL(u,f){var y=f.length;if(!y)return u;var D=y-1;return f[D]=(y>1?"& ":"")+f[D],f=f.join(y>2?", ":" "),u.replace(Lu,`{
|
|
42
|
+
/* [wrapped with `+f+`] */
|
|
43
|
+
`)}function uL(u){return Mt(u)||Zo(u)||!!(ur&&u&&u[ur])}function Es(u,f){var y=typeof u;return f=f??K,!!f&&(y=="number"||y!="symbol"&&Aa.test(u))&&u>-1&&u%1==0&&u<f}function kr(u,f,y){if(!Tn(y))return!1;var D=typeof f;return(D=="number"?Zr(y)&&Es(f,y.length):D=="string"&&f in y)?ca(y[f],u):!1}function rg(u,f){if(Mt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||gi(u)?!0:Iu.test(u)||!Ao.test(u)||f!=null&&u in B(f)}function lL(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function ig(u){var f=zd(u),y=Z[f];if(typeof y!="function"||!(f in Kt.prototype))return!1;if(u===y)return!0;var D=eg(y);return!!D&&u===D[0]}function cL(u){return!!ct&&ct in u}var fL=nt?Ss:xg;function qc(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Oe;return u===y}function Tx(u){return u===u&&!Tn(u)}function Px(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in B(y))}}function dL(u){var f=Xd(u,function(D){return y.size===d&&y.clear(),D}),y=f.cache;return f}function hL(u,f){var y=u[1],D=f[1],V=y|D,ne=V<(A|E|z),ye=D==z&&y==S||D==z&&y==re&&u[7].length<=f[8]||D==(z|re)&&f[7].length<=f[8]&&y==S;if(!(ne||ye))return u;D&A&&(u[2]=f[2],V|=y&A?0:C);var Se=f[3];if(Se){var Pe=u[3];u[3]=Pe?fx(Pe,Se,f[4]):Se,u[4]=Pe?Hr(u[3],h):f[4]}return Se=f[5],Se&&(Pe=u[5],u[5]=Pe?dx(Pe,Se,f[6]):Se,u[6]=Pe?Hr(u[5],h):f[6]),Se=f[7],Se&&(u[7]=Se),D&z&&(u[8]=u[8]==null?f[8]:$n(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=V,u}function pL(u){var f=[];if(u!=null)for(var y in B(u))f.push(y);return f}function mL(u){return Be.call(u)}function _x(u,f,y){return f=Yt(f===n?u.length-1:f,0),function(){for(var D=arguments,V=-1,ne=Yt(D.length-f,0),ye=G(ne);++V<ne;)ye[V]=D[f+V];V=-1;for(var Se=G(f+1);++V<f;)Se[V]=D[V];return Se[f]=y(ye),On(u,this,Se)}}function Mx(u,f){return f.length<2?u:Ho(u,Fi(f,0,-1))}function gL(u,f){for(var y=u.length,D=$n(f.length,y),V=Yr(u);D--;){var ne=f[D];u[D]=Es(ne,y)?V[ne]:n}return u}function ag(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var Fx=kx(tx),zc=ft||function(u,f){return En.setTimeout(u,f)},sg=kx(V9);function Rx(u,f,y){var D=f+"";return sg(u,oL(D,vL(iL(D),y)))}function kx(u){var f=0,y=0;return function(){var D=Ia(),V=we-(D-y);if(y=D,V>0){if(++f>=Ce)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Hd(u,f){var y=-1,D=u.length,V=D-1;for(f=f===n?D:f;++y<f;){var ne=Km(y,V),ye=u[ne];u[ne]=u[y],u[y]=ye}return u.length=f,u}var Ox=dL(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(Ji,function(y,D,V,ne){f.push(V?ne.replace(Wr,"$1"):D||y)}),f});function Na(u){if(typeof u=="string"||gi(u))return u;var f=u+"";return f=="0"&&1/u==-O?"-0":f}function Yo(u){if(u!=null){try{return tt.call(u)}catch{}try{return u+""}catch{}}return""}function vL(u,f){return fn(Me,function(y){var D="_."+y[0];f&y[1]&&!Fa(u,D)&&u.push(D)}),u.sort()}function Ix(u){if(u instanceof Kt)return u.clone();var f=new _i(u.__wrapped__,u.__chain__);return f.__actions__=Yr(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function yL(u,f,y){(y?kr(u,f,y):f===n)?f=1:f=Yt(kt(f),0);var D=u==null?0:u.length;if(!D||f<1)return[];for(var V=0,ne=0,ye=G(ln(D/f));V<D;)ye[ne++]=Fi(u,V,V+=f);return ye}function bL(u){for(var f=-1,y=u==null?0:u.length,D=0,V=[];++f<y;){var ne=u[f];ne&&(V[D++]=ne)}return V}function $L(){var u=arguments.length;if(!u)return[];for(var f=G(u-1),y=arguments[0],D=u;D--;)f[D-1]=arguments[D];return ra(Mt(y)?Yr(y):[y],mr(f,1))}var xL=Bt(function(u,f){return Kn(u)?Vc(u,mr(f,1,Kn,!0)):[]}),wL=Bt(function(u,f){var y=Ri(f);return Kn(y)&&(y=n),Kn(u)?Vc(u,mr(f,1,Kn,!0),wt(y,2)):[]}),CL=Bt(function(u,f){var y=Ri(f);return Kn(y)&&(y=n),Kn(u)?Vc(u,mr(f,1,Kn,!0),n,y):[]});function EL(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),Fi(u,f<0?0:f,D)):[]}function SL(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),f=D-f,Fi(u,0,f<0?0:f)):[]}function DL(u,f){return u&&u.length?Vd(u,wt(f,3),!0,!0):[]}function AL(u,f){return u&&u.length?Vd(u,wt(f,3),!0):[]}function TL(u,f,y,D){var V=u==null?0:u.length;return V?(y&&typeof y!="number"&&kr(u,f,y)&&(y=0,D=V),$9(u,f,y,D)):[]}function Lx(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),jo(u,wt(f,3),V)}function Bx(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=D-1;return y!==n&&(V=kt(y),V=y<0?Yt(D+V,0):$n(V,D-1)),jo(u,wt(f,3),V,!0)}function Vx(u){var f=u==null?0:u.length;return f?mr(u,1):[]}function PL(u){var f=u==null?0:u.length;return f?mr(u,O):[]}function _L(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:kt(f),mr(u,f)):[]}function ML(u){for(var f=-1,y=u==null?0:u.length,D={};++f<y;){var V=u[f];D[V[0]]=V[1]}return D}function Nx(u){return u&&u.length?u[0]:n}function FL(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),vs(u,f,V)}function RL(u){var f=u==null?0:u.length;return f?Fi(u,0,-1):[]}var kL=Bt(function(u){var f=un(u,Hm);return f.length&&f[0]===u[0]?Lm(f):[]}),OL=Bt(function(u){var f=Ri(u),y=un(u,Hm);return f===Ri(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Lm(y,wt(f,2)):[]}),IL=Bt(function(u){var f=Ri(u),y=un(u,Hm);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Lm(y,n,f):[]});function LL(u,f){return u==null?"":aa.call(u,f)}function Ri(u){var f=u==null?0:u.length;return f?u[f-1]:n}function BL(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var V=D;return y!==n&&(V=kt(y),V=V<0?Yt(D+V,0):$n(V,D-1)),f===f?v(u,f,V):jo(u,Mc,V,!0)}function VL(u,f){return u&&u.length?X$(u,kt(f)):n}var NL=Bt(jx);function jx(u,f){return u&&u.length&&f&&f.length?jm(u,f):u}function jL(u,f,y){return u&&u.length&&f&&f.length?jm(u,f,wt(y,2)):u}function KL(u,f,y){return u&&u.length&&f&&f.length?jm(u,f,n,y):u}var UL=Cs(function(u,f){var y=u==null?0:u.length,D=Rm(u,f);return ex(u,un(f,function(V){return Es(V,y)?+V:V}).sort(cx)),D});function qL(u,f){var y=[];if(!(u&&u.length))return y;var D=-1,V=[],ne=u.length;for(f=wt(f,3);++D<ne;){var ye=u[D];f(ye,D,u)&&(y.push(ye),V.push(D))}return ex(u,V),y}function og(u){return u==null?u:pi.call(u)}function zL(u,f,y){var D=u==null?0:u.length;return D?(y&&typeof y!="number"&&kr(u,f,y)?(f=0,y=D):(f=f==null?0:kt(f),y=y===n?D:kt(y)),Fi(u,f,y)):[]}function WL(u,f){return Bd(u,f)}function HL(u,f,y){return qm(u,f,wt(y,2))}function GL(u,f){var y=u==null?0:u.length;if(y){var D=Bd(u,f);if(D<y&&ca(u[D],f))return D}return-1}function YL(u,f){return Bd(u,f,!0)}function ZL(u,f,y){return qm(u,f,wt(y,2),!0)}function XL(u,f){var y=u==null?0:u.length;if(y){var D=Bd(u,f,!0)-1;if(ca(u[D],f))return D}return-1}function JL(u){return u&&u.length?nx(u):[]}function QL(u,f){return u&&u.length?nx(u,wt(f,2)):[]}function e8(u){var f=u==null?0:u.length;return f?Fi(u,1,f):[]}function t8(u,f,y){return u&&u.length?(f=y||f===n?1:kt(f),Fi(u,0,f<0?0:f)):[]}function n8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:kt(f),f=D-f,Fi(u,f<0?0:f,D)):[]}function r8(u,f){return u&&u.length?Vd(u,wt(f,3),!1,!0):[]}function i8(u,f){return u&&u.length?Vd(u,wt(f,3)):[]}var a8=Bt(function(u){return eo(mr(u,1,Kn,!0))}),s8=Bt(function(u){var f=Ri(u);return Kn(f)&&(f=n),eo(mr(u,1,Kn,!0),wt(f,2))}),o8=Bt(function(u){var f=Ri(u);return f=typeof f=="function"?f:n,eo(mr(u,1,Kn,!0),n,f)});function u8(u){return u&&u.length?eo(u):[]}function l8(u,f){return u&&u.length?eo(u,wt(f,2)):[]}function c8(u,f){return f=typeof f=="function"?f:n,u&&u.length?eo(u,n,f):[]}function ug(u){if(!(u&&u.length))return[];var f=0;return u=xr(u,function(y){if(Kn(y))return f=Yt(y.length,f),!0}),Ju(f,function(y){return un(u,Zu(y))})}function Kx(u,f){if(!(u&&u.length))return[];var y=ug(u);return f==null?y:un(y,function(D){return On(f,n,D)})}var f8=Bt(function(u,f){return Kn(u)?Vc(u,f):[]}),d8=Bt(function(u){return Wm(xr(u,Kn))}),h8=Bt(function(u){var f=Ri(u);return Kn(f)&&(f=n),Wm(xr(u,Kn),wt(f,2))}),p8=Bt(function(u){var f=Ri(u);return f=typeof f=="function"?f:n,Wm(xr(u,Kn),n,f)}),m8=Bt(ug);function g8(u,f){return sx(u||[],f||[],Bc)}function v8(u,f){return sx(u||[],f||[],Kc)}var y8=Bt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,Kx(u,y)});function Ux(u){var f=Z(u);return f.__chain__=!0,f}function b8(u,f){return f(u),u}function Gd(u,f){return f(u)}var $8=Cs(function(u){var f=u.length,y=f?u[0]:0,D=this.__wrapped__,V=function(ne){return Rm(ne,u)};return f>1||this.__actions__.length||!(D instanceof Kt)||!Es(y)?this.thru(V):(D=D.slice(y,+y+(f?1:0)),D.__actions__.push({func:Gd,args:[V],thisArg:n}),new _i(D,this.__chain__).thru(function(ne){return f&&!ne.length&&ne.push(n),ne}))});function x8(){return Ux(this)}function w8(){return new _i(this.value(),this.__chain__)}function C8(){this.__values__===n&&(this.__values__=rw(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function E8(){return this}function S8(u){for(var f,y=this;y instanceof Rd;){var D=Ix(y);D.__index__=0,D.__values__=n,f?V.__wrapped__=D:f=D;var V=D;y=y.__wrapped__}return V.__wrapped__=u,f}function D8(){var u=this.__wrapped__;if(u instanceof Kt){var f=u;return this.__actions__.length&&(f=new Kt(this)),f=f.reverse(),f.__actions__.push({func:Gd,args:[og],thisArg:n}),new _i(f,this.__chain__)}return this.thru(og)}function A8(){return ax(this.__wrapped__,this.__actions__)}var T8=Nd(function(u,f,y){Ve.call(u,y)?++u[y]:xs(u,y,1)});function P8(u,f,y){var D=Mt(u)?gs:b9;return y&&kr(u,f,y)&&(f=n),D(u,wt(f,3))}function _8(u,f){var y=Mt(u)?xr:K$;return y(u,wt(f,3))}var M8=gx(Lx),F8=gx(Bx);function R8(u,f){return mr(Yd(u,f),1)}function k8(u,f){return mr(Yd(u,f),O)}function O8(u,f,y){return y=y===n?1:kt(y),mr(Yd(u,f),y)}function qx(u,f){var y=Mt(u)?fn:Qs;return y(u,wt(f,3))}function zx(u,f){var y=Mt(u)?sr:j$;return y(u,wt(f,3))}var I8=Nd(function(u,f,y){Ve.call(u,y)?u[y].push(f):xs(u,y,[f])});function L8(u,f,y,D){u=Zr(u)?u:ol(u),y=y&&!D?kt(y):0;var V=u.length;return y<0&&(y=Yt(V+y,0)),eh(u)?y<=V&&u.indexOf(f,y)>-1:!!V&&vs(u,f,y)>-1}var B8=Bt(function(u,f,y){var D=-1,V=typeof f=="function",ne=Zr(u)?G(u.length):[];return Qs(u,function(ye){ne[++D]=V?On(f,ye,y):Nc(ye,f,y)}),ne}),V8=Nd(function(u,f,y){xs(u,y,f)});function Yd(u,f){var y=Mt(u)?un:G$;return y(u,wt(f,3))}function N8(u,f,y,D){return u==null?[]:(Mt(f)||(f=f==null?[]:[f]),y=D?n:y,Mt(y)||(y=y==null?[]:[y]),J$(u,f,y))}var j8=Nd(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function K8(u,f,y){var D=Mt(u)?Yu:Fc,V=arguments.length<3;return D(u,wt(f,4),y,V,Qs)}function U8(u,f,y){var D=Mt(u)?Bo:Fc,V=arguments.length<3;return D(u,wt(f,4),y,V,j$)}function q8(u,f){var y=Mt(u)?xr:K$;return y(u,Jd(wt(f,3)))}function z8(u){var f=Mt(u)?L$:L9;return f(u)}function W8(u,f,y){(y?kr(u,f,y):f===n)?f=1:f=kt(f);var D=Mt(u)?p9:B9;return D(u,f)}function H8(u){var f=Mt(u)?m9:N9;return f(u)}function G8(u){if(u==null)return 0;if(Zr(u))return eh(u)?$(u):u.length;var f=Er(u);return f==ht||f==De?u.size:Vm(u).length}function Y8(u,f,y){var D=Mt(u)?Ra:j9;return y&&kr(u,f,y)&&(f=n),D(u,wt(f,3))}var Z8=Bt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&kr(u,f[0],f[1])?f=[]:y>2&&kr(f[0],f[1],f[2])&&(f=[f[0]]),J$(u,mr(f,1),[])}),Zd=pr||function(){return En.Date.now()};function X8(u,f){if(typeof f!="function")throw new te(s);return u=kt(u),function(){if(--u<1)return f.apply(this,arguments)}}function Wx(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,ws(u,z,n,n,n,n,f)}function Hx(u,f){var y;if(typeof f!="function")throw new te(s);return u=kt(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var lg=Bt(function(u,f,y){var D=A;if(y.length){var V=Hr(y,al(lg));D|=_}return ws(u,D,f,y,V)}),Gx=Bt(function(u,f,y){var D=A|E;if(y.length){var V=Hr(y,al(Gx));D|=_}return ws(f,D,u,y,V)});function Yx(u,f,y){f=y?n:f;var D=ws(u,S,n,n,n,n,n,f);return D.placeholder=Yx.placeholder,D}function Zx(u,f,y){f=y?n:f;var D=ws(u,M,n,n,n,n,n,f);return D.placeholder=Zx.placeholder,D}function Xx(u,f,y){var D,V,ne,ye,Se,Pe,qe=0,We=!1,Ze=!1,st=!0;if(typeof u!="function")throw new te(s);f=ki(f)||0,Tn(y)&&(We=!!y.leading,Ze="maxWait"in y,ne=Ze?Yt(ki(y.maxWait)||0,f):ne,st="trailing"in y?!!y.trailing:st);function vt(Un){var fa=D,As=V;return D=V=n,qe=Un,ye=u.apply(As,fa),ye}function Et(Un){return qe=Un,Se=zc(Vt,f),We?vt(Un):ye}function Lt(Un){var fa=Un-Pe,As=Un-qe,gw=f-fa;return Ze?$n(gw,ne-As):gw}function St(Un){var fa=Un-Pe,As=Un-qe;return Pe===n||fa>=f||fa<0||Ze&&As>=ne}function Vt(){var Un=Zd();if(St(Un))return Wt(Un);Se=zc(Vt,Lt(Un))}function Wt(Un){return Se=n,st&&D?vt(Un):(D=V=n,ye)}function vi(){Se!==n&&ox(Se),qe=0,D=Pe=V=Se=n}function Or(){return Se===n?ye:Wt(Zd())}function yi(){var Un=Zd(),fa=St(Un);if(D=arguments,V=this,Pe=Un,fa){if(Se===n)return Et(Pe);if(Ze)return ox(Se),Se=zc(Vt,f),vt(Pe)}return Se===n&&(Se=zc(Vt,f)),ye}return yi.cancel=vi,yi.flush=Or,yi}var J8=Bt(function(u,f){return N$(u,1,f)}),Q8=Bt(function(u,f,y){return N$(u,ki(f)||0,y)});function eB(u){return ws(u,ge)}function Xd(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new te(s);var y=function(){var D=arguments,V=f?f.apply(this,D):D[0],ne=y.cache;if(ne.has(V))return ne.get(V);var ye=u.apply(this,D);return y.cache=ne.set(V,ye)||ne,ye};return y.cache=new(Xd.Cache||$s),y}Xd.Cache=$s;function Jd(u){if(typeof u!="function")throw new te(s);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function tB(u){return Hx(2,u)}var nB=K9(function(u,f){f=f.length==1&&Mt(f[0])?un(f[0],wr(wt())):un(mr(f,1),wr(wt()));var y=f.length;return Bt(function(D){for(var V=-1,ne=$n(D.length,y);++V<ne;)D[V]=f[V].call(this,D[V]);return On(u,this,D)})}),cg=Bt(function(u,f){var y=Hr(f,al(cg));return ws(u,_,n,f,y)}),Jx=Bt(function(u,f){var y=Hr(f,al(Jx));return ws(u,R,n,f,y)}),rB=Cs(function(u,f){return ws(u,re,n,n,n,f)});function iB(u,f){if(typeof u!="function")throw new te(s);return f=f===n?f:kt(f),Bt(u,f)}function aB(u,f){if(typeof u!="function")throw new te(s);return f=f==null?0:Yt(kt(f),0),Bt(function(y){var D=y[f],V=no(y,0,f);return D&&ra(V,D),On(u,this,V)})}function sB(u,f,y){var D=!0,V=!0;if(typeof u!="function")throw new te(s);return Tn(y)&&(D="leading"in y?!!y.leading:D,V="trailing"in y?!!y.trailing:V),Xx(u,f,{leading:D,maxWait:f,trailing:V})}function oB(u){return Wx(u,1)}function uB(u,f){return cg(Gm(f),u)}function lB(){if(!arguments.length)return[];var u=arguments[0];return Mt(u)?u:[u]}function cB(u){return Mi(u,b)}function fB(u,f){return f=typeof f=="function"?f:n,Mi(u,b,f)}function dB(u){return Mi(u,m|b)}function hB(u,f){return f=typeof f=="function"?f:n,Mi(u,m|b,f)}function pB(u,f){return f==null||V$(u,f,lr(f))}function ca(u,f){return u===f||u!==u&&f!==f}var mB=qd(Im),gB=qd(function(u,f){return u>=f}),Zo=z$(function(){return arguments}())?z$:function(u){return Bn(u)&&Ve.call(u,"callee")&&!bn.call(u,"callee")},Mt=G.isArray,vB=ms?wr(ms):S9;function Zr(u){return u!=null&&Qd(u.length)&&!Ss(u)}function Kn(u){return Bn(u)&&Zr(u)}function yB(u){return u===!0||u===!1||Bn(u)&&Rr(u)==Ue}var ro=ia||xg,bB=Ad?wr(Ad):D9;function $B(u){return Bn(u)&&u.nodeType===1&&!Wc(u)}function xB(u){if(u==null)return!0;if(Zr(u)&&(Mt(u)||typeof u=="string"||typeof u.splice=="function"||ro(u)||sl(u)||Zo(u)))return!u.length;var f=Er(u);if(f==ht||f==De)return!u.size;if(qc(u))return!Vm(u).length;for(var y in u)if(Ve.call(u,y))return!1;return!0}function wB(u,f){return jc(u,f)}function CB(u,f,y){y=typeof y=="function"?y:n;var D=y?y(u,f):n;return D===n?jc(u,f,n,y):!!D}function fg(u){if(!Bn(u))return!1;var f=Rr(u);return f==Ne||f==Ie||typeof u.message=="string"&&typeof u.name=="string"&&!Wc(u)}function EB(u){return typeof u=="number"&&di(u)}function Ss(u){if(!Tn(u))return!1;var f=Rr(u);return f==Ae||f==He||f==Qe||f==Qt}function Qx(u){return typeof u=="number"&&u==kt(u)}function Qd(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=K}function Tn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Bn(u){return u!=null&&typeof u=="object"}var ew=Td?wr(Td):T9;function SB(u,f){return u===f||Bm(u,f,tg(f))}function DB(u,f,y){return y=typeof y=="function"?y:n,Bm(u,f,tg(f),y)}function AB(u){return tw(u)&&u!=+u}function TB(u){if(fL(u))throw new fe(a);return W$(u)}function PB(u){return u===null}function _B(u){return u==null}function tw(u){return typeof u=="number"||Bn(u)&&Rr(u)==Ht}function Wc(u){if(!Bn(u)||Rr(u)!=_t)return!1;var f=At(u);if(f===null)return!0;var y=Ve.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&tt.call(y)==xe}var dg=Pc?wr(Pc):P9;function MB(u){return Qx(u)&&u>=-K&&u<=K}var nw=Zs?wr(Zs):_9;function eh(u){return typeof u=="string"||!Mt(u)&&Bn(u)&&Rr(u)==_e}function gi(u){return typeof u=="symbol"||Bn(u)&&Rr(u)==Xe}var sl=na?wr(na):M9;function FB(u){return u===n}function RB(u){return Bn(u)&&Er(u)==Je}function kB(u){return Bn(u)&&Rr(u)==gt}var OB=qd(Nm),IB=qd(function(u,f){return u<=f});function rw(u){if(!u)return[];if(Zr(u))return eh(u)?T(u):Yr(u);if(Yn&&u[Yn])return Oa(u[Yn]());var f=Er(u),y=f==ht?In:f==De?Xs:ol;return y(u)}function Ds(u){if(!u)return u===0?u:0;if(u=ki(u),u===O||u===-O){var f=u<0?-1:1;return f*de}return u===u?u:0}function kt(u){var f=Ds(u),y=f%1;return f===f?y?f-y:f:0}function iw(u){return u?Wo(kt(u),0,se):0}function ki(u){if(typeof u=="number")return u;if(gi(u))return k;if(Tn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Tn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=_d(u);var y=ui.test(u);return y||To.test(u)?tr(u.slice(2),y?2:8):ea.test(u)?k:+u}function aw(u){return Va(u,Xr(u))}function LB(u){return u?Wo(kt(u),-K,K):u===0?u:0}function an(u){return u==null?"":mi(u)}var BB=rl(function(u,f){if(qc(f)||Zr(f)){Va(f,lr(f),u);return}for(var y in f)Ve.call(f,y)&&Bc(u,y,f[y])}),sw=rl(function(u,f){Va(f,Xr(f),u)}),th=rl(function(u,f,y,D){Va(f,Xr(f),u,D)}),VB=rl(function(u,f,y,D){Va(f,lr(f),u,D)}),NB=Cs(Rm);function jB(u,f){var y=nl(u);return f==null?y:B$(y,f)}var KB=Bt(function(u,f){u=B(u);var y=-1,D=f.length,V=D>2?f[2]:n;for(V&&kr(f[0],f[1],V)&&(D=1);++y<D;)for(var ne=f[y],ye=Xr(ne),Se=-1,Pe=ye.length;++Se<Pe;){var qe=ye[Se],We=u[qe];(We===n||ca(We,Oe[qe])&&!Ve.call(u,qe))&&(u[qe]=ne[qe])}return u}),UB=Bt(function(u){return u.push(n,Cx),On(ow,n,u)});function qB(u,f){return _c(u,wt(f,3),Ba)}function zB(u,f){return _c(u,wt(f,3),Om)}function WB(u,f){return u==null?u:km(u,wt(f,3),Xr)}function HB(u,f){return u==null?u:U$(u,wt(f,3),Xr)}function GB(u,f){return u&&Ba(u,wt(f,3))}function YB(u,f){return u&&Om(u,wt(f,3))}function ZB(u){return u==null?[]:Id(u,lr(u))}function XB(u){return u==null?[]:Id(u,Xr(u))}function hg(u,f,y){var D=u==null?n:Ho(u,f);return D===n?y:D}function JB(u,f){return u!=null&&Dx(u,f,x9)}function pg(u,f){return u!=null&&Dx(u,f,w9)}var QB=yx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),u[f]=y},gg(Jr)),eV=yx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),Ve.call(u,f)?u[f].push(y):u[f]=[y]},wt),tV=Bt(Nc);function lr(u){return Zr(u)?I$(u):Vm(u)}function Xr(u){return Zr(u)?I$(u,!0):F9(u)}function nV(u,f){var y={};return f=wt(f,3),Ba(u,function(D,V,ne){xs(y,f(D,V,ne),D)}),y}function rV(u,f){var y={};return f=wt(f,3),Ba(u,function(D,V,ne){xs(y,V,f(D,V,ne))}),y}var iV=rl(function(u,f,y){Ld(u,f,y)}),ow=rl(function(u,f,y,D){Ld(u,f,y,D)}),aV=Cs(function(u,f){var y={};if(u==null)return y;var D=!1;f=un(f,function(ne){return ne=to(ne,u),D||(D=ne.length>1),ne}),Va(u,Qm(u),y),D&&(y=Mi(y,m|g|b,Q9));for(var V=f.length;V--;)zm(y,f[V]);return y});function sV(u,f){return uw(u,Jd(wt(f)))}var oV=Cs(function(u,f){return u==null?{}:k9(u,f)});function uw(u,f){if(u==null)return{};var y=un(Qm(u),function(D){return[D]});return f=wt(f),Q$(u,y,function(D,V){return f(D,V[0])})}function uV(u,f,y){f=to(f,u);var D=-1,V=f.length;for(V||(V=1,u=n);++D<V;){var ne=u==null?n:u[Na(f[D])];ne===n&&(D=V,ne=y),u=Ss(ne)?ne.call(u):ne}return u}function lV(u,f,y){return u==null?u:Kc(u,f,y)}function cV(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:Kc(u,f,y,D)}var lw=xx(lr),cw=xx(Xr);function fV(u,f,y){var D=Mt(u),V=D||ro(u)||sl(u);if(f=wt(f,4),y==null){var ne=u&&u.constructor;V?y=D?new ne:[]:Tn(u)?y=Ss(ne)?nl(At(u)):{}:y={}}return(V?fn:Ba)(u,function(ye,Se,Pe){return f(y,ye,Se,Pe)}),y}function dV(u,f){return u==null?!0:zm(u,f)}function hV(u,f,y){return u==null?u:ix(u,f,Gm(y))}function pV(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:ix(u,f,Gm(y),D)}function ol(u){return u==null?[]:Rc(u,lr(u))}function mV(u){return u==null?[]:Rc(u,Xr(u))}function gV(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=ki(y),y=y===y?y:0),f!==n&&(f=ki(f),f=f===f?f:0),Wo(ki(u),f,y)}function vV(u,f,y){return f=Ds(f),y===n?(y=f,f=0):y=Ds(y),u=ki(u),C9(u,f,y)}function yV(u,f,y){if(y&&typeof y!="boolean"&&kr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Ds(u),f===n?(f=u,u=0):f=Ds(f)),u>f){var D=u;u=f,f=D}if(y||u%1||f%1){var V=oa();return $n(u+V*(f-u+yn("1e-"+((V+"").length-1))),f)}return Km(u,f)}var bV=il(function(u,f,y){return f=f.toLowerCase(),u+(y?fw(f):f)});function fw(u){return mg(an(u).toLowerCase())}function dw(u){return u=an(u),u&&u.replace(li,_m).replace(ds,"")}function $V(u,f,y){u=an(u),f=mi(f);var D=u.length;y=y===n?D:Wo(kt(y),0,D);var V=y;return y-=f.length,y>=0&&u.slice(y,V)==f}function xV(u){return u=an(u),u&&bc.test(u)?u.replace(oi,ys):u}function wV(u){return u=an(u),u&&yt.test(u)?u.replace(Qi,"\\$&"):u}var CV=il(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),EV=il(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),SV=mx("toLowerCase");function DV(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;if(!f||D>=f)return u;var V=(f-D)/2;return Ud(Gr(V),y)+u+Ud(ln(V),y)}function AV(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;return f&&D<f?u+Ud(f-D,y):u}function TV(u,f,y){u=an(u),f=kt(f);var D=f?$(u):0;return f&&D<f?Ud(f-D,y)+u:u}function PV(u,f,y){return y||f==null?f=0:f&&(f=+f),hi(an(u).replace(Cn,""),f||0)}function _V(u,f,y){return(y?kr(u,f,y):f===n)?f=1:f=kt(f),Um(an(u),f)}function MV(){var u=arguments,f=an(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var FV=il(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function RV(u,f,y){return y&&typeof y!="number"&&kr(u,f,y)&&(f=y=n),y=y===n?se:y>>>0,y?(u=an(u),u&&(typeof f=="string"||f!=null&&!dg(f))&&(f=mi(f),!f&&Cr(u))?no(T(u),0,y):u.split(f,y)):[]}var kV=il(function(u,f,y){return u+(y?" ":"")+mg(f)});function OV(u,f,y){return u=an(u),y=y==null?0:Wo(kt(y),0,u.length),f=mi(f),u.slice(y,y+f.length)==f}function IV(u,f,y){var D=Z.templateSettings;y&&kr(u,f,y)&&(f=n),u=an(u),f=th({},f,D,wx);var V=th({},f.imports,D.imports,wx),ne=lr(V),ye=Rc(V,ne),Se,Pe,qe=0,We=f.interpolate||kn,Ze="__p += '",st=j((f.escape||kn).source+"|"+We.source+"|"+(We===Ou?at:kn).source+"|"+(f.evaluate||kn).source+"|$","g"),vt="//# sourceURL="+(Ve.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ps+"]")+`
|
|
44
|
+
`;u.replace(st,function(St,Vt,Wt,vi,Or,yi){return Wt||(Wt=vi),Ze+=u.slice(qe,yi).replace(Ws,fi),Vt&&(Se=!0,Ze+=`' +
|
|
45
|
+
__e(`+Vt+`) +
|
|
46
|
+
'`),Or&&(Pe=!0,Ze+=`';
|
|
47
|
+
`+Or+`;
|
|
48
|
+
__p += '`),Wt&&(Ze+=`' +
|
|
49
|
+
((__t = (`+Wt+`)) == null ? '' : __t) +
|
|
50
|
+
'`),qe=yi+St.length,St}),Ze+=`';
|
|
51
|
+
`;var Et=Ve.call(f,"variable")&&f.variable;if(!Et)Ze=`with (obj) {
|
|
52
|
+
`+Ze+`
|
|
53
|
+
}
|
|
54
|
+
`;else if(xc.test(Et))throw new fe(o);Ze=(Pe?Ze.replace(Pr,""):Ze).replace(Da,"$1").replace(Do,"$1;"),Ze="function("+(Et||"obj")+`) {
|
|
55
|
+
`+(Et?"":`obj || (obj = {});
|
|
56
|
+
`)+"var __t, __p = ''"+(Se?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
|
|
57
|
+
function print() { __p += __j.call(arguments, '') }
|
|
58
|
+
`:`;
|
|
59
|
+
`)+Ze+`return __p
|
|
60
|
+
}`;var Lt=pw(function(){return W(ne,vt+"return "+Ze).apply(n,ye)});if(Lt.source=Ze,fg(Lt))throw Lt;return Lt}function LV(u){return an(u).toLowerCase()}function BV(u){return an(u).toUpperCase()}function VV(u,f,y){if(u=an(u),u&&(y||f===n))return _d(u);if(!u||!(f=mi(f)))return u;var D=T(u),V=T(f),ne=Qu(D,V),ye=or(D,V)+1;return no(D,ne,ye).join("")}function NV(u,f,y){if(u=an(u),u&&(y||f===n))return u.slice(0,P(u)+1);if(!u||!(f=mi(f)))return u;var D=T(u),V=or(D,T(f))+1;return no(D,0,V).join("")}function jV(u,f,y){if(u=an(u),u&&(y||f===n))return u.replace(Cn,"");if(!u||!(f=mi(f)))return u;var D=T(u),V=Qu(D,T(f));return no(D,V).join("")}function KV(u,f){var y=le,D=I;if(Tn(f)){var V="separator"in f?f.separator:V;y="length"in f?kt(f.length):y,D="omission"in f?mi(f.omission):D}u=an(u);var ne=u.length;if(Cr(u)){var ye=T(u);ne=ye.length}if(y>=ne)return u;var Se=y-$(D);if(Se<1)return D;var Pe=ye?no(ye,0,Se).join(""):u.slice(0,Se);if(V===n)return Pe+D;if(ye&&(Se+=Pe.length-Se),dg(V)){if(u.slice(Se).search(V)){var qe,We=Pe;for(V.global||(V=j(V.source,an(cn.exec(V))+"g")),V.lastIndex=0;qe=V.exec(We);)var Ze=qe.index;Pe=Pe.slice(0,Ze===n?Se:Ze)}}else if(u.indexOf(mi(V),Se)!=Se){var st=Pe.lastIndexOf(V);st>-1&&(Pe=Pe.slice(0,st))}return Pe+D}function UV(u){return u=an(u),u&&is.test(u)?u.replace(bt,q):u}var qV=il(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),mg=mx("toUpperCase");function hw(u,f,y){return u=an(u),f=y?n:f,f===n?kc(u)?$e(u):Am(u):u.match(f)||[]}var pw=Bt(function(u,f){try{return On(u,n,f)}catch(y){return fg(y)?y:new fe(y)}}),zV=Cs(function(u,f){return fn(f,function(y){y=Na(y),xs(u,y,lg(u[y],u))}),u});function WV(u){var f=u==null?0:u.length,y=wt();return u=f?un(u,function(D){if(typeof D[1]!="function")throw new te(s);return[y(D[0]),D[1]]}):[],Bt(function(D){for(var V=-1;++V<f;){var ne=u[V];if(On(ne[0],this,D))return On(ne[1],this,D)}})}function HV(u){return y9(Mi(u,m))}function gg(u){return function(){return u}}function GV(u,f){return u==null||u!==u?f:u}var YV=vx(),ZV=vx(!0);function Jr(u){return u}function vg(u){return H$(typeof u=="function"?u:Mi(u,m))}function XV(u){return Y$(Mi(u,m))}function JV(u,f){return Z$(u,Mi(f,m))}var QV=Bt(function(u,f){return function(y){return Nc(y,u,f)}}),eN=Bt(function(u,f){return function(y){return Nc(u,y,f)}});function yg(u,f,y){var D=lr(f),V=Id(f,D);y==null&&!(Tn(f)&&(V.length||!D.length))&&(y=f,f=u,u=this,V=Id(f,lr(f)));var ne=!(Tn(y)&&"chain"in y)||!!y.chain,ye=Ss(u);return fn(V,function(Se){var Pe=f[Se];u[Se]=Pe,ye&&(u.prototype[Se]=function(){var qe=this.__chain__;if(ne||qe){var We=u(this.__wrapped__),Ze=We.__actions__=Yr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),We.__chain__=qe,We}return Pe.apply(u,ra([this.value()],arguments))})}),u}function tN(){return En._===this&&(En._=ue),this}function bg(){}function nN(u){return u=kt(u),Bt(function(f){return X$(f,u)})}var rN=Zm(un),iN=Zm(gs),aN=Zm(Ra);function mw(u){return rg(u)?Zu(Na(u)):O9(u)}function sN(u){return function(f){return u==null?n:Ho(u,f)}}var oN=bx(),uN=bx(!0);function $g(){return[]}function xg(){return!1}function lN(){return{}}function cN(){return""}function fN(){return!0}function dN(u,f){if(u=kt(u),u<1||u>K)return[];var y=se,D=$n(u,se);f=wt(f),u-=se;for(var V=Ju(D,f);++y<u;)f(y);return V}function hN(u){return Mt(u)?un(u,Na):gi(u)?[u]:Yr(Ox(an(u)))}function pN(u){var f=++ot;return an(u)+f}var mN=Kd(function(u,f){return u+f},0),gN=Xm("ceil"),vN=Kd(function(u,f){return u/f},1),yN=Xm("floor");function bN(u){return u&&u.length?Od(u,Jr,Im):n}function $N(u,f){return u&&u.length?Od(u,wt(f,2),Im):n}function xN(u){return Ko(u,Jr)}function wN(u,f){return Ko(u,wt(f,2))}function CN(u){return u&&u.length?Od(u,Jr,Nm):n}function EN(u,f){return u&&u.length?Od(u,wt(f,2),Nm):n}var SN=Kd(function(u,f){return u*f},1),DN=Xm("round"),AN=Kd(function(u,f){return u-f},0);function TN(u){return u&&u.length?ka(u,Jr):0}function PN(u,f){return u&&u.length?ka(u,wt(f,2)):0}return Z.after=X8,Z.ary=Wx,Z.assign=BB,Z.assignIn=sw,Z.assignInWith=th,Z.assignWith=VB,Z.at=NB,Z.before=Hx,Z.bind=lg,Z.bindAll=zV,Z.bindKey=Gx,Z.castArray=lB,Z.chain=Ux,Z.chunk=yL,Z.compact=bL,Z.concat=$L,Z.cond=WV,Z.conforms=HV,Z.constant=gg,Z.countBy=T8,Z.create=jB,Z.curry=Yx,Z.curryRight=Zx,Z.debounce=Xx,Z.defaults=KB,Z.defaultsDeep=UB,Z.defer=J8,Z.delay=Q8,Z.difference=xL,Z.differenceBy=wL,Z.differenceWith=CL,Z.drop=EL,Z.dropRight=SL,Z.dropRightWhile=DL,Z.dropWhile=AL,Z.fill=TL,Z.filter=_8,Z.flatMap=R8,Z.flatMapDeep=k8,Z.flatMapDepth=O8,Z.flatten=Vx,Z.flattenDeep=PL,Z.flattenDepth=_L,Z.flip=eB,Z.flow=YV,Z.flowRight=ZV,Z.fromPairs=ML,Z.functions=ZB,Z.functionsIn=XB,Z.groupBy=I8,Z.initial=RL,Z.intersection=kL,Z.intersectionBy=OL,Z.intersectionWith=IL,Z.invert=QB,Z.invertBy=eV,Z.invokeMap=B8,Z.iteratee=vg,Z.keyBy=V8,Z.keys=lr,Z.keysIn=Xr,Z.map=Yd,Z.mapKeys=nV,Z.mapValues=rV,Z.matches=XV,Z.matchesProperty=JV,Z.memoize=Xd,Z.merge=iV,Z.mergeWith=ow,Z.method=QV,Z.methodOf=eN,Z.mixin=yg,Z.negate=Jd,Z.nthArg=nN,Z.omit=aV,Z.omitBy=sV,Z.once=tB,Z.orderBy=N8,Z.over=rN,Z.overArgs=nB,Z.overEvery=iN,Z.overSome=aN,Z.partial=cg,Z.partialRight=Jx,Z.partition=j8,Z.pick=oV,Z.pickBy=uw,Z.property=mw,Z.propertyOf=sN,Z.pull=NL,Z.pullAll=jx,Z.pullAllBy=jL,Z.pullAllWith=KL,Z.pullAt=UL,Z.range=oN,Z.rangeRight=uN,Z.rearg=rB,Z.reject=q8,Z.remove=qL,Z.rest=iB,Z.reverse=og,Z.sampleSize=W8,Z.set=lV,Z.setWith=cV,Z.shuffle=H8,Z.slice=zL,Z.sortBy=Z8,Z.sortedUniq=JL,Z.sortedUniqBy=QL,Z.split=RV,Z.spread=aB,Z.tail=e8,Z.take=t8,Z.takeRight=n8,Z.takeRightWhile=r8,Z.takeWhile=i8,Z.tap=b8,Z.throttle=sB,Z.thru=Gd,Z.toArray=rw,Z.toPairs=lw,Z.toPairsIn=cw,Z.toPath=hN,Z.toPlainObject=aw,Z.transform=fV,Z.unary=oB,Z.union=a8,Z.unionBy=s8,Z.unionWith=o8,Z.uniq=u8,Z.uniqBy=l8,Z.uniqWith=c8,Z.unset=dV,Z.unzip=ug,Z.unzipWith=Kx,Z.update=hV,Z.updateWith=pV,Z.values=ol,Z.valuesIn=mV,Z.without=f8,Z.words=hw,Z.wrap=uB,Z.xor=d8,Z.xorBy=h8,Z.xorWith=p8,Z.zip=m8,Z.zipObject=g8,Z.zipObjectDeep=v8,Z.zipWith=y8,Z.entries=lw,Z.entriesIn=cw,Z.extend=sw,Z.extendWith=th,yg(Z,Z),Z.add=mN,Z.attempt=pw,Z.camelCase=bV,Z.capitalize=fw,Z.ceil=gN,Z.clamp=gV,Z.clone=cB,Z.cloneDeep=dB,Z.cloneDeepWith=hB,Z.cloneWith=fB,Z.conformsTo=pB,Z.deburr=dw,Z.defaultTo=GV,Z.divide=vN,Z.endsWith=$V,Z.eq=ca,Z.escape=xV,Z.escapeRegExp=wV,Z.every=P8,Z.find=M8,Z.findIndex=Lx,Z.findKey=qB,Z.findLast=F8,Z.findLastIndex=Bx,Z.findLastKey=zB,Z.floor=yN,Z.forEach=qx,Z.forEachRight=zx,Z.forIn=WB,Z.forInRight=HB,Z.forOwn=GB,Z.forOwnRight=YB,Z.get=hg,Z.gt=mB,Z.gte=gB,Z.has=JB,Z.hasIn=pg,Z.head=Nx,Z.identity=Jr,Z.includes=L8,Z.indexOf=FL,Z.inRange=vV,Z.invoke=tV,Z.isArguments=Zo,Z.isArray=Mt,Z.isArrayBuffer=vB,Z.isArrayLike=Zr,Z.isArrayLikeObject=Kn,Z.isBoolean=yB,Z.isBuffer=ro,Z.isDate=bB,Z.isElement=$B,Z.isEmpty=xB,Z.isEqual=wB,Z.isEqualWith=CB,Z.isError=fg,Z.isFinite=EB,Z.isFunction=Ss,Z.isInteger=Qx,Z.isLength=Qd,Z.isMap=ew,Z.isMatch=SB,Z.isMatchWith=DB,Z.isNaN=AB,Z.isNative=TB,Z.isNil=_B,Z.isNull=PB,Z.isNumber=tw,Z.isObject=Tn,Z.isObjectLike=Bn,Z.isPlainObject=Wc,Z.isRegExp=dg,Z.isSafeInteger=MB,Z.isSet=nw,Z.isString=eh,Z.isSymbol=gi,Z.isTypedArray=sl,Z.isUndefined=FB,Z.isWeakMap=RB,Z.isWeakSet=kB,Z.join=LL,Z.kebabCase=CV,Z.last=Ri,Z.lastIndexOf=BL,Z.lowerCase=EV,Z.lowerFirst=SV,Z.lt=OB,Z.lte=IB,Z.max=bN,Z.maxBy=$N,Z.mean=xN,Z.meanBy=wN,Z.min=CN,Z.minBy=EN,Z.stubArray=$g,Z.stubFalse=xg,Z.stubObject=lN,Z.stubString=cN,Z.stubTrue=fN,Z.multiply=SN,Z.nth=VL,Z.noConflict=tN,Z.noop=bg,Z.now=Zd,Z.pad=DV,Z.padEnd=AV,Z.padStart=TV,Z.parseInt=PV,Z.random=yV,Z.reduce=K8,Z.reduceRight=U8,Z.repeat=_V,Z.replace=MV,Z.result=uV,Z.round=DN,Z.runInContext=F,Z.sample=z8,Z.size=G8,Z.snakeCase=FV,Z.some=Y8,Z.sortedIndex=WL,Z.sortedIndexBy=HL,Z.sortedIndexOf=GL,Z.sortedLastIndex=YL,Z.sortedLastIndexBy=ZL,Z.sortedLastIndexOf=XL,Z.startCase=kV,Z.startsWith=OV,Z.subtract=AN,Z.sum=TN,Z.sumBy=PN,Z.template=IV,Z.times=dN,Z.toFinite=Ds,Z.toInteger=kt,Z.toLength=iw,Z.toLower=LV,Z.toNumber=ki,Z.toSafeInteger=LB,Z.toString=an,Z.toUpper=BV,Z.trim=VV,Z.trimEnd=NV,Z.trimStart=jV,Z.truncate=KV,Z.unescape=UV,Z.uniqueId=pN,Z.upperCase=qV,Z.upperFirst=mg,Z.each=qx,Z.eachRight=zx,Z.first=Nx,yg(Z,function(){var u={};return Ba(Z,function(f,y){Ve.call(Z.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),Z.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){Z[u].placeholder=Z}),fn(["drop","take"],function(u,f){Kt.prototype[u]=function(y){y=y===n?1:Yt(kt(y),0);var D=this.__filtered__&&!f?new Kt(this):this.clone();return D.__filtered__?D.__takeCount__=$n(y,D.__takeCount__):D.__views__.push({size:$n(y,se),type:u+(D.__dir__<0?"Right":"")}),D},Kt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),fn(["filter","map","takeWhile"],function(u,f){var y=f+1,D=y==U||y==N;Kt.prototype[u]=function(V){var ne=this.clone();return ne.__iteratees__.push({iteratee:wt(V,3),type:y}),ne.__filtered__=ne.__filtered__||D,ne}}),fn(["head","last"],function(u,f){var y="take"+(f?"Right":"");Kt.prototype[u]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");Kt.prototype[u]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(Jr)},Kt.prototype.find=function(u){return this.filter(u).head()},Kt.prototype.findLast=function(u){return this.reverse().find(u)},Kt.prototype.invokeMap=Bt(function(u,f){return typeof u=="function"?new Kt(this):this.map(function(y){return Nc(y,u,f)})}),Kt.prototype.reject=function(u){return this.filter(Jd(wt(u)))},Kt.prototype.slice=function(u,f){u=kt(u);var y=this;return y.__filtered__&&(u>0||f<0)?new Kt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=kt(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},Kt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Kt.prototype.toArray=function(){return this.take(se)},Ba(Kt.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),D=/^(?:head|last)$/.test(f),V=Z[D?"take"+(f=="last"?"Right":""):f],ne=D||/^find/.test(f);V&&(Z.prototype[f]=function(){var ye=this.__wrapped__,Se=D?[1]:arguments,Pe=ye instanceof Kt,qe=Se[0],We=Pe||Mt(ye),Ze=function(Vt){var Wt=V.apply(Z,ra([Vt],Se));return D&&st?Wt[0]:Wt};We&&y&&typeof qe=="function"&&qe.length!=1&&(Pe=We=!1);var st=this.__chain__,vt=!!this.__actions__.length,Et=ne&&!st,Lt=Pe&&!vt;if(!ne&&We){ye=Lt?ye:new Kt(this);var St=u.apply(ye,Se);return St.__actions__.push({func:Gd,args:[Ze],thisArg:n}),new _i(St,st)}return Et&&Lt?u.apply(this,Se):(St=this.thru(Ze),Et?D?St.value()[0]:St.value():St)})}),fn(["pop","push","shift","sort","splice","unshift"],function(u){var f=ae[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",D=/^(?:pop|shift)$/.test(u);Z.prototype[u]=function(){var V=arguments;if(D&&!this.__chain__){var ne=this.value();return f.apply(Mt(ne)?ne:[],V)}return this[y](function(ye){return f.apply(Mt(ye)?ye:[],V)})}}),Ba(Kt.prototype,function(u,f){var y=Z[f];if(y){var D=y.name+"";Ve.call(tl,D)||(tl[D]=[]),tl[D].push({name:f,func:y})}}),tl[jd(n,E).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=UI,Kt.prototype.reverse=qI,Kt.prototype.value=zI,Z.prototype.at=$8,Z.prototype.chain=x8,Z.prototype.commit=w8,Z.prototype.next=C8,Z.prototype.plant=S8,Z.prototype.reverse=D8,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=A8,Z.prototype.first=Z.prototype.head,Yn&&(Z.prototype[Yn]=E8),Z},Re=Ee();Ai?((Ai.exports=Re)._=Re,Di._=Re):En._=Re}).call(lz)}(uf,uf.exports)),uf.exports}var WP=cz();const fz=yr(WP);function Wp(){return typeof window<"u"}function ic(e){return HP(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ns(e){var t;return(t=(HP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function HP(e){return Wp()?e instanceof Node||e instanceof ai(e).Node:!1}function Qn(e){return Wp()?e instanceof Element||e instanceof ai(e).Element:!1}function Zi(e){return Wp()?e instanceof HTMLElement||e instanceof ai(e).HTMLElement:!1}function _b(e){return!Wp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot}const dz=new Set(["inline","contents"]);function Xf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dz.has(i)}const hz=new Set(["table","td","th"]);function pz(e){return hz.has(ic(e))}const mz=[":popover-open",":modal"];function Hp(e){return mz.some(t=>{try{return e.matches(t)}catch{return!1}})}const gz=["transform","translate","scale","rotate","perspective"],vz=["transform","translate","scale","rotate","perspective","filter"],yz=["paint","layout","strict","content"];function O4(e){const t=I4(),n=Qn(e)?ba(e):e;return gz.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||vz.some(r=>(n.willChange||"").includes(r))||yz.some(r=>(n.contain||"").includes(r))}function bz(e){let t=bo(e);for(;Zi(t)&&!jl(t);){if(O4(t))return t;if(Hp(t))return null;t=bo(t)}return null}function I4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $z=new Set(["html","body","#document"]);function jl(e){return $z.has(ic(e))}function ba(e){return ai(e).getComputedStyle(e)}function Gp(e){return Qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bo(e){if(ic(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_b(e)&&e.host||ns(e);return _b(t)?t.host:t}function GP(e){const t=bo(e);return jl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&Xf(t)?t:GP(t)}function _f(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=GP(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=ai(i);if(a){const o=Mb(s);return t.concat(s,s.visualViewport||[],Xf(i)?i:[],o&&n?_f(o):[])}return t.concat(i,_f(i,[],n))}function Mb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gh=Math.min,hu=Math.max,Yh=Math.round,nh=Math.floor,Ya=e=>({x:e,y:e}),xz={left:"right",right:"left",bottom:"top",top:"bottom"},wz={start:"end",end:"start"};function nS(e,t,n){return hu(e,Gh(t,n))}function Yp(e,t){return typeof e=="function"?e(t):e}function yu(e){return e.split("-")[0]}function Zp(e){return e.split("-")[1]}function YP(e){return e==="x"?"y":"x"}function ZP(e){return e==="y"?"height":"width"}const Cz=new Set(["top","bottom"]);function mo(e){return Cz.has(yu(e))?"y":"x"}function XP(e){return YP(mo(e))}function Ez(e,t,n){n===void 0&&(n=!1);const r=Zp(e),i=XP(e),a=ZP(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Zh(s)),[s,Zh(s)]}function Sz(e){const t=Zh(e);return[Fb(e),t,Fb(t)]}function Fb(e){return e.replace(/start|end/g,t=>wz[t])}const rS=["left","right"],iS=["right","left"],Dz=["top","bottom"],Az=["bottom","top"];function Tz(e,t,n){switch(e){case"top":case"bottom":return n?t?iS:rS:t?rS:iS;case"left":case"right":return t?Dz:Az;default:return[]}}function Pz(e,t,n,r){const i=Zp(e);let a=Tz(yu(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Fb)))),a}function Zh(e){return e.replace(/left|right|bottom|top/g,t=>xz[t])}function _z(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mz(e){return typeof e!="number"?_z(e):{top:e,right:e,bottom:e,left:e}}function Xh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fz(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Rz(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function kz(){return/apple/i.test(navigator.vendor)}function Oz(){return Fz().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Iz(){return Rz().includes("jsdom/")}const aS="data-floating-ui-focusable",Lz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function sS(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Rb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_b(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Bz(e){return"composedPath"in e?e.composedPath()[0]:e.target}function lf(e){return(e==null?void 0:e.ownerDocument)||document}function Vz(e){return Zi(e)&&e.matches(Lz)}function Nz(e){if(!e||Iz())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function jz(e){return e?e.hasAttribute(aS)?e:e.querySelector("["+aS+"]")||e:null}function kb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Kz=typeof document<"u",Uz=function(){},Kl=Kz?L.useLayoutEffect:Uz;const qz={...ce};function rh(e){const t=ce.useRef(e);return Kl(()=>{t.current=e}),t}const zz=qz.useInsertionEffect,Wz=zz||(e=>e());function cf(e){const t=ce.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Wz(()=>{t.current=e}),ce.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function oS(e,t,n){let{reference:r,floating:i}=e;const a=mo(t),s=XP(t),o=ZP(s),l=yu(t),d=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[o]/2-i[o]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Zp(t)){case"start":b[s]-=g*(n&&d?-1:1);break;case"end":b[s]+=g*(n&&d?-1:1);break}return b}const Hz=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=oS(d,r,l),g=r,b={},w=0;for(let x=0;x<o.length;x++){const{name:A,fn:E}=o[x],{x:C,y:S,data:M,reset:_}=await E({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});h=C??h,m=S??m,b={...b,[A]:{...b[A],...M}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(g=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:h,y:m}=oS(d,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function JP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Yp(t,e),w=Mz(b),A=o[g?m==="floating"?"reference":"floating":m],E=Xh(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:d,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),M=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Xh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:C,offsetParent:S,strategy:l}):C);return{top:(E.top-_.top+w.top)/M.y,bottom:(_.bottom-E.bottom+w.bottom)/M.y,left:(E.left-_.left+w.left)/M.x,right:(_.right-E.right+w.right)/M.x}}const Gz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...A}=Yp(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=yu(i),C=mo(o),S=yu(o)===o,M=await(l.isRTL==null?void 0:l.isRTL(d.floating)),_=g||(S||!x?[Zh(o)]:Sz(o)),R=w!=="none";!g&&R&&_.push(...Pz(o,x,w,M));const z=[o,..._],re=await JP(t,A),ge=[];let le=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&ge.push(re[E]),m){const U=Ez(i,s,M);ge.push(re[U[0]],re[U[1]])}if(le=[...le,{placement:i,overflows:ge}],!ge.every(U=>U<=0)){var I,Ce;const U=(((I=a.flip)==null?void 0:I.index)||0)+1,ee=z[U];if(ee&&(!(m==="alignment"?C!==mo(ee):!1)||le.every(K=>mo(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:U,overflows:le},reset:{placement:ee}};let N=(Ce=le.filter(O=>O.overflows[0]<=0).sort((O,K)=>O.overflows[1]-K.overflows[1])[0])==null?void 0:Ce.placement;if(!N)switch(b){case"bestFit":{var we;const O=(we=le.filter(K=>{if(R){const de=mo(K.placement);return de===C||de==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(de=>de>0).reduce((de,k)=>de+k,0)]).sort((K,de)=>K[1]-de[1])[0])==null?void 0:we[0];O&&(N=O);break}case"initialPlacement":N=o;break}if(i!==N)return{reset:{placement:N}}}return{}}}},Yz=new Set(["left","top"]);async function Zz(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=yu(n),o=Zp(n),l=mo(n)==="y",d=Yz.has(s)?-1:1,h=a&&l?-1:1,m=Yp(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return o&&typeof w=="number"&&(b=o==="end"?w*-1:w),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const Xz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,l=await Zz(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},Jz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:A=>{let{x:E,y:C}=A;return{x:E,y:C}}},...l}=Yp(e,t),d={x:n,y:r},h=await JP(t,l),m=mo(yu(i)),g=YP(m);let b=d[g],w=d[m];if(a){const A=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=b+h[A],S=b-h[E];b=nS(C,b,S)}if(s){const A=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=w+h[A],S=w-h[E];w=nS(C,w,S)}const x=o.fn({...t,[g]:b,[m]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:s}}}}}};function QP(e){const t=ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zi(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=Yh(n)!==a||Yh(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function L4(e){return Qn(e)?e:e.contextElement}function Pl(e){const t=L4(e);if(!Zi(t))return Ya(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QP(t);let s=(a?Yh(n.width):n.width)/r,o=(a?Yh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const Qz=Ya(0);function e5(e){const t=ai(e);return!I4()||!t.visualViewport?Qz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ai(e)?!1:t}function bu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=L4(e);let s=Ya(1);t&&(r?Qn(r)&&(s=Pl(r)):s=Pl(e));const o=eW(a,n,r)?e5(a):Ya(0);let l=(i.left+o.x)/s.x,d=(i.top+o.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(a){const g=ai(a),b=r&&Qn(r)?ai(r):r;let w=g,x=Mb(w);for(;x&&r&&b!==w;){const A=Pl(x),E=x.getBoundingClientRect(),C=ba(x),S=E.left+(x.clientLeft+parseFloat(C.paddingLeft))*A.x,M=E.top+(x.clientTop+parseFloat(C.paddingTop))*A.y;l*=A.x,d*=A.y,h*=A.x,m*=A.y,l+=S,d+=M,w=ai(x),x=Mb(w)}}return Xh({width:h,height:m,x:l,y:d})}function Xp(e,t){const n=Gp(e).scrollLeft;return t?t.left+n:bu(ns(e)).left+n}function t5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function tW(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=ns(r),o=t?Hp(t.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},d=Ya(1);const h=Ya(0),m=Zi(r);if((m||!m&&!a)&&((ic(r)!=="body"||Xf(s))&&(l=Gp(r)),Zi(r))){const b=bu(r);d=Pl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=s&&!m&&!a?t5(s,l):Ya(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function nW(e){return Array.from(e.getClientRects())}function rW(e){const t=ns(e),n=Gp(e),r=e.ownerDocument.body,i=hu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xp(e);const o=-n.scrollTop;return ba(r).direction==="rtl"&&(s+=hu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}const uS=25;function iW(e,t){const n=ai(e),r=ns(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const h=I4();(!h||h&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const d=Xp(r);if(d<=0){const h=r.ownerDocument,m=h.body,g=getComputedStyle(m),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-m.clientWidth-b);w<=uS&&(a-=w)}else d<=uS&&(a+=d);return{width:a,height:s,x:o,y:l}}const aW=new Set(["absolute","fixed"]);function sW(e,t){const n=bu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Zi(e)?Pl(e):Ya(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=i*a.x,d=r*a.y;return{width:s,height:o,x:l,y:d}}function lS(e,t,n){let r;if(t==="viewport")r=iW(e,n);else if(t==="document")r=rW(ns(e));else if(Qn(t))r=sW(t,n);else{const i=e5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Xh(r)}function n5(e,t){const n=bo(e);return n===t||!Qn(n)||jl(n)?!1:ba(n).position==="fixed"||n5(n,t)}function oW(e,t){const n=t.get(e);if(n)return n;let r=_f(e,[],!1).filter(o=>Qn(o)&&ic(o)!=="body"),i=null;const a=ba(e).position==="fixed";let s=a?bo(e):e;for(;Qn(s)&&!jl(s);){const o=ba(s),l=O4(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&aW.has(i.position)||Xf(s)&&!l&&n5(e,s))?r=r.filter(h=>h!==s):i=o,s=bo(s)}return t.set(e,r),r}function uW(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Hp(t)?[]:oW(t,this._c):[].concat(n),r],o=s[0],l=s.reduce((d,h)=>{const m=lS(t,h,i);return d.top=hu(m.top,d.top),d.right=Gh(m.right,d.right),d.bottom=Gh(m.bottom,d.bottom),d.left=hu(m.left,d.left),d},lS(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lW(e){const{width:t,height:n}=QP(e);return{width:t,height:n}}function cW(e,t,n){const r=Zi(t),i=ns(t),a=n==="fixed",s=bu(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=Ya(0);function d(){l.x=Xp(i)}if(r||!r&&!a)if((ic(t)!=="body"||Xf(i))&&(o=Gp(t)),r){const b=bu(t,!0,a,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&d();a&&!r&&i&&d();const h=i&&!r&&!a?t5(i,o):Ya(0),m=s.left+o.scrollLeft-l.x-h.x,g=s.top+o.scrollTop-l.y-h.y;return{x:m,y:g,width:s.width,height:s.height}}function qy(e){return ba(e).position==="static"}function cS(e,t){if(!Zi(e)||ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ns(e)===n&&(n=n.ownerDocument.body),n}function r5(e,t){const n=ai(e);if(Hp(e))return n;if(!Zi(e)){let i=bo(e);for(;i&&!jl(i);){if(Qn(i)&&!qy(i))return i;i=bo(i)}return n}let r=cS(e,t);for(;r&&pz(r)&&qy(r);)r=cS(r,t);return r&&jl(r)&&qy(r)&&!O4(r)?n:r||bz(e)||n}const fW=async function(e){const t=this.getOffsetParent||r5,n=this.getDimensions,r=await n(e.floating);return{reference:cW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dW(e){return ba(e).direction==="rtl"}const hW={convertOffsetParentRelativeRectToViewportRelativeRect:tW,getDocumentElement:ns,getClippingRect:uW,getOffsetParent:r5,getElementRects:fW,getClientRects:nW,getDimensions:lW,getScale:Pl,isElement:Qn,isRTL:dW};function i5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pW(e,t){let n=null,r;const i=ns(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(o||t(),!g||!b)return;const w=nh(m),x=nh(i.clientWidth-(h+g)),A=nh(i.clientHeight-(m+b)),E=nh(h),S={rootMargin:-w+"px "+-x+"px "+-A+"px "+-E+"px",threshold:hu(0,Gh(1,l))||1};let M=!0;function _(R){const z=R[0].intersectionRatio;if(z!==l){if(!M)return s();z?s(!1,z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}z===1&&!i5(d,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(_,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function mW(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=L4(e),h=i||a?[...d?_f(d):[],..._f(t)]:[];h.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const m=d&&o?pW(d,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(E=>{let[C]=E;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let w,x=l?bu(e):null;l&&A();function A(){const E=bu(e);x&&!i5(x,E)&&n(),x=E,w=requestAnimationFrame(A)}return n(),()=>{var E;h.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),m==null||m(),(E=b)==null||E.disconnect(),b=null,l&&cancelAnimationFrame(w)}}const gW=Xz,vW=Jz,yW=Gz,bW=(e,t,n)=>{const r=new Map,i={platform:hW,...n},a={...i.platform,_c:r};return Hz(e,t,{...i,platform:a})};var $W=typeof document<"u",xW=function(){},Eh=$W?L.useLayoutEffect:xW;function Jh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Jh(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function a5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fS(e,t){const n=a5(e);return Math.round(t*n)/n}function zy(e){const t=ce.useRef(e);return Eh(()=>{t.current=e}),t}function s5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:d}=e,[h,m]=ce.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=ce.useState(r);Jh(g,r)||b(r);const[w,x]=ce.useState(null),[A,E]=ce.useState(null),C=ce.useCallback(K=>{K!==R.current&&(R.current=K,x(K))},[]),S=ce.useCallback(K=>{K!==z.current&&(z.current=K,E(K))},[]),M=a||w,_=s||A,R=ce.useRef(null),z=ce.useRef(null),re=ce.useRef(h),ge=l!=null,le=zy(l),I=zy(i),Ce=zy(d),we=ce.useCallback(()=>{if(!R.current||!z.current)return;const K={placement:t,strategy:n,middleware:g};I.current&&(K.platform=I.current),bW(R.current,z.current,K).then(de=>{const k={...de,isPositioned:Ce.current!==!1};U.current&&!Jh(re.current,k)&&(re.current=k,Os.flushSync(()=>{m(k)}))})},[g,t,n,I,Ce]);Eh(()=>{d===!1&&re.current.isPositioned&&(re.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[d]);const U=ce.useRef(!1);Eh(()=>(U.current=!0,()=>{U.current=!1}),[]),Eh(()=>{if(M&&(R.current=M),_&&(z.current=_),M&&_){if(le.current)return le.current(M,_,we);we()}},[M,_,we,le,ge]);const ee=ce.useMemo(()=>({reference:R,floating:z,setReference:C,setFloating:S}),[C,S]),N=ce.useMemo(()=>({reference:M,floating:_}),[M,_]),O=ce.useMemo(()=>{const K={position:n,left:0,top:0};if(!N.floating)return K;const de=fS(N.floating,h.x),k=fS(N.floating,h.y);return o?{...K,transform:"translate("+de+"px, "+k+"px)",...a5(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:de,top:k}},[n,o,N.floating,h.x,h.y]);return ce.useMemo(()=>({...h,update:we,refs:ee,elements:N,floatingStyles:O}),[h,we,ee,N,O])}const wW=(e,t)=>({...gW(e),options:[e,t]}),CW=(e,t)=>({...vW(e),options:[e,t]}),EW=(e,t)=>({...yW(e),options:[e,t]}),SW="data-floating-ui-focusable",dS="active",hS="selected",DW={...ce};let pS=!1,AW=0;const mS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+AW++;function TW(){const[e,t]=ce.useState(()=>pS?mS():void 0);return Kl(()=>{e==null&&t(mS())},[]),ce.useEffect(()=>{pS=!0},[]),e}const PW=DW.useId,o5=PW||TW;let Ob;process.env.NODE_ENV!=="production"&&(Ob=new Set);function _W(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ob)!=null&&e.has(i))){var a;(a=Ob)==null||a.add(i),console.error(i)}}function MW(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const FW=ce.createContext(null),RW=ce.createContext(null),B4=()=>{var e;return((e=ce.useContext(FW))==null?void 0:e.id)||null},u5=()=>ce.useContext(RW);function l5(e){return"data-floating-ui-"+e}function Li(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const gS=l5("safe-polygon");function Wy(e,t,n){if(n&&!kb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function Hy(e){return typeof e=="function"?e():e}function kW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:o=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=u5(),w=B4(),x=rh(d),A=rh(l),E=rh(n),C=rh(m),S=ce.useRef(),M=ce.useRef(-1),_=ce.useRef(),R=ce.useRef(-1),z=ce.useRef(!0),re=ce.useRef(!1),ge=ce.useRef(()=>{}),le=ce.useRef(!1),I=cf(()=>{var O;const K=(O=i.current.openEvent)==null?void 0:O.type;return(K==null?void 0:K.includes("mouse"))&&K!=="mousedown"});ce.useEffect(()=>{if(!o)return;function O(K){let{open:de}=K;de||(Li(M),Li(R),z.current=!0,le.current=!1)}return a.on("openchange",O),()=>{a.off("openchange",O)}},[o,a]),ce.useEffect(()=>{if(!o||!x.current||!n)return;function O(de){I()&&r(!1,de,"hover")}const K=lf(s.floating).documentElement;return K.addEventListener("mouseleave",O),()=>{K.removeEventListener("mouseleave",O)}},[s.floating,n,r,o,x,I]);const Ce=ce.useCallback(function(O,K,de){K===void 0&&(K=!0),de===void 0&&(de="hover");const k=Wy(A.current,"close",S.current);k&&!_.current?(Li(M),M.current=window.setTimeout(()=>r(!1,O,de),k)):K&&(Li(M),r(!1,O,de))},[A,r]),we=cf(()=>{ge.current(),_.current=void 0}),U=cf(()=>{if(re.current){const O=lf(s.floating).body;O.style.pointerEvents="",O.removeAttribute(gS),re.current=!1}}),ee=cf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);ce.useEffect(()=>{if(!o)return;function O(oe){if(Li(M),z.current=!1,h&&!kb(S.current)||Hy(C.current)>0&&!Wy(A.current,"open"))return;const Te=Wy(A.current,"open",S.current);Te?M.current=window.setTimeout(()=>{E.current||r(!0,oe,"hover")},Te):n||r(!0,oe,"hover")}function K(oe){if(ee()){U();return}ge.current();const Te=lf(s.floating);if(Li(R),le.current=!1,x.current&&i.current.floatingContext){n||Li(M),_.current=x.current({...i.current.floatingContext,tree:b,x:oe.clientX,y:oe.clientY,onClose(){U(),we(),ee()||Ce(oe,!0,"safe-polygon")}});const Le=_.current;Te.addEventListener("mousemove",Le),ge.current=()=>{Te.removeEventListener("mousemove",Le)};return}(S.current==="touch"?!Rb(s.floating,oe.relatedTarget):!0)&&Ce(oe)}function de(oe){ee()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:oe.clientX,y:oe.clientY,onClose(){U(),we(),ee()||Ce(oe)}})(oe))}function k(){Li(M)}function se(oe){ee()||Ce(oe,!1)}if(Qn(s.domReference)){const oe=s.domReference,Te=s.floating;return n&&oe.addEventListener("mouseleave",de),g&&oe.addEventListener("mousemove",O,{once:!0}),oe.addEventListener("mouseenter",O),oe.addEventListener("mouseleave",K),Te&&(Te.addEventListener("mouseleave",de),Te.addEventListener("mouseenter",k),Te.addEventListener("mouseleave",se)),()=>{n&&oe.removeEventListener("mouseleave",de),g&&oe.removeEventListener("mousemove",O),oe.removeEventListener("mouseenter",O),oe.removeEventListener("mouseleave",K),Te&&(Te.removeEventListener("mouseleave",de),Te.removeEventListener("mouseenter",k),Te.removeEventListener("mouseleave",se))}}},[s,o,e,h,g,Ce,we,U,r,n,E,b,A,x,i,ee,C]),Kl(()=>{var O;if(o&&n&&(O=x.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&I()){re.current=!0;const de=s.floating;if(Qn(s.domReference)&&de){var K;const k=lf(s.floating).body;k.setAttribute(gS,"");const se=s.domReference,oe=b==null||(K=b.nodesRef.current.find(Te=>Te.id===w))==null||(K=K.context)==null?void 0:K.elements.floating;return oe&&(oe.style.pointerEvents=""),k.style.pointerEvents="none",se.style.pointerEvents="auto",de.style.pointerEvents="auto",()=>{k.style.pointerEvents="",se.style.pointerEvents="",de.style.pointerEvents=""}}}},[o,n,w,s,b,x,I]),Kl(()=>{n||(S.current=void 0,le.current=!1,we(),U())},[n,we,U]),ce.useEffect(()=>()=>{we(),Li(M),Li(R),U()},[o,s.domReference,we,U]);const N=ce.useMemo(()=>{function O(K){S.current=K.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(K){const{nativeEvent:de}=K;function k(){!z.current&&!E.current&&r(!0,de,"hover")}h&&!kb(S.current)||n||Hy(C.current)===0||le.current&&K.movementX**2+K.movementY**2<2||(Li(R),S.current==="touch"?k():(le.current=!0,R.current=window.setTimeout(k,Hy(C.current))))}}},[h,r,n,E,C]);return ce.useMemo(()=>o?{reference:N}:{},[o,N])}function OW(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=o5(),a=ce.useRef({}),[s]=ce.useState(()=>MW()),o=B4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!Qn(b)&&_W("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=ce.useState(r.reference),h=cf((b,w,x)=>{a.current.openEvent=b?w:void 0,s.emit("openchange",{open:b,event:w,reason:x,nested:o}),n==null||n(b,w,x)}),m=ce.useMemo(()=>({setPositionReference:d}),[]),g=ce.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ce.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:s,floatingId:i,refs:m}),[t,h,g,s,i,m])}function IW(e){e===void 0&&(e={});const{nodeId:t}=e,n=OW({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=ce.useState(null),[o,l]=ce.useState(null),h=(i==null?void 0:i.domReference)||a,m=ce.useRef(null),g=u5();Kl(()=>{h&&(m.current=h)},[h]);const b=s5({...e,elements:{...i,...o&&{reference:o}}}),w=ce.useCallback(S=>{const M=Qn(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;l(M),b.refs.setReference(M)},[b.refs]),x=ce.useCallback(S=>{(Qn(S)||S===null)&&(m.current=S,s(S)),(Qn(b.refs.reference.current)||b.refs.reference.current===null||S!==null&&!Qn(S))&&b.refs.setReference(S)},[b.refs]),A=ce.useMemo(()=>({...b.refs,setReference:x,setPositionReference:w,domReference:m}),[b.refs,x,w]),E=ce.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=ce.useMemo(()=>({...b,...r,refs:A,elements:E,nodeId:t}),[b,A,E,t,r]);return Kl(()=>{r.dataRef.current.floatingContext=C;const S=g==null?void 0:g.nodesRef.current.find(M=>M.id===t);S&&(S.context=C)}),ce.useMemo(()=>({...b,context:C,refs:A,elements:E}),[b,A,E,C])}function Gy(){return Oz()&&kz()}function LW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=e,{enabled:o=!0,visibleOnly:l=!0}=t,d=ce.useRef(!1),h=ce.useRef(-1),m=ce.useRef(!0);ce.useEffect(()=>{if(!o)return;const b=ai(s.domReference);function w(){!n&&Zi(s.domReference)&&s.domReference===sS(lf(s.domReference))&&(d.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",w),Gy()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",w),Gy()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[s.domReference,n,o]),ce.useEffect(()=>{if(!o)return;function b(w){let{reason:x}=w;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),ce.useEffect(()=>()=>{Li(h)},[]);const g=ce.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const w=Bz(b.nativeEvent);if(l&&Qn(w)){if(Gy()&&!b.relatedTarget){if(!m.current&&!Vz(w))return}else if(!Nz(w))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const w=b.relatedTarget,x=b.nativeEvent,A=Qn(w)&&w.hasAttribute(l5("focus-guard"))&&w.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var E;const C=sS(s.domReference?s.domReference.ownerDocument:document);!w&&C===s.domReference||Rb((E=a.current.floatingContext)==null?void 0:E.refs.floating.current,C)||Rb(s.domReference,C)||A||r(!1,x,"focus")})}}),[a,s.domReference,r,l]);return ce.useMemo(()=>o?{reference:g}:{},[o,g])}function Yy(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[dS]:s,[hS]:o,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[SW]:""},...a,...t.map(s=>{const o=s?s[n]:null;return typeof o=="function"?e?o(e):null:o}).concat(e).reduce((s,o)=>(o&&Object.entries(o).forEach(l=>{let[d,h]=l;if(!(i&&[dS,hS].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),s[d]=function(){for(var g,b=arguments.length,w=new Array(b),x=0;x<b;x++)w[x]=arguments[x];return(g=r.get(d))==null?void 0:g.map(A=>A(...w)).find(A=>A!==void 0)}}}else s[d]=h}),s),{})}}function BW(e){e===void 0&&(e=[]);const t=e.map(o=>o==null?void 0:o.reference),n=e.map(o=>o==null?void 0:o.floating),r=e.map(o=>o==null?void 0:o.item),i=ce.useCallback(o=>Yy(o,e,"reference"),t),a=ce.useCallback(o=>Yy(o,e,"floating"),n),s=ce.useCallback(o=>Yy(o,e,"item"),r);return ce.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const VW=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function NW(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:s}=e,{enabled:o=!0,role:l="dialog"}=t,d=o5(),h=((n=a.domReference)==null?void 0:n.id)||d,m=ce.useMemo(()=>{var C;return((C=jz(a.floating))==null?void 0:C.id)||s},[a.floating,s]),g=(r=VW.get(l))!=null?r:l,w=B4()!=null,x=ce.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&w&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,w,i,h,l]),A=ce.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),E=ce.useCallback(C=>{let{active:S,selected:M}=C;const _={role:"option",...S&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{..._,"aria-selected":M}}return{}},[m,l]);return ce.useMemo(()=>o?{reference:x,floating:A,item:E}:{},[o,x,A,E])}var Jf=e=>e.type==="checkbox",iu=e=>e instanceof Date,ei=e=>e==null;const c5=e=>typeof e=="object";var er=e=>!ei(e)&&!Array.isArray(e)&&c5(e)&&!iu(e),f5=e=>er(e)&&e.target?Jf(e.target)?e.target.checked:e.target.value:e,jW=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d5=(e,t)=>e.has(jW(t)),KW=e=>{const t=e.constructor&&e.constructor.prototype;return er(t)&&t.hasOwnProperty("isPrototypeOf")},V4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(V4&&(e instanceof Blob||r))&&(n||er(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!KW(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=xn(e[i]));else return e;return t}var Jp=e=>/^\w*$/.test(e),mn=e=>e===void 0,Qp=e=>Array.isArray(e)?e.filter(Boolean):[],N4=e=>Qp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!er(e))return n;const r=(Jp(t)?[t]:N4(t)).reduce((i,a)=>ei(i)?i:i[a],e);return mn(r)||r===e?mn(e[t])?n:e[t]:r},$i=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=Jp(t)?[t]:N4(t),a=i.length,s=a-1;for(;++r<a;){const o=i[r];let l=n;if(r!==s){const d=e[o];l=er(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const Qh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ui={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ts={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},j4=ce.default.createContext(null);j4.displayName="HookFormContext";const Qf=()=>ce.default.useContext(j4),UW=e=>{const{children:t,...n}=e;return ce.default.createElement(j4.Provider,{value:n},t)};var h5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ui.all&&(t._proxyFormState[s]=!r||Ui.all),n&&(n[s]=!0),e[s]}});return i};const em=typeof window<"u"?ce.default.useLayoutEffect:ce.default.useEffect;function qW(e){const t=Qf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=ce.default.useState(n._formState),l=ce.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return em(()=>n._subscribe({name:i,formState:l.current,exact:a,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,a]),ce.default.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),ce.default.useMemo(()=>h5(s,n,l.current,!1),[s,n])}var xi=e=>typeof e=="string",p5=(e,t,n,r,i)=>xi(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),it(n,a))):(r&&(t.watchAll=!0),n),Ib=e=>ei(e)||!c5(e);function _s(e,t,n=new WeakSet){if(Ib(e)||Ib(t))return e===t;if(iu(e)&&iu(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const o=t[a];if(iu(s)&&iu(o)||er(s)&&er(o)||Array.isArray(s)&&Array.isArray(o)?!_s(s,o,n):s!==o)return!1}}return!0}function m5(e){const t=Qf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s,compute:o}=e||{},l=ce.default.useRef(i),d=ce.default.useRef(o),h=ce.default.useRef(void 0);d.current=o;const m=ce.default.useMemo(()=>n._getWatch(r,l.current),[n,r]),[g,b]=ce.default.useState(d.current?d.current(m):m);return em(()=>n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{if(!a){const x=p5(r,n._names,w.values||n._formValues,!1,l.current);if(d.current){const A=d.current(x);_s(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,s]),ce.default.useEffect(()=>n._removeUnmounted()),g}function g5(e){const t=Qf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:s}=e,o=d5(i._names.array,n),l=ce.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,s)),[i,n,s]),d=m5({control:i,name:n,defaultValue:l,exact:!0}),h=qW({control:i,name:n,exact:!0}),m=ce.default.useRef(e),g=ce.default.useRef(void 0),b=ce.default.useRef(i.register(n,{...e.rules,value:d,...$i(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const w=ce.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),x=ce.default.useCallback(S=>b.current.onChange({target:{value:f5(S),name:n},type:Qh.CHANGE}),[n]),A=ce.default.useCallback(()=>b.current.onBlur({target:{value:it(i._formValues,n),name:n},type:Qh.BLUR}),[n,i._formValues]),E=ce.default.useCallback(S=>{const M=it(i._fields,n);M&&S&&(M._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:_=>S.setCustomValidity(_),reportValidity:()=>S.reportValidity()})},[i._fields,n]),C=ce.default.useMemo(()=>({name:n,value:d,...$i(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:x,onBlur:A,ref:E}),[n,r,h.disabled,x,A,E,d]);return ce.default.useEffect(()=>{const S=i._options.shouldUnregister||a,M=g.current;M&&M!==n&&!o&&i.unregister(M),i.register(n,{...m.current.rules,...$i(m.current.disabled)?{disabled:m.current.disabled}:{}});const _=(R,z)=>{const re=it(i._fields,R);re&&re._f&&(re._f.mount=z)};if(_(n,!0),S){const R=xn(it(i._options.defaultValues,n,m.current.defaultValue));nn(i._defaultValues,n,R),mn(it(i._formValues,n))&&nn(i._formValues,n,R)}return!o&&i.register(n),g.current=n,()=>{(o?S&&!i._state.action:S)?i.unregister(n):_(n,!1)}},[n,i,o,a]),ce.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),ce.default.useMemo(()=>({field:C,formState:h,fieldState:w}),[C,h,w])}const zW=e=>e.render(g5(e));var v5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ni=e=>Array.isArray(e)?e:[e],vS=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function y5(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&er(i)&&a){const s=y5(i,a);er(s)&&(n[r]=s)}else e[r]&&(n[r]=a)}return n}var Ir=e=>er(e)&&!Object.keys(e).length,K4=e=>e.type==="file",ma=e=>typeof e=="function",ep=e=>{if(!V4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},b5=e=>e.type==="select-multiple",U4=e=>e.type==="radio",WW=e=>U4(e)||Jf(e),Zy=e=>ep(e)&&e.isConnected;function HW(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=mn(e)?r++:e[t[r++]];return e}function GW(e){for(const t in e)if(e.hasOwnProperty(t)&&!mn(e[t]))return!1;return!0}function zn(e,t){const n=Array.isArray(t)?t:Jp(t)?[t]:N4(t),r=n.length===1?e:HW(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(er(r)&&Ir(r)||Array.isArray(r)&&GW(r))&&zn(e,n.slice(0,-1)),e}var YW=e=>{for(const t in e)if(ma(e[t]))return!0;return!1};function $5(e){return Array.isArray(e)||er(e)&&!YW(e)}function Lb(e,t={}){for(const n in e)$5(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Lb(e[n],t[n])):mn(e[n])||(t[n]=!0);return t}function pl(e,t,n){n||(n=Lb(t));for(const r in e)$5(e[r])?mn(t)||Ib(n[r])?n[r]=Lb(e[r],Array.isArray(e[r])?[]:{}):pl(e[r],ei(t)?{}:t[r],n[r]):n[r]=!_s(e[r],t[r]);return n}const yS={value:!1,isValid:!1},bS={value:!0,isValid:!0};var x5=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!mn(e[0].attributes.value)?mn(e[0].value)||e[0].value===""?bS:{value:e[0].value,isValid:!0}:bS:yS}return yS},w5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>mn(e)?e:t?e===""?NaN:e&&+e:n&&xi(e)?new Date(e):r?r(e):e;const $S={isValid:!1,value:null};var C5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$S):$S;function xS(e){const t=e.ref;return K4(t)?t.files:U4(t)?C5(e.refs).value:b5(t)?[...t.selectedOptions].map(({value:n})=>n):Jf(t)?x5(e.refs).value:w5(mn(t.value)?e.ref.value:t.value,e)}var ZW=(e,t,n,r)=>{const i={};for(const a of e){const s=it(t,a);s&&nn(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},tp=e=>e instanceof RegExp,Gc=e=>mn(e)?e:tp(e)?e.source:er(e)?tp(e.value)?e.value.source:e.value:e,vl=e=>({isOnSubmit:!e||e===Ui.onSubmit,isOnBlur:e===Ui.onBlur,isOnChange:e===Ui.onChange,isOnAll:e===Ui.all,isOnTouch:e===Ui.onTouched});const wS="AsyncFunction";var XW=e=>!!e&&!!e.validate&&!!(ma(e.validate)&&e.validate.constructor.name===wS||er(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===wS)),JW=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Bb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const _l=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(_l(o,t))break}else if(er(o)&&_l(o,t))break}}};function CS(e,t,n){const r=it(e,n);if(r||Jp(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=it(t,a),o=it(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};if(o&&o.root&&o.root.type)return{name:`${a}.root`,error:o.root};i.pop()}return{name:n}}var QW=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Ir(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Ui.all))},eH=(e,t,n)=>!e||!t||e===t||ni(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),tH=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,nH=(e,t)=>!Qp(it(e,t)).length&&zn(e,t),E5=(e,t,n)=>{const r=ni(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e};function ES(e,t,n="validate"){if(xi(e)||Array.isArray(e)&&e.every(xi)||$i(e)&&!e)return{type:n,message:xi(e)?e:"",ref:t}}var ul=e=>er(e)&&!tp(e)?e:{value:e,message:""},Vb=async(e,t,n,r,i,a)=>{const{ref:s,refs:o,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:w,name:x,valueAsNumber:A,mount:E}=e._f,C=it(n,x);if(!E||t.has(x))return{};const S=o?o[0]:s,M=Ce=>{i&&S.reportValidity&&(S.setCustomValidity($i(Ce)?"":Ce||""),S.reportValidity())},_={},R=U4(s),z=Jf(s),re=R||z,ge=(A||K4(s))&&mn(s.value)&&mn(C)||ep(s)&&s.value===""||C===""||Array.isArray(C)&&!C.length,le=v5.bind(null,x,r,_),I=(Ce,we,U,ee=Ts.maxLength,N=Ts.minLength)=>{const O=Ce?we:U;_[x]={type:Ce?ee:N,message:O,ref:s,...le(Ce?ee:N,O)}};if(a?!Array.isArray(C)||!C.length:l&&(!re&&(ge||ei(C))||$i(C)&&!C||z&&!x5(o).isValid||R&&!C5(o).isValid)){const{value:Ce,message:we}=xi(l)?{value:!!l,message:l}:ul(l);if(Ce&&(_[x]={type:Ts.required,message:we,ref:S,...le(Ts.required,we)},!r))return M(we),_}if(!ge&&(!ei(m)||!ei(g))){let Ce,we;const U=ul(g),ee=ul(m);if(!ei(C)&&!isNaN(C)){const N=s.valueAsNumber||C&&+C;ei(U.value)||(Ce=N>U.value),ei(ee.value)||(we=N<ee.value)}else{const N=s.valueAsDate||new Date(C),O=k=>new Date(new Date().toDateString()+" "+k),K=s.type=="time",de=s.type=="week";xi(U.value)&&C&&(Ce=K?O(C)>O(U.value):de?C>U.value:N>new Date(U.value)),xi(ee.value)&&C&&(we=K?O(C)<O(ee.value):de?C<ee.value:N<new Date(ee.value))}if((Ce||we)&&(I(!!Ce,U.message,ee.message,Ts.max,Ts.min),!r))return M(_[x].message),_}if((d||h)&&!ge&&(xi(C)||a&&Array.isArray(C))){const Ce=ul(d),we=ul(h),U=!ei(Ce.value)&&C.length>+Ce.value,ee=!ei(we.value)&&C.length<+we.value;if((U||ee)&&(I(U,Ce.message,we.message),!r))return M(_[x].message),_}if(b&&!ge&&xi(C)){const{value:Ce,message:we}=ul(b);if(tp(Ce)&&!C.match(Ce)&&(_[x]={type:Ts.pattern,message:we,ref:s,...le(Ts.pattern,we)},!r))return M(we),_}if(w){if(ma(w)){const Ce=await w(C,n),we=ES(Ce,S);if(we&&(_[x]={...we,...le(Ts.validate,we.message)},!r))return M(we.message),_}else if(er(w)){let Ce={};for(const we in w){if(!Ir(Ce)&&!r)break;const U=ES(await w[we](C,n),S,we);U&&(Ce={...U,...le(we,U.message)},M(U.message),r&&(_[x]=Ce))}if(!Ir(Ce)&&(_[x]={ref:S,...Ce},!r))return _}}return M(!0),_};const rH={mode:Ui.onSubmit,reValidateMode:Ui.onChange,shouldFocusError:!0};function iH(e={}){let t={...rH,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ma(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=er(t.defaultValues)||er(t.values)?xn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:xn(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:vS(),state:vS()},b=t.criteriaMode===Ui.all,w=be=>De=>{clearTimeout(d),d=setTimeout(be,De)},x=async be=>{if(!t.disabled&&(h.isValid||m.isValid||be)){const De=t.resolver?Ir((await z()).errors):await ge(r,!0);De!==n.isValid&&g.state.next({isValid:De})}},A=(be,De)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((be||Array.from(o.mount)).forEach(_e=>{_e&&(De?nn(n.validatingFields,_e,De):zn(n.validatingFields,_e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Ir(n.validatingFields)}))},E=(be,De=[],_e,Xe,et=!0,Je=!0)=>{if(Xe&&_e&&!t.disabled){if(s.action=!0,Je&&Array.isArray(it(r,be))){const gt=_e(it(r,be),Xe.argA,Xe.argB);et&&nn(r,be,gt)}if(Je&&Array.isArray(it(n.errors,be))){const gt=_e(it(n.errors,be),Xe.argA,Xe.argB);et&&nn(n.errors,be,gt),nH(n.errors,be)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,be))){const gt=_e(it(n.touchedFields,be),Xe.argA,Xe.argB);et&&nn(n.touchedFields,be,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=pl(i,a)),g.state.next({name:be,isDirty:I(be,De),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,be,De)},C=(be,De)=>{nn(n.errors,be,De),g.state.next({errors:n.errors})},S=be=>{n.errors=be,g.state.next({errors:n.errors,isValid:!1})},M=(be,De,_e,Xe)=>{const et=it(r,be);if(et){const Je=it(a,be,mn(_e)?it(i,be):_e);mn(Je)||Xe&&Xe.defaultChecked||De?nn(a,be,De?Je:xS(et._f)):U(be,Je),s.mount&&x()}},_=(be,De,_e,Xe,et)=>{let Je=!1,gt=!1;const Rt={name:be};if(!t.disabled){if(!_e||Xe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=Rt.isDirty=I(),Je=gt!==Rt.isDirty);const xt=_s(it(i,be),De);gt=!!it(n.dirtyFields,be),xt?zn(n.dirtyFields,be):nn(n.dirtyFields,be,!0),Rt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&>!==!xt}if(_e){const xt=it(n.touchedFields,be);xt||(nn(n.touchedFields,be,_e),Rt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&xt!==_e)}Je&&et&&g.state.next(Rt)}return Je?Rt:{}},R=(be,De,_e,Xe)=>{const et=it(n.errors,be),Je=(h.isValid||m.isValid)&&$i(De)&&n.isValid!==De;if(t.delayError&&_e?(l=w(()=>C(be,_e)),l(t.delayError)):(clearTimeout(d),l=null,_e?nn(n.errors,be,_e):zn(n.errors,be)),(_e?!_s(et,_e):et)||!Ir(Xe)||Je){const gt={...Xe,...Je&&$i(De)?{isValid:De}:{},errors:n.errors,name:be};n={...n,...gt},g.state.next(gt)}},z=async be=>{A(be,!0);const De=await t.resolver(a,t.context,ZW(be||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(be),De},re=async be=>{const{errors:De}=await z(be);if(be)for(const _e of be){const Xe=it(De,_e);Xe?nn(n.errors,_e,Xe):zn(n.errors,_e)}else n.errors=De;return De},ge=async(be,De,_e={valid:!0})=>{for(const Xe in be){const et=be[Xe];if(et){const{_f:Je,...gt}=et;if(Je){const Rt=o.array.has(Je.name),xt=et._f&&XW(et._f);xt&&h.validatingFields&&A([Je.name],!0);const vn=await Vb(et,o.disabled,a,b,t.shouldUseNativeValidation&&!De,Rt);if(xt&&h.validatingFields&&A([Je.name]),vn[Je.name]&&(_e.valid=!1,De))break;!De&&(it(vn,Je.name)?Rt?E5(n.errors,vn,Je.name):nn(n.errors,Je.name,vn[Je.name]):zn(n.errors,Je.name))}!Ir(gt)&&await ge(gt,De,_e)}}return _e.valid},le=()=>{for(const be of o.unMount){const De=it(r,be);De&&(De._f.refs?De._f.refs.every(_e=>!Zy(_e)):!Zy(De._f.ref))&&Qe(be)}o.unMount=new Set},I=(be,De)=>!t.disabled&&(be&&De&&nn(a,be,De),!_s(k(),i)),Ce=(be,De,_e)=>p5(be,o,{...s.mount?a:mn(De)?i:xi(be)?{[be]:De}:De},_e,De),we=be=>Qp(it(s.mount?a:i,be,t.shouldUnregister?it(i,be,[]):[])),U=(be,De,_e={})=>{const Xe=it(r,be);let et=De;if(Xe){const Je=Xe._f;Je&&(!Je.disabled&&nn(a,be,w5(De,Je)),et=ep(Je.ref)&&ei(De)?"":De,b5(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=et.includes(gt.value)):Je.refs?Jf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(et)?gt.checked=!!et.find(Rt=>Rt===gt.value):gt.checked=et===gt.value||!!et)}):Je.refs.forEach(gt=>gt.checked=gt.value===et):K4(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||g.state.next({name:be,values:xn(a)})))}(_e.shouldDirty||_e.shouldTouch)&&_(be,et,_e.shouldTouch,_e.shouldDirty,!0),_e.shouldValidate&&de(be)},ee=(be,De,_e)=>{for(const Xe in De){if(!De.hasOwnProperty(Xe))return;const et=De[Xe],Je=be+"."+Xe,gt=it(r,Je);(o.array.has(be)||er(et)||gt&&!gt._f)&&!iu(et)?ee(Je,et,_e):U(Je,et,_e)}},N=(be,De,_e={})=>{const Xe=it(r,be),et=o.array.has(be),Je=xn(De);nn(a,be,Je),et?(g.array.next({name:be,values:xn(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&_e.shouldDirty&&g.state.next({name:be,dirtyFields:pl(i,a),isDirty:I(be,Je)})):Xe&&!Xe._f&&!ei(Je)?ee(be,Je,_e):U(be,Je,_e),Bb(be,o)&&g.state.next({...n,name:be}),g.state.next({name:s.mount?be:void 0,values:xn(a)})},O=async be=>{s.mount=!0;const De=be.target;let _e=De.name,Xe=!0;const et=it(r,_e),Je=xt=>{Xe=Number.isNaN(xt)||iu(xt)&&isNaN(xt.getTime())||_s(xt,it(a,_e,xt))},gt=vl(t.mode),Rt=vl(t.reValidateMode);if(et){let xt,vn;const br=De.type?xS(et._f):f5(be),Ut=be.type===Qh.BLUR||be.type===Qh.FOCUS_OUT,Pt=!JW(et._f)&&!t.resolver&&!it(n.errors,_e)&&!et._f.deps||tH(Ut,it(n.touchedFields,_e),n.isSubmitted,Rt,gt),It=Bb(_e,o,Ut);nn(a,_e,br),Ut?(!De||!De.readOnly)&&(et._f.onBlur&&et._f.onBlur(be),l&&l(0)):et._f.onChange&&et._f.onChange(be);const qt=_(_e,br,Ut),fr=!Ir(qt)||It;if(!Ut&&g.state.next({name:_e,type:be.type,values:xn(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?Ut&&x():Ut||x()),fr&&g.state.next({name:_e,...It?{}:qt});if(!Ut&&It&&g.state.next({...n}),t.resolver){const{errors:zr}=await z([_e]);if(Je(br),Xe){const si=CS(n.errors,r,_e),Pr=CS(zr,r,si.name||_e);xt=Pr.error,_e=Pr.name,vn=Ir(zr)}}else A([_e],!0),xt=(await Vb(et,o.disabled,a,b,t.shouldUseNativeValidation))[_e],A([_e]),Je(br),Xe&&(xt?vn=!1:(h.isValid||m.isValid)&&(vn=await ge(r,!0)));Xe&&(et._f.deps&&(!Array.isArray(et._f.deps)||et._f.deps.length>0)&&de(et._f.deps),R(_e,vn,xt,qt))}},K=(be,De)=>{if(it(n.errors,De)&&be.focus)return be.focus(),1},de=async(be,De={})=>{let _e,Xe;const et=ni(be);if(t.resolver){const Je=await re(mn(be)?be:et);_e=Ir(Je),Xe=be?!et.some(gt=>it(Je,gt)):_e}else be?(Xe=(await Promise.all(et.map(async Je=>{const gt=it(r,Je);return await ge(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Xe&&!n.isValid)&&x()):Xe=_e=await ge(r);return g.state.next({...!xi(be)||(h.isValid||m.isValid)&&_e!==n.isValid?{}:{name:be},...t.resolver||!be?{isValid:_e}:{},errors:n.errors}),De.shouldFocus&&!Xe&&_l(r,K,be?et:o.mount),Xe},k=(be,De)=>{let _e={...s.mount?a:i};return De&&(_e=y5(De.dirtyFields?n.dirtyFields:n.touchedFields,_e)),mn(be)?_e:xi(be)?it(_e,be):be.map(Xe=>it(_e,Xe))},se=(be,De)=>({invalid:!!it((De||n).errors,be),isDirty:!!it((De||n).dirtyFields,be),error:it((De||n).errors,be),isValidating:!!it(n.validatingFields,be),isTouched:!!it((De||n).touchedFields,be)}),oe=be=>{be&&ni(be).forEach(De=>zn(n.errors,De)),g.state.next({errors:be?n.errors:{}})},Te=(be,De,_e)=>{const Xe=(it(r,be,{_f:{}})._f||{}).ref,et=it(n.errors,be)||{},{ref:Je,message:gt,type:Rt,...xt}=et;nn(n.errors,be,{...xt,...De,ref:Xe}),g.state.next({name:be,errors:n.errors,isValid:!1}),_e&&_e.shouldFocus&&Xe&&Xe.focus&&Xe.focus()},Me=(be,De)=>ma(be)?g.state.subscribe({next:_e=>"values"in _e&&be(Ce(void 0,De),_e)}):Ce(be,De,!0),Le=be=>g.state.subscribe({next:De=>{eH(be.name,De.name,be.exact)&&QW(De,be.formState||h,_t,be.reRenderRoot)&&be.callback({values:{...a},...n,...De,defaultValues:i})}}).unsubscribe,Ye=be=>(s.mount=!0,m={...m,...be.formState},Le({...be,formState:m})),Qe=(be,De={})=>{for(const _e of be?ni(be):o.mount)o.mount.delete(_e),o.array.delete(_e),De.keepValue||(zn(r,_e),zn(a,_e)),!De.keepError&&zn(n.errors,_e),!De.keepDirty&&zn(n.dirtyFields,_e),!De.keepTouched&&zn(n.touchedFields,_e),!De.keepIsValidating&&zn(n.validatingFields,_e),!t.shouldUnregister&&!De.keepDefaultValue&&zn(i,_e);g.state.next({values:xn(a)}),g.state.next({...n,...De.keepDirty?{isDirty:I()}:{}}),!De.keepIsValid&&x()},Ue=({disabled:be,name:De})=>{($i(be)&&s.mount||be||o.disabled.has(De))&&(be?o.disabled.add(De):o.disabled.delete(De))},Ge=(be,De={})=>{let _e=it(r,be);const Xe=$i(De.disabled)||$i(t.disabled);return nn(r,be,{..._e||{},_f:{..._e&&_e._f?_e._f:{ref:{name:be}},name:be,mount:!0,...De}}),o.mount.add(be),_e?Ue({disabled:$i(De.disabled)?De.disabled:t.disabled,name:be}):M(be,!0,De.value),{...Xe?{disabled:De.disabled||t.disabled}:{},...t.progressive?{required:!!De.required,min:Gc(De.min),max:Gc(De.max),minLength:Gc(De.minLength),maxLength:Gc(De.maxLength),pattern:Gc(De.pattern)}:{},name:be,onChange:O,onBlur:O,ref:et=>{if(et){Ge(be,De),_e=it(r,be);const Je=mn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,gt=WW(Je),Rt=_e._f.refs||[];if(gt?Rt.find(xt=>xt===Je):Je===_e._f.ref)return;nn(r,be,{_f:{..._e._f,...gt?{refs:[...Rt.filter(Zy),Je,...Array.isArray(it(i,be))?[{}]:[]],ref:{type:Je.type,name:be}}:{ref:Je}}}),M(be,!1,void 0,Je)}else _e=it(r,be,{}),_e._f&&(_e._f.mount=!1),(t.shouldUnregister||De.shouldUnregister)&&!(d5(o.array,be)&&s.action)&&o.unMount.add(be)}}},Ie=()=>t.shouldFocusError&&_l(r,K,o.mount),Ne=be=>{$i(be)&&(g.state.next({disabled:be}),_l(r,(De,_e)=>{const Xe=it(r,_e);Xe&&(De.disabled=Xe._f.disabled||be,Array.isArray(Xe._f.refs)&&Xe._f.refs.forEach(et=>{et.disabled=Xe._f.disabled||be}))},0,!1))},Ae=(be,De)=>async _e=>{let Xe;_e&&(_e.preventDefault&&_e.preventDefault(),_e.persist&&_e.persist());let et=xn(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await z();n.errors=Je,et=xn(gt)}else await ge(r);if(o.disabled.size)for(const Je of o.disabled)zn(et,Je);if(zn(n.errors,"root"),Ir(n.errors)){g.state.next({errors:{}});try{await be(et,_e)}catch(Je){Xe=Je}}else De&&await De({...n.errors},_e),Ie(),setTimeout(Ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ir(n.errors)&&!Xe,submitCount:n.submitCount+1,errors:n.errors}),Xe)throw Xe},He=(be,De={})=>{it(r,be)&&(mn(De.defaultValue)?N(be,xn(it(i,be))):(N(be,De.defaultValue),nn(i,be,xn(De.defaultValue))),De.keepTouched||zn(n.touchedFields,be),De.keepDirty||(zn(n.dirtyFields,be),n.isDirty=De.defaultValue?I(be,xn(it(i,be))):I()),De.keepError||(zn(n.errors,be),h.isValid&&x()),g.state.next({...n}))},ht=(be,De={})=>{const _e=be?xn(be):i,Xe=xn(_e),et=Ir(be),Je=et?i:Xe;if(De.keepDefaultValues||(i=_e),!De.keepValues){if(De.keepDirtyValues){const gt=new Set([...o.mount,...Object.keys(pl(i,a))]);for(const Rt of Array.from(gt))it(n.dirtyFields,Rt)?nn(Je,Rt,it(a,Rt)):N(Rt,it(Je,Rt))}else{if(V4&&mn(be))for(const gt of o.mount){const Rt=it(r,gt);if(Rt&&Rt._f){const xt=Array.isArray(Rt._f.refs)?Rt._f.refs[0]:Rt._f.ref;if(ep(xt)){const vn=xt.closest("form");if(vn){vn.reset();break}}}}if(De.keepFieldsRef)for(const gt of o.mount)N(gt,it(Je,gt));else r={}}a=t.shouldUnregister?De.keepDefaultValues?xn(i):{}:xn(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}o={mount:De.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!De.keepIsValid||!!De.keepDirtyValues,s.watch=!!t.shouldUnregister,g.state.next({submitCount:De.keepSubmitCount?n.submitCount:0,isDirty:et?!1:De.keepDirty?n.isDirty:!!(De.keepDefaultValues&&!_s(be,i)),isSubmitted:De.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:De.keepDirtyValues?De.keepDefaultValues&&a?pl(i,a):n.dirtyFields:De.keepDefaultValues&&be?pl(i,be):De.keepDirty?n.dirtyFields:{},touchedFields:De.keepTouched?n.touchedFields:{},errors:De.keepErrors?n.errors:{},isSubmitSuccessful:De.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(be,De)=>ht(ma(be)?be(a):be,De),$t=(be,De={})=>{const _e=it(r,be),Xe=_e&&_e._f;if(Xe){const et=Xe.refs?Xe.refs[0]:Xe.ref;et.focus&&(et.focus(),De.shouldSelect&&ma(et.select)&&et.select())}},_t=be=>{n={...n,...be}},Qt={control:{register:Ge,unregister:Qe,getFieldState:se,handleSubmit:Ae,setError:Te,_subscribe:Le,_runSchema:z,_focusError:Ie,_getWatch:Ce,_getDirty:I,_setValid:x,_setFieldArray:E,_setDisabledField:Ue,_setErrors:S,_getFieldArray:we,_reset:ht,_resetDefaultValues:()=>ma(t.defaultValues)&&t.defaultValues().then(be=>{Ht(be,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:Ne,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(be){s=be},get _defaultValues(){return i},get _names(){return o},set _names(be){o=be},get _formState(){return n},get _options(){return t},set _options(be){t={...t,...be}}},subscribe:Ye,trigger:de,register:Ge,handleSubmit:Ae,watch:Me,setValue:N,getValues:k,reset:Ht,resetField:He,clearErrors:oe,unregister:Qe,setError:Te,setFocus:$t,getFieldState:se};return{...Qt,formControl:Qt}}var io=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Xy=(e,t,n={})=>n.shouldFocus||mn(n.shouldFocus)?n.focusName||`${e}.${mn(n.focusIndex)?t:n.focusIndex}.`:"",Jy=(e,t)=>[...e,...ni(t)],Qy=e=>Array.isArray(e)?e.map(()=>{}):void 0;function e0(e,t,n){return[...e.slice(0,t),...ni(n),...e.slice(t)]}var t0=(e,t,n)=>Array.isArray(e)?(mn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],n0=(e,t)=>[...ni(t),...ni(e)];function aH(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return Qp(r).length?r:[]}var r0=(e,t)=>mn(t)?[]:aH(e,ni(t).sort((n,r)=>n-r)),i0=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},SS=(e,t,n)=>(e[t]=n,e);function sH(e){const t=Qf(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:s}=e,[o,l]=ce.default.useState(n._getFieldArray(r)),d=ce.default.useRef(n._getFieldArray(r).map(io)),h=ce.default.useRef(!1);n._names.array.add(r),ce.default.useMemo(()=>s&&o.length>=0&&n.register(r,s),[n,r,o.length,s]),em(()=>n._subjects.array.subscribe({next:({values:M,name:_})=>{if(_===r||!_){const R=it(M,r);Array.isArray(R)&&(l(R),d.current=R.map(io))}}}).unsubscribe,[n,r]);const m=ce.default.useCallback(M=>{h.current=!0,n._setFieldArray(r,M)},[n,r]),g=(M,_)=>{const R=ni(xn(M)),z=Jy(n._getFieldArray(r),R);n._names.focus=Xy(r,z.length-1,_),d.current=Jy(d.current,R.map(io)),m(z),l(z),n._setFieldArray(r,z,Jy,{argA:Qy(M)})},b=(M,_)=>{const R=ni(xn(M)),z=n0(n._getFieldArray(r),R);n._names.focus=Xy(r,0,_),d.current=n0(d.current,R.map(io)),m(z),l(z),n._setFieldArray(r,z,n0,{argA:Qy(M)})},w=M=>{const _=r0(n._getFieldArray(r),M);d.current=r0(d.current,M),m(_),l(_),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,_,r0,{argA:M})},x=(M,_,R)=>{const z=ni(xn(_)),re=e0(n._getFieldArray(r),M,z);n._names.focus=Xy(r,M,R),d.current=e0(d.current,M,z.map(io)),m(re),l(re),n._setFieldArray(r,re,e0,{argA:M,argB:Qy(_)})},A=(M,_)=>{const R=n._getFieldArray(r);i0(R,M,_),i0(d.current,M,_),m(R),l(R),n._setFieldArray(r,R,i0,{argA:M,argB:_},!1)},E=(M,_)=>{const R=n._getFieldArray(r);t0(R,M,_),t0(d.current,M,_),m(R),l(R),n._setFieldArray(r,R,t0,{argA:M,argB:_},!1)},C=(M,_)=>{const R=xn(_),z=SS(n._getFieldArray(r),M,R);d.current=[...z].map((re,ge)=>!re||ge===M?io():d.current[ge]),m(z),l([...z]),n._setFieldArray(r,z,SS,{argA:M,argB:R},!0,!1)},S=M=>{const _=ni(xn(M));d.current=_.map(io),m([..._]),l([..._]),n._setFieldArray(r,[..._],R=>R,{},!0,!1)};return ce.default.useEffect(()=>{if(n._state.action=!1,Bb(r,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!vl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!vl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(M=>{const _=it(M.errors,r),R=it(n._formState.errors,r);(R?!_&&R.type||_&&(R.type!==_.type||R.message!==_.message):_&&_.type)&&(_?nn(n._formState.errors,r,_):zn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const M=it(n._fields,r);M&&M._f&&!(vl(n._options.reValidateMode).isOnSubmit&&vl(n._options.mode).isOnSubmit)&&Vb(M,n._names.disabled,n._formValues,n._options.criteriaMode===Ui.all,n._options.shouldUseNativeValidation,!0).then(_=>!Ir(_)&&n._subjects.state.next({errors:E5(n._formState.errors,_,r)}))}n._subjects.state.next({name:r,values:xn(n._formValues)}),n._names.focus&&_l(n._fields,(M,_)=>{if(n._names.focus&&_.startsWith(n._names.focus)&&M.focus)return M.focus(),1}),n._names.focus="",n._setValid(),h.current=!1},[o,r,n]),ce.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const M=(_,R)=>{const z=it(n._fields,_);z&&z._f&&(z._f.mount=R)};n._options.shouldUnregister||a?n.unregister(r):M(r,!1)}),[r,n,i,a]),{swap:ce.default.useCallback(A,[m,r,n]),move:ce.default.useCallback(E,[m,r,n]),prepend:ce.default.useCallback(b,[m,r,n]),append:ce.default.useCallback(g,[m,r,n]),remove:ce.default.useCallback(w,[m,r,n]),insert:ce.default.useCallback(x,[m,r,n]),update:ce.default.useCallback(C,[m,r,n]),replace:ce.default.useCallback(S,[m,r,n]),fields:ce.default.useMemo(()=>o.map((M,_)=>({...M,[i]:d.current[_]||io()})),[o,i])}}function oH(e={}){const t=ce.default.useRef(void 0),n=ce.default.useRef(void 0),[r,i]=ce.default.useState({isDirty:!1,isValidating:!1,isLoading:ma(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ma(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ma(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...o}=iH(e);t.current={...o,formState:r}}const a=t.current.control;return a._options=e,em(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),a._formState.isReady=!0,s},[a]),ce.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ce.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),ce.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),ce.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),ce.default.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),ce.default.useEffect(()=>{e.values&&!_s(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),ce.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=h5(r,a),t.current}const gn=typeof document<"u"?ce.default.useLayoutEffect:()=>{};var a0;const uH=(a0=ce.default.useInsertionEffect)!==null&&a0!==void 0?a0:gn;function Mn(e){const t=L.useRef(null);return uH(()=>{t.current=e},[e]),L.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function lH(e){let[t,n]=L.useState(e),r=L.useRef(null),i=Mn(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});gn(()=>{r.current&&i()});let a=Mn(s=>{r.current=s(t),i()});return[t,a]}const np={prefix:String(Math.round(Math.random()*1e10)),current:0},S5=ce.default.createContext(np),cH=ce.default.createContext(!1);let fH=!!(typeof window<"u"&&window.document&&window.document.createElement),s0=new WeakMap;function dH(e=!1){let t=L.useContext(S5),n=L.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=ce.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=s0.get(a);s==null?s0.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,s0.delete(a))}n.current=++t.current}return n.current}function hH(e){let t=L.useContext(S5);t===np&&!fH&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=dH(!!e),r=t===np&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function pH(e){let t=ce.default.useId(),[n]=L.useState(q4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${np.prefix}`;return e||`${r}-${t}`}const mH=typeof ce.default.useId=="function"?pH:hH;function gH(){return!1}function vH(){return!0}function yH(e){return()=>{}}function q4(){return typeof ce.default.useSyncExternalStore=="function"?ce.default.useSyncExternalStore(yH,gH,vH):L.useContext(cH)}let bH=!!(typeof window<"u"&&window.document&&window.document.createElement),Ml=new Map,ff;typeof FinalizationRegistry<"u"&&(ff=new FinalizationRegistry(e=>{Ml.delete(e)}));function jr(e){let[t,n]=L.useState(e),r=L.useRef(null),i=mH(t),a=L.useRef(null);if(ff&&ff.register(a,i),bH){const s=Ml.get(i);s&&!s.includes(r)?s.push(r):Ml.set(i,[r])}return gn(()=>{let s=i;return()=>{ff&&ff.unregister(a),Ml.delete(s)}},[i]),L.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),i}function $H(e,t){if(e===t)return e;let n=Ml.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Ml.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Ul(e=[]){let t=jr(),[n,r]=lH(t),i=L.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return gn(i,[t,i,...e]),n}function _u(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},es=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function xH(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function wH(e){return xH(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let CH=!1;function tm(){return CH}function Sn(e,t){if(!tm())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:wH(n)?n=n.host:n=n.parentNode}return!1}const nr=(e=document)=>{var t;if(!tm())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function tn(e){return tm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class EH{get currentNode(){return this._currentNode}set currentNode(t){if(!Sn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=s.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Sn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(s);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function SH(e,t,n,r){return tm()?new EH(e,t,n,r):e.createTreeWalker(t,n,r)}function D5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=D5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function DH(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=D5(e))&&(r&&(r+=" "),r+=t);return r}function Jt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=_u(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=DH(a,s):i==="id"&&a&&s?t.id=$H(a,s):t[i]=s!==void 0?s:a}}return t}const AH=new Set(["id"]),TH=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),PH=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_H=new Set(["dir","lang","hidden","inert","translate"]),DS=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),MH=/^(data-.*)$/;function qs(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:s}=t,o={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(AH.has(l)||n&&TH.has(l)||r&&PH.has(l)||i&&_H.has(l)||a&&DS.has(l)||l.endsWith("Capture")&&DS.has(l.slice(0,-7))||s!=null&&s.has(l)||MH.test(l))&&(o[l]=e[l]);return o}function wi(e){if(FH())e.focus({preventScroll:!0});else{let t=RH(e);e.focus(),kH(t)}}let ih=null;function FH(){if(ih==null){ih=!1;try{document.createElement("div").focus({get preventScroll(){return ih=!0,!0}})}catch{}}return ih}function RH(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function kH(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function nm(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function z4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zs(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Bs=zs(function(){return z4(/^Mac/i)}),OH=zs(function(){return z4(/^iPhone/i)}),A5=zs(function(){return z4(/^iPad/i)||Bs()&&navigator.maxTouchPoints>1}),ed=zs(function(){return OH()||A5()}),Sh=zs(function(){return Bs()||ed()}),W4=zs(function(){return nm(/AppleWebKit/i)&&!H4()}),H4=zs(function(){return nm(/Chrome/i)}),G4=zs(function(){return nm(/Android/i)}),IH=zs(function(){return nm(/Firefox/i)}),LH=L.createContext({isNative:!0,open:VH,useHref:e=>e});function rm(){return L.useContext(LH)}function $u(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}=t;IH()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Bs()?a=!0:s=!0);let d=W4()&&Bs()&&!A5()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});$u.isOpening=n,wi(e),e.dispatchEvent(d),$u.isOpening=!1}$u.isOpening=!1;function BH(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function VH(e,t){BH(e,n=>$u(n,t))}function NH(e){let t=rm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let co=new Map,Nb=new Set;function AS(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=co.get(r.target);i||(i=new Set,co.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),co.delete(r.target)),co.size===0)){for(let a of Nb)a();Nb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?AS():document.addEventListener("DOMContentLoaded",AS));function jH(){for(const[e]of co)"isConnected"in e&&!e.isConnected&&co.delete(e)}function T5(e){requestAnimationFrame(()=>{jH(),co.size===0?e():Nb.add(e)})}function Co(){let e=L.useRef(new Map),t=L.useCallback((i,a,s,o)=>{let l=o!=null&&o.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:a,eventTarget:i,fn:l,options:o}),i.addEventListener(a,l,o)},[]),n=L.useCallback((i,a,s,o)=>{var l;let d=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(a,d,o),e.current.delete(s)},[]),r=L.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return L.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ql(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=jr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function jb(e,t){const n=L.useRef(!0),r=L.useRef(null);L.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),L.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,s)=>!Object.is(a,i[s])))&&e(),r.current=t},t)}function TS(e,t){const n=L.useRef(!0),r=L.useRef(null);gn(()=>(n.current=!0,()=>{n.current=!1}),[]),gn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function KH(){return typeof window.ResizeObserver<"u"}function PS(e){const{ref:t,box:n,onResize:r}=e;L.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(KH()){const a=new window.ResizeObserver(s=>{s.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function P5(e,t){gn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function zl(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function im(e,t){let n=e;for(zl(n,t)&&(n=n.parentElement);n&&!zl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function UH(e,t){const n=[];for(;e&&e!==document.documentElement;)zl(e,t)&&n.push(e),e=e.parentElement;return n}function ml(e){return Bs()?e.metaKey:e.ctrlKey}const qH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o0(e){return e instanceof HTMLInputElement&&!qH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let zH=0;const u0=new Map;function td(e){let[t,n]=L.useState();return gn(()=>{if(!e)return;let r=u0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${zH++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},u0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),u0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ga(e,t,n,r){let i=Mn(n),a=n==null;L.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function _5(e,t){let n=_S(e,t,"left"),r=_S(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:w,scrollMarginRight:x,scrollMarginBottom:A,scrollMarginLeft:E}=getComputedStyle(t),C=s+parseInt(d,10),S=o+parseInt(l,10),M=C+e.clientWidth,_=S+e.clientHeight,R=parseInt(h,10)||0,z=parseInt(g,10)||0,re=parseInt(m,10)||0,ge=parseInt(b,10)||0,le=parseInt(w,10)||0,I=parseInt(A,10)||0,Ce=parseInt(x,10)||0,we=parseInt(E,10)||0,U=n-we,ee=n+i+Ce,N=r-le,O=r+a+I,K=s+parseInt(d,10)+ge,de=M-re,k=o+parseInt(l,10)+R,se=_-z;if((U>K||ee<de)&&(U<=s+ge?s=U-parseInt(d,10)-ge:ee>M-re&&(s+=ee-M+re)),(N>k||O<se)&&(N<=S+R?o=N-parseInt(l,10)-R:O>_-z&&(o+=O-_+z)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=o;return}e.scrollTo({left:s,top:o})}function _S(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function rp(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!H4()){var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(d-m)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}else{let l=UH(e);for(let d of l)_5(d,e)}}}function Kb(e){return e.pointerType===""&&e.isTrusted?!0:G4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function WH(e){return!G4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function M5(e,t){let n=L.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Y4(e,t,n){let r=Mn(()=>{n&&n(t)});L.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",r),()=>{a==null||a.removeEventListener("reset",r)}},[e,r])}const HH="react-aria-clear-focus",GH="react-aria-focus",YH=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ZH(e){const t=es(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:o}=a(e);i=s!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function XH(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Z4(e,t){return YH?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&ZH(e)&&XH(e,t)&&(!e.parentElement||Z4(e.parentElement,e))}const X4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],JH=X4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";X4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const QH=X4.join(':not([hidden]):not([tabindex="-1"]),');function F5(e){return e.matches(JH)&&Z4(e)&&!R5(e)}function eG(e){return e.matches(QH)&&Z4(e)&&!R5(e)}function R5(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Ci(e,t,n){let[r,i]=L.useState(e||t),a=L.useRef(e!==void 0),s=e!==void 0;L.useEffect(()=>{let d=a.current;d!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:r,l=L.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(o,g)||n(g,...b)),s||(o=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...w)=>{let x=d(s?o:b,...w);return m(x,...h),s?b:x})):(s||i(d),m(d,...h))},[s,o,n]);return[o,l]}function Wl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ah(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);n=Math.round(n*s)/s}return n}function Yc(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=ah(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(ah(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(ah((n-t)/r,r))*r),a=ah(a,r),a}function J4(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function k5(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function O5(e){let t=L.useRef({isFocused:!1,observer:null});gn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Mn(r=>{e==null||e(r)});return L.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{if(t.current.isFocused=!1,i.disabled){let o=J4(s);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ip=!1;function MS(e){for(;e&&!F5(e);)e=e.parentElement;let t=es(e),n=t.document.activeElement;if(!n||n===e)return;ip=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,wi(n),l()))},s=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},o=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,wi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",s,!0),ip=!1,r=!1},d=requestAnimationFrame(l);return l}let yl="default",Ub="",Dh=new WeakMap;function qb(e){if(ed()){if(yl==="default"){const t=Xt(e);Ub=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}yl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Dh.set(e,e.style[t]),e.style[t]="none"}}function Ah(e){if(ed()){if(yl!=="disabled")return;yl="restoring",setTimeout(()=>{T5(()=>{if(yl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ub||""),Ub="",yl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Dh.has(e)){let t=Dh.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Dh.delete(e)}}const Q4=ce.default.createContext({register:()=>{}});Q4.displayName="PressResponderContext";function tG(e,t){return t.get?t.get.call(e):t.value}function I5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function nG(e,t){var n=I5(e,t,"get");return tG(e,n)}function rG(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nd(e,t,n){rG(e,t),t.set(e,n)}function iG(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function FS(e,t,n){var r=I5(e,t,"set");return iG(e,r,n),n}function aG(e){let t=L.useContext(Q4);if(t){let{register:n,...r}=t;e=Jt(r,e),n()}return P5(t,e.ref),e}var sh=new WeakMap;class oh{continuePropagation(){FS(this,sh,!1)}get shouldStopPropagation(){return nG(this,sh)}constructor(t,n,r,i){nd(this,sh,{writable:!0,value:void 0}),FS(this,sh,!0);var a;let s=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const o=s==null?void 0:s.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),o&&(h!=null&&m!=null?(l=h-o.left,d=m-o.top):(l=o.width/2,d=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const RS=Symbol("linkClicked"),kS="react-aria-pressable-style",OS="data-react-aria-pressable";function rd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:s,isDisabled:o,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=aG(e),[w,x]=L.useState(!1),A=L.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:C}=Co(),S=Mn((I,Ce)=>{let we=A.current;if(o||we.didFirePressStart)return!1;let U=!0;if(we.isTriggeringEvent=!0,r){let ee=new oh("pressstart",Ce,I);r(ee),U=ee.shouldStopPropagation}return n&&n(!0),we.isTriggeringEvent=!1,we.didFirePressStart=!0,x(!0),U}),M=Mn((I,Ce,we=!0)=>{let U=A.current;if(!U.didFirePressStart)return!1;U.didFirePressStart=!1,U.isTriggeringEvent=!0;let ee=!0;if(i){let N=new oh("pressend",Ce,I);i(N),ee=N.shouldStopPropagation}if(n&&n(!1),x(!1),t&&we&&!o){let N=new oh("press",Ce,I);t(N),ee&&(ee=N.shouldStopPropagation)}return U.isTriggeringEvent=!1,ee}),_=Mn((I,Ce)=>{let we=A.current;if(o)return!1;if(a){we.isTriggeringEvent=!0;let U=new oh("pressup",Ce,I);return a(U),we.isTriggeringEvent=!1,U.shouldStopPropagation}return!0}),R=Mn(I=>{let Ce=A.current;if(Ce.isPressed&&Ce.target){Ce.didFirePressStart&&Ce.pointerType!=null&&M(Xo(Ce.target,I),Ce.pointerType,!1),Ce.isPressed=!1,Ce.isOverTarget=!1,Ce.activePointerId=null,Ce.pointerType=null,C(),m||Ah(Ce.target);for(let we of Ce.disposables)we();Ce.disposables=[]}}),z=Mn(I=>{h&&R(I)}),re=Mn(I=>{o||s==null||s(I)}),ge=Mn((I,Ce)=>{if(!o&&s){let we=new MouseEvent("click",I);k5(we,Ce),s(J4(we))}}),le=L.useMemo(()=>{let I=A.current,Ce={onKeyDown(U){if(l0(U.nativeEvent,U.currentTarget)&&Sn(U.currentTarget,tn(U.nativeEvent))){var ee;BS(tn(U.nativeEvent),U.key)&&U.preventDefault();let N=!0;if(!I.isPressed&&!U.repeat){I.target=U.currentTarget,I.isPressed=!0,I.pointerType="keyboard",N=S(U,"keyboard");let O=U.currentTarget,K=de=>{l0(de,O)&&!de.repeat&&Sn(O,tn(de))&&I.target&&_(Xo(I.target,de),"keyboard")};E(Xt(U.currentTarget),"keyup",_u(K,we),!0)}N&&U.stopPropagation(),U.metaKey&&Bs()&&((ee=I.metaKeyEvents)===null||ee===void 0||ee.set(U.key,U.nativeEvent))}else U.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(U){if(!(U&&!Sn(U.currentTarget,tn(U.nativeEvent)))&&U&&U.button===0&&!I.isTriggeringEvent&&!$u.isOpening){let ee=!0;if(o&&U.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||Kb(U.nativeEvent))){let N=S(U,"virtual"),O=_(U,"virtual"),K=M(U,"virtual");re(U),ee=N&&O&&K}else if(I.isPressed&&I.pointerType!=="keyboard"){let N=I.pointerType||U.nativeEvent.pointerType||"virtual",O=_(Xo(U.currentTarget,U),N),K=M(Xo(U.currentTarget,U),N,!0);ee=O&&K,I.isOverTarget=!1,re(U),R(U)}I.ignoreEmulatedMouseEvents=!1,ee&&U.stopPropagation()}}},we=U=>{var ee;if(I.isPressed&&I.target&&l0(U,I.target)){var N;BS(tn(U),U.key)&&U.preventDefault();let K=tn(U),de=Sn(I.target,tn(U));M(Xo(I.target,U),"keyboard",de),de&&ge(U,I.target),C(),U.key!=="Enter"&&e3(I.target)&&Sn(I.target,K)&&!U[RS]&&(U[RS]=!0,$u(I.target,U,!1)),I.isPressed=!1,(N=I.metaKeyEvents)===null||N===void 0||N.delete(U.key)}else if(U.key==="Meta"&&(!((ee=I.metaKeyEvents)===null||ee===void 0)&&ee.size)){var O;let K=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let de of K.values())(O=I.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",de))}};if(typeof PointerEvent<"u"){Ce.onPointerDown=N=>{if(N.button!==0||!Sn(N.currentTarget,tn(N.nativeEvent)))return;if(WH(N.nativeEvent)){I.pointerType="virtual";return}I.pointerType=N.pointerType;let O=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=N.pointerId,I.target=N.currentTarget,m||qb(I.target),O=S(N,I.pointerType);let K=tn(N.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(N.pointerId),E(Xt(N.currentTarget),"pointerup",U,!1),E(Xt(N.currentTarget),"pointercancel",ee,!1)}O&&N.stopPropagation()},Ce.onMouseDown=N=>{if(Sn(N.currentTarget,tn(N.nativeEvent))&&N.button===0){if(d){let O=MS(N.target);O&&I.disposables.push(O)}N.stopPropagation()}},Ce.onPointerUp=N=>{!Sn(N.currentTarget,tn(N.nativeEvent))||I.pointerType==="virtual"||N.button===0&&!I.isPressed&&_(N,I.pointerType||N.pointerType)},Ce.onPointerEnter=N=>{N.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(Xo(I.target,N),I.pointerType))},Ce.onPointerLeave=N=>{N.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,M(Xo(I.target,N),I.pointerType,!1),z(N))};let U=N=>{if(N.pointerId===I.activePointerId&&I.isPressed&&N.button===0&&I.target){if(Sn(I.target,tn(N))&&I.pointerType!=null){let O=!1,K=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(O?R(N):(wi(I.target),I.target.click()))},80);E(N.currentTarget,"click",()=>O=!0,!0),I.disposables.push(()=>clearTimeout(K))}else R(N);I.isOverTarget=!1}},ee=N=>{R(N)};Ce.onDragStart=N=>{Sn(N.currentTarget,tn(N.nativeEvent))&&R(N)}}else if(process.env.NODE_ENV==="test"){Ce.onMouseDown=N=>{if(N.button!==0||!Sn(N.currentTarget,tn(N.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){N.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=N.currentTarget,I.pointerType=Kb(N.nativeEvent)?"virtual":"mouse",Mp.flushSync(()=>S(N,I.pointerType))&&N.stopPropagation(),d){let K=MS(N.target);K&&I.disposables.push(K)}E(Xt(N.currentTarget),"mouseup",U,!1)},Ce.onMouseEnter=N=>{if(!Sn(N.currentTarget,tn(N.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,O=S(N,I.pointerType)),O&&N.stopPropagation()},Ce.onMouseLeave=N=>{if(!Sn(N.currentTarget,tn(N.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,O=M(N,I.pointerType,!1),z(N)),O&&N.stopPropagation()},Ce.onMouseUp=N=>{Sn(N.currentTarget,tn(N.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&N.button===0&&!I.isPressed&&_(N,I.pointerType||"mouse")};let U=N=>{if(N.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(N.target)&&I.pointerType!=null||R(N),I.isOverTarget=!1}};Ce.onTouchStart=N=>{if(!Sn(N.currentTarget,tn(N.nativeEvent)))return;let O=sG(N.nativeEvent);if(!O)return;I.activePointerId=O.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=N.currentTarget,I.pointerType="touch",m||qb(I.target),S(ao(I.target,N),I.pointerType)&&N.stopPropagation(),E(es(N.currentTarget),"scroll",ee,!0)},Ce.onTouchMove=N=>{if(!Sn(N.currentTarget,tn(N.nativeEvent)))return;if(!I.isPressed){N.stopPropagation();return}let O=IS(N.nativeEvent,I.activePointerId),K=!0;O&&LS(O,N.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,K=S(ao(I.target,N),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,K=M(ao(I.target,N),I.pointerType,!1),z(ao(I.target,N))),K&&N.stopPropagation()},Ce.onTouchEnd=N=>{if(!Sn(N.currentTarget,tn(N.nativeEvent)))return;if(!I.isPressed){N.stopPropagation();return}let O=IS(N.nativeEvent,I.activePointerId),K=!0;O&&LS(O,N.currentTarget)&&I.pointerType!=null?(_(ao(I.target,N),I.pointerType),K=M(ao(I.target,N),I.pointerType),ge(N.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(K=M(ao(I.target,N),I.pointerType,!1)),K&&N.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&Ah(I.target),C()},Ce.onTouchCancel=N=>{Sn(N.currentTarget,tn(N.nativeEvent))&&(N.stopPropagation(),I.isPressed&&R(ao(I.target,N)))};let ee=N=>{I.isPressed&&Sn(tn(N),I.target)&&R({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Ce.onDragStart=N=>{Sn(N.currentTarget,tn(N.nativeEvent))&&R(N)}}return Ce},[E,o,d,C,m,R,z,M,S,_,re,ge]);return L.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=Xt(g.current);if(!I||!I.head||I.getElementById(kS))return;const Ce=I.createElement("style");Ce.id=kS,Ce.textContent=`
|
|
61
|
+
@layer {
|
|
62
|
+
[${OS}] {
|
|
63
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`.trim(),I.head.prepend(Ce)},[g]),L.useEffect(()=>{let I=A.current;return()=>{var Ce;m||Ah((Ce=I.target)!==null&&Ce!==void 0?Ce:void 0);for(let we of I.disposables)we();I.disposables=[]}},[m]),{isPressed:l||w,pressProps:Jt(b,le,{[OS]:!0})}}function e3(e){return e.tagName==="A"&&e.hasAttribute("href")}function l0(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof es(i).HTMLInputElement&&!L5(i,n)||i instanceof es(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&e3(i))&&n!=="Enter")}function sG(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function IS(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function ao(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Xo(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function oG(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function uG(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function LS(e,t){let n=t.getBoundingClientRect(),r=oG(e);return uG(n,r)}function lG(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!e3(e)}function BS(e,t){return e instanceof HTMLInputElement?!L5(e,t):lG(e)}const cG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function L5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":cG.has(e.type)}let Mu=null,fG=new Set,yf=new Map,xu=!1,zb=!1;function am(e,t){for(let n of fG)n(e,t)}function dG(e){return!(e.metaKey||!Bs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ap(e){xu=!0,dG(e)&&(Mu="keyboard",am("keyboard",e))}function ji(e){Mu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(xu=!0,am("pointer",e))}function B5(e){Kb(e)&&(xu=!0,Mu="virtual")}function V5(e){e.target===window||e.target===document||ip||!e.isTrusted||(!xu&&!zb&&(Mu="virtual",am("virtual",e)),xu=!1,zb=!1)}function N5(){ip||(xu=!1,zb=!0)}function VS(e){if(typeof window>"u"||typeof document>"u"||yf.get(es(e)))return;const t=es(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xu=!0,r.apply(this,arguments)},n.addEventListener("keydown",ap,!0),n.addEventListener("keyup",ap,!0),n.addEventListener("click",B5,!0),t.addEventListener("focus",V5,!0),t.addEventListener("blur",N5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ji,!0),n.addEventListener("pointermove",ji,!0),n.addEventListener("pointerup",ji,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ji,!0),n.addEventListener("mousemove",ji,!0),n.addEventListener("mouseup",ji,!0)),t.addEventListener("beforeunload",()=>{j5(e)},{once:!0}),yf.set(t,{focus:r})}const j5=(e,t)=>{const n=es(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),yf.has(n)&&(n.HTMLElement.prototype.focus=yf.get(n).focus,r.removeEventListener("keydown",ap,!0),r.removeEventListener("keyup",ap,!0),r.removeEventListener("click",B5,!0),n.removeEventListener("focus",V5,!0),n.removeEventListener("blur",N5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ji,!0),r.removeEventListener("pointermove",ji,!0),r.removeEventListener("pointerup",ji,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ji,!0),r.removeEventListener("mousemove",ji,!0),r.removeEventListener("mouseup",ji,!0)),yf.delete(n))};function hG(e){const t=Xt(e);let n;return t.readyState!=="loading"?VS(e):(n=()=>{VS(e)},t.addEventListener("DOMContentLoaded",n)),()=>j5(e,n)}typeof document<"u"&&hG();function NS(){return Mu!=="pointer"}function Mf(){return Mu}function K5(e){Mu=e,am(e,null)}function wu(e){const t=Xt(e),n=nr(t);if(Mf()==="virtual"){let r=n;T5(()=>{nr(t)===r&&e.isConnected&&wi(e)})}else wi(e)}function pG(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=L.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=O5(a),o=L.useCallback(l=>{const d=Xt(l.target),h=d?nr(d):nr();l.target===l.currentTarget&&h===tn(l.nativeEvent)&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function jS(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function U5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jS(e.onKeyDown),onKeyUp:jS(e.onKeyUp)}}}let mG=ce.default.createContext(null);function gG(e){let t=L.useContext(mG)||{};P5(t,e);let{ref:n,...r}=t;return r}function t3(e,t){let{focusProps:n}=pG(e),{keyboardProps:r}=U5(e),i=Jt(n,r),a=gG(t),s=e.isDisabled?{}:a,o=L.useRef(e.autoFocus);L.useEffect(()=>{o.current&&t.current&&wu(t.current),o.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Jt({...i,tabIndex:l},s)}}function vG({children:e}){let t=L.useMemo(()=>({register:()=>{}}),[]);return ce.default.createElement(Q4.Provider,{value:t},e)}function ac(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=L.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:o}=Co(),l=L.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(m),i&&i(!1))},[n,i,a,o]),d=O5(l),h=L.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=nr(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,d(m);let w=m.currentTarget;s(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn(w,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});k5(A,w);let E=J4(A);l(E)}},{capture:!0})}},[r,i,d,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let sp=!1,uh=0;function Wb(){sp=!0,setTimeout(()=>{sp=!1},50)}function KS(e){e.pointerType==="touch"&&Wb()}function yG(){if(!(typeof document>"u"))return uh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",KS):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Wb)),uh++,()=>{uh--,!(uh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",KS):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Wb))}}function bG(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=L.useState(!1),o=L.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;L.useEffect(yG,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Co(),{hoverProps:h,triggerHoverEnd:m}=L.useMemo(()=>{let g=(x,A)=>{if(o.pointerType=A,i||A==="touch"||o.isHovered||!x.currentTarget.contains(x.target))return;o.isHovered=!0;let E=x.currentTarget;o.target=E,l(Xt(x.target),"pointerover",C=>{o.isHovered&&o.target&&!Sn(o.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:A}),n&&n(!0),s(!0)},b=(x,A)=>{let E=o.target;o.pointerType="",o.target=null,!(A==="touch"||!o.isHovered||!E)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:E,pointerType:A}),n&&n(!1),s(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=x=>{sp&&x.pointerType==="mouse"||g(x,x.pointerType)},w.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=x=>{!o.ignoreEmulatedMouseEvents&&!sp&&g(x,"mouse"),o.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,n,r,i,o,l,d]);return L.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:a}}function $G(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=L.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Mn(l=>{n&&lh(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),o=Mn(l=>{n&&n(l)});L.useEffect(()=>{let l=a.current;if(r)return;const d=t.current,h=Xt(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&lh(g,t)&&o(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",s,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",s,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&lh(b,t)&&o(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&lh(b,t)&&o(b),l.isPointerDown=!1};return h.addEventListener("mousedown",s,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",s,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",s,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",s,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,s,o])}function lh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function q5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=L.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=Co(),o=Mn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=Mn((h,m)=>{Ah(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:L.useMemo(()=>{let h={},m=()=>{qb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=E=>{if(E.button===0){var C,S,M,_;o(E,"mouse",E.pageX-((M=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&M!==void 0?M:0),E.pageY-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&_!==void 0?_:0)),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY}}},w=E=>{E.button===0&&(l(E,"mouse"),s(window,"mousemove",b,!1),s(window,"mouseup",w,!1))};h.onMouseDown=E=>{E.button===0&&(m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",w,!1))};let x=E=>{let C=[...E.changedTouches].findIndex(({identifier:z})=>z===i.current.id);if(C>=0){var S,M;let{pageX:z,pageY:re}=E.changedTouches[C];var _,R;o(E,"touch",z-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&_!==void 0?_:0),re-((R=(M=i.current.lastPosition)===null||M===void 0?void 0:M.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:z,pageY:re}}},A=E=>{[...E.changedTouches].findIndex(({identifier:S})=>S===i.current.id)>=0&&(l(E,"touch"),i.current.id=null,s(window,"touchmove",x),s(window,"touchend",A),s(window,"touchcancel",A))};h.onTouchStart=E=>{if(E.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:S,identifier:M}=E.changedTouches[0];m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:C,pageY:S},i.current.id=M,a(window,"touchmove",x,!1),a(window,"touchend",A,!1),a(window,"touchcancel",A,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var A,E;let M=x.pointerType||"mouse";var C,S;o(x,M,x.pageX-((C=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&C!==void 0?C:0),x.pageY-((S=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},w=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";l(x,A),i.current.id=null,s(window,"pointermove",b,!1),s(window,"pointerup",w,!1),s(window,"pointercancel",w,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,a(window,"pointermove",b,!1),a(window,"pointerup",w,!1),a(window,"pointercancel",w,!1))}}let g=(b,w,x)=>{m(),o(b,"keyboard",w,x),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,a,s,o,l])}}const xG=500;function z5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=xG,accessibilityDescription:s}=e;const o=L.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Co(),{pressProps:h}=rd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),o.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&wi(g.target),i&&i({...g,type:"longpress"}),o.current=void 0},a),g.pointerType==="touch")){let b=w=>{w.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){o.current&&clearTimeout(o.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=td(i&&!t?s:void 0);return{longPressProps:Jt(h,m)}}const wG=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),CG=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function EG(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return wG.has(n.script)}let t=e.split("-")[0];return CG.has(t)}const SG=Symbol.for("react-aria.i18n.locale");function W5(){let e=typeof window<"u"&&window[SG]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:EG(e)?"rtl":"ltr"}}let Hb=W5(),df=new Set;function US(){Hb=W5();for(let e of df)e(Hb)}function DG(){let e=q4(),[t,n]=L.useState(Hb);return L.useEffect(()=>(df.size===0&&window.addEventListener("languagechange",US),df.add(n),()=>{df.delete(n),df.size===0&&window.removeEventListener("languagechange",US)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const AG=ce.default.createContext(null);function Tr(){let e=DG();return L.useContext(AG)||e}const TG=Symbol.for("react-aria.i18n.locale"),PG=Symbol.for("react-aria.i18n.strings");let ll;class Eo{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=_G(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[TG];if(ll===void 0){let i=window[PG];if(!i)return null;ll={};for(let a in i)ll[a]=new Eo({[n]:i[a]},n)}let r=ll==null?void 0:ll[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function _G(e,t,n="en-US"){if(t[e])return t[e];let r=MG(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function MG(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qS=new Map,zS=new Map;class H5{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,s=qS.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),qS.set(a,s));let o=s.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=zS.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zS.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const WS=new WeakMap;function FG(e){let t=WS.get(e);return t||(t=new Eo(e),WS.set(e,t)),t}function G5(e,t){return t&&Eo.getGlobalDictionaryForPackage(t)||FG(e)}function rs(e,t){let{locale:n}=Tr(),r=G5(e,t);return L.useMemo(()=>new H5(n,r),[n,r])}function Fl(e,t){return e-t*Math.floor(e/t)}const Y5=1721426;function au(e,t,n,r){t=id(e,t);let i=t-1,a=-2;return n<=2?a=0:go(t)&&(a=-1),Y5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function go(e){return e%4===0&&(e%100!==0||e%400===0)}function id(e,t){return e==="BC"?1-t:t}function sm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const RG={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ur{fromJulianDay(t){let n=t,r=n-Y5,i=Math.floor(r/146097),a=Fl(r,146097),s=Math.floor(a/36524),o=Fl(a,36524),l=Math.floor(o/1461),d=Fl(o,1461),h=Math.floor(d/365),m=i*400+s*100+l*4+h+(s!==4&&h!==4?1:0),[g,b]=sm(m),w=n-au(g,b,1,1),x=2;n<au(g,b,3,1)?x=0:go(b)&&(x=1);let A=Math.floor(((w+x)*12+373)/367),E=n-au(g,b,A,1)+1;return new Hn(g,b,A,E)}toJulianDay(t){return au(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return RG[go(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return go(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const kG={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Jn(e,t){return t=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Gb(e,t){return om(e.calendar,t.calendar)&&Jn(e,t)}function om(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function Z5(e,t){return Jn(e,um(t))}const OG={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function n3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?OG[n]:jG(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function X5(e){return Fs(Date.now(),e)}function um(e){return Kr(X5(e))}function J5(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Q5(e,t){return HS(e)-HS(t)}function HS(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let c0=null;function ad(){return c0==null&&(c0=new Intl.DateTimeFormat().resolvedOptions().timeZone),c0}function sd(e){return e.subtract({days:e.day-1})}function Yb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function IG(e){return sd(e.subtract({months:e.month-1}))}function LG(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function BG(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ff(e,t,n){let r=n3(e,t,n);return e.subtract({days:r})}function VG(e,t,n){return Ff(e,t,n).add({days:6})}const GS=new Map,f0=new Map;function NG(e){if(Intl.Locale){let n=GS.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&GS.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function jG(e){let t=f0.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return f0.set(e,t),t.firstDay}let n=NG(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&kG[n]||0};f0.set(e,t)}return t.firstDay}function e_(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((n3(sd(e),t,n)+r)/7)}function r3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function i3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Hl(e){e=Fn(e,new Ur);let t=id(e.era,e.year);return t_(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function t_(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function Zb(e,t){if(t==="UTC")return 0;if(e>0&&t===ad())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=n_(e,t);return t_(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const YS=new Map;function n_(e,t){let n=YS.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),YS.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const ZS=864e5;function KG(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>UG(e,t,a))}function UG(e,t,n){let r=n_(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Ms(e,t,n="compatible"){let r=$a(e);if(t==="UTC")return Hl(r);if(t===ad()&&n==="compatible"){r=Fn(r,new Ur);let l=new Date,d=id(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=Hl(r),a=Zb(i-ZS,t),s=Zb(i+ZS,t),o=KG(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function r_(e,t,n="compatible"){return new Date(Ms(e,t,n))}function Fs(e,t){let n=Zb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new Of(i<1?"BC":"AD",i<1?-i+1:i,a,s,t,n,o,l,d,h)}function Kr(e){return new Hn(e.calendar,e.era,e.year,e.month,e.day)}function $a(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new kf(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function XS(e){return new od(e.hour,e.minute,e.second,e.millisecond)}function Fn(e,t){if(om(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Cu(r),r}function i_(e,t,n){if(e instanceof Of)return e.timeZone===t?e:zG(e,t);let r=Ms(e,t,n);return Fs(r,t)}function qG(e){let t=Hl(e)-e.offset;return new Date(t)}function zG(e,t){let n=Hl(e)-e.offset;return Fn(Fs(n,t),e.calendar)}const Zc=36e5;function lm(e,t){let n=e.copy(),r="hour"in n?u_(n,t):0;Xb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Jb(n),a_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,WG(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,s;let l=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Xb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Jb(e){for(;e.month<1;)Xb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Xb(e,1)}function WG(e){for(;e.day<1;)e.month--,Jb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Jb(e)}function a_(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Cu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),a_(e)}function a3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function s_(e,t){return lm(e,a3(t))}function s3(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Cu(n),n}function Rf(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),o_(n),n}function HG(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ch(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ch(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ch(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ch(e.hour,24),t}function o_(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ch(e,t){let n=e%t;return n<0&&(n+=t),n}function u_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,HG(e)}function l_(e,t){let n=e.copy();return u_(n,t),n}function GG(e,t){return l_(e,a3(t))}function o3(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Rs(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],Cu(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=Rs(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Rs(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Rs(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Cu(i),i}function u3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;s=l?12:0,o=l?23:11}i.hour=Rs(a,n,s,o,r==null?void 0:r.round);break}case"minute":i.minute=Rs(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Rs(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Rs(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Rs(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function c_(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=lm($a(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ms(i,e.timeZone)}else n=Hl(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Fs(n,e.timeZone);return Fn(r,e.calendar)}function YG(e,t){return c_(e,a3(t))}function ZG(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let w=e.hour>=12;i=w?12:0,a=w?23:11}let s=$a(e),o=Fn(Rf(s,{hour:i}),new Ur),l=[Ms(o,e.timeZone,"earlier"),Ms(o,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===o.day)[0],d=Fn(Rf(s,{hour:a}),new Ur),h=[Ms(d,e.timeZone,"earlier"),Ms(d,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===d.day).pop(),m=Hl(e)-e.offset,g=Math.floor(m/Zc),b=m%Zc;return m=Rs(g,n,Math.floor(l/Zc),Math.floor(h/Zc),r==null?void 0:r.round)*Zc+b,Fn(Fs(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return u3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=o3($a(e),t,n,r),a=Ms(i,e.timeZone);return Fn(Fs(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function XG(e,t,n){let r=$a(e),i=Rf(s3(r,t),t);if(i.compare(r)===0)return e;let a=Ms(i,e.timeZone,n);return Fn(Fs(a,e.timeZone),e.calendar)}const JG=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,QG=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function eY(e){let t=e.match(JG);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Hn(Ka(t[1],0,9999),Ka(t[2],1,12),1);return n.day=Ka(t[3],1,n.calendar.getDaysInMonth(n)),n}function tY(e){let t=e.match(QG);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ka(t[1],-9999,9999),r=n<1?"BC":"AD",i=new kf(r,n<1?-n+1:n,Ka(t[2],1,12),1,t[4]?Ka(t[4],0,23):0,t[5]?Ka(t[5],0,59):0,t[6]?Ka(t[6],0,59):0,t[7]?Ka(t[7],0,1/0)*1e3:0);return i.day=Ka(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ka(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function f_(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function d_(e){let t=Fn(e,new Ur),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function h_(e){return`${d_(e)}T${f_(e)}`}function nY(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function rY(e){return`${h_(e)}${nY(e.offset)}[${e.timeZone}]`}function l3(e){let t=typeof e[0]=="object"?e.shift():new Ur,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var iY=new WeakMap;class Hn{copy(){return this.era?new Hn(this.calendar,this.era,this.year,this.month,this.day):new Hn(this.calendar,this.year,this.month,this.day)}add(t){return lm(this,t)}subtract(t){return s_(this,t)}set(t){return s3(this,t)}cycle(t,n,r){return o3(this,t,n,r)}toDate(t){return r_(this,t)}toString(){return d_(this)}compare(t){return J5(this,t)}constructor(...t){nd(this,iY,{writable:!0,value:void 0});let[n,r,i,a,s]=l3(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,Cu(this)}}var aY=new WeakMap;class od{copy(){return new od(this.hour,this.minute,this.second,this.millisecond)}add(t){return l_(this,t)}subtract(t){return GG(this,t)}set(t){return Rf(this,t)}cycle(t,n,r){return u3(this,t,n,r)}toString(){return f_(this)}compare(t){return Q5(this,t)}constructor(t=0,n=0,r=0,i=0){nd(this,aY,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,o_(this)}}var sY=new WeakMap;class kf{copy(){return this.era?new kf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return lm(this,t)}subtract(t){return s_(this,t)}set(t){return s3(Rf(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return o3(this,t,n,r);default:return u3(this,t,n,r)}}toDate(t,n){return r_(this,t,n)}toString(){return h_(this)}compare(t){let n=J5(this,t);return n===0?Q5(this,$a(t)):n}constructor(...t){nd(this,sY,{writable:!0,value:void 0});let[n,r,i,a,s]=l3(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Cu(this)}}var oY=new WeakMap;class Of{copy(){return this.era?new Of(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Of(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return c_(this,t)}subtract(t){return YG(this,t)}set(t,n){return XG(this,t,n)}cycle(t,n,r){return ZG(this,t,n,r)}toDate(){return qG(this)}toString(){return rY(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-i_(t,this.timeZone).toDate().getTime()}constructor(...t){nd(this,oY,{writable:!0,value:void 0});let[n,r,i,a,s]=l3(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Cu(this)}}const Rl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],uY=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Th=[1867,1911,1925,1988,2018],lo=["meiji","taisho","showa","heisei","reiwa"];function JS(e){const t=Rl.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Rl.length-1:t===0?0:t-1}function d0(e){let t=Th[lo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Hn(e.year+t,e.month,e.day)}class lY extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=JS(n);return new Hn(this,lo[r],n.year-Th[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(d0(t))}balanceDate(t){let n=d0(t),r=JS(n);lo[r]!==t.era&&(t.era=lo[r],t.year=n.year-Th[r]),this.constrainDate(t)}constrainDate(t){let n=lo.indexOf(t.era),r=uY[n];if(r!=null){let[i,a,s]=r,o=i-Th[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Rl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return lo}getYearsInEra(t){let n=lo.indexOf(t.era),r=Rl[n],i=Rl[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(d0(t))}getMinimumMonthInYear(t){let n=QS(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=QS(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function QS(e){if(e.year===1){let t=lo.indexOf(e.era);return Rl[t]}}const p_=-543;class cY extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=id(n.era,n.year);return new Hn(this,r-p_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(eD(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(eD(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function eD(e){let[t,n]=sm(e.year+p_);return new Hn(t,n,e.month,e.day)}const op=1911;function m_(e){return e.era==="minguo"?e.year+op:1-e.year+op}function tD(e){let t=e-op;return t>0?["minguo",t]:["before_minguo",1-t]}class fY extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=id(n.era,n.year),[i,a]=tD(r);return new Hn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(nD(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=tD(m_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(nD(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-op}constructor(...t){super(...t),this.identifier="roc"}}function nD(e){let[t,n]=sm(m_(e));return new Hn(t,n,e.month,e.day)}const rD=1948320,iD=[0,31,62,93,124,155,186,216,246,276,306,336];class dY{fromJulianDay(t){let n=t-rD,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-iD[s]+1;return new Hn(this,r,s+1,o)}toJulianDay(t){let n=rD-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=iD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Fl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const h0=78,aD=80;class hY extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-h0,i=t-au(n.era,n.year,1,1),a;i<aD?(r--,a=go(n.year-1)?31:30,i+=a+155+90+10):(a=go(n.year)?31:30,i-=aD);let s,o;if(i<a)s=1,o=i+1;else{let l=i-a;l<155?(s=Math.floor(l/31)+2,o=l%31+1):(l-=155,s=Math.floor(l/30)+7,o=l%30+1)}return new Hn(this,r,s,o)}toJulianDay(t){let n=t.year+h0,[r,i]=sm(n),a,s;return go(i)?(a=31,s=au(r,i,3,21)):(a=30,s=au(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&go(t.year+h0)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const up=1948440,sD=1948439,Ni=1300,cl=1600,pY=460322;function lp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function g_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+lp(t,r,1,1)))/29.5)+1),a=n-lp(t,r,i,1)+1;return new Hn(e,r,i,a)}function oD(e){return(14+11*e)%30<11}class c3{fromJulianDay(t){return g_(this,up,t)}toJulianDay(t){return lp(up,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&oD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return oD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class mY extends c3{fromJulianDay(t){return g_(this,sD,t)}toJulianDay(t){return lp(sD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const gY="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Qb,kl;function Ph(e){return pY+kl[e-Ni]}function hf(e,t){let n=e-Ni,r=1<<11-(t-1);return(Qb[n]&r)===0?29:30}function uD(e,t){let n=Ph(e);for(let r=1;r<t;r++)n+=hf(e,r);return n}function lD(e){return kl[e+1-Ni]-kl[e-Ni]}class vY extends c3{fromJulianDay(t){let n=t-up,r=Ph(Ni),i=Ph(cl);if(n<r||n>i)return super.fromJulianDay(t);{let a=Ni-1,s=1,o=1;for(;o>0;){a++,o=n-Ph(a)+1;let l=lD(a);if(o===l){s=12;break}else if(o<l){let d=hf(a,s);for(s=1;o>d;)o-=d,s++,d=hf(a,s);break}}return new Hn(this,a,s,n-uD(a,s)+1)}}toJulianDay(t){return t.year<Ni||t.year>cl?super.toJulianDay(t):up+uD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ni||t.year>cl?super.getDaysInMonth(t):hf(t.year,t.month)}getDaysInYear(t){return t.year<Ni||t.year>cl?super.getDaysInYear(t):lD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Qb||(Qb=new Uint16Array(Uint8Array.from(atob(gY),t=>t.charCodeAt(0)).buffer)),!kl){kl=new Uint32Array(cl-Ni+1);let t=0;for(let n=Ni;n<=cl;n++){kl[n-Ni]=t;for(let r=1;r<=12;r++)t+=hf(n,r)}}}}const cD=347997,v_=1080,y_=24*v_,yY=29,bY=12*v_+793,$Y=yY*y_+bY;function nu(e){return Fl(e*7+1,19)<7}function _h(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Fl(3*(r+1),7)<3&&(r+=1),r}function xY(e){let t=_h(e-1),n=_h(e);return _h(e+1)-n===356?2:n-t===382?1:0}function bf(e){return _h(e)+xY(e)}function b_(e){return bf(e+1)-bf(e)}function wY(e){let t=b_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function fh(e,t){if(t>=6&&!nu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=wY(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?nu(e)?30:0:30}class CY{fromJulianDay(t){let n=t-cD,r=n*y_/$Y,i=Math.floor((19*r+234)/235)+1,a=bf(i),s=Math.floor(n-a);for(;s<1;)i--,a=bf(i),s=Math.floor(n-a);let o=1,l=0;for(;l<s;)l+=fh(i,o),o++;o--,l-=fh(i,o);let d=s-l;return new Hn(this,i,o,d)}toJulianDay(t){let n=bf(t.year);for(let r=1;r<t.month;r++)n+=fh(t.year,r);return n+t.day+cD}getDaysInMonth(t){return fh(t.year,t.month)}getMonthsInYear(t){return nu(t.year)?13:12}getDaysInYear(t){return b_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(nu(n.year)&&!nu(t.year)&&n.month>6?t.month--:!nu(n.year)&&nu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const e1=1723856,fD=1824665,t1=5500;function cp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function f3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-cp(e,n,1,1))/30),i=t+1-cp(e,n,r,1);return[n,r,i]}function $_(e){return Math.floor(e%4/3)}function x_(e,t){return t%13!==0?30:$_(e)+5}class d3{fromJulianDay(t){let[n,r,i]=f3(e1,t),a="AM";return n<=0&&(a="AA",n+=t1),new Hn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=t1),cp(e1,n,t.month,t.day)}getDaysInMonth(t){return x_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+$_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class EY extends d3{fromJulianDay(t){let[n,r,i]=f3(e1,t);return n+=t1,new Hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class SY extends d3{fromJulianDay(t){let[n,r,i]=f3(fD,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Hn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),cp(fD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),x_(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function DY(e){switch(e){case"buddhist":return new cY;case"ethiopic":return new d3;case"ethioaa":return new EY;case"coptic":return new SY;case"hebrew":return new CY;case"indian":return new hY;case"islamic-civil":return new c3;case"islamic-tbla":return new mY;case"islamic-umalqura":return new vY;case"japanese":return new lY;case"persian":return new dY;case"roc":return new fY;case"gregory":default:return new Ur}}let p0=new Map;class zi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return PY()&&(this.resolvedHourCycle||(this.resolvedHourCycle=_Y(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=w_(t,n),this.options=n}}const AY={true:{ja:"h11"},false:{}};function w_(e,t={}){if(typeof t.hour12=="boolean"&&TY()){t={...t};let i=AY[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(p0.has(n))return p0.get(n);let r=new Intl.DateTimeFormat(e,t);return p0.set(n,r),r}let m0=null;function TY(){return m0==null&&(m0=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),m0}let g0=null;function PY(){return g0==null&&(g0=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),g0}function _Y(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=w_(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function za(e){e=M5(e??{},MY);let{locale:t}=Tr();return L.useMemo(()=>new zi(t,e),[t,e])}function MY(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let v0=new Map,n1=!1;try{n1=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let fp=!1;try{fp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const C_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class E_{format(t){let n="";if(!n1&&this.options.signDisplay!=null?n=RY(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!fp){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let o=(r=C_[i])===null||r===void 0?void 0:r[a];n+=o[s]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!n1&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!fp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=FY(t,n),this.options=n}}function FY(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!fp){var r;let{unit:s,unitDisplay:o="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=C_[s])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():"");if(v0.has(i))return v0.get(i);let a=new Intl.NumberFormat(e,t);return v0.set(i,a),a}function RY(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const kY=new RegExp("^.*\\(.*\\).*$"),OY=["latn","arab","hanidec","deva","beng","fullwide"];class S_{parse(t){return y0(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return y0(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return y0(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const dD=new Map;function y0(e,t,n){let r=hD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of OY)if(i!==r.options.numberingSystem){let a=hD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function hD(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=dD.get(n);return r||(r=new IY(e,t),dD.set(n,r)),r}class IY{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=fl(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new S_(this.locale,s).parse(new E_(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&kY.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=fl(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=fl(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=fl(t," ",this.symbols.group),t=fl(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=fl(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=BY(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const pD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),LY=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function BY(e,t,n,r){var i,a,s,o;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=LY.map(le=>l.formatToParts(le));var g;let b=(g=(i=d.find(le=>le.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",w=(a=h.find(le=>le.type==="plusSign"))===null||a===void 0?void 0:a.value;!w&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(w="+");let A=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(le=>le.type==="decimal"))===null||s===void 0?void 0:s.value,E=(o=d.find(le=>le.type==="group"))===null||o===void 0?void 0:o.value,C=d.filter(le=>!pD.has(le.type)).map(le=>mD(le.value)),S=m.flatMap(le=>le.filter(I=>!pD.has(I.type)).map(I=>mD(I.value))),M=[...new Set([...C,...S])].sort((le,I)=>I.length-le.length),_=M.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${M.join("|")}|[\\p{White_Space}]`,"gu"),R=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),z=new Map(R.map((le,I)=>[le,I])),re=new RegExp(`[${R.join("")}]`,"g");return{minusSign:b,plusSign:w,decimal:A,group:E,literals:_,numeral:re,index:le=>String(z.get(le))}}function fl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function mD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function VY(e={}){let{locale:t}=Tr();return L.useMemo(()=>new E_(t,e),[t,e])}let b0=new Map;function D_(e){let{locale:t}=Tr(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(b0.has(n))return b0.get(n);let r=new Intl.Collator(t,e);return b0.set(n,r),r}function A_(e){let t=D_({usage:"search",...e}),n=L.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=L.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=L.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let o=0,l=s.length;for(;o+l<=a.length;o++){let d=a.slice(o,o+l);if(t.compare(s,d)===0)return!0}return!1},[t]);return L.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function NY(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:o,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:w,type:x="button"}=e,A;n==="button"?A={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:A={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:E,isPressed:C}=rd({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:S}=t3(e,t);h&&(S.tabIndex=r?-1:S.tabIndex);let M=Jt(S,E,qs(e,{labelable:!0}));return{isPressed:C,buttonProps:Jt(A,M,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const gD=ce.default.createContext(null),r1="react-aria-focus-scope-restore";let pn=null;function jY(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=L.useRef(null),s=L.useRef(null),o=L.useRef([]),{parentNode:l}=L.useContext(gD)||{},d=L.useMemo(()=>new a1({scopeRef:o}),[o]);gn(()=>{let g=l||Zn.root;if(Zn.getTreeNode(g.scopeRef)&&pn&&!dp(pn,g.scopeRef)){let b=Zn.getTreeNode(pn);b&&(g=b)}g.addChild(d),Zn.addNode(d)},[d,l]),gn(()=>{let g=Zn.getTreeNode(o);g&&(g.contain=!!n)},[n]),gn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,w=[],x=A=>A.stopPropagation();for(;b&&b!==s.current;)w.push(b),b.addEventListener(r1,x),b=b.nextSibling;return o.current=w,()=>{for(let A of w)A.removeEventListener(r1,x)}},[t]),HY(o,r,n),qY(o,n),GY(o,r,n),WY(o,i),L.useEffect(()=>{const g=nr(Xt(o.current?o.current[0]:void 0));let b=null;if(Xi(g,o.current)){for(let w of Zn.traverse())w.scopeRef&&Xi(g,w.scopeRef.current)&&(b=w);b===Zn.getTreeNode(o)&&(pn=b.scopeRef)}},[o]),gn(()=>()=>{var g,b,w;let x=(w=(b=Zn.getTreeNode(o))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&w!==void 0?w:null;(o===pn||dp(o,pn))&&(!x||Zn.getTreeNode(x))&&(pn=x),Zn.removeTreeNode(o)},[o]);let h=L.useMemo(()=>KY(o),[]),m=L.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return ce.default.createElement(gD.Provider,{value:m},ce.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,ce.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function KY(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var o;let l=r||nr(Xt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=su(n),m=Lr(h,{tabbable:i,accept:s},n);m.currentNode=Xi(l,n)?l:d;let g=m.nextNode();return!g&&a&&(m.currentNode=d,g=m.nextNode()),g&&ti(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var o;let l=r||nr(Xt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=su(n),m=Lr(h,{tabbable:i,accept:s},n);m.currentNode=Xi(l,n)?l:d;let g=m.previousNode();return!g&&a&&(m.currentNode=d,g=m.previousNode()),g&&ti(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=su(n),s=Lr(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let o=s.nextNode();return o&&ti(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=su(n),s=Lr(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let o=s.previousNode();return o&&ti(o,!0),o}}}function su(e){return e[0].parentElement}function pf(e){let t=Zn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function UY(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function qY(e,t){let n=L.useRef(void 0),r=L.useRef(void 0);gn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Xt(i?i[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!pf(e)||d.isComposing)return;let h=nr(a),m=e.current;if(!m||!Xi(h,m))return;let g=su(m),b=Lr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&ti(w,!0)},o=d=>{(!pn||dp(pn,e))&&Xi(tn(d),e.current)?(pn=e,n.current=tn(d)):pf(e)&&!vo(tn(d),e)?n.current?n.current.focus():pn&&pn.current&&i1(pn.current):pf(e)&&(n.current=tn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Mf(),m=(h==="virtual"||h===null)&&G4()&&H4(),g=nr(a);if(!m&&g&&pf(e)&&!vo(g,e)){pn=e;let w=tn(d);if(w&&w.isConnected){var b;n.current=w,(b=n.current)===null||b===void 0||b.focus()}else pn.current&&i1(pn.current)}})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",o,!1),i==null||i.forEach(d=>d.addEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",o,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),gn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function T_(e){return vo(e)}function Xi(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function vo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Zn.traverse(Zn.getTreeNode(t)))if(n&&Xi(e,n.current))return!0;return!1}function zY(e){return vo(e,pn)}function dp(e,t){var n;let r=(n=Zn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ti(e,t=!1){if(e!=null&&!t)try{wu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function P_(e,t=!0){let n=e[0].previousElementSibling,r=su(e),i=Lr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=su(e),i=Lr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function i1(e,t=!0){ti(P_(e,t))}function WY(e,t){const n=ce.default.useRef(t);L.useEffect(()=>{if(n.current){pn=e;const r=Xt(e.current?e.current[0]:void 0);!Xi(nr(r),pn.current)&&e.current&&i1(e.current)}n.current=!1},[e])}function HY(e,t,n){gn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=s=>{let o=tn(s);Xi(o,e.current)?pn=e:T_(o)||(pn=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function vD(e){let t=Zn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function GY(e,t,n){const r=L.useRef(typeof document<"u"?nr(Xt(e.current?e.current[0]:void 0)):null);gn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!pn||dp(pn,e))&&Xi(nr(a),e.current)&&(pn=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,n]),gn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!pf(e)||s.isComposing)return;let o=i.activeElement;if(!vo(o,e)||!vD(e))return;let l=Zn.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Lr(i.body,{tabbable:!0});h.currentNode=o;let m=s.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!vo(m,e))&&d){h.currentNode=d;do m=s.shiftKey?h.previousNode():h.nextNode();while(vo(m,e));s.preventDefault(),s.stopPropagation(),m?ti(m,!0):T_(d)?ti(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),gn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Zn.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let o=Zn.getTreeNode(e);if(!o)return;let l=o.nodeToRestore,d=nr(i);if(t&&l&&(d&&vo(d,e)||d===i.body&&vD(e))){let h=Zn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){yD(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Zn.getTreeNode(m.scopeRef)){let g=P_(m.scopeRef.current,!0);yD(g);return}m=m.parent}}})}}}},[e,t])}function yD(e){e.dispatchEvent(new CustomEvent(r1,{bubbles:!0,cancelable:!0}))&&ti(e)}function Lr(e,t,n){let r=t!=null&&t.tabbable?eG:F5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),s=SH(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!UY(o)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||Xi(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(s.currentNode=t.from),s}function cm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||nr(Xt(r)),d=Lr(r,{tabbable:a,accept:o});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&s&&(d.currentNode=r,h=d.nextNode()),h&&ti(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||nr(Xt(r)),d=Lr(r,{tabbable:a,accept:o});if(r.contains(l))d.currentNode=l;else{let m=$0(d);return m&&ti(m,!0),m??null}let h=d.previousNode();if(!h&&s){d.currentNode=r;let m=$0(d);if(!m)return null;h=m}return h&&ti(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Lr(r,{tabbable:i,accept:a}).nextNode();return o&&ti(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Lr(r,{tabbable:i,accept:a}),o=$0(s);return o&&ti(o,!0),o??null}}}function $0(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class h3{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new a1({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Xi(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new h3;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new a1({scopeRef:null}),this.fastMap.set(null,this.root)}}class a1{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Zn=new h3;function __(e){let t=ZY(Xt(e));t!==e&&(t&&YY(t,e),e&&p3(e,t))}function YY(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function p3(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function ZY(e){let t=nr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var M_={};M_={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var F_={};F_={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var R_={};R_={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var k_={};k_={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var O_={};O_={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var I_={};I_={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var L_={};L_={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var B_={};B_={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var V_={};V_={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var N_={};N_={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var j_={};j_={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var K_={};K_={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var U_={};U_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var q_={};q_={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var z_={};z_={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var W_={};W_={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var H_={};H_={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var G_={};G_={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Y_={};Y_={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Z_={};Z_={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var X_={};X_={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var J_={};J_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Q_={};Q_={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var e6={};e6={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var t6={};t6={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var n6={};n6={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var r6={};r6={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var i6={};i6={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var a6={};a6={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var s6={};s6={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var o6={};o6={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var u6={};u6={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var l6={};l6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var c6={};c6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var ud={};ud={"ar-AE":M_,"bg-BG":F_,"cs-CZ":R_,"da-DK":k_,"de-DE":O_,"el-GR":I_,"en-US":L_,"es-ES":B_,"et-EE":V_,"fi-FI":N_,"fr-FR":j_,"he-IL":K_,"hr-HR":U_,"hu-HU":q_,"it-IT":z_,"ja-JP":W_,"ko-KR":H_,"lt-LT":G_,"lv-LV":Y_,"nb-NO":Z_,"nl-NL":X_,"pl-PL":J_,"pt-BR":Q_,"pt-PT":e6,"ro-RO":t6,"ru-RU":n6,"sk-SK":r6,"sl-SI":i6,"sr-SP":a6,"sv-SE":s6,"tr-TR":o6,"uk-UA":u6,"zh-CN":l6,"zh-TW":c6};function f6(e){return e&&e.__esModule?e.default:e}const m3=new WeakMap;function If(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function XY(e){let t=rs(f6(ud),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=za({weekday:"long",month:"long",year:"numeric",day:"numeric",era:If(n)||If(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return L.useMemo(()=>{if(!s&&n&&r)if(Jn(n,r)){let o=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=o1(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,s,e.timeZone,t,a])}function s1(e,t,n,r){let i=rs(f6(ud),"@react-aria/calendar"),a=If(e)||If(t),s=za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return L.useMemo(()=>{if(Jn(e,sd(e))){let l=e,d=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Jn(t,Yb(e)))return s.format(l.toDate(n));if(Jn(t,Yb(t)))return r?o1(s,i,l,d,n):s.formatRange(l.toDate(n),d.toDate(n))}return r?o1(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,o,i,n,r])}function o1(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let d=0;d<a.length;d++){let h=a[d];if(h.source==="shared"&&h.type==="literal")s=d;else if(h.source==="endRange")break}let o="",l="";for(let d=0;d<a.length;d++)d<s?o+=a[d].value:d>s&&(l+=a[d].value);return t.format("dateRange",{startDate:o,endDate:l})}const d6=7e3;let Bi=null;function Ol(e,t="assertive",n=d6){Bi?Bi.announce(e,t,n):(Bi=new QY,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Bi.announce(e,t,n):setTimeout(()=>{Bi!=null&&Bi.isAttached()&&(Bi==null||Bi.announce(e,t,n))},100))}function JY(e){Bi&&Bi.clear(e)}class QY{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=d6){var i,a;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(a=this.politeLog)===null||a===void 0||a.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function eZ(e){return e&&e.__esModule?e.default:e}function h6(e,t){let n=rs(eZ(ud),"@react-aria/calendar"),r=qs(e),i=s1(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=s1(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);jb(()=>{t.isFocused||Ol(a)},[a]);let s=XY(t);jb(()=>{s&&Ol(s,"polite",4e3)},[s]);let o=Ul([!!e.errorMessage,e.isInvalid,e.validationState]);m3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:s});let[l,d]=L.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=L.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let w=ql({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Jt(r,w,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:o},title:i}}function tZ(e,t){return h6(e,t)}function nZ(e,t,n){let r=h6(e,t),i=L.useRef(!1),a=L.useRef(typeof window<"u"?window:null);return ga(a,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),ga(a,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ga(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function rZ(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Tr(),s=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},o=s1(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=m3.get(t),h=ql({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":d}),m=za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Tr(),b=L.useMemo(()=>{let x=Ff(um(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let C=x.add({days:A}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),w=e_(n,g,i);return{gridProps:Jt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:s,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:w}}function iZ(e){return e&&e.__esModule?e.default:e}function aZ(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=m3.get(t),o=rs(iZ(ud),"@react-aria/calendar"),l=za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:If(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Jn(t.value,r));b&&(d=!0),r=M5(r,Gb);let w=L.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=Z5(r,t.timeZone),A=L.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Jn(r,t.value.start)||Jn(r,t.value.end))&&(I=s+", "),I+=l.format(w),x?I=o.format(d?"todayDateSelected":"todayDate",{date:I}):d&&(I=o.format("dateSelected",{date:I})),t.minValue&&Jn(r,t.minValue)?I+=", "+o.format("minimumDate"):t.maxValue&&Jn(r,t.maxValue)&&(I+=", "+o.format("maximumDate")),I},[l,w,o,d,x,r,t,s]),E="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?E=o.format("finishRangeSelectionPrompt"):E=o.format("startRangeSelectionPrompt"));let C=td(E),S=L.useRef(!1),M=L.useRef(!1),_=L.useRef(void 0),{pressProps:R,isPressed:z}=rd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.pointerType==="touch")){if(t.highlightedRange&&!b){if(Jn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),M.current=!0;return}else if(Jn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),M.current=!0;return}}let Ce=()=>{t.setDragging(!0),_.current=void 0,t.selectDate(r),t.setFocusedDate(r),S.current=!0};I.pointerType==="touch"?_.current=setTimeout(Ce,200):Ce()}},onPressEnd(){M.current=!1,S.current=!1,clearTimeout(_.current),_.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&_.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(M.current)t.setAnchorDate(r);else if(t.anchorDate&&!S.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Ce=r.add({days:1});t.isInvalid(Ce)&&(Ce=r.subtract({days:1})),t.isInvalid(Ce)||t.setFocusedDate(Ce)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),re;i||(re=Jn(r,t.focusedDate)?0:-1),L.useEffect(()=>{h&&n.current&&(wi(n.current),Mf()!=="pointer"&&document.activeElement===n.current&&rp(n.current,{containingElement:im(n.current)}))},[h,n]);let ge=za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),le=L.useMemo(()=>ge.formatToParts(w).find(I=>I.type==="day").value,[ge,w]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Jt(R,{onFocus(){i||t.setFocusedDate(r)},tabIndex:re,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.preventDefault()}}),isPressed:z,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:le}}const fm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},p6={...fm,customError:!0,valid:!1},ru={isInvalid:!1,validationDetails:fm,validationErrors:[]},sZ=L.createContext({}),Gl="__formValidationState"+Date.now();function ld(e){if(e[Gl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Gl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return oZ(e)}function oZ(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:p6}:null,d=L.useMemo(()=>{if(!s||i==null)return null;let le=uZ(s,i);return bD(le)},[s,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=L.useContext(sZ),m=L.useMemo(()=>r?Array.isArray(r)?r.flatMap(le=>u1(h[le])):u1(h[r]):[],[h,r]),[g,b]=L.useState(h),[w,x]=L.useState(!1);h!==g&&(b(h),x(!1));let A=L.useMemo(()=>bD(w?[]:m),[w,m]),E=L.useRef(ru),[C,S]=L.useState(ru),M=L.useRef(ru),_=()=>{if(!R)return;z(!1);let le=d||a||E.current;x0(le,M.current)||(M.current=le,S(le))},[R,z]=L.useState(!1);return L.useEffect(_),{realtimeValidation:l||A||d||a||ru,displayValidation:o==="native"?l||A||C:l||A||d||a||C,updateValidation(le){o==="aria"&&!x0(C,le)?S(le):E.current=le},resetValidation(){let le=ru;x0(le,M.current)||(M.current=le,S(le)),o==="native"&&z(!1),x(!0)},commitValidation(){o==="native"&&z(!0),x(!0)}}}function u1(e){return e?Array.isArray(e)?e:[e]:[]}function uZ(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return u1(n)}return[]}function bD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:p6}:null}function x0(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function hp(...e){let t=new Set,n=!1,r={...fm};for(let s of e){var i,a;for(let o of s.validationErrors)t.add(o);n||(n=s.isInvalid);for(let o in r)(i=r)[a=o]||(i[a]=s.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function m6(e,t,n){let{validationBehavior:r,focus:i}=e;gn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(cZ(n.current))}});let a=L.useRef(!1),s=Mn(()=>{a.current||t.resetValidation()}),o=Mn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&fZ(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),K5("keyboard")}d.preventDefault()}),l=Mn(()=>{t.commitValidation()});L.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let h=d.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{a.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",l),h==null||h.addEventListener("reset",s),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",l),h==null||h.removeEventListener("reset",s),h&&(h.reset=m)}},[n,o,l,s,r])}function lZ(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function cZ(e){return{isInvalid:!e.validity.valid,validationDetails:lZ(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function fZ(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function dm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=jr(t);let s=jr(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=ql({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function hm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=dm(e),o=Ul([!!t,!!n,r,i]),l=Ul([!!t,!!n,r,i]);return s=Jt(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:l}}}const dZ=0,hZ=100,pZ=1;function mZ(e){const{isDisabled:t=!1,minValue:n=dZ,maxValue:r=hZ,numberFormatter:i,step:a=pZ,orientation:s="horizontal"}=e;let o=L.useMemo(()=>{let oe=(r-n)/10;return oe=Yc(oe,0,oe+a,a),Math.max(oe,a)},[a,r,n]),l=L.useCallback(oe=>oe==null?void 0:oe.map((Te,Me)=>{let Le=Me===0?n:oe[Me-1],Ye=Me===oe.length-1?r:oe[Me+1];return Yc(Te,Le,Ye,a)}),[n,r,a]),d=L.useMemo(()=>l(xD(e.value)),[e.value,l]),h=L.useMemo(()=>{var oe;return l((oe=xD(e.defaultValue))!==null&&oe!==void 0?oe:[n])},[e.defaultValue,n,l]),m=wD(e.value,e.defaultValue,e.onChange),g=wD(e.value,e.defaultValue,e.onChangeEnd);const[b,w]=Ci(d,h,m);let[x]=L.useState(b);const[A,E]=L.useState(new Array(b.length).fill(!1)),C=L.useRef(new Array(b.length).fill(!0)),[S,M]=L.useState(void 0),_=L.useRef(b),R=L.useRef(A);let z=oe=>{_.current=oe,w(oe)},re=oe=>{R.current=oe,E(oe)};function ge(oe){return(oe-n)/(r-n)}function le(oe){return oe===0?n:b[oe-1]}function I(oe){return oe===b.length-1?r:b[oe+1]}function Ce(oe){return C.current[oe]}function we(oe,Te){C.current[oe]=Te}function U(oe,Te){if(t||!Ce(oe))return;const Me=le(oe),Le=I(oe);Te=Yc(Te,Me,Le,a);let Ye=$D(_.current,oe,Te);z(Ye)}function ee(oe,Te){if(t||!Ce(oe))return;Te&&(_.current=b);const Me=R.current[oe];R.current=$D(R.current,oe,Te),re(R.current),g&&Me&&!R.current.some(Boolean)&&g(_.current)}function N(oe){return i.format(oe)}function O(oe,Te){U(oe,de(Te))}function K(oe){return Math.round((oe-n)/a)*a+n}function de(oe){const Te=oe*(r-n)+n;return Wl(K(Te),n,r)}function k(oe,Te=1){let Me=Math.max(Te,a);U(oe,Yc(b[oe]+Me,n,r,a))}function se(oe,Te=1){let Me=Math.max(Te,a);U(oe,Yc(b[oe]-Me,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:oe=>b[oe],setThumbValue:U,setThumbPercent:O,isThumbDragging:oe=>A[oe],setThumbDragging:ee,focusedThumb:S,setFocusedThumb:M,getThumbPercent:oe=>ge(b[oe]),getValuePercent:ge,getThumbValueLabel:oe=>N(b[oe]),getFormattedValue:N,getThumbMinValue:le,getThumbMaxValue:I,getPercentValue:de,isThumbEditable:Ce,setThumbEditable:we,incrementThumb:k,decrementThumb:se,step:a,pageSize:o,orientation:s,isDisabled:t}}function $D(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function xD(e){if(e!=null)return Array.isArray(e)?e:[e]}function wD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const CD={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function gZ(e={}){let{style:t,isFocusable:n}=e,[r,i]=L.useState(!1),{focusWithinProps:a}=ac({isDisabled:!n,onFocusWithinChange:o=>i(o)}),s=L.useMemo(()=>r?t:t?{...CD,...t}:CD,[r]);return{visuallyHiddenProps:{...a,style:s}}}function vZ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=gZ(e);return ce.default.createElement(n,Jt(a,s),t)}const g3=new WeakMap;function l1(e,t){let n=g3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function yZ(e,t,n){let{labelProps:r,fieldProps:i}=dm(e),a=e.orientation==="vertical";var s;g3.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:o}=Tr(),{addGlobalListener:l,removeGlobalListener:d}=Co();const h=L.useRef(null),m=o==="rtl",g=L.useRef(null),{moveProps:b}=q5({onMoveStart(){g.current=null},onMove({deltaX:E,deltaY:C}){if(!n.current)return;let{height:S,width:M}=n.current.getBoundingClientRect(),_=a?S:M;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*_);let R=a?C:E;if((a||m)&&(R=-R),g.current+=R,h.current!=null&&n.current){const z=Wl(g.current/_,0,1);t.setThumbPercent(h.current,z)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let w=L.useRef(void 0),x=(E,C,S,M)=>{if(n.current&&!e.isDisabled&&t.values.every((_,R)=>!t.isThumbDragging(R))){let{height:_,width:R,top:z,left:re}=n.current.getBoundingClientRect(),ge=a?_:R,we=((a?M:S)-(a?z:re))/ge;(o==="rtl"||a)&&(we=1-we);let U=t.getPercentValue(we),ee,N=t.values.findIndex(O=>U-O<0);if(N===0)ee=N;else if(N===-1)ee=t.values.length-1;else{let O=t.values[N-1],K=t.values[N];Math.abs(O-U)<Math.abs(K-U)?ee=N-1:ee=N}ee>=0&&t.isThumbEditable(ee)?(E.preventDefault(),h.current=ee,t.setFocusedThumb(ee),w.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(ee,U),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=E=>{var C,S;((S=E.pointerId)!==null&&S!==void 0?S:(C=E.changedTouches)===null||C===void 0?void 0:C[0].identifier)===w.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",A,!1),d(window,"touchend",A,!1),d(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var E;(E=document.getElementById(l1(t,0)))===null||E===void 0||E.focus(),K5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Jt({onMouseDown(E){E.button!==0||E.altKey||E.ctrlKey||E.metaKey||x(E,void 0,E.clientX,E.clientY)},onPointerDown(E){E.pointerType==="mouse"&&(E.button!==0||E.altKey||E.ctrlKey||E.metaKey)||x(E,E.pointerId,E.clientX,E.clientY)},onTouchStart(E){x(E,E.changedTouches[0].identifier,E.changedTouches[0].clientX,E.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((E,C)=>l1(t,C)).join(" "),"aria-live":"off"}}}function bZ(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:s,inputRef:o,orientation:l=t.orientation,name:d,form:h}=e,m=e.isDisabled||t.isDisabled,g=l==="vertical",{direction:b}=Tr(),{addGlobalListener:w,removeGlobalListener:x}=Co(),A=g3.get(t);var E;const{labelProps:C,fieldProps:S}=dm({...e,id:l1(t,n),"aria-labelledby":`${A.id} ${(E=e["aria-labelledby"])!==null&&E!==void 0?E:""}`.trim()}),M=t.values[n],_=L.useCallback(()=>{o.current&&wi(o.current)},[o]),R=t.focusedThumb===n;L.useEffect(()=>{R&&_()},[R,_]);let z=b==="rtl",re=L.useRef(null),{keyboardProps:ge}=U5({onKeyDown(O){let{getThumbMaxValue:K,getThumbMinValue:de,decrementThumb:k,incrementThumb:se,setThumbValue:oe,setThumbDragging:Te,pageSize:Me}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),Te(n,!0),O.key){case"PageUp":se(n,Me);break;case"PageDown":k(n,Me);break;case"Home":oe(n,de(n));break;case"End":oe(n,K(n));break}Te(n,!1)}}),{moveProps:le}=q5({onMoveStart(){re.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:K,pointerType:de,shiftKey:k}){const{getThumbPercent:se,setThumbPercent:oe,decrementThumb:Te,incrementThumb:Me,step:Le,pageSize:Ye}=t;if(!s.current)return;let{width:Qe,height:Ue}=s.current.getBoundingClientRect(),Ge=g?Ue:Qe;if(re.current==null&&(re.current=se(n)*Ge),de==="keyboard")O>0&&z||O<0&&!z||K>0?Te(n,k?Ye:Le):Me(n,k?Ye:Le);else{let Ie=g?K:O;(g||z)&&(Ie=-Ie),re.current+=Ie,oe(n,Wl(re.current/Ge,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:I}=t3(Jt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let Ce=L.useRef(void 0),we=O=>{_(),Ce.current=O,t.setThumbDragging(n,!0),w(window,"mouseup",U,!1),w(window,"touchend",U,!1),w(window,"pointerup",U,!1)},U=O=>{var K,de;((de=O.pointerId)!==null&&de!==void 0?de:(K=O.changedTouches)===null||K===void 0?void 0:K[0].identifier)===Ce.current&&(_(),t.setThumbDragging(n,!1),x(window,"mouseup",U,!1),x(window,"touchend",U,!1),x(window,"pointerup",U,!1))},ee=t.getThumbPercent(n);(g||b==="rtl")&&(ee=1-ee);let N=m?{}:Jt(ge,le,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||we()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||we(O.pointerId)},onTouchStart:O=>{we(O.changedTouches[0].identifier)}});return Y4(o,t.defaultValues[n],O=>{t.setThumbValue(n,O)}),{inputProps:Jt(I,S,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:M,name:d,form:h,disabled:m,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[A["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[A["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:O=>{t.setThumbValue(n,parseFloat(O.target.value))}}),thumbProps:{...N,style:{position:"absolute",[g?"top":"left"]:`${ee*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:C,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:R}}function $Z(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s="text",validationBehavior:o="aria"}=e,[l,d]=Ci(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=t3(e,t),m=ld({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:w}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:E,errorMessageProps:C}=hm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),S=qs(e,{labelable:!0});const M={type:s,pattern:e.pattern};let[_]=L.useState(l);var R;return Y4(t,(R=e.defaultValue)!==null&&R!==void 0?R:_,d),m6(e,m,t),L.useEffect(()=>{if(t.current instanceof es(t.current).HTMLTextAreaElement){let z=t.current;Object.defineProperty(z,"defaultValue",{get:()=>z.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Jt(S,n==="input"?M:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:z=>d(z.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(ce.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:E,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:w}}var g6={};g6={Empty:"فارغ"};var v6={};v6={Empty:"Изпразни"};var y6={};y6={Empty:"Prázdné"};var b6={};b6={Empty:"Tom"};var $6={};$6={Empty:"Leer"};var x6={};x6={Empty:"Άδειο"};var w6={};w6={Empty:"Empty"};var C6={};C6={Empty:"Vacío"};var E6={};E6={Empty:"Tühjenda"};var S6={};S6={Empty:"Tyhjä"};var D6={};D6={Empty:"Vide"};var A6={};A6={Empty:"ריק"};var T6={};T6={Empty:"Prazno"};var P6={};P6={Empty:"Üres"};var _6={};_6={Empty:"Vuoto"};var M6={};M6={Empty:"空"};var F6={};F6={Empty:"비어 있음"};var R6={};R6={Empty:"Tuščias"};var k6={};k6={Empty:"Tukšs"};var O6={};O6={Empty:"Tom"};var I6={};I6={Empty:"Leeg"};var L6={};L6={Empty:"Pusty"};var B6={};B6={Empty:"Vazio"};var V6={};V6={Empty:"Vazio"};var N6={};N6={Empty:"Gol"};var j6={};j6={Empty:"Не заполнено"};var K6={};K6={Empty:"Prázdne"};var U6={};U6={Empty:"Prazen"};var q6={};q6={Empty:"Prazno"};var z6={};z6={Empty:"Tomt"};var W6={};W6={Empty:"Boş"};var H6={};H6={Empty:"Пусто"};var G6={};G6={Empty:"空"};var Y6={};Y6={Empty:"空白"};var Z6={};Z6={"ar-AE":g6,"bg-BG":v6,"cs-CZ":y6,"da-DK":b6,"de-DE":$6,"el-GR":x6,"en-US":w6,"es-ES":C6,"et-EE":E6,"fi-FI":S6,"fr-FR":D6,"he-IL":A6,"hr-HR":T6,"hu-HU":P6,"it-IT":_6,"ja-JP":M6,"ko-KR":F6,"lt-LT":R6,"lv-LV":k6,"nb-NO":O6,"nl-NL":I6,"pl-PL":L6,"pt-BR":B6,"pt-PT":V6,"ro-RO":N6,"ru-RU":j6,"sk-SK":K6,"sl-SI":U6,"sr-SP":q6,"sv-SE":z6,"tr-TR":W6,"uk-UA":H6,"zh-CN":G6,"zh-TW":Y6};function xZ(e){return e&&e.__esModule?e.default:e}function wZ(e){const t=L.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:o,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:w}=e;const x=rs(xZ(Z6),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);L.useEffect(()=>()=>A(),[]);let E=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||o||I.nativeEvent.isComposing))switch(I.key){case"PageUp":if(h){I.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(I.preventDefault(),d==null||d());break;case"PageDown":if(g){I.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(I.preventDefault(),m==null||m());break;case"Home":b&&(I.preventDefault(),b==null||b());break;case"End":w&&(I.preventDefault(),w==null||w());break}},C=L.useRef(!1),S=()=>{C.current=!0},M=()=>{C.current=!1},_=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");L.useEffect(()=>{C.current&&(JY("assertive"),Ol(_,"assertive"))},[_]);const R=Mn(I=>{A(),d==null||d(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&R(60)},I)}),z=Mn(I=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&z(60)},I)});let re=I=>{I.preventDefault()},{addGlobalListener:ge,removeAllGlobalListeners:le}=Co();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":_,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:E,onFocus:S,onBlur:M},incrementButtonProps:{onPressStart:()=>{R(400),ge(window,"contextmenu",re)},onPressEnd:()=>{A(),le()},onFocus:S,onBlur:M},decrementButtonProps:{onPressStart:()=>{z(400),ge(window,"contextmenu",re)},onPressEnd:()=>{A(),le()},onFocus:S,onBlur:M}}}var X6={};X6={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var J6={};J6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Q6={};Q6={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var eM={};eM={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var tM={};tM={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var nM={};nM={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var rM={};rM={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var iM={};iM={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var aM={};aM={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var sM={};sM={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var oM={};oM={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var uM={};uM={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var lM={};lM={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var cM={};cM={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var fM={};fM={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var dM={};dM={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var hM={};hM={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var pM={};pM={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var mM={};mM={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var gM={};gM={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var vM={};vM={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var yM={};yM={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var bM={};bM={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var $M={};$M={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var xM={};xM={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var wM={};wM={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var CM={};CM={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var EM={};EM={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var SM={};SM={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var DM={};DM={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var AM={};AM={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var TM={};TM={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var PM={};PM={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var _M={};_M={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var MM={};MM={"ar-AE":X6,"bg-BG":J6,"cs-CZ":Q6,"da-DK":eM,"de-DE":tM,"el-GR":nM,"en-US":rM,"es-ES":iM,"et-EE":aM,"fi-FI":sM,"fr-FR":oM,"he-IL":uM,"hr-HR":lM,"hu-HU":cM,"it-IT":fM,"ja-JP":dM,"ko-KR":hM,"lt-LT":pM,"lv-LV":mM,"nb-NO":gM,"nl-NL":vM,"pl-PL":yM,"pt-BR":bM,"pt-PT":$M,"ro-RO":xM,"ru-RU":wM,"sk-SK":CM,"sl-SI":EM,"sr-SP":SM,"sv-SE":DM,"tr-TR":AM,"uk-UA":TM,"zh-CN":PM,"zh-TW":_M};const Wa={top:"top",bottom:"top",left:"left",right:"left"},pp={top:"bottom",bottom:"top",left:"right",right:"left"},CZ={top:"left",left:"top"},c1={top:"height",left:"width"},FM={width:"totalWidth",height:"totalHeight"},dh={};let cr=typeof document<"u"?window.visualViewport:null;function ED(e){let t=0,n=0,r=0,i=0,a=0,s=0,o={};var l;let d=((l=cr==null?void 0:cr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let w=document.documentElement;r=w.clientWidth,i=w.clientHeight;var h;t=(h=cr==null?void 0:cr.width)!==null&&h!==void 0?h:r;var m;n=(m=cr==null?void 0:cr.height)!==null&&m!==void 0?m:i,o.top=w.scrollTop||e.scrollTop,o.left=w.scrollLeft||e.scrollLeft,cr&&(a=cr.offsetTop,s=cr.offsetLeft)}else({width:t,height:n,top:a,left:s}=Il(e,!1)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(W4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;a=(g=cr==null?void 0:cr.pageTop)!==null&&g!==void 0?g:0;var b;s=(b=cr==null?void 0:cr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:a,left:s}}function EZ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function SD(e,t,n,r,i,a,s){var o;let l=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[c1[e]],h=r.scroll[Wa[e]]+a,m=d+r.scroll[Wa[e]]-a,g=t-l+s[e]-r[Wa[e]],b=t-l+n+s[e]-r[Wa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function SZ(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function DD(e){if(dh[e])return dh[e];let[t,n]=e.split(" "),r=Wa[t]||"right",i=CZ[r];Wa[n]||(n="center");let a=c1[r],s=c1[i];return dh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},dh[e]}function w0(e,t,n,r,i,a,s,o,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:w,crossSize:x}=r,A={};var E;A[b]=(E=e[b])!==null&&E!==void 0?E:0;var C,S,M,_;m==="center"?A[b]+=(((C=e[x])!==null&&C!==void 0?C:0)-((S=n[x])!==null&&S!==void 0?S:0))/2:m!==b&&(A[b]+=((M=e[x])!==null&&M!==void 0?M:0)-((_=n[x])!==null&&_!==void 0?_:0)),A[b]+=a;const R=e[b]-n[x]+l+d,z=e[b]+e[x]-l-d;if(A[b]=Wl(A[b],R,z),h===g){const re=o?s[w]:t[FM[w]];A[pp[g]]=Math.floor(re-e[g]+i)}else A[g]=Math.floor(e[g]+e[w]+i);return A}function DZ(e,t,n,r,i,a,s,o){const l=r?n.height:t[FM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-s);var m,g,b,w,x,A;let E=o!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+a)):Math.max(0,h+s-(t.top+((w=t.scroll.top)!==null&&w!==void 0?w:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+a));return Math.min(t.height-a*2,E)}function AD(e,t,n,r,i,a){let{placement:s,axis:o,size:l}=a;var d,h;if(s===o)return Math.max(0,n[o]-e[o]-((d=e.scroll[o])!==null&&d!==void 0?d:0)+t[o]-((h=r[o])!==null&&h!==void 0?h:0)-r[pp[o]]-i);var m;return Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-((m=r[o])!==null&&m!==void 0?m:0)-r[pp[o]]-i)}function AZ(e,t,n,r,i,a,s,o,l,d,h,m,g,b,w,x){let A=DD(e),{size:E,crossAxis:C,crossSize:S,placement:M,crossPlacement:_}=A,R=w0(t,o,n,A,h,m,d,g,w,x),z=h,re=AD(o,d,t,i,a+h,A);if(s&&r[E]>re){let Qe=DD(`${pp[M]} ${_}`),Ue=w0(t,o,n,Qe,h,m,d,g,w,x);AD(o,d,t,i,a+h,Qe)>re&&(A=Qe,R=Ue,z=h)}let ge="bottom";A.axis==="top"?A.placement==="top"?ge="top":A.placement==="bottom"&&(ge="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?ge="bottom":A.crossPlacement==="bottom"&&(ge="top"));let le=SD(C,R[C],n[S],o,l,a,d);R[C]+=le;let I=DZ(R,o,d,g,i,a,n.height,ge);b&&b<I&&(I=b),n.height=Math.min(n.height,I),R=w0(t,o,n,A,z,m,d,g,w,x),le=SD(C,R[C],n[S],o,l,a,d),R[C]+=le;let Ce={},we=t[C]-R[C]-i[Wa[C]],U=we+.5*t[S];const ee=w/2+x;var N,O,K,de;const k=Wa[C]==="left"?((N=i.left)!==null&&N!==void 0?N:0)+((O=i.right)!==null&&O!==void 0?O:0):((K=i.top)!==null&&K!==void 0?K:0)+((de=i.bottom)!==null&&de!==void 0?de:0),se=n[S]-k-w/2-x,oe=t[C]+w/2-(R[C]+i[Wa[C]]),Te=t[C]+t[S]-w/2-(R[C]+i[Wa[C]]),Me=Wl(U,oe,Te);Ce[C]=Wl(Me,ee,se),{placement:M,crossPlacement:_}=A,w?we=Ce[C]:_==="right"?we+=t[S]:_==="center"&&(we+=t[S]/2);let Le=M==="left"||M==="top"?n[E]:0,Ye={x:M==="top"||M==="bottom"?we:Le,y:M==="left"||M==="right"?we:Le};return{position:R,maxHeight:I,arrowOffsetLeft:Ce.left,arrowOffsetTop:Ce.top,placement:M,triggerAnchorPoint:Ye}}function TZ(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:o,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?PZ(r):document.documentElement,w=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",E=w?Il(n,!1):TD(n,b,!1);if(!w){let{marginTop:Ce,marginLeft:we}=window.getComputedStyle(n);E.top+=parseInt(Ce,10)||0,E.left+=parseInt(we,10)||0}let C=Il(r,!0),S=SZ(r);var M,_;C.width+=((M=S.left)!==null&&M!==void 0?M:0)+((_=S.right)!==null&&_!==void 0?_:0);var R,z;C.height+=((R=S.top)!==null&&R!==void 0?R:0)+((z=S.bottom)!==null&&z!==void 0?z:0);let re=EZ(i),ge=ED(o),le=ED(b),I=o.tagName==="BODY"?Il(b,!1):TD(b,o,!1);return b.tagName==="HTML"&&o.tagName==="BODY"&&(le.scroll.top=0,le.scroll.left=0),AZ(t,E,C,re,S,a,s,ge,le,I,l,d,A,h,m,g)}function v3(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Il(e,t){let{top:n,left:r,width:i,height:a}=v3(e,t),{scrollTop:s,scrollLeft:o,clientTop:l,clientLeft:d}=document.documentElement;return{top:n+s-l,left:r+o-d,width:i,height:a}}function TD(e,t,n){let r=window.getComputedStyle(e),i;if(r.position==="fixed")i=v3(e,n);else{i=Il(e,n);let a=Il(t,n),s=window.getComputedStyle(t);a.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=a.top,i.left-=a.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function PZ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!PD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!PD(t);)t=t.parentElement;return t||document.documentElement}function PD(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const RM=new WeakMap;function _Z(e){let{triggerRef:t,isOpen:n,onClose:r}=e;L.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let o=r||RM.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function MZ(e){let{direction:t}=Tr(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:s=i,placement:o="bottom",containerPadding:l=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:w=!0,onClose:x,maxHeight:A,arrowBoundaryOffset:E=0}=e,[C,S]=L.useState(null),M=[b,o,i.current,r.current,a==null?void 0:a.current,s.current,l,d,h,m,g,w,t,A,E,n],_=L.useRef(qn==null?void 0:qn.scale);L.useEffect(()=>{w&&(_.current=qn==null?void 0:qn.scale)},[w]);let R=L.useCallback(()=>{if(b===!1||!w||!i.current||!r.current||!h||(qn==null?void 0:qn.scale)!==_.current)return;let Ce=null;if(s.current&&s.current.contains(document.activeElement)){var we;let k=(we=document.activeElement)===null||we===void 0?void 0:we.getBoundingClientRect(),se=s.current.getBoundingClientRect();var U;if(Ce={type:"top",offset:((U=k==null?void 0:k.top)!==null&&U!==void 0?U:0)-se.top},Ce.offset>se.height/2){Ce.type="bottom";var ee;Ce.offset=((ee=k==null?void 0:k.bottom)!==null&&ee!==void 0?ee:0)-se.bottom}}let N=i.current;if(!A&&i.current){var O;N.style.top="0px",N.style.bottom="";var K;N.style.maxHeight=((K=(O=window.visualViewport)===null||O===void 0?void 0:O.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let de=TZ({placement:RZ(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:l,shouldFlip:d,boundaryElement:h,offset:m,crossOffset:g,maxHeight:A,arrowSize:n??(a!=null&&a.current?v3(a.current,!0).width:0),arrowBoundaryOffset:E});if(de.position){if(N.style.top="",N.style.bottom="",N.style.left="",N.style.right="",Object.keys(de.position).forEach(k=>N.style[k]=de.position[k]+"px"),N.style.maxHeight=de.maxHeight!=null?de.maxHeight+"px":"",Ce&&document.activeElement&&s.current){let k=document.activeElement.getBoundingClientRect(),se=s.current.getBoundingClientRect(),oe=k[Ce.type]-se[Ce.type];s.current.scrollTop+=oe-Ce.offset}S(de)}},M);gn(R,M),FZ(R),PS({ref:i,onResize:R}),PS({ref:r,onResize:R});let z=L.useRef(!1);gn(()=>{let Ce,we=()=>{z.current=!0,clearTimeout(Ce),Ce=setTimeout(()=>{z.current=!1},500),R()},U=()=>{z.current&&we()};return qn==null||qn.addEventListener("resize",we),qn==null||qn.addEventListener("scroll",U),()=>{qn==null||qn.removeEventListener("resize",we),qn==null||qn.removeEventListener("scroll",U)}},[R]);let re=L.useCallback(()=>{z.current||x==null||x()},[x,z]);_Z({triggerRef:r,isOpen:w,onClose:x&&re});var ge,le,I;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(ge=C==null?void 0:C.maxHeight)!==null&&ge!==void 0?ge:"100vh"}},placement:(le=C==null?void 0:C.placement)!==null&&le!==void 0?le:null,triggerAnchorPoint:(I=C==null?void 0:C.triggerAnchorPoint)!==null&&I!==void 0?I:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:R}}function FZ(e){gn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function RZ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ja=[];function kZ(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:o}=e;L.useEffect(()=>{if(i&&!ja.includes(t))return ja.push(t),()=>{let w=ja.indexOf(t);w>=0&&ja.splice(w,1)}},[i,t]);let l=()=>{ja[ja.length-1]===t&&n&&n()},d=w=>{(!o||o(w.target))&&ja[ja.length-1]===t&&(w.stopPropagation(),w.preventDefault())},h=w=>{(!o||o(w.target))&&(ja[ja.length-1]===t&&(w.stopPropagation(),w.preventDefault()),l())},m=w=>{w.key==="Escape"&&!s&&!w.nativeEvent.isComposing&&(w.stopPropagation(),w.preventDefault(),l())};$G({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=ac({isDisabled:!r,onBlurWithin:w=>{!w.relatedTarget||zY(w.relatedTarget)||(!o||o(w.relatedTarget))&&(n==null||n())}}),b=w=>{w.target===w.currentTarget&&w.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function OZ(e,t,n){let{type:r}=e,{isOpen:i}=t;L.useEffect(()=>{n&&n.current&&RM.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=jr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const $f=typeof document<"u"&&window.visualViewport;let hh=0,C0;function IZ(e={}){let{isDisabled:t}=e;gn(()=>{if(!t)return hh++,hh===1&&(ed()?C0=BZ():C0=LZ()),()=>{hh--,hh===0&&C0()}},[t])}function LZ(){let e=window.innerWidth-document.documentElement.clientWidth;return _u(e>0&&("scrollbarGutter"in document.documentElement.style?E0(document.documentElement,"scrollbarGutter","stable"):E0(document.documentElement,"paddingRight",`${e}px`)),E0(document.documentElement,"overflow","hidden"))}function BZ(){let e,t=!1,n=l=>{let d=l.target;e=zl(d)?d:im(d,!0),t=!1;let h=d.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(d,!0)&&(t=!0),"selectionStart"in d&&"selectionEnd"in d&&d.selectionStart<d.selectionEnd&&d.ownerDocument.activeElement===d&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
67
|
+
@layer {
|
|
68
|
+
* {
|
|
69
|
+
overscroll-behavior: contain;
|
|
70
|
+
}
|
|
71
|
+
}`.trim(),document.head.prepend(r);let i=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},a=l=>{let d=l.target,h=l.relatedTarget;if(h&&o0(h))h.focus({preventScroll:!0}),_D(h,o0(d));else if(!h){var m;let g=(m=d.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let d=document.activeElement!=null&&o0(document.activeElement);s.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&_D(this,d)};let o=_u(S0(document,"touchstart",n,{passive:!1,capture:!0}),S0(document,"touchmove",i,{passive:!1,capture:!0}),S0(document,"blur",a,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=s}}function E0(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function S0(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _D(e,t){t||!$f?MD(e):$f.addEventListener("resize",()=>MD(e),{once:!0})}function MD(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=im(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let s=i.bottom;$f&&(s=Math.min(s,$f.offsetTop+$f.height));let o=a.top-i.top-((s-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}const VZ=L.createContext({});function NZ(){var e;return(e=L.useContext(VZ))!==null&&e!==void 0?e:{}}const jZ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Xc=new WeakMap,Qr=[];function kM(e,t){let n=es(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let a=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,s=(r==null?void 0:r.shouldUseInert)&&jZ,o=new Set(e),l=new Set,d=x=>s&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{s&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},m=x=>{for(let S of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(S);let A=S=>{if(l.has(S)||o.has(S)||S.parentElement&&l.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let M of o)if(S.contains(M))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},E=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),C=A(x);if(C===NodeFilter.FILTER_ACCEPT&&g(x),C!==NodeFilter.FILTER_REJECT){let S=E.nextNode();for(;S!=null;)g(S),S=E.nextNode()}},g=x=>{var A;let E=(A=Xc.get(x))!==null&&A!==void 0?A:0;d(x)&&E===0||(E===0&&h(x,!0),l.add(x),Xc.set(x,E+1))};Qr.length&&Qr[Qr.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...o,...l].some(E=>E.contains(A.target)))for(let E of A.addedNodes)(E instanceof HTMLElement||E instanceof SVGElement)&&(E.dataset.liveAnnouncer==="true"||E.dataset.reactAriaTopLayer==="true")?o.add(E):E instanceof Element&&m(E)});b.observe(a,{childList:!0,subtree:!0});let w={visibleNodes:o,hiddenNodes:l,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return Qr.push(w),()=>{b.disconnect();for(let x of l){let A=Xc.get(x);A!=null&&(A===1?(h(x,!1),Xc.delete(x)):Xc.set(x,A-1))}w===Qr[Qr.length-1]?(Qr.pop(),Qr.length&&Qr[Qr.length-1].observe()):Qr.splice(Qr.indexOf(w),1)}}function KZ(e){let t=Qr[Qr.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function UZ(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:o,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=kZ({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:w,triggerAnchorPoint:x}=MZ({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null});return IZ({isDisabled:a||!t.isOpen}),L.useEffect(()=>{if(t.isOpen&&r.current){var A,E;return a?KZ((A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current):kM([(E=i==null?void 0:i.current)!==null&&E!==void 0?E:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Jt(h,g),arrowProps:b,underlayProps:m,placement:w,triggerAnchorPoint:x}}const OM=ce.default.createContext(null);function qZ(e){let t=q4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=L.useState(!1),s=L.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=NZ();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=ce.default.createElement(jY,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=ce.default.createElement(OM.Provider,{value:s},ce.default.createElement(vG,null,l)),Os.default.createPortal(l,n)}function zZ(){let e=L.useContext(OM),t=e==null?void 0:e.setContain;gn(()=>{t==null||t(!0)},[t])}const pm=new WeakMap;function WZ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function IM(e,t){let n=pm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${WZ(t)}`}function f1(e){return Sh()?e.altKey:e.ctrlKey}function Mh(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const LM=new WeakMap;function HZ(e){let t=jr();return LM.set(e,t),t}function GZ(e){return LM.get(e)}const YZ=1e3;function ZZ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=L.useRef({search:"",timeout:void 0}).current,a=s=>{let o=XZ(s.key);if(!(!o||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&o===" ")){if(o===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=o,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},YZ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function XZ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function BM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:o=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:w=r,linkBehavior:x="action"}=e,{direction:A}=Tr(),E=rm(),C=O=>{var K;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(O.target)))return;const de=(Ae,He)=>{if(Ae!=null){if(t.isLink(Ae)&&x==="selection"&&d&&!f1(O)){Mp.flushSync(()=>{t.setFocusedKey(Ae,He)});let ht=Mh(r,Ae),Ht=t.getItemProps(Ae);ht&&E.open(ht,O,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Ae,He),t.isLink(Ae)&&x==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&!f1(O)&&t.replaceSelection(Ae)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var k,se,oe;let Ae=t.focusedKey!=null?(k=n.getKeyBelow)===null||k===void 0?void 0:k.call(n,t.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n);Ae==null&&a&&(Ae=(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),de(Ae))}break;case"ArrowUp":if(n.getKeyAbove){var Te,Me,Le;let Ae=t.focusedKey!=null?(Te=n.getKeyAbove)===null||Te===void 0?void 0:Te.call(n,t.focusedKey):(Me=n.getLastKey)===null||Me===void 0?void 0:Me.call(n);Ae==null&&a&&(Ae=(Le=n.getLastKey)===null||Le===void 0?void 0:Le.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),de(Ae))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ye,Qe,Ue;let Ae=t.focusedKey!=null?(Ye=n.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):null;Ae==null&&a&&(Ae=A==="rtl"?(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey):(Ue=n.getLastKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),de(Ae,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,Ie,Ne;let Ae=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Ae==null&&a&&(Ae=A==="rtl"?(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey):(Ne=n.getFirstKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),de(Ae,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Ae=n.getFirstKey(t.focusedKey,ml(O));t.setFocusedKey(Ae),Ae!=null&&(ml(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Ae=n.getLastKey(t.focusedKey,ml(O));t.setFocusedKey(Ae),Ae!=null&&(ml(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Ae=n.getKeyPageBelow(t.focusedKey);Ae!=null&&(O.preventDefault(),de(Ae))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Ae=n.getKeyPageAbove(t.focusedKey);Ae!=null&&(O.preventDefault(),de(Ae))}break;case"a":ml(O)&&t.selectionMode==="multiple"&&o!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(O.shiftKey)r.current.focus();else{let Ae=Lr(r.current,{tabbable:!0}),He,ht;do ht=Ae.lastChild(),ht&&(He=ht);while(ht);He&&!He.contains(document.activeElement)&&wi(He)}break}}},S=L.useRef({top:0,left:0});ga(w,"scroll",b?void 0:()=>{var O,K,de,k;S.current={top:(de=(O=w.current)===null||O===void 0?void 0:O.scrollTop)!==null&&de!==void 0?de:0,left:(k=(K=w.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&k!==void 0?k:0}});let M=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var K,de;let oe=Me=>{Me!=null&&(t.setFocusedKey(Me),d&&!t.isSelected(Me)&&t.replaceSelection(Me))},Te=O.relatedTarget;var k,se;Te&&O.currentTarget.compareDocumentPosition(Te)&Node.DOCUMENT_POSITION_FOLLOWING?oe((k=t.lastSelectedKey)!==null&&k!==void 0?k:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):oe((se=t.firstSelectedKey)!==null&&se!==void 0?se:(de=n.getFirstKey)===null||de===void 0?void 0:de.call(n))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let oe=Mh(r,t.focusedKey);oe instanceof HTMLElement&&(!oe.contains(document.activeElement)&&!m&&wi(oe),Mf()==="keyboard"&&rp(oe,{containingElement:r.current}))}}},_=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},R=L.useRef(!1);ga(r,GH,m?O=>{let{detail:K}=O;O.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(R.current=!0)}:void 0);let z=Mn(()=>{var O,K;let de=(K=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&K!==void 0?K:null;if(de==null){let k=nr();__(r.current),p3(k,null),t.collection.size>0&&(R.current=!1)}else t.setFocusedKey(de),R.current=!1});TS(()=>{R.current&&z()},[t.collection,z]);let re=Mn(()=>{t.collection.size>0&&(R.current=!1)});TS(()=>{re()},[t.focusedKey,re]),ga(r,HH,m?O=>{var K;O.stopPropagation(),t.setFocused(!1),!((K=O.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ge=L.useRef(i),le=L.useRef(!1);L.useEffect(()=>{if(ge.current){var O,K;let se=null;var de;i==="first"&&(se=(de=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&de!==void 0?de:null);var k;i==="last"&&(se=(k=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&k!==void 0?k:null);let oe=t.selectedKeys;if(oe.size){for(let Te of oe)if(t.canSelectItem(Te)){se=Te;break}}t.setFocused(!0),t.setFocusedKey(se),se==null&&!m&&r.current&&wu(r.current),t.collection.size>0&&(ge.current=!1,le.current=!0)}});let I=L.useRef(t.focusedKey),Ce=L.useRef(null);L.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||le.current)&&w.current&&r.current){let O=Mf(),K=Mh(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(O==="keyboard"||le.current)&&(Ce.current&&cancelAnimationFrame(Ce.current),Ce.current=requestAnimationFrame(()=>{w.current&&(_5(w.current,K),O!=="virtual"&&rp(K,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&wu(r.current),I.current=t.focusedKey,le.current=!1}),L.useEffect(()=>()=>{Ce.current&&cancelAnimationFrame(Ce.current)},[]),ga(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let we={onKeyDown:C,onFocus:M,onBlur:_,onMouseDown(O){w.current===O.target&&O.preventDefault()}},{typeSelectProps:U}=ZZ({keyboardDelegate:n,selectionManager:t});h||(we=Jt(U,we));let ee;m||(ee=t.focusedKey==null?0:-1);let N=HZ(t.collection);return{collectionProps:Jt(we,{tabIndex:ee,"data-collection":N})}}function JZ(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:s,focus:o,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=rm();t=jr(t);let b=k=>{if(k.pointerType==="keyboard"&&f1(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let se=n.getItemProps(r);g.open(i.current,k,se.href,se.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(ml(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};L.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(s?__(i.current):o?o():document.activeElement!==i.current&&i.current&&wu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),l=l||n.isDisabled(r);let w={};!s&&!l?w={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:l&&(w.onMouseDown=k=>{k.preventDefault()});let x=n.isLink(r)&&m==="override",A=d&&e.UNSTABLE_itemBehavior==="action",E=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!x&&!A,S=(d||E)&&!l,M=S&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),_=S&&C&&n.selectionBehavior==="replace",R=M||_,z=L.useRef(null),re=R&&C,ge=L.useRef(!1),le=L.useRef(!1),I=n.getItemProps(r),Ce=k=>{if(d){var se;d(),(se=i.current)===null||se===void 0||se.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}E&&i.current&&g.open(i.current,k,I.href,I.routerOptions)},we={ref:i};if(a?(we.onPressStart=k=>{z.current=k.pointerType,ge.current=re,k.pointerType==="keyboard"&&(!R||RD())&&b(k)},h?(we.onPressUp=M?void 0:k=>{k.pointerType==="mouse"&&C&&b(k)},we.onPress=M?Ce:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&C&&b(k)}):we.onPress=k=>{if(M||_&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!FD())return;Ce(k)}else k.pointerType!=="keyboard"&&C&&b(k)}):(we.onPressStart=k=>{z.current=k.pointerType,ge.current=re,le.current=M,C&&(k.pointerType==="mouse"&&!M||k.pointerType==="keyboard"&&(!S||RD()))&&b(k)},we.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&R&&FD()||k.pointerType==="mouse"&&le.current)&&(R?Ce(k):C&&b(k))}),w["data-collection"]=GZ(n.collection),w["data-key"]=r,we.preventFocusOnPress=s,s&&(we=Jt(we,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),I)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])I[k]&&(we[k]=_u(we[k],I[k]));let{pressProps:U,isPressed:ee}=rd(we),N=_?k=>{z.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),Ce(k))}:void 0,{longPressProps:O}=z5({isDisabled:!re,onLongPress(k){k.pointerType==="touch"&&(b(k),n.setSelectionBehavior("toggle"))}}),K=k=>{z.current==="touch"&&ge.current&&k.preventDefault()},de=m!=="none"&&n.isLink(r)?k=>{$u.isOpening||k.preventDefault()}:void 0;return{itemProps:Jt(w,C||M||s&&!l?U:{},re?O:{},{onDoubleClick:N,onDragStartCapture:K,onClick:de,id:t},s?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:ee,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:R}}function FD(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function RD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class kD{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Mh(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.clientWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.clientHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class VM{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let s=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(s,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!zl(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!zl(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let s=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(s,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new kD(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new kD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function QZ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:s}=e,o=D_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=L.useMemo(()=>a||new VM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o,layoutDelegate:s}),[a,s,n,r,i,o,l]),{collectionProps:h}=BM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function eX(e,t,n){let r=qs(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:s}=QZ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:o}=ac({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=jr(e.id);pm.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:d,fieldProps:h}=dm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Jt(r,o,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Jt(h,s)})}}function NM(e){return null}NM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,s=t.title||t.children,o=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!o&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:o,"aria-label":t["aria-label"],hasChildNodes:tX(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];ce.default.Children.forEach(a,d=>{l.push({type:"item",element:d})}),yield*l}}}};function tX(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&ce.default.Children.count(e.children)>0)}let nX=NM;class rX{build(t,n){return this.context=n,OD(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(ce.default.isValidElement(n)&&n.type===ce.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];ce.default.Children.forEach(n,s=>{s&&i.push(s)});let a=0;for(let s of i){let o=this.getFullNode({element:s,index:a},{});for(let l of o)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var s;let o=(s=a.key)!==null&&s!==void 0?s:a.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(ce.default.isValidElement(t.element)&&t.element.type===ce.default.Fragment){let A=[];ce.default.Children.forEach(t.element.props.children,C=>{A.push(C)});var a;let E=(a=t.index)!==null&&a!==void 0?a:0;for(const C of A)yield*this.getFullNode({element:C,index:E++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}s=n.renderer(t.value)}if(ce.default.isValidElement(s)){let A=s.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let M=s.type;throw new Error(`Unknown element <${M}> in collection.`)}let E=A.getCollectionNode(s.props,this.context);var o;let C=(o=t.index)!==null&&o!==void 0?o:0,S=E.next();for(;!S.done&&S.value;){let M=S.value;t.index=C;var l;let _=(l=M.key)!==null&&l!==void 0?l:null;_==null&&(_=M.element?null:this.getKey(s,t,n,r));let z=[...this.getFullNode({...M,key:_,index:C,wrapper:iX(t.wrapper,M.wrapper)},this.getChildState(n,M),r?`${r}${s.key}`:s.key,i)];for(let re of z){var d,h;re.value=(h=(d=M.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,re.value&&this.cache.set(re.value,re);var m;if(t.type&&re.type!==t.type)throw new Error(`Unsupported type <${D0(re.type)}> in <${D0((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${D0(t.type)}> is supported.`);C++,yield re}S=E.next(z)}return}if(t.key==null||t.type==null)return;let g=this;var b,w;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:OD(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let E of t.childNodes()){E.key!=null&&(E.key=`${x.key}${E.key}`);let C=g.getFullNode({...E,index:A},g.getChildState(n,E),x.key,x);for(let S of C)A++,yield S}})};yield x}constructor(){this.cache=new WeakMap}}function OD(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function iX(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function D0(e){return e[0].toUpperCase()+e.slice(1)}function aX(e,t,n){let r=L.useMemo(()=>new rX,[]),{children:i,items:a,collection:s}=e;return L.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,s,n,t])}function mm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function sX(e){return oX(e)}function oX(e,t){for(let n of e)return n}function A0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ID(e,t),t],i=[...ID(e,n),n],a=r.slice(0,i.length).findIndex((s,o)=>s!==i[o]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function ID(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const LD=new WeakMap;function jM(e){let t=LD.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(mm(a,e)):a.type==="item"&&n++};return r(e),LD.set(e,n),n}function uX(e,t,n){var r,i;let{key:a}=e,s=pm.get(t);var o;let l=(o=e.isDisabled)!==null&&o!==void 0?o:t.selectionManager.isDisabled(a);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:s==null?void 0:s.shouldSelectOnPressUp;var b;let w=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:s==null?void 0:s.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:s==null?void 0:s.shouldUseVirtualFocus;var E;let C=(E=e.isVirtualized)!==null&&E!==void 0?E:s==null?void 0:s.isVirtualized,S=Ul(),M=Ul(),_={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Bs()&&W4()||(_["aria-label"]=e["aria-label"],_["aria-labelledby"]=S,_["aria-describedby"]=M);let R=t.collection.getItem(a);if(C){let O=Number(R==null?void 0:R.index);_["aria-posinset"]=Number.isNaN(O)?void 0:O+1,_["aria-setsize"]=jM(t.collection)}let z=s!=null&&s.onAction?()=>{var O;return s==null||(O=s.onAction)===null||O===void 0?void 0:O.call(s,a)}:void 0,re=IM(t,a),{itemProps:ge,isPressed:le,isFocused:I,hasAction:Ce,allowsSelection:we}=JZ({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&w,isVirtualized:C,shouldUseVirtualFocus:A,isDisabled:l,onAction:z||!(R==null||(r=R.props)===null||r===void 0)&&r.onAction?_u(R==null||(i=R.props)===null||i===void 0?void 0:i.onAction,z):void 0,linkBehavior:s==null?void 0:s.linkBehavior,UNSTABLE_itemBehavior:s==null?void 0:s.UNSTABLE_itemBehavior,id:re}),{hoverProps:U}=bG({isDisabled:l||!w,onHoverStart(){NS()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),ee=qs(R==null?void 0:R.props);delete ee.id;let N=NH(R==null?void 0:R.props);return{optionProps:{..._,...Jt(ee,ge,U,N),id:re},labelProps:{id:S},descriptionProps:{id:M},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&NS(),isSelected:h,isDisabled:l,isPressed:le,allowsSelection:we,hasAction:Ce}}var KM={};KM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var UM={};UM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var qM={};qM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var zM={};zM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var WM={};WM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var HM={};HM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var GM={};GM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var YM={};YM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ZM={};ZM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var XM={};XM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var JM={};JM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var QM={};QM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var eF={};eF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var tF={};tF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var nF={};nF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var rF={};rF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var iF={};iF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var aF={};aF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var sF={};sF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var oF={};oF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var uF={};uF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var lF={};lF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var cF={};cF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var fF={};fF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var dF={};dF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var hF={};hF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var pF={};pF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var mF={};mF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var gF={};gF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var vF={};vF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var yF={};yF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var bF={};bF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var $F={};$F={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var xF={};xF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var wF={};wF={"ar-AE":KM,"bg-BG":UM,"cs-CZ":qM,"da-DK":zM,"de-DE":WM,"el-GR":HM,"en-US":GM,"es-ES":YM,"et-EE":ZM,"fi-FI":XM,"fr-FR":JM,"he-IL":QM,"hr-HR":eF,"hu-HU":tF,"it-IT":nF,"ja-JP":rF,"ko-KR":iF,"lt-LT":aF,"lv-LV":sF,"nb-NO":oF,"nl-NL":uF,"pl-PL":lF,"pt-BR":cF,"pt-PT":fF,"ro-RO":dF,"ru-RU":hF,"sk-SK":pF,"sl-SI":mF,"sr-SP":gF,"sv-SE":vF,"tr-TR":yF,"uk-UA":bF,"zh-CN":$F,"zh-TW":xF};function lX(e){return e&&e.__esModule?e.default:e}function cX(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,s=jr(),{triggerProps:o,overlayProps:l}=OZ({type:r},t,n),d=b=>{if(!i&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=rs(lX(wF),"@react-aria/menu"),{longPressProps:m}=z5({isDisabled:i||a!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(wi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(wi(b.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...a==="press"?g:m,id:s,onKeyDown:d},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function fX(e){return e&&e.__esModule?e.default:e}function dX(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:s,layoutDelegate:o,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=L.useRef(null);n=n??m;let g=rs(fX(MM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:w}=cX({type:"listbox",isDisabled:h||d},t,n);pm.set(t,{id:w.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,E=L.useMemo(()=>s||new VM({collection:x,disabledKeys:A,ref:a,layoutDelegate:o}),[s,o,x,A,a]),{collectionProps:C}=BM({selectionManager:t.selectionManager,keyboardDelegate:E,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),S=rm(),M=Ne=>{if(!Ne.nativeEvent.isComposing)switch(Ne.key){case"Enter":case"Tab":if(t.isOpen&&Ne.key==="Enter"&&Ne.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let Ae=t.collection.getItem(t.selectionManager.focusedKey);if(Ae!=null&&Ae.props.href){let He=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);Ne.key==="Enter"&&He instanceof HTMLAnchorElement&&S.open(He,Ne,Ae.props.href,Ae.props.routerOptions),t.close();break}else if(Ae!=null&&Ae.props.onAction){Ae.props.onAction(),t.close();break}}t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ne.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},_=Ne=>{var Ae;let He=(n==null?void 0:n.current)&&n.current===Ne.relatedTarget,ht=(Ae=r.current)===null||Ae===void 0?void 0:Ae.contains(Ne.relatedTarget);He||ht||(e.onBlur&&e.onBlur(Ne),t.setFocused(!1))},R=Ne=>{t.isFocused||(e.onFocus&&e.onFocus(Ne),t.setFocused(!0))},{isInvalid:z,validationErrors:re,validationDetails:ge}=t.displayValidation,{labelProps:le,inputProps:I,descriptionProps:Ce,errorMessageProps:we}=$Z({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:_u(t.isOpen&&C.onKeyDown,M,e.onKeyDown),onBlur:_,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:R,autoComplete:"off",validate:void 0,[Gl]:t},i),U=Ne=>{if(Ne.pointerType==="touch"){var Ae;(Ae=i.current)===null||Ae===void 0||Ae.focus(),t.toggle(null,"manual")}},ee=Ne=>{if(Ne.pointerType!=="touch"){var Ae;(Ae=i.current)===null||Ae===void 0||Ae.focus(),t.toggle(Ne.pointerType==="keyboard"||Ne.pointerType==="virtual"?"first":null,"manual")}},N=ql({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||le.id}),O=ql({id:w.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||le.id}),K=L.useRef(0),de=Ne=>{if(h||d)return;if(Ne.timeStamp-K.current<500){var Ae;Ne.preventDefault(),(Ae=i.current)===null||Ae===void 0||Ae.focus();return}let He=Ne.target.getBoundingClientRect(),ht=Ne.changedTouches[0],Ht=Math.ceil(He.left+.5*He.width),$t=Math.ceil(He.top+.5*He.height);if(ht.clientX===Ht&&ht.clientY===$t){var _t;Ne.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),K.current=Ne.timeStamp}},k=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var se;let oe=(se=k==null?void 0:k.parentKey)!==null&&se!==void 0?se:null;var Te;let Me=(Te=t.selectionManager.focusedKey)!==null&&Te!==void 0?Te:null,Le=L.useRef(oe),Ye=L.useRef(Me);L.useEffect(()=>{if(Sh()&&k!=null&&Me!=null&&Me!==Ye.current){let Ae=t.selectionManager.isSelected(Me),He=oe!=null?t.collection.getItem(oe):null,ht=(He==null?void 0:He["aria-label"])||(typeof(He==null?void 0:He.rendered)=="string"?He.rendered:"")||"";var Ne;let Ht=g.format("focusAnnouncement",{isGroupChange:(Ne=He&&oe!==Le.current)!==null&&Ne!==void 0?Ne:!1,groupTitle:ht,groupCount:He?[...mm(He,t.collection)].length:0,optionText:k["aria-label"]||k.textValue||"",isSelected:Ae});Ol(Ht)}Le.current=oe,Ye.current=Me});let Qe=jM(t.collection),Ue=L.useRef(Qe),Ge=L.useRef(t.isOpen);L.useEffect(()=>{let Ne=t.isOpen!==Ge.current&&(t.selectionManager.focusedKey==null||Sh());if(t.isOpen&&(Ne||Qe!==Ue.current)){let Ae=g.format("countAnnouncement",{optionCount:Qe});Ol(Ae)}Ue.current=Qe,Ge.current=t.isOpen});let Ie=L.useRef(t.selectedKey);return L.useEffect(()=>{if(Sh()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ie.current){let Ne=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Ae=g.format("selectedAnnouncement",{optionText:Ne});Ol(Ae)}Ie.current=t.selectedKey}),L.useEffect(()=>{if(t.isOpen)return kM([i.current,r.current].filter(Ne=>Ne!=null))},[t.isOpen,i,r]),jb(()=>{!k&&i.current&&nr(Xt(i.current))===i.current&&p3(i.current,null)},[k]),ga(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:le,buttonProps:{...b,...N,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:U,onPressStart:ee,isDisabled:h||d},inputProps:Jt(I,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?w.id:void 0,"aria-autocomplete":"list","aria-activedescendant":k?IM(t,k.key):void 0,onTouchEnd:de,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Jt(w,O,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),descriptionProps:Ce,errorMessageProps:we,isInvalid:z,validationErrors:re,validationDetails:ge}}var CF={};CF={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var EF={};EF={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var SF={};SF={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var DF={};DF={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var AF={};AF={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var TF={};TF={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var PF={};PF={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var _F={};_F={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var MF={};MF={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var FF={};FF={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var RF={};RF={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var kF={};kF={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var OF={};OF={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var IF={};IF={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var LF={};LF={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var BF={};BF={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var VF={};VF={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var NF={};NF={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var jF={};jF={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var KF={};KF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var UF={};UF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var qF={};qF={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var zF={};zF={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var WF={};WF={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var HF={};HF={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var GF={};GF={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var YF={};YF={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var ZF={};ZF={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var XF={};XF={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var JF={};JF={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var QF={};QF={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var eR={};eR={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var tR={};tR={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var nR={};nR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var cd={};cd={"ar-AE":CF,"bg-BG":EF,"cs-CZ":SF,"da-DK":DF,"de-DE":AF,"el-GR":TF,"en-US":PF,"es-ES":_F,"et-EE":MF,"fi-FI":FF,"fr-FR":RF,"he-IL":kF,"hr-HR":OF,"hu-HU":IF,"it-IT":LF,"ja-JP":BF,"ko-KR":VF,"lt-LT":NF,"lv-LV":jF,"nb-NO":KF,"nl-NL":UF,"pl-PL":qF,"pt-BR":zF,"pt-PT":WF,"ro-RO":HF,"ru-RU":GF,"sk-SK":YF,"sl-SI":ZF,"sr-SP":XF,"sv-SE":JF,"tr-TR":QF,"uk-UA":eR,"zh-CN":tR,"zh-TW":nR};function y3(e,t,n){let{direction:r}=Tr(),i=L.useMemo(()=>cm(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=BD(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=BD(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},s=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Lr(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:o}=rd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&s()}});return Jt(o,{onKeyDown:a})}function BD(e,t,n){let r=Lr(e,{tabbable:!0}),i=r.nextNode(),a=null,s=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<s&&(a=i,s=d),i=r.nextNode()}return a}function hX(e){return e&&e.__esModule?e.default:e}const rR=new WeakMap,xf="__role_"+Date.now(),iR="__focusManager_"+Date.now();function aR(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:h}=hm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=L.useRef(null),{focusWithinProps:g}=ac({...e,onFocusWithin(le){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,le)},onBlurWithin:le=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,le)},onFocusWithinChange:e.onFocusChange}),b=rs(hX(cd),"@react-aria/datepicker"),w=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format(w,{[x]:t.formatValue({month:"long"})}):"",E=td(A),C=e[xf]==="presentation"?l["aria-describedby"]:[E["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=e[iR],M=L.useMemo(()=>S||cm(n),[S,n]),_=y3(t,n,e[xf]==="presentation");rR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:M});let R=L.useRef(e.autoFocus),z;e[xf]==="presentation"?z={role:"presentation"}:z=Jt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),L.useEffect(()=>{R.current&&M.focusFirst(),R.current=!1},[M]),Y4(e.inputRef,t.defaultValue,t.setValue),m6({...e,focus(){M.focusFirst()}},t,e.inputRef);let re={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(re.type="text",re.hidden=!0,re.required=e.isRequired,re.onChange=()=>{});let ge=qs(e);return{labelProps:{...o,onClick:()=>{M.focusFirst()}},fieldProps:Jt(ge,z,_,g,{onKeyDown(le){e.onKeyDown&&e.onKeyDown(le)},onKeyUp(le){e.onKeyUp&&e.onKeyUp(le)},style:{unicodeBidi:"isolate"}}),inputProps:re,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:s}}function pX(e,t,n){var r;let i=aR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function mX(e){return e&&e.__esModule?e.default:e}function gX(e,t,n){let r=jr(),i=jr(),a=jr(),s=rs(mX(cd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=hm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),w=y3(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=Tr(),E=t.formatValue(A,{month:"long"}),C=E?s.format("selectedDateDescription",{date:E}):"",S=td(C),M=[S["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=qs(e),R=L.useMemo(()=>cm(n),[n]),z=L.useRef(!1),{focusWithinProps:re}=ac({...e,isDisabled:t.isOpen,onBlurWithin:ge=>{let le=document.getElementById(i);if(!(le!=null&&le.contains(ge.relatedTarget))){var I,Ce;z.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,ge),(Ce=e.onFocusChange)===null||Ce===void 0||Ce.call(e,!1)}},onFocusWithin:ge=>{if(!z.current){var le,I;z.current=!0,(le=e.onFocus)===null||le===void 0||le.call(e,ge),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Jt(_,w,m,S,re,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":M,onKeyDown(ge){t.isOpen||e.onKeyDown&&e.onKeyDown(ge)},onKeyUp(ge){t.isOpen||e.onKeyUp&&e.onKeyUp(ge)}}),labelProps:{...h,onClick:()=>{R.focusFirst()}},fieldProps:{...m,id:a,[xf]:"presentation","aria-describedby":M,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Gl]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...S,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":M,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:o,validationErrors:l,validationDetails:d}}function vX(e){return e&&e.__esModule?e.default:e}function yX(){let{locale:e}=Tr(),t=G5(vX(cd),"@react-aria/datepicker");return L.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new bX(e,t)}},[e,t])}class bX{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function $X(e,t,n){let r=L.useRef(""),{locale:i,direction:a}=Tr(),s=yX(),{ariaLabel:o,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=rR.get(t),m=e.isPlaceholder?"":e.text,g=L.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=za({month:"long",timeZone:g.timeZone}),w=za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let k=b.format(t.dateValue);m=k!==m?`${m} – ${k}`:k}else e.type==="hour"&&!e.isPlaceholder&&(m=w.format(t.dateValue));let{spinButtonProps:x}=wZ({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),A=L.useMemo(()=>new S_(i,{maximumFractionDigits:0}),[i]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let k=e.text.slice(0,-1),se=A.parse(k);k=se===0?"":k,k.length===0||se===0?t.clearSegment(e.type):t.setSegment(e.type,se),r.current=k}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=k=>{if(k.key==="a"&&(Bs()?k.metaKey:k.ctrlKey)&&k.preventDefault(),!(k.ctrlKey||k.metaKey||k.shiftKey||k.altKey))switch(k.key){case"Backspace":case"Delete":k.preventDefault(),k.stopPropagation(),E();break}},{startsWith:S}=A_({sensitivity:"base"}),M=za({hour:"numeric",hour12:!0}),_=L.useMemo(()=>{let k=new Date;return k.setHours(0),M.formatToParts(k).find(se=>se.type==="dayPeriod").value},[M]),R=L.useMemo(()=>{let k=new Date;return k.setHours(12),M.formatToParts(k).find(se=>se.type==="dayPeriod").value},[M]),z=za({year:"numeric",era:"narrow",timeZone:"UTC"}),re=L.useMemo(()=>{if(e.type!=="era")return[];let k=Fn(new Hn(1,1,1),t.calendar),se=t.calendar.getEras().map(Te=>{let Me=k.set({year:1,month:1,day:1,era:Te}).toDate("UTC"),Ye=z.formatToParts(Me).find(Qe=>Qe.type==="era").value;return{era:Te,formatted:Ye}}),oe=xX(se.map(Te=>Te.formatted));if(oe)for(let Te of se)Te.formatted=Te.formatted.slice(oe);return se},[z,t.calendar,e.type]),ge=k=>{if(t.isDisabled||t.isReadOnly)return;let se=r.current+k;switch(e.type){case"dayPeriod":if(S(_,k))t.setSegment("dayPeriod",0);else if(S(R,k))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let oe=re.find(Te=>S(Te.formatted,k));oe&&(t.setSegment("era",oe.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(se))return;let oe=A.parse(se),Te=oe,Me=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":oe>11&&(Te=A.parse(k));break;case"h12":Me=!1,oe>12&&(Te=A.parse(k));break}e.value!==void 0&&e.value>=12&&oe>1&&(oe+=12)}else e.maxValue!==void 0&&oe>e.maxValue&&(Te=A.parse(k));if(isNaN(oe))return;let Le=Te!==0||Me;Le&&t.setSegment(e.type,Te),e.maxValue!==void 0&&(+(oe+"0")>e.maxValue||se.length>=String(e.maxValue).length)?(r.current="",Le&&h.focusNext()):r.current=se;break}}},le=()=>{r.current="",n.current&&rp(n.current,{containingElement:im(n.current)});let k=window.getSelection();k==null||k.collapse(n.current)},I=L.useRef(typeof document<"u"?document:null);ga(I,"selectionchange",()=>{var k;let se=window.getSelection();se!=null&&se.anchorNode&&(!((k=n.current)===null||k===void 0)&&k.contains(se==null?void 0:se.anchorNode))&&se.collapse(n.current)});let Ce=L.useRef("");ga(n,"beforeinput",k=>{if(n.current)switch(k.preventDefault(),k.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":Ce.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:k.data!=null&&ge(k.data);break}}),ga(n,"input",k=>{let{inputType:se,data:oe}=k;switch(se){case"insertCompositionText":n.current&&(n.current.textContent=Ce.current),oe!=null&&(S(_,oe)||S(R,oe))&&ge(oe);break}}),gn(()=>{let k=n.current;return()=>{document.activeElement===k&&(h.focusPrevious()||h.focusNext())}},[n,h]);let we=ed()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},U=L.useMemo(()=>t.segments.find(k=>k.isEditable),[t.segments]);e!==U&&!t.isInvalid&&(d=void 0);let ee=jr(),N=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O=e.type==="literal"?"":s.of(e.type),K=ql({"aria-label":`${O}${o?`, ${o}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let de={caretColor:"transparent"};if(a==="rtl"){de.unicodeBidi="embed";let k=g[e.type];(k==="numeric"||k==="2-digit")&&(de.direction="ltr")}return{segmentProps:Jt(x,K,{id:ee,...we,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:N,suppressContentEditableWarning:N,spellCheck:N?"false":void 0,autoCorrect:N?"off":void 0,[parseInt(ce.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:N?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!N?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:le,style:de,onPointerDown(k){k.stopPropagation()},onMouseDown(k){k.stopPropagation()}})}}function xX(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function wX(e){return e&&e.__esModule?e.default:e}function CX(e,t,n){var r,i,a,s,o;let l=rs(wX(cd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:w,errorMessageProps:x}=hm({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:E}=Tr(),C=t.formatValue(E,{month:"long"}),S=C?l.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",M=td(S),_={"aria-label":l.format("startDate"),"aria-labelledby":A},R={"aria-label":l.format("endDate"),"aria-labelledby":A},z=jr(),re=jr(),ge=y3(t,n),le=[M["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=L.useMemo(()=>cm(n,{accept:k=>k.id!==z}),[n,z]),Ce={[iR]:I,[xf]:"presentation","aria-describedby":le,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},we=qs(e),U=L.useRef(!1),{focusWithinProps:ee}=ac({...e,isDisabled:t.isOpen,onBlurWithin:k=>{let se=document.getElementById(re);if(!(se!=null&&se.contains(k.relatedTarget))){var oe,Te;U.current=!1,(oe=e.onBlur)===null||oe===void 0||oe.call(e,k),(Te=e.onFocusChange)===null||Te===void 0||Te.call(e,!1)}},onFocusWithin:k=>{if(!U.current){var se,oe;U.current=!0,(se=e.onFocus)===null||se===void 0||se.call(e,k),(oe=e.onFocusChange)===null||oe===void 0||oe.call(e,!0)}}}),N=L.useRef(ru),O=L.useRef(ru);var K,de;return{groupProps:Jt(we,ge,b,M,ee,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":le,onKeyDown(k){t.isOpen||e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){t.isOpen||e.onKeyUp&&e.onKeyUp(k)}}),labelProps:{...g,onClick:()=>{I.focusFirst()}},buttonProps:{...M,id:z,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${z} ${A}`,"aria-describedby":le,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:re,"aria-labelledby":`${z} ${A}`},startFieldProps:{..._,...Ce,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:k=>t.setDateTime("start",k),autoFocus:e.autoFocus,name:e.startName,form:e.form,[Gl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){N.current=k,t.updateValidation(hp(k,O.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...R,...Ce,value:(de=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&de!==void 0?de:null,defaultValue:(s=t.defaultValue)===null||s===void 0?void 0:s.end,onChange:k=>t.setDateTime("end",k),name:e.endName,form:e.form,[Gl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){O.current=k,t.updateValidation(hp(N.current,k))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:w,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:d,validationErrors:h,validationDetails:m}}function EX(e,t){let{role:n="dialog"}=e,r=Ul();r=e["aria-label"]?void 0:r;let i=L.useRef(!1);return L.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){wu(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),wu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),zZ(),{dialogProps:{...qs(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Ll(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function d1(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let s=ou(e,t,n).subtract(a);return Lf(e,s,t,n,r,i)}function ou(e,t,n,r,i){let a=e;return t.years?a=IG(e):t.months?a=sd(e):t.weeks&&(a=Ff(e,n)),Lf(e,a,t,n,r,i)}function h1(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let s=ou(e,t,n).subtract(a);return Lf(e,s,t,n,r,i)}function Lf(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let s=i3(t,ou(Kr(i),n,r));s&&(t=s)}if(a&&e.compare(a)<=0){let s=r3(t,h1(Kr(a),n,r));s&&(t=s)}return t}function so(e,t,n){if(t){let r=i3(e,Kr(t));r&&(e=r)}if(n){let r=r3(e,Kr(n));r&&(e=r)}return e}function sR(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function oR(e){let t=L.useMemo(()=>new zi(e.locale),[e.locale]),n=L.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:o,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=L.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[w,x]=Ci(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=L.useMemo(()=>w?Fn(Kr(w),g):null,[w,g]),E=L.useMemo(()=>w&&"timeZone"in w?w.timeZone:n.timeZone,[w,n.timeZone]),C=L.useMemo(()=>e.focusedValue?so(Fn(Kr(e.focusedValue),g),s,o):void 0,[e.focusedValue,g,s,o]),S=L.useMemo(()=>so(e.defaultFocusedValue?Fn(Kr(e.defaultFocusedValue),g):A||Fn(um(E),g),s,o),[e.defaultFocusedValue,A,E,g,s,o]),[M,_]=Ci(C,S,e.onFocusChange),[R,z]=L.useState(()=>{switch(l){case"start":return ou(M,a,r,s,o);case"end":return h1(M,a,r,s,o);case"center":default:return d1(M,a,r,s,o)}}),[re,ge]=L.useState(e.autoFocus||!1),le=L.useMemo(()=>{let se={...a};return se.days?se.days--:se.days=-1,R.add(se)},[R,a]),[I,Ce]=L.useState(g);if(!om(g,I)){let se=Fn(M,g);z(d1(se,a,r,s,o)),_(se),Ce(g)}Ll(M,s,o)?_(so(M,s,o)):M.compare(R)<0?z(h1(M,a,r,s,o)):M.compare(le)>0&&z(ou(M,a,r,s,o));function we(se){se=so(se,s,o),_(se)}function U(se){if(!e.isDisabled&&!e.isReadOnly){let oe=se;if(oe===null){x(null);return}if(oe=so(oe,s,o),oe=sR(oe,R,d),!oe)return;oe=Fn(oe,(w==null?void 0:w.calendar)||new Ur),w&&"hour"in w?x(w.set(oe)):x(oe)}}let ee=L.useMemo(()=>A?d&&d(A)?!0:Ll(A,s,o):!1,[A,d,s,o]),N=e.isInvalid||e.validationState==="invalid"||ee,O=N?"invalid":null,K=L.useMemo(()=>h==="visible"?a:T0(a),[h,a]);var de,k;return{isDisabled:(de=e.isDisabled)!==null&&de!==void 0?de:!1,isReadOnly:(k=e.isReadOnly)!==null&&k!==void 0?k:!1,value:A,setValue:U,visibleRange:{start:R,end:le},minValue:s,maxValue:o,focusedDate:M,timeZone:E,validationState:O,isValueInvalid:N,setFocusedDate(se){we(se),ge(!0)},focusNextDay(){we(M.add({days:1}))},focusPreviousDay(){we(M.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&we(M.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&we(M.subtract({weeks:1}))},focusNextPage(){let se=R.add(K);_(so(M.add(K),s,o)),z(ou(Lf(M,se,K,r,s,o),K,r))},focusPreviousPage(){let se=R.subtract(K);_(so(M.subtract(K),s,o)),z(ou(Lf(M,se,K,r,s,o),K,r))},focusSectionStart(){a.days?we(R):a.weeks?we(Ff(M,r)):(a.months||a.years)&&we(sd(M))},focusSectionEnd(){a.days?we(le):a.weeks?we(VG(M,r)):(a.months||a.years)&&we(Yb(M))},focusNextSection(se){if(!se&&!a.days){we(M.add(T0(a)));return}a.days?this.focusNextPage():a.weeks?we(M.add({months:1})):(a.months||a.years)&&we(M.add({years:1}))},focusPreviousSection(se){if(!se&&!a.days){we(M.subtract(T0(a)));return}a.days?this.focusPreviousPage():a.weeks?we(M.subtract({months:1})):(a.months||a.years)&&we(M.subtract({years:1}))},selectFocusedDate(){d&&d(M)||U(M)},selectDate(se){U(se)},isFocused:re,setFocused:ge,isInvalid(se){return Ll(se,s,o)},isSelected(se){return A!=null&&Jn(se,A)&&!this.isCellDisabled(se)&&!this.isCellUnavailable(se)},isCellFocused(se){return re&&M&&Jn(se,M)},isCellDisabled(se){return e.isDisabled||se.compare(R)<0||se.compare(le)>0||this.isInvalid(se)},isCellUnavailable(se){return e.isDateUnavailable?e.isDateUnavailable(se):!1},isPreviousVisibleRangeInvalid(){let se=R.subtract({days:1});return Jn(se,R)||this.isInvalid(se)},isNextVisibleRangeInvalid(){let se=le.add({days:1});return Jn(se,le)||this.isInvalid(se)},getDatesInWeek(se,oe=R){let Te=oe.add({weeks:se}),Me=[];Te=Ff(Te,r,m);let Le=n3(Te,r,m);for(let Ye=0;Ye<Le;Ye++)Me.push(null);for(;Me.length<7;){Me.push(Te);let Ye=Te.add({days:1});if(Jn(Te,Ye))break;Te=Ye}for(;Me.length<7;)Me.push(null);return Me}}}function T0(e){let t={...e};for(let n in e)t[n]=1;return t}function SX(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:o,maxValue:l,...d}=e,[h,m]=Ci(t,n||null,r),[g,b]=L.useState(null),w="center";if(h&&h.start&&h.end){let K=d1(Kr(h.start),s,a,o,l).add(s).subtract({days:1});h.end.compare(K)>0&&(w="start")}let x=L.useRef(null),[A,E]=L.useState(null),C=L.useMemo(()=>i3(o,A==null?void 0:A.start),[o,A]),S=L.useMemo(()=>r3(l,A==null?void 0:A.end),[l,A]),M=oR({...d,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:s,minValue:C,maxValue:S,selectionAlignment:e.selectionAlignment||w}),_=O=>{if(O&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const K=ND(O,M,-1),de=ND(O,M,1);x.current={start:K,end:de},E(x.current)}else x.current=null,E(null)},[R,z]=L.useState(M.visibleRange);(!Gb(M.visibleRange.start,R.start)||!Gb(M.visibleRange.end,R.end))&&(_(g),z(M.visibleRange));let re=O=>{O?(b(O),_(O)):(b(null),_(null))},ge=g?P0(g,M.focusedDate):h&&P0(h.start,h.end),le=O=>{if(e.isReadOnly)return;const K=so(O,C,S),de=sR(K,M.visibleRange.start,e.isDateUnavailable);if(de)if(!g)re(de);else{let k=P0(g,de);k&&m({start:VD(k.start,h==null?void 0:h.start),end:VD(k.end,h==null?void 0:h.end)}),re(null)}},[I,Ce]=L.useState(!1),{isDateUnavailable:we}=e,U=L.useMemo(()=>!h||g?!1:we&&(we(h.start)||we(h.end))?!0:Ll(h.start,o,l)||Ll(h.end,o,l),[we,h,g,o,l]),ee=e.isInvalid||e.validationState==="invalid"||U;return{...M,value:h,setValue:m,anchorDate:g,setAnchorDate:re,highlightedRange:ge,validationState:ee?"invalid":null,isValueInvalid:ee,selectFocusedDate(){le(M.focusedDate)},selectDate:le,highlightDate(O){g&&M.setFocusedDate(O)},isSelected(O){return!!(ge&&O.compare(ge.start)>=0&&O.compare(ge.end)<=0&&!M.isCellDisabled(O)&&!M.isCellUnavailable(O))},isInvalid(O){var K,de;return M.isInvalid(O)||Ll(O,(K=x.current)===null||K===void 0?void 0:K.start,(de=x.current)===null||de===void 0?void 0:de.end)},isDragging:I,setDragging:Ce}}function P0(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Kr(e),end:Kr(t)})}function VD(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function ND(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class p1{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let l of o.childNodes)n(l)};for(let o of t)n(o);let r=null,i=0,a=0;for(let[o,l]of this.keyMap)r?(r.nextKey=o,l.prevKey=r.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=i++),(l.type==="section"||l.type==="item")&&a++,r=l,r.nextKey=void 0;this._size=a;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class ha extends Set{constructor(t,n,r){super(t),t instanceof ha?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function DX(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function AX(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,s=L.useRef(!1),[,o]=L.useState(!1),l=L.useRef(null),d=L.useRef(null),[,h]=L.useState(null),m=L.useMemo(()=>jD(e.selectedKeys),[e.selectedKeys]),g=L.useMemo(()=>jD(e.defaultSelectedKeys,new ha),[e.defaultSelectedKeys]),[b,w]=Ci(m,g,e.onSelectionChange),x=L.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,E]=L.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&E("replace");let C=L.useRef(i);return L.useEffect(()=>{i!==C.current&&(E(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:E,get isFocused(){return s.current},setFocused(S){s.current=S,o(S)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(S,M="first"){l.current=S,d.current=M,h(S)},selectedKeys:b,setSelectedKeys(S){(r||!DX(S,b))&&w(S)},disabledKeys:x,disabledBehavior:a}}function jD(e,t){return e?e==="all"?"all":new ha(e):t}class b3{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&A0(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&A0(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ha([n],n,n);else{let s=this.state.selectedKeys;var i;let o=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new ha(s,o,n);var a;for(let l of this.getKeyRange(o,(a=s.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,o))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?A0(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let s=this.collection.getItem(a);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new ha(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new ha([n],n,n):new ha;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ha;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&t.push(r);var a;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((a=(i=sX(mm(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ha)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new b3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function TX(e){let{filter:t,layoutDelegate:n}=e,r=AX(e),i=L.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=L.useCallback(d=>t?new p1(t(d)):new p1(d),[t]),s=L.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=aX(e,a,s),l=L.useMemo(()=>new b3(o,r,{layoutDelegate:n}),[o,r,n]);return PX(o,l),{collection:o,disabledKeys:i,selectionManager:l}}function PX(e,t){const n=L.useRef(null);L.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(E=>{const C=n.current.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null),g=[...e.getKeys()].map(E=>{const C=e.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var a,s,o;let w=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(s=h==null?void 0:h.index)!==null&&s!==void 0?s:0,((o=g==null?void 0:g.length)!==null&&o!==void 0?o:0)-1),x=null,A=!1;for(;w>=0;){if(!t.isDisabled(g[w].key)){x=g[w];break}if(w<g.length-1&&!A)w++;else{A=!0;var l,d;w>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&(w=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),w--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function _X(e){var t;let[n,r]=Ci(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=L.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:s,selectionManager:o}=TX({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:s,selectionManager:o,selectedKey:n,setSelectedKey:r,selectedItem:l}}function $3(e){let[t,n]=Ci(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=L.useCallback(()=>{n(!0)},[n]),i=L.useCallback(()=>{n(!1)},[n]),a=L.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function MX(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[o,l]=L.useState(!1),[d,h]=L.useState(!1),[m,g]=L.useState(null),b=De=>{e.onSelectionChange&&e.onSelectionChange(De),De===E&&(Te(),k())};var w;let{collection:x,selectionManager:A,selectedKey:E,setSelectedKey:C,selectedItem:S,disabledKeys:M}=_X({...e,onSelectionChange:b,items:(w=e.items)!==null&&w!==void 0?w:e.defaultItems}),[_,R]=Ci(e.inputValue,KD(e.defaultInputValue,E,x)||"",e.onInputChange),[z]=L.useState(E),[re]=L.useState(_),ge=x,le=L.useMemo(()=>e.items!=null||!n?x:FX(x,_,n),[x,_,n,e.items]),[I,Ce]=L.useState(le),we=L.useRef("focus"),ee=$3({...e,onOpenChange:De=>{e.onOpenChange&&e.onOpenChange(De,De?we.current:void 0),A.setFocused(De),De||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),N=(De=null,_e)=>{let Xe=_e==="manual"||_e==="focus"&&r==="focus";(i||le.size>0||Xe&&ge.size>0||e.items)&&(Xe&&!ee.isOpen&&e.items===void 0&&l(!0),we.current=_e,g(De),ee.open())},O=(De=null,_e)=>{let Xe=_e==="manual"||_e==="focus"&&r==="focus";!(i||le.size>0||Xe&&ge.size>0||e.items)&&!ee.isOpen||(Xe&&!ee.isOpen&&e.items===void 0&&l(!0),ee.isOpen||(we.current=_e),de(De))},K=L.useCallback(()=>{Ce(o?ge:le)},[o,ge,le]),de=L.useCallback((De=null)=>{ee.isOpen&&K(),g(De),ee.toggle()},[ee,K]),k=L.useCallback(()=>{ee.isOpen&&(K(),ee.close())},[ee,K]),[se,oe]=L.useState(_),Te=()=>{var De,_e;let Xe=E!=null&&(_e=(De=x.getItem(E))===null||De===void 0?void 0:De.textValue)!==null&&_e!==void 0?_e:"";oe(Xe),R(Xe)};var Me,Le;let Ye=L.useRef((Le=(Me=e.selectedKey)!==null&&Me!==void 0?Me:e.defaultSelectedKey)!==null&&Le!==void 0?Le:null);var Qe;let Ue=L.useRef(E!=null&&(Qe=(t=x.getItem(E))===null||t===void 0?void 0:t.textValue)!==null&&Qe!==void 0?Qe:"");L.useEffect(()=>{var De;d&&(le.size>0||i)&&!ee.isOpen&&_!==se&&r!=="manual"&&N(null,"input"),!o&&!i&&ee.isOpen&&le.size===0&&k(),E!=null&&E!==Ye.current&&k(),_!==se&&(A.setFocusedKey(null),l(!1),_===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),E!==Ye.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Te():se!==_&&oe(_);var _e;let Xe=E!=null&&(_e=(De=x.getItem(E))===null||De===void 0?void 0:De.textValue)!==null&&_e!==void 0?_e:"";!d&&E!=null&&e.inputValue===void 0&&E===Ye.current&&Ue.current!==Xe&&(oe(Xe),R(Xe)),Ye.current=E,Ue.current=Xe});let Ge=ld({...e,value:L.useMemo(()=>({inputValue:_,selectedKey:E}),[_,E])}),Ie=()=>{a&&E==null?Ne():Ae()},Ne=()=>{Ye.current=null,C(null),k()},Ae=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var De,_e;(De=e.onSelectionChange)===null||De===void 0||De.call(e,E);var Xe;let et=E!=null&&(Xe=(_e=x.getItem(E))===null||_e===void 0?void 0:_e.textValue)!==null&&Xe!==void 0?Xe:"";oe(et),k()}else Te(),k()};const He=()=>{if(a){var De,_e;const Xe=E!=null&&(_e=(De=x.getItem(E))===null||De===void 0?void 0:De.textValue)!==null&&_e!==void 0?_e:"";_===Xe?Ae():Ne()}else Ae()};let ht=()=>{ee.isOpen&&A.focusedKey!=null?E===A.focusedKey?Ae():C(A.focusedKey):He()},Ht=L.useRef(_),$t=De=>{De?(Ht.current=_,r==="focus"&&!e.isReadOnly&&N(null,"focus")):(s&&He(),_!==Ht.current&&Ge.commitValidation()),h(De)},_t=L.useMemo(()=>ee.isOpen?o?ge:le:I,[ee.isOpen,ge,le,o,I]);var qr;let Qt=(qr=e.defaultSelectedKey)!==null&&qr!==void 0?qr:z;var be;return{...Ge,...ee,focusStrategy:m,toggle:O,open:N,close:He,selectionManager:A,selectedKey:E,defaultSelectedKey:Qt,setSelectedKey:C,disabledKeys:M,isFocused:d,setFocused:$t,selectedItem:S,collection:_t,inputValue:_,defaultInputValue:(be=KD(e.defaultInputValue,Qt,x))!==null&&be!==void 0?be:re,setInputValue:R,commit:ht,revert:Ie}}function FX(e,t,n){return new p1(uR(e,e,t,n))}function uR(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let s=uR(e,mm(a,e),n,r);[...s].some(o=>o.type==="item")&&i.push({...a,childNodes:s})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function KD(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var lR={};lR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var cR={};cR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var fR={};fR={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var dR={};dR={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var hR={};hR={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var pR={};pR={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var mR={};mR={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var gR={};gR={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var vR={};vR={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var yR={};yR={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var bR={};bR={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var $R={};$R={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var xR={};xR={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var wR={};wR={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var CR={};CR={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var ER={};ER={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var SR={};SR={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var DR={};DR={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var AR={};AR={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var TR={};TR={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var PR={};PR={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var _R={};_R={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var MR={};MR={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var FR={};FR={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var RR={};RR={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var kR={};kR={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var OR={};OR={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var IR={};IR={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var LR={};LR={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var BR={};BR={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var VR={};VR={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var NR={};NR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var jR={};jR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var KR={};KR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var UR={};UR={"ar-AE":lR,"bg-BG":cR,"cs-CZ":fR,"da-DK":dR,"de-DE":hR,"el-GR":pR,"en-US":mR,"es-ES":gR,"et-EE":vR,"fi-FI":yR,"fr-FR":bR,"he-IL":$R,"hr-HR":xR,"hu-HU":wR,"it-IT":CR,"ja-JP":ER,"ko-KR":SR,"lt-LT":DR,"lv-LV":AR,"nb-NO":TR,"nl-NL":PR,"pl-PL":_R,"pt-BR":MR,"pt-PT":FR,"ro-RO":RR,"ru-RU":kR,"sk-SK":OR,"sl-SI":IR,"sr-SP":LR,"sv-SE":BR,"tr-TR":VR,"uk-UA":NR,"zh-CN":jR,"zh-TW":KR};function RX(e){return e&&e.__esModule?e.default:e}const qR=new Eo(RX(UR));function zR(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function mp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=a||s||o,d=[];if(l){let h=zR(),m=Eo.getGlobalDictionaryForPackage("@react-stately/datepicker")||qR,g=new H5(h,m),b=new zi(h,Is({},i)),w=b.resolvedOptions().timeZone;s&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(w))})),a&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(w))})),o&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function kX(e,t,n,r,i){var a;let s=mp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var o;let l=mp((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=hp(s,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Eo.getGlobalDictionaryForPackage("@react-stately/datepicker")||qR;d=hp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",zR())],validationDetails:{...fm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const OX={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},IX={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Is(e,t){e={...t.shouldForceLeadingZeros?IX:OX,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let o=i.indexOf(r);if(o<0&&(o=2),s>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,o+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function bl(e){return e&&"hour"in e?e:new od}function WR(e,t){if(e===null)return null;if(e)return Fn(e,t)}function Jc(e,t,n,r){if(e)return WR(e,n);let i=Fn(X5(r??ad()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Kr(i):r?i:$a(i)}function x3(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=L.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}function LX(e){let t=$3(e),[n,r]=Ci(e.value,e.defaultValue||null,e.onChange),[i]=L.useState(n),a=n||e.placeholderValue||null,[s,o]=x3(a,e.granularity),l=n!=null?n.toDate(o??"UTC"):null,d=s==="hour"||s==="minute"||s==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=L.useState(null),[w,x]=L.useState(null);if(n&&(g=n,"hour"in n&&(w=n)),a&&!(s in a))throw new Error("Invalid granularity "+s+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",E=L.useMemo(()=>({granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[s,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,A]),{minValue:C,maxValue:S,isDateUnavailable:M}=e,_=L.useMemo(()=>mp(n,C,S,M,E),[n,C,S,M,E]),R=ld({...e,value:n,builtinValidation:_}),z=R.displayValidation.isInvalid,re=e.validationState||(z?"invalid":null),ge=(we,U)=>{r("timeZone"in U?U.set(Kr(we)):$a(we,U)),b(null),x(null),R.commitValidation()},le=we=>{let U=typeof m=="function"?m():m;d?w||U?ge(we,w||bl(e.defaultValue||e.placeholderValue)):b(we):(r(we),R.commitValidation()),U&&t.setOpen(!1)},I=we=>{g&&we?ge(g,we):x(we)};var Ce;return{...R,value:n,defaultValue:(Ce=e.defaultValue)!==null&&Ce!==void 0?Ce:i,setValue:r,dateValue:g,timeValue:w,setDateValue:le,setTimeValue:I,granularity:s,hasTime:d,...t,setOpen(we){!we&&!n&&g&&d&&ge(g,w||bl(e.defaultValue||e.placeholderValue)),t.setOpen(we)},validationState:re,isInvalid:z,formatValue(we,U){if(!l)return"";let ee=Is(U,E);return new zi(we,ee).format(l)},getDateFormatter(we,U){let ee={...E,...U},N=Is({},ee);return new zi(we,N)}}}const BX=new Eo({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function VX(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?BX.getStringForLocale(e,n):"––"}const Fh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},UD={year:5,month:2,day:7,hour:2,minute:15,second:15},HR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function GR(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:s=!1,minValue:o,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=x3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let w=L.useMemo(()=>new zi(t),[t]),x=L.useMemo(()=>n(w.resolvedOptions().calendar),[n,w]);var A;let[E,C]=Ci(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[S]=L.useState(E),M=L.useMemo(()=>{var Ie;return(Ie=WR(E,x))!==null&&Ie!==void 0?Ie:null},[E,x]),[_,R]=L.useState(()=>Jc(e.placeholderValue,m,x,g)),z=M||_,re=x.identifier==="gregory"&&z.era==="BC",ge=L.useMemo(()=>{var Ie;return{granularity:m,maxGranularity:(Ie=e.maxGranularity)!==null&&Ie!==void 0?Ie:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:re,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,re]),le=L.useMemo(()=>Is({},ge),[ge]),I=L.useMemo(()=>new zi(t,le),[t,le]),Ce=L.useMemo(()=>I.resolvedOptions(),[I]),we=L.useMemo(()=>I.formatToParts(new Date).filter(Ie=>Fh[Ie.type]).reduce((Ie,Ne)=>(Ie[HR[Ne.type]||Ne.type]=!0,Ie),{}),[I]),[U,ee]=L.useState(()=>e.value||e.defaultValue?{...we}:{}),N=L.useRef(null),O=L.useRef(x);L.useEffect(()=>{om(x,O.current)||(O.current=x,R(Ie=>Object.keys(U).length>0?Fn(Ie,x):Jc(e.placeholderValue,m,x,g)))},[x,m,U,g,e.placeholderValue]),E&&Object.keys(U).length<Object.keys(we).length&&(U={...we},ee(U)),E==null&&Object.keys(U).length===Object.keys(we).length&&(U={},ee(U),R(Jc(e.placeholderValue,m,x,g)));let K=M&&Object.keys(U).length>=Object.keys(we).length?M:_,de=Ie=>{if(e.isDisabled||e.isReadOnly)return;let Ne=Object.keys(U),Ae=Object.keys(we);Ie==null?(C(null),R(Jc(e.placeholderValue,m,x,g)),ee({})):Ne.length===0&&N.current==null||Ne.length>=Ae.length||Ne.length===Ae.length-1&&we.dayPeriod&&!U.dayPeriod&&N.current!=="dayPeriod"?(Ne.length===0&&(U={...we},ee(U)),Ie=Fn(Ie,(h==null?void 0:h.calendar)||new Ur),C(Ie)):R(Ie),N.current=null},k=L.useMemo(()=>K.toDate(b),[K,b]),se=L.useMemo(()=>NX(k,U,I,Ce,K,x,t,m),[k,U,I,Ce,K,x,t,m]);we.era&&U.year&&!U.era?(U.era=!0,ee({...U})):!we.era&&U.era&&(delete U.era,ee({...U}));let oe=Ie=>{U[Ie]=!0,Ie==="year"&&we.era&&(U.era=!0),ee({...U})},Te=(Ie,Ne)=>{if(U[Ie])de(jX(K,Ie,Ne,Ce));else{oe(Ie);let Ae=Object.keys(U),He=Object.keys(we);(Ae.length>=He.length||Ae.length===He.length-1&&we.dayPeriod&&!U.dayPeriod)&&de(K)}},Me=L.useMemo(()=>mp(E,o,l,d,ge),[E,o,l,d,ge]),Le=ld({...e,value:E,builtinValidation:Me}),Ye=Le.displayValidation.isInvalid,Qe=e.validationState||(Ye?"invalid":null);var Ue,Ge;return{...Le,value:M,defaultValue:(Ue=e.defaultValue)!==null&&Ue!==void 0?Ue:S,dateValue:k,calendar:x,setValue:de,segments:se,dateFormatter:I,validationState:Qe,isInvalid:Ye,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(Ie){Te(Ie,1)},decrement(Ie){Te(Ie,-1)},incrementPage(Ie){Te(Ie,UD[Ie]||1)},decrementPage(Ie){Te(Ie,-(UD[Ie]||1))},setSegment(Ie,Ne){oe(Ie),de(KX(K,Ie,Ne,Ce))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Ie=Object.keys(U),Ne=Object.keys(we);Ie.length===Ne.length-1&&we.dayPeriod&&!U.dayPeriod&&(U={...we},ee(U),de(K.copy()))},clearSegment(Ie){delete U[Ie],N.current=Ie,ee({...U});let Ne=Jc(e.placeholderValue,m,x,g),Ae=K;if(Ie==="dayPeriod"&&"hour"in K&&"hour"in Ne){let He=K.hour>=12,ht=Ne.hour>=12;He&&!ht?Ae=K.set({hour:K.hour-12}):!He&&ht&&(Ae=K.set({hour:K.hour+12}))}else Ie==="hour"&&"hour"in K&&K.hour>=12&&U.dayPeriod?Ae=K.set({hour:Ne.hour+12}):Ie in K&&(Ae=K.set({[Ie]:Ne[Ie]}));C(null),de(Ae)},formatValue(Ie){if(!M)return"";let Ne=Is(Ie,ge);return new zi(t,Ne).format(k)},getDateFormatter(Ie,Ne){let Ae={...ge,...Ne},He=Is({},Ae);return new zi(Ie,He)}}}function NX(e,t,n,r,i,a,s,o){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=HR[m.type]||m.type,b=Fh[g];g==="era"&&a.getEras().length===1&&(b=!1);let w=Fh[g]&&!t[g],x=Fh[g]?VX(g,m.value,s):null,A={type:g,text:w?x:m.value,...ph(i,g,r),isPlaceholder:w,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...ph(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===o&&h.push({type:"literal",text:"",...ph(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===o?(h.push(A),h.push({type:"literal",text:"",...ph(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function ph(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:LG(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:BG(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function jX(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function KX(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function UX(e){var t,n;let r=$3(e),[i,a]=Ci(e.value,e.defaultValue||null,e.onChange),[s]=L.useState(i),[o,l]=L.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},l(o));let d=i||o,h=K=>{d=K||{start:null,end:null},l(d),Jo(d)?a(d):a(null)},m=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[g,b]=x3(m,e.granularity),w=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[E,C]=L.useState(null),[S,M]=L.useState(null);d&&Jo(d)&&(E=d,"hour"in d.start&&(S=d));let _=(K,de)=>{h({start:"timeZone"in de.start?de.start.set(Kr(K.start)):$a(K.start,de.start),end:"timeZone"in de.end?de.end.set(Kr(K.end)):$a(K.end,de.end)}),C(null),M(null),U.commitValidation()},R=K=>{let de=typeof A=="function"?A():A;w?Jo(K)&&(de||S!=null&&S.start&&(S!=null&&S.end))?_(K,{start:(S==null?void 0:S.start)||bl(e.placeholderValue),end:(S==null?void 0:S.end)||bl(e.placeholderValue)}):C(K):Jo(K)?(h(K),U.commitValidation()):C(K),de&&r.setOpen(!1)},z=K=>{Jo(E)&&Jo(K)?_(E,K):M(K)},re=(d==null||(t=d.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&d.start.era==="BC"||(d==null||(n=d.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&d.end.era==="BC",ge=L.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:re}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,re]),{minValue:le,maxValue:I,isDateUnavailable:Ce}=e,we=L.useMemo(()=>kX(d,le,I,Ce,ge),[d,le,I,Ce,ge]),U=ld({...e,value:i,name:L.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:we}),ee=U.displayValidation.isInvalid,N=e.validationState||(ee?"invalid":null);var O;return{...U,value:d,defaultValue:(O=e.defaultValue)!==null&&O!==void 0?O:s,setValue:h,dateRange:E,timeRange:S,granularity:g,hasTime:w,setDate(K,de){var k,se;R(K==="start"?{start:de,end:(k=E==null?void 0:E.end)!==null&&k!==void 0?k:null}:{start:(se=E==null?void 0:E.start)!==null&&se!==void 0?se:null,end:de})},setTime(K,de){var k,se;z(K==="start"?{start:de,end:(k=S==null?void 0:S.end)!==null&&k!==void 0?k:null}:{start:(se=S==null?void 0:S.start)!==null&&se!==void 0?se:null,end:de})},setDateTime(K,de){var k,se;h(K==="start"?{start:de,end:(k=d==null?void 0:d.end)!==null&&k!==void 0?k:null}:{start:(se=d==null?void 0:d.start)!==null&&se!==void 0?se:null,end:de})},setDateRange:R,setTimeRange:z,...r,setOpen(K){!K&&!(d!=null&&d.start&&(d!=null&&d.end))&&Jo(E)&&w&&_(E,{start:(S==null?void 0:S.start)||bl(e.placeholderValue),end:(S==null?void 0:S.end)||bl(e.placeholderValue)}),r.setOpen(K)},validationState:N,isInvalid:ee,formatValue(K,de){if(!d||!d.start||!d.end)return null;let k="timeZone"in d.start?d.start.timeZone:void 0,se=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),oe="timeZone"in d.end?d.end.timeZone:void 0,Te=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),Me=Is(de,{granularity:se,timeZone:k,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:d.start.calendar.identifier==="gregory"&&d.start.era==="BC"||d.end.calendar.identifier==="gregory"&&d.end.era==="BC"}),Le=d.start.toDate(k||"UTC"),Ye=d.end.toDate(oe||"UTC"),Qe=new zi(K,Me),Ue;if(k===oe&&se===Te&&d.start.compare(d.end)!==0){try{let Ge=Qe.formatRangeToParts(Le,Ye),Ie=-1;for(let He=0;He<Ge.length;He++){let ht=Ge[He];if(ht.source==="shared"&&ht.type==="literal")Ie=He;else if(ht.source==="endRange")break}let Ne="",Ae="";for(let He=0;He<Ge.length;He++)He<Ie?Ne+=Ge[He].value:He>Ie&&(Ae+=Ge[He].value);return{start:Ne,end:Ae}}catch{}Ue=Qe}else{let Ge=Is(de,{granularity:Te,timeZone:oe,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ue=new zi(K,Ge)}return{start:Qe.format(Le),end:Ue.format(Ye)}},getDateFormatter(K,de){let k={...ge,...de},se=Is({},k);return new zi(K,se)}}}function Jo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function qX(e){let{placeholderValue:t=new od,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:s}=e,[o,l]=Ci(e.value,i??null,e.onChange),d=o||t,h=d&&"day"in d?d:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=L.useMemo(()=>{let M=d&&"timeZone"in d?d.timeZone:void 0;return(M||m)&&t?i_(dl(t),M||m):dl(t)},[t,d,m]),b=L.useMemo(()=>dl(n,h),[n,h]),w=L.useMemo(()=>dl(r,h),[r,h]),x=L.useMemo(()=>o&&"day"in o?XS(o):o,[o]),A=L.useMemo(()=>o==null?null:dl(o),[o]),E=L.useMemo(()=>i==null?null:dl(i),[i]);return{...GR({...e,value:A,defaultValue:E,minValue:b,maxValue:w,onChange:M=>{l(h||m?M:M&&XS(M))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:L.useCallback(()=>s==null?void 0:s(o),[s,o])}),timeValue:x}}function dl(e,t=um(ad())){return e?"day"in e?e:$a(t,e):null}var _0,qD;function zX(){if(qD)return _0;qD=1;var e=R4();function t(n,r){return e(n,r)}return _0=t,_0}var WX=zX();const HX=yr(WX);var Rh={exports:{}},GX=Rh.exports,zD;function YX(){return zD||(zD=1,function(e,t){(function(n,r){e.exports=r()})(GX,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",w="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var ee=["th","st","nd","rd"],N=U%100;return"["+U+(ee[(N-20)%10]||ee[N]||ee[0])+"]"}},S=function(U,ee,N){var O=String(U);return!O||O.length>=ee?U:""+Array(ee+1-O.length).join(N)+U},M={s:S,z:function(U){var ee=-U.utcOffset(),N=Math.abs(ee),O=Math.floor(N/60),K=N%60;return(ee<=0?"+":"-")+S(O,2,"0")+":"+S(K,2,"0")},m:function U(ee,N){if(ee.date()<N.date())return-U(N,ee);var O=12*(N.year()-ee.year())+(N.month()-ee.month()),K=ee.clone().add(O,m),de=N-K<0,k=ee.clone().add(O+(de?-1:1),m);return+(-(O+(N-K)/(de?K-k:k-K))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:m,y:b,w:h,d,D:w,h:l,m:o,s,ms:a,Q:g}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},_="en",R={};R[_]=C;var z="$isDayjsObject",re=function(U){return U instanceof Ce||!(!U||!U[z])},ge=function U(ee,N,O){var K;if(!ee)return _;if(typeof ee=="string"){var de=ee.toLowerCase();R[de]&&(K=de),N&&(R[de]=N,K=de);var k=ee.split("-");if(!K&&k.length>1)return U(k[0])}else{var se=ee.name;R[se]=ee,K=se}return!O&&K&&(_=K),K||!O&&_},le=function(U,ee){if(re(U))return U.clone();var N=typeof ee=="object"?ee:{};return N.date=U,N.args=arguments,new Ce(N)},I=M;I.l=ge,I.i=re,I.w=function(U,ee){return le(U,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var Ce=function(){function U(N){this.$L=ge(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[z]=!0}var ee=U.prototype;return ee.parse=function(N){this.$d=function(O){var K=O.date,de=O.utc;if(K===null)return new Date(NaN);if(I.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var k=K.match(A);if(k){var se=k[2]-1||0,oe=(k[7]||"0").substring(0,3);return de?new Date(Date.UTC(k[1],se,k[3]||1,k[4]||0,k[5]||0,k[6]||0,oe)):new Date(k[1],se,k[3]||1,k[4]||0,k[5]||0,k[6]||0,oe)}}return new Date(K)}(N),this.init()},ee.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},ee.$utils=function(){return I},ee.isValid=function(){return this.$d.toString()!==x},ee.isSame=function(N,O){var K=le(N);return this.startOf(O)<=K&&K<=this.endOf(O)},ee.isAfter=function(N,O){return le(N)<this.startOf(O)},ee.isBefore=function(N,O){return this.endOf(O)<le(N)},ee.$g=function(N,O,K){return I.u(N)?this[O]:this.set(K,N)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(N,O){var K=this,de=!!I.u(O)||O,k=I.p(N),se=function(Ge,Ie){var Ne=I.w(K.$u?Date.UTC(K.$y,Ie,Ge):new Date(K.$y,Ie,Ge),K);return de?Ne:Ne.endOf(d)},oe=function(Ge,Ie){return I.w(K.toDate()[Ge].apply(K.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Ie)),K)},Te=this.$W,Me=this.$M,Le=this.$D,Ye="set"+(this.$u?"UTC":"");switch(k){case b:return de?se(1,0):se(31,11);case m:return de?se(1,Me):se(0,Me+1);case h:var Qe=this.$locale().weekStart||0,Ue=(Te<Qe?Te+7:Te)-Qe;return se(de?Le-Ue:Le+(6-Ue),Me);case d:case w:return oe(Ye+"Hours",0);case l:return oe(Ye+"Minutes",1);case o:return oe(Ye+"Seconds",2);case s:return oe(Ye+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(N){return this.startOf(N,!1)},ee.$set=function(N,O){var K,de=I.p(N),k="set"+(this.$u?"UTC":""),se=(K={},K[d]=k+"Date",K[w]=k+"Date",K[m]=k+"Month",K[b]=k+"FullYear",K[l]=k+"Hours",K[o]=k+"Minutes",K[s]=k+"Seconds",K[a]=k+"Milliseconds",K)[de],oe=de===d?this.$D+(O-this.$W):O;if(de===m||de===b){var Te=this.clone().set(w,1);Te.$d[se](oe),Te.init(),this.$d=Te.set(w,Math.min(this.$D,Te.daysInMonth())).$d}else se&&this.$d[se](oe);return this.init(),this},ee.set=function(N,O){return this.clone().$set(N,O)},ee.get=function(N){return this[I.p(N)]()},ee.add=function(N,O){var K,de=this;N=Number(N);var k=I.p(O),se=function(Me){var Le=le(de);return I.w(Le.date(Le.date()+Math.round(Me*N)),de)};if(k===m)return this.set(m,this.$M+N);if(k===b)return this.set(b,this.$y+N);if(k===d)return se(1);if(k===h)return se(7);var oe=(K={},K[o]=r,K[l]=i,K[s]=n,K)[k]||1,Te=this.$d.getTime()+N*oe;return I.w(Te,this)},ee.subtract=function(N,O){return this.add(-1*N,O)},ee.format=function(N){var O=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var de=N||"YYYY-MM-DDTHH:mm:ssZ",k=I.z(this),se=this.$H,oe=this.$m,Te=this.$M,Me=K.weekdays,Le=K.months,Ye=K.meridiem,Qe=function(Ie,Ne,Ae,He){return Ie&&(Ie[Ne]||Ie(O,de))||Ae[Ne].slice(0,He)},Ue=function(Ie){return I.s(se%12||12,Ie,"0")},Ge=Ye||function(Ie,Ne,Ae){var He=Ie<12?"AM":"PM";return Ae?He.toLowerCase():He};return de.replace(E,function(Ie,Ne){return Ne||function(Ae){switch(Ae){case"YY":return String(O.$y).slice(-2);case"YYYY":return I.s(O.$y,4,"0");case"M":return Te+1;case"MM":return I.s(Te+1,2,"0");case"MMM":return Qe(K.monthsShort,Te,Le,3);case"MMMM":return Qe(Le,Te);case"D":return O.$D;case"DD":return I.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Qe(K.weekdaysMin,O.$W,Me,2);case"ddd":return Qe(K.weekdaysShort,O.$W,Me,3);case"dddd":return Me[O.$W];case"H":return String(se);case"HH":return I.s(se,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Ge(se,oe,!0);case"A":return Ge(se,oe,!1);case"m":return String(oe);case"mm":return I.s(oe,2,"0");case"s":return String(O.$s);case"ss":return I.s(O.$s,2,"0");case"SSS":return I.s(O.$ms,3,"0");case"Z":return k}return null}(Ie)||k.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(N,O,K){var de,k=this,se=I.p(O),oe=le(N),Te=(oe.utcOffset()-this.utcOffset())*r,Me=this-oe,Le=function(){return I.m(k,oe)};switch(se){case b:de=Le()/12;break;case m:de=Le();break;case g:de=Le()/3;break;case h:de=(Me-Te)/6048e5;break;case d:de=(Me-Te)/864e5;break;case l:de=Me/i;break;case o:de=Me/r;break;case s:de=Me/n;break;default:de=Me}return K?de:I.a(de)},ee.daysInMonth=function(){return this.endOf(m).$D},ee.$locale=function(){return R[this.$L]},ee.locale=function(N,O){if(!N)return this.$L;var K=this.clone(),de=ge(N,O,!0);return de&&(K.$L=de),K},ee.clone=function(){return I.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},U}(),we=Ce.prototype;return le.prototype=we,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",d],["$M",m],["$y",b],["$D",w]].forEach(function(U){we[U[1]]=function(ee){return this.$g(ee,U[0],U[1])}}),le.extend=function(U,ee){return U.$i||(U(ee,Ce,le),U.$i=!0),le},le.locale=ge,le.isDayjs=re,le.unix=function(U){return le(1e3*U)},le.en=R[_],le.Ls=R,le.p={},le})}(Rh)),Rh.exports}var YR=YX();const ZX=yr(YR);var M0,WD;function XX(){if(WD)return M0;WD=1;var e=tc(),t=nc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return M0=r,M0}var JX=XX();const QX=yr(JX);var Fu=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],eJ="react-international-phone-",ZR=(...e)=>e.filter(t=>!!t).join(" ").trim(),tJ=(...e)=>ZR(...e).split(" ").map(t=>`${eJ}${t}`).join(" "),Ar=({addPrefix:e,rawClassNames:t})=>ZR(tJ(...e),...t),nJ=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),s=e.slice(r),o=a,l=0;for(let d of t.split("")){if(l>=s.length){if(!i&&d!==n){o+=d;continue}break}d===n?(o+=s[l],l+=1):o+=d}return o},gl=e=>e?/^\d+$/.test(e):!1,gm=e=>e.replace(/\D/g,""),rJ=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,s=r.bottom-i.bottom;a>=0&&s>=0||(Math.abs(a)<Math.abs(s)?e.scrollTop+=a:e.scrollTop-=s),e.style.display=n},iJ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),aJ=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=gm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let s=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:o,phoneRightSide:l}=s();return o=`${t.prefix}${o}${t.charAfterDialCode}`,l=nJ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(o=""),a(`${o}${l}`)},sJ=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let s=null;for(let h=r-1;h>=0;h-=1)if(gl(t[h])){s=h;break}if(s===null){for(let h=0;h<t.length;h+=1)if(gl(n[h]))return h;return t.length}let o=0;for(let h=0;h<s;h+=1)gl(t[h])&&(o+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,gl(n[h])&&(d+=1),!(d>=o+1));h+=1);if(a!=="backward")for(;!gl(n[l])&&l<n.length;)l+=1;return l},kh=({phone:e,prefix:t})=>e?`${t}${gm(e)}`:"";function m1({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?mJ({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(b==null?void 0:b.country)??t,x=aJ(g,{prefix:a,mask:hJ({phone:g,country:w,defaultMask:d,disableFormatting:m}),maskChar:XR,dialCode:w.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:o,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:w;return{phone:kh({phone:l?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var oJ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},uJ=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:o,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,w=oJ(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",E=(g==null?void 0:g.data)||void 0,C=e.target.value,S=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:kh({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!gl(E)&&C!==i)return{inputValue:r,phone:kh({phone:o?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:S-((E==null?void 0:E.length)??0),country:t};if(s&&!C.startsWith(`${i}${t.dialCode}`)&&!x){let re=C?r:`${i}${t.dialCode}${a}`;return{inputValue:re,phone:kh({phone:re,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:M,inputValue:_,country:R}=m1({value:C,country:t,trimNonDigitsEnd:w==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:o,disableFormatting:h,defaultMask:d}),z=sJ({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:_,leftOffset:s?i.length+t.dialCode.length+a.length:0,deletion:w});return{phone:M,inputValue:_,cursorPosition:z,country:R}},lJ=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},cJ=()=>{let e=L.useRef(),t=L.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},fJ={size:20,overrideLastItemDebounceMS:-1};function dJ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...fJ,...t},[a,s]=L.useState(e),[o,l]=L.useState([a]),[d,h]=L.useState(0),m=cJ();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&lJ(g,a)||g===a)return;let w=r>0,x=m.check(),A=w&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(E=>[...E.slice(0,d),g]);else{let E=o.length>=n;l(C=>[...C.slice(E?1:0,d+1),g]),E||h(C=>C+1)}s(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=o[d-1];return s(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=o.length)return{success:!1};let g=o[d+1];return s(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var XR=".",Oi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Fu},JR=({defaultCountry:e=Oi.defaultCountry,value:t=Oi.value,countries:n=Oi.countries,prefix:r=Oi.prefix,defaultMask:i=Oi.defaultMask,charAfterDialCode:a=Oi.charAfterDialCode,historySaveDebounceMS:s=Oi.historySaveDebounceMS,disableCountryGuess:o=Oi.disableCountryGuess,disableDialCodePrefill:l=Oi.disableDialCodePrefill,forceDialCode:d=Oi.forceDialCode,disableDialCodeAndPrefix:h=Oi.disableDialCodeAndPrefix,disableFormatting:m=Oi.disableFormatting,onChange:g,inputRef:b})=>{let w={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!o,disableFormatting:m},x=L.useRef(null),A=b||x,E=U=>{Promise.resolve().then(()=>{var ee;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((ee=A.current)==null||ee.setSelectionRange(U,U))})},[{phone:C,inputValue:S,country:M},_,R,z]=dJ(()=>{let U=$l({value:e,field:"iso2",countries:n});U||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ee=U||$l({value:"us",field:"iso2",countries:n}),{phone:N,inputValue:O,country:K}=m1({value:t,country:ee,insertDialCodeOnEmpty:!l,...w});return E(O.length),{phone:N,inputValue:O,country:K.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:U,phone:ee,country:N})=>{if(!g)return;let O=re(N);g({phone:ee,inputValue:U,country:O})}}),re=L.useCallback(U=>$l({value:U,field:"iso2",countries:n}),[n]),ge=L.useMemo(()=>re(M),[M,re]);L.useEffect(()=>{let U=A.current;if(!U)return;let ee=N=>{if(!N.key)return;let O=N.ctrlKey,K=N.metaKey,de=N.shiftKey;if(N.key.toLowerCase()==="z"){if(iJ()){if(!K)return}else if(!O)return;de?z():R()}};return U.addEventListener("keydown",ee),()=>{U.removeEventListener("keydown",ee)}},[A,R,z]);let le=U=>{U.preventDefault();let{phone:ee,inputValue:N,country:O,cursorPosition:K}=uJ(U,{country:ge,phoneBeforeInput:S,insertDialCodeOnEmpty:!1,...w});return _({inputValue:N,phone:ee,country:O.iso2}),E(K),t},I=(U,ee={focusOnInput:!1})=>{let N=$l({value:U,field:"iso2",countries:n});if(!N){console.error(`[react-international-phone]: can not find a country with "${U}" iso2 code`);return}let O=h?"":`${r}${N.dialCode}${a}`;_({inputValue:O,phone:`${r}${N.dialCode}`,country:N.iso2}),ee.focusOnInput&&Promise.resolve().then(()=>{var K;(K=A.current)==null||K.focus()})},[Ce,we]=L.useState(!1);return L.useEffect(()=>{if(!Ce){we(!0),t!==C&&(g==null||g({inputValue:S,phone:C,country:ge}));return}if(t===C)return;let{phone:U,inputValue:ee,country:N}=m1({value:t,country:ge,insertDialCodeOnEmpty:!l,...w});_({phone:U,inputValue:ee,country:N.iso2})},[t]),{phone:C,inputValue:S,country:ge,setCountry:I,handlePhoneValueChange:le,inputRef:A}},hJ=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=o=>r?o.replace(new RegExp(`[^${XR}]`,"g"),""):o;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let s=Object.keys(i).find(o=>{if(o==="default")return!1;if(!(o.charAt(0)==="/"&&o.charAt(o.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${o}" for ${t.iso2} is not valid`),!1;let l=new RegExp(o.substring(1,o.length-1)),d=e.replace(t.dialCode,"");return l.test(gm(d))});return a(s?i[s]:i.default)},pa=e=>{let[t,n,r,i,a,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:s}},pJ=e=>`Field "${e}" is not supported`,$l=({field:e,value:t,countries:n=Fu})=>{if(["priority"].includes(e))throw new Error(pJ(e));let r=n.find(i=>{let a=pa(i);return t===a[e]});if(r)return pa(r)},mJ=({phone:e,countries:t=Fu,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=gm(e);if(!i)return r;let a=r,s=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:l,fullDialCodeMatch:d})};for(let l of t){let d=pa(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=a.country?Number(h)>=Number(a.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let w of m)if(b.startsWith(w))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&s({country:d,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&s({country:d,fullDialCodeMatch:!1})}if(n){let l=$l({value:n,field:"iso2",countries:t});if(!l)return a;let d=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;a&&((o=a.country)==null?void 0:o.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||d)&&(a={country:l,fullDialCodeMatch:!0})}return a},gJ=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},vJ="abcdefghijklmnopqrstuvwxyz",yJ="1f1e6",HD=vJ.split("").reduce((e,t,n)=>({...e,[t]:gJ(yJ,n)}),{}),bJ=e=>[HD[e[0]],HD[e[1]]].join("-"),w3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:s,...o})=>{if(!e)return ce.default.createElement("img",{className:Ar({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...o});let l=()=>{if(n)return n;let d=bJ(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return ce.default.createElement("img",{className:Ar({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...o})},$J=1e3,xJ=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Fu,preferredCountries:i=[],flags:a,onSelect:s,onClose:o,...l})=>{let d=L.useRef(null),h=L.useRef(),m=L.useMemo(()=>{if(!i||!i.length)return r;let R=[],z=[...r];for(let re of i){let ge=z.findIndex(le=>pa(le).iso2===re);if(ge!==-1){let le=z.splice(ge,1)[0];R.push(le)}}return R.concat(z)},[r,i]),g=L.useRef({updatedAt:void 0,value:""}),b=R=>{let z=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>$J;g.current={value:z?R:`${g.current.value}${R}`,updatedAt:new Date};let re=m.findIndex(ge=>pa(ge).name.toLowerCase().startsWith(g.current.value));re!==-1&&A(re)},w=L.useCallback(R=>m.findIndex(z=>pa(z).iso2===R),[m]),[x,A]=L.useState(w(n)),E=()=>{h.current!==n&&A(w(n))},C=L.useCallback(R=>{A(w(R.iso2)),s==null||s(R)},[s,w]),S=R=>{let z=m.length-1,re=ge=>R==="prev"?ge-1:R==="next"?ge+1:R==="last"?z:0;A(ge=>{let le=re(ge);return le<0?0:le>z?z:le})},M=R=>{if(R.stopPropagation(),R.key==="Enter"){R.preventDefault();let z=pa(m[x]);C(z);return}if(R.key==="Escape"){o==null||o();return}if(R.key==="ArrowUp"){R.preventDefault(),S("prev");return}if(R.key==="ArrowDown"){R.preventDefault(),S("next");return}if(R.key==="PageUp"){R.preventDefault(),S("first");return}if(R.key==="PageDown"){R.preventDefault(),S("last");return}R.key===" "&&R.preventDefault(),R.key.length===1&&!R.altKey&&!R.ctrlKey&&!R.metaKey&&b(R.key.toLocaleLowerCase())},_=L.useCallback(()=>{if(!d.current||x===void 0)return;let R=pa(m[x]).iso2;if(R===h.current)return;let z=d.current.querySelector(`[data-country="${R}"]`);z&&(rJ(d.current,z),h.current=R)},[x,m]);return L.useEffect(()=>{_()},[x,_]),L.useEffect(()=>{d.current&&(e?d.current.focus():E())},[e]),L.useEffect(()=>{E()},[n]),ce.default.createElement("ul",{ref:d,role:"listbox",className:Ar({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:M,onBlur:o,tabIndex:-1,"aria-activedescendant":`react-international-phone__${pa(m[x]).iso2}-option`},m.map((R,z)=>{let re=pa(R),ge=re.iso2===n,le=z===x,I=i.includes(re.iso2),Ce=z===i.length-1,we=a==null?void 0:a.find(U=>U.iso2===re.iso2);return ce.default.createElement(ce.default.Fragment,{key:re.iso2},ce.default.createElement("li",{"data-country":re.iso2,role:"option","aria-selected":ge,"aria-label":`${re.name} ${t}${re.dialCode}`,id:`react-international-phone__${re.iso2}-option`,className:Ar({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",ge&&"country-selector-dropdown__list-item--selected",le&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,I&&l.listItemPreferredClassName,ge&&l.listItemSelectedClassName,le&&l.listItemFocusedClassName]}),onClick:()=>C(re),style:l.listItemStyle,title:re.name},ce.default.createElement(w3,{iso2:re.iso2,src:we==null?void 0:we.src,className:Ar({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),ce.default.createElement("span",{className:Ar({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},re.name),ce.default.createElement("span",{className:Ar({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,re.dialCode)),Ce?ce.default.createElement("hr",{className:Ar({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},wJ=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Fu,preferredCountries:a=[],flags:s,renderButtonWrapper:o,...l})=>{let[d,h]=L.useState(!1),m=L.useMemo(()=>{if(e)return $l({value:e,field:"iso2",countries:i})},[i,e]),g=L.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},w=()=>{var E;let x={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},A=ce.default.createElement("div",{className:Ar({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},ce.default.createElement(w3,{iso2:e,src:(E=s==null?void 0:s.find(C=>C.iso2===e))==null?void 0:E.src,className:Ar({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&ce.default.createElement("div",{className:Ar({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return o?o({children:A,rootProps:x}):ce.default.createElement("button",{...x,type:"button",className:Ar({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},A)};return ce.default.createElement("div",{className:Ar({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},w(),ce.default.createElement(xJ,{show:d,countries:i,preferredCountries:a,flags:s,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},CJ=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>ce.default.createElement("div",{className:Ar({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);L.forwardRef(({value:e,onChange:t,countries:n=Fu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:s,flags:o,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:w,placeholder:x,disabled:A,name:E,onFocus:C,onBlur:S,required:M,autoFocus:_,...R},z)=>{let{phone:re,inputValue:ge,inputRef:le,country:I,setCountry:Ce,handlePhoneValueChange:we}=JR({value:e,countries:n,...R,onChange:ee=>{t==null||t(ee.phone,{country:ee.country,inputValue:ee.inputValue})}}),U=R.disableDialCodeAndPrefix&&a&&(I==null?void 0:I.dialCode);return L.useImperativeHandle(z,()=>le.current?Object.assign(le.current,{setCountry:Ce,state:{phone:re,inputValue:ge,country:I}}):null,[le,Ce,re,ge,I]),ce.default.createElement("div",{ref:z,className:Ar({addPrefix:["input-container"],rawClassNames:[d]}),style:l},ce.default.createElement(wJ,{onSelect:ee=>Ce(ee.iso2,{focusOnInput:!s}),flags:o,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),U&&ce.default.createElement(CJ,{dialCode:I.dialCode,prefix:R.prefix??"+",disabled:A,...b}),ce.default.createElement("input",{onChange:we,value:ge,type:"tel",ref:le,className:Ar({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:E,onFocus:C,onBlur:S,autoFocus:_,required:M,...w}))});var F0,GD;function EJ(){if(GD)return F0;GD=1;function e(t){return t===void 0}return F0=e,F0}var SJ=EJ();const DJ=yr(SJ);var R0={exports:{}},YD;function AJ(){return YD||(YD=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
72
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
73
|
+
*
|
|
74
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
75
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
76
|
+
* @namespace
|
|
77
|
+
* @public
|
|
78
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,s={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(S){return S instanceof l?new l(S.type,C(S.content),S.alias):Array.isArray(S)?S.map(C):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++a}),C.__id},clone:function C(S,M){M=M||{};var _,R;switch(o.util.type(S)){case"Object":if(R=o.util.objId(S),M[R])return M[R];_={},M[R]=_;for(var z in S)S.hasOwnProperty(z)&&(_[z]=C(S[z],M));return _;case"Array":return R=o.util.objId(S),M[R]?M[R]:(_=[],M[R]=_,S.forEach(function(re,ge){_[ge]=C(re,M)}),_);default:return S}},getLanguage:function(C){for(;C;){var S=i.exec(C.className);if(S)return S[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,S){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(C){var S=document.getElementsByTagName("script");for(var M in S)if(S[M].src==C)return S[M]}return null}},isActive:function(C,S,M){for(var _="no-"+S;C;){var R=C.classList;if(R.contains(S))return!0;if(R.contains(_))return!1;C=C.parentElement}return!!M}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(C,S){var M=o.util.clone(o.languages[C]);for(var _ in S)M[_]=S[_];return M},insertBefore:function(C,S,M,_){_=_||o.languages;var R=_[C],z={};for(var re in R)if(R.hasOwnProperty(re)){if(re==S)for(var ge in M)M.hasOwnProperty(ge)&&(z[ge]=M[ge]);M.hasOwnProperty(re)||(z[re]=R[re])}var le=_[C];return _[C]=z,o.languages.DFS(o.languages,function(I,Ce){Ce===le&&I!=C&&(this[I]=z)}),z},DFS:function C(S,M,_,R){R=R||{};var z=o.util.objId;for(var re in S)if(S.hasOwnProperty(re)){M.call(S,re,S[re],_||re);var ge=S[re],le=o.util.type(ge);le==="Object"&&!R[z(ge)]?(R[z(ge)]=!0,C(ge,M,null,R)):le==="Array"&&!R[z(ge)]&&(R[z(ge)]=!0,C(ge,M,re,R))}}},plugins:{},highlightAll:function(C,S){o.highlightAllUnder(document,C,S)},highlightAllUnder:function(C,S,M){var _={callback:M,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),o.hooks.run("before-all-elements-highlight",_);for(var R=0,z;z=_.elements[R++];)o.highlightElement(z,S===!0,_.callback)},highlightElement:function(C,S,M){var _=o.util.getLanguage(C),R=o.languages[_];o.util.setLanguage(C,_);var z=C.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(z,_);var re=C.textContent,ge={element:C,language:_,grammar:R,code:re};function le(Ce){ge.highlightedCode=Ce,o.hooks.run("before-insert",ge),ge.element.innerHTML=ge.highlightedCode,o.hooks.run("after-highlight",ge),o.hooks.run("complete",ge),M&&M.call(ge.element)}if(o.hooks.run("before-sanity-check",ge),z=ge.element.parentElement,z&&z.nodeName.toLowerCase()==="pre"&&!z.hasAttribute("tabindex")&&z.setAttribute("tabindex","0"),!ge.code){o.hooks.run("complete",ge),M&&M.call(ge.element);return}if(o.hooks.run("before-highlight",ge),!ge.grammar){le(o.util.encode(ge.code));return}if(S&&r.Worker){var I=new Worker(o.filename);I.onmessage=function(Ce){le(Ce.data)},I.postMessage(JSON.stringify({language:ge.language,code:ge.code,immediateClose:!0}))}else le(o.highlight(ge.code,ge.grammar,ge.language))},highlight:function(C,S,M){var _={code:C,grammar:S,language:M};if(o.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=o.tokenize(_.code,_.grammar),o.hooks.run("after-tokenize",_),l.stringify(o.util.encode(_.tokens),_.language)},tokenize:function(C,S){var M=S.rest;if(M){for(var _ in M)S[_]=M[_];delete S.rest}var R=new m;return g(R,R.head,C),h(C,R,S,R.head,0),w(R)},hooks:{all:{},add:function(C,S){var M=o.hooks.all;M[C]=M[C]||[],M[C].push(S)},run:function(C,S){var M=o.hooks.all[C];if(!(!M||!M.length))for(var _=0,R;R=M[_++];)R(S)}},Token:l};r.Prism=o;function l(C,S,M,_){this.type=C,this.content=S,this.alias=M,this.length=(_||"").length|0}l.stringify=function C(S,M){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(le){_+=C(le,M)}),_}var R={type:S.type,content:C(S.content,M),tag:"span",classes:["token",S.type],attributes:{},language:M},z=S.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(R.classes,z):R.classes.push(z)),o.hooks.run("wrap",R);var re="";for(var ge in R.attributes)re+=" "+ge+'="'+(R.attributes[ge]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+re+">"+R.content+"</"+R.tag+">"};function d(C,S,M,_){C.lastIndex=S;var R=C.exec(M);if(R&&_&&R[1]){var z=R[1].length;R.index+=z,R[0]=R[0].slice(z)}return R}function h(C,S,M,_,R,z){for(var re in M)if(!(!M.hasOwnProperty(re)||!M[re])){var ge=M[re];ge=Array.isArray(ge)?ge:[ge];for(var le=0;le<ge.length;++le){if(z&&z.cause==re+","+le)return;var I=ge[le],Ce=I.inside,we=!!I.lookbehind,U=!!I.greedy,ee=I.alias;if(U&&!I.pattern.global){var N=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,N+"g")}for(var O=I.pattern||I,K=_.next,de=R;K!==S.tail&&!(z&&de>=z.reach);de+=K.value.length,K=K.next){var k=K.value;if(S.length>C.length)return;if(!(k instanceof l)){var se=1,oe;if(U){if(oe=d(O,de,C,we),!oe||oe.index>=C.length)break;var Ye=oe.index,Te=oe.index+oe[0].length,Me=de;for(Me+=K.value.length;Ye>=Me;)K=K.next,Me+=K.value.length;if(Me-=K.value.length,de=Me,K.value instanceof l)continue;for(var Le=K;Le!==S.tail&&(Me<Te||typeof Le.value=="string");Le=Le.next)se++,Me+=Le.value.length;se--,k=C.slice(de,Me),oe.index-=de}else if(oe=d(O,0,k,we),!oe)continue;var Ye=oe.index,Qe=oe[0],Ue=k.slice(0,Ye),Ge=k.slice(Ye+Qe.length),Ie=de+k.length;z&&Ie>z.reach&&(z.reach=Ie);var Ne=K.prev;Ue&&(Ne=g(S,Ne,Ue),de+=Ue.length),b(S,Ne,se);var Ae=new l(re,Ce?o.tokenize(Qe,Ce):Qe,ee,Qe);if(K=g(S,Ne,Ae),Ge&&g(S,K,Ge),se>1){var He={cause:re+","+le,reach:Ie};h(C,S,M,K.prev,de,He),z&&He.reach>z.reach&&(z.reach=He.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},S={value:null,prev:C,next:null};C.next=S,this.head=C,this.tail=S,this.length=0}function g(C,S,M){var _=S.next,R={value:M,prev:S,next:_};return S.next=R,_.prev=R,C.length++,R}function b(C,S,M){for(var _=S.next,R=0;R<M&&_!==C.tail;R++)_=_.next;S.next=_,_.prev=S,C.length-=R}function w(C){for(var S=[],M=C.head.next;M!==C.tail;)S.push(M.value),M=M.next;return S}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(C){var S=JSON.parse(C.data),M=S.language,_=S.code,R=S.immediateClose;r.postMessage(o.highlight(_,o.languages[M],M)),R&&r.close()},!1)),o;var x=o.util.currentScript();x&&(o.filename=x.src,x.hasAttribute("data-manual")&&(o.manual=!0));function A(){o.manual||o.highlightAll()}if(!o.manual){var E=document.readyState;E==="loading"||E==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return o}(t);e.exports&&(e.exports=n),typeof qi<"u"&&(qi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var s={};s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(x,A){return"✖ Error "+x+" while fetching file: "+A},a="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+l+'"])';function g(x,A,E){var C=new XMLHttpRequest;C.open("GET",x,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?A(C.responseText):C.status>=400?E(i(C.status,C.statusText)):E(a))},C.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var E=Number(A[1]),C=A[2],S=A[3];return C?S?[E,Number(S)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var A=x.element;if(A.matches(m)){x.code="",A.setAttribute(o,l);var E=A.appendChild(document.createElement("CODE"));E.textContent=r;var C=A.getAttribute("data-src"),S=x.language;if(S==="none"){var M=(/\.(\w+)$/.exec(C)||[,"none"])[1];S=s[M]||M}n.util.setLanguage(E,S),n.util.setLanguage(A,S);var _=n.plugins.autoloader;_&&_.loadLanguages(S),g(C,function(R){A.setAttribute(o,d);var z=b(A.getAttribute("data-range"));if(z){var re=R.split(/\r\n?|\n/g),ge=z[0],le=z[1]==null?re.length:z[1];ge<0&&(ge+=re.length),ge=Math.max(0,Math.min(ge-1,re.length)),le<0&&(le+=re.length),le=Math.max(0,Math.min(le,re.length)),R=re.slice(ge,le).join(`
|
|
79
|
+
`),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ge+1))}E.textContent=R,n.highlightElement(E)},function(R){A.setAttribute(o,h),E.textContent=R})}}),n.plugins.fileHighlight={highlight:function(A){for(var E=(A||document).querySelectorAll(m),C=0,S;S=E[C++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(R0)),R0.exports}var TJ=AJ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function o(g,b){var w=getComputedStyle(g),x=getComputedStyle(b);function A(E){return+E.substr(0,E.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A(w.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,w,x){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var A=w.replace(/\s+/g,"").split(",").filter(Boolean),E=+b.getAttribute("data-line-offset")||0,C=s()?parseInt:parseFloat,S=C(getComputedStyle(b).lineHeight),M=Prism.util.isActive(b,e),_=b.querySelector("code"),R=M?b:_||b,z=[],re=_.textContent.match(n),ge=re?re.length+1:1,le=!_||R==_?0:o(b,_);A.forEach(function(we){var U=we.split("-"),ee=+U[0],N=+U[1]||ee;if(N=Math.min(ge+E,N),!(N<ee)){var O=b.querySelector('.line-highlight[data-range="'+we+'"]')||document.createElement("div");if(z.push(function(){O.setAttribute("aria-hidden","true"),O.setAttribute("data-range",we),O.className=(x||"")+" line-highlight"}),M&&Prism.plugins.lineNumbers){var K=Prism.plugins.lineNumbers.getLine(b,ee),de=Prism.plugins.lineNumbers.getLine(b,N);if(K){var k=K.offsetTop+le+"px";z.push(function(){O.style.top=k})}if(de){var se=de.offsetTop-K.offsetTop+de.offsetHeight+"px";z.push(function(){O.style.height=se})}}else z.push(function(){O.setAttribute("data-start",String(ee)),N>ee&&O.setAttribute("data-end",String(N)),O.style.top=(ee-E-1)*S+le+"px",O.textContent=new Array(N-ee+2).join(`
|
|
80
|
+
`)});z.push(function(){O.style.width=b.scrollWidth+"px"}),z.push(function(){R.appendChild(O)})}});var I=b.id;if(M&&Prism.util.isActive(b,t)&&I){i(b,t)||z.push(function(){b.classList.add(t)});var Ce=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(we,U){var ee=U+Ce;we.onclick=function(){var N=I+"."+ee;d=!1,location.hash=N,setTimeout(function(){d=!0},1)}})}return function(){z.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(E){E.parentNode.removeChild(E)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var w=0;r(".line-highlight",b).forEach(function(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(l(w)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var E=Prism.plugins.lineHighlight.highlightLines(w);E(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const QR=L.createContext({});function fd(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const C3=typeof window<"u",e7=C3?L.useLayoutEffect:L.useEffect,E3=L.createContext(null);function S3(e,t){e.indexOf(t)===-1&&e.push(t)}function D3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function PJ([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const Vs=(e,t,n)=>n>t?t:n<e?e:n;function g1(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let sc=()=>{},xa=()=>{};process.env.NODE_ENV!=="production"&&(sc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(g1(t,n))},xa=(e,t,n)=>{if(!e)throw new Error(g1(t,n))});const Ns={},t7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function n7(e){return typeof e=="object"&&e!==null}const r7=e=>/^0[^.\s]+$/u.test(e);function A3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Yi=e=>e,_J=(e,t)=>n=>t(e(n)),dd=(...e)=>e.reduce(_J),Bf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let T3=class{constructor(){this.subscriptions=[]}add(t){return S3(this.subscriptions,t),()=>D3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const ya=e=>e*1e3,Za=e=>e/1e3;function i7(e,t){return t?e*(1e3/t):0}const ZD=new Set;function P3(e,t,n){e||ZD.has(t)||(console.warn(g1(t,n)),ZD.add(t))}const a7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MJ=1e-7,FJ=12;function RJ(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=a7(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>MJ&&++o<FJ);return s}function hd(e,t,n,r){if(e===t&&n===r)return Yi;const i=a=>RJ(a,0,1,e,n);return a=>a===0||a===1?a:a7(i(a),t,r)}const s7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o7=e=>t=>1-e(1-t),u7=hd(.33,1.53,.69,.99),_3=o7(u7),l7=s7(_3),c7=e=>(e*=2)<1?.5*_3(e):.5*(2-Math.pow(2,-10*(e-1))),M3=e=>1-Math.sin(Math.acos(e)),f7=o7(M3),d7=s7(M3),kJ=hd(.42,0,1,1),OJ=hd(0,0,.58,1),h7=hd(.42,0,.58,1),IJ=e=>Array.isArray(e)&&typeof e[0]!="number",p7=e=>Array.isArray(e)&&typeof e[0]=="number",XD={linear:Yi,easeIn:kJ,easeInOut:h7,easeOut:OJ,circIn:M3,circInOut:d7,circOut:f7,backIn:_3,backInOut:l7,backOut:u7,anticipate:c7},LJ=e=>typeof e=="string",JD=e=>{if(p7(e)){xa(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return hd(t,n,r,i)}else if(LJ(e))return xa(XD[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),XD[e];return e},mh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BJ(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(o=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const VJ=40;function m7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=mh.reduce((S,M)=>(S[M]=BJ(a),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ns.useManualTiming?i.timestamp:performance.now();n=!1,Ns.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,VJ),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:mh.reduce((S,M)=>{const _=s[M];return S[M]=(R,z=!1,re=!1)=>(n||A(),_.schedule(R,z,re)),S},{}),cancel:S=>{for(let M=0;M<mh.length;M++)s[mh[M]].cancel(S)},state:i,steps:s}}const{schedule:wn,cancel:js,state:gr,steps:k0}=m7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yi,!0);let Oh;function NJ(){Oh=void 0}const ri={now:()=>(Oh===void 0&&ri.set(gr.isProcessing||Ns.useManualTiming?gr.timestamp:performance.now()),Oh),set:e=>{Oh=e,queueMicrotask(NJ)}},g7=e=>t=>typeof t=="string"&&t.startsWith(e),F3=g7("--"),jJ=g7("var(--"),R3=e=>jJ(e)?KJ.test(e.split("/*")[0].trim()):!1,KJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vf={...oc,transform:e=>Vs(0,1,e)},gh={...oc,default:1},wf=e=>Math.round(e*1e5)/1e5,k3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UJ(e){return e==null}const qJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,O3=(e,t)=>n=>!!(typeof n=="string"&&qJ.test(n)&&n.startsWith(e)||t&&!UJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),v7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(k3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},zJ=e=>Vs(0,255,e),O0={...oc,transform:e=>Math.round(zJ(e))},uu={test:O3("rgb","red"),parse:v7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+O0.transform(e)+", "+O0.transform(t)+", "+O0.transform(n)+", "+wf(Vf.transform(r))+")"};function WJ(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const v1={test:O3("#"),parse:WJ,transform:uu.transform},pd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=pd("deg"),Xa=pd("%"),Dt=pd("px"),HJ=pd("vh"),GJ=pd("vw"),QD={...Xa,parse:e=>Xa.parse(e)/100,transform:e=>Xa.transform(e*100)},xl={test:O3("hsl","hue"),parse:v7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xa.transform(wf(t))+", "+Xa.transform(wf(n))+", "+wf(Vf.transform(r))+")"},Xn={test:e=>uu.test(e)||v1.test(e)||xl.test(e),parse:e=>uu.test(e)?uu.parse(e):xl.test(e)?xl.parse(e):v1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?uu.transform(e):xl.transform(e),getAnimatableNone:e=>{const t=Xn.parse(e);return t.alpha=0,Xn.transform(t)}},YJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(k3))==null?void 0:t.length)||0)+(((n=e.match(YJ))==null?void 0:n.length)||0)>0}const y7="number",b7="color",XJ="var",JJ="var(",eA="${}",QJ=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Nf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(QJ,l=>(Xn.test(l)?(r.color.push(a),i.push(b7),n.push(Xn.parse(l))):l.startsWith(JJ)?(r.var.push(a),i.push(XJ),n.push(l)):(r.number.push(a),i.push(y7),n.push(parseFloat(l))),++a,eA)).split(eA);return{values:n,split:o,indexes:r,types:i}}function $7(e){return Nf(e).values}function x7(e){const{split:t,types:n}=Nf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===y7?a+=wf(i[s]):o===b7?a+=Xn.transform(i[s]):a+=i[s]}return a}}const eQ=e=>typeof e=="number"?0:Xn.test(e)?Xn.getAnimatableNone(e):e;function tQ(e){const t=$7(e);return x7(e)(t.map(eQ))}const $o={test:ZJ,parse:$7,createTransformer:x7,getAnimatableNone:tQ};function I0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nQ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=I0(l,o,e+1/3),a=I0(l,o,e),s=I0(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function gp(e,t){return n=>n>0?t:e}const An=(e,t,n)=>e+(t-e)*n,L0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},rQ=[v1,uu,xl],iQ=e=>rQ.find(t=>t.test(e));function tA(e){const t=iQ(e);if(sc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===xl&&(n=nQ(n)),n}const nA=(e,t)=>{const n=tA(e),r=tA(t);if(!n||!r)return gp(e,t);const i={...n};return a=>(i.red=L0(n.red,r.red,a),i.green=L0(n.green,r.green,a),i.blue=L0(n.blue,r.blue,a),i.alpha=An(n.alpha,r.alpha,a),uu.transform(i))},y1=new Set(["none","hidden"]);function aQ(e,t){return y1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sQ(e,t){return n=>An(e,t,n)}function I3(e){return typeof e=="number"?sQ:typeof e=="string"?R3(e)?gp:Xn.test(e)?nA:lQ:Array.isArray(e)?w7:typeof e=="object"?Xn.test(e)?nA:oQ:gp}function w7(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>I3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function oQ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=I3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function uQ(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}const lQ=(e,t)=>{const n=$o.createTransformer(t),r=Nf(e),i=Nf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?y1.has(e)&&!i.values.length||y1.has(t)&&!r.values.length?aQ(e,t):dd(w7(uQ(r,i),i.values),n):(sc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),gp(e,t))};function C7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?An(e,t,n):I3(e)(e,t)}const cQ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wn.update(t,n),stop:()=>js(t),now:()=>gr.isProcessing?gr.timestamp:ri.now()}},E7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},vp=2e4;function L3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<vp;)t+=n,r=e.next(t);return t>=vp?1/0:t}function fQ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(L3(r),vp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Za(i)}}const dQ=5;function S7(e,t,n){const r=Math.max(t-dQ,0);return i7(n-e(r),t-r)}const Pn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},B0=.001;function hQ({duration:e=Pn.duration,bounce:t=Pn.bounce,velocity:n=Pn.velocity,mass:r=Pn.mass}){let i,a;sc(e<=ya(Pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Vs(Pn.minDamping,Pn.maxDamping,s),e=Vs(Pn.minDuration,Pn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=b1(d,s),w=Math.exp(-m);return B0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=b1(Math.pow(d,2),s);return(-i(d)+B0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-B0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=mQ(i,a,o);if(e=ya(e),isNaN(l))return{stiffness:Pn.stiffness,damping:Pn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const pQ=12;function mQ(e,t,n){let r=n;for(let i=1;i<pQ;i++)r=r-e(r)/t(r);return r}function b1(e,t){return e*Math.sqrt(1-t*t)}const gQ=["duration","bounce"],vQ=["stiffness","damping","mass"];function rA(e,t){return t.some(n=>e[n]!==void 0)}function yQ(e){let t={velocity:Pn.velocity,stiffness:Pn.stiffness,damping:Pn.damping,mass:Pn.mass,isResolvedFromDuration:!1,...e};if(!rA(e,vQ)&&rA(e,gQ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Vs(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pn.mass,stiffness:i,damping:a}}else{const n=hQ(e);t={...t,...n,mass:Pn.mass},t.isResolvedFromDuration=!0}return t}function yp(e=Pn.visualDuration,t=Pn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=yQ({...n,velocity:-Za(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(l*h)),A=s-a,E=Za(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Pn.restSpeed.granular:Pn.restSpeed.default),i||(i=C?Pn.restDelta.granular:Pn.restDelta.default);let S;if(x<1){const _=b1(E,x);S=R=>{const z=Math.exp(-x*E*R);return s-z*((w+x*E*A)/_*Math.sin(_*R)+A*Math.cos(_*R))}}else if(x===1)S=_=>s-Math.exp(-E*_)*(A+(w+E*A)*_);else{const _=E*Math.sqrt(x*x-1);S=R=>{const z=Math.exp(-x*E*R),re=Math.min(_*R,300);return s-z*((w+x*E*A)*Math.sinh(re)+_*A*Math.cosh(re))/_}}const M={calculatedDuration:b&&m||null,next:_=>{const R=S(_);if(b)o.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?ya(w):S7(S,_,R));const re=Math.abs(z)<=r,ge=Math.abs(s-R)<=i;o.done=re&&ge}return o.value=o.done?s:R,o},toString:()=>{const _=Math.min(L3(M),vp),R=E7(z=>M.next(_*z).value,_,30);return _+"ms "+R},toTransition:()=>{}};return M}yp.applyToOptions=e=>{const t=fQ(e,100,yp);return e.ease=t.ease,e.duration=ya(t.duration),e.type="keyframes",e};function $1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=re=>o!==void 0&&re<o||l!==void 0&&re>l,w=re=>o===void 0?l:l===void 0||Math.abs(o-re)<Math.abs(l-re)?o:l;let x=n*t;const A=m+x,E=s===void 0?A:s(A);E!==A&&(x=E-m);const C=re=>-x*Math.exp(-re/r),S=re=>E+C(re),M=re=>{const ge=C(re),le=S(re);g.done=Math.abs(ge)<=d,g.value=g.done?E:le};let _,R;const z=re=>{b(g.value)&&(_=re,R=yp({keyframes:[g.value,w(g.value)],velocity:S7(S,re,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:re=>{let ge=!1;return!R&&_===void 0&&(ge=!0,M(re),z(re)),_!==void 0&&re>=_?R.next(re-_):(!ge&&M(re),g)}}}function bQ(e,t,n){const r=[],i=n||Ns.mix||C7,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Yi:t;o=dd(l,o)}r.push(o)}return r}function D7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(xa(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=bQ(t,r,i),l=o.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Bf(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Vs(e[0],e[a-1],h)):d}function $Q(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bf(0,t,r);e.push(An(n,1,i))}}function xQ(e){const t=[0];return $Q(t,e.length-1),t}function wQ(e,t){return e.map(n=>n*t)}function CQ(e,t){return e.map(()=>t||h7).splice(0,e.length-1)}function wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=IJ(r)?r.map(JD):JD(r),a={done:!1,value:t[0]},s=wQ(n&&n.length===t.length?n:xQ(t),e),o=D7(s,t,{ease:Array.isArray(i)?i:CQ(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const EQ=e=>e!==null;function B3(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(EQ),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const SQ={decay:$1,inertia:$1,tween:wl,keyframes:wl,spring:yp};function A7(e){typeof e.type=="string"&&(e.type=SQ[e.type])}let V3=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const DQ=e=>e/100;let N3=class extends V3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ri.now()&&this.tick(ri.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;A7(t);const{type:n=wl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const l=n||wl;process.env.NODE_ENV!=="production"&&l!==wl&&xa(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),l!==wl&&typeof o[0]!="number"&&(this.mixKeyframes=dd(DQ,C7(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=L3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,M=r;if(m){const re=Math.min(this.currentTime,i)/o;let ge=Math.floor(re),le=re%1;!le&&re>=1&&(le=1),le===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(le=1-le,b&&(le-=b/o)):g==="mirror"&&(M=s)),S=Vs(0,1,le)*o}const _=C?{done:!1,value:h[0]}:M.next(S);a&&(_.value=a(_.value));let{done:R}=_;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return z&&w!==$1&&(_.value=B3(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Za(this.calculatedDuration)}get time(){return Za(this.currentTime)}set time(t){var n;t=ya(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ri.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Za(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=cQ,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ri.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function AQ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const lu=e=>e*180/Math.PI,x1=e=>{const t=lu(Math.atan2(e[1],e[0]));return w1(t)},TQ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:x1,rotateZ:x1,skewX:e=>lu(Math.atan(e[1])),skewY:e=>lu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},w1=e=>(e=e%360,e<0&&(e+=360),e),iA=x1,aA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PQ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aA,scaleY:sA,scale:e=>(aA(e)+sA(e))/2,rotateX:e=>w1(lu(Math.atan2(e[6],e[5]))),rotateY:e=>w1(lu(Math.atan2(-e[2],e[0]))),rotateZ:iA,rotate:iA,skewX:e=>lu(Math.atan(e[4])),skewY:e=>lu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C1(e){return e.includes("scale")?1:0}function E1(e,t){if(!e||e==="none")return C1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=PQ,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=TQ,i=o}if(!i)return C1(t);const a=r[t],s=i[1].split(",").map(MQ);return typeof a=="function"?a(s):s[a]}const _Q=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return E1(n,t)};function MQ(e){return parseFloat(e.trim())}const uc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lc=new Set(uc),oA=e=>e===oc||e===Dt,FQ=new Set(["x","y","z"]),RQ=uc.filter(e=>!FQ.has(e));function kQ(e){const t=[];return RQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const pu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>E1(t,"x"),y:(e,{transform:t})=>E1(t,"y")};pu.translateX=pu.x;pu.translateY=pu.y;const mu=new Set;let S1=!1,D1=!1,A1=!1;function T7(){if(D1){const e=Array.from(mu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kQ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))==null||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}D1=!1,S1=!1,mu.forEach(e=>e.complete(A1)),mu.clear()}function P7(){mu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(D1=!0)})}function OQ(){A1=!0,P7(),T7(),A1=!1}let j3=class{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(mu.add(this),S1||(S1=!0,wn.read(P7),wn.resolveKeyframes(T7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}AQ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),mu.delete(this)}cancel(){this.state==="scheduled"&&(mu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const IQ=e=>e.startsWith("--");function LQ(e,t,n){IQ(t)?e.style.setProperty(t,n):e.style[t]=n}const BQ=A3(()=>window.ScrollTimeline!==void 0),VQ={};function NQ(e,t){const n=A3(e);return()=>VQ[t]??n()}const _7=NQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mf([0,.65,.55,1]),circOut:mf([.55,0,1,.45]),backIn:mf([.31,.01,.66,-.59]),backOut:mf([.33,1.53,.69,.99])};function M7(e,t){if(e)return typeof e=="function"?_7()?E7(e,t):"ease-out":p7(e)?mf(e):Array.isArray(e)?e.map(n=>M7(n,t)||uA.easeOut):uA[e]}function jQ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=M7(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function F7(e){return typeof e=="function"&&"applyToOptions"in e}function KQ({type:e,...t}){return F7(e)&&_7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let UQ=class extends V3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,xa(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=KQ(t);this.animation=jQ(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=B3(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):LQ(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Za(Number(t))}get time(){return Za(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ya(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&BQ()?(this.animation.timeline=t,Yi):n(this)}};const R7={anticipate:c7,backInOut:l7,circInOut:d7};function qQ(e){return e in R7}function zQ(e){typeof e.ease=="string"&&qQ(e.ease)&&(e.ease=R7[e.ease])}const lA=10;let WQ=class extends UQ{constructor(t){zQ(t),A7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new N3({...s,autoplay:!1}),l=ya(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-lA).value,o.sample(l).value,lA),o.stop()}};const cA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($o.test(e)||e==="0")&&!e.startsWith("url("));function HQ(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function GQ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=cA(i,t),o=cA(a,t);return sc(s===o,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!o?!1:HQ(e)||(n==="spring"||F7(n))&&r}function T1(e){e.duration=0,e.type}const YQ=new Set(["opacity","clipPath","filter","transform"]),ZQ=A3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function XQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return ZQ()&&n&&YQ.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const JQ=40;let QQ=class extends V3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=ri.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||j3;this.keyframeResolver=new b(o,(x,A,E)=>this.onKeyframesResolved(x,A,g,!E),l,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ri.now(),GQ(t,a,s,o)||((Ns.instantAnimations||!l)&&(h==null||h(B3(t,r,n))),t[0]=t[t.length-1],T1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>JQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&XQ(g)?new WQ({...g,element:g.motionValue.owner.current}):new N3(g);b.finished.then(()=>this.notifyFinished()).catch(Yi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),OQ()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const eee=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tee(e){const t=eee.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const nee=4;function k7(e,t,n=1){xa(n<=nee,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=tee(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return t7(s)?parseFloat(s):s}return R3(i)?k7(i,t,n+1):i}function K3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const O7=new Set(["width","height","top","left","right","bottom",...uc]),ree={test:e=>e==="auto",parse:e=>e},I7=e=>t=>t.test(e),L7=[oc,Dt,Xa,oo,GJ,HJ,ree],fA=e=>L7.find(I7(e));function iee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||r7(e):!0}const aee=new Set(["brightness","contrast","saturate","opacity"]);function see(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(k3)||[];if(!r)return e;const i=n.replace(r,"");let a=aee.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const oee=/\b([a-z-]*)\(.*?\)/gu,P1={...$o,getAnimatableNone:e=>{const t=e.match(oee);return t?t.map(see).join(" "):e}},dA={...oc,transform:Math.round},uee={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:gh,scaleX:gh,scaleY:gh,scaleZ:gh,skew:oo,skewX:oo,skewY:oo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:Vf,originX:QD,originY:QD,originZ:Dt},U3={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt,...uee,zIndex:dA,fillOpacity:Vf,strokeOpacity:Vf,numOctaves:dA},lee={...U3,color:Xn,backgroundColor:Xn,outlineColor:Xn,fill:Xn,stroke:Xn,borderColor:Xn,borderTopColor:Xn,borderRightColor:Xn,borderBottomColor:Xn,borderLeftColor:Xn,filter:P1,WebkitFilter:P1},B7=e=>lee[e];function V7(e,t){let n=B7(e);return n!==P1&&(n=$o),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cee=new Set(["auto","none","0"]);function fee(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!cee.has(a)&&Nf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=V7(n,i)}let dee=class extends j3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),R3(d))){const h=k7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!O7.has(r)||t.length!==2)return;const[i,a]=t,s=fA(i),o=fA(a);if(s!==o)if(oA(s)&&oA(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else pu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||iee(t[i]))&&r.push(i);r.length&&fee(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=pu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}};function hee(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const N7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function pee(e){return n7(e)&&"offsetHeight"in e}const hA=30,mee=e=>!isNaN(parseFloat(e)),Cf={current:void 0};let gee=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ri.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ri.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=mee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&P3(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new T3);const r=this.events[t].add(n);return t==="change"?()=>{r(),wn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hA);return i7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Eu(e,t){return new gee(e,t)}const{schedule:q3}=m7(queueMicrotask,!1),da={x:!1,y:!1};function j7(){return da.x||da.y}function vee(e){return e==="x"||e==="y"?da[e]?null:(da[e]=!0,()=>{da[e]=!1}):da.x||da.y?null:(da.x=da.y=!0,()=>{da.x=da.y=!1})}function K7(e,t){const n=hee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pA(e){return!(e.pointerType==="touch"||j7())}function yee(e,t,n={}){const[r,i,a]=K7(e,n),s=o=>{if(!pA(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{pA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const U7=(e,t)=>t?e===t?!0:U7(e,t.parentElement):!1,z3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $ee(e){return bee.has(e.tagName)||e.tabIndex!==-1}const Ih=new WeakSet;function mA(e){return t=>{t.key==="Enter"&&e(t)}}function V0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mA(()=>{if(Ih.has(n))return;V0(n,"down");const i=mA(()=>{V0(n,"up")}),a=()=>V0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gA(e){return z3(e)&&!j7()}function wee(e,t,n={}){const[r,i,a]=K7(e,n),s=o=>{const l=o.currentTarget;if(!gA(o))return;Ih.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Ih.has(l)&&Ih.delete(l),gA(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||U7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),pee(o)&&(o.addEventListener("focus",d=>xee(d,i)),!$ee(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function q7(e){return n7(e)&&"ownerSVGElement"in e}function Cee(e){return q7(e)&&e.tagName==="svg"}function Eee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],o=D7(i,a,s);return t?o(r):o}const vr=e=>!!(e&&e.getVelocity),See=[...L7,Xn,$o],Dee=e=>See.find(I7(e)),W3=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Aee(e=!0){const t=L.useContext(E3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=L.useId();L.useEffect(()=>{if(e)return i(a)},[e]);const s=L.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const z7=L.createContext({strict:!1}),vA={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"]},Yl={};for(const e in vA)Yl[e]={isEnabled:t=>vA[e].some(n=>!!t[n])};function Tee(e){for(const t in e)Yl[t]={...Yl[t],...e[t]}}const Pee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Pee.has(e)}let W7=e=>!bp(e);function _ee(e){typeof e=="function"&&(W7=t=>t.startsWith("on")?!bp(t):e(t))}try{_ee(require("@emotion/is-prop-valid").default)}catch{}function Mee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(W7(i)||n===!0&&bp(i)||!t&&!bp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const vm=L.createContext({});function ym(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function jf(e){return typeof e=="string"||Array.isArray(e)}const H3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G3=["initial",...H3];function bm(e){return ym(e.animate)||G3.some(t=>jf(e[t]))}function H7(e){return!!(bm(e)||e.variants)}function Fee(e,t){if(bm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jf(n)?n:void 0,animate:jf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ree(e){const{initial:t,animate:n}=Fee(e,L.useContext(vm));return L.useMemo(()=>({initial:t,animate:n}),[yA(t),yA(n)])}function yA(e){return Array.isArray(e)?e.join(" "):e}const Kf={};function kee(e){for(const t in e)Kf[t]=e[t],F3(t)&&(Kf[t].isCSSVariable=!0)}function G7(e,{layout:t,layoutId:n}){return lc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Kf[e]||e==="opacity")}const Oee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iee=uc.length;function Lee(e,t,n){let r="",i=!0;for(let a=0;a<Iee;a++){const s=uc[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=N7(o,U3[s]);if(!l){i=!1;const h=Oee[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Y3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const d=t[l];if(lc.has(l)){s=!0;continue}else if(F3(l)){i[l]=d;continue}else{const h=N7(d,U3[l]);l.startsWith("origin")?(o=!0,a[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=Lee(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${d} ${h}`}}const Z3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Y7(e,t,n){for(const r in t)!vr(t[r])&&!G7(r,n)&&(e[r]=t[r])}function Bee({transformTemplate:e},t){return L.useMemo(()=>{const n=Z3();return Y3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vee(e,t){const n=e.style||{},r={};return Y7(r,n,e),Object.assign(r,Bee(e,t)),r}function Nee(e,t){const n={},r=Vee(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const jee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Kee={offset:"strokeDashoffset",array:"strokeDasharray"};function Uee(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?jee:Kee;e[a.offset]=Dt.transform(-r);const s=Dt.transform(t),o=Dt.transform(n);e[a.array]=`${s} ${o}`}function Z7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},l,d,h){if(Y3(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Uee(m,i,a,s,!1)}const X7=()=>({...Z3(),attrs:{}}),J7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qee(e,t,n,r){const i=L.useMemo(()=>{const a=X7();return Z7(a,t,J7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Y7(a,e.style,e),i.style={...a,...i.style}}return i}const zee=["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 X3(e){return typeof e!="string"||e.includes("-")?!1:!!(zee.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wee(e,t,n,{latestValues:r},i,a=!1){const o=(X3(e)?qee:Nee)(t,r,i,e),l=Mee(t,typeof e=="string",a),d=e!==L.Fragment?{...l,...o,ref:n}:{},{children:h}=t,m=L.useMemo(()=>vr(h)?h.get():h,[h]);return L.createElement(e,{...d,children:m})}function bA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function J3(e,t,n,r){if(typeof t=="function"){const[i,a]=bA(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=bA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Lh(e){return vr(e)?e.get():e}function Hee({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Gee(n,r,i,e),renderState:t()}}function Gee(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Lh(a[g]);let{initial:s,animate:o}=e;const l=bm(e),d=H7(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?o:s;if(m&&typeof m!="boolean"&&!ym(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=J3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...E}=w;for(const C in E){let S=E[C];if(Array.isArray(S)){const M=h?S.length-1:0;S=S[M]}S!==null&&(i[C]=S)}for(const C in x)i[C]=x[C]}}}return i}const Q7=e=>(t,n)=>{const r=L.useContext(vm),i=L.useContext(E3),a=()=>Hee(e,t,r,i);return n?a():fd(a)};function Q3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(vr(r[s])||t.style&&vr(t.style[s])||G7(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const Yee=Q7({scrapeMotionValuesFromProps:Q3,createRenderState:Z3});function ek(e,t,n){const r=Q3(e,t,n);for(const i in e)if(vr(e[i])||vr(t[i])){const a=uc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Zee=Q7({scrapeMotionValuesFromProps:ek,createRenderState:X7}),Xee=Symbol.for("motionComponentSymbol");function Cl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Jee(e,t,n){return L.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cl(n)&&(n.current=r))},[t])}const e$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Qee="framerAppearId",tk="data-"+e$(Qee),nk=L.createContext({});function ete(e,t,n,r,i){var x,A;const{visualElement:a}=L.useContext(vm),s=L.useContext(z7),o=L.useContext(E3),l=L.useContext(W3).reducedMotion,d=L.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=L.useContext(nk);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&tte(d.current,n,i,m);const g=L.useRef(!1);L.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[tk],w=L.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return e7(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),L.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),w.current=!1),h.enteringChildren=void 0)}),h}function tte(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:rk(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Cl(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function rk(e){if(e)return e.options.allowProjection!==!1?e.projection:rk(e.parent)}function N0(e,{forwardMotionProps:t=!1}={},n,r){n&&Tee(n);const i=X3(e)?Zee:Yee;function a(o,l){let d;const h={...L.useContext(W3),...o,layoutId:nte(o)},{isStatic:m}=h,g=Ree(o),b=i(o,m);if(!m&&C3){rte(h,n);const w=ite(h);d=w.MeasureLayout,g.visualElement=ete(e,b,h,r,w.ProjectionNode)}return Qa.jsxs(vm.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,Wee(e,o,Jee(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=L.forwardRef(a);return s[Xee]=e,s}function nte({layoutId:e}){const t=L.useContext(QR).id;return t&&e!==void 0?t+"-"+e:e}function rte(e,t){const n=L.useContext(z7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?sc(!1,r,"lazy-strict-mode"):xa(!1,r,"lazy-strict-mode")}}function ite(e){const{drag:t,layout:n}=Yl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ate(e,t){if(typeof Proxy>"u")return N0;const n=new Map,r=(a,s)=>N0(a,s,e,t),i=(a,s)=>(process.env.NODE_ENV!=="production"&&P3(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,N0(s,void 0,e,t)),n.get(s))})}function ik({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ste({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ote(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function j0(e){return e===void 0||e===1}function _1({scale:e,scaleX:t,scaleY:n}){return!j0(e)||!j0(t)||!j0(n)}function tu(e){return _1(e)||ak(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ak(e){return $A(e.x)||$A(e.y)}function $A(e){return e&&e!=="0%"}function $p(e,t,n){const r=e-n,i=t*r;return n+i}function xA(e,t,n,r,i){return i!==void 0&&(e=$p(e,i,r)),$p(e,n,r)+t}function M1(e,t=0,n=1,r,i){e.min=xA(e.min,t,n,r,i),e.max=xA(e.max,t,n,r,i)}function sk(e,{x:t,y:n}){M1(e.x,t.translate,t.scale,t.originPoint),M1(e.y,n.translate,n.scale,n.originPoint)}const wA=.999999999999,CA=1.0000000000001;function ute(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Sl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,sk(e,s)),r&&tu(a.latestValues)&&Sl(e,a.latestValues))}t.x<CA&&t.x>wA&&(t.x=1),t.y<CA&&t.y>wA&&(t.y=1)}function El(e,t){e.min=e.min+t,e.max=e.max+t}function EA(e,t,n,r,i=.5){const a=An(e.min,e.max,i);M1(e,t,n,a,r)}function Sl(e,t){EA(e.x,t.x,t.scaleX,t.scale,t.originX),EA(e.y,t.y,t.scaleY,t.scale,t.originY)}function ok(e,t){return ik(ote(e.getBoundingClientRect(),t))}function lte(e,t,n){const r=ok(e,n),{scroll:i}=t;return i&&(El(r.x,i.offset.x),El(r.y,i.offset.y)),r}const SA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dl=()=>({x:SA(),y:SA()}),DA=()=>({min:0,max:0}),Wn=()=>({x:DA(),y:DA()}),F1={current:null},uk={current:!1};function cte(){if(uk.current=!0,!!C3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>F1.current=e.matches;e.addEventListener("change",t),t()}else F1.current=!1}const fte=new WeakMap;function dte(e,t,n){for(const r in t){const i=t[r],a=n[r];if(vr(i))e.addValue(r,i);else if(vr(a))e.addValue(r,Eu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Eu(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const AA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let hte=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=j3,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.renderScheduledAt=0,this.scheduleRender=()=>{const g=ri.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wn.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=bm(n),this.isVariantNode=H7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&vr(b)&&b.set(l[g])}}mount(t){var n;this.current=t,fte.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),uk.current||cte(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:F1.current,process.env.NODE_ENV!=="production"&&P3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=lc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Yl){const n=Yl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<AA.length;r++){const i=AA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=dte(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Eu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(t7(r)||r7(r))?r=parseFloat(r):!Dee(r)&&$o.test(n)&&(r=V7(t,n)),this.setBaseTarget(t,vr(r)?r.get():r)),vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=J3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new T3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){q3.render(this.render)}},lk=class extends hte{constructor(){super(...arguments),this.KeyframeResolver=dee}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function ck(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function pte(e){return window.getComputedStyle(e)}let mte=class extends lk{constructor(){super(...arguments),this.type="html",this.renderInstance=ck}readValueFromInstance(t,n){var r;if(lc.has(n))return(r=this.projection)!=null&&r.isProjecting?C1(n):_Q(t,n);{const i=pte(t),a=(F3(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ok(t,n)}build(t,n,r){Y3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q3(t,n,r)}};const fk=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 gte(e,t,n,r){ck(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(fk.has(i)?i:e$(i),t.attrs[i])}let vte=class extends lk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lc.has(n)){const r=B7(n);return r&&r.default||0}return n=fk.has(n)?n:e$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ek(t,n,r)}build(t,n,r){Z7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){gte(t,n,r,i)}mount(t){this.isSVGTag=J7(t.tagName),super.mount(t)}};const yte=(e,t)=>X3(e)?new vte(t):new mte(t,{allowProjection:e!==L.Fragment});function Bl(e,t,n){const r=e.getProps();return J3(r,t,n!==void 0?n:r.custom,e)}const R1=e=>Array.isArray(e);function bte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Eu(n))}function $te(e){return R1(e)?e[e.length-1]||0:e}function xte(e,t){const n=Bl(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=$te(a[s]);bte(e,s,o)}}function wte(e){return!!(vr(e)&&e.add)}function k1(e,t){const n=e.getValue("willChange");if(wte(n))return n.add(t);if(!n&&Ns.WillChange){const r=new Ns.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function dk(e){return e.props[tk]}const Cte=e=>e!==null;function Ete(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Cte),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Ste={type:"spring",stiffness:500,damping:25,restSpeed:10},Dte=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ate={type:"keyframes",duration:.8},Tte={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pte=(e,{keyframes:t})=>t.length>2?Ate:lc.has(e)?e.startsWith("scale")?Dte(t[1]):Ste:Tte;function _te({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const t$=(e,t,n,r={},i,a)=>s=>{const o=K3(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ya(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};_te(o)||Object.assign(h,Pte(e,h)),h.duration&&(h.duration=ya(h.duration)),h.repeatDelay&&(h.repeatDelay=ya(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(T1(h),h.delay===0&&(m=!0)),(Ns.instantAnimations||Ns.skipAnimations)&&(m=!0,T1(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!a&&t.get()!==void 0){const g=Ete(h.keyframes,o);if(g!==void 0){wn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new N3(h):new QQ(h)};function Mte({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&Mte(d,h))continue;const b={delay:n,...K3(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const E=dk(e);if(E){const C=window.MotionHandoffAnimation(E,h,wn);C!==null&&(b.startTime=C,x=!0)}}k1(e,h),m.start(t$(h,m,g,e.shouldReduceMotion&&O7.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return s&&Promise.all(l).then(()=>{wn.update(()=>{s&&xte(e,s)})}),l}function pk(e,t,n,r=0,i=1){const a=Array.from(e).sort((d,h)=>d.sortNodePosition(h)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function O1(e,t,n={}){var l;const r=Bl(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(hk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Fte(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function Fte(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),o.push(O1(l,t,{...s,delay:n+(typeof r=="function"?0:r)+pk(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}function Rte(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>O1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=O1(e,t,n);else{const i=typeof t=="function"?Bl(e,t,n.custom):t;r=Promise.all(hk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function mk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const kte=G3.length;function gk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?gk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kte;n++){const r=G3[n],i=e.props[r];(jf(i)||i===!1)&&(t[r]=i)}return t}const Ote=[...H3].reverse(),Ite=H3.length;function Lte(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Rte(e,n,r)))}function Bte(e){let t=Lte(e),n=TA(),r=!0;const i=l=>(d,h)=>{var g;const m=Bl(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(l){t=l(e)}function s(l){const{props:d}=e,h=gk(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<Ite;A++){const E=Ote[A],C=n[E],S=d[E]!==void 0?d[E]:h[E],M=jf(S),_=E===l?C.isActive:null;_===!1&&(w=A);let R=S===h[E]&&S!==d[E]&&M;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&_===null||!S&&!C.prevProp||ym(S)||typeof S=="boolean")continue;const z=Vte(C.prevProp,S);let re=z||E===l&&C.isActive&&!R&&M||A>w&&M,ge=!1;const le=Array.isArray(S)?S:[S];let I=le.reduce(i(E),{});_===!1&&(I={});const{prevResolvedValues:Ce={}}=C,we={...Ce,...I},U=O=>{re=!0,g.has(O)&&(ge=!0,g.delete(O)),C.needsAnimating[O]=!0;const K=e.getValue(O);K&&(K.liveStyle=!1)};for(const O in we){const K=I[O],de=Ce[O];if(b.hasOwnProperty(O))continue;let k=!1;R1(K)&&R1(de)?k=!mk(K,de):k=K!==de,k?K!=null?U(O):g.add(O):K!==void 0&&g.has(O)?U(O):C.protectedKeys[O]=!0}C.prevProp=S,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(re=!1);const ee=R&&z;re&&(!ee||ge)&&m.push(...le.map(O=>{const K={type:E};if(typeof O=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:de}=e,k=Bl(de,O);if(de.enteringChildren&&k){const{delayChildren:se}=k.transition||{};K.delay=pk(de.enteringChildren,e,se)}}return{animation:O,options:K}}))}if(g.size){const A={};if(typeof d.initial!="boolean"){const E=Bl(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(A.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),S=e.getValue(E);S&&(S.liveStyle=!0),A[E]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=s(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=TA(),r=!0}}}function Vte(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mk(t,e):!1}function Qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TA(){return{animate:Qo(!0),whileInView:Qo(),whileHover:Qo(),whileTap:Qo(),whileDrag:Qo(),whileFocus:Qo(),exit:Qo()}}let So=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Nte=class extends So{constructor(t){super(t),t.animationState||(t.animationState=Bte(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ym(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},jte=0,Kte=class extends So{constructor(){super(...arguments),this.id=jte++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Ute={animation:{Feature:Nte},exit:{Feature:Kte}};function Uf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function md(e){return{point:{x:e.pageX,y:e.pageY}}}const qte=e=>t=>z3(t)&&e(t,md(t));function Ef(e,t,n,r){return Uf(e,t,qte(n),r)}const vk=1e-4,zte=1-vk,Wte=1+vk,yk=.01,Hte=0-yk,Gte=0+yk;function Br(e){return e.max-e.min}function Yte(e,t,n){return Math.abs(e-t)<=n}function PA(e,t,n,r=.5){e.origin=r,e.originPoint=An(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=An(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zte&&e.scale<=Wte||isNaN(e.scale))&&(e.scale=1),(e.translate>=Hte&&e.translate<=Gte||isNaN(e.translate))&&(e.translate=0)}function Sf(e,t,n,r){PA(e.x,t.x,n.x,r?r.originX:void 0),PA(e.y,t.y,n.y,r?r.originY:void 0)}function _A(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function Zte(e,t,n){_A(e.x,t.x,n.x),_A(e.y,t.y,n.y)}function MA(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function Df(e,t,n){MA(e.x,t.x,n.x),MA(e.y,t.y,n.y)}function Vi(e){return[e("x"),e("y")]}const bk=({current:e})=>e?e.ownerDocument.defaultView:null,FA=(e,t)=>Math.abs(e-t);function Xte(e,t){const n=FA(e.x,t.x),r=FA(e.y,t.y);return Math.sqrt(n**2+r**2)}class $k{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=U0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=Xte(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:A}=gr;this.history.push({...x,timestamp:A});const{onStart:E,onMove:C}=this.handlers;b||(E&&E(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=K0(b,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=U0(g.type==="pointercancel"?this.lastMoveEventInfo:K0(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,E),x&&x(g,E)},!z3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=md(t),l=K0(o,this.transformPagePoint),{point:d}=l,{timestamp:h}=gr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,U0(l,this.history)),this.removeListeners=dd(Ef(this.contextWindow,"pointermove",this.handlePointerMove),Ef(this.contextWindow,"pointerup",this.handlePointerUp),Ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),js(this.updatePoint)}}function K0(e,t){return t?{point:t(e.point)}:e}function RA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function U0({point:e},t){return{point:e,delta:RA(e,xk(t)),offset:RA(e,Jte(t)),velocity:Qte(t,.1)}}function Jte(e){return e[0]}function xk(e){return e[e.length-1]}function Qte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=xk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ya(t)));)n--;if(!r)return{x:0,y:0};const a=Za(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ene(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?An(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?An(n,e,r.max):Math.min(e,n)),e}function kA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tne(e,{top:t,left:n,bottom:r,right:i}){return{x:kA(e.x,n,i),y:kA(e.y,t,r)}}function OA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nne(e,t){return{x:OA(e.x,t.x),y:OA(e.y,t.y)}}function rne(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Bf(t.min,t.max-r,e.min):r>i&&(n=Bf(e.min,e.max-i,t.min)),Vs(0,1,n)}function ine(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const I1=.35;function ane(e=I1){return e===!1?e=0:e===!0&&(e=I1),{x:IA(e,"left","right"),y:IA(e,"top","bottom")}}function IA(e,t,n){return{min:LA(e,t),max:LA(e,n)}}function LA(e,t){return typeof e=="number"?e:e[t]||0}const sne=new WeakMap;class one{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(md(m).point)},s=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vee(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(E=>{let C=this.getAxisMotionValue(E).get()||0;if(Xa.test(C)){const{projection:S}=this.visualElement;if(S&&S.layout){const M=S.layout.layoutBox[E];M&&(C=Br(M)*(parseFloat(C)/100))}}this.originPoint[E]=C}),x&&wn.postRender(()=>x(m,g)),k1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},o=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:E}=g;if(w&&this.currentDirection===null){this.currentDirection=une(E),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,E),this.updateAxis("y",g.point,E),this.visualElement.render(),A&&A(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Vi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new $k(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:bk(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&wn.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!vh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=ene(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&Cl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=tne(r.layoutBox,t):this.constraints=!1,this.elastic=ane(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ine(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cl(t))return!1;const r=t.current;xa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=lte(r,i.root,this.visualElement.getTransformPagePoint());let s=nne(i.layout.layoutBox,a);if(n){const o=n(ste(s));this.hasMutatedConstraints=!!o,o&&(s=ik(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},d=Vi(h=>{if(!vh(h,n,this.currentDirection))return;let m=l&&l[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return k1(this.visualElement,t),r.start(t$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!vh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-An(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();i[s]=rne({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(s=>{if(!vh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];o.set(An(l,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;sne.set(this.visualElement,this);const t=this.visualElement.current,n=Ef(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Cl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wn.read(r);const s=Uf(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=I1,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function vh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function une(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lne extends So{constructor(t){super(t),this.removeGroupControls=Yi,this.removeListeners=Yi,this.controls=new one(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yi}unmount(){this.removeGroupControls(),this.removeListeners()}}const BA=e=>(t,n)=>{e&&wn.postRender(()=>e(t,n))};class cne extends So{constructor(){super(...arguments),this.removePointerDownListener=Yi}onPointerDown(t){this.session=new $k(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:BA(t),onStart:BA(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&wn.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ef(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function VA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=VA(e,t.target.x),r=VA(e,t.target.y);return`${n}% ${r}%`}},fne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$o.parse(e);if(i.length>5)return r;const a=$o.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=l;const d=An(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};let q0=!1;class dne extends L.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;kee(hne),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),q0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,q0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||wn.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),q3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;q0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wk(e){const[t,n]=Aee(),r=L.useContext(QR);return Qa.jsx(dne,{...e,layoutGroup:r,switchLayoutGroup:L.useContext(nk),isPresent:t,safeToRemove:n})}const hne={borderRadius:{...Qc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qc,borderTopRightRadius:Qc,borderBottomLeftRadius:Qc,borderBottomRightRadius:Qc,boxShadow:fne};function pne(e,t,n){const r=vr(e)?e:Eu(e);return r.start(t$("",r,t,n)),r.animation}const mne=(e,t)=>e.depth-t.depth;class gne{constructor(){this.children=[],this.isDirty=!1}add(t){S3(this.children,t),this.isDirty=!0}remove(t){D3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mne),this.isDirty=!1,this.children.forEach(t)}}function vne(e,t){const n=ri.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(js(r),e(a-t))};return wn.setup(r,!0),()=>js(r)}const Ck=["TopLeft","TopRight","BottomLeft","BottomRight"],yne=Ck.length,NA=e=>typeof e=="string"?parseFloat(e):e,jA=e=>typeof e=="number"||Dt.test(e);function bne(e,t,n,r,i,a){i?(e.opacity=An(0,n.opacity??1,$ne(r)),e.opacityExit=An(t.opacity??1,0,xne(r))):a&&(e.opacity=An(t.opacity??1,n.opacity??1,r));for(let s=0;s<yne;s++){const o=`border${Ck[s]}Radius`;let l=KA(t,o),d=KA(n,o);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||jA(l)===jA(d)?(e[o]=Math.max(An(NA(l),NA(d),r),0),(Xa.test(d)||Xa.test(l))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=An(t.rotate||0,n.rotate||0,r))}function KA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $ne=Ek(0,.5,f7),xne=Ek(.5,.95,Yi);function Ek(e,t,n){return r=>r<e?0:r>t?1:n(Bf(e,t,r))}function UA(e,t){e.min=t.min,e.max=t.max}function Ii(e,t){UA(e.x,t.x),UA(e.y,t.y)}function qA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zA(e,t,n,r,i){return e-=t,e=$p(e,1/n,r),i!==void 0&&(e=$p(e,1/i,r)),e}function wne(e,t=0,n=1,r=.5,i,a=e,s=e){if(Xa.test(t)&&(t=parseFloat(t),t=An(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=An(a.min,a.max,r);e===a&&(o-=t),e.min=zA(e.min,t,n,o,i),e.max=zA(e.max,t,n,o,i)}function WA(e,t,[n,r,i],a,s){wne(e,t[n],t[r],t[i],t.scale,a,s)}const Cne=["x","scaleX","originX"],Ene=["y","scaleY","originY"];function HA(e,t,n,r){WA(e.x,t,Cne,n?n.x:void 0,r?r.x:void 0),WA(e.y,t,Ene,n?n.y:void 0,r?r.y:void 0)}function GA(e){return e.translate===0&&e.scale===1}function Sk(e){return GA(e.x)&&GA(e.y)}function YA(e,t){return e.min===t.min&&e.max===t.max}function Sne(e,t){return YA(e.x,t.x)&&YA(e.y,t.y)}function ZA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dk(e,t){return ZA(e.x,t.x)&&ZA(e.y,t.y)}function XA(e){return Br(e.x)/Br(e.y)}function JA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dne{constructor(){this.members=[]}add(t){S3(this.members,t),t.scheduleRender()}remove(t){if(D3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ane(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),w&&(r+=`skewY(${w}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const z0=["","X","Y","Z"],Tne=1e3;let Pne=0;function W0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ak(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=dk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ak(r)}function Tk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=Pne++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Fne),this.nodes.forEach(Ine),this.nodes.forEach(Lne),this.nodes.forEach(Rne)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new gne)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new T3),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=q7(s)&&!Cee(s),this.instance=s;const{layoutId:o,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=vne(g,250),Bh.hasAnimatedSinceResize&&(Bh.hasAnimatedSinceResize=!1,this.nodes.forEach(tT)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||Kne,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=d.getProps(),E=!this.targetLayout||!Dk(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...K3(w,"layout"),onPlay:x,onComplete:A};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,C)}else m||tT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),js(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(Bne),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ak(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(QA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(One),this.nodes.forEach(_ne),this.nodes.forEach(Mne)):this.nodes.forEach(eT),this.clearAllSnapshots();const o=ri.now();gr.delta=Vs(0,1e3/60,o-gr.timestamp),gr.timestamp=o,gr.isProcessing=!0,k0.update.process(gr),k0.preRender.process(gr),k0.render.process(gr),gr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,q3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kne),this.sharedNodes.forEach(Vne)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Br(this.snapshot.measuredBox.x)&&!Br(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Sk(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&this.instance&&(o||tu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),Une(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Wn();const o=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(qne))){const{scroll:h}=this.root;h&&(El(o.x,h.offset.x),El(o.y,h.offset.y))}return o}removeElementScroll(s){var l;const o=Wn();if(Ii(o,s),(l=this.scroll)!=null&&l.wasRoot)return o;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Ii(o,s),El(o.x,m.offset.x),El(o.y,m.offset.y))}return o}applyTransform(s,o=!1){const l=Wn();Ii(l,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Sl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),tu(h.latestValues)&&Sl(l,h.latestValues)}return tu(this.latestValues)&&Sl(l,this.latestValues),l}removeTransform(s){const o=Wn();Ii(o,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!tu(d.latestValues))continue;_1(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Ii(h,m),HA(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return tu(this.latestValues)&&HA(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==gr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var g;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=gr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zte(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ii(this.target,this.layout.layoutBox),sk(this.target,this.targetDelta)):Ii(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.target,b.target),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||_1(this.parent.latestValues)||ak(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 w;const s=this.getLead(),o=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===gr.timestamp&&(l=!1),l)return;const{layout:d,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||!(d||h))return;Ii(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;ute(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Wn());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qA(this.prevProjectionDelta.x,this.projectionDelta.x),qA(this.prevProjectionDelta.y,this.projectionDelta.y)),Sf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!JA(this.projectionDelta.x,this.prevProjectionDelta.x)||!JA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Dl(),this.projectionDelta=Dl(),this.projectionDeltaWithTransform=Dl()}setAnimationOrigin(s,o=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Dl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Wn(),b=l?l.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,A=this.getStack(),E=!A||A.members.length<=1,C=!!(x&&!E&&this.options.crossfade===!0&&!this.path.some(jne));this.animationProgress=0;let S;this.mixTargetDelta=M=>{const _=M/1e3;nT(m.x,s.x,_),nT(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Nne(this.relativeTarget,this.relativeTargetOrigin,g,_),S&&Sne(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wn()),Ii(S,this.relativeTarget)),x&&(this.animationValues=h,bne(h,d,this.latestValues,_,C,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var o,l,d;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Bh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Eu(0)),this.currentAnimation=pne(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tne),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:d,latestValues:h}=s;if(!(!o||!l||!d)){if(this!==s&&this.layout&&d&&Pk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Wn();const m=Br(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+m;const g=Br(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+g}Ii(o,l),Sl(o,h),Sf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Dne),this.sharedNodes.get(s).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const d={};l.z&&W0("z",s,d,this.animationValues);for(let h=0;h<z0.length;h++)W0(`rotate${z0[h]}`,s,d,this.animationValues),W0(`skew${z0[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Lh(o==null?void 0:o.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Lh(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!tu(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Ane(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),s.transform=m;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in Kf){if(h[w]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:E}=Kf[w],C=m==="none"?h[w]:x(h[w],d);if(A){const S=A.length;for(let M=0;M<S;M++)s[A[M]]=C}else E?this.options.visualElement.renderState.vars[w]=C:s[w]=C}this.options.layoutId&&(s.pointerEvents=d===this?Lh(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(QA),this.root.sharedNodes.clear()}}}function _ne(e){e.updateLayout()}function Mne(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Br(g);g.min=r[m].min,g.max=g.min+b}):Pk(a,t.layoutBox,r)&&Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Br(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const o=Dl();Sf(o,r,t.layoutBox);const l=Dl();s?Sf(l,e.applyTransform(i,!0),t.measuredBox):Sf(l,r,t.layoutBox);const d=!Sk(o);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Wn();Df(w,t.layoutBox,g.layoutBox);const x=Wn();Df(x,r,b.layoutBox),Dk(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Fne(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Rne(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kne(e){e.clearSnapshot()}function QA(e){e.clearMeasurements()}function eT(e){e.isLayoutDirty=!1}function One(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ine(e){e.resolveTargetDelta()}function Lne(e){e.calcProjection()}function Bne(e){e.resetSkewAndRotation()}function Vne(e){e.removeLeadSnapshot()}function nT(e,t,n){e.translate=An(t.translate,0,n),e.scale=An(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rT(e,t,n,r){e.min=An(t.min,n.min,r),e.max=An(t.max,n.max,r)}function Nne(e,t,n,r){rT(e.x,t.x,n.x,r),rT(e.y,t.y,n.y,r)}function jne(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Kne={duration:.45,ease:[.4,0,.1,1]},iT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aT=iT("applewebkit/")&&!iT("chrome/")?Math.round:Yi;function sT(e){e.min=aT(e.min),e.max=aT(e.max)}function Une(e){sT(e.x),sT(e.y)}function Pk(e,t,n){return e==="position"||e==="preserve-aspect"&&!Yte(XA(t),XA(n),.2)}function qne(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const zne=Tk({attachResizeListener:(e,t)=>Uf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),H0={current:void 0},_k=Tk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!H0.current){const e=new zne({});e.mount(window),e.setOptions({layoutScroll:!0}),H0.current=e}return H0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Wne={pan:{Feature:cne},drag:{Feature:lne,ProjectionNode:_k,MeasureLayout:wk}};function oT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&wn.postRender(()=>a(t,md(t)))}let Hne=class extends So{mount(){const{current:t}=this.node;t&&(this.unmount=yee(t,(n,r)=>(oT(this.node,r,"Start"),i=>oT(this.node,i,"End"))))}unmount(){}},Gne=class extends So{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=dd(Uf(this.node.current,"focus",()=>this.onFocus()),Uf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function uT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wn.postRender(()=>a(t,md(t)))}let Yne=class extends So{mount(){const{current:t}=this.node;t&&(this.unmount=wee(t,(n,r)=>(uT(this.node,r,"Start"),(i,{success:a})=>uT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const L1=new WeakMap,G0=new WeakMap,Zne=e=>{const t=L1.get(e.target);t&&t(e)},Xne=e=>{e.forEach(Zne)};function Jne({root:e,...t}){const n=e||document;G0.has(n)||G0.set(n,{});const r=G0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Xne,{root:e,...t})),r[i]}function Qne(e,t,n){const r=Jne(t);return L1.set(e,n),r.observe(e),()=>{L1.delete(e),r.unobserve(e)}}const ere={some:0,all:1};let tre=class extends So{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:ere[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Qne(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nre(t,n))&&this.startObserver()}unmount(){}};function nre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rre={inView:{Feature:tre},tap:{Feature:Yne},focus:{Feature:Gne},hover:{Feature:Hne}},ire={layout:{ProjectionNode:_k,MeasureLayout:wk}},are={...Ute,...rre,...Wne,...ire},Mk=ate(are,yte);function Fk(e){const t=fd(()=>Eu(e)),{isStatic:n}=L.useContext(W3);if(n){const[,r]=L.useState(e);L.useEffect(()=>t.on("change",r),[])}return t}function Rk(e,t){const n=Fk(t()),r=()=>n.set(t());return r(),e7(()=>{const i=()=>wn.preRender(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),js(r)}}),n}function sre(e){Cf.current=[],e();const t=Rk(Cf.current,e);return Cf.current=void 0,t}function ore(e,t,n,r){if(typeof e=="function")return sre(e);const i=typeof t=="function"?t:Eee(t,n,r);return Array.isArray(e)?lT(e,i):lT([e],([a])=>i(a))}function lT(e,t){const n=fd(()=>[]);return Rk(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const kk=L.createContext(null);function ure(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,s=e[i+a];if(!s)return e;const o=e[i],l=s.layout,d=An(l.min,l.max,.5);return a===1&&o.layout.max+n>d||a===-1&&o.layout.min+n<d?PJ(e,i,i+a):e}function lre({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},s){const o=fd(()=>Mk[t]),l=[],d=L.useRef(!1);xa(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex(w=>m===w.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(dre)},updateOrder:(m,g,b)=>{if(d.current)return;const w=ure(l,m,g,b);l!==w&&(d.current=!0,r(w.map(fre).filter(x=>i.indexOf(x)!==-1)))}};return L.useEffect(()=>{d.current=!1}),Qa.jsx(o,{...a,ref:s,ignoreStrict:!0,children:Qa.jsx(kk.Provider,{value:h,children:e})})}const cre=L.forwardRef(lre);function fre(e){return e.value}function dre(e,t){return e.layout.min-t.layout.min}function cT(e,t=0){return vr(e)?e:Fk(t)}function hre({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...s},o){const l=fd(()=>Mk[r]),d=L.useContext(kk),h={x:cT(t.x),y:cT(t.y)},m=ore([h.x,h.y],([x,A])=>x||A?1:"unset");xa(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return Qa.jsx(l,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:E}=A;E[g]&&w(n,h[g].get(),E[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:o,ignoreStrict:!0,children:e})}const pre=L.forwardRef(hre);var Vh={exports:{}},mre=Vh.exports,fT;function gre(){return fT||(fT=1,function(e,t){(function(n,r){e.exports=r()})(mre,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,o=s.format;a.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,w,x){var A=x&&x.toUpperCase();return w||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,C,S){return C||S.slice(1)})})}(l,d===void 0?{}:d);return o.call(this,h)}}})}(Vh)),Vh.exports}var vre=gre();const yre=yr(vre),dT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Ok=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>dT(i,n,e))}},bre=(e,t)=>{t.shouldUseNativeValidation&&Ok(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if($re(t.names||Object.keys(e),r)){const s=Object.assign({},it(n,r));nn(s,"root",a),nn(n,r,s)}else nn(n,r,a)}return n},$re=(e,t)=>{const n=hT(t);return e.some(r=>hT(r).match(`^${n}\\.\\d+`))};function hT(e){return e.replace(/\]|\[/g,"")}function xre(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(s,o){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return a.shouldUseNativeValidation&&Ok({},a),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return o(d)}return l&&l.then?l.then(void 0,o):l}(0,function(s){if(!s.inner)throw s;return{values:{},errors:bre((o=s,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(o.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=v5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),a)};var o,l}))}catch(s){return Promise.reject(s)}}}var gf={exports:{}},wre=gf.exports,pT;function Cre(){return pT||(pT=1,function(e,t){(function(n,r){r(t,ce.default)})(wre,function(n,r){function i(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof qi<"u"?qi:typeof self<"u"?self:{},o={exports:{}};(function(U,ee){typeof document<"u"&&typeof navigator<"u"&&function(N,O){U.exports=O()}(s,function(){var N="http://www.w3.org/2000/svg",O="",K=!1,de=-999999,k=function(p){K=!!p},se=function(){return K},oe=function(p){O=p},Te=function(){return O};function Me(c){return document.createElement(c)}function Le(c,p){var v,$=c.length,T;for(v=0;v<$;v+=1){T=c[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Ye(c){function p(){}return p.prototype=c,p}var Qe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ue=function(){function c(v,$){var T=0,P=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(T=0;T<$;T+=1)P.push(q);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):c(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ge(c){return Array.apply(null,{length:c})}var Ie=!0,Ne=null,Ae="",He=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,$t=Math.floor,_t=Math.min,qr=150,Qt=Math.PI/180,be=.5519;function De(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function _e(c,p){this.type=c,this.direction=p<0?-1:1}function Xe(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Rt(c){this.type="configError",this.nativeError=c}var xt=function(){var c=0;return function(){return c+=1,Ae+"__lottie_element_"+c}}();function vn(c,p,v){var $,T,P,q,me,J,$e,Ee;switch(q=Math.floor(c*6),me=c*6-q,J=v*(1-p),$e=v*(1-me*p),Ee=v*(1-(1-me)*p),q%6){case 0:$=v,T=Ee,P=J;break;case 1:$=$e,T=v,P=J;break;case 2:$=J,T=v,P=Ee;break;case 3:$=J,T=$e,P=v;break;case 4:$=Ee,T=J,P=v;break;case 5:$=v,T=J,P=$e;break}return[$,T,P]}function br(c,p,v){var $=Math.max(c,p,v),T=Math.min(c,p,v),P=$-T,q,me=$===0?0:P/$,J=$/255;switch($){case T:q=0;break;case c:q=p-v+P*(p<v?6:0),q/=6*P;break;case p:q=v-c+P*2,q/=6*P;break;case v:q=c-p+P*4,q/=6*P;break}return[q,me,J]}function Ut(c,p){var v=br(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),vn(v[0],v[1],v[2])}function Pt(c,p){var v=br(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),vn(v[0],v[1],v[2])}function It(c,p){var v=br(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),vn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+c[$]+c[T]+c[P]}})();var qt=function(p){Ie=!!p},fr=function(){return Ie},zr=function(p){Ne=p},si=function(){return Ne},Pr=function(p){qr=p},Da=function(){return qr},Do=function(p){Ae=p};function bt(c){return document.createElementNS(N,c)}function oi(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(v){return typeof v}:oi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},oi(c)}var is=function(){var c=1,p=[],v,$,T={onmessage:function(){},postMessage:function(Q){v({data:Q})}},P={postMessage:function(Q){T.onmessage({data:Q})}};function q(F){if(window.Worker&&window.Blob&&se()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",F.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=F,T}function me(){$||($=q(function(Q){function G(){function fe(Be,xe){var ue,X,ve=Be.length,je,ke,lt,At;for(X=0;X<ve;X+=1)if(ue=Be[X],"ks"in ue&&!ue.completed){if(ue.completed=!0,ue.hasMask){var Ct=ue.masksProperties;for(ke=Ct.length,je=0;je<ke;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}ue.ty===0?(ue.layers=B(ue.refId,xe),fe(ue.layers,xe)):ue.ty===4?j(ue.shapes):ue.ty===5&&ot(ue)}}function W(Be,xe){if(Be){var ue=0,X=Be.length;for(ue=0;ue<X;ue+=1)Be[ue].t===1&&(Be[ue].data.layers=B(Be[ue].data.refId,xe),fe(Be[ue].data.layers,xe))}}function Y(Be,xe){for(var ue=0,X=xe.length;ue<X;){if(xe[ue].id===Be)return xe[ue];ue+=1}return null}function B(Be,xe){var ue=Y(Be,xe);return ue?ue.layers.__used?JSON.parse(JSON.stringify(ue.layers)):(ue.layers.__used=!0,ue.layers):null}function j(Be){var xe,ue=Be.length,X,ve;for(xe=ue-1;xe>=0;xe-=1)if(Be[xe].ty==="sh")if(Be[xe].ks.k.i)H(Be[xe].ks.k);else for(ve=Be[xe].ks.k.length,X=0;X<ve;X+=1)Be[xe].ks.k[X].s&&H(Be[xe].ks.k[X].s[0]),Be[xe].ks.k[X].e&&H(Be[xe].ks.k[X].e[0]);else Be[xe].ty==="gr"&&j(Be[xe].it)}function H(Be){var xe,ue=Be.i.length;for(xe=0;xe<ue;xe+=1)Be.i[xe][0]+=Be.v[xe][0],Be.i[xe][1]+=Be.v[xe][1],Be.o[xe][0]+=Be.v[xe][0],Be.o[xe][1]+=Be.v[xe][1]}function te(Be,xe){var ue=xe?xe.split("."):[100,100,100];return Be[0]>ue[0]?!0:ue[0]>Be[0]?!1:Be[1]>ue[1]?!0:ue[1]>Be[1]?!1:Be[2]>ue[2]?!0:ue[2]>Be[2]?!1:null}var ae=function(){var Be=[4,4,14];function xe(X){var ve=X.t.d;X.t.d={k:[{s:ve,t:0}]}}function ue(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(te(Be,X.v)&&(ue(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&ue(X.assets[ve].layers)}}}(),pe=function(){var Be=[4,7,99];return function(xe){if(xe.chars&&!te(Be,xe.v)){var ue,X=xe.chars.length;for(ue=0;ue<X;ue+=1){var ve=xe.chars[ue];ve.data&&ve.data.shapes&&(j(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xe.chars[ue].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Be=[5,7,15];function xe(X){var ve=X.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function ue(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(te(Be,X.v)&&(ue(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&ue(X.assets[ve].layers)}}}(),nt=function(){var Be=[4,1,9];function xe(X){var ve,je=X.length,ke,lt;for(ve=0;ve<je;ve+=1)if(X[ve].ty==="gr")xe(X[ve].it);else if(X[ve].ty==="fl"||X[ve].ty==="st")if(X[ve].c.k&&X[ve].c.k[0].i)for(lt=X[ve].c.k.length,ke=0;ke<lt;ke+=1)X[ve].c.k[ke].s&&(X[ve].c.k[ke].s[0]/=255,X[ve].c.k[ke].s[1]/=255,X[ve].c.k[ke].s[2]/=255,X[ve].c.k[ke].s[3]/=255),X[ve].c.k[ke].e&&(X[ve].c.k[ke].e[0]/=255,X[ve].c.k[ke].e[1]/=255,X[ve].c.k[ke].e[2]/=255,X[ve].c.k[ke].e[3]/=255);else X[ve].c.k[0]/=255,X[ve].c.k[1]/=255,X[ve].c.k[2]/=255,X[ve].c.k[3]/=255}function ue(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===4&&xe(X[ve].shapes)}return function(X){if(te(Be,X.v)&&(ue(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&ue(X.assets[ve].layers)}}}(),tt=function(){var Be=[4,4,18];function xe(X){var ve,je=X.length,ke,lt;for(ve=je-1;ve>=0;ve-=1)if(X[ve].ty==="sh")if(X[ve].ks.k.i)X[ve].ks.k.c=X[ve].closed;else for(lt=X[ve].ks.k.length,ke=0;ke<lt;ke+=1)X[ve].ks.k[ke].s&&(X[ve].ks.k[ke].s[0].c=X[ve].closed),X[ve].ks.k[ke].e&&(X[ve].ks.k[ke].e[0].c=X[ve].closed);else X[ve].ty==="gr"&&xe(X[ve].it)}function ue(X){var ve,je,ke=X.length,lt,At,Ct,bn;for(je=0;je<ke;je+=1){if(ve=X[je],ve.hasMask){var zt=ve.masksProperties;for(At=zt.length,lt=0;lt<At;lt+=1)if(zt[lt].pt.k.i)zt[lt].pt.k.c=zt[lt].cl;else for(bn=zt[lt].pt.k.length,Ct=0;Ct<bn;Ct+=1)zt[lt].pt.k[Ct].s&&(zt[lt].pt.k[Ct].s[0].c=zt[lt].cl),zt[lt].pt.k[Ct].e&&(zt[lt].pt.k[Ct].e[0].c=zt[lt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(X){if(te(Be,X.v)&&(ue(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&ue(X.assets[ve].layers)}}}();function Ve(Be){Be.__complete||(nt(Be),ae(Be),pe(Be),Oe(Be),tt(Be),fe(Be.layers,Be.assets),W(Be.chars,Be.assets),Be.__complete=!0)}function ot(Be){Be.t.a.length===0&&"m"in Be.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=fe,ct}if(P.dataManager||(P.dataManager=G()),P.assetLoader||(P.assetLoader=function(){function fe(Y){var B=Y.getResponseHeader("content-type");return B&&Y.responseType==="json"&&B.indexOf("json")!==-1||Y.response&&oi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,B,j,H){var te,ae=new XMLHttpRequest;try{ae.responseType="json"}catch{}ae.onreadystatechange=function(){if(ae.readyState===4)if(ae.status===200)te=fe(ae),j(te);else try{te=fe(ae),j(te)}catch(pe){H&&H(pe)}};try{ae.open(["G","E","T"].join(""),Y,!0)}catch{ae.open(["G","E","T"].join(""),B+"/"+Y,!0)}ae.send()}return{load:W}}()),Q.data.type==="loadAnimation")P.assetLoader.load(Q.data.path,Q.data.fullPath,function(fe){P.dataManager.completeData(fe),P.postMessage({id:Q.data.id,payload:fe,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;P.dataManager.completeData(he),P.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&P.assetLoader.load(Q.data.path,Q.data.fullPath,function(fe){P.postMessage({id:Q.data.id,payload:fe,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})})}),$.onmessage=function(F){var Q=F.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(F,Q){c+=1;var G="processId_"+c;return p[G]={onComplete:F,onError:Q},G}function $e(F,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:he})}function Ee(F,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:he})}function Re(F,Q,G){me();var he=J(Q,G);$.postMessage({type:"complete",animation:F,id:he})}return{loadAnimation:$e,loadData:Ee,completeAnimation:Re}}(),bc=function(){var c=function(){var W=Me("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Y,B){var j="";if(W.e)j=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Y+H}else j=B,j+=W.u?W.u:"",j+=W.p;return j}function T(W){var Y=0,B=setInterval((function(){var j=W.getBBox();(j.width||Y>500)&&(this._imageLoaded(),clearInterval(B)),Y+=1}).bind(this),50)}function P(W){var Y=$(W,this.assetsPath,this.path),B=bt("image");He?this.testImageLoaded(B):B.addEventListener("load",this._imageLoaded,!1),B.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),B.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(B):this._elementHelper.appendChild(B);var j={img:B,assetData:W};return j}function q(W){var Y=$(W,this.assetsPath,this.path),B=Me("img");B.crossOrigin="anonymous",B.addEventListener("load",this._imageLoaded,!1),B.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),B.src=Y;var j={img:B,assetData:W};return j}function me(W){var Y={assetData:W},B=$(W,this.assetsPath,this.path);return is.loadData(B,(function(j){Y.img=j,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var B,j=W.length;for(B=0;B<j;B+=1)W[B].layers||(!W[B].t||W[B].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[B]))):W[B].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[B]))))}function $e(W){this.path=W||""}function Ee(W){this.assetsPath=W||""}function Re(W){for(var Y=0,B=this.images.length;Y<B;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function F(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function fe(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=me.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:J,setAssetsPath:Ee,setPath:$e,loadedImages:Q,loadedFootages:G,destroy:F,getAsset:Re,createImgData:q,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:he},fe}();function ku(){}ku.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var $c=function(){function c(p){for(var v=p.split(`\r
|
|
81
|
+
`),$={},T,P=0,q=0;q<v.length;q+=1)T=v[q].split(":"),T.length===2&&($[T[0]]=T[1].trim(),P+=1);if(P===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var T=p[$],P={time:T.tm,duration:T.dr};try{P.payload=JSON.parse(p[$].cm)}catch{try{P.payload=c(p[$].cm)}catch{P.payload={name:p[$].cm}}}v.push(P)}return v}}(),Ou=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,T=this.compositions.length;$<T;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Ao={},Iu=function(p,v){Ao[p]=v};function Ji(c){return Ao[c]}function Qi(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(v){return typeof v}:Qi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Qi(c)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=xt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ou(),this.imagePreloader=new bc,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new De("drawnFrame",0,0,0)};Le([ku],yt),yt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=Ji(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),is.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){is.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&Qi(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},$=c.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var T=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";T==="false"?v.loop=!1:T==="true"?v.loop=!0:T!==""&&(v.loop=parseInt(T,10));var P=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=P!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,T=c.layers,P,q=T.length;for(P=0;P<q;P+=1)for(v=0;v<$;){if(p[v].id===T[P].id){p[v]=T[P];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for($=c.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,is.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=si();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,is.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=$c(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=si();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},yt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},yt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var T=this.getMarkerData(c);T&&this.goToAndStop(T.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var T=this.getMarkerData(c);T&&(T.duration?this.playSegments([T.time,T.time+T.duration],!0):this.goToAndStop(T.time,!0))}else this.goToAndStop($,p,v);this.play()}},yt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),Qi(c[0])==="object"){var v,$=c.length;for(v=0;v<$;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},yt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var $=this.renderer.getElementByPath(c);$.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new De(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Xe(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new _e(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new et(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Je(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new De(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Xe(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new _e(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new et(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new Rt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Cn=function(){var c={},p=[],v=0,$=0,T=0,P=!0,q=!1;function me(xe){for(var ue=0,X=xe.target;ue<$;)p[ue].animation===X&&(p.splice(ue,1),ue-=1,$-=1,X.isPaused||Re()),ue+=1}function J(xe,ue){if(!xe)return null;for(var X=0;X<$;){if(p[X].elem===xe&&p[X].elem!==null)return p[X].animation;X+=1}var ve=new yt;return F(ve,xe),ve.setData(xe,ue),ve}function $e(){var xe,ue=p.length,X=[];for(xe=0;xe<ue;xe+=1)X.push(p[xe].animation);return X}function Ee(){T+=1,nt()}function Re(){T-=1}function F(xe,ue){xe.addEventListener("destroy",me),xe.addEventListener("_active",Ee),xe.addEventListener("_idle",Re),p.push({elem:ue,animation:xe}),$+=1}function Q(xe){var ue=new yt;return F(ue,null),ue.setParams(xe),ue}function G(xe,ue){var X;for(X=0;X<$;X+=1)p[X].animation.setSpeed(xe,ue)}function he(xe,ue){var X;for(X=0;X<$;X+=1)p[X].animation.setDirection(xe,ue)}function fe(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.play(xe)}function W(xe){var ue=xe-v,X;for(X=0;X<$;X+=1)p[X].animation.advanceTime(ue);v=xe,T&&!q?window.requestAnimationFrame(W):P=!0}function Y(xe){v=xe,window.requestAnimationFrame(W)}function B(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.pause(xe)}function j(xe,ue,X){var ve;for(ve=0;ve<$;ve+=1)p[ve].animation.goToAndStop(xe,ue,X)}function H(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.stop(xe)}function te(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.togglePause(xe)}function ae(xe){var ue;for(ue=$-1;ue>=0;ue-=1)p[ue].animation.destroy(xe)}function pe(xe,ue,X){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,ke=ve.length;for(je=0;je<ke;je+=1)X&&ve[je].setAttribute("data-bm-type",X),J(ve[je],xe);if(ue&&ke===0){X||(X="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var At=Me("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",X),lt.appendChild(At),J(At,xe)}}function Oe(){var xe;for(xe=0;xe<$;xe+=1)p[xe].animation.resize()}function nt(){!q&&T&&P&&(window.requestAnimationFrame(Y),P=!1)}function tt(){q=!0}function Ve(){q=!1,nt()}function ot(xe,ue){var X;for(X=0;X<$;X+=1)p[X].animation.setVolume(xe,ue)}function ct(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.mute(xe)}function Be(xe){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.unmute(xe)}return c.registerAnimation=J,c.loadAnimation=Q,c.setSpeed=G,c.setDirection=he,c.play=fe,c.pause=B,c.stop=H,c.togglePause=te,c.searchAnimations=pe,c.resize=Oe,c.goToAndStop=j,c.destroy=ae,c.freeze=tt,c.unfreeze=Ve,c.setVolume=ot,c.mute=ct,c.unmute=Be,c.getRegisteredAnimations=$e,c}(),as=function(){var c={};c.getBezierEasing=v;var p={};function v(Y,B,j,H,te){var ae=te||("bez_"+Y+"_"+B+"_"+j+"_"+H).replace(/\./g,"p");if(p[ae])return p[ae];var pe=new W([Y,B,j,H]);return p[ae]=pe,pe}var $=4,T=.001,P=1e-7,q=10,me=11,J=1/(me-1),$e=typeof Float32Array=="function";function Ee(Y,B){return 1-3*B+3*Y}function Re(Y,B){return 3*B-6*Y}function F(Y){return 3*Y}function Q(Y,B,j){return((Ee(B,j)*Y+Re(B,j))*Y+F(B))*Y}function G(Y,B,j){return 3*Ee(B,j)*Y*Y+2*Re(B,j)*Y+F(B)}function he(Y,B,j,H,te){var ae,pe,Oe=0;do pe=B+(j-B)/2,ae=Q(pe,H,te)-Y,ae>0?j=pe:B=pe;while(Math.abs(ae)>P&&++Oe<q);return pe}function fe(Y,B,j,H){for(var te=0;te<$;++te){var ae=G(B,j,H);if(ae===0)return B;var pe=Q(B,j,H)-Y;B-=pe/ae}return B}function W(Y){this._p=Y,this._mSampleValues=$e?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(B){var j=this._p[0],H=this._p[1],te=this._p[2],ae=this._p[3];return this._precomputed||this._precompute(),j===H&&te===ae?B:B===0?0:B===1?1:Q(this._getTForX(B),H,ae)},_precompute:function(){var B=this._p[0],j=this._p[1],H=this._p[2],te=this._p[3];this._precomputed=!0,(B!==j||H!==te)&&this._calcSampleValues()},_calcSampleValues:function(){for(var B=this._p[0],j=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,B,j)},_getTForX:function(B){for(var j=this._p[0],H=this._p[2],te=this._mSampleValues,ae=0,pe=1,Oe=me-1;pe!==Oe&&te[pe]<=B;++pe)ae+=J;--pe;var nt=(B-te[pe])/(te[pe+1]-te[pe]),tt=ae+nt*J,Ve=G(tt,j,H);return Ve>=T?fe(B,tt,j,H):Ve===0?tt:he(B,ae,ae+J,j,H)}},c}(),Lu=function(){function c(p){return p.concat(Ge(p.length))}return{double:c}}(),$r=function(){return function(c,p,v){var $=0,T=c,P=Ge(T),q={newElement:me,release:J};function me(){var $e;return $?($-=1,$e=P[$]):$e=p(),$e}function J($e){$===T&&(P=Lu.double(P),T*=2),v&&v($e),P[$]=$e,$+=1}return q}}(),Bu=function(){function c(){return{addedLength:0,percents:Ue("float32",Da()),lengths:Ue("float32",Da())}}return $r(8,c)}(),Vu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,T=v.lengths.length;for($=0;$<T;$+=1)Bu.release(v.lengths[$]);v.lengths.length=0}return $r(8,c,p)}();function xc(){var c=Math;function p(F,Q,G,he,fe,W){var Y=F*he+Q*fe+G*W-fe*he-W*F-G*Q;return Y>-.001&&Y<.001}function v(F,Q,G,he,fe,W,Y,B,j){if(G===0&&W===0&&j===0)return p(F,Q,he,fe,Y,B);var H=c.sqrt(c.pow(he-F,2)+c.pow(fe-Q,2)+c.pow(W-G,2)),te=c.sqrt(c.pow(Y-F,2)+c.pow(B-Q,2)+c.pow(j-G,2)),ae=c.sqrt(c.pow(Y-he,2)+c.pow(B-fe,2)+c.pow(j-W,2)),pe;return H>te?H>ae?pe=H-te-ae:pe=ae-te-H:ae>te?pe=ae-te-H:pe=te-H-ae,pe>-1e-4&&pe<1e-4}var $=function(){return function(F,Q,G,he){var fe=Da(),W,Y,B,j,H,te=0,ae,pe=[],Oe=[],nt=Bu.newElement();for(B=G.length,W=0;W<fe;W+=1){for(H=W/(fe-1),ae=0,Y=0;Y<B;Y+=1)j=ht(1-H,3)*F[Y]+3*ht(1-H,2)*H*G[Y]+3*(1-H)*ht(H,2)*he[Y]+ht(H,3)*Q[Y],pe[Y]=j,Oe[Y]!==null&&(ae+=ht(pe[Y]-Oe[Y],2)),Oe[Y]=pe[Y];ae&&(ae=Ht(ae),te+=ae),nt.percents[W]=H,nt.lengths[W]=te}return nt.addedLength=te,nt}}();function T(F){var Q=Vu.newElement(),G=F.c,he=F.v,fe=F.o,W=F.i,Y,B=F._length,j=Q.lengths,H=0;for(Y=0;Y<B-1;Y+=1)j[Y]=$(he[Y],he[Y+1],fe[Y],W[Y+1]),H+=j[Y].addedLength;return G&&B&&(j[Y]=$(he[Y],he[0],fe[Y],W[0]),H+=j[Y].addedLength),Q.totalLength=H,Q}function P(F){this.segmentLength=0,this.points=new Array(F)}function q(F,Q){this.partialLength=F,this.point=Q}var me=function(){var F={};return function(Q,G,he,fe){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!F[W]){var Y=Da(),B,j,H,te,ae,pe=0,Oe,nt,tt=null;Q.length===2&&(Q[0]!==G[0]||Q[1]!==G[1])&&p(Q[0],Q[1],G[0],G[1],Q[0]+he[0],Q[1]+he[1])&&p(Q[0],Q[1],G[0],G[1],G[0]+fe[0],G[1]+fe[1])&&(Y=2);var Ve=new P(Y);for(H=he.length,B=0;B<Y;B+=1){for(nt=Ge(H),ae=B/(Y-1),Oe=0,j=0;j<H;j+=1)te=ht(1-ae,3)*Q[j]+3*ht(1-ae,2)*ae*(Q[j]+he[j])+3*(1-ae)*ht(ae,2)*(G[j]+fe[j])+ht(ae,3)*G[j],nt[j]=te,tt!==null&&(Oe+=ht(nt[j]-tt[j],2));Oe=Ht(Oe),pe+=Oe,Ve.points[B]=new q(Oe,nt),tt=nt}Ve.segmentLength=pe,F[W]=Ve}return F[W]}}();function J(F,Q){var G=Q.percents,he=Q.lengths,fe=G.length,W=$t((fe-1)*F),Y=F*Q.addedLength,B=0;if(W===fe-1||W===0||Y===he[W])return G[W];for(var j=he[W]>Y?-1:1,H=!0;H;)if(he[W]<=Y&&he[W+1]>Y?(B=(Y-he[W])/(he[W+1]-he[W]),H=!1):W+=j,W<0||W>=fe-1){if(W===fe-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*B}function $e(F,Q,G,he,fe,W){var Y=J(fe,W),B=1-Y,j=c.round((B*B*B*F[0]+(Y*B*B+B*Y*B+B*B*Y)*G[0]+(Y*Y*B+B*Y*Y+Y*B*Y)*he[0]+Y*Y*Y*Q[0])*1e3)/1e3,H=c.round((B*B*B*F[1]+(Y*B*B+B*Y*B+B*B*Y)*G[1]+(Y*Y*B+B*Y*Y+Y*B*Y)*he[1]+Y*Y*Y*Q[1])*1e3)/1e3;return[j,H]}var Ee=Ue("float32",8);function Re(F,Q,G,he,fe,W,Y){fe<0?fe=0:fe>1&&(fe=1);var B=J(fe,Y);W=W>1?1:W;var j=J(W,Y),H,te=F.length,ae=1-B,pe=1-j,Oe=ae*ae*ae,nt=B*ae*ae*3,tt=B*B*ae*3,Ve=B*B*B,ot=ae*ae*pe,ct=B*ae*pe+ae*B*pe+ae*ae*j,Be=B*B*pe+ae*B*j+B*ae*j,xe=B*B*j,ue=ae*pe*pe,X=B*pe*pe+ae*j*pe+ae*pe*j,ve=B*j*pe+ae*j*j+B*pe*j,je=B*j*j,ke=pe*pe*pe,lt=j*pe*pe+pe*j*pe+pe*pe*j,At=j*j*pe+pe*j*j+j*pe*j,Ct=j*j*j;for(H=0;H<te;H+=1)Ee[H*4]=c.round((Oe*F[H]+nt*G[H]+tt*he[H]+Ve*Q[H])*1e3)/1e3,Ee[H*4+1]=c.round((ot*F[H]+ct*G[H]+Be*he[H]+xe*Q[H])*1e3)/1e3,Ee[H*4+2]=c.round((ue*F[H]+X*G[H]+ve*he[H]+je*Q[H])*1e3)/1e3,Ee[H*4+3]=c.round((ke*F[H]+lt*G[H]+At*he[H]+Ct*Q[H])*1e3)/1e3;return Ee}return{getSegmentsLength:T,getNewSegment:Re,getPointInSegment:$e,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Wr=xc(),at=function(){var c=de,p=Math.abs;function v(fe,W){var Y=this.offsetTime,B;this.propType==="multidimensional"&&(B=Ue("float32",this.pv.length));for(var j=W.lastIndex,H=j,te=this.keyframes.length-1,ae=!0,pe,Oe,nt;ae;){if(pe=this.keyframes[H],Oe=this.keyframes[H+1],H===te-1&&fe>=Oe.t-Y){pe.h&&(pe=Oe),j=0;break}if(Oe.t-Y>fe){j=H;break}H<te-1?H+=1:(j=0,ae=!1)}nt=this.keyframesMetadata[H]||{};var tt,Ve,ot,ct,Be,xe,ue=Oe.t-Y,X=pe.t-Y,ve;if(pe.to){nt.bezierData||(nt.bezierData=Wr.buildBezierData(pe.s,Oe.s||pe.e,pe.to,pe.ti));var je=nt.bezierData;if(fe>=ue||fe<X){var ke=fe>=ue?je.points.length-1:0;for(Ve=je.points[ke].point.length,tt=0;tt<Ve;tt+=1)B[tt]=je.points[ke].point[tt]}else{nt.__fnct?xe=nt.__fnct:(xe=as.getBezierEasing(pe.o.x,pe.o.y,pe.i.x,pe.i.y,pe.n).get,nt.__fnct=xe),ot=xe((fe-X)/(ue-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<fe&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Be=W.lastFrame<fe&&W._lastKeyframeIndex===H?W._lastPoint:0,ae=!0,ct=je.points.length;ae;){if(Ct+=je.points[Be].partialLength,lt===0||ot===0||Be===je.points.length-1){for(Ve=je.points[Be].point.length,tt=0;tt<Ve;tt+=1)B[tt]=je.points[Be].point[tt];break}else if(lt>=Ct&<<Ct+je.points[Be+1].partialLength){for(At=(lt-Ct)/je.points[Be+1].partialLength,Ve=je.points[Be].point.length,tt=0;tt<Ve;tt+=1)B[tt]=je.points[Be].point[tt]+(je.points[Be+1].point[tt]-je.points[Be].point[tt])*At;break}Be<ct-1?Be+=1:ae=!1}W._lastPoint=Be,W._lastAddedLength=Ct-je.points[Be].partialLength,W._lastKeyframeIndex=H}}else{var bn,zt,ur,Yn,Ln;if(te=pe.s.length,ve=Oe.s||pe.e,this.sh&&pe.h!==1)if(fe>=ue)B[0]=ve[0],B[1]=ve[1],B[2]=ve[2];else if(fe<=X)B[0]=pe.s[0],B[1]=pe.s[1],B[2]=pe.s[2];else{var Nn=P(pe.s),jn=P(ve),pr=(fe-X)/(ue-X);T(B,$(Nn,jn,pr))}else for(H=0;H<te;H+=1)pe.h!==1&&(fe>=ue?ot=1:fe<X?ot=0:(pe.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?xe=nt.__fnct[H]:(bn=pe.o.x[H]===void 0?pe.o.x[0]:pe.o.x[H],zt=pe.o.y[H]===void 0?pe.o.y[0]:pe.o.y[H],ur=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Yn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],xe=as.getBezierEasing(bn,zt,ur,Yn).get,nt.__fnct[H]=xe)):nt.__fnct?xe=nt.__fnct:(bn=pe.o.x,zt=pe.o.y,ur=pe.i.x,Yn=pe.i.y,xe=as.getBezierEasing(bn,zt,ur,Yn).get,pe.keyframeMetadata=xe),ot=xe((fe-X)/(ue-X)))),ve=Oe.s||pe.e,Ln=pe.h===1?pe.s[H]:pe.s[H]+(ve[H]-pe.s[H])*ot,this.propType==="multidimensional"?B[H]=Ln:B=Ln}return W.lastIndex=j,B}function $(fe,W,Y){var B=[],j=fe[0],H=fe[1],te=fe[2],ae=fe[3],pe=W[0],Oe=W[1],nt=W[2],tt=W[3],Ve,ot,ct,Be,xe;return ot=j*pe+H*Oe+te*nt+ae*tt,ot<0&&(ot=-ot,pe=-pe,Oe=-Oe,nt=-nt,tt=-tt),1-ot>1e-6?(Ve=Math.acos(ot),ct=Math.sin(Ve),Be=Math.sin((1-Y)*Ve)/ct,xe=Math.sin(Y*Ve)/ct):(Be=1-Y,xe=Y),B[0]=Be*j+xe*pe,B[1]=Be*H+xe*Oe,B[2]=Be*te+xe*nt,B[3]=Be*ae+xe*tt,B}function T(fe,W){var Y=W[0],B=W[1],j=W[2],H=W[3],te=Math.atan2(2*B*H-2*Y*j,1-2*B*B-2*j*j),ae=Math.asin(2*Y*B+2*j*H),pe=Math.atan2(2*Y*H-2*B*j,1-2*Y*Y-2*j*j);fe[0]=te/Qt,fe[1]=ae/Qt,fe[2]=pe/Qt}function P(fe){var W=fe[0]*Qt,Y=fe[1]*Qt,B=fe[2]*Qt,j=Math.cos(W/2),H=Math.cos(Y/2),te=Math.cos(B/2),ae=Math.sin(W/2),pe=Math.sin(Y/2),Oe=Math.sin(B/2),nt=j*H*te-ae*pe*Oe,tt=ae*pe*te+j*H*Oe,Ve=ae*H*te+j*pe*Oe,ot=j*pe*te-ae*H*Oe;return[tt,Ve,ot,nt]}function q(){var fe=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(fe===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Y&&fe>=Y||this._caching.lastFrame<W&&fe<W))){this._caching.lastFrame>=fe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var B=this.interpolateValue(fe,this._caching);this.pv=B}return this._caching.lastFrame=fe,this.pv}function me(fe){var W;if(this.propType==="unidimensional")W=fe*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Y=0,B=this.v.length;Y<B;)W=fe[Y]*this.mult,p(this.v[Y]-W)>1e-5&&(this.v[Y]=W,this._mdf=!0),Y+=1}function J(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var fe,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(fe=0;fe<W;fe+=1)Y=this.effectsSequence[fe](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(fe){this.effectsSequence.push(fe),this.container.addDynamicProperty(this)}function Ee(fe,W,Y,B){this.propType="unidimensional",this.mult=Y||1,this.data=W,this.v=Y?W.k*Y:W.k,this.pv=W.k,this._mdf=!1,this.elem=fe,this.container=B,this.comp=fe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=$e}function Re(fe,W,Y,B){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=fe,this.container=B,this.comp=fe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,H=W.k.length;for(this.v=Ue("float32",H),this.pv=Ue("float32",H),this.vel=Ue("float32",H),j=0;j<H;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=$e}function F(fe,W,Y,B){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Y||1,this.elem=fe,this.container=B,this.comp=fe.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=$e}function Q(fe,W,Y,B){this.propType="multidimensional";var j,H=W.k.length,te,ae,pe,Oe;for(j=0;j<H-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(te=W.k[j].s,ae=W.k[j+1].s,pe=W.k[j].to,Oe=W.k[j].ti,(te.length===2&&!(te[0]===ae[0]&&te[1]===ae[1])&&Wr.pointOnLine2D(te[0],te[1],ae[0],ae[1],te[0]+pe[0],te[1]+pe[1])&&Wr.pointOnLine2D(te[0],te[1],ae[0],ae[1],ae[0]+Oe[0],ae[1]+Oe[1])||te.length===3&&!(te[0]===ae[0]&&te[1]===ae[1]&&te[2]===ae[2])&&Wr.pointOnLine3D(te[0],te[1],te[2],ae[0],ae[1],ae[2],te[0]+pe[0],te[1]+pe[1],te[2]+pe[2])&&Wr.pointOnLine3D(te[0],te[1],te[2],ae[0],ae[1],ae[2],ae[0]+Oe[0],ae[1]+Oe[1],ae[2]+Oe[2]))&&(W.k[j].to=null,W.k[j].ti=null),te[0]===ae[0]&&te[1]===ae[1]&&pe[0]===0&&pe[1]===0&&Oe[0]===0&&Oe[1]===0&&(te.length===2||te[2]===ae[2]&&pe[2]===0&&Oe[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=fe,this.container=B,this.comp=fe.comp,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ue("float32",nt),this.pv=Ue("float32",nt),j=0;j<nt;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ue("float32",nt)},this.addEffect=$e}function G(fe,W,Y,B,j){var H;if(!W.k.length)H=new Ee(fe,W,B,j);else if(typeof W.k[0]=="number")H=new Re(fe,W,B,j);else switch(Y){case 0:H=new F(fe,W,B,j);break;case 1:H=new Q(fe,W,B,j);break}return H.effectsSequence.length&&j.addDynamicProperty(H),H}var he={getProp:G};return he}();function cn(){}cn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ea=function(){function c(){return Ue("float32",2)}return $r(8,c)}();function ui(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ge(this._maxLength),this.o=Ge(this._maxLength),this.i=Ge(this._maxLength)}ui.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=ea.newElement(),this.o[v]=ea.newElement(),this.i[v]=ea.newElement(),v+=1},ui.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},ui.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ge(this._maxLength)),this.i=this.i.concat(Ge(this._maxLength)),this.o=this.o.concat(Ge(this._maxLength)),this._maxLength*=2},ui.prototype.setXYAt=function(c,p,v,$,T){var P;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":P=this.v;break;case"i":P=this.i;break;case"o":P=this.o;break;default:P=[];break}(!P[$]||P[$]&&!T)&&(P[$]=ea.newElement()),P[$][0]=c,P[$][1]=p},ui.prototype.setTripleAt=function(c,p,v,$,T,P,q,me){this.setXYAt(c,p,"v",q,me),this.setXYAt(v,$,"o",q,me),this.setXYAt(T,P,"i",q,me)},ui.prototype.reverse=function(){var c=new ui;c.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,T=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),T=1);var P=this._length-1,q=this._length,me;for(me=T;me<q;me+=1)c.setTripleAt(p[P][0],p[P][1],$[P][0],$[P][1],v[P][0],v[P][1],me,!1),P-=1;return c},ui.prototype.length=function(){return this._length};var Gn=function(){function c(){return new ui}function p(T){var P=T._length,q;for(q=0;q<P;q+=1)ea.release(T.v[q]),ea.release(T.i[q]),ea.release(T.o[q]),T.v[q]=null,T.i[q]=null,T.o[q]=null;T._length=0,T.c=!1}function v(T){var P=$.newElement(),q,me=T._length===void 0?T.v.length:T._length;for(P.setLength(me),P.c=T.c,q=0;q<me;q+=1)P.setTripleAt(T.v[q][0],T.v[q][1],T.o[q][0],T.o[q][1],T.i[q][0],T.i[q][1],q);return P}var $=$r(4,c,p);return $.clone=v,$}();function To(){this._length=0,this._maxLength=4,this.shapes=Ge(this._maxLength)}To.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ge(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},To.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Gn.release(this.shapes[c]);this._length=0};var Aa=function(){var c={newShapeCollection:T,release:P},p=0,v=4,$=Ge(v);function T(){var q;return p?(p-=1,q=$[p]):q=new To,q}function P(q){var me,J=q._length;for(me=0;me<J;me+=1)Gn.release(q.shapes[me]);q._length=0,p===v&&($=Lu.double($),v*=2),$[p]=q,p+=1}return c}(),li=function(){var c=-999999;function p(W,Y,B){var j=B.lastIndex,H,te,ae,pe,Oe,nt,tt,Ve,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],ae=!0,j=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],ae=!0;else{for(var Be=j,xe=ct.length-1,ue=!0,X,ve,je;ue&&(X=ct[Be],ve=ct[Be+1],!(ve.t-this.offsetTime>W));)Be<xe-1?Be+=1:ue=!1;if(je=this.keyframesMetadata[Be]||{},ae=X.h===1,j=Be,!ae){if(W>=ve.t-this.offsetTime)Ve=1;else if(W<X.t-this.offsetTime)Ve=0;else{var ke;je.__fnct?ke=je.__fnct:(ke=as.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y).get,je.__fnct=ke),Ve=ke((W-(X.t-this.offsetTime))/(ve.t-this.offsetTime-(X.t-this.offsetTime)))}te=ve.s?ve.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,tt=H.i[0].length,B.lastIndex=j,pe=0;pe<nt;pe+=1)for(Oe=0;Oe<tt;Oe+=1)ot=ae?H.i[pe][Oe]:H.i[pe][Oe]+(te.i[pe][Oe]-H.i[pe][Oe])*Ve,Y.i[pe][Oe]=ot,ot=ae?H.o[pe][Oe]:H.o[pe][Oe]+(te.o[pe][Oe]-H.o[pe][Oe])*Ve,Y.o[pe][Oe]=ot,ot=ae?H.v[pe][Oe]:H.v[pe][Oe]+(te.v[pe][Oe]-H.v[pe][Oe])*Ve,Y.v[pe][Oe]=ot}function v(){var W=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,B=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Y&&W<Y||j>B&&W>B)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function T(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var B,j=W._length;for(B=0;B<j;B+=1)if(W.v[B][0]!==Y.v[B][0]||W.v[B][1]!==Y.v[B][1]||W.o[B][0]!==Y.o[B][0]||W.o[B][1]!==Y.o[B][1]||W.i[B][0]!==Y.i[B][0]||W.i[B][1]!==Y.i[B][1])return!1;return!0}function P(W){T(this.v,W)||(this.v=Gn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Y,B=this.effectsSequence.length;for(Y=0;Y<B;Y+=1)W=this.effectsSequence[Y](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function me(W,Y,B){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var j=B===3?Y.pt.k:Y.ks.k;this.v=Gn.clone(j),this.pv=Gn.clone(this.v),this.localShapeCollection=Aa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=P,me.prototype.addEffect=J;function $e(W,Y,B){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=B===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Gn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Gn.clone(this.v),this.localShapeCollection=Aa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=$,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}$e.prototype.getValue=q,$e.prototype.interpolateShape=p,$e.prototype.setVValue=P,$e.prototype.addEffect=J;var Ee=function(){var W=be;function Y(B,j){this.v=Gn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Aa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=B,this.comp=B.comp,this.frameId=-1,this.initDynamicPropertyContainer(B),this.p=at.getProp(B,j.p,1,0,this),this.s=at.getProp(B,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],H=this.p.v[1],te=this.s.v[0]/2,ae=this.s.v[1]/2,pe=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=H-ae,Oe.v[1][0]=pe?j+te:j-te,Oe.v[1][1]=H,Oe.v[2][0]=j,Oe.v[2][1]=H+ae,Oe.v[3][0]=pe?j-te:j+te,Oe.v[3][1]=H,Oe.i[0][0]=pe?j-te*W:j+te*W,Oe.i[0][1]=H-ae,Oe.i[1][0]=pe?j+te:j-te,Oe.i[1][1]=H-ae*W,Oe.i[2][0]=pe?j+te*W:j-te*W,Oe.i[2][1]=H+ae,Oe.i[3][0]=pe?j-te:j+te,Oe.i[3][1]=H+ae*W,Oe.o[0][0]=pe?j+te*W:j-te*W,Oe.o[0][1]=H-ae,Oe.o[1][0]=pe?j+te:j-te,Oe.o[1][1]=H+ae*W,Oe.o[2][0]=pe?j-te*W:j+te*W,Oe.o[2][1]=H+ae,Oe.o[3][0]=pe?j-te:j+te,Oe.o[3][1]=H-ae*W}},Le([cn],Y),Y}(),Re=function(){function W(Y,B){this.v=Gn.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=B,this.frameId=-1,this.d=B.d,this.initDynamicPropertyContainer(Y),B.sy===1?(this.ir=at.getProp(Y,B.ir,0,0,this),this.is=at.getProp(Y,B.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Y,B.pt,0,0,this),this.p=at.getProp(Y,B.p,1,0,this),this.r=at.getProp(Y,B.r,0,Qt,this),this.or=at.getProp(Y,B.or,0,0,this),this.os=at.getProp(Y,B.os,0,.01,this),this.localShapeCollection=Aa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var B=Math.floor(this.pt.v)*2,j=Math.PI*2/B,H=!0,te=this.or.v,ae=this.ir.v,pe=this.os.v,Oe=this.is.v,nt=2*Math.PI*te/(B*2),tt=2*Math.PI*ae/(B*2),Ve,ot,ct,Be,xe=-Math.PI/2;xe+=this.r.v;var ue=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<B;Ve+=1){ot=H?te:ae,ct=H?pe:Oe,Be=H?nt:tt;var X=ot*Math.cos(xe),ve=ot*Math.sin(xe),je=X===0&&ve===0?0:ve/Math.sqrt(X*X+ve*ve),ke=X===0&&ve===0?0:-X/Math.sqrt(X*X+ve*ve);X+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(X,ve,X-je*Be*ct*ue,ve-ke*Be*ct*ue,X+je*Be*ct*ue,ve+ke*Be*ct*ue,Ve,!0),H=!H,xe+=j*ue}},convertPolygonToPath:function(){var B=Math.floor(this.pt.v),j=Math.PI*2/B,H=this.or.v,te=this.os.v,ae=2*Math.PI*H/(B*4),pe,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,pe=0;pe<B;pe+=1){var tt=H*Math.cos(Oe),Ve=H*Math.sin(Oe),ot=tt===0&&Ve===0?0:Ve/Math.sqrt(tt*tt+Ve*Ve),ct=tt===0&&Ve===0?0:-tt/Math.sqrt(tt*tt+Ve*Ve);tt+=+this.p.v[0],Ve+=+this.p.v[1],this.v.setTripleAt(tt,Ve,tt-ot*ae*te*nt,Ve-ct*ae*te*nt,tt+ot*ae*te*nt,Ve+ct*ae*te*nt,pe,!0),Oe+=j*nt}this.paths.length=0,this.paths[0]=this.v}},Le([cn],W),W}(),F=function(){function W(Y,B){this.v=Gn.newElement(),this.v.c=!0,this.localShapeCollection=Aa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=B.d,this.initDynamicPropertyContainer(Y),this.p=at.getProp(Y,B.p,1,0,this),this.s=at.getProp(Y,B.s,1,0,this),this.r=at.getProp(Y,B.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var B=this.p.v[0],j=this.p.v[1],H=this.s.v[0]/2,te=this.s.v[1]/2,ae=_t(H,te,this.r.v),pe=ae*(1-be);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(B+H,j-te+ae,B+H,j-te+ae,B+H,j-te+pe,0,!0),this.v.setTripleAt(B+H,j+te-ae,B+H,j+te-pe,B+H,j+te-ae,1,!0),ae!==0?(this.v.setTripleAt(B+H-ae,j+te,B+H-ae,j+te,B+H-pe,j+te,2,!0),this.v.setTripleAt(B-H+ae,j+te,B-H+pe,j+te,B-H+ae,j+te,3,!0),this.v.setTripleAt(B-H,j+te-ae,B-H,j+te-ae,B-H,j+te-pe,4,!0),this.v.setTripleAt(B-H,j-te+ae,B-H,j-te+pe,B-H,j-te+ae,5,!0),this.v.setTripleAt(B-H+ae,j-te,B-H+ae,j-te,B-H+pe,j-te,6,!0),this.v.setTripleAt(B+H-ae,j-te,B+H-pe,j-te,B+H-ae,j-te,7,!0)):(this.v.setTripleAt(B-H,j+te,B-H+pe,j+te,B-H,j+te,2),this.v.setTripleAt(B-H,j-te,B-H,j-te+pe,B-H,j-te,3))):(this.v.setTripleAt(B+H,j-te+ae,B+H,j-te+pe,B+H,j-te+ae,0,!0),ae!==0?(this.v.setTripleAt(B+H-ae,j-te,B+H-ae,j-te,B+H-pe,j-te,1,!0),this.v.setTripleAt(B-H+ae,j-te,B-H+pe,j-te,B-H+ae,j-te,2,!0),this.v.setTripleAt(B-H,j-te+ae,B-H,j-te+ae,B-H,j-te+pe,3,!0),this.v.setTripleAt(B-H,j+te-ae,B-H,j+te-pe,B-H,j+te-ae,4,!0),this.v.setTripleAt(B-H+ae,j+te,B-H+ae,j+te,B-H+pe,j+te,5,!0),this.v.setTripleAt(B+H-ae,j+te,B+H-pe,j+te,B+H-ae,j+te,6,!0),this.v.setTripleAt(B+H,j+te-ae,B+H,j+te-ae,B+H,j+te-pe,7,!0)):(this.v.setTripleAt(B-H,j-te,B-H+pe,j-te,B-H,j-te,1,!0),this.v.setTripleAt(B-H,j+te,B-H,j+te-pe,B-H,j+te,2,!0),this.v.setTripleAt(B+H,j+te,B+H-pe,j+te,B+H,j+te,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Le([cn],W),W}();function Q(W,Y,B){var j;if(B===3||B===4){var H=B===3?Y.pt:Y.ks,te=H.k;te.length?j=new $e(W,Y,B):j=new me(W,Y,B)}else B===5?j=new F(W,Y):B===6?j=new Ee(W,Y):B===7&&(j=new Re(W,Y));return j.k&&W.addDynamicProperty(j),j}function G(){return me}function he(){return $e}var fe={};return fe.getShapeProp=Q,fe.getConstructorFunction=G,fe.getKeyframedConstructorFunction=he,fe}();/*!
|
|
82
|
+
Transformation Matrix v2.0
|
|
83
|
+
(c) Epistemex 2014-2015
|
|
84
|
+
www.epistemex.com
|
|
85
|
+
By Ken Fyrstenberg
|
|
86
|
+
Contributions by leeoniya.
|
|
87
|
+
License: MIT, header required.
|
|
88
|
+
*/var kn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function T(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function P(ue){if(ue===0)return this;var X=c(ue),ve=p(ue);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function q(ue){if(ue===0)return this;var X=c(ue),ve=p(ue);return this._t(1,0,0,0,0,X,-ve,0,0,ve,X,0,0,0,0,1)}function me(ue){if(ue===0)return this;var X=c(ue),ve=p(ue);return this._t(X,0,ve,0,0,1,0,0,-ve,0,X,0,0,0,0,1)}function J(ue){if(ue===0)return this;var X=c(ue),ve=p(ue);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function $e(ue,X){return this._t(1,X,ue,1,0,0)}function Ee(ue,X){return this.shear(v(ue),v(X))}function Re(ue,X){var ve=c(X),je=p(X);return this._t(ve,je,0,0,-je,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ue),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-je,0,0,je,ve,0,0,0,0,1,0,0,0,0,1)}function F(ue,X,ve){return!ve&&ve!==0&&(ve=1),ue===1&&X===1&&ve===1?this:this._t(ue,0,0,0,0,X,0,0,0,0,ve,0,0,0,0,1)}function Q(ue,X,ve,je,ke,lt,At,Ct,bn,zt,ur,Yn,Ln,Nn,jn,pr){return this.props[0]=ue,this.props[1]=X,this.props[2]=ve,this.props[3]=je,this.props[4]=ke,this.props[5]=lt,this.props[6]=At,this.props[7]=Ct,this.props[8]=bn,this.props[9]=zt,this.props[10]=ur,this.props[11]=Yn,this.props[12]=Ln,this.props[13]=Nn,this.props[14]=jn,this.props[15]=pr,this}function G(ue,X,ve){return ve=ve||0,ue!==0||X!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ue,X,ve,1):this}function he(ue,X,ve,je,ke,lt,At,Ct,bn,zt,ur,Yn,Ln,Nn,jn,pr){var ft=this.props;if(ue===1&&X===0&&ve===0&&je===0&&ke===0&<===1&&At===0&&Ct===0&&bn===0&&zt===0&&ur===1&&Yn===0)return ft[12]=ft[12]*ue+ft[15]*Ln,ft[13]=ft[13]*lt+ft[15]*Nn,ft[14]=ft[14]*ur+ft[15]*jn,ft[15]*=pr,this._identityCalculated=!1,this;var ln=ft[0],Gr=ft[1],Pi=ft[2],ia=ft[3],di=ft[4],aa=ft[5],sa=ft[6],Yt=ft[7],$n=ft[8],Ia=ft[9],hi=ft[10],oa=ft[11],pi=ft[12],ua=ft[13],La=ft[14],Js=ft[15];return ft[0]=ln*ue+Gr*ke+Pi*bn+ia*Ln,ft[1]=ln*X+Gr*lt+Pi*zt+ia*Nn,ft[2]=ln*ve+Gr*At+Pi*ur+ia*jn,ft[3]=ln*je+Gr*Ct+Pi*Yn+ia*pr,ft[4]=di*ue+aa*ke+sa*bn+Yt*Ln,ft[5]=di*X+aa*lt+sa*zt+Yt*Nn,ft[6]=di*ve+aa*At+sa*ur+Yt*jn,ft[7]=di*je+aa*Ct+sa*Yn+Yt*pr,ft[8]=$n*ue+Ia*ke+hi*bn+oa*Ln,ft[9]=$n*X+Ia*lt+hi*zt+oa*Nn,ft[10]=$n*ve+Ia*At+hi*ur+oa*jn,ft[11]=$n*je+Ia*Ct+hi*Yn+oa*pr,ft[12]=pi*ue+ua*ke+La*bn+Js*Ln,ft[13]=pi*X+ua*lt+La*zt+Js*Nn,ft[14]=pi*ve+ua*At+La*ur+Js*jn,ft[15]=pi*je+ua*Ct+La*Yn+Js*pr,this._identityCalculated=!1,this}function fe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(ue){for(var X=0;X<16;){if(ue.props[X]!==this.props[X])return!1;X+=1}return!0}function Y(ue){var X;for(X=0;X<16;X+=1)ue.props[X]=this.props[X];return ue}function B(ue){var X;for(X=0;X<16;X+=1)this.props[X]=ue[X]}function j(ue,X,ve){return{x:ue*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],y:ue*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],z:ue*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}}function H(ue,X,ve){return ue*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12]}function te(ue,X,ve){return ue*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13]}function ae(ue,X,ve){return ue*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}function pe(){var ue=this.props[0]*this.props[5]-this.props[1]*this.props[4],X=this.props[5]/ue,ve=-this.props[1]/ue,je=-this.props[4]/ue,ke=this.props[0]/ue,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ue,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ue,Ct=new kn;return Ct.props[0]=X,Ct.props[1]=ve,Ct.props[4]=je,Ct.props[5]=ke,Ct.props[12]=lt,Ct.props[13]=At,Ct}function Oe(ue){var X=this.getInverseMatrix();return X.applyToPointArray(ue[0],ue[1],ue[2]||0)}function nt(ue){var X,ve=ue.length,je=[];for(X=0;X<ve;X+=1)je[X]=Oe(ue[X]);return je}function tt(ue,X,ve){var je=Ue("float32",6);if(this.isIdentity())je[0]=ue[0],je[1]=ue[1],je[2]=X[0],je[3]=X[1],je[4]=ve[0],je[5]=ve[1];else{var ke=this.props[0],lt=this.props[1],At=this.props[4],Ct=this.props[5],bn=this.props[12],zt=this.props[13];je[0]=ue[0]*ke+ue[1]*At+bn,je[1]=ue[0]*lt+ue[1]*Ct+zt,je[2]=X[0]*ke+X[1]*At+bn,je[3]=X[0]*lt+X[1]*Ct+zt,je[4]=ve[0]*ke+ve[1]*At+bn,je[5]=ve[0]*lt+ve[1]*Ct+zt}return je}function Ve(ue,X,ve){var je;return this.isIdentity()?je=[ue,X,ve]:je=[ue*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],ue*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],ue*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]],je}function ot(ue,X){if(this.isIdentity())return ue+","+X;var ve=this.props;return Math.round((ue*ve[0]+X*ve[4]+ve[12])*100)/100+","+Math.round((ue*ve[1]+X*ve[5]+ve[13])*100)/100}function ct(){for(var ue=0,X=this.props,ve="matrix3d(",je=1e4;ue<16;)ve+=$(X[ue]*je)/je,ve+=ue===15?")":",",ue+=1;return ve}function Be(ue){var X=1e4;return ue<1e-6&&ue>0||ue>-1e-6&&ue<0?$(ue*X)/X:ue}function xe(){var ue=this.props,X=Be(ue[0]),ve=Be(ue[1]),je=Be(ue[4]),ke=Be(ue[5]),lt=Be(ue[12]),At=Be(ue[13]);return"matrix("+X+","+ve+","+je+","+ke+","+lt+","+At+")"}return function(){this.reset=T,this.rotate=P,this.rotateX=q,this.rotateY=me,this.rotateZ=J,this.skew=Ee,this.skewFromAxis=Re,this.shear=$e,this.scale=F,this.setTransform=Q,this.translate=G,this.transform=he,this.applyToPoint=j,this.applyToX=H,this.applyToY=te,this.applyToZ=ae,this.applyToPointArray=Ve,this.applyToTriplePoints=tt,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=xe,this.clone=Y,this.cloneFromProps=B,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=pe,this._t=this.transform,this.isIdentity=fe,this._identity=!0,this._identityCalculated=!1,this.props=Ue("float32",16),this.reset()}}();function Ws(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(v){return typeof v}:Ws=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ws(c)}var jt={};function wc(c){oe(c)}function Nu(){Cn.searchAnimations()}function Cc(c){qt(c)}function Po(c){Do(c)}function ss(c){return Cn.loadAnimation(c)}function ju(c){if(typeof c=="string")switch(c){case"high":Pr(200);break;default:case"medium":Pr(50);break;case"low":Pr(10);break}else!isNaN(c)&&c>1&&Pr(c)}function _o(){return typeof navigator<"u"}function Ec(c,p){c==="expressions"&&zr(p)}function Sc(c){switch(c){case"propertyFactory":return at;case"shapePropertyFactory":return li;case"matrix":return kn;default:return null}}jt.play=Cn.play,jt.pause=Cn.pause,jt.setLocationHref=wc,jt.togglePause=Cn.togglePause,jt.setSpeed=Cn.setSpeed,jt.setDirection=Cn.setDirection,jt.stop=Cn.stop,jt.searchAnimations=Nu,jt.registerAnimation=Cn.registerAnimation,jt.loadAnimation=ss,jt.setSubframeRendering=Cc,jt.resize=Cn.resize,jt.goToAndStop=Cn.goToAndStop,jt.destroy=Cn.destroy,jt.setQuality=ju,jt.inBrowser=_o,jt.installPlugin=Ec,jt.freeze=Cn.freeze,jt.unfreeze=Cn.unfreeze,jt.setVolume=Cn.setVolume,jt.mute=Cn.mute,jt.unmute=Cn.unmute,jt.getRegisteredAnimations=Cn.getRegisteredAnimations,jt.useWebWorker=k,jt.setIDPrefix=Po,jt.__getFactory=Sc,jt.version="5.10.2";function Dc(){document.readyState==="complete"&&(clearInterval(qu),Nu())}function Ku(c){for(var p=Mo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==c)return decodeURIComponent($[1])}return null}var Mo="";{var Fo=document.getElementsByTagName("script"),os=Fo.length-1,Uu=Fo[os]||{src:""};Mo=Uu.src?Uu.src.replace(/^[^\?]+\??/,""):"",Ku("renderer")}var qu=setInterval(Dc,100);try{Ws(ee)!=="object"&&(window.bodymovin=jt)}catch{}var _r=function(){var c={},p={};c.registerModifier=v,c.getModifier=$;function v(T,P){p[T]||(p[T]=P)}function $(T,P,q){return new p[T](P,q)}return c}();function dr(){}dr.prototype.initModifierProperties=function(){},dr.prototype.addShapeToModifier=function(){},dr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Aa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},dr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=de,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},dr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Le([cn],dr);function Mr(){}Le([dr],Mr),Mr.prototype.initModifierProperties=function(c,p){this.s=at.getProp(c,p.s,0,.01,this),this.e=at.getProp(c,p.e,0,.01,this),this.o=at.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Mr.prototype.addShapeToModifier=function(c){c.pathsData=[]},Mr.prototype.calculateShapeEdges=function(c,p,v,$,T){var P=[];p<=1?P.push({s:c,e:p}):c>=1?P.push({s:c-1,e:p-1}):(P.push({s:c,e:1}),P.push({s:0,e:p-1}));var q=[],me,J=P.length,$e;for(me=0;me<J;me+=1)if($e=P[me],!($e.e*T<$||$e.s*T>$+v)){var Ee,Re;$e.s*T<=$?Ee=0:Ee=($e.s*T-$)/v,$e.e*T>=$+v?Re=1:Re=($e.e*T-$)/v,q.push([Ee,Re])}return q.length||q.push([0,0]),q},Mr.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Vu.release(c[p]);return c.length=0,c},Mr.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var T=p;p=v,v=T}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var P,q,me=this.shapes.length,J,$e,Ee,Re,F,Q=0;if(v===p)for(q=0;q<me;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<me;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var G=[],he,fe;for(q=0;q<me;q+=1)if(he=this.shapes[q],!he.shape._mdf&&!this._mdf&&!c&&this.m!==2)he.shape.paths=he.localShapeCollection;else{if(P=he.shape.paths,$e=P._length,F=0,!he.shape._mdf&&he.pathsData.length)F=he.totalShapeLength;else{for(Ee=this.releasePathsData(he.pathsData),J=0;J<$e;J+=1)Re=Wr.getSegmentsLength(P.shapes[J]),Ee.push(Re),F+=Re.totalLength;he.totalShapeLength=F,he.pathsData=Ee}Q+=F,he.shape._mdf=!0}var W=p,Y=v,B=0,j;for(q=me-1;q>=0;q-=1)if(he=this.shapes[q],he.shape._mdf){for(fe=he.localShapeCollection,fe.releaseShapes(),this.m===2&&me>1?(j=this.calculateShapeEdges(p,v,he.totalShapeLength,B,Q),B+=he.totalShapeLength):j=[[W,Y]],$e=j.length,J=0;J<$e;J+=1){W=j[J][0],Y=j[J][1],G.length=0,Y<=1?G.push({s:he.totalShapeLength*W,e:he.totalShapeLength*Y}):W>=1?G.push({s:he.totalShapeLength*(W-1),e:he.totalShapeLength*(Y-1)}):(G.push({s:he.totalShapeLength*W,e:he.totalShapeLength}),G.push({s:0,e:he.totalShapeLength*(Y-1)}));var H=this.addShapes(he,G[0]);if(G[0].s!==G[0].e){if(G.length>1){var te=he.shape.paths.shapes[he.shape.paths._length-1];if(te.c){var ae=H.pop();this.addPaths(H,fe),H=this.addShapes(he,G[1],ae)}else this.addPaths(H,fe),H=this.addShapes(he,G[1])}this.addPaths(H,fe)}}he.shape.paths=fe}}},Mr.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},Mr.prototype.addSegment=function(c,p,v,$,T,P,q){T.setXYAt(p[0],p[1],"o",P),T.setXYAt(v[0],v[1],"i",P+1),q&&T.setXYAt(c[0],c[1],"v",P),T.setXYAt($[0],$[1],"v",P+1)},Mr.prototype.addSegmentFromArray=function(c,p,v,$){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),$&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},Mr.prototype.addShapes=function(c,p,v){var $=c.pathsData,T=c.shape.paths.shapes,P,q=c.shape.paths._length,me,J,$e=0,Ee,Re,F,Q,G=[],he,fe=!0;for(v?(Re=v._length,he=v._length):(v=Gn.newElement(),Re=0,he=0),G.push(v),P=0;P<q;P+=1){for(F=$[P].lengths,v.c=T[P].c,J=T[P].c?F.length:F.length+1,me=1;me<J;me+=1)if(Ee=F[me-1],$e+Ee.addedLength<p.s)$e+=Ee.addedLength,v.c=!1;else if($e>p.e){v.c=!1;break}else p.s<=$e&&p.e>=$e+Ee.addedLength?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[me],T[P].v[me],v,Re,fe),fe=!1):(Q=Wr.getNewSegment(T[P].v[me-1],T[P].v[me],T[P].o[me-1],T[P].i[me],(p.s-$e)/Ee.addedLength,(p.e-$e)/Ee.addedLength,F[me-1]),this.addSegmentFromArray(Q,v,Re,fe),fe=!1,v.c=!1),$e+=Ee.addedLength,Re+=1;if(T[P].c&&F.length){if(Ee=F[me-1],$e<=p.e){var W=F[me-1].addedLength;p.s<=$e&&p.e>=$e+W?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[0],T[P].v[0],v,Re,fe),fe=!1):(Q=Wr.getNewSegment(T[P].v[me-1],T[P].v[0],T[P].o[me-1],T[P].i[0],(p.s-$e)/W,(p.e-$e)/W,F[me-1]),this.addSegmentFromArray(Q,v,Re,fe),fe=!1,v.c=!1)}else v.c=!1;$e+=Ee.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[he][0],v.v[he][1],"i",he),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),$e>p.e)break;P<q-1&&(v=Gn.newElement(),fe=!0,G.push(v),Re=0)}return G};function Ta(){}Le([dr],Ta),Ta.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ta.prototype.processPath=function(c,p){var v=p/100,$=[0,0],T=c._length,P=0;for(P=0;P<T;P+=1)$[0]+=c.v[P][0],$[1]+=c.v[P][1];$[0]/=T,$[1]/=T;var q=Gn.newElement();q.c=c.c;var me,J,$e,Ee,Re,F;for(P=0;P<T;P+=1)me=c.v[P][0]+($[0]-c.v[P][0])*v,J=c.v[P][1]+($[1]-c.v[P][1])*v,$e=c.o[P][0]+($[0]-c.o[P][0])*-v,Ee=c.o[P][1]+($[1]-c.o[P][1])*-v,Re=c.i[P][0]+($[0]-c.i[P][0])*-v,F=c.i[P][1]+($[1]-c.i[P][1])*-v,q.setTripleAt(me,J,$e,Ee,Re,F,P);return q},Ta.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,q=this.amount.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Hs=function(){var c=[0,0];function p(J){var $e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$e,this.a&&J.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&J.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&J.skewFromAxis(-this.sk.v,this.sa.v),this.r?J.rotate(-this.r.v):J.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?J.translate(this.px.v,this.py.v,-this.pz.v):J.translate(this.px.v,this.py.v,0):J.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(J){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||J){var $e;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ee,Re;if($e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ee=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$e,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/$e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ee=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$e,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$e,0)):(Ee=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ee=[],Re=[];var F=this.px,Q=this.py;F._caching.lastFrame+F.offsetTime<=F.keyframes[0].t?(Ee[0]=F.getValueAtTime((F.keyframes[0].t+.01)/$e,0),Ee[1]=Q.getValueAtTime((Q.keyframes[0].t+.01)/$e,0),Re[0]=F.getValueAtTime(F.keyframes[0].t/$e,0),Re[1]=Q.getValueAtTime(Q.keyframes[0].t/$e,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(Ee[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/$e,0),Ee[1]=Q.getValueAtTime(Q.keyframes[Q.keyframes.length-1].t/$e,0),Re[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/$e,0),Re[1]=Q.getValueAtTime((Q.keyframes[Q.keyframes.length-1].t-.01)/$e,0)):(Ee=[F.pv,Q.pv],Re[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/$e,F.offsetTime),Re[1]=Q.getValueAtTime((Q._caching.lastFrame+Q.offsetTime-.01)/$e,Q.offsetTime))}else Re=c,Ee=Re;this.v.rotate(-Math.atan2(Ee[1]-Re[1],Ee[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function T(){}function P(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function q(J,$e,Ee){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=$e,this.v=new kn,this.pre=new kn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ee||J),$e.p&&$e.p.s?(this.px=at.getProp(J,$e.p.x,0,0,this),this.py=at.getProp(J,$e.p.y,0,0,this),$e.p.z&&(this.pz=at.getProp(J,$e.p.z,0,0,this))):this.p=at.getProp(J,$e.p||{k:[0,0,0]},1,0,this),$e.rx){if(this.rx=at.getProp(J,$e.rx,0,Qt,this),this.ry=at.getProp(J,$e.ry,0,Qt,this),this.rz=at.getProp(J,$e.rz,0,Qt,this),$e.or.k[0].ti){var Re,F=$e.or.k.length;for(Re=0;Re<F;Re+=1)$e.or.k[Re].to=null,$e.or.k[Re].ti=null}this.or=at.getProp(J,$e.or,1,Qt,this),this.or.sh=!0}else this.r=at.getProp(J,$e.r||{k:0},0,Qt,this);$e.sk&&(this.sk=at.getProp(J,$e.sk,0,Qt,this),this.sa=at.getProp(J,$e.sa,0,Qt,this)),this.a=at.getProp(J,$e.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(J,$e.s||{k:[100,100,100]},1,.01,this),$e.o?this.o=at.getProp(J,$e.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:T},Le([cn],q),q.prototype.addDynamicProperty=P,q.prototype._addDynamicProperty=cn.prototype.addDynamicProperty;function me(J,$e,Ee){return new q(J,$e,Ee)}return{getTransformProperty:me}}();function hr(){}Le([dr],hr),hr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=at.getProp(c,p.c,0,null,this),this.o=at.getProp(c,p.o,0,null,this),this.tr=Hs.getTransformProperty(c,p.tr,this),this.so=at.getProp(c,p.tr.so,0,.01,this),this.eo=at.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new kn,this.rMatrix=new kn,this.sMatrix=new kn,this.tMatrix=new kn,this.matrix=new kn},hr.prototype.applyTransforms=function(c,p,v,$,T,P){var q=P?-1:1,me=$.s.v[0]+(1-$.s.v[0])*(1-T),J=$.s.v[1]+(1-$.s.v[1])*(1-T);c.translate($.p.v[0]*q*T,$.p.v[1]*q*T,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*q*T),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(P?1/me:me,P?1/J:J),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},hr.prototype.init=function(c,p,v,$){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},hr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},hr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},hr.prototype.changeGroupRender=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},hr.prototype.processShapes=function(c){var p,v,$,T,P,q=!1;if(this._mdf||c){var me=Math.ceil(this.c.v);if(this._groups.length<me){for(;this._groups.length<me;){var J={it:this.cloneElements(this._elements),ty:"gr"};J.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,J),this._groups.splice(0,0,J),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}P=0;var $e;for($=0;$<=this._groups.length-1;$+=1){if($e=P<me,this._groups[$]._render=$e,this.changeGroupRender(this._groups[$].it,$e),!$e){var Ee=this.elemsData[$].it,Re=Ee[Ee.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}P+=1}this._currentCopies=me;var F=this.o.v,Q=F%1,G=F>0?Math.floor(F):Math.ceil(F),he=this.pMatrix.props,fe=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Y=0;if(F>0){for(;Y<G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Y+=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Q,!1),Y+=Q)}else if(F<0){for(;Y>G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Y-=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Q,!0),Y-=Q)}$=this.data.m===1?0:this._currentCopies-1,T=this.data.m===1?1:-1,P=this._currentCopies;for(var B,j;P;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,j=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Y!==0){for(($!==0&&T===1||$!==this._currentCopies-1&&T===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),B=0;B<j;B+=1)v[B]=this.matrix.props[B];this.matrix.reset()}else for(this.matrix.reset(),B=0;B<j;B+=1)v[B]=this.matrix.props[B];Y+=1,P-=1,$+=T}}else for(P=this._currentCopies,$=0,T=1;P;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,P-=1,$+=T;return q},hr.prototype.addShape=function(){};function us(){}Le([dr],us),us.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=at.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},us.prototype.processPath=function(c,p){var v=Gn.newElement();v.c=c.c;var $,T=c._length,P,q,me,J,$e,Ee,Re=0,F,Q,G,he,fe,W;for($=0;$<T;$+=1)P=c.v[$],me=c.o[$],q=c.i[$],P[0]===me[0]&&P[1]===me[1]&&P[0]===q[0]&&P[1]===q[1]?($===0||$===T-1)&&!c.c?(v.setTripleAt(P[0],P[1],me[0],me[1],q[0],q[1],Re),Re+=1):($===0?J=c.v[T-1]:J=c.v[$-1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ee=$e?Math.min($e/2,p)/$e:0,fe=P[0]+(J[0]-P[0])*Ee,F=fe,W=P[1]-(P[1]-J[1])*Ee,Q=W,G=F-(F-P[0])*be,he=Q-(Q-P[1])*be,v.setTripleAt(F,Q,G,he,fe,W,Re),Re+=1,$===T-1?J=c.v[0]:J=c.v[$+1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ee=$e?Math.min($e/2,p)/$e:0,G=P[0]+(J[0]-P[0])*Ee,F=G,he=P[1]+(J[1]-P[1])*Ee,Q=he,fe=F-(F-P[0])*be,W=Q-(Q-P[1])*be,v.setTripleAt(F,Q,G,he,fe,W,Re),Re+=1):(v.setTripleAt(c.v[$][0],c.v[$][1],c.o[$][0],c.o[$][1],c.i[$][0],c.i[$][1],Re),Re+=1);return v},us.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,q=this.rd.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ls(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Ei(c){return Math.abs(c)<=1e-5}function ci(c,p,v){return c*(1-v)+p*v}function rr(c,p,v){return[ci(c[0],p[0],v),ci(c[1],p[1],v)]}function Si(c,p,v){if(c===0)return[];var $=p*p-4*c*v;if($<0)return[];var T=-p/(2*c);if($===0)return[T];var P=Math.sqrt($)/(2*c);return[T-P,T+P]}function Ro(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function zu(c){return new dn(c,c,c,c,!1)}function dn(c,p,v,$,T){T&&ta(c,p)&&(p=rr(c,$,1/3)),T&&ta(v,$)&&(v=rr(c,$,2/3));var P=Ro(c[0],p[0],v[0],$[0]),q=Ro(c[1],p[1],v[1],$[1]);this.a=[P[0],q[0]],this.b=[P[1],q[1]],this.c=[P[2],q[2]],this.d=[P[3],q[3]],this.points=[c,p,v,$]}dn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},dn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},dn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},dn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},dn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ei(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var $=Math.sqrt(v);return Ei($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(T){return T>0&&T<1})},dn.prototype.split=function(c){if(c<=0)return[zu(this.points[0]),this];if(c>=1)return[this,zu(this.points[this.points.length-1])];var p=rr(this.points[0],this.points[1],c),v=rr(this.points[1],this.points[2],c),$=rr(this.points[2],this.points[3],c),T=rr(p,v,c),P=rr(v,$,c),q=rr(T,P,c);return[new dn(this.points[0],p,T,q,!0),new dn(q,P,$,this.points[3],!0)]};function ko(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var T=$;$=v,v=T}for(var P=Si(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<P.length;q+=1)if(P[q]>0&&P[q]<1){var me=c.point(P[q])[p];me<v?v=me:me>$&&($=me)}return{min:v,max:$}}dn.prototype.bounds=function(){return{x:ko(this,0),y:ko(this,1)}},dn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function cs(c,p,v){var $=c.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Oo(c){var p=c.bez.split(.5);return[cs(p[0],c.t1,c.t),cs(p[1],c.t,c.t2)]}function Wu(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Fr(c,p,v,$,T,P){if(Wu(c,p)){if(v>=P||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){T.push([c.t,p.t]);return}var q=Oo(c),me=Oo(p);Fr(q[0],me[0],v+1,$,T,P),Fr(q[0],me[1],v+1,$,T,P),Fr(q[1],me[0],v+1,$,T,P),Fr(q[1],me[1],v+1,$,T,P)}}dn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Fr(cs(this,0,1),cs(c,0,1),0,p,$,v),$},dn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new dn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},dn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new dn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function Io(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Pa(c,p,v,$){var T=[c[0],c[1],1],P=[p[0],p[1],1],q=[v[0],v[1],1],me=[$[0],$[1],1],J=Io(Io(T,P),Io(q,me));return Ei(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function _a(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function fs(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function ta(c,p){return ls(c[0],p[0])&&ls(c[1],p[1])}function ds(){}Le([dr],ds),ds.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=at.getProp(c,p.s,0,null,this),this.frequency=at.getProp(c,p.r,0,null,this),this.pointsType=at.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gs(c,p,v,$,T,P,q){var me=v-Math.PI/2,J=v+Math.PI/2,$e=p[0]+Math.cos(v)*$*T,Ee=p[1]-Math.sin(v)*$*T;c.setTripleAt($e,Ee,$e+Math.cos(me)*P,Ee-Math.sin(me)*P,$e+Math.cos(J)*q,Ee-Math.sin(J)*q,c.length())}function Hu(c,p){var v=[p[0]-c[0],p[1]-c[1]],$=-Math.PI*.5,T=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return T}function Ac(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),T=c.v[v],P=c.v[$],q=Hu(T,P);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function hs(c,p,v,$,T,P,q){var me=Ac(p,v),J=p.v[v%p._length],$e=p.v[v===0?p._length-1:v-1],Ee=p.v[(v+1)%p._length],Re=P===2?Math.sqrt(Math.pow(J[0]-$e[0],2)+Math.pow(J[1]-$e[1],2)):0,F=P===2?Math.sqrt(Math.pow(J[0]-Ee[0],2)+Math.pow(J[1]-Ee[1],2)):0;Gs(c,p.v[v%p._length],me,q,$,F/((T+1)*2),Re/((T+1)*2))}function Tc(c,p,v,$,T,P){for(var q=0;q<$;q+=1){var me=(q+1)/($+1),J=T===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,$e=p.normalAngle(me),Ee=p.point(me);Gs(c,Ee,$e,P,v,J/(($+1)*2),J/(($+1)*2)),P=-P}return P}ds.prototype.processPath=function(c,p,v,$){var T=c._length,P=Gn.newElement();if(P.c=c.c,c.c||(T-=1),T===0)return P;var q=-1,me=dn.shapeSegment(c,0);hs(P,c,0,p,v,$,q);for(var J=0;J<T;J+=1)q=Tc(P,me,p,v,$,-q),J===T-1&&!c.c?me=null:me=dn.shapeSegment(c,(J+1)%T),hs(P,c,J+1,p,v,$,q);return P},ds.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,q=this.amplitude.v,me=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(q!==0){var $e,Ee;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ee=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!c))for(Ee.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ee.addShape(this.processPath(p[T],q,me,J));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ps(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[_a(c,$,v),_a(p,$,v)]}function Gt(c,p){var v,$,T,P,q,me,J;J=ps(c.points[0],c.points[1],p),v=J[0],$=J[1],J=ps(c.points[1],c.points[2],p),T=J[0],P=J[1],J=ps(c.points[2],c.points[3],p),q=J[0],me=J[1];var $e=Pa(v,$,T,P);$e===null&&($e=$);var Ee=Pa(q,me,T,P);return Ee===null&&(Ee=q),new dn(v,$e,Ee,me)}function en(c,p,v,$,T){var P=p.points[3],q=v.points[0];if($===3||ta(P,q))return P;if($===2){var me=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,$e=Pa(P,_a(P,me+Math.PI/2,100),q,_a(q,me+Math.PI/2,100)),Ee=$e?fs($e,P):fs(P,q)/2,Re=_a(P,me,2*Ee*be);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=_a(q,J,2*Ee*be),c.setTripleAt(q[0],q[1],q[0],q[1],Re[0],Re[1],c.length()),q}var F=ta(P,p.points[2])?p.points[0]:p.points[2],Q=ta(q,v.points[1])?v.points[3]:v.points[1],G=Pa(F,P,q,Q);return G&&fs(G,P)<T?(c.setTripleAt(G[0],G[1],G[0],G[1],G[0],G[1],c.length()),G):P}function ie(c,p){var v=c.intersections(p);return v.length&&ls(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Fe(c,p){var v=c.slice(),$=p.slice(),T=ie(c[c.length-1],p[0]);return T&&(v[c.length-1]=c[c.length-1].split(T[0])[0],$[0]=p[0].split(T[1])[1]),c.length>1&&p.length>1&&(T=ie(c[0],p[p.length-1]),T)?[[c[0].split(T[0])[0]],[p[p.length-1].split(T[1])[1]]]:[v,$]}function ze(c){for(var p,v=1;v<c.length;v+=1)p=Fe(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Fe(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),$,T,P,q;if(v.length===0)return[Gt(c,p)];if(v.length===1||ls(v[1],1))return P=c.split(v[0]),$=P[0],T=P[1],[Gt($,p),Gt(T,p)];P=c.split(v[0]),$=P[0];var me=(v[1]-v[0])/(1-v[0]);return P=P[1].split(me),q=P[0],T=P[1],[Gt($,p),Gt(q,p),Gt(T,p)]}function yn(){}Le([dr],yn),yn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this.miterLimit=at.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},yn.prototype.processPath=function(c,p,v,$){var T=Gn.newElement();T.c=c.c;var P=c.length();c.c||(P-=1);var q,me,J,$e=[];for(q=0;q<P;q+=1)J=dn.shapeSegment(c,q),$e.push(pt(J,p));if(!c.c)for(q=P-1;q>=0;q-=1)J=dn.shapeSegmentInverted(c,q),$e.push(pt(J,p));$e=ze($e);var Ee=null,Re=null;for(q=0;q<$e.length;q+=1){var F=$e[q];for(Re&&(Ee=en(T,Re,F[0],v,$)),Re=F[F.length-1],me=0;me<F.length;me+=1)J=F[me],Ee&&ta(J.points[0],Ee)?T.setXYAt(J.points[1][0],J.points[1][1],"o",T.length()-1):T.setTripleAt(J.points[0][0],J.points[0][1],J.points[1][0],J.points[1][1],J.points[0][0],J.points[0][1],T.length()),T.setTripleAt(J.points[3][0],J.points[3][1],J.points[3][0],J.points[3][1],J.points[2][0],J.points[2][1],T.length()),Ee=J.points[3]}return $e.length&&en(T,Re,$e[0][0],v,$),T},yn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,q=this.amount.v,me=this.miterLimit.v,J=this.lineJoin;if(q!==0){var $e,Ee;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ee=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!c))for(Ee.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ee.addShape(this.processPath(p[T],q,J,me));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function tr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",$="normal",T=p.length,P,q=0;q<T;q+=1)switch(P=p[q].toLowerCase(),P){case"italic":$="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:$,weight:c.fWeight||v}}var ir=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],T=[65039,8205];function P(j){var H=j.split(","),te,ae=H.length,pe=[];for(te=0;te<ae;te+=1)H[te]!=="sans-serif"&&H[te]!=="monospace"&&pe.push(H[te]);return pe.join(",")}function q(j,H){var te=Me("span");te.setAttribute("aria-hidden",!0),te.style.fontFamily=H;var ae=Me("span");ae.innerText="giItT1WQy@!-/#",te.style.position="absolute",te.style.left="-10000px",te.style.top="-10000px",te.style.fontSize="300px",te.style.fontVariant="normal",te.style.fontStyle="normal",te.style.fontWeight="normal",te.style.letterSpacing="0",te.appendChild(ae),document.body.appendChild(te);var pe=ae.offsetWidth;return ae.style.fontFamily=P(j)+", "+H,{node:ae,w:pe,parent:te}}function me(){var j,H=this.fonts.length,te,ae,pe=H;for(j=0;j<H;j+=1)this.fonts[j].loaded?pe-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(te=this.fonts[j].monoCase.node,ae=this.fonts[j].monoCase.w,te.offsetWidth!==ae?(pe-=1,this.fonts[j].loaded=!0):(te=this.fonts[j].sansCase.node,ae=this.fonts[j].sansCase.w,te.offsetWidth!==ae&&(pe-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));pe!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(j,H){var te=document.body&&H?"svg":"canvas",ae,pe=tr(j);if(te==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",pe.style),Oe.setAttribute("font-weight",pe.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,H.appendChild(Oe),ae=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=pe.style+" "+pe.weight+" 100px "+j.fFamily,ae=nt}function tt(Ve){return te==="svg"?(ae.textContent=Ve,ae.getComputedTextLength()):ae.measureText(Ve).width}return{measureText:tt}}function $e(j,H){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function(xe){xe.helper=J(xe),xe.cache={}}),this.fonts=j.list;return}var te=j.list,ae,pe=te.length,Oe=pe;for(ae=0;ae<pe;ae+=1){var nt=!0,tt,Ve;if(te[ae].loaded=!1,te[ae].monoCase=q(te[ae].fFamily,"monospace"),te[ae].sansCase=q(te[ae].fFamily,"sans-serif"),!te[ae].fPath)te[ae].loaded=!0,Oe-=1;else if(te[ae].fOrigin==="p"||te[ae].origin===3){if(tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+te[ae].fFamily+'"], style[f-origin="3"][f-family="'+te[ae].fFamily+'"]'),tt.length>0&&(nt=!1),nt){var ot=Me("style");ot.setAttribute("f-forigin",te[ae].fOrigin),ot.setAttribute("f-origin",te[ae].origin),ot.setAttribute("f-family",te[ae].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+te[ae].fFamily+"; font-style: normal; src: url('"+te[ae].fPath+"');}",H.appendChild(ot)}}else if(te[ae].fOrigin==="g"||te[ae].origin===1){for(tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ve=0;Ve<tt.length;Ve+=1)tt[Ve].href.indexOf(te[ae].fPath)!==-1&&(nt=!1);if(nt){var ct=Me("link");ct.setAttribute("f-forigin",te[ae].fOrigin),ct.setAttribute("f-origin",te[ae].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=te[ae].fPath,document.body.appendChild(ct)}}else if(te[ae].fOrigin==="t"||te[ae].origin===2){for(tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ve=0;Ve<tt.length;Ve+=1)te[ae].fPath===tt[Ve].src&&(nt=!1);if(nt){var Be=Me("link");Be.setAttribute("f-forigin",te[ae].fOrigin),Be.setAttribute("f-origin",te[ae].origin),Be.setAttribute("rel","stylesheet"),Be.setAttribute("href",te[ae].fPath),H.appendChild(Be)}}te[ae].helper=J(te[ae],H),te[ae].cache={},this.fonts.push(te[ae])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ee(j){if(j){this.chars||(this.chars=[]);var H,te=j.length,ae,pe=this.chars.length,Oe;for(H=0;H<te;H+=1){for(ae=0,Oe=!1;ae<pe;)this.chars[ae].style===j[H].style&&this.chars[ae].fFamily===j[H].fFamily&&this.chars[ae].ch===j[H].ch&&(Oe=!0),ae+=1;Oe||(this.chars.push(j[H]),pe+=1)}}}function Re(j,H,te){for(var ae=0,pe=this.chars.length;ae<pe;){if(this.chars[ae].ch===j&&this.chars[ae].style===H&&this.chars[ae].fFamily===te)return this.chars[ae];ae+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,H,te)),p}function F(j,H,te){var ae=this.getFontByName(H),pe=j.charCodeAt(0);if(!ae.cache[pe+1]){var Oe=ae.helper;if(j===" "){var nt=Oe.measureText("|"+j+"|"),tt=Oe.measureText("||");ae.cache[pe+1]=(nt-tt)/100}else ae.cache[pe+1]=Oe.measureText(j)/100}return ae.cache[pe+1]*te}function Q(j){for(var H=0,te=this.fonts.length;H<te;){if(this.fonts[H].fName===j)return this.fonts[H];H+=1}return this.fonts[0]}function G(j,H){var te=j.toString(16)+H.toString(16);return $.indexOf(te)!==-1}function he(j,H){return H?j===T[0]&&H===T[1]:j===T[1]}function fe(j){return v.indexOf(j)!==-1}function W(){this.isLoaded=!0}var Y=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Y.isModifier=G,Y.isZeroWidthJoiner=he,Y.isCombinedCharacter=fe;var B={addChars:Ee,addFonts:$e,getCharData:Re,getFontByName:Q,measureText:F,checkLoadedFonts:me,setIsLoaded:W};return Y.prototype=B,Y}();function Vn(){}Vn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var En=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Di(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Ai(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Lo(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function Ys(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ar(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function ms(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Ad(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Td(){this.p={}}function Pc(c,p){var v=c.ef||[];this.effectElements=[];var $,T=v.length,P;for($=0;$<T;$+=1)P=new Zs(v[$],p),this.effectElements.push(P)}function Zs(c,p){this.init(c,p)}Le([cn],Zs),Zs.prototype.getValue=Zs.prototype.iterateDynamicProperties,Zs.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,T,P=this.data.ef;for(v=0;v<$;v+=1){switch(T=null,P[v].ty){case 0:T=new Di(P[v],p,this);break;case 1:T=new Ai(P[v],p,this);break;case 2:T=new Lo(P[v],p,this);break;case 3:T=new Ys(P[v],p,this);break;case 4:case 7:T=new Ad(P[v],p,this);break;case 10:T=new ar(P[v],p,this);break;case 11:T=new ms(P[v],p,this);break;case 5:T=new Pc(P[v],p);break;default:T=new Td(P[v]);break}T&&this.effectElements.push(T)}};function na(){}na.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=En(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,this.data=p,this.layerId=xt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Pc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function On(){}On.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,T=this.dynamicProperties.length;for($=0;$<T;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ma(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ma.prototype.prepareFrame=function(){},Le([Vn,na,On],Ma),Ma.prototype.getBaseElement=function(){return null},Ma.prototype.renderFrame=function(){},Ma.prototype.destroy=function(){},Ma.prototype.initExpressions=function(){},Ma.prototype.getFootageData=function(){return this.footageData};function fn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Le([Vn,na,On],fn),fn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},fn.prototype.show=function(){},fn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},fn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},fn.prototype.resume=function(){this._canPlay=!0},fn.prototype.setRate=function(c){this.audio.rate(c)},fn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},fn.prototype.getBaseElement=function(){return null},fn.prototype.destroy=function(){},fn.prototype.sourceRectAtTime=function(){},fn.prototype.initExpressions=function(){};function sr(){}sr.prototype.checkLayers=function(c){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=c-this.layers[p].st&&$.op-$.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},sr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},sr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},sr.prototype.createAudio=function(c){return new fn(c,this.globalData,this)},sr.prototype.createFootage=function(c){return new Ma(c,this.globalData,this)},sr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},sr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,$,T=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<T;){if(this.layers[$].id===c[p].id){this.layers[$]=c[p];break}$+=1}},sr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},sr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},sr.prototype.buildElementParenting=function(c,p,v){for(var $=this.elements,T=this.layers,P=0,q=T.length;P<q;)T[P].ind==p&&(!$[P]||$[P]===!0?(this.buildItem(P),this.addPendingElement(c)):(v.push($[P]),$[P].setAsParent(),T[P].parent!==void 0?this.buildElementParenting(c,T[P].parent,v):c.setHierarchy(v))),P+=1},sr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},sr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var $=this.createComp(c[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},sr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},sr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,T=this.elements.length;for($=0;$<T;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return c.length===0?v:v.getElementByPath(c)},sr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ir,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function gs(){}gs.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Hs.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new kn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,$=0,T=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<T;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<T;$+=1)p=this.hierarchy[$].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var $=!0,T=this.comp;$;)T.finalTransform?(T.data.hasMask&&v.splice(0,0,T.finalTransform),T=T.comp):$=!1;var P,q=v.length,me;for(P=0;P<q;P+=1)me=v[P].mat.applyToPointArray(0,0,0),p=[p[0]-me[0],p[1]-me[1],0];return p},mHelper:new kn};function xr(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,T,P=this.masksProperties?this.masksProperties.length:0;this.viewData=Ge(P),this.solidPath="";var q,me=this.masksProperties,J=0,$e=[],Ee,Re,F=xt(),Q,G,he,fe,W="clipPath",Y="clip-path";for(T=0;T<P;T+=1)if((me[T].mode!=="a"&&me[T].mode!=="n"||me[T].inv||me[T].o.k!==100||me[T].o.x)&&(W="mask",Y="mask"),(me[T].mode==="s"||me[T].mode==="i")&&J===0?(Q=bt("rect"),Q.setAttribute("fill","#ffffff"),Q.setAttribute("width",this.element.comp.data.w||0),Q.setAttribute("height",this.element.comp.data.h||0),$e.push(Q)):Q=null,q=bt("path"),me[T].mode==="n")this.viewData[T]={op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),elem:q,lastPath:""},$.appendChild(q);else{J+=1,q.setAttribute("fill",me[T].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var B;if(me[T].x.k!==0?(W="mask",Y="mask",fe=at.getProp(this.element,me[T].x,0,null,this.element),B=xt(),G=bt("filter"),G.setAttribute("id",B),he=bt("feMorphology"),he.setAttribute("operator","erode"),he.setAttribute("in","SourceGraphic"),he.setAttribute("radius","0"),G.appendChild(he),$.appendChild(G),q.setAttribute("stroke",me[T].mode==="s"?"#000000":"#ffffff")):(he=null,fe=null),this.storedData[T]={elem:q,x:fe,expan:he,lastPath:"",lastOperator:"",filterId:B,lastRadius:0},me[T].mode==="i"){Re=$e.length;var j=bt("g");for(Ee=0;Ee<Re;Ee+=1)j.appendChild($e[Ee]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",F+"_"+J),H.appendChild(q),$.appendChild(H),j.setAttribute("mask","url("+Te()+"#"+F+"_"+J+")"),$e.length=0,$e.push(j)}else $e.push(q);me[T].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[T]={elem:q,lastPath:"",op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),invRect:Q},this.viewData[T].prop.k||this.drawPath(me[T],this.viewData[T].prop.v,this.viewData[T])}for(this.maskElement=bt(W),P=$e.length,T=0;T<P;T+=1)this.maskElement.appendChild($e[T]);J>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(Y,"url("+Te()+"#"+F+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}xr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},xr.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var T=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Te()+"#"+this.storedData[v].filterId+")")),T.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},xr.prototype.getMaskelement=function(){return this.maskElement},xr.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},xr.prototype.drawPath=function(c,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],T,P;for(P=p._length,T=1;T<P;T+=1)$+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[T][0]+","+p.i[T][1]+" "+p.v[T][0]+","+p.v[T][1];if(p.c&&P>1&&($+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+$:$),v.elem.setAttribute("d",q)),v.lastPath=$}},xr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Fa=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p($,T){var P=bt("filter");return P.setAttribute("id",$),T!==!0&&(P.setAttribute("filterUnits","objectBoundingBox"),P.setAttribute("x","0%"),P.setAttribute("y","0%"),P.setAttribute("width","100%"),P.setAttribute("height","100%")),P}function v(){var $=bt("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return c}(),Gu=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),un={},ra="filter_result_";function Yu(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,T=xt(),P=Fa.createFilter(T,!0),q=0;this.filters=[];var me;for(p=0;p<$;p+=1){me=null;var J=c.data.ef[p].ty;if(un[J]){var $e=un[J].effect;me=new $e(P,c.effectsManager.effectElements[p],c,ra+q,v),v=ra+q,un[J].countsAsEffect&&(q+=1)}me&&this.filters.push(me)}q&&(c.globalData.defs.appendChild(P),c.layerElement.setAttribute("filter","url("+Te()+"#"+T+")")),this.filters.length&&c.addRenderableComponent(this)}Yu.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Bo(){}Bo.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var $=bt("clipPath"),T=bt("path");T.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var P=xt();if($.setAttribute("id",P),$.appendChild(T),this.globalData.defs.appendChild($),this.checkMasks()){var q=bt("g");q.setAttribute("clip-path","url("+Te()+"#"+P+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Te()+"#"+P+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new xr(this.data,this,this.globalData),this.renderableEffectsManager=new Yu(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,T,P,q;if(p===1||p===3){var me=bt("mask");me.setAttribute("id",v),me.setAttribute("mask-type",p===3?"luminance":"alpha"),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),me.appendChild(P),this.globalData.defs.appendChild(me),!Gu.maskType&&p===1&&(me.setAttribute("mask-type","luminance"),$=xt(),T=Fa.createFilter($),this.globalData.defs.appendChild(T),T.appendChild(Fa.createAlphaToLuminanceFilter()),q=bt("g"),q.appendChild(P),me.appendChild(q),q.setAttribute("filter","url("+Te()+"#"+$+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var $e=bt("g");J.appendChild($e),$=xt(),T=Fa.createFilter($);var Ee=bt("feComponentTransfer");Ee.setAttribute("in","SourceGraphic"),T.appendChild(Ee);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ee.appendChild(Re),this.globalData.defs.appendChild(T);var F=bt("rect");F.setAttribute("width",this.comp.data.w),F.setAttribute("height",this.comp.data.h),F.setAttribute("x","0"),F.setAttribute("y","0"),F.setAttribute("fill","#ffffff"),F.setAttribute("opacity","0"),$e.setAttribute("filter","url("+Te()+"#"+$+")"),$e.appendChild(F),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$e.appendChild(P),Gu.maskType||(J.setAttribute("mask-type","luminance"),T.appendChild(Fa.createAlphaToLuminanceFilter()),q=bt("g"),$e.appendChild(F),q.appendChild(this.layerElement),$e.appendChild(q)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Te()+"#"+p+")")}};function Ra(){}Ra.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Vo(){}(function(){var c={initElement:function(v,$,T){this.initFrame(),this.initBaseData(v,$,T),this.initTransform(v,$,T),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Le([Vn,Ye(c)],Vo)})();function No(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Le([na,gs,Bo,Ra,On,Vo],No),No.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},No.prototype.sourceRectAtTime=function(){return this.sourceRect};function Am(c,p){this.elem=c,this.pos=p}function _c(){}_c.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,T=v.length;$<T;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,T=$.length;T;)if(T-=1,$[T].elem===p){$[T].pos=v;return}$.push(new Am(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var jo={1:"butt",2:"round",3:"square"},vs={1:"miter",2:"round",3:"bevel"};function Pd(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,T=c.length;$<T;){if(c[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}Pd.prototype.setAsAnimated=function(){this._isAnimated=!0};function Mc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=bt("path"),this.msElem=null}Mc.prototype.reset=function(){this.d="",this._mdf=!1};function Ko(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ge(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ue("float32",p.length?p.length-1:0),this.dashoffset=Ue("float32",1),this.initDynamicPropertyContainer($);var T,P=p.length||0,q;for(T=0;T<P;T+=1)q=at.getProp(c,p[T].v,0,0,this),this.k=q.k||this.k,this.dataProps[T]={n:p[T].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}Ko.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Le([cn],Ko);function Zu(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.w=at.getProp(c,p.w,0,null,this),this.d=new Ko(c,p.d||{},"svg",this),this.c=at.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Le([cn],Zu);function Xu(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.c=at.getProp(c,p.c,1,255,this),this.style=v}Le([cn],Xu);function Fc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Le([cn],Fc);function Uo(c,p,v){this.data=p,this.c=Ue("uint8c",p.p*4);var $=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ue("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=at.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Uo.prototype.comparePoints=function(c,p){for(var v=0,$=this.o.length/2,T;v<$;){if(T=Math.abs(c[v*4]-c[p*4+v*2]),T>.01)return!1;v+=1}return!0},Uo.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Uo.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,$,T;for(p=0;p<v;p+=1)$=p%4===0?100:255,T=Math.round(this.prop.v[p]*$),this.c[p]!==T&&(this.c[p]=T,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,T=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==T&&(this.o[p-this.data.p*4]=T,this._omdf=!c);this._mdf=!c}},Le([cn],Uo);function ka(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}ka.prototype.initGradientData=function(c,p,v){this.o=at.getProp(c,p.o,0,.01,this),this.s=at.getProp(c,p.s,1,null,this),this.e=at.getProp(c,p.e,1,null,this),this.h=at.getProp(c,p.h||{k:0},0,.01,this),this.a=at.getProp(c,p.a||{k:0},0,Qt,this),this.g=new Uo(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},ka.prototype.setGradientData=function(c,p){var v=xt(),$=bt(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var T=[],P,q,me;for(me=p.g.p*4,q=0;q<me;q+=4)P=bt("stop"),$.appendChild(P),T.push(P);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Te()+"#"+v+")"),this.gf=$,this.cst=T},ka.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,T,P=bt("mask"),q=bt("path");P.appendChild(q);var me=xt(),J=xt();P.setAttribute("id",J);var $e=bt(c.t===1?"linearGradient":"radialGradient");$e.setAttribute("id",me),$e.setAttribute("spreadMethod","pad"),$e.setAttribute("gradientUnits","userSpaceOnUse"),T=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ee=this.stops;for($=c.g.p*4;$<T;$+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),$e.appendChild(v),Ee.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Te()+"#"+me+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",jo[c.lc||2]),q.setAttribute("stroke-linejoin",vs[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=$e,this.ms=P,this.ost=Ee,this.maskId=J,p.msElem=q}},Le([cn],ka);function Ju(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(c,p.w,0,null,this),this.d=new Ko(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Le([ka,cn],Ju);function Tm(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function _d(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var wr=function(p,v,$,T){if(v===0)return"";var P=p.o,q=p.i,me=p.v,J,$e=" M"+T.applyToPointStringified(me[0][0],me[0][1]);for(J=1;J<v;J+=1)$e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[J][0],q[J][1])+" "+T.applyToPointStringified(me[J][0],me[J][1]);return $&&v&&($e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[0][0],q[0][1])+" "+T.applyToPointStringified(me[0][0],me[0][1]),$e+="z"),$e},Rc=function(){var c=new kn,p=new kn,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return me;case"gf":return $e;case"gs":return J;case"st":return Ee;case"sh":case"el":case"rc":case"sr":return q;case"tr":return T;case"no":return P;default:return null}}function T(Re,F,Q){(Q||F.transform.op._mdf)&&F.transform.container.setAttribute("opacity",F.transform.op.v),(Q||F.transform.mProps._mdf)&&F.transform.container.setAttribute("transform",F.transform.mProps.v.to2dCSS())}function P(){}function q(Re,F,Q){var G,he,fe,W,Y,B,j=F.styles.length,H=F.lvl,te,ae,pe,Oe,nt;for(B=0;B<j;B+=1){if(W=F.sh._mdf||Q,F.styles[B].lvl<H){for(ae=p.reset(),Oe=H-F.styles[B].lvl,nt=F.transformers.length-1;!W&&Oe>0;)W=F.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-F.styles[B].lvl,nt=F.transformers.length-1;Oe>0;)pe=F.transformers[nt].mProps.v.props,ae.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),Oe-=1,nt-=1}else ae=c;if(te=F.sh.paths,he=te._length,W){for(fe="",G=0;G<he;G+=1)Y=te.shapes[G],Y&&Y._length&&(fe+=wr(Y,Y._length,Y.c,ae));F.caches[B]=fe}else fe=F.caches[B];F.styles[B].d+=Re.hd===!0?"":fe,F.styles[B]._mdf=W||F.styles[B]._mdf}}function me(Re,F,Q){var G=F.style;(F.c._mdf||Q)&&G.pElem.setAttribute("fill","rgb("+$t(F.c.v[0])+","+$t(F.c.v[1])+","+$t(F.c.v[2])+")"),(F.o._mdf||Q)&&G.pElem.setAttribute("fill-opacity",F.o.v)}function J(Re,F,Q){$e(Re,F,Q),Ee(Re,F,Q)}function $e(Re,F,Q){var G=F.gf,he=F.g._hasOpacity,fe=F.s.v,W=F.e.v;if(F.o._mdf||Q){var Y=Re.ty==="gf"?"fill-opacity":"stroke-opacity";F.style.pElem.setAttribute(Y,F.o.v)}if(F.s._mdf||Q){var B=Re.t===1?"x1":"cx",j=B==="x1"?"y1":"cy";G.setAttribute(B,fe[0]),G.setAttribute(j,fe[1]),he&&!F.g._collapsable&&(F.of.setAttribute(B,fe[0]),F.of.setAttribute(j,fe[1]))}var H,te,ae,pe;if(F.g._cmdf||Q){H=F.cst;var Oe=F.g.c;for(ae=H.length,te=0;te<ae;te+=1)pe=H[te],pe.setAttribute("offset",Oe[te*4]+"%"),pe.setAttribute("stop-color","rgb("+Oe[te*4+1]+","+Oe[te*4+2]+","+Oe[te*4+3]+")")}if(he&&(F.g._omdf||Q)){var nt=F.g.o;for(F.g._collapsable?H=F.cst:H=F.ost,ae=H.length,te=0;te<ae;te+=1)pe=H[te],F.g._collapsable||pe.setAttribute("offset",nt[te*2]+"%"),pe.setAttribute("stop-opacity",nt[te*2+1])}if(Re.t===1)(F.e._mdf||Q)&&(G.setAttribute("x2",W[0]),G.setAttribute("y2",W[1]),he&&!F.g._collapsable&&(F.of.setAttribute("x2",W[0]),F.of.setAttribute("y2",W[1])));else{var tt;if((F.s._mdf||F.e._mdf||Q)&&(tt=Math.sqrt(Math.pow(fe[0]-W[0],2)+Math.pow(fe[1]-W[1],2)),G.setAttribute("r",tt),he&&!F.g._collapsable&&F.of.setAttribute("r",tt)),F.e._mdf||F.h._mdf||F.a._mdf||Q){tt||(tt=Math.sqrt(Math.pow(fe[0]-W[0],2)+Math.pow(fe[1]-W[1],2)));var Ve=Math.atan2(W[1]-fe[1],W[0]-fe[0]),ot=F.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=tt*ot,Be=Math.cos(Ve+F.a.v)*ct+fe[0],xe=Math.sin(Ve+F.a.v)*ct+fe[1];G.setAttribute("fx",Be),G.setAttribute("fy",xe),he&&!F.g._collapsable&&(F.of.setAttribute("fx",Be),F.of.setAttribute("fy",xe))}}}function Ee(Re,F,Q){var G=F.style,he=F.d;he&&(he._mdf||Q)&&he.dashStr&&(G.pElem.setAttribute("stroke-dasharray",he.dashStr),G.pElem.setAttribute("stroke-dashoffset",he.dashoffset[0])),F.c&&(F.c._mdf||Q)&&G.pElem.setAttribute("stroke","rgb("+$t(F.c.v[0])+","+$t(F.c.v[1])+","+$t(F.c.v[2])+")"),(F.o._mdf||Q)&&G.pElem.setAttribute("stroke-opacity",F.o.v),(F.w._mdf||Q)&&(G.pElem.setAttribute("stroke-width",F.w.v),G.msElem&&G.msElem.setAttribute("stroke-width",F.w.v))}return v}();function hn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Le([na,gs,Bo,_c,Ra,On,Vo],hn),hn.prototype.initSecondaryElement=function(){},hn.prototype.identityMatrix=new kn,hn.prototype.buildExpressionInterface=function(){},hn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},hn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,$,T=this.stylesList.length,P,q=[],me=!1;for($=0;$<T;$+=1){for(P=this.stylesList[$],me=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(P)!==-1&&(q.push(v),me=v._isAnimated||me);q.length>1&&me&&this.setShapesAsAnimated(q)}},hn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},hn.prototype.createStyleElement=function(c,p){var v,$=new Mc(c,p),T=$.pElem;if(c.ty==="st")v=new Zu(this,c,$);else if(c.ty==="fl")v=new Xu(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var P=c.ty==="gf"?ka:Ju;v=new P(this,c,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),T.setAttribute("mask","url("+Te()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Fc(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(T.setAttribute("stroke-linecap",jo[c.lc||2]),T.setAttribute("stroke-linejoin",vs[c.lj||2]),T.setAttribute("fill-opacity","0"),c.lj===1&&T.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&T.setAttribute("fill-rule","evenodd"),c.ln&&T.setAttribute("id",c.ln),c.cl&&T.setAttribute("class",c.cl),c.bm&&(T.style["mix-blend-mode"]=En(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},hn.prototype.createGroupElement=function(c){var p=new Tm;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=En(c.bm)),p},hn.prototype.createTransformElement=function(c,p){var v=Hs.getTransformProperty(this,c,this),$=new _d(v,v.o,p);return this.addToAnimatedContents(c,$),$},hn.prototype.createShapeElement=function(c,p,v){var $=4;c.ty==="rc"?$=5:c.ty==="el"?$=6:c.ty==="sr"&&($=7);var T=li.getShapeProp(this,c,$,this),P=new Pd(p,v,T);return this.shapes.push(P),this.addShapeToModifiers(P),this.addToAnimatedContents(c,P),P},hn.prototype.addToAnimatedContents=function(c,p){for(var v=0,$=this.animatedContents.length;v<$;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Rc.createRenderFunction(c),element:p,data:c})},hn.prototype.setElementStyles=function(c){var p=c.styles,v,$=this.stylesList.length;for(v=0;v<$;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},hn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},hn.prototype.searchShapes=function(c,p,v,$,T,P,q){var me=[].concat(P),J,$e=c.length-1,Ee,Re,F=[],Q=[],G,he,fe;for(J=$e;J>=0;J-=1){if(fe=this.searchProcessedElement(c[J]),fe?p[J]=v[fe-1]:c[J]._render=q,c[J].ty==="fl"||c[J].ty==="st"||c[J].ty==="gf"||c[J].ty==="gs"||c[J].ty==="no")fe?p[J].style.closed=!1:p[J]=this.createStyleElement(c[J],T),c[J]._render&&p[J].style.pElem.parentNode!==$&&$.appendChild(p[J].style.pElem),F.push(p[J].style);else if(c[J].ty==="gr"){if(!fe)p[J]=this.createGroupElement(c[J]);else for(Re=p[J].it.length,Ee=0;Ee<Re;Ee+=1)p[J].prevViewData[Ee]=p[J].it[Ee];this.searchShapes(c[J].it,p[J].it,p[J].prevViewData,p[J].gr,T+1,me,q),c[J]._render&&p[J].gr.parentNode!==$&&$.appendChild(p[J].gr)}else c[J].ty==="tr"?(fe||(p[J]=this.createTransformElement(c[J],$)),G=p[J].transform,me.push(G)):c[J].ty==="sh"||c[J].ty==="rc"||c[J].ty==="el"||c[J].ty==="sr"?(fe||(p[J]=this.createShapeElement(c[J],me,T)),this.setElementStyles(p[J])):c[J].ty==="tm"||c[J].ty==="rd"||c[J].ty==="ms"||c[J].ty==="pb"||c[J].ty==="zz"||c[J].ty==="op"?(fe?(he=p[J],he.closed=!1):(he=_r.getModifier(c[J].ty),he.init(this,c[J]),p[J]=he,this.shapeModifiers.push(he)),Q.push(he)):c[J].ty==="rp"&&(fe?(he=p[J],he.closed=!0):(he=_r.getModifier(c[J].ty),p[J]=he,he.init(this,c,J,p),this.shapeModifiers.push(he),q=!1),Q.push(he));this.addProcessedElement(c[J],J+1)}for($e=F.length,J=0;J<$e;J+=1)F[J].closed=!0;for($e=Q.length,J=0;J<$e;J+=1)Q[J].closed=!0},hn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},hn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},hn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Qu(c,p,v,$,T,P){this.o=c,this.sw=p,this.sc=v,this.fc=$,this.m=T,this.p=P,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}Qu.prototype.update=function(c,p,v,$,T,P){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,q=!0),this.m!==T&&(this.m=T,this._mdf.m=!0,q=!0),P.length&&(this.p[0]!==P[0]||this.p[1]!==P[1]||this.p[4]!==P[4]||this.p[5]!==P[5]||this.p[12]!==P[12]||this.p[13]!==P[13])&&(this.p=P,this._mdf.p=!0,q=!0),q};function or(c,p){this._frameId=de,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}or.prototype.defaultBoxWidth=[0,0],or.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},or.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},or.prototype.searchProperty=function(){return this.searchKeyframes()},or.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},or.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},or.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,T=this.effectsSequence.length,P=c||this.data.d.k[this.keysIndex].s;for($=0;$<T;$+=1)v!==this.keysIndex?P=this.effectsSequence[$](P,P.t):P=this.effectsSequence[$](this.currentData,P.t);p!==P&&this.setCurrentData(P),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},or.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=c.length;v<=$-1&&!(v===$-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},or.prototype.buildFinalText=function(c){for(var p=[],v=0,$=c.length,T,P,q=!1;v<$;)T=c.charCodeAt(v),ir.isCombinedCharacter(T)?p[p.length-1]+=c.charAt(v):T>=55296&&T<=56319?(P=c.charCodeAt(v+1),P>=56320&&P<=57343?(q||ir.isModifier(T,P)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):T>56319?(P=c.charCodeAt(v+1),ir.isZeroWidthJoiner(T,P)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ir.isZeroWidthJoiner(T)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},or.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],T,P,q,me=0,J,$e=v.m.g,Ee=0,Re=0,F=0,Q=[],G=0,he=0,fe,W,Y=p.getFontByName(c.f),B,j=0,H=tr(Y);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),P=c.finalText.length,c.finalLineHeight=c.lh;var te=c.tr/1e3*c.finalSize,ae;if(c.sz)for(var pe=!0,Oe=c.sz[0],nt=c.sz[1],tt,Ve;pe;){Ve=this.buildFinalText(c.t),tt=0,G=0,P=Ve.length,te=c.tr/1e3*c.finalSize;var ot=-1;for(T=0;T<P;T+=1)ae=Ve[T].charCodeAt(0),q=!1,Ve[T]===" "?ot=T:(ae===13||ae===3)&&(G=0,q=!0,tt+=c.finalLineHeight||c.finalSize*1.2),p.chars?(B=p.getCharData(Ve[T],Y.fStyle,Y.fFamily),j=q?0:B.w*c.finalSize/100):j=p.measureText(Ve[T],c.f,c.finalSize),G+j>Oe&&Ve[T]!==" "?(ot===-1?P+=1:T=ot,tt+=c.finalLineHeight||c.finalSize*1.2,Ve.splice(T,ot===T?1:0,"\r"),ot=-1,G=0):(G+=j,G+=te);tt+=Y.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&nt<tt?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ve,P=c.finalText.length,pe=!1)}G=-te,j=0;var ct=0,Be;for(T=0;T<P;T+=1)if(q=!1,Be=c.finalText[T],ae=Be.charCodeAt(0),ae===13||ae===3?(ct=0,Q.push(G),he=G>he?G:he,G=-2*te,J="",q=!0,F+=1):J=Be,p.chars?(B=p.getCharData(Be,Y.fStyle,p.getFontByName(c.f).fFamily),j=q?0:B.w*c.finalSize/100):j=p.measureText(J,c.f,c.finalSize),Be===" "?ct+=j+te:(G+=j+te+ct,ct=0),$.push({l:j,an:j,add:Ee,n:q,anIndexes:[],val:J,line:F,animatorJustifyOffset:0}),$e==2){if(Ee+=j,J===""||J===" "||T===P-1){for((J===""||J===" ")&&(Ee-=j);Re<=T;)$[Re].an=Ee,$[Re].ind=me,$[Re].extra=j,Re+=1;me+=1,Ee=0}}else if($e==3){if(Ee+=j,J===""||T===P-1){for(J===""&&(Ee-=j);Re<=T;)$[Re].an=Ee,$[Re].ind=me,$[Re].extra=j,Re+=1;Ee=0,me+=1}}else $[me].ind=me,$[me].extra=0,me+=1;if(c.l=$,he=G>he?G:he,Q.push(G),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=he,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=Q;var xe=v.a,ue,X;W=xe.length;var ve,je,ke=[];for(fe=0;fe<W;fe+=1){for(ue=xe[fe],ue.a.sc&&(c.strokeColorAnim=!0),ue.a.sw&&(c.strokeWidthAnim=!0),(ue.a.fc||ue.a.fh||ue.a.fs||ue.a.fb)&&(c.fillColorAnim=!0),je=0,ve=ue.s.b,T=0;T<P;T+=1)X=$[T],X.anIndexes[fe]=je,(ve==1&&X.val!==""||ve==2&&X.val!==""&&X.val!==" "||ve==3&&(X.n||X.val==" "||T==P-1)||ve==4&&(X.n||T==P-1))&&(ue.s.rn===1&&ke.push(je),je+=1);v.a[fe].s.totalChars=je;var lt=-1,At;if(ue.s.rn===1)for(T=0;T<P;T+=1)X=$[T],lt!=X.anIndexes[fe]&&(lt=X.anIndexes[fe],At=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),X.anIndexes[fe]=At}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Y.ascent*c.finalSize/100},or.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},or.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},or.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},or.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Pm=function(){var c=Math.max,p=Math.min,v=Math.floor;function $(P,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=P,this.comp=P.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(P),this.s=at.getProp(P,q.s||{k:0},0,0,this),"e"in q?this.e=at.getProp(P,q.e,0,0,this):this.e={v:100},this.o=at.getProp(P,q.o||{k:0},0,0,this),this.xe=at.getProp(P,q.xe||{k:0},0,0,this),this.ne=at.getProp(P,q.ne||{k:0},0,0,this),this.sm=at.getProp(P,q.sm||{k:100},0,0,this),this.a=at.getProp(P,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var me=0,J=0,$e=1,Ee=1;this.ne.v>0?me=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?$e=1-this.xe.v/100:Ee=1+this.xe.v/100;var Re=as.getBezierEasing(me,J,$e,Ee).get,F=0,Q=this.finalS,G=this.finalE,he=this.data.sh;if(he===2)G===Q?F=q>=G?1:0:F=c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),F=Re(F);else if(he===3)G===Q?F=q>=G?0:1:F=1-c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),F=Re(F);else if(he===4)G===Q?F=0:(F=c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),F<.5?F*=2:F=1-2*(F-.5)),F=Re(F);else if(he===5){if(G===Q)F=0;else{var fe=G-Q;q=p(c(0,q+.5-Q),G-Q);var W=-fe/2+q,Y=fe/2;F=Math.sqrt(1-W*W/(Y*Y))}F=Re(F)}else he===6?(G===Q?F=0:(q=p(c(0,q+.5-Q),G-Q),F=(1+Math.cos(Math.PI+Math.PI*2*q/(G-Q)))/2),F=Re(F)):(q>=v(Q)&&(q-Q<0?F=c(0,p(p(G,1)-(Q-q),1)):F=c(0,p(G-q,1))),F=Re(F));if(this.sm.v!==100){var B=this.sm.v*.01;B===0&&(B=1e-8);var j=.5-B*.5;F<j?F=0:(F=(F-j)/B,F>1&&(F=1))}return F*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var me=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/me,$e=this.s.v/me+J,Ee=this.e.v/me+J;if($e>Ee){var Re=$e;$e=Ee,Ee=Re}this.finalS=$e,this.finalE=Ee}},Le([cn],$);function T(P,q,me){return new $(P,q)}return{getTextSelectorProp:T}}();function _m(c,p,v){var $={propType:!1},T=at.getProp,P=p.a;this.a={r:P.r?T(c,P.r,0,Qt,v):$,rx:P.rx?T(c,P.rx,0,Qt,v):$,ry:P.ry?T(c,P.ry,0,Qt,v):$,sk:P.sk?T(c,P.sk,0,Qt,v):$,sa:P.sa?T(c,P.sa,0,Qt,v):$,s:P.s?T(c,P.s,1,.01,v):$,a:P.a?T(c,P.a,1,0,v):$,o:P.o?T(c,P.o,0,.01,v):$,p:P.p?T(c,P.p,1,0,v):$,sw:P.sw?T(c,P.sw,0,0,v):$,sc:P.sc?T(c,P.sc,1,0,v):$,fc:P.fc?T(c,P.fc,1,0,v):$,fh:P.fh?T(c,P.fh,0,0,v):$,fs:P.fs?T(c,P.fs,0,.01,v):$,fb:P.fb?T(c,P.fb,0,.01,v):$,t:P.t?T(c,P.t,0,0,v):$},this.s=Pm.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function ys(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ge(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}ys.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,$=at.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new _m(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=$(this._elem,this._textData.m.a,1,0,this)},ys.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,$=this._animatorsData,T=this._textData,P=this.mHelper,q=this._renderType,me=this.renderedLetters.length,J,$e,Ee,Re,F=c.l,Q,G,he,fe,W,Y,B,j,H,te,ae,pe,Oe,nt,tt;if(this._hasMaskedPath){if(tt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ve=tt.v;this._pathData.r.v&&(Ve=Ve.reverse()),Q={tLength:0,segments:[]},Re=Ve._length-1;var ot;for(pe=0,Ee=0;Ee<Re;Ee+=1)ot=Wr.buildBezierData(Ve.v[Ee],Ve.v[Ee+1],[Ve.o[Ee][0]-Ve.v[Ee][0],Ve.o[Ee][1]-Ve.v[Ee][1]],[Ve.i[Ee+1][0]-Ve.v[Ee+1][0],Ve.i[Ee+1][1]-Ve.v[Ee+1][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength;Ee=Re,tt.v.c&&(ot=Wr.buildBezierData(Ve.v[Ee],Ve.v[0],[Ve.o[Ee][0]-Ve.v[Ee][0],Ve.o[Ee][1]-Ve.v[Ee][1]],[Ve.i[0][0]-Ve.v[0][0],Ve.i[0][1]-Ve.v[0][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength),this._pathData.pi=Q}if(Q=this._pathData.pi,G=this._pathData.f.v,B=0,Y=1,fe=0,W=!0,te=Q.segments,G<0&&tt.v.c)for(Q.tLength<Math.abs(G)&&(G=-Math.abs(G)%Q.tLength),B=te.length-1,H=te[B].points,Y=H.length-1;G<0;)G+=H[Y].partialLength,Y-=1,Y<0&&(B-=1,H=te[B].points,Y=H.length-1);H=te[B].points,j=H[Y-1],he=H[Y],ae=he.partialLength}Re=F.length,J=0,$e=0;var ct=c.finalSize*1.2*.714,Be=!0,xe,ue,X,ve,je;ve=$.length;var ke,lt=-1,At,Ct,bn,zt=G,ur=B,Yn=Y,Ln=-1,Nn,jn,pr,ft,ln,Gr,Pi,ia,di="",aa=this.defaultPropsArray,sa;if(c.j===2||c.j===1){var Yt=0,$n=0,Ia=c.j===2?-.5:-1,hi=0,oa=!0;for(Ee=0;Ee<Re;Ee+=1)if(F[Ee].n){for(Yt&&(Yt+=$n);hi<Ee;)F[hi].animatorJustifyOffset=Yt,hi+=1;Yt=0,oa=!0}else{for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(oa&&c.j===2&&($n+=xe.t.v*Ia),ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),ke.length?Yt+=xe.t.v*ke[0]*Ia:Yt+=xe.t.v*ke*Ia);oa=!1}for(Yt&&(Yt+=$n);hi<Ee;)F[hi].animatorJustifyOffset=Yt,hi+=1}for(Ee=0;Ee<Re;Ee+=1){if(P.reset(),Nn=1,F[Ee].n)J=0,$e+=c.yOffset,$e+=Be?1:0,G=zt,Be=!1,this._hasMaskedPath&&(B=ur,Y=Yn,H=te[B].points,j=H[Y-1],he=H[Y],ae=he.partialLength,fe=0),di="",ia="",Gr="",sa="",aa=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ln!==F[Ee].line){switch(c.j){case 1:G+=pe-c.lineWidths[F[Ee].line];break;case 2:G+=(pe-c.lineWidths[F[Ee].line])/2;break}Ln=F[Ee].line}lt!==F[Ee].ind&&(F[lt]&&(G+=F[lt].extra),G+=F[Ee].an/2,lt=F[Ee].ind),G+=v[0]*F[Ee].an*.005;var pi=0;for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.p.v[0]*ke[0]:pi+=xe.p.v[0]*ke),xe.a.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.a.v[0]*ke[0]:pi+=xe.a.v[0]*ke);for(W=!0,this._pathData.a.v&&(G=F[0].an*.5+(pe-this._pathData.f.v-F[0].an*.5-F[F.length-1].an*.5)*lt/(Re-1),G+=this._pathData.f.v);W;)fe+ae>=G+pi||!H?(Oe=(G+pi-fe)/he.partialLength,Ct=j.point[0]+(he.point[0]-j.point[0])*Oe,bn=j.point[1]+(he.point[1]-j.point[1])*Oe,P.translate(-v[0]*F[Ee].an*.005,-(v[1]*ct)*.01),W=!1):H&&(fe+=he.partialLength,Y+=1,Y>=H.length&&(Y=0,B+=1,te[B]?H=te[B].points:tt.v.c?(Y=0,B=0,H=te[B].points):(fe-=he.partialLength,H=null)),H&&(j=he,he=H[Y],ae=he.partialLength));At=F[Ee].an/2-F[Ee].add,P.translate(-At,0,0)}else At=F[Ee].an/2-F[Ee].add,P.translate(-At,0,0),P.translate(-v[0]*F[Ee].an*.005,-v[1]*ct*.01,0);for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),(J!==0||c.j!==0)&&(this._hasMaskedPath?ke.length?G+=xe.t.v*ke[0]:G+=xe.t.v*ke:ke.length?J+=xe.t.v*ke[0]:J+=xe.t.v*ke));for(c.strokeWidthAnim&&(pr=c.sw||0),c.strokeColorAnim&&(c.sc?jn=[c.sc[0],c.sc[1],c.sc[2]]:jn=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),X=0;X<ve;X+=1)xe=$[X].a,xe.a.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),ke.length?P.translate(-xe.a.v[0]*ke[0],-xe.a.v[1]*ke[1],xe.a.v[2]*ke[2]):P.translate(-xe.a.v[0]*ke,-xe.a.v[1]*ke,xe.a.v[2]*ke));for(X=0;X<ve;X+=1)xe=$[X].a,xe.s.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),ke.length?P.scale(1+(xe.s.v[0]-1)*ke[0],1+(xe.s.v[1]-1)*ke[1],1):P.scale(1+(xe.s.v[0]-1)*ke,1+(xe.s.v[1]-1)*ke,1));for(X=0;X<ve;X+=1){if(xe=$[X].a,ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),xe.sk.propType&&(ke.length?P.skewFromAxis(-xe.sk.v*ke[0],xe.sa.v*ke[1]):P.skewFromAxis(-xe.sk.v*ke,xe.sa.v*ke)),xe.r.propType&&(ke.length?P.rotateZ(-xe.r.v*ke[2]):P.rotateZ(-xe.r.v*ke)),xe.ry.propType&&(ke.length?P.rotateY(xe.ry.v*ke[1]):P.rotateY(xe.ry.v*ke)),xe.rx.propType&&(ke.length?P.rotateX(xe.rx.v*ke[0]):P.rotateX(xe.rx.v*ke)),xe.o.propType&&(ke.length?Nn+=(xe.o.v*ke[0]-Nn)*ke[0]:Nn+=(xe.o.v*ke-Nn)*ke),c.strokeWidthAnim&&xe.sw.propType&&(ke.length?pr+=xe.sw.v*ke[0]:pr+=xe.sw.v*ke),c.strokeColorAnim&&xe.sc.propType)for(ln=0;ln<3;ln+=1)ke.length?jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke[0]:jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke;if(c.fillColorAnim&&c.fc){if(xe.fc.propType)for(ln=0;ln<3;ln+=1)ke.length?ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke[0]:ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke;xe.fh.propType&&(ke.length?ft=It(ft,xe.fh.v*ke[0]):ft=It(ft,xe.fh.v*ke)),xe.fs.propType&&(ke.length?ft=Ut(ft,xe.fs.v*ke[0]):ft=Ut(ft,xe.fs.v*ke)),xe.fb.propType&&(ke.length?ft=Pt(ft,xe.fb.v*ke[0]):ft=Pt(ft,xe.fb.v*ke))}}for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(ue=$[X].s,ke=ue.getMult(F[Ee].anIndexes[X],T.a[X].s.totalChars),this._hasMaskedPath?ke.length?P.translate(0,xe.p.v[1]*ke[0],-xe.p.v[2]*ke[1]):P.translate(0,xe.p.v[1]*ke,-xe.p.v[2]*ke):ke.length?P.translate(xe.p.v[0]*ke[0],xe.p.v[1]*ke[1],-xe.p.v[2]*ke[2]):P.translate(xe.p.v[0]*ke,xe.p.v[1]*ke,-xe.p.v[2]*ke));if(c.strokeWidthAnim&&(Gr=pr<0?0:pr),c.strokeColorAnim&&(Pi="rgb("+Math.round(jn[0]*255)+","+Math.round(jn[1]*255)+","+Math.round(jn[2]*255)+")"),c.fillColorAnim&&c.fc&&(ia="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(P.translate(0,-c.ls),P.translate(0,v[1]*ct*.01+$e,0),this._pathData.p.v){nt=(he.point[1]-j.point[1])/(he.point[0]-j.point[0]);var ua=Math.atan(nt)*180/Math.PI;he.point[0]<j.point[0]&&(ua+=180),P.rotate(-ua*Math.PI/180)}P.translate(Ct,bn,0),G-=v[0]*F[Ee].an*.005,F[Ee+1]&<!==F[Ee+1].ind&&(G+=F[Ee].an/2,G+=c.tr*.001*c.finalSize)}else{switch(P.translate(J,$e,0),c.ps&&P.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:P.translate(F[Ee].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ee].line]),0,0);break;case 2:P.translate(F[Ee].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ee].line])/2,0,0);break}P.translate(0,-c.ls),P.translate(At,0,0),P.translate(v[0]*F[Ee].an*.005,v[1]*ct*.01,0),J+=F[Ee].l+c.tr*.001*c.finalSize}q==="html"?di=P.toCSS():q==="svg"?di=P.to2dCSS():aa=[P.props[0],P.props[1],P.props[2],P.props[3],P.props[4],P.props[5],P.props[6],P.props[7],P.props[8],P.props[9],P.props[10],P.props[11],P.props[12],P.props[13],P.props[14],P.props[15]],sa=Nn}me<=Ee?(je=new Qu(sa,Gr,Pi,ia,di,aa),this.renderedLetters.push(je),me+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[Ee],this.lettersChangedFlag=je.update(sa,Gr,Pi,ia,di,aa)||this.lettersChangedFlag)}}},ys.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ys.prototype.mHelper=new kn,ys.prototype.defaultPropsArray=[],Le([cn],ys);function fi(){}fi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new or(this,c.t,this.dynamicProperties),this.textAnimator=new ys(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},fi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},fi.prototype.createPathShape=function(c,p){var v,$=p.length,T,P="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(T=p[v].ks.k,P+=wr(T,T.i.length,!0,c));return P},fi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},fi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},fi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},fi.prototype.applyTextPropertiesToMatrix=function(c,p,v,$,T){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate($,T,0)},fi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},fi.prototype.emptyProp=new Qu,fi.prototype.destroy=function(){};var Mm={shapes:[]};function Cr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Le([na,gs,Bo,Ra,On,Vo,fi],Cr),Cr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Cr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,$=[],T="";p<v;)c[p]==="\r"||c[p]===""?($.push(T),T=""):T+=c[p],p+=1;return $.push(T),$},Cr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return c},Cr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ge(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var T=v.fWeight,P=v.fStyle;this.layerElement.setAttribute("font-style",P),this.layerElement.setAttribute("font-weight",T)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],me=!!this.globalData.fontManager.chars;p=q.length;var J,$e=this.mHelper,Ee="",Re=this.data.singleShape,F=0,Q=0,G=!0,he=v.tr*.001*v.finalSize;if(Re&&!me&&!v.sz){var fe=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}fe.setAttribute("text-anchor",W),fe.setAttribute("letter-spacing",he);var Y=this.buildTextContents(v.finalText);for(p=Y.length,Q=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)J=this.textSpans[c].span||bt("tspan"),J.textContent=Y[c],J.setAttribute("x",0),J.setAttribute("y",Q),J.style.display="inherit",fe.appendChild(J),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=J,Q+=v.finalLineHeight;this.layerElement.appendChild(fe)}else{var B=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!me||!Re||c===0){if(J=B>c?this.textSpans[c].span:bt(me?"g":"text"),B<=c){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=J,me){var H=bt("g");J.appendChild(H),this.textSpans[c].childSpan=H}this.textSpans[c].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if($e.reset(),Re&&(q[c].n&&(F=-he,Q+=v.yOffset,Q+=G?1:0,G=!1),this.applyTextPropertiesToMatrix(v,$e,q[c].line,F,Q),F+=q[c].l||0,F+=he),me){j=this.globalData.fontManager.getCharData(v.finalText[c],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var te;if(j.t===1)te=new Hr(j.data,this.globalData,this);else{var ae=Mm;j.data&&j.data.shapes&&(ae=this.buildShapeData(j.data,v.finalSize)),te=new hn(ae,this.globalData,this)}if(this.textSpans[c].glyph){var pe=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(pe.layerElement),pe.destroy()}this.textSpans[c].glyph=te,te._debug=!0,te.prepareFrame(0),te.renderFrame(),this.textSpans[c].childSpan.appendChild(te.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&J.setAttribute("transform","translate("+$e.props[12]+","+$e.props[13]+")"),J.textContent=q[c].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&J&&J.setAttribute("d",Ee)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Cr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},Cr.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Cr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;p=$.length;var T,P,q;for(c=0;c<p;c+=1)$[c].n||(T=v[c],P=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),T._mdf.m&&P.setAttribute("transform",T.m),T._mdf.o&&P.setAttribute("opacity",T.o),T._mdf.sw&&P.setAttribute("stroke-width",T.sw),T._mdf.sc&&P.setAttribute("stroke",T.sc),T._mdf.fc&&P.setAttribute("fill",T.fc))}};function kc(c,p,v){this.initElement(c,p,v)}Le([No],kc),kc.prototype.createContent=function(){var c=bt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Oa(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Oa.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Oa.prototype.renderFrame=function(){},Oa.prototype.getBaseElement=function(){return null},Oa.prototype.destroy=function(){},Oa.prototype.sourceRectAtTime=function(){},Oa.prototype.hide=function(){},Le([na,gs,Ra,On],Oa);function In(){}Le([sr],In),In.prototype.createNull=function(c){return new Oa(c,this.globalData,this)},In.prototype.createShape=function(c){return new hn(c,this.globalData,this)},In.prototype.createText=function(c){return new Cr(c,this.globalData,this)},In.prototype.createImage=function(c){return new No(c,this.globalData,this)},In.prototype.createSolid=function(c){return new kc(c,this.globalData,this)},In.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=bt("clipPath"),$=bt("rect");$.setAttribute("width",c.w),$.setAttribute("height",c.h),$.setAttribute("x",0),$.setAttribute("y",0);var T=xt();v.setAttribute("id",T),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+Te()+"#"+T+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ge(c.layers.length)},In.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},In.prototype.updateContainerSize=function(){},In.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},In.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,si()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var $="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var T=p[$],P=T.getMatte(this.layers[c].tt);v.setMatte(P)}}}},In.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var $="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,T=this.elements[$],P=T.getMatte(this.layers[p].tt);c.setMatte(P);break}p+=1}}},In.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},In.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var $=0,T;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(T=this.elements[$].getBaseElement()),$+=1;T?this.layerElement.insertBefore(v,T):this.layerElement.appendChild(v)}},In.prototype.hide=function(){this.layerElement.style.display="none"},In.prototype.show=function(){this.layerElement.style.display="block"};function Ti(){}Le([na,gs,Ra,On,Vo],Ti),Ti.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ti.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ti.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Ti.prototype.setElements=function(c){this.elements=c},Ti.prototype.getElements=function(){return this.elements},Ti.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ti.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Hr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ge(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Le([In,Ti,Bo],Hr),Hr.prototype.createComp=function(c){return new Hr(c,this.globalData,this)};function Xs(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var $=bt("title"),T=xt();$.setAttribute("id",T),$.textContent=p.title,this.svgElement.appendChild($),v+=T}if(p&&p.description){var P=bt("desc"),q=xt();P.setAttribute("id",q),P.textContent=p.description,this.svgElement.appendChild(P),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var me=bt("defs");this.svgElement.appendChild(me);var J=bt("g");this.svgElement.appendChild(J),this.layerElement=J,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:me,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Le([In],Xs),Xs.prototype.createComp=function(c){return new Hr(c,this.globalData,this)},Iu("svg",Xs),_r.registerModifier("tm",Mr),_r.registerModifier("pb",Ta),_r.registerModifier("rp",hr),_r.registerModifier("rd",us),_r.registerModifier("zz",ds),_r.registerModifier("op",yn),jt})})(o,o.exports);var l=o.exports;function d(U,ee){var N=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(N!=null){var O,K,de,k,se=[],oe=!0,Te=!1;try{if(de=(N=N.call(U)).next,ee!==0)for(;!(oe=(O=de.call(N)).done)&&(se.push(O.value),se.length!==ee);oe=!0);}catch(Me){Te=!0,K=Me}finally{try{if(!oe&&N.return!=null&&(k=N.return(),Object(k)!==k))return}finally{if(Te)throw K}}return se}}function h(U,ee){var N=Object.keys(U);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(U);ee&&(O=O.filter(function(K){return Object.getOwnPropertyDescriptor(U,K).enumerable})),N.push.apply(N,O)}return N}function m(U){for(var ee=1;ee<arguments.length;ee++){var N=arguments[ee]!=null?arguments[ee]:{};ee%2?h(Object(N),!0).forEach(function(O){g(U,O,N[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(N)):h(Object(N)).forEach(function(O){Object.defineProperty(U,O,Object.getOwnPropertyDescriptor(N,O))})}return U}function g(U,ee,N){return ee=_(ee),ee in U?Object.defineProperty(U,ee,{value:N,enumerable:!0,configurable:!0,writable:!0}):U[ee]=N,U}function b(U,ee){if(U==null)return{};var N={},O=Object.keys(U),K,de;for(de=0;de<O.length;de++)K=O[de],!(ee.indexOf(K)>=0)&&(N[K]=U[K]);return N}function w(U,ee){if(U==null)return{};var N=b(U,ee),O,K;if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(U);for(K=0;K<de.length;K++)O=de[K],!(ee.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(U,O)&&(N[O]=U[O])}return N}function x(U,ee){return A(U)||d(U,ee)||E(U,ee)||S()}function A(U){if(Array.isArray(U))return U}function E(U,ee){if(U){if(typeof U=="string")return C(U,ee);var N=Object.prototype.toString.call(U).slice(8,-1);if(N==="Object"&&U.constructor&&(N=U.constructor.name),N==="Map"||N==="Set")return Array.from(U);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return C(U,ee)}}function C(U,ee){(ee==null||ee>U.length)&&(ee=U.length);for(var N=0,O=new Array(ee);N<ee;N++)O[N]=U[N];return O}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(U,ee){if(typeof U!="object"||U===null)return U;var N=U[Symbol.toPrimitive];if(N!==void 0){var O=N.call(U,ee);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(U)}function _(U){var ee=M(U,"string");return typeof ee=="symbol"?ee:String(ee)}var R=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],z=function(ee,N){var O=ee.animationData,K=ee.loop,de=ee.autoplay,k=ee.initialSegment,se=ee.onComplete,oe=ee.onLoopComplete,Te=ee.onEnterFrame,Me=ee.onSegmentStart,Le=ee.onConfigReady,Ye=ee.onDataReady,Qe=ee.onDataFailed,Ue=ee.onLoadedImages,Ge=ee.onDOMLoaded,Ie=ee.onDestroy;ee.lottieRef,ee.renderer,ee.name,ee.assetsPath,ee.rendererSettings;var Ne=w(ee,R),Ae=r.useState(!1),He=x(Ae,2),ht=He[0],Ht=He[1],$t=r.useRef(),_t=r.useRef(null),qr=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},Qt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},be=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},De=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSpeed(Pt)},_e=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Xe=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},et=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setDirection(Pt)},Je=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSubframe(Pt)},Rt=function(Pt){var It;return(It=$t.current)===null||It===void 0?void 0:It.getDuration(Pt)},xt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},vn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=$t.current)===null||It===void 0||It.destroy();var qt=m(m(m({},ee),Pt),{},{container:_t.current});return $t.current=l.loadAnimation(qt),Ht(!!$t.current),function(){var fr;(fr=$t.current)===null||fr===void 0||fr.destroy(),$t.current=void 0}}};r.useEffect(function(){var Ut=vn();return function(){return Ut==null?void 0:Ut()}},[O,K]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!de)},[de]),r.useEffect(function(){if($t.current){if(!k){$t.current.resetSegments(!0);return}!Array.isArray(k)||!k.length||(($t.current.currentRawFrame<k[0]||$t.current.currentRawFrame>k[1])&&($t.current.currentRawFrame=k[0]),$t.current.setSegment(k[0],k[1]))}},[k]),r.useEffect(function(){var Ut=[{name:"complete",handler:se},{name:"loopComplete",handler:oe},{name:"enterFrame",handler:Te},{name:"segmentStart",handler:Me},{name:"config_ready",handler:Le},{name:"data_ready",handler:Ye},{name:"data_failed",handler:Qe},{name:"loaded_images",handler:Ue},{name:"DOMLoaded",handler:Ge},{name:"destroy",handler:Ie}],Pt=Ut.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var fr;return(fr=$t.current)===null||fr===void 0||fr.addEventListener(qt.name,qt.handler),function(){var zr;(zr=$t.current)===null||zr===void 0||zr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[se,oe,Te,Me,Le,Ye,Qe,Ue,Ge,Ie]);var br=a.default.createElement("div",m({style:N,ref:_t},Ne));return{View:br,play:qr,stop:Qt,pause:be,setSpeed:De,goToAndStop:Xe,goToAndPlay:_e,setDirection:et,playSegments:Je,setSubframe:gt,getDuration:Rt,destroy:xt,animationContainerRef:_t,animationLoaded:ht,animationItem:$t.current}};function re(U){var ee=U.getBoundingClientRect(),N=ee.top,O=ee.height,K=window.innerHeight-N,de=window.innerHeight+O;return K/de}function ge(U,ee,N){var O=U.getBoundingClientRect(),K=O.top,de=O.left,k=O.width,se=O.height,oe=(ee-de)/k,Te=(N-K)/se;return{x:oe,y:Te}}var le=function(ee){var N=ee.wrapperRef,O=ee.animationItem,K=ee.mode,de=ee.actions;r.useEffect(function(){var k=N.current;if(!(!k||!O||!de.length)){O.stop();var se=function(){var Me=null,Le=function(){var Qe=re(k),Ue=de.find(function(Ie){var Ne=Ie.visibility;return Ne&&Qe>=Ne[0]&&Qe<=Ne[1]});if(Ue){if(Ue.type==="seek"&&Ue.visibility&&Ue.frames.length===2){var Ge=Ue.frames[0]+Math.ceil((Qe-Ue.visibility[0])/(Ue.visibility[1]-Ue.visibility[0])*Ue.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
90
|
+
O.goToAndStop(Ge-O.firstFrame-1,!0)}Ue.type==="loop"&&(Me===null||Me!==Ue.frames||O.isPaused)&&(O.playSegments(Ue.frames,!0),Me=Ue.frames),Ue.type==="play"&&O.isPaused&&(O.resetSegments(!0),O.play()),Ue.type==="stop"&&O.goToAndStop(Ue.frames[0]-O.firstFrame-1,!0)}};return document.addEventListener("scroll",Le),function(){document.removeEventListener("scroll",Le)}},oe=function(){var Me=function(Ue,Ge){var Ie=Ue,Ne=Ge;if(Ie!==-1&&Ne!==-1){var Ae=ge(k,Ie,Ne);Ie=Ae.x,Ne=Ae.y}var He=de.find(function($t){var _t=$t.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?Ie>=_t.x[0]&&Ie<=_t.x[1]&&Ne>=_t.y[0]&&Ne<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?Ie===_t.x&&Ne===_t.y:!1});if(He){if(He.type==="seek"&&He.position&&Array.isArray(He.position.x)&&Array.isArray(He.position.y)&&He.frames.length===2){var ht=(Ie-He.position.x[0])/(He.position.x[1]-He.position.x[0]),Ht=(Ne-He.position.y[0])/(He.position.y[1]-He.position.y[0]);O.playSegments(He.frames,!0),O.goToAndStop(Math.ceil((ht+Ht)/2*(He.frames[1]-He.frames[0])),!0)}He.type==="loop"&&O.playSegments(He.frames,!0),He.type==="play"&&(O.isPaused&&O.resetSegments(!1),O.playSegments(He.frames)),He.type==="stop"&&O.goToAndStop(He.frames[0],!0)}},Le=function(Ue){Me(Ue.clientX,Ue.clientY)},Ye=function(){Me(-1,-1)};return k.addEventListener("mousemove",Le),k.addEventListener("mouseout",Ye),function(){k.removeEventListener("mousemove",Le),k.removeEventListener("mouseout",Ye)}};switch(K){case"scroll":return se();case"cursor":return oe()}}},[K,O])},I=function(ee){var N=ee.actions,O=ee.mode,K=ee.lottieObj,de=K.animationItem,k=K.View,se=K.animationContainerRef;return le({actions:N,animationItem:de,mode:O,wrapperRef:se}),k},Ce=["style","interactivity"],we=function(ee){var N,O,K,de=ee.style,k=ee.interactivity,se=w(ee,Ce),oe=z(se,de),Te=oe.View,Me=oe.play,Le=oe.stop,Ye=oe.pause,Qe=oe.setSpeed,Ue=oe.goToAndStop,Ge=oe.goToAndPlay,Ie=oe.setDirection,Ne=oe.playSegments,Ae=oe.setSubframe,He=oe.getDuration,ht=oe.destroy,Ht=oe.animationContainerRef,$t=oe.animationLoaded,_t=oe.animationItem;return r.useEffect(function(){ee.lottieRef&&(ee.lottieRef.current={play:Me,stop:Le,pause:Ye,setSpeed:Qe,goToAndPlay:Ge,goToAndStop:Ue,setDirection:Ie,playSegments:Ne,setSubframe:Ae,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t})},[(N=ee.lottieRef)===null||N===void 0?void 0:N.current]),I({lottieObj:{View:Te,play:Me,stop:Le,pause:Ye,setSpeed:Qe,goToAndStop:Ue,goToAndPlay:Ge,setDirection:Ie,playSegments:Ne,setSubframe:Ae,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t},actions:(O=k==null?void 0:k.actions)!==null&&O!==void 0?O:[],mode:(K=k==null?void 0:k.mode)!==null&&K!==void 0?K:"scroll"})};n.LottiePlayer=l,n.default=we,n.useLottie=z,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(gf,gf.exports)),gf.exports}var Ere=Cre();const Sre=yr(Ere);var Y0,mT;function Dre(){if(mT)return Y0;mT=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return Y0=n,Y0}var Z0,gT;function Are(){if(gT)return Z0;gT=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Z0=t,Z0}var X0,vT;function Tre(){if(vT)return X0;vT=1;var e=Are(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return X0=n,X0}var J0,yT;function Pre(){if(yT)return J0;yT=1;var e=Tre(),t=Pu(),n=Rp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=t(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=e(d);var m=a.test(d);return m||s.test(d)?o(d.slice(2),m?2:8):i.test(d)?r:+d}return J0=l,J0}var Q0,bT;function _re(){if(bT)return Q0;bT=1;var e=Pre(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return Q0=r,Q0}var eb,$T;function Mre(){if($T)return eb;$T=1;var e=Dre(),t=zP(),n=_re(),r=parseFloat,i=Math.min,a=Math.random;function s(o,l,d){if(d&&typeof d!="boolean"&&t(o,l,d)&&(l=d=void 0),d===void 0&&(typeof l=="boolean"?(d=l,l=void 0):typeof o=="boolean"&&(d=o,o=void 0)),o===void 0&&l===void 0?(o=0,l=1):(o=n(o),l===void 0?(l=o,o=0):l=n(l)),o>l){var h=o;o=l,l=h}if(d||o%1||l%1){var m=a();return i(o+m*(l-o+r("1e-"+((m+"").length-1))),l)}return e(o,l)}return eb=s,eb}var Fre=Mre();const Rre=yr(Fre),kre=L.createContext({});function Ore(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const n$=typeof window<"u",Ire=n$?L.useLayoutEffect:L.useEffect,Ik=L.createContext(null),Lk=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Lre(e){return typeof e=="object"&&e!==null}function Bk(e){return Lre(e)&&"offsetHeight"in e}const yh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Bre(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(o=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const Ks={},Vre=40;function Vk(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=yh.reduce((S,M)=>(S[M]=Bre(a),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ks.useManualTiming?i.timestamp:performance.now();n=!1,Ks.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Vre),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:yh.reduce((S,M)=>{const _=s[M];return S[M]=(R,z=!1,re=!1)=>(n||A(),_.schedule(R,z,re)),S},{}),cancel:S=>{for(let M=0;M<yh.length;M++)s[yh[M]].cancel(S)},state:i,steps:s}}const cc=e=>e,{schedule:wa,cancel:B1,state:xp}=Vk(typeof requestAnimationFrame<"u"?requestAnimationFrame:cc,!0),r$=L.createContext({strict:!1}),xT={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"]},Zl={};for(const e in xT)Zl[e]={isEnabled:t=>xT[e].some(n=>!!t[n])};function wT(e){for(const t in e)Zl[t]={...Zl[t],...e[t]}}function Nre({children:e,features:t,strict:n=!1}){const[,r]=L.useState(!tb(t)),i=L.useRef(void 0);if(!tb(t)){const{renderer:a,...s}=t;i.current=a,wT(s)}return L.useEffect(()=>{tb(t)&&t().then(({renderer:a,...s})=>{wT(s),i.current=a,r(!0)})},[]),Qa.jsx(r$.Provider,{value:{renderer:i.current,strict:n},children:e})}function tb(e){return typeof e=="function"}const jre=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jre.has(e)}let Nk=e=>!wp(e);function Kre(e){e&&(Nk=t=>t.startsWith("on")?!wp(t):e(t))}try{Kre(require("@emotion/is-prop-valid").default)}catch{}function Ure(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Nk(i)||n===!0&&wp(i)||!t&&!wp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const CT=new Set;function i$(e,t,n){e||CT.has(t)||(console.warn(t),CT.add(t))}function qre(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&i$(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const $m=L.createContext({});function xm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qf(e){return typeof e=="string"||Array.isArray(e)}const a$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s$=["initial",...a$];function wm(e){return xm(e.animate)||s$.some(t=>qf(e[t]))}function jk(e){return!!(wm(e)||e.variants)}function zre(e,t){if(wm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qf(n)?n:void 0,animate:qf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Wre(e){const{initial:t,animate:n}=zre(e,L.useContext($m));return L.useMemo(()=>({initial:t,animate:n}),[ET(t),ET(n)])}function ET(e){return Array.isArray(e)?e.join(" "):e}const Hre=Symbol.for("motionComponentSymbol");function Kk(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Gre(e,t,n){return L.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Kk(n)&&(n.current=r))},[t])}const o$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yre="framerAppearId",Uk="data-"+o$(Yre),Zre=L.createContext({}),{schedule:Xre}=Vk(queueMicrotask,!1);function Jre(e,t,n,r,i){var x,A;const{visualElement:a}=L.useContext($m),s=L.useContext(r$),o=L.useContext(Ik),l=L.useContext(Lk).reducedMotion,d=L.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=L.useContext(Zre);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Qre(d.current,n,i,m);const g=L.useRef(!1);L.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[Uk],w=L.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return Ire(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Xre.render(h.render),w.current&&h.animationState&&h.animationState.animateChanges())}),L.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),w.current=!1))}),h}function Qre(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qk(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Kk(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function qk(e){if(e)return e.options.allowProjection!==!1?e.projection:qk(e.parent)}let gd=()=>{},Su=()=>{};process.env.NODE_ENV!=="production"&&(gd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Su=(e,t)=>{if(!e)throw new Error(t)});function eie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(o,l){let d;const h={...L.useContext(Lk),...o,layoutId:tie(o)},{isStatic:m}=h,g=Wre(o),b=r(o,m);if(!m&&n$){nie(h,e);const w=rie(h);d=w.MeasureLayout,g.visualElement=Jre(i,b,h,t,w.ProjectionNode)}return Qa.jsxs($m.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,Gre(b,g.visualElement,l),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const s=L.forwardRef(a);return s[Hre]=i,s}function tie({layoutId:e}){const t=L.useContext(kre).id;return t&&e!==void 0?t+"-"+e:e}function nie(e,t){L.useContext(r$).strict,process.env.NODE_ENV}function rie(e){const{drag:t,layout:n}=Zl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const zk=e=>t=>typeof t=="string"&&t.startsWith(e),Wk=zk("--"),iie=zk("var(--"),u$=e=>iie(e)?aie.test(e.split("/*")[0].trim()):!1,aie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sie={},fc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dc=new Set(fc);function Hk(e,{layout:t,layoutId:n}){return dc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sie[e]||e==="opacity")}const Gk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Du=(e,t,n)=>n>t?t:n<e?e:n,hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zf={...hc,transform:e=>Du(0,1,e)},bh={...hc,default:1},ST={...hc,transform:Math.round},vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uo=vd("deg"),Vl=vd("%"),Tt=vd("px"),oie=vd("vh"),uie=vd("vw"),DT={...Vl,parse:e=>Vl.parse(e)/100,transform:e=>Vl.transform(e*100)},lie={rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scale:bh,scaleX:bh,scaleY:bh,scaleZ:bh,skew:uo,skewX:uo,skewY:uo,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:zf,originX:DT,originY:DT,originZ:Tt},l$={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...lie,zIndex:ST,fillOpacity:zf,strokeOpacity:zf,numOctaves:ST},cie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fie=fc.length;function die(e,t,n){let r="",i=!0;for(let a=0;a<fie;a++){const s=fc[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=Gk(o,l$[s]);if(!l){i=!1;const h=cie[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function c$(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const d=t[l];if(dc.has(l)){s=!0;continue}else if(Wk(l)){i[l]=d;continue}else{const h=Gk(d,l$[l]);l.startsWith("origin")?(o=!0,a[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=die(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${d} ${h}`}}const f$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Vr=e=>!!(e&&e.getVelocity);function Yk(e,t,n){for(const r in t)!Vr(t[r])&&!Hk(r,n)&&(e[r]=t[r])}function hie({transformTemplate:e},t){return L.useMemo(()=>{const n=f$();return c$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pie(e,t){const n=e.style||{},r={};return Yk(r,n,e),Object.assign(r,hie(e,t)),r}function mie(e,t){const n={},r=pie(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const gie={offset:"stroke-dashoffset",array:"stroke-dasharray"},vie={offset:"strokeDashoffset",array:"strokeDasharray"};function yie(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?gie:vie;e[a.offset]=Tt.transform(-r);const s=Tt.transform(t),o=Tt.transform(n);e[a.array]=`${s} ${o}`}function Zk(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},l,d,h){if(c$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&yie(m,i,a,s,!1)}const Xk=()=>({...f$(),attrs:{}}),Jk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bie(e,t,n,r){const i=L.useMemo(()=>{const a=Xk();return Zk(a,t,Jk(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Yk(a,e.style,e),i.style={...a,...i.style}}return i}const $ie=["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 d$(e){return typeof e!="string"||e.includes("-")?!1:!!($ie.indexOf(e)>-1||/[A-Z]/u.test(e))}function xie(e=!1){return(n,r,i,{latestValues:a},s)=>{const l=(d$(n)?bie:mie)(r,a,s,n),d=Ure(r,typeof n=="string",e),h=n!==L.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=L.useMemo(()=>Vr(m)?m.get():m,[m]);return L.createElement(n,{...h,children:g})}}function AT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function h$(e,t,n,r){if(typeof t=="function"){const[i,a]=AT(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=AT(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function wie(e){return Vr(e)?e.get():e}function Cie({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Eie(n,r,i,e),renderState:t()}}const Qk=e=>(t,n)=>{const r=L.useContext($m),i=L.useContext(Ik),a=()=>Cie(e,t,r,i);return n?a():Ore(a)};function Eie(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=wie(a[g]);let{initial:s,animate:o}=e;const l=wm(e),d=jk(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?o:s;if(m&&typeof m!="boolean"&&!xm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=h$(e,g[b]);if(w){const{transitionEnd:x,transition:A,...E}=w;for(const C in E){let S=E[C];if(Array.isArray(S)){const M=h?S.length-1:0;S=S[M]}S!==null&&(i[C]=S)}for(const C in x)i[C]=x[C]}}}return i}function p$(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(Vr(r[s])||t.style&&Vr(t.style[s])||Hk(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const Sie={useVisualState:Qk({scrapeMotionValuesFromProps:p$,createRenderState:f$})};function eO(e,t,n){const r=p$(e,t,n);for(const i in e)if(Vr(e[i])||Vr(t[i])){const a=fc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Die={useVisualState:Qk({scrapeMotionValuesFromProps:eO,createRenderState:Xk})};function Aie(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...d$(r)?Die:Sie,preloadedFeatures:e,useRender:xie(i),createVisualElement:t,Component:r};return eie(s)}}const Tie=Aie(),Pie=qre(Tie);function Wf(e,t,n){const r=e.getProps();return h$(r,t,n!==void 0?n:r.custom,e)}const V1=e=>Array.isArray(e);let Nh;function _ie(){Nh=void 0}const Wi={now:()=>(Nh===void 0&&Wi.set(xp.isProcessing||Ks.useManualTiming?xp.timestamp:performance.now()),Nh),set:e=>{Nh=e,queueMicrotask(_ie)}};function Mie(e,t){e.indexOf(t)===-1&&e.push(t)}function Fie(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class tO{constructor(){this.subscriptions=[]}add(t){return Mie(this.subscriptions,t),()=>Fie(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function nO(e,t){return t?e*(1e3/t):0}const TT=30,Rie=e=>!isNaN(parseFloat(e));class kie{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var s,o;const a=Wi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Wi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Rie(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&i$(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new tO);const r=this.events[t].add(n);return t==="change"?()=>{r(),wa.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Wi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>TT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,TT);return nO(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cp(e,t){return new kie(e,t)}function Oie(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cp(n))}function Iie(e){return V1(e)?e[e.length-1]||0:e}function Lie(e,t){const n=Wf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Iie(a[s]);Oie(e,s,o)}}function Bie(e){return!!(Vr(e)&&e.add)}function Vie(e,t){const n=e.getValue("willChange");if(Bie(n))return n.add(t);if(!n&&Ks.WillChange){const r=new Ks.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Nie(e){return e.props[Uk]}const jie=e=>e!==null;function Kie(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(jie),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Uie={type:"spring",stiffness:500,damping:25,restSpeed:10},qie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zie={type:"keyframes",duration:.8},Wie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hie=(e,{keyframes:t})=>t.length>2?zie:dc.has(e)?e.startsWith("scale")?qie(t[1]):Uie:Wie;function Gie({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}function rO(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ja=e=>e*1e3,Ls=e=>e/1e3,Af=e=>Math.round(e*1e5)/1e5,m$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yie(e){return e==null}const Zie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g$=(e,t)=>n=>!!(typeof n=="string"&&Zie.test(n)&&n.startsWith(e)||t&&!Yie(n)&&Object.prototype.hasOwnProperty.call(n,t)),iO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(m$);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},Xie=e=>Du(0,255,e),nb={...hc,transform:e=>Math.round(Xie(e))},cu={test:g$("rgb","red"),parse:iO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nb.transform(e)+", "+nb.transform(t)+", "+nb.transform(n)+", "+Af(zf.transform(r))+")"};function Jie(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const N1={test:g$("#"),parse:Jie,transform:cu.transform},Al={test:g$("hsl","hue"),parse:iO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vl.transform(Af(t))+", "+Vl.transform(Af(n))+", "+Af(zf.transform(r))+")"},Sr={test:e=>cu.test(e)||N1.test(e)||Al.test(e),parse:e=>cu.test(e)?cu.parse(e):Al.test(e)?Al.parse(e):N1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cu.transform(e):Al.transform(e)},Qie=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(m$))==null?void 0:t.length)||0)+(((n=e.match(Qie))==null?void 0:n.length)||0)>0}const aO="number",sO="color",tae="var",nae="var(",PT="${}",rae=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(rae,l=>(Sr.test(l)?(r.color.push(a),i.push(sO),n.push(Sr.parse(l))):l.startsWith(nae)?(r.var.push(a),i.push(tae),n.push(l)):(r.number.push(a),i.push(aO),n.push(parseFloat(l))),++a,PT)).split(PT);return{values:n,split:o,indexes:r,types:i}}function oO(e){return Hf(e).values}function uO(e){const{split:t,types:n}=Hf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===aO?a+=Af(i[s]):o===sO?a+=Sr.transform(i[s]):a+=i[s]}return a}}const iae=e=>typeof e=="number"?0:e;function aae(e){const t=oO(e);return uO(e)(t.map(iae))}const pc={test:eae,parse:oO,createTransformer:uO,getAnimatableNone:aae};function rb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sae({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=rb(l,o,e+1/3),a=rb(l,o,e),s=rb(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ep(e,t){return n=>n>0?t:e}const Cm=(e,t,n)=>e+(t-e)*n,ib=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},oae=[N1,cu,Al],uae=e=>oae.find(t=>t.test(e));function _T(e){const t=uae(e);if(gd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Al&&(n=sae(n)),n}const MT=(e,t)=>{const n=_T(e),r=_T(t);if(!n||!r)return Ep(e,t);const i={...n};return a=>(i.red=ib(n.red,r.red,a),i.green=ib(n.green,r.green,a),i.blue=ib(n.blue,r.blue,a),i.alpha=Cm(n.alpha,r.alpha,a),cu.transform(i))},j1=new Set(["none","hidden"]);function lae(e,t){return j1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const cae=(e,t)=>n=>t(e(n)),Em=(...e)=>e.reduce(cae);function fae(e,t){return n=>Cm(e,t,n)}function v$(e){return typeof e=="number"?fae:typeof e=="string"?u$(e)?Ep:Sr.test(e)?MT:pae:Array.isArray(e)?lO:typeof e=="object"?Sr.test(e)?MT:dae:Ep}function lO(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>v$(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function dae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=v$(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function hae(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}const pae=(e,t)=>{const n=pc.createTransformer(t),r=Hf(e),i=Hf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?j1.has(e)&&!i.values.length||j1.has(t)&&!r.values.length?lae(e,t):Em(lO(hae(r,i),i.values),n):(gd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ep(e,t))};function cO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Cm(e,t,n):v$(e)(e,t)}const mae=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wa.update(t,n),stop:()=>B1(t),now:()=>xp.isProcessing?xp.timestamp:Wi.now()}},fO=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Sp=2e4;function y$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Sp;)t+=n,r=e.next(t);return t>=Sp?1/0:t}function gae(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(y$(r),Sp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ls(i)}}const vae=5;function dO(e,t,n){const r=Math.max(t-vae,0);return nO(n-e(r),t-r)}const _n={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ab=.001;function yae({duration:e=_n.duration,bounce:t=_n.bounce,velocity:n=_n.velocity,mass:r=_n.mass}){let i,a;gd(e<=Ja(_n.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Du(_n.minDamping,_n.maxDamping,s),e=Du(_n.minDuration,_n.maxDuration,Ls(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=K1(d,s),w=Math.exp(-m);return ab-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=K1(Math.pow(d,2),s);return(-i(d)+ab>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-ab+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=$ae(i,a,o);if(e=Ja(e),isNaN(l))return{stiffness:_n.stiffness,damping:_n.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const bae=12;function $ae(e,t,n){let r=n;for(let i=1;i<bae;i++)r=r-e(r)/t(r);return r}function K1(e,t){return e*Math.sqrt(1-t*t)}const xae=["duration","bounce"],wae=["stiffness","damping","mass"];function FT(e,t){return t.some(n=>e[n]!==void 0)}function Cae(e){let t={velocity:_n.velocity,stiffness:_n.stiffness,damping:_n.damping,mass:_n.mass,isResolvedFromDuration:!1,...e};if(!FT(e,wae)&&FT(e,xae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Du(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_n.mass,stiffness:i,damping:a}}else{const n=yae(e);t={...t,...n,mass:_n.mass},t.isResolvedFromDuration=!0}return t}function Dp(e=_n.visualDuration,t=_n.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Cae({...n,velocity:-Ls(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(l*h)),A=s-a,E=Ls(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?_n.restSpeed.granular:_n.restSpeed.default),i||(i=C?_n.restDelta.granular:_n.restDelta.default);let S;if(x<1){const _=K1(E,x);S=R=>{const z=Math.exp(-x*E*R);return s-z*((w+x*E*A)/_*Math.sin(_*R)+A*Math.cos(_*R))}}else if(x===1)S=_=>s-Math.exp(-E*_)*(A+(w+E*A)*_);else{const _=E*Math.sqrt(x*x-1);S=R=>{const z=Math.exp(-x*E*R),re=Math.min(_*R,300);return s-z*((w+x*E*A)*Math.sinh(re)+_*A*Math.cosh(re))/_}}const M={calculatedDuration:b&&m||null,next:_=>{const R=S(_);if(b)o.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?Ja(w):dO(S,_,R));const re=Math.abs(z)<=r,ge=Math.abs(s-R)<=i;o.done=re&&ge}return o.value=o.done?s:R,o},toString:()=>{const _=Math.min(y$(M),Sp),R=fO(z=>M.next(_*z).value,_,30);return _+"ms "+R},toTransition:()=>{}};return M}Dp.applyToOptions=e=>{const t=gae(e,100,Dp);return e.ease=t.ease,e.duration=Ja(t.duration),e.type="keyframes",e};function U1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=re=>o!==void 0&&re<o||l!==void 0&&re>l,w=re=>o===void 0?l:l===void 0||Math.abs(o-re)<Math.abs(l-re)?o:l;let x=n*t;const A=m+x,E=s===void 0?A:s(A);E!==A&&(x=E-m);const C=re=>-x*Math.exp(-re/r),S=re=>E+C(re),M=re=>{const ge=C(re),le=S(re);g.done=Math.abs(ge)<=d,g.value=g.done?E:le};let _,R;const z=re=>{b(g.value)&&(_=re,R=Dp({keyframes:[g.value,w(g.value)],velocity:dO(S,re,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:re=>{let ge=!1;return!R&&_===void 0&&(ge=!0,M(re),z(re)),_!==void 0&&re>=_?R.next(re-_):(!ge&&M(re),g)}}}const hO=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function Eae(e,t,n){const r=[],i=n||Ks.mix||cO,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||cc:t;o=Em(l,o)}r.push(o)}return r}function Sae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Su(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Eae(t,r,i),l=o.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=hO(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Du(e[0],e[a-1],h)):d}function Dae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=hO(0,t,r);e.push(Cm(n,1,i))}}function Aae(e){const t=[0];return Dae(t,e.length-1),t}function Tae(e,t){return e.map(n=>n*t)}const pO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pae=1e-7,_ae=12;function Mae(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=pO(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>Pae&&++o<_ae);return s}function yd(e,t,n,r){if(e===t&&n===r)return cc;const i=a=>Mae(a,0,1,e,n);return a=>a===0||a===1?a:pO(i(a),t,r)}const Fae=yd(.42,0,1,1),Rae=yd(0,0,.58,1),mO=yd(.42,0,.58,1),kae=e=>Array.isArray(e)&&typeof e[0]!="number",gO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vO=e=>t=>1-e(1-t),yO=yd(.33,1.53,.69,.99),b$=vO(yO),bO=gO(b$),$O=e=>(e*=2)<1?.5*b$(e):.5*(2-Math.pow(2,-10*(e-1))),$$=e=>1-Math.sin(Math.acos(e)),Oae=vO($$),xO=gO($$),wO=e=>Array.isArray(e)&&typeof e[0]=="number",RT={linear:cc,easeIn:Fae,easeInOut:mO,easeOut:Rae,circIn:$$,circInOut:xO,circOut:Oae,backIn:b$,backInOut:bO,backOut:yO,anticipate:$O},Iae=e=>typeof e=="string",kT=e=>{if(wO(e)){Su(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return yd(t,n,r,i)}else if(Iae(e))return Su(RT[e]!==void 0,`Invalid easing type '${e}'`),RT[e];return e};function Lae(e,t){return e.map(()=>t||mO).splice(0,e.length-1)}function Tl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kae(r)?r.map(kT):kT(r),a={done:!1,value:t[0]},s=Tae(n&&n.length===t.length?n:Aae(t),e),o=Sae(s,t,{ease:Array.isArray(i)?i:Lae(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const Bae=e=>e!==null;function x$(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Bae),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Vae={decay:U1,inertia:U1,tween:Tl,keyframes:Tl,spring:Dp};function CO(e){typeof e.type=="string"&&(e.type=Vae[e.type])}class w${constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Nae=e=>e/100;class C$ extends w${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Wi.now()&&this.tick(Wi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;CO(t);const{type:n=Tl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const l=n||Tl;process.env.NODE_ENV!=="production"&&l!==Tl&&Su(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Tl&&typeof o[0]!="number"&&(this.mixKeyframes=Em(Nae,cO(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=y$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,M=r;if(m){const re=Math.min(this.currentTime,i)/o;let ge=Math.floor(re),le=re%1;!le&&re>=1&&(le=1),le===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(le=1-le,b&&(le-=b/o)):g==="mirror"&&(M=s)),S=Du(0,1,le)*o}const _=C?{done:!1,value:h[0]}:M.next(S);a&&(_.value=a(_.value));let{done:R}=_;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return z&&w!==U1&&(_.value=x$(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Ls(this.calculatedDuration)}get time(){return Ls(this.currentTime)}set time(t){var n;t=Ja(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Wi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ls(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=mae,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Wi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function jae(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fu=e=>e*180/Math.PI,q1=e=>{const t=fu(Math.atan2(e[1],e[0]));return z1(t)},Kae={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:q1,rotateZ:q1,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},z1=e=>(e=e%360,e<0&&(e+=360),e),OT=q1,IT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),LT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Uae={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:IT,scaleY:LT,scale:e=>(IT(e)+LT(e))/2,rotateX:e=>z1(fu(Math.atan2(e[6],e[5]))),rotateY:e=>z1(fu(Math.atan2(-e[2],e[0]))),rotateZ:OT,rotate:OT,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function W1(e){return e.includes("scale")?1:0}function H1(e,t){if(!e||e==="none")return W1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Uae,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kae,i=o}if(!i)return W1(t);const a=r[t],s=i[1].split(",").map(zae);return typeof a=="function"?a(s):s[a]}const qae=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return H1(n,t)};function zae(e){return parseFloat(e.trim())}const BT=e=>e===hc||e===Tt,Wae=new Set(["x","y","z"]),Hae=fc.filter(e=>!Wae.has(e));function Gae(e){const t=[];return Hae.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>H1(t,"x"),y:(e,{transform:t})=>H1(t,"y")};gu.translateX=gu.x;gu.translateY=gu.y;const vu=new Set;let G1=!1,Y1=!1,Z1=!1;function EO(){if(Y1){const e=Array.from(vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Gae(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))==null||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Y1=!1,G1=!1,vu.forEach(e=>e.complete(Z1)),vu.clear()}function SO(){vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y1=!0)})}function Yae(){Z1=!0,SO(),EO(),Z1=!1}class E${constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(vu.add(this),G1||(G1=!0,wa.read(SO),wa.resolveKeyframes(EO))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}jae(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vu.delete(this)}cancel(){this.state==="scheduled"&&(vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Zae=e=>e.startsWith("--");function Xae(e,t,n){Zae(t)?e.style.setProperty(t,n):e.style[t]=n}function S$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jae=S$(()=>window.ScrollTimeline!==void 0),Qae={};function ese(e,t){const n=S$(e);return()=>Qae[t]??n()}const DO=ese(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,VT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vf([0,.65,.55,1]),circOut:vf([.55,0,1,.45]),backIn:vf([.31,.01,.66,-.59]),backOut:vf([.33,1.53,.69,.99])};function AO(e,t){if(e)return typeof e=="function"?DO()?fO(e,t):"ease-out":wO(e)?vf(e):Array.isArray(e)?e.map(n=>AO(n,t)||VT.easeOut):VT[e]}function tse(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=AO(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function TO(e){return typeof e=="function"&&"applyToOptions"in e}function nse({type:e,...t}){return TO(e)&&DO()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class rse extends w${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Su(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=nse(t);this.animation=tse(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=x$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Xae(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ls(Number(t))}get time(){return Ls(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ja(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Jae()?(this.animation.timeline=t,cc):n(this)}}const PO={anticipate:$O,backInOut:bO,circInOut:xO};function ise(e){return e in PO}function ase(e){typeof e.ease=="string"&&ise(e.ease)&&(e.ease=PO[e.ease])}const NT=10;class sse extends rse{constructor(t){ase(t),CO(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new C$({...s,autoplay:!1}),l=Ja(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-NT).value,o.sample(l).value,NT),o.stop()}}const jT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pc.test(e)||e==="0")&&!e.startsWith("url("));function ose(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function use(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=jT(i,t),o=jT(a,t);return gd(s===o,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!s||!o?!1:ose(e)||(n==="spring"||TO(n))&&r}const lse=new Set(["opacity","clipPath","filter","transform"]),cse=S$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fse(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!Bk((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return cse()&&n&&lse.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const dse=40;class hse extends w${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Wi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||E$;this.keyframeResolver=new b(o,(x,A,E)=>this.onKeyframesResolved(x,A,g,!E),l,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=Wi.now(),use(t,a,s,o)||((Ks.instantAnimations||!l)&&(h==null||h(x$(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>dse?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&fse(g)?new sse({...g,element:g.motionValue.owner.current}):new C$(g);b.finished.then(()=>this.notifyFinished()).catch(cc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Yae()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const pse=(e,t,n,r={},i,a)=>s=>{const o=rO(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ja(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Gie(o)||Object.assign(h,Hie(e,h)),h.duration&&(h.duration=Ja(h.duration)),h.repeatDelay&&(h.repeatDelay=Ja(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ks.instantAnimations||Ks.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!a&&t.get()!==void 0){const g=Kie(h.keyframes,o);if(g!==void 0){wa.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new C$(h):new hse(h)},_O=new Set(["width","height","top","left","right","bottom",...fc]);function mse({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function MO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&mse(d,h))continue;const b={delay:n,...rO(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const E=Nie(e);if(E){const C=window.MotionHandoffAnimation(E,h,wa);C!==null&&(b.startTime=C,x=!0)}}Vie(e,h),m.start(pse(h,m,g,e.shouldReduceMotion&&_O.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return s&&Promise.all(l).then(()=>{wa.update(()=>{s&&Lie(e,s)})}),l}function X1(e,t,n={}){var l;const r=Wf(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(MO(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return gse(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function gse(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(vse).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(X1(d,t,{...a,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function vse(e,t){return e.sortNodePosition(t)}function yse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>X1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=X1(e,t,n);else{const i=typeof t=="function"?Wf(e,t,n.custom):t;r=Promise.all(MO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function FO(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const bse=s$.length;function RO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?RO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<bse;n++){const r=s$[n],i=e.props[r];(qf(i)||i===!1)&&(t[r]=i)}return t}const $se=[...a$].reverse(),xse=a$.length;function wse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yse(e,n,r)))}function Cse(e){let t=wse(e),n=KT(),r=!0;const i=l=>(d,h)=>{var g;const m=Wf(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(l){t=l(e)}function s(l){const{props:d}=e,h=RO(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<xse;A++){const E=$se[A],C=n[E],S=d[E]!==void 0?d[E]:h[E],M=qf(S),_=E===l?C.isActive:null;_===!1&&(w=A);let R=S===h[E]&&S!==d[E]&&M;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&_===null||!S&&!C.prevProp||xm(S)||typeof S=="boolean")continue;const z=Ese(C.prevProp,S);let re=z||E===l&&C.isActive&&!R&&M||A>w&&M,ge=!1;const le=Array.isArray(S)?S:[S];let I=le.reduce(i(E),{});_===!1&&(I={});const{prevResolvedValues:Ce={}}=C,we={...Ce,...I},U=O=>{re=!0,g.has(O)&&(ge=!0,g.delete(O)),C.needsAnimating[O]=!0;const K=e.getValue(O);K&&(K.liveStyle=!1)};for(const O in we){const K=I[O],de=Ce[O];if(b.hasOwnProperty(O))continue;let k=!1;V1(K)&&V1(de)?k=!FO(K,de):k=K!==de,k?K!=null?U(O):g.add(O):K!==void 0&&g.has(O)?U(O):C.protectedKeys[O]=!0}C.prevProp=S,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(re=!1),re&&(!(R&&z)||ge)&&m.push(...le.map(O=>({animation:O,options:{type:E}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const E=Wf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(A.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),S=e.getValue(E);S&&(S.liveStyle=!0),A[E]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=s(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=KT(),r=!0}}}function Ese(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!FO(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function KT(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}class mc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Sse extends mc{constructor(t){super(t),t.animationState||(t.animationState=Cse(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Dse=0;class Ase extends mc{constructor(){super(...arguments),this.id=Dse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Tse={animation:{Feature:Sse},exit:{Feature:Ase}};function UT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Pse=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function kO(e){return{point:{x:e.pageX,y:e.pageY}}}function _se({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Mse(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const qT=()=>({min:0,max:0}),OO=()=>({x:qT(),y:qT()});function Fse(e,t){return _se(Mse(e.getBoundingClientRect(),t))}const Rse={y:!1};function kse(){return Rse.y}function Ose(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function IO(e,t){const n=Ose(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function zT(e){return!(e.pointerType==="touch"||kse())}function Ise(e,t,n={}){const[r,i,a]=IO(e,n),s=o=>{if(!zT(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{zT(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}function WT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&wa.postRender(()=>a(t,kO(t)))}class Lse extends mc{mount(){const{current:t}=this.node;t&&(this.unmount=Ise(t,(n,r)=>(WT(this.node,r,"Start"),i=>WT(this.node,i,"End"))))}unmount(){}}class Bse extends mc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Em(UT(this.node.current,"focus",()=>this.onFocus()),UT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const LO=(e,t)=>t?e===t?!0:LO(e,t.parentElement):!1,Vse=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nse(e){return Vse.has(e.tagName)||e.tabIndex!==-1}const jh=new WeakSet;function HT(e){return t=>{t.key==="Enter"&&e(t)}}function sb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const jse=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=HT(()=>{if(jh.has(n))return;sb(n,"down");const i=HT(()=>{sb(n,"up")}),a=()=>sb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function GT(e){return Pse(e)&&!0}function Kse(e,t,n={}){const[r,i,a]=IO(e,n),s=o=>{const l=o.currentTarget;if(!GT(o))return;jh.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),jh.has(l)&&jh.delete(l),GT(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||LO(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),Bk(o)&&(o.addEventListener("focus",d=>jse(d,i)),!Nse(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function YT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wa.postRender(()=>a(t,kO(t)))}class Use extends mc{mount(){const{current:t}=this.node;t&&(this.unmount=Kse(t,(n,r)=>(YT(this.node,r,"Start"),(i,{success:a})=>YT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const J1=new WeakMap,ob=new WeakMap,qse=e=>{const t=J1.get(e.target);t&&t(e)},zse=e=>{e.forEach(qse)};function Wse({root:e,...t}){const n=e||document;ob.has(n)||ob.set(n,{});const r=ob.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(zse,{root:e,...t})),r[i]}function Hse(e,t,n){const r=Wse(t);return J1.set(e,n),r.observe(e),()=>{J1.delete(e),r.unobserve(e)}}const Gse={some:0,all:1};class Yse extends mc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Gse[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Hse(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Zse(t,n))&&this.startObserver()}unmount(){}}function Zse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Xse={inView:{Feature:Yse},tap:{Feature:Use},focus:{Feature:Bse},hover:{Feature:Lse}},Q1={current:null},BO={current:!1};function Jse(){if(BO.current=!0,!!n$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Q1.current=e.matches;e.addListener(t),t()}else Q1.current=!1}const Qse=new WeakMap;function eoe(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Vr(i))e.addValue(r,i);else if(Vr(a))e.addValue(r,Cp(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Cp(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const VO=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),NO=e=>/^0[^.\s]+$/u.test(e),toe={test:e=>e==="auto",parse:e=>e},jO=e=>t=>t.test(e),KO=[hc,Tt,Vl,uo,uie,oie,toe],ZT=e=>KO.find(jO(e)),noe=[...KO,Sr,pc],roe=e=>noe.find(jO(e)),ioe=new Set(["brightness","contrast","saturate","opacity"]);function aoe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m$)||[];if(!r)return e;const i=n.replace(r,"");let a=ioe.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const soe=/\b([a-z-]*)\(.*?\)/gu,e4={...pc,getAnimatableNone:e=>{const t=e.match(soe);return t?t.map(aoe).join(" "):e}},ooe={...l$,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:e4,WebkitFilter:e4},UO=e=>ooe[e];function qO(e,t){let n=UO(e);return n!==e4&&(n=pc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uoe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=E$,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.renderScheduledAt=0,this.scheduleRender=()=>{const g=Wi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wa.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=wm(n),this.isVariantNode=jk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&Vr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Qse.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),BO.current||Jse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Q1.current,process.env.NODE_ENV!=="production"&&i$(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),B1(this.notifyUpdate),B1(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=dc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&wa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Zl){const n=Zl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):OO()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<XT.length;r++){const i=XT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=eoe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(VO(r)||NO(r))?r=parseFloat(r):!roe(r)&&pc.test(n)&&(r=qO(t,n)),this.setBaseTarget(t,Vr(r)?r.get():r)),Vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=h$(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const loe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function coe(e){const t=loe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const foe=4;function zO(e,t,n=1){Su(n<=foe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=coe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return VO(s)?parseFloat(s):s}return u$(i)?zO(i,t,n+1):i}function doe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NO(e):!0}const hoe=new Set(["auto","none","0"]);function poe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!hoe.has(a)&&Hf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=qO(n,i)}class moe extends E${constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),u$(d))){const h=zO(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!_O.has(r)||t.length!==2)return;const[i,a]=t,s=ZT(i),o=ZT(a);if(s!==o)if(BT(s)&&BT(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else gu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||doe(t[i]))&&r.push(i);r.length&&poe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=gu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}class WO extends uoe{constructor(){super(...arguments),this.KeyframeResolver=moe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function HO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}function goe(e){return window.getComputedStyle(e)}class voe extends WO{constructor(){super(...arguments),this.type="html",this.renderInstance=HO}readValueFromInstance(t,n){var r;if(dc.has(n))return(r=this.projection)!=null&&r.isProjecting?W1(n):qae(t,n);{const i=goe(t),a=(Wk(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fse(t,n)}build(t,n,r){c$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return p$(t,n,r)}}const GO=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 yoe(e,t,n,r){HO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(GO.has(i)?i:o$(i),t.attrs[i])}class boe extends WO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=OO}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(dc.has(n)){const r=UO(n);return r&&r.default||0}return n=GO.has(n)?n:o$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eO(t,n,r)}build(t,n,r){Zk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){yoe(t,n,r,i)}mount(t){this.isSVGTag=Jk(t.tagName),super.mount(t)}}const $oe=(e,t)=>d$(e)?new boe(t):new voe(t,{allowProjection:e!==L.Fragment}),xoe={renderer:$oe,...Tse,...Xse},woe=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),YO=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),Coe=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),Eoe=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),Soe=(e,t)=>{t=t||Eoe(e);let n=t,r=t;YO(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(s=>Doe(s,a)));return[n,...i]},Doe=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,s){const o=r[i];if(o==null)s.splice(1);else return o},t);return n===void 0?e in t?t[e]:"":n},Aoe=e=>typeof e>"u"||e===null?"":e,ZO=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Aoe(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
91
|
+
`),Toe=(e,t,n,r)=>ZO(t?[t,...e]:e,n,r),Poe=(e,t,n,r)=>ZO(Soe(e,t),n,r),_oe=(e,t,n,r)=>t?`${t.join(n)}
|
|
92
|
+
${e}`:e.replace(/"/g,'""'),XO=(e,t,n,r)=>{if(YO(e))return Poe(e,t,n,r);if(Coe(e))return Toe(e,t,n,r);if(typeof e=="string")return _oe(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},JO=(e,t,n,r,i)=>{const a=XO(e,n,r,i),s=woe()?"application/csv":"text/csv",o=new Blob([t?"\uFEFF":"",a],{type:s}),l=`data:${s};charset=utf-8,${t?"\uFEFF":""}${a}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?l:d.createObjectURL(o)};var $h={exports:{}},xh={exports:{}},sn={};/** @license React v16.13.1
|
|
93
|
+
* react-is.production.min.js
|
|
94
|
+
*
|
|
95
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the MIT license found in the
|
|
98
|
+
* LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/var JT;function Moe(){if(JT)return sn;JT=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case l:case d:case r:case a:case i:case m:return _;default:switch(_=_&&_.$$typeof,_){case o:case h:case w:case b:case s:return _;default:return R}}case n:return R}}}function M(_){return S(_)===d}return sn.AsyncMode=l,sn.ConcurrentMode=d,sn.ContextConsumer=o,sn.ContextProvider=s,sn.Element=t,sn.ForwardRef=h,sn.Fragment=r,sn.Lazy=w,sn.Memo=b,sn.Portal=n,sn.Profiler=a,sn.StrictMode=i,sn.Suspense=m,sn.isAsyncMode=function(_){return M(_)||S(_)===l},sn.isConcurrentMode=M,sn.isContextConsumer=function(_){return S(_)===o},sn.isContextProvider=function(_){return S(_)===s},sn.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},sn.isForwardRef=function(_){return S(_)===h},sn.isFragment=function(_){return S(_)===r},sn.isLazy=function(_){return S(_)===w},sn.isMemo=function(_){return S(_)===b},sn.isPortal=function(_){return S(_)===n},sn.isProfiler=function(_){return S(_)===a},sn.isStrictMode=function(_){return S(_)===i},sn.isSuspense=function(_){return S(_)===m},sn.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===a||_===i||_===m||_===g||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===b||_.$$typeof===s||_.$$typeof===o||_.$$typeof===h||_.$$typeof===A||_.$$typeof===E||_.$$typeof===C||_.$$typeof===x)},sn.typeOf=S,sn}var on={};/** @license React v16.13.1
|
|
100
|
+
* react-is.development.js
|
|
101
|
+
*
|
|
102
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the MIT license found in the
|
|
105
|
+
* LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/var QT;function Foe(){return QT||(QT=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===r||Ae===d||Ae===a||Ae===i||Ae===m||Ae===g||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===w||Ae.$$typeof===b||Ae.$$typeof===s||Ae.$$typeof===o||Ae.$$typeof===h||Ae.$$typeof===A||Ae.$$typeof===E||Ae.$$typeof===C||Ae.$$typeof===x)}function M(Ae){if(typeof Ae=="object"&&Ae!==null){var He=Ae.$$typeof;switch(He){case t:var ht=Ae.type;switch(ht){case l:case d:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case o:case h:case w:case b:case s:return Ht;default:return He}}case n:return He}}}var _=l,R=d,z=o,re=s,ge=t,le=h,I=r,Ce=w,we=b,U=n,ee=a,N=i,O=m,K=!1;function de(Ae){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(Ae)||M(Ae)===l}function k(Ae){return M(Ae)===d}function se(Ae){return M(Ae)===o}function oe(Ae){return M(Ae)===s}function Te(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===t}function Me(Ae){return M(Ae)===h}function Le(Ae){return M(Ae)===r}function Ye(Ae){return M(Ae)===w}function Qe(Ae){return M(Ae)===b}function Ue(Ae){return M(Ae)===n}function Ge(Ae){return M(Ae)===a}function Ie(Ae){return M(Ae)===i}function Ne(Ae){return M(Ae)===m}on.AsyncMode=_,on.ConcurrentMode=R,on.ContextConsumer=z,on.ContextProvider=re,on.Element=ge,on.ForwardRef=le,on.Fragment=I,on.Lazy=Ce,on.Memo=we,on.Portal=U,on.Profiler=ee,on.StrictMode=N,on.Suspense=O,on.isAsyncMode=de,on.isConcurrentMode=k,on.isContextConsumer=se,on.isContextProvider=oe,on.isElement=Te,on.isForwardRef=Me,on.isFragment=Le,on.isLazy=Ye,on.isMemo=Qe,on.isPortal=Ue,on.isProfiler=Ge,on.isStrictMode=Ie,on.isSuspense=Ne,on.isValidElementType=S,on.typeOf=M}()),on}var e2;function QO(){return e2||(e2=1,process.env.NODE_ENV==="production"?xh.exports=Moe():xh.exports=Foe()),xh.exports}/*
|
|
107
|
+
object-assign
|
|
108
|
+
(c) Sindre Sorhus
|
|
109
|
+
@license MIT
|
|
110
|
+
*/var ub,t2;function Roe(){if(t2)return ub;t2=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ub=i()?Object.assign:function(a,s){for(var o,l=r(a),d,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var m in o)t.call(o,m)&&(l[m]=o[m]);if(e){d=e(o);for(var g=0;g<d.length;g++)n.call(o,d[g])&&(l[d[g]]=o[d[g]])}}return l},ub}var lb,n2;function D$(){if(n2)return lb;n2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lb=e,lb}var cb,r2;function eI(){return r2||(r2=1,cb=Function.call.bind(Object.prototype.hasOwnProperty)),cb}var fb,i2;function koe(){if(i2)return fb;i2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=D$(),n={},r=eI();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,o,l,d){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((l||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](s,h,l,o,null,t)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+o+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},fb=i,fb}var db,a2;function Ooe(){if(a2)return db;a2=1;var e=QO(),t=Roe(),n=D$(),r=eI(),i=koe(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return db=function(o,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(k){var se=k&&(d&&k[d]||k[h]);if(typeof se=="function")return se}var g="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:C(),arrayOf:S,element:M(),elementType:_(),instanceOf:R,node:le(),objectOf:re,oneOf:z,oneOfType:ge,shape:Ce,exact:we};function w(k,se){return k===se?k!==0||1/k===1/se:k!==k&&se!==se}function x(k,se){this.message=k,this.data=se&&typeof se=="object"?se:{},this.stack=""}x.prototype=Error.prototype;function A(k){if(process.env.NODE_ENV!=="production")var se={},oe=0;function Te(Le,Ye,Qe,Ue,Ge,Ie,Ne){if(Ue=Ue||g,Ie=Ie||Qe,Ne!==n){if(l){var Ae=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ae.name="Invariant Violation",Ae}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var He=Ue+":"+Qe;!se[He]&&oe<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ie+"` prop on `"+Ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),se[He]=!0,oe++)}}return Ye[Qe]==null?Le?Ye[Qe]===null?new x("The "+Ge+" `"+Ie+"` is marked as required "+("in `"+Ue+"`, but its value is `null`.")):new x("The "+Ge+" `"+Ie+"` is marked as required in "+("`"+Ue+"`, but its value is `undefined`.")):null:k(Ye,Qe,Ue,Ge,Ie)}var Me=Te.bind(null,!1);return Me.isRequired=Te.bind(null,!0),Me}function E(k){function se(oe,Te,Me,Le,Ye,Qe){var Ue=oe[Te],Ge=N(Ue);if(Ge!==k){var Ie=O(Ue);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ie+"` supplied to `"+Me+"`, expected ")+("`"+k+"`."),{expectedType:k})}return null}return A(se)}function C(){return A(s)}function S(k){function se(oe,Te,Me,Le,Ye){if(typeof k!="function")return new x("Property `"+Ye+"` of component `"+Me+"` has invalid PropType notation inside arrayOf.");var Qe=oe[Te];if(!Array.isArray(Qe)){var Ue=N(Qe);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+Me+"`, expected an array."))}for(var Ge=0;Ge<Qe.length;Ge++){var Ie=k(Qe,Ge,Me,Le,Ye+"["+Ge+"]",n);if(Ie instanceof Error)return Ie}return null}return A(se)}function M(){function k(se,oe,Te,Me,Le){var Ye=se[oe];if(!o(Ye)){var Qe=N(Ye);return new x("Invalid "+Me+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Te+"`, expected a single ReactElement."))}return null}return A(k)}function _(){function k(se,oe,Te,Me,Le){var Ye=se[oe];if(!e.isValidElementType(Ye)){var Qe=N(Ye);return new x("Invalid "+Me+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Te+"`, expected a single ReactElement type."))}return null}return A(k)}function R(k){function se(oe,Te,Me,Le,Ye){if(!(oe[Te]instanceof k)){var Qe=k.name||g,Ue=de(oe[Te]);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+Me+"`, expected ")+("instance of `"+Qe+"`."))}return null}return A(se)}function z(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function se(oe,Te,Me,Le,Ye){for(var Qe=oe[Te],Ue=0;Ue<k.length;Ue++)if(w(Qe,k[Ue]))return null;var Ge=JSON.stringify(k,function(Ne,Ae){var He=O(Ae);return He==="symbol"?String(Ae):Ae});return new x("Invalid "+Le+" `"+Ye+"` of value `"+String(Qe)+"` "+("supplied to `"+Me+"`, expected one of "+Ge+"."))}return A(se)}function re(k){function se(oe,Te,Me,Le,Ye){if(typeof k!="function")return new x("Property `"+Ye+"` of component `"+Me+"` has invalid PropType notation inside objectOf.");var Qe=oe[Te],Ue=N(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+Me+"`, expected an object."));for(var Ge in Qe)if(r(Qe,Ge)){var Ie=k(Qe,Ge,Me,Le,Ye+"."+Ge,n);if(Ie instanceof Error)return Ie}return null}return A(se)}function ge(k){if(!Array.isArray(k))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var se=0;se<k.length;se++){var oe=k[se];if(typeof oe!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(oe)+" at index "+se+"."),s}function Te(Me,Le,Ye,Qe,Ue){for(var Ge=[],Ie=0;Ie<k.length;Ie++){var Ne=k[Ie],Ae=Ne(Me,Le,Ye,Qe,Ue,n);if(Ae==null)return null;Ae.data&&r(Ae.data,"expectedType")&&Ge.push(Ae.data.expectedType)}var He=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new x("Invalid "+Qe+" `"+Ue+"` supplied to "+("`"+Ye+"`"+He+"."))}return A(Te)}function le(){function k(se,oe,Te,Me,Le){return U(se[oe])?null:new x("Invalid "+Me+" `"+Le+"` supplied to "+("`"+Te+"`, expected a ReactNode."))}return A(k)}function I(k,se,oe,Te,Me){return new x((k||"React class")+": "+se+" type `"+oe+"."+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Me+"`.")}function Ce(k){function se(oe,Te,Me,Le,Ye){var Qe=oe[Te],Ue=N(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+Me+"`, expected `object`."));for(var Ge in k){var Ie=k[Ge];if(typeof Ie!="function")return I(Me,Le,Ye,Ge,O(Ie));var Ne=Ie(Qe,Ge,Me,Le,Ye+"."+Ge,n);if(Ne)return Ne}return null}return A(se)}function we(k){function se(oe,Te,Me,Le,Ye){var Qe=oe[Te],Ue=N(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+Me+"`, expected `object`."));var Ge=t({},oe[Te],k);for(var Ie in Ge){var Ne=k[Ie];if(r(k,Ie)&&typeof Ne!="function")return I(Me,Le,Ye,Ie,O(Ne));if(!Ne)return new x("Invalid "+Le+" `"+Ye+"` key `"+Ie+"` supplied to `"+Me+"`.\nBad object: "+JSON.stringify(oe[Te],null," ")+`
|
|
111
|
+
Valid keys: `+JSON.stringify(Object.keys(k),null," "));var Ae=Ne(Qe,Ie,Me,Le,Ye+"."+Ie,n);if(Ae)return Ae}return null}return A(se)}function U(k){switch(typeof k){case"number":case"string":case"undefined":return!0;case"boolean":return!k;case"object":if(Array.isArray(k))return k.every(U);if(k===null||o(k))return!0;var se=m(k);if(se){var oe=se.call(k),Te;if(se!==k.entries){for(;!(Te=oe.next()).done;)if(!U(Te.value))return!1}else for(;!(Te=oe.next()).done;){var Me=Te.value;if(Me&&!U(Me[1]))return!1}}else return!1;return!0;default:return!1}}function ee(k,se){return k==="symbol"?!0:se?se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&se instanceof Symbol:!1}function N(k){var se=typeof k;return Array.isArray(k)?"array":k instanceof RegExp?"object":ee(se,k)?"symbol":se}function O(k){if(typeof k>"u"||k===null)return""+k;var se=N(k);if(se==="object"){if(k instanceof Date)return"date";if(k instanceof RegExp)return"regexp"}return se}function K(k){var se=O(k);switch(se){case"array":case"object":return"an "+se;case"boolean":case"date":case"regexp":return"a "+se;default:return se}}function de(k){return!k.constructor||!k.constructor.name?g:k.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},db}var hb,s2;function Ioe(){if(s2)return hb;s2=1;var e=D$();function t(){}function n(){}return n.resetWarningCache=t,hb=function(){function r(s,o,l,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},hb}var o2;function Loe(){if(o2)return $h.exports;if(o2=1,process.env.NODE_ENV!=="production"){var e=QO(),t=!0;$h.exports=Ooe()(e.isElement,t)}else $h.exports=Ioe()();return $h.exports}var bi=Loe();const rt=yr(bi),tI={data:bi.oneOfType([bi.string,bi.array,bi.func]).isRequired,headers:bi.array,target:bi.string,separator:bi.string,filename:bi.string,uFEFF:bi.bool,onClick:bi.func,asyncOnClick:bi.bool,enclosingCharacter:bi.string},nI={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Boe={target:"_blank"};class u2 extends ce.default.Component{constructor(t){super(t),this.state={}}buildURI(){return JO(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:s,specs:o,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),s,o,l)}getWindow(){return this.state.page}render(){return null}}Hc(u2,"defaultProps",Object.assign(nI,Boe)),Hc(u2,"propTypes",tI);var Ch;let Voe=(Ch=class extends ce.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return JO(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:s,enclosingCharacter:o,uFEFF:l}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",XO(d,i,a,o)]);return window.navigator.msSaveBlob(h,s),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:s,onClick:o,asyncOnClick:l,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,d);return Qa.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:s})}},Hc(Ch,"defaultProps",nI),Hc(Ch,"propTypes",tI),Ch);const Noe=Voe;var pb,l2;function joe(){if(l2)return pb;l2=1;function e(t){return t==null}return pb=e,pb}var Koe=joe();const Uoe=yr(Koe);/**
|
|
112
|
+
* react-table
|
|
113
|
+
*
|
|
114
|
+
* Copyright (c) TanStack
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the MIT license found in the
|
|
117
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
118
|
+
*
|
|
119
|
+
* @license MIT
|
|
120
|
+
*/function qoe(e,t){return e?zoe(e)?ce.createElement(e,t):e:null}function zoe(e){return Woe(e)||typeof e=="function"||Hoe(e)}function Woe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Hoe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var mb,c2;function Goe(){if(c2)return mb;c2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return mb=e,mb}var gb,f2;function Yoe(){if(f2)return gb;f2=1;var e=Pu(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return gb=n,gb}var vb,d2;function Zoe(){if(d2)return vb;d2=1;var e=BP(),t=e(Object.getPrototypeOf,Object);return vb=t,vb}var yb,h2;function Xoe(){if(h2)return yb;h2=1;var e=Goe(),t=Yoe(),n=qP(),r=UP(),i=Zoe(),a=ts(),s=A4(),o=E4(),l=Pu(),d=_4();function h(m,g,b){var w=a(m),x=w||s(m)||d(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=w?new A:[]:l(m)?b=o(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(E,C,S){return g(b,E,C,S)}),b}return yb=h,yb}var Joe=Xoe();const Qoe=yr(Joe);function rI(e){return t=>typeof t===e}var eue=rI("function"),tue=e=>e===null,p2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",m2=e=>!nue(e)&&!tue(e)&&(eue(e)||typeof e=="object"),nue=rI("undefined");function rue(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Nr(e[r],t[r]))return!1;return!0}function iue(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function aue(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Nr(n[1],t.get(n[0])))return!1;return!0}function sue(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Nr(e,t){if(e===t)return!0;if(e&&m2(e)&&t&&m2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return rue(e,t);if(e instanceof Map&&t instanceof Map)return aue(e,t);if(e instanceof Set&&t instanceof Set)return sue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return iue(e,t);if(p2(e)&&p2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Nr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var oue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],uue=["bigint","boolean","null","number","string","symbol","undefined"];function Sm(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(lue(t))return t}function Ea(e){return t=>Sm(t)===e}function lue(e){return oue.includes(e)}function gc(e){return t=>typeof t===e}function cue(e){return uue.includes(e)}var fue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Sm(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Sm(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ea("AsyncFunction");ut.bigint=gc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ea("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&fue.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ea("Error");ut.function=gc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ea("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ea("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>gc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ea("Function");ut.plainObject=e=>{if(Sm(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||cue(typeof e);ut.promise=Ea("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ea("RegExp");ut.set=Ea("Set");ut.string=gc("string");ut.symbol=gc("symbol");ut.undefined=gc("undefined");ut.weakMap=Ea("WeakMap");ut.weakSet=Ea("WeakSet");var dt=ut;function due(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function hue(e,t,n){return iI(e,t)?[e,t].every(dt.array)?!e.some($2(n))&&t.some($2(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(b2(n))&&Object.entries(t).some(b2(n)):t===n:!1}function g2(e,t,n){const{actual:r,key:i,previous:a,type:s}=n,o=Ha(e,i),l=Ha(t,i);let d=[o,l].every(dt.number)&&(s==="increased"?o<l:o>l);return dt.undefined(r)||(d=d&&l===r),dt.undefined(a)||(d=d&&o===a),d}function v2(e,t,n){const{key:r,type:i,value:a}=n,s=Ha(e,r),o=Ha(t,r),l=i==="added"?s:o,d=i==="added"?o:s;if(!dt.nullOrUndefined(a)){if(dt.defined(l)){if(dt.array(l)||dt.plainObject(l))return hue(l,d,a)}else return Nr(d,a);return!1}return[s,o].every(dt.array)?!d.every(A$(l)):[s,o].every(dt.plainObject)?pue(Object.keys(l),Object.keys(d)):![s,o].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(s)&&dt.defined(o):dt.defined(s)&&!dt.defined(o))}function y2(e,t,{key:n}={}){let r=Ha(e,n),i=Ha(t,n);if(!iI(r,i))throw new TypeError("Inputs have different types");if(!due(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function b2(e){return([t,n])=>dt.array(e)?Nr(e,n)||e.some(r=>Nr(r,n)||dt.array(n)&&A$(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Nr(e[t],n):Nr(e,n)}function pue(e,t){return t.some(n=>!e.includes(n))}function $2(e){return t=>dt.array(e)?e.some(n=>Nr(n,t)||dt.array(t)&&A$(t)(n)):Nr(e,t)}function ef(e,t){return dt.array(e)?e.some(n=>Nr(n,t)):Nr(e,t)}function A$(e){return t=>e.some(n=>Nr(n,t))}function iI(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function Ha(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function Ap(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return v2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(m),A=dt.defined(g);if(x||A){const E=A?ef(g,b):!ef(m,b),C=ef(m,w);return E&&C}return[b,w].every(dt.array)||[b,w].every(dt.plainObject)?!Nr(b,w):b!==w}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(g);return ef(m,b)&&(x?ef(g,w):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return g2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=y2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=y2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return g2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return v2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var bb,x2;function mue(){if(x2)return bb;x2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;bb={left:i("scrollLeft"),top:i("scrollTop")};function i(o){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=s);var b=r(),w=d[o],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,E=!1;return w===h?g(e,d[o]):requestAnimationFrame(S),C;function C(){E=!0}function S(M){if(E)return g(t,d[o]);var _=r(),R=n(1,(_-b)/A),z=x(R);d[o]=z*(h-w)+w,R<1?requestAnimationFrame(S):requestAnimationFrame(function(){g(null,d[o])})}}}function a(o){return .5*(1-Math.cos(Math.PI*o))}function s(){}return bb}var gue=mue();const vue=yr(gue);var Kh={exports:{}},yue=Kh.exports,w2;function bue(){return w2||(w2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(yue,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Kh)),Kh.exports}var $ue=bue();const aI=yr($ue);var $b,C2;function xue(){if(C2)return $b;C2=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,$b=n,$b}var wue=xue();const E2=yr(wue);var xb,S2;function Cue(){if(S2)return xb;S2=1;var e=function(C){return t(C)&&!n(C)};function t(E){return!!E&&typeof E=="object"}function n(E){var C=Object.prototype.toString.call(E);return C==="[object RegExp]"||C==="[object Date]"||a(E)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(E){return E.$$typeof===i}function s(E){return Array.isArray(E)?[]:{}}function o(E,C){return C.clone!==!1&&C.isMergeableObject(E)?x(s(E),E,C):E}function l(E,C,S){return E.concat(C).map(function(M){return o(M,S)})}function d(E,C){if(!C.customMerge)return x;var S=C.customMerge(E);return typeof S=="function"?S:x}function h(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(C){return Object.propertyIsEnumerable.call(E,C)}):[]}function m(E){return Object.keys(E).concat(h(E))}function g(E,C){try{return C in E}catch{return!1}}function b(E,C){return g(E,C)&&!(Object.hasOwnProperty.call(E,C)&&Object.propertyIsEnumerable.call(E,C))}function w(E,C,S){var M={};return S.isMergeableObject(E)&&m(E).forEach(function(_){M[_]=o(E[_],S)}),m(C).forEach(function(_){b(E,_)||(g(E,_)&&S.isMergeableObject(C[_])?M[_]=d(_,S)(E[_],C[_],S):M[_]=o(C[_],S))}),M}function x(E,C,S){S=S||{},S.arrayMerge=S.arrayMerge||l,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var M=Array.isArray(C),_=Array.isArray(E),R=M===_;return R?M?S.arrayMerge(E,C,S):w(E,C,S):o(C,S)}x.all=function(C,S){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(M,_){return x(M,_,S)},{})};var A=x;return xb=A,xb}var Eue=Cue();const va=yr(Eue);/**!
|
|
121
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
122
|
+
* @version 1.16.1
|
|
123
|
+
* @license
|
|
124
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
125
|
+
*
|
|
126
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
127
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
128
|
+
* in the Software without restriction, including without limitation the rights
|
|
129
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
130
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
131
|
+
* furnished to do so, subject to the following conditions:
|
|
132
|
+
*
|
|
133
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
134
|
+
* copies or substantial portions of the Software.
|
|
135
|
+
*
|
|
136
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
137
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
138
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
139
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
140
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
141
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
142
|
+
* SOFTWARE.
|
|
143
|
+
*/var bd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Sue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(bd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Due(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Aue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Sue))}}var Tue=bd&&window.Promise,Pue=Tue?Due:Aue;function sI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ru(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function T$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function $d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ru(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:$d(T$(e))}function oI(e){return e&&e.referenceNode?e.referenceNode:e}var D2=bd&&!!(window.MSInputMethodContext&&document.documentMode),A2=bd&&/MSIE 10/.test(navigator.userAgent);function vc(e){return e===11?D2:e===10?A2:D2||A2}function Xl(e){if(!e)return document.documentElement;for(var t=vc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ru(n,"position")==="static"?Xl(n):n}function _ue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Xl(e.firstElementChild)===e}function t4(e){return e.parentNode!==null?t4(e.parentNode):e}function Tp(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var s=a.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return _ue(s)?s:Xl(s);var o=t4(e);return o.host?Tp(o.host,t):Tp(e,t4(t).host)}function Jl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Mue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Jl(t,"top"),i=Jl(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function T2(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function P2(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],vc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function uI(e){var t=e.body,n=e.documentElement,r=vc(10)&&getComputedStyle(n);return{height:P2("Height",t,n,r),width:P2("Width",t,n,r)}}var Fue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Rue=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ql=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function xo(e){return Hi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function n4(e){var t={};try{if(vc(10)){t=e.getBoundingClientRect();var n=Jl(e,"top"),r=Jl(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?uI(e.ownerDocument):{},s=a.width||e.clientWidth||i.width,o=a.height||e.clientHeight||i.height,l=e.offsetWidth-s,d=e.offsetHeight-o;if(l||d){var h=Ru(e);l-=T2(h,"x"),d-=T2(h,"y"),i.width-=l,i.height-=d}return xo(i)}function P$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=vc(10),i=t.nodeName==="HTML",a=n4(e),s=n4(t),o=$d(e),l=Ru(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=xo({top:a.top-s.top-d,left:a.left-s.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(o):t===o&&o.nodeName!=="BODY")&&(m=Mue(m,t)),m}function kue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=P$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Jl(n),o=t?0:Jl(n,"left"),l={top:s-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:i,height:a};return xo(l)}function lI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ru(e,"position")==="fixed")return!0;var n=T$(e);return n?lI(n):!1}function cI(e){if(!e||!e.parentElement||vc())return document.documentElement;for(var t=e.parentElement;t&&Ru(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function _$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?cI(e):Tp(e,oI(t));if(r==="viewport")a=kue(s,i);else{var o=void 0;r==="scrollParent"?(o=$d(T$(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var l=P$(o,s,i);if(o.nodeName==="HTML"&&!lI(s)){var d=uI(e.ownerDocument),h=d.height,m=d.width;a.top+=l.top-l.marginTop,a.bottom=h+l.top,a.left+=l.left-l.marginLeft,a.right=m+l.left}else a=l}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function Oue(e){var t=e.width,n=e.height;return t*n}function fI(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=_$(n,r,a,i),o={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(o).map(function(g){return Hi({key:g},o[g],{area:Oue(o[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,w=g.height;return b>=n.clientWidth&&w>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function dI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?cI(t):Tp(t,oI(n));return P$(n,i,r)}function hI(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function Pp(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function pI(e,t,n){n=n.split("-")[0];var r=hI(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,s=a?"top":"left",o=a?"left":"top",l=a?"height":"width",d=a?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,n===o?i[o]=t[o]-r[d]:i[o]=t[Pp(o)],i}function xd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Iue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=xd(e,function(i){return i[t]===n});return e.indexOf(r)}function mI(e,t,n){var r=n===void 0?e:e.slice(0,Iue(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&sI(a)&&(t.offsets.popper=xo(t.offsets.popper),t.offsets.reference=xo(t.offsets.reference),t=a(t,i))}),t}function Lue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=dI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=fI(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=pI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=mI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function gI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function M$(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function Bue(){return this.state.isDestroyed=!0,gI(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[M$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function vI(e){var t=e.ownerDocument;return t?t.defaultView:window}function yI(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||yI($d(a.parentNode),t,n,r),r.push(a)}function Vue(e,t,n,r){n.updateBound=r,vI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=$d(e);return yI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Nue(){this.state.eventsEnabled||(this.state=Vue(this.reference,this.options,this.state,this.scheduleUpdate))}function jue(e,t){return vI(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Kue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=jue(this.reference,this.state))}function F$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function r4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&F$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Uue(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function que(e){return r4(e.instance.popper,e.styles),Uue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&r4(e.arrowElement,e.arrowStyles),e}function zue(e,t,n,r,i){var a=dI(i,t,e,n.positionFixed),s=fI(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),r4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Wue(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,s=Math.floor,o=function(E){return E},l=a(i.width),d=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,w=t?h||m||g?a:s:o,x=t?a:o;return{left:w(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:w(r.right)}}var Hue=bd&&/Firefox/i.test(navigator.userAgent);function Gue(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=xd(e.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=a!==void 0?a:t.gpuAcceleration,o=Xl(e.instance.popper),l=n4(o),d={position:i.position},h=Wue(e,window.devicePixelRatio<2||!Hue),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=M$("transform"),w=void 0,x=void 0;if(m==="bottom"?o.nodeName==="HTML"?x=-o.clientHeight+h.bottom:x=-l.height+h.bottom:x=h.top,g==="right"?o.nodeName==="HTML"?w=-o.clientWidth+h.right:w=-l.width+h.right:w=h.left,s&&b)d[b]="translate3d("+w+"px, "+x+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var A=m==="bottom"?-1:1,E=g==="right"?-1:1;d[m]=x*A,d[g]=w*E,d.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Hi({},C,e.attributes),e.styles=Hi({},d,e.styles),e.arrowStyles=Hi({},e.offsets.arrow,e.arrowStyles),e}function bI(e,t,n){var r=xd(e,function(o){var l=o.name;return l===t}),i=!!r&&e.some(function(o){return o.name===n&&o.enabled&&o.order<r.order});if(!i){var a="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function Yue(e,t){var n;if(!bI(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,o=a.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",w=hI(r)[d];o[b]-w<s[m]&&(e.offsets.popper[m]-=s[m]-(o[b]-w)),o[m]+w>s[b]&&(e.offsets.popper[m]+=o[m]+w-s[b]),e.offsets.popper=xo(e.offsets.popper);var x=o[m]+o[d]/2-w/2,A=Ru(e.instance.popper),E=parseFloat(A["margin"+h]),C=parseFloat(A["border"+h+"Width"]),S=x-e.offsets.popper[m]-E-C;return S=Math.max(Math.min(s[d]-w,S),0),e.arrowElement=r,e.offsets.arrow=(n={},Ql(n,m,Math.round(S)),Ql(n,g,""),n),e}function Zue(e){return e==="end"?"start":e==="start"?"end":e}var $I=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],wb=$I.slice(3);function _2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=wb.indexOf(e),r=wb.slice(n+1).concat(wb.slice(0,n));return t?r.reverse():r}var Cb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Xue(e,t){if(gI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=_$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Pp(r),a=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case Cb.FLIP:s=[r,i];break;case Cb.CLOCKWISE:s=_2(r);break;case Cb.COUNTERCLOCKWISE:s=_2(r,!0);break;default:s=t.behavior}return s.forEach(function(o,l){if(r!==o||s.length===l+1)return e;r=e.placement.split("-")[0],i=Pp(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),w=m(d.right)>m(n.right),x=m(d.top)<m(n.top),A=m(d.bottom)>m(n.bottom),E=r==="left"&&b||r==="right"&&w||r==="top"&&x||r==="bottom"&&A,C=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(C&&a==="start"&&b||C&&a==="end"&&w||!C&&a==="start"&&x||!C&&a==="end"&&A),M=!!t.flipVariationsByContent&&(C&&a==="start"&&w||C&&a==="end"&&b||!C&&a==="start"&&A||!C&&a==="end"&&x),_=S||M;(g||E||_)&&(e.flipped=!0,(g||E)&&(r=s[l+1]),_&&(a=Zue(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Hi({},e.offsets.popper,pI(e.instance.popper,e.offsets.reference,e.placement)),e=mI(e.instance.modifiers,e,"flip"))}),e}function Jue(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,s=["top","bottom"].indexOf(i)!==-1,o=s?"right":"bottom",l=s?"left":"top",d=s?"width":"height";return n[o]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[d]),n[l]>a(r[o])&&(e.offsets.popper[l]=a(r[o])),e}function Que(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],s=i[2];if(!a)return e;if(s.indexOf("%")===0){var o=void 0;switch(s){case"%p":o=n;break;case"%":case"%r":default:o=r}var l=xo(o);return l[t]/100*a}else if(s==="vh"||s==="vw"){var d=void 0;return s==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*a}else return a}function ele(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(h){return h.trim()}),o=s.indexOf(xd(s,function(h){return h.search(/,|\s/)!==-1}));s[o]&&s[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=o!==-1?[s.slice(0,o).concat([s[o].split(l)[0]]),[s[o].split(l)[1]].concat(s.slice(o+1))]:[s];return d=d.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function(w,x){return w[w.length-1]===""&&["+","-"].indexOf(x)!==-1?(w[w.length-1]=x,b=!0,w):b?(w[w.length-1]+=x,b=!1,w):w.concat(x)},[]).map(function(w){return Que(w,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){F$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function tle(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,o=r.split("-")[0],l=void 0;return F$(+n)?l=[+n,0]:l=ele(n,a,s,o),o==="left"?(a.top+=l[0],a.left-=l[1]):o==="right"?(a.top+=l[0],a.left+=l[1]):o==="top"?(a.left+=l[0],a.top-=l[1]):o==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function nle(e,t){var n=t.boundariesElement||Xl(e.instance.popper);e.instance.reference===n&&(n=Xl(n));var r=M$("transform"),i=e.instance.popper.style,a=i.top,s=i.left,o=i[r];i.top="",i.left="",i[r]="";var l=_$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=s,i[r]=o,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var w=h[b];return h[b]<l[b]&&!t.escapeWithReference&&(w=Math.max(h[b],l[b])),Ql({},b,w)},secondary:function(b){var w=b==="right"?"left":"top",x=h[w];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[w],l[b]-(b==="right"?h.width:h.height))),Ql({},w,x)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Hi({},h,m[b](g))}),e.offsets.popper=h,e}function rle(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,s=i.popper,o=["bottom","top"].indexOf(n)!==-1,l=o?"left":"top",d=o?"width":"height",h={start:Ql({},l,a[l]),end:Ql({},l,a[l]+a[d]-s[d])};e.offsets.popper=Hi({},s,h[r])}return e}function ile(e){if(!bI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=xd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ale(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,s=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=a[n]-(o?i[s?"width":"height"]:0),e.placement=Pp(t),e.offsets.popper=xo(i),e}var sle={shift:{order:100,enabled:!0,fn:rle},offset:{order:200,enabled:!0,fn:tle,offset:0},preventOverflow:{order:300,enabled:!0,fn:nle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Jue},arrow:{order:500,enabled:!0,fn:Yue,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Xue,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ale},hide:{order:800,enabled:!0,fn:ile},computeStyle:{order:850,enabled:!0,fn:Gue,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:que,onLoad:zue,gpuAcceleration:void 0}},ole={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:sle},Gf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Fue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Pue(this.update.bind(this)),this.options=Hi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Hi({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=Hi({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Hi({name:s},r.options.modifiers[s])}).sort(function(s,o){return s.order-o.order}),this.modifiers.forEach(function(s){s.enabled&&sI(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Rue(e,[{key:"update",value:function(){return Lue.call(this)}},{key:"destroy",value:function(){return Bue.call(this)}},{key:"enableEventListeners",value:function(){return Nue.call(this)}},{key:"disableEventListeners",value:function(){return Kue.call(this)}}]),e}();Gf.Utils=(typeof window<"u"?window:global).PopperUtils;Gf.placements=$I;Gf.Defaults=ole;var ule=["innerHTML","ownerDocument","style","attributes","nodeValue"],lle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],cle=["bigint","boolean","null","number","string","symbol","undefined"];function Dm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(fle(t))return t}function Sa(e){return function(t){return Dm(t)===e}}function fle(e){return lle.includes(e)}function yc(e){return function(t){return typeof t===e}}function dle(e){return cle.includes(e)}function Ke(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=Dm(e);return t||"Object"}Ke.array=Array.isArray;Ke.arrayOf=function(e,t){return!Ke.array(e)&&!Ke.function(t)?!1:e.every(function(n){return t(n)})};Ke.asyncGeneratorFunction=function(e){return Dm(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Sa("AsyncFunction");Ke.bigint=yc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Sa("Date");Ke.defined=function(e){return!Ke.undefined(e)};Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&e.nodeType===1&&Ke.string(e.nodeName)&&ule.every(function(t){return t in e})};Ke.empty=function(e){return Ke.string(e)&&e.length===0||Ke.array(e)&&e.length===0||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&Object.keys(e).length===0||Ke.set(e)&&e.size===0||Ke.map(e)&&e.size===0};Ke.error=Sa("Error");Ke.function=yc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Sa("GeneratorFunction");Ke.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])};Ke.map=Sa("Map");Ke.nan=function(e){return Number.isNaN(e)};Ke.null=function(e){return e===null};Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)};Ke.number=function(e){return yc("number")(e)&&!Ke.nan(e)};Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))};Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||typeof e=="object")};Ke.oneOf=function(e,t){return Ke.array(e)?e.indexOf(t)>-1:!1};Ke.plainFunction=Sa("Function");Ke.plainObject=function(e){if(Dm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||dle(typeof e)};Ke.promise=Sa("Promise");Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)};Ke.regexp=Sa("RegExp");Ke.set=Sa("Set");Ke.string=yc("string");Ke.symbol=yc("symbol");Ke.undefined=yc("undefined");Ke.weakMap=Sa("WeakMap");Ke.weakSet=Sa("WeakSet");function xI(e){return function(t){return typeof t===e}}var hle=xI("function"),ple=function(e){return e===null},M2=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},F2=function(e){return!mle(e)&&!ple(e)&&(hle(e)||typeof e=="object")},mle=xI("undefined"),i4=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function gle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ii(e[r],t[r]))return!1;return!0}function vle(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function yle(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var s=i4(e.entries()),o=s.next();!o.done;o=s.next()){var l=o.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var d=i4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!ii(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}return!0}function ble(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=i4(e.entries()),a=i.next();!a.done;a=i.next()){var s=a.value;if(!t.has(s[0]))return!1}}catch(o){n={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ii(e,t){if(e===t)return!0;if(e&&F2(e)&&t&&F2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return gle(e,t);if(e instanceof Map&&t instanceof Map)return yle(e,t);if(e instanceof Set&&t instanceof Set)return ble(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return vle(e,t);if(M2(e)&&M2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!ii(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function $le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return Ke.string(n)||Ke.array(n)||Ke.plainObject(n)})}function xle(e,t,n){return wI(e,t)?[e,t].every(Ke.array)?!e.some(L2(n))&&t.some(L2(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(I2(n))&&Object.entries(t).some(I2(n)):t===n:!1}function R2(e,t,n){var r=n.actual,i=n.key,a=n.previous,s=n.type,o=Ga(e,i),l=Ga(t,i),d=[o,l].every(Ke.number)&&(s==="increased"?o<l:o>l);return Ke.undefined(r)||(d=d&&l===r),Ke.undefined(a)||(d=d&&o===a),d}function k2(e,t,n){var r=n.key,i=n.type,a=n.value,s=Ga(e,r),o=Ga(t,r),l=i==="added"?s:o,d=i==="added"?o:s;if(!Ke.nullOrUndefined(a)){if(Ke.defined(l)){if(Ke.array(l)||Ke.plainObject(l))return xle(l,d,a)}else return ii(d,a);return!1}return[s,o].every(Ke.array)?!d.every(R$(l)):[s,o].every(Ke.plainObject)?wle(Object.keys(l),Object.keys(d)):![s,o].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(s)&&Ke.defined(o):Ke.defined(s)&&!Ke.defined(o))}function O2(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ga(e,i),s=Ga(t,i);if(!wI(a,s))throw new TypeError("Inputs have different types");if(!$le(a,s))throw new TypeError("Inputs don't have length");return[a,s].every(Ke.plainObject)&&(a=Object.keys(a),s=Object.keys(s)),[a,s]}function I2(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?ii(e,r)||e.some(function(i){return ii(i,r)||Ke.array(r)&&R$(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&ii(e[n],r):ii(e,r)}}function wle(e,t){return t.some(function(n){return!e.includes(n)})}function L2(e){return function(t){return Ke.array(e)?e.some(function(n){return ii(n,t)||Ke.array(t)&&R$(t)(n)}):ii(e,t)}}function tf(e,t){return Ke.array(e)?e.some(function(n){return ii(n,t)}):ii(e,t)}function R$(e){return function(t){return e.some(function(n){return ii(n,t)})}}function wI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Ga(e,t){if(Ke.plainObject(e)||Ke.array(e)){if(Ke.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return Ke.number(t)?e[t]:e}return e}function Cle(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return Ke.plainObject(m)||Ke.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return k2(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(g),E=Ke.defined(b);if(A||E){var C=E?tf(b,w):!tf(g,w),S=tf(g,x);return C&&S}return[w,x].every(Ke.array)||[w,x].every(Ke.plainObject)?!ii(w,x):w!==x}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(b);return tf(g,w)&&(A?tf(b,x):!A)}catch{return!1}},a=function(m,g){return Ke.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},s=function(m,g,b){if(!Ke.defined(m))return!1;try{return R2(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=O2(e,t,{key:m}),b=g[0],w=g[1];return!!b.length&&!w.length}catch{return!1}},l=function(m){try{var g=O2(e,t,{key:m}),b=g[0],w=g[1];return!b.length&&!!w.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return R2(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return k2(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:s,emptied:o,filled:l,increased:d,removed:h}}function B2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){Dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ele(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EI(r.key),r)}}function Cd(e,t,n){return t&&Ele(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t,n){return t=EI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ed(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a4(e,t)}function _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_p(e)}function a4(e,t){return a4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a4(e,t)}function Sle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CI(e,t){if(e==null)return{};var n=Dle(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ps(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ale(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ps(e)}function Sd(e){var t=Sle();return function(){var r=_p(e),i;if(t){var a=_p(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Ale(this,i)}}function Tle(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EI(e){var t=Tle(e,"string");return typeof t=="symbol"?t:String(t)}var Ple={flip:{padding:20},preventOverflow:{padding:10}},_le="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Mle="The error message is optional, but must be a string if provided.";function Fle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Rle(e,t){return Object.hasOwnProperty.call(e,t)}function kle(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Ole(e,t){if(typeof e!="function")throw new TypeError(_le);if(t&&typeof t!="string")throw new TypeError(Mle)}function V2(e,t,n){return Ole(e,n),function(r,i,a){for(var s=arguments.length,o=new Array(s>3?s-3:0),l=3;l<s;l++)o[l-3]=arguments[l];return Fle(t,r,i,a)?Rle(r,i)?e.apply(void 0,[r,i,a].concat(o)):kle(r,i,a):e.apply(void 0,[r,i,a].concat(o))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},nf=Os.default.createPortal!==void 0;function Ua(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Eb(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function wh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,s=a===void 0?!1:a,o=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){Ke.plainObject(l)&&l.key?o.apply(console,[l.key,l.value]):o.apply(console,[l])}):o.apply(console,[n]),console.groupEnd())}function Ile(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Lle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Ble(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),Lle(e,t,i)},Ile(e,t,i,r)}function N2(){}var SI=function(e){Ed(n,e);var t=Sd(n);function n(){return wd(this,n),t.apply(this,arguments)}return Cd(n,[{key:"componentDidMount",value:function(){Ua()&&(this.node||this.appendNode(),nf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ua()&&(nf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ua()||!this.node||(nf||Os.default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,a=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ua())return null;var i=this.props,a=i.children,s=i.setRef;if(this.node||this.appendNode(),nf)return Os.default.createPortal(a,this.node);var o=Os.default.unstable_renderSubtreeIntoContainer(this,a.length>1?ce.default.createElement("div",null,a):a[0],this.node);return s(o),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,s=i.placement,o=i.target;return a?this.renderPortal():o||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return nf?this.renderReact16():null}}]),n}(ce.default.Component);Dr(SI,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var DI=function(e){Ed(n,e);var t=Sd(n);function n(){return wd(this,n),t.apply(this,arguments)}return Cd(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,s=i.styles,o=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=o):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=o):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,s=i.setArrowRef,o=i.styles,l=o.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,w=l.spread,x={display:h,position:b},A,E=w,C=m;return a.startsWith("top")?(A="0,0 ".concat(E/2,",").concat(C," ").concat(E,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(E,",").concat(C," ").concat(E/2,",0 0,").concat(C),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(C=w,E=m,A="0,0 ".concat(E,",").concat(C/2," 0,").concat(C),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(C=w,E=m,A="".concat(E,",").concat(C," ").concat(E,",0 0,").concat(C/2),x.left=0,x.marginTop=g,x.marginBottom=g),ce.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},ce.default.createElement("span",{ref:s,style:x},ce.default.createElement("svg",{width:E,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ce.default.createElement("polygon",{points:A,fill:d}))))}}]),n}(ce.default.Component);Dr(DI,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var Vle=["color","height","width"];function AI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,s=CI(n,Vle);return ce.default.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},ce.default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ce.default.createElement("g",null,ce.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}AI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function TI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,o=e.title,l=e.styles,d={content:ce.default.isValidElement(t)?t:ce.default.createElement("div",{className:"__floater__content",style:l.content},t)};return o&&(d.title=ce.default.isValidElement(o)?o:ce.default.createElement("div",{className:"__floater__title",style:l.title},o)),n&&(d.footer=ce.default.isValidElement(n)?n:ce.default.createElement("div",{className:"__floater__footer",style:l.footer},n)),(s||a)&&!Ke.boolean(i)&&(d.close=ce.default.createElement(AI,{styles:l.close,handleClick:r})),ce.default.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}TI.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var PI=function(e){Ed(n,e);var t=Sd(n);function n(){return wd(this,n),t.apply(this,arguments)}return Cd(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,s=i.component,o=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,w=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,E=h.floaterWithComponent,C={};return l||(o.startsWith("top")?C.padding="0 0 ".concat(m,"px"):o.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):o.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):o.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(d)!==-1&&(C=Dn(Dn({},C),x)),d===Zt.CLOSING&&(C=Dn(Dn({},C),w)),d===Zt.OPEN&&!a&&(C=Dn(Dn({},C),A)),o==="center"&&(C=Dn(Dn({},C),b)),s&&(C=Dn(Dn({},C),E)),Dn(Dn({},g),C)}},{key:"render",value:function(){var i=this.props,a=i.component,s=i.handleClick,o=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return a?ce.default.isValidElement(a)?h.content=ce.default.cloneElement(a,{closeFn:s}):h.content=a({closeFn:s}):h.content=ce.default.createElement(TI,this.props),d===Zt.OPEN&&m.push("__floater__open"),o||(h.arrow=ce.default.createElement(DI,this.props)),ce.default.createElement("div",{ref:l,className:m.join(" "),style:this.style},ce.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(ce.default.Component);Dr(PI,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var _I=function(e){Ed(n,e);var t=Sd(n);function n(){return wd(this,n),t.apply(this,arguments)}return Cd(n,[{key:"render",value:function(){var i=this.props,a=i.children,s=i.handleClick,o=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(ce.default.Children.count(a)===1)if(!ce.default.isValidElement(a))b=ce.default.createElement("span",null,a);else{var w=Ke.function(a.type)?"innerRef":"ref";b=ce.default.cloneElement(ce.default.Children.only(a),Dr({},w,d))}else b=a;return b?ce.default.createElement("span",{ref:h,style:Dn(Dn({},g),m),onClick:s,onMouseEnter:o,onMouseLeave:l},b):null}}]),n}(ce.default.Component);Dr(_I,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Nle={zIndex:100};function jle(e){var t=va(Nle,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var Kle=["arrow","flip","offset"],Ule=["position","top","right","bottom","left"],k$=function(e){Ed(n,e);var t=Sd(n);function n(r){var i;return wd(this,n),i=t.call(this,r),Dr(Ps(i),"setArrowRef",function(a){i.arrowRef=a}),Dr(Ps(i),"setChildRef",function(a){i.childRef=a}),Dr(Ps(i),"setFloaterRef",function(a){i.floaterRef=a}),Dr(Ps(i),"setWrapperRef",function(a){i.wrapperRef=a}),Dr(Ps(i),"handleTransitionEnd",function(){var a=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var o=i.state.status;s(o===Zt.OPEN?"open":"close",i.props)})}),Dr(Ps(i),"handleClick",function(){var a=i.props,s=a.event,o=a.open;if(!Ke.boolean(o)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(wh({title:"click",data:[{event:s,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Dr(Ps(i),"handleMouseEnter",function(){var a=i.props,s=a.event,o=a.open;if(!(Ke.boolean(o)||Eb())){var l=i.state.status;i.event==="hover"&&l===Zt.IDLE&&(wh({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Dr(Ps(i),"handleMouseLeave",function(){var a=i.props,s=a.event,o=a.eventDelay,l=a.open;if(!(Ke.boolean(l)||Eb())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(wh({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),o?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},o*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,Ua()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Cd(n,[{key:"componentDidMount",value:function(){if(Ua()){var i=this.state.positionWrapper,a=this.props,s=a.children,o=a.open,l=a.target;this._isMounted=!0,wh({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:Ke.boolean(o),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&Ke.boolean(o)}}},{key:"componentDidUpdate",value:function(i,a){if(Ua()){var s=this.props,o=s.autoOpen,l=s.open,d=s.target,h=s.wrapperOptions,m=Cle(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var w;Ke.boolean(l)&&(w=l?Zt.OPENING:Zt.CLOSING),this.toggle(w)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&l?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&o&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&Ble(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ua()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,o=this.props,l=o.disableFlip,d=o.getPopper,h=o.hideArrow,m=o.offset,g=o.placement,b=o.wrapperOptions,w=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,E=x.flip,C=x.offset,S=CI(x,Kle);new Gf(a,this.floaterRef,{placement:g,modifiers:Dn({arrow:Dn({enabled:!h,element:this.arrowRef},A),flip:Dn({enabled:!l,behavior:w},E),offset:Dn({offset:"0, ".concat(m,"px")},C)},S),onCreate:function(R){var z;if(i.popper=R,!((z=i.floaterRef)!==null&&z!==void 0&&z.isConnected)){i.setState({needsUpdate:!0});return}d(R,"floater"),i._isMounted&&i.setState({currentPlacement:R.placement,status:Zt.IDLE}),g!==R.placement&&setTimeout(function(){R.instance.update()},1)},onUpdate:function(R){i.popper=R;var z=i.state.currentPlacement;i._isMounted&&R.placement!==z&&i.setState({currentPlacement:R.placement})}})}if(s){var M=Ke.undefined(b.offset)?0:b.offset;new Gf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(M,"px")},flip:{enabled:!1}},onCreate:function(R){i.wrapperPopper=R,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),d(R,"wrapper"),g!==R.placement&&setTimeout(function(){R.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,s=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;Ke.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ua()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,s=i.event;return s==="hover"&&Eb()&&!a?"click":s}},{key:"options",get:function(){var i=this.props.options;return va(Ple,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,s=a.status,o=a.positionWrapper,l=a.statusWrapper,d=this.props.styles,h=va(jle(d),d);if(o){var m;[Zt.IDLE].indexOf(s)===-1||[Zt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Dn(Dn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Dn(Dn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(Ule.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Dn(Dn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Ua())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,s=i.positionWrapper,o=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,w=l.hideArrow,x=l.id,A=l.open,E=l.showCloseButton,C=l.style,S=l.target,M=l.title,_=ce.default.createElement(_I,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},d),R={};return s?R.wrapperInPortal=_:R.wrapperAsChildren=_,ce.default.createElement("span",null,ce.default.createElement(SI,{hasChildren:!!d,id:x,placement:a,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},ce.default.createElement(PI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:w||a==="center",open:A,placement:a,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:E,status:o,styles:this.styles,title:M}),R.wrapperInPortal),R.wrapperAsChildren)}}]),n}(ce.default.Component);Dr(k$,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:V2(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:V2(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Dr(k$,"defaultProps",{autoOpen:!1,callback:N2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:N2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var qle=Object.defineProperty,zle=(e,t,n)=>t in e?qle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>zle(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ki={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function fo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function MI(e){return e?e.getBoundingClientRect():null}function Wle(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((a,s)=>a-s),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function ks(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Hle(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Yf(e,t,n){if(!e)return du();const r=aI(e);if(r){if(r.isSameNode(du()))return n?document:du();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",du()}return r}function Dd(e,t){if(!e)return!1;const n=Yf(e,t);return n?!n.isSameNode(du()):!1}function Gle(e){return e.offsetParent!==document.body}function ec(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Hle(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?ec(e.parentNode,t):!1}function Yle(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Zle(e,t,n){var r,i,a;const s=MI(e),o=Yf(e,n),l=Dd(e,n),d=ec(e);let h=0,m=(r=s==null?void 0:s.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=o==null?void 0:o.scrollTop)!=null?a:0;m=g-b}else o instanceof HTMLElement&&(h=o.scrollTop,!l&&!ec(e)&&(m+=h),o.isSameNode(du())||(m+=du().scrollTop));return Math.floor(m-t)}function Xle(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=aI(e))!=null?r:{};let s=e.getBoundingClientRect().top+a;i&&(Dd(e,n)||Gle(e))&&(s-=i);const o=Math.floor(s-t);return o<0?0:o}function du(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Jle(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:s}=r,o=e>s?e-s:s-e;vue.top(r,e,{duration:o<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var rf=Mp.createPortal!==void 0;function FI(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Uh(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qa(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=E2(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(L.isValidElement(e)&&!Object.values(e.props).length&&Uh(e.type)==="function"){const s=e.type({});a=qa(s,t)}else a=E2(n);return a}function Qle(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function ece(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,s,o)=>a+a+s+s+o+o),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function j2(e){return e.disableBeacon||e.placement==="center"}function K2(){return!["chrome","safari","firefox","opera"].includes(FI())}function wo({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{dt.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function tce(e){return Object.keys(e)}function RI(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function nce(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function s4(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(Uh(e)==="string")return r(e);if(!L.isValidElement(e))return e;const{children:i}=e.props;if(Uh(i)==="string"&&i.includes("{step}"))return L.cloneElement(e,{children:r(i)});if(Array.isArray(i))return L.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):s4(a,t,n))});if(Uh(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return s4(a,t,n)}return e}function rce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:s}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!ec(s))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var ice={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},kI={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},ace={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:kI,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},sce={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},oce={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},af={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},U2={borderRadius:4,position:"absolute"};function uce(e,t){var n,r,i,a,s;const{floaterProps:o,styles:l}=e,d=va((n=t.floaterProps)!=null?n:{},o??{}),h=va(l??{},(r=t.styles)!=null?r:{}),m=va(oce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const w={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...af,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${ece(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...af,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...af,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...af,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...af,color:m.textColor,fontSize:14},overlay:{...w,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...w},overlayLegacyCenter:{...w,backgroundColor:m.overlayColor},spotlight:{...U2,backgroundColor:"gray"},spotlightLegacy:{...U2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(a=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?s:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return va(x,h)}function lce(e){return nce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function hl(e,t){var n,r,i,a,s,o;const l=t??{},d=va.all([ace,lce(e),l],{isMergeableObject:dt.plainObject}),h=uce(e,d),m=Dd(ks(d.target),d.disableScrollParentFix),g=va.all([ice,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=va((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(s=(a=e.spotlightPadding)!=null?a:d.spotlightPadding)!=null?s:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:va.all([kI,(o=e.locale)!=null?o:{},d.locale||{}]),floaterProps:g,styles:RI(h,"floaterStyles")}}function OI(e,t=!1){return dt.plainObject(e)?e.target?!0:(wo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(wo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function q2(e,t=!1){return dt.array(e)?e.every(n=>OI(n,t)):(wo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var II={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},z2=tce(RI(II,"controlled","size")),cce=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:s}=this.getState(),o={size:i.length,status:s};this.data.set("steps",i),s===Nt.WAITING&&!a&&i.length&&(o.status=Nt.RUNNING),this.setState(o)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:s}=this.getState();s===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:s}=this.getState();if(a||s!==Nt.RUNNING)return;const o=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:o?s:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:s}=this.getState();this.setState({...this.getNextState({action:rn.START,index:dt.number(i)?i:a},!0),status:s?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:s}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,s;if(!Qle(i,z2))throw new Error(`State is not valid. Valid keys: ${z2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...II}}getNextState(e,t=!1){var n,r,i,a,s;const{action:o,controlled:l,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:o,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(s=e.status)!=null?s:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:a,origin:s=null,size:o,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",s),this.store.set("size",o),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function fce(e){return new cce(e)}function dce({styles:e}){return ce.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var hce=dce,pce=class extends ce.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:s}=this.spotlightStyles,o=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=o>=a&&o<=a+n,m=l>=r&&l<=r+s&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=ks(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else ec(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=ks(r);this.scrollParent=Yf(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Dd(i,!0)&&wo({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:a}=this.props,{changed:s}=Ap(e,this.props);if(s("target")||s("disableScrollParentFix")){const o=ks(a);this.scrollParent=Yf(o??document.body,n,!0)}s("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return K2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Wle(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:s=0,styles:o,target:l}=this.props,d=ks(l),h=MI(d),m=ec(d),g=Zle(d,s,i);return{...K2()?o.spotlightLegacy:o.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+s*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let s=n!=="center"&&e&&ce.createElement(hce,{styles:a});if(FI()==="safari"){const{mixBlendMode:o,zIndex:l,...d}=i;s=ce.createElement("div",{style:{...d}},s),delete i.backgroundColor}return ce.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},mce=class extends ce.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;fo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),rf||this.renderReact15())}componentDidUpdate(){fo()&&(rf||this.renderReact15())}componentWillUnmount(){!fo()||!this.node||(rf||Os.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!fo())return;const{children:e}=this.props;this.node&&Os.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!fo()||!rf)return null;const{children:e}=this.props;return this.node?Os.createPortal(e,this.node):null}render(){return rf?this.renderReact16():null}},gce=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},vce=class extends ce.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
144
|
+
@keyframes joyride-beacon-inner {
|
|
145
|
+
20% {
|
|
146
|
+
opacity: 0.9;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
90% {
|
|
150
|
+
opacity: 0.7;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes joyride-beacon-outer {
|
|
155
|
+
0% {
|
|
156
|
+
transform: scale(1);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
45% {
|
|
160
|
+
opacity: 0.7;
|
|
161
|
+
transform: scale(0.75);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
100% {
|
|
165
|
+
opacity: 0.9;
|
|
166
|
+
transform: scale(1);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:s,step:o,styles:l}=this.props,d=qa(i.open),h={"aria-label":d,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=ce.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:o,...h})}else m=ce.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},ce.createElement("span",{style:l.beaconInner}),ce.createElement("span",{style:l.beaconOuter}));return m}};function yce({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return ce.default.createElement("button",{style:a,type:"button",...t},ce.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},ce.default.createElement("g",null,ce.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var bce=yce;function $ce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:o,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:x}=o,A={};return A.primary=ce.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...a}),b&&!i&&(A.skip=ce.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=ce.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),A.close=!m&&ce.createElement(bce,{"data-test-id":"button-close",styles:w.buttonClose,...n}),ce.createElement("div",{key:"JoyrideTooltip","aria-label":qa(x??d),className:"react-joyride__tooltip",style:w.tooltip,...l},ce.createElement("div",{style:w.tooltipContainer},x&&ce.createElement("h1",{"aria-label":qa(x),style:w.tooltipTitle},x),ce.createElement("div",{style:w.tooltipContent},d)),!g&&ce.createElement("div",{style:w.tooltipFooter},ce.createElement("div",{style:w.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var xce=$ce,wce=class extends ce.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:s,close:o,last:l,next:d,nextLabelWithProgress:h,skip:m}=a.locale,g=qa(s),b=qa(o),w=qa(l),x=qa(d),A=qa(m);let E=o,C=b;if(e){if(E=d,C=x,a.showProgress&&!n){const S=qa(h,{step:t+1,steps:i});E=s4(h,t+1,i),C=S}n&&(E=l,C=w)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:E,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:o,...l}=a;let d;if(o){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=o;d=ce.createElement(m,{...h})}else d=ce.createElement(xce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return d}},Cce=class extends ce.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&s.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return ce.createElement(wce,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;wo({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:s,helpers:o,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:x}=Ap(e,this.props),A=o.info(),E=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),M=w("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),_=a&&l===e.index;if(M&&(S||_)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ki.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&w("index")&&n!==rn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const R=ks(g.target),z=!!R;z&&Yle(R)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ki.STEP_BEFORE}):(console.warn(z?"Target not visible":"Target not mounted",g),r({...A,type:Ki.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:j2(g)||E?Ft.TOOLTIP:Ft.BEACON}),w("index")&&wo({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),w("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ki.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ki.TOOLTIP}),h&&this.tooltip&&(this.scope=new gce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return j2(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,o=ks(s.target);return!OI(s)||!dt.domElement(o)?null:ce.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},ce.createElement(k$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},ce.createElement(vce,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles})))}},LI=class extends ce.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:o}=this.props;dt.function(o)&&o(s)}),mt(this,"handleKeyboard",s=>{const{index:o,lifecycle:l}=this.state,{steps:d}=this.props,h=d[o];l===Ft.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:o}=this.props;hl(this.props,o[s]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=fce({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;wo({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!fo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;q2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!fo())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:o,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:x,update:A}=this.store,{changed:E}=Ap(e,this.props),{changed:C,changedFrom:S}=Ap(t,this.state),M=hl(this.props,d[i]),_=!Nr(m,d),R=dt.number(l)&&E("stepIndex"),z=ks(M.target);if(_&&(q2(d,s)?b(d):console.warn("Steps are not valid",d)),E("run")&&(o?w(l):x()),R){let le=dt.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(le=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:le,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!z&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ki.TARGET_NOT_FOUND,step:M}));const re={...this.state,index:i,step:M};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const le=hl(this.props,d[t.index]);this.callback({...re,index:t.index,lifecycle:Ft.COMPLETE,step:le,type:Ki.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const le=hl(this.props,d[t.index]);r||this.callback({...re,index:t.index,lifecycle:Ft.COMPLETE,step:le,type:Ki.STEP_AFTER}),this.callback({...re,type:Ki.TOUR_END,step:le,index:t.index}),g()}else S("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...re,type:Ki.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...re,type:Ki.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:s,scrollOffset:o=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=hl(this.props,d[t]),m=ks(h.target),g=rce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Dd(m,a),w=Yf(m,a);let x=Math.floor(Xle(m,o,a))||0;wo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),E=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:S}=A;!["bottom"].includes(S)&&!b&&(x=Math.floor(C.popper.top-o))}else if(n===Ft.TOOLTIP&&E){const{flipped:C,offsets:S,placement:M}=E;["top","right","left"].includes(M)&&!C&&!b?x=Math.floor(S.popper.top-o):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Jle(x,{element:w,duration:s}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!fo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:o}=this.props,l=n===Nt.RUNNING,d={};if(l&&o[e]){const h=hl(this.props,o[e]);d.step=ce.createElement(Cce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=ce.createElement(mce,{id:"react-joyride-portal"},ce.createElement(pce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return ce.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(LI,"defaultProps",sce);var Ece=LI;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=oR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Z5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ad;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=e_;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Jn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=pX;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=aR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Tr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=mZ;exports.$293f70390ea03370$export$497855f14858aa34=uX;exports.$32489daedd52963e$export$1315d136e6f7581=$X;exports.$337b884510726a0d$export$c6fdb837b070b4ff=qZ;exports.$36a0ac60f04457c5$export$136073280381448e=aZ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=GR;exports.$40df3f8667284809$export$d55e7ee900f34e93=EX;exports.$46a4342aab3d8076$export$87e0539f600c24e5=nZ;exports.$47b897dc8cdb026b$export$8d15029008292ae=bZ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=vZ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=gX;exports.$64244302c3013299$export$dd0bbc9b26defe37=DY;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=NY;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=CX;exports.$93c38a5e28be6249$export$e50a61c1de9f574=UX;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=tZ;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=SX;exports.$a916eb452884faea$export$b7a616150fdb9f44=VY;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=MX;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=LX;exports.$bb77f239b46e8c72$export$3274cf84b703fff=A_;exports.$bcca50147b47f54d$export$56b2c08e277f365=yZ;exports.$c132121280ec012d$export$50eacbbf140a3141=eX;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=nX;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=dX;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=rZ;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=qX;exports.$f2f8a6077418541e$export$542a6fd13ac93354=UZ;exports.$fae977aafc393c5c$export$588937bcd60ade55=tY;exports.$fae977aafc393c5c$export$6b862160d295c8e=eY;exports.ACTIONS=rn;exports.AdvancedImage=jK;exports.CSVLink=Noe;exports.Cloudinary=IU;exports.Controller=zW;exports.EVENTS=Ki;exports.FormProvider=UW;exports.LazyMotion=Nre;exports.Lottie=Sre;exports.M=pa;exports.ReorderGroup=cre;exports.ReorderItem=pre;exports.STATUS=Nt;exports._=fz;exports._$1=Fu;exports.autoUpdate=mW;exports.capitalize=zN;exports.components_default=Ece;exports.dayjs=ZX;exports.dayjs_minExports=YR;exports.domAnimation=xoe;exports.ee=JR;exports.flexRender=qoe;exports.flip=EW;exports.isEqual=HX;exports.isNil=Uoe;exports.isNumber=QX;exports.isUndefined=DJ;exports.lazyload=kK;exports.localizedFormat=yre;exports.lodashExports=WP;exports.m=Pie;exports.o=xre;exports.offset=wW;exports.placeholder=BK;exports.prismExports=TJ;exports.q=w3;exports.random=Rre;exports.shift=CW;exports.some=uz;exports.transform=Qoe;exports.useController=g5;exports.useFieldArray=sH;exports.useFloating=IW;exports.useFloating$1=s5;exports.useFocus=LW;exports.useForm=oH;exports.useFormContext=Qf;exports.useHover=kW;exports.useInteractions=BW;exports.useRole=NW;exports.useWatch=m5;
|