@aic-kits/react 0.35.1 → 0.35.3
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/Button/StyledButton.d.ts +15 -10
- package/dist/components/DatePicker/hooks.d.ts +1 -1
- package/dist/components/Grid/StyledGrid.d.ts +13 -4
- package/dist/components/Grid/__tests__/index.test.d.ts +1 -0
- package/dist/components/Grid/__tests__/utils.test.d.ts +1 -0
- package/dist/components/Grid/types.d.ts +2 -1
- package/dist/components/Grid/utils.d.ts +2 -1
- package/dist/components/Input/StyledInput.d.ts +2 -1
- package/dist/components/Input/types.d.ts +6 -1
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/RadioButton.d.ts +3 -0
- package/dist/components/Radio/RadioContext.d.ts +3 -0
- package/dist/components/Radio/RadioGroup.d.ts +3 -0
- package/dist/components/Radio/index.d.ts +10 -0
- package/dist/components/Radio/types.d.ts +147 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/types.d.ts +10 -1
- package/dist/components/Switch/StyledSwitch.d.ts +6 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/__tests__/index.test.d.ts +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/types.d.ts +44 -0
- package/dist/components/Table/AccordionRow.d.ts +5 -0
- package/dist/components/Table/AccordionRowContent.d.ts +20 -0
- package/dist/components/Table/AccordionRowHeader.d.ts +16 -0
- package/dist/components/Table/AddForm.d.ts +5 -0
- package/dist/components/Table/DeleteDialog.d.ts +3 -0
- package/dist/components/Table/Filters.d.ts +3 -0
- package/dist/components/Table/FormFields.d.ts +24 -0
- package/dist/components/Table/InlineMultiSelect.d.ts +3 -0
- package/dist/components/Table/InlinePairSelect.d.ts +3 -0
- package/dist/components/Table/StyledTable.d.ts +29 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/TableHeaderRow.d.ts +10 -0
- package/dist/components/Table/TablePagination.d.ts +11 -0
- package/dist/components/Table/ValidationDialog.d.ts +7 -0
- package/dist/components/Table/hooks.d.ts +34 -0
- package/dist/components/Table/index.d.ts +12 -0
- package/dist/components/Table/types.d.ts +372 -0
- package/dist/components/Table/utils.d.ts +83 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.cjs +470 -370
- package/dist/index.js +13150 -9572
- package/dist/theme/components/index.d.ts +10 -1
- package/dist/theme/components/radio.d.ts +42 -0
- package/dist/theme/components/switch.d.ts +27 -0
- package/dist/theme/components/table.d.ts +34 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Ub=Object.defineProperty;var Gb=(e,n,r)=>n in e?Ub(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Jr=(e,n,r)=>Gb(e,typeof n!="symbol"?n+"":n,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),wn=require("styled-components"),a=require("react"),Ni=require("react-dom");var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wi={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/var nb=Mi.exports,ld;function rb(){return ld||(ld=1,function(e,n){(function(){var i,s="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,x="__lodash_placeholder__",w=1,_=2,v=4,C=1,R=2,k=1,T=2,E=4,I=8,$=16,M=32,z=64,j=128,H=256,se=512,te=30,re="...",B=800,W=16,P=1,le=2,K=3,ne=1/0,ie=9007199254740991,we=17976931348623157e292,pe=NaN,Se=4294967295,$e=Se-1,de=Se>>>1,je=[["ary",j],["bind",k],["bindKey",T],["curry",I],["curryRight",$],["flip",se],["partial",M],["partialRight",z],["rearg",H]],Ze="[object Arguments]",Ee="[object Array]",st="[object AsyncFunction]",ye="[object Boolean]",Te="[object Date]",Fe="[object DOMException]",ke="[object Error]",ee="[object Function]",ge="[object GeneratorFunction]",G="[object Map]",oe="[object Number]",he="[object Null]",Ae="[object Object]",Be="[object Promise]",Ye="[object Proxy]",De="[object RegExp]",nt="[object Set]",it="[object String]",ae="[object Symbol]",Ue="[object Undefined]",Pe="[object WeakMap]",Ge="[object WeakSet]",Je="[object ArrayBuffer]",bt="[object DataView]",$t="[object Float32Array]",rr="[object Float64Array]",un="[object Int8Array]",Xt="[object Int16Array]",Sr="[object Int32Array]",Wn="[object Uint8Array]",ri="[object Uint8ClampedArray]",Er="[object Uint16Array]",ii="[object Uint32Array]",Vi=/\b__p \+= '';/g,bs=/\b(__p \+=) '' \+/g,xs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oi=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,yn=RegExp(oi.source),vs=RegExp(At.source),si=/<%-([\s\S]+?)%>/g,ai=/<%([\s\S]+?)%>/g,Bn=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ni=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(or.source),gt=/^\s+/,Ht=/\s/,bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ui=/\{\n\/\* \[wrapped with (.+)\] \*/,z1=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,j1=/[()=,{}\[\]\/\s]/,D1=/\\(\\)?/g,P1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ll=/\w*$/,W1=/^[-+]0x[0-9a-f]+$/i,B1=/^0b[01]+$/i,H1=/^\[object .+?Constructor\]$/,Z1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,N1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gi=/($^)/,U1=/['\n\r\u2028\u2029\\]/g,qi="\\ud800-\\udfff",G1="\\u0300-\\u036f",q1="\\ufe20-\\ufe2f",K1="\\u20d0-\\u20ff",jl=G1+q1+K1,Dl="\\u2700-\\u27bf",Pl="a-z\\xdf-\\xf6\\xf8-\\xff",Y1="\\xac\\xb1\\xd7\\xf7",X1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Q1="\\u2000-\\u206f",J1=" \\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",Wl="A-Z\\xc0-\\xd6\\xd8-\\xde",Bl="\\ufe0e\\ufe0f",Hl=Y1+X1+Q1+J1,ws="['’]",eh="["+qi+"]",Zl="["+Hl+"]",Ki="["+jl+"]",Vl="\\d+",th="["+Dl+"]",Nl="["+Pl+"]",Ul="[^"+qi+Hl+Vl+Dl+Pl+Wl+"]",_s="\\ud83c[\\udffb-\\udfff]",nh="(?:"+Ki+"|"+_s+")",Gl="[^"+qi+"]",Cs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ss="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+Wl+"]",ql="\\u200d",Kl="(?:"+Nl+"|"+Ul+")",rh="(?:"+kr+"|"+Ul+")",Yl="(?:"+ws+"(?:d|ll|m|re|s|t|ve))?",Xl="(?:"+ws+"(?:D|LL|M|RE|S|T|VE))?",Ql=nh+"?",Jl="["+Bl+"]?",ih="(?:"+ql+"(?:"+[Gl,Cs,Ss].join("|")+")"+Jl+Ql+")*",oh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ec=Jl+Ql+ih,ah="(?:"+[th,Cs,Ss].join("|")+")"+ec,lh="(?:"+[Gl+Ki+"?",Ki,Cs,Ss,eh].join("|")+")",ch=RegExp(ws,"g"),uh=RegExp(Ki,"g"),Es=RegExp(_s+"(?="+_s+")|"+lh+ec,"g"),dh=RegExp([kr+"?"+Nl+"+"+Yl+"(?="+[Zl,kr,"$"].join("|")+")",rh+"+"+Xl+"(?="+[Zl,kr+Kl,"$"].join("|")+")",kr+"?"+Kl+"+"+Yl,kr+"+"+Xl,sh,oh,Vl,ah].join("|"),"g"),fh=RegExp("["+ql+qi+jl+Bl+"]"),hh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ph=["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"],gh=-1,ot={};ot[$t]=ot[rr]=ot[un]=ot[Xt]=ot[Sr]=ot[Wn]=ot[ri]=ot[Er]=ot[ii]=!0,ot[Ze]=ot[Ee]=ot[Je]=ot[ye]=ot[bt]=ot[Te]=ot[ke]=ot[ee]=ot[G]=ot[oe]=ot[Ae]=ot[De]=ot[nt]=ot[it]=ot[Pe]=!1;var rt={};rt[Ze]=rt[Ee]=rt[Je]=rt[bt]=rt[ye]=rt[Te]=rt[$t]=rt[rr]=rt[un]=rt[Xt]=rt[Sr]=rt[G]=rt[oe]=rt[Ae]=rt[De]=rt[nt]=rt[it]=rt[ae]=rt[Wn]=rt[ri]=rt[Er]=rt[ii]=!0,rt[ke]=rt[ee]=rt[Pe]=!1;var mh={À:"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"},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},bh={"&":"&","<":"<",">":">",""":'"',"'":"'"},xh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vh=parseFloat,wh=parseInt,tc=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,_h=typeof self=="object"&&self&&self.Object===Object&&self,wt=tc||_h||Function("return this")(),ks=n&&!n.nodeType&&n,sr=ks&&!0&&e&&!e.nodeType&&e,nc=sr&&sr.exports===ks,$s=nc&&tc.process,Qt=function(){try{var F=sr&&sr.require&&sr.require("util").types;return F||$s&&$s.binding&&$s.binding("util")}catch{}}(),rc=Qt&&Qt.isArrayBuffer,ic=Qt&&Qt.isDate,oc=Qt&&Qt.isMap,sc=Qt&&Qt.isRegExp,ac=Qt&&Qt.isSet,lc=Qt&&Qt.isTypedArray;function Zt(F,Z,D){switch(D.length){case 0:return F.call(Z);case 1:return F.call(Z,D[0]);case 2:return F.call(Z,D[0],D[1]);case 3:return F.call(Z,D[0],D[1],D[2])}return F.apply(Z,D)}function Ch(F,Z,D,fe){for(var Re=-1,qe=F==null?0:F.length;++Re<qe;){var mt=F[Re];Z(fe,mt,D(mt),F)}return fe}function Jt(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe&&Z(F[D],D,F)!==!1;);return F}function Sh(F,Z){for(var D=F==null?0:F.length;D--&&Z(F[D],D,F)!==!1;);return F}function cc(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(!Z(F[D],D,F))return!1;return!0}function Hn(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=0,qe=[];++D<fe;){var mt=F[D];Z(mt,D,F)&&(qe[Re++]=mt)}return qe}function Yi(F,Z){var D=F==null?0:F.length;return!!D&&$r(F,Z,0)>-1}function As(F,Z,D){for(var fe=-1,Re=F==null?0:F.length;++fe<Re;)if(D(Z,F[fe]))return!0;return!1}function at(F,Z){for(var D=-1,fe=F==null?0:F.length,Re=Array(fe);++D<fe;)Re[D]=Z(F[D],D,F);return Re}function Zn(F,Z){for(var D=-1,fe=Z.length,Re=F.length;++D<fe;)F[Re+D]=Z[D];return F}function Ts(F,Z,D,fe){var Re=-1,qe=F==null?0:F.length;for(fe&&qe&&(D=F[++Re]);++Re<qe;)D=Z(D,F[Re],Re,F);return D}function Eh(F,Z,D,fe){var Re=F==null?0:F.length;for(fe&&Re&&(D=F[--Re]);Re--;)D=Z(D,F[Re],Re,F);return D}function Rs(F,Z){for(var D=-1,fe=F==null?0:F.length;++D<fe;)if(Z(F[D],D,F))return!0;return!1}var kh=Is("length");function $h(F){return F.split("")}function Ah(F){return F.match(L1)||[]}function uc(F,Z,D){var fe;return D(F,function(Re,qe,mt){if(Z(Re,qe,mt))return fe=qe,!1}),fe}function Xi(F,Z,D,fe){for(var Re=F.length,qe=D+(fe?1:-1);fe?qe--:++qe<Re;)if(Z(F[qe],qe,F))return qe;return-1}function $r(F,Z,D){return Z===Z?Wh(F,Z,D):Xi(F,dc,D)}function Th(F,Z,D,fe){for(var Re=D-1,qe=F.length;++Re<qe;)if(fe(F[Re],Z))return Re;return-1}function dc(F){return F!==F}function fc(F,Z){var D=F==null?0:F.length;return D?Fs(F,Z)/D:pe}function Is(F){return function(Z){return Z==null?i:Z[F]}}function Ms(F){return function(Z){return F==null?i:F[Z]}}function hc(F,Z,D,fe,Re){return Re(F,function(qe,mt,tt){D=fe?(fe=!1,qe):Z(D,qe,mt,tt)}),D}function Rh(F,Z){var D=F.length;for(F.sort(Z);D--;)F[D]=F[D].value;return F}function Fs(F,Z){for(var D,fe=-1,Re=F.length;++fe<Re;){var qe=Z(F[fe]);qe!==i&&(D=D===i?qe:D+qe)}return D}function Os(F,Z){for(var D=-1,fe=Array(F);++D<F;)fe[D]=Z(D);return fe}function Ih(F,Z){return at(Z,function(D){return[D,F[D]]})}function pc(F){return F&&F.slice(0,bc(F)+1).replace(gt,"")}function Vt(F){return function(Z){return F(Z)}}function zs(F,Z){return at(Z,function(D){return F[D]})}function ci(F,Z){return F.has(Z)}function gc(F,Z){for(var D=-1,fe=F.length;++D<fe&&$r(Z,F[D],0)>-1;);return D}function mc(F,Z){for(var D=F.length;D--&&$r(Z,F[D],0)>-1;);return D}function Mh(F,Z){for(var D=F.length,fe=0;D--;)F[D]===Z&&++fe;return fe}var Fh=Ms(mh),Oh=Ms(yh);function zh(F){return"\\"+xh[F]}function Lh(F,Z){return F==null?i:F[Z]}function Ar(F){return fh.test(F)}function jh(F){return hh.test(F)}function Dh(F){for(var Z,D=[];!(Z=F.next()).done;)D.push(Z.value);return D}function Ls(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe,Re){D[++Z]=[Re,fe]}),D}function yc(F,Z){return function(D){return F(Z(D))}}function Vn(F,Z){for(var D=-1,fe=F.length,Re=0,qe=[];++D<fe;){var mt=F[D];(mt===Z||mt===x)&&(F[D]=x,qe[Re++]=D)}return qe}function Qi(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=fe}),D}function Ph(F){var Z=-1,D=Array(F.size);return F.forEach(function(fe){D[++Z]=[fe,fe]}),D}function Wh(F,Z,D){for(var fe=D-1,Re=F.length;++fe<Re;)if(F[fe]===Z)return fe;return-1}function Bh(F,Z,D){for(var fe=D+1;fe--;)if(F[fe]===Z)return fe;return fe}function Tr(F){return Ar(F)?Zh(F):kh(F)}function dn(F){return Ar(F)?Vh(F):$h(F)}function bc(F){for(var Z=F.length;Z--&&Ht.test(F.charAt(Z)););return Z}var Hh=Ms(bh);function Zh(F){for(var Z=Es.lastIndex=0;Es.test(F);)++Z;return Z}function Vh(F){return F.match(Es)||[]}function Nh(F){return F.match(dh)||[]}var Uh=function F(Z){Z=Z==null?wt:Rr.defaults(wt.Object(),Z,Rr.pick(wt,ph));var D=Z.Array,fe=Z.Date,Re=Z.Error,qe=Z.Function,mt=Z.Math,tt=Z.Object,js=Z.RegExp,Gh=Z.String,en=Z.TypeError,Ji=D.prototype,qh=qe.prototype,Ir=tt.prototype,eo=Z["__core-js_shared__"],to=qh.toString,Xe=Ir.hasOwnProperty,Kh=0,xc=function(){var t=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),no=Ir.toString,Yh=to.call(tt),Xh=wt._,Qh=js("^"+to.call(Xe).replace(or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ro=nc?Z.Buffer:i,Nn=Z.Symbol,io=Z.Uint8Array,vc=ro?ro.allocUnsafe:i,oo=yc(tt.getPrototypeOf,tt),wc=tt.create,_c=Ir.propertyIsEnumerable,so=Ji.splice,Cc=Nn?Nn.isConcatSpreadable:i,ui=Nn?Nn.iterator:i,ar=Nn?Nn.toStringTag:i,ao=function(){try{var t=fr(tt,"defineProperty");return t({},"",{}),t}catch{}}(),Jh=Z.clearTimeout!==wt.clearTimeout&&Z.clearTimeout,ep=fe&&fe.now!==wt.Date.now&&fe.now,tp=Z.setTimeout!==wt.setTimeout&&Z.setTimeout,lo=mt.ceil,co=mt.floor,Ds=tt.getOwnPropertySymbols,np=ro?ro.isBuffer:i,Sc=Z.isFinite,rp=Ji.join,ip=yc(tt.keys,tt),yt=mt.max,St=mt.min,op=fe.now,sp=Z.parseInt,Ec=mt.random,ap=Ji.reverse,Ps=fr(Z,"DataView"),di=fr(Z,"Map"),Ws=fr(Z,"Promise"),Mr=fr(Z,"Set"),fi=fr(Z,"WeakMap"),hi=fr(tt,"create"),uo=fi&&new fi,Fr={},lp=hr(Ps),cp=hr(di),up=hr(Ws),dp=hr(Mr),fp=hr(fi),fo=Nn?Nn.prototype:i,pi=fo?fo.valueOf:i,kc=fo?fo.toString:i;function y(t){if(ut(t)&&!Ie(t)&&!(t instanceof He)){if(t instanceof tn)return t;if(Xe.call(t,"__wrapped__"))return $u(t)}return new tn(t)}var Or=function(){function t(){}return function(r){if(!ct(r))return{};if(wc)return wc(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function ho(){}function tn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}y.templateSettings={escape:si,evaluate:ai,interpolate:Bn,variable:"",imports:{_:y}},y.prototype=ho.prototype,y.prototype.constructor=y,tn.prototype=Or(ho.prototype),tn.prototype.constructor=tn;function He(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Se,this.__views__=[]}function hp(){var t=new He(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function pp(){if(this.__filtered__){var t=new He(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function gp(){var t=this.__wrapped__.value(),r=this.__dir__,o=Ie(t),u=r<0,g=o?t.length:0,b=$g(0,g,this.__views__),S=b.start,A=b.end,O=A-S,N=u?A:S-1,U=this.__iteratees__,Y=U.length,ce=0,me=St(O,this.__takeCount__);if(!o||!u&&g==O&&me==O)return Yc(t,this.__actions__);var _e=[];e:for(;O--&&ce<me;){N+=r;for(var ze=-1,Ce=t[N];++ze<Y;){var We=U[ze],Ve=We.iteratee,Gt=We.type,It=Ve(Ce);if(Gt==le)Ce=It;else if(!It){if(Gt==P)continue e;break e}}_e[ce++]=Ce}return _e}He.prototype=Or(ho.prototype),He.prototype.constructor=He;function lr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function mp(){this.__data__=hi?hi(null):{},this.size=0}function yp(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function bp(t){var r=this.__data__;if(hi){var o=r[t];return o===h?i:o}return Xe.call(r,t)?r[t]:i}function xp(t){var r=this.__data__;return hi?r[t]!==i:Xe.call(r,t)}function vp(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=hi&&r===i?h:r,this}lr.prototype.clear=mp,lr.prototype.delete=yp,lr.prototype.get=bp,lr.prototype.has=xp,lr.prototype.set=vp;function En(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function wp(){this.__data__=[],this.size=0}function _p(t){var r=this.__data__,o=po(r,t);if(o<0)return!1;var u=r.length-1;return o==u?r.pop():so.call(r,o,1),--this.size,!0}function Cp(t){var r=this.__data__,o=po(r,t);return o<0?i:r[o][1]}function Sp(t){return po(this.__data__,t)>-1}function Ep(t,r){var o=this.__data__,u=po(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}En.prototype.clear=wp,En.prototype.delete=_p,En.prototype.get=Cp,En.prototype.has=Sp,En.prototype.set=Ep;function kn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function kp(){this.size=0,this.__data__={hash:new lr,map:new(di||En),string:new lr}}function $p(t){var r=ko(this,t).delete(t);return this.size-=r?1:0,r}function Ap(t){return ko(this,t).get(t)}function Tp(t){return ko(this,t).has(t)}function Rp(t,r){var o=ko(this,t),u=o.size;return o.set(t,r),this.size+=o.size==u?0:1,this}kn.prototype.clear=kp,kn.prototype.delete=$p,kn.prototype.get=Ap,kn.prototype.has=Tp,kn.prototype.set=Rp;function cr(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new kn;++r<o;)this.add(t[r])}function Ip(t){return this.__data__.set(t,h),this}function Mp(t){return this.__data__.has(t)}cr.prototype.add=cr.prototype.push=Ip,cr.prototype.has=Mp;function fn(t){var r=this.__data__=new En(t);this.size=r.size}function Fp(){this.__data__=new En,this.size=0}function Op(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function zp(t){return this.__data__.get(t)}function Lp(t){return this.__data__.has(t)}function jp(t,r){var o=this.__data__;if(o instanceof En){var u=o.__data__;if(!di||u.length<a-1)return u.push([t,r]),this.size=++o.size,this;o=this.__data__=new kn(u)}return o.set(t,r),this.size=o.size,this}fn.prototype.clear=Fp,fn.prototype.delete=Op,fn.prototype.get=zp,fn.prototype.has=Lp,fn.prototype.set=jp;function $c(t,r){var o=Ie(t),u=!o&&pr(t),g=!o&&!u&&Yn(t),b=!o&&!u&&!g&&Dr(t),S=o||u||g||b,A=S?Os(t.length,Gh):[],O=A.length;for(var N in t)(r||Xe.call(t,N))&&!(S&&(N=="length"||g&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Rn(N,O)))&&A.push(N);return A}function Ac(t){var r=t.length;return r?t[Xs(0,r-1)]:i}function Dp(t,r){return $o(Ft(t),ur(r,0,t.length))}function Pp(t){return $o(Ft(t))}function Bs(t,r,o){(o!==i&&!hn(t[r],o)||o===i&&!(r in t))&&$n(t,r,o)}function gi(t,r,o){var u=t[r];(!(Xe.call(t,r)&&hn(u,o))||o===i&&!(r in t))&&$n(t,r,o)}function po(t,r){for(var o=t.length;o--;)if(hn(t[o][0],r))return o;return-1}function Wp(t,r,o,u){return Un(t,function(g,b,S){r(u,g,o(g),S)}),u}function Tc(t,r){return t&&vn(r,xt(r),t)}function Bp(t,r){return t&&vn(r,zt(r),t)}function $n(t,r,o){r=="__proto__"&&ao?ao(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function Hs(t,r){for(var o=-1,u=r.length,g=D(u),b=t==null;++o<u;)g[o]=b?i:_a(t,r[o]);return g}function ur(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function nn(t,r,o,u,g,b){var S,A=r&w,O=r&_,N=r&v;if(o&&(S=g?o(t,u,g,b):o(t)),S!==i)return S;if(!ct(t))return t;var U=Ie(t);if(U){if(S=Tg(t),!A)return Ft(t,S)}else{var Y=Et(t),ce=Y==ee||Y==ge;if(Yn(t))return Jc(t,A);if(Y==Ae||Y==Ze||ce&&!g){if(S=O||ce?{}:bu(t),!A)return O?bg(t,Bp(S,t)):yg(t,Tc(S,t))}else{if(!rt[Y])return g?t:{};S=Rg(t,Y,A)}}b||(b=new fn);var me=b.get(t);if(me)return me;b.set(t,S),Gu(t)?t.forEach(function(Ce){S.add(nn(Ce,r,o,Ce,t,b))}):Nu(t)&&t.forEach(function(Ce,We){S.set(We,nn(Ce,r,o,We,t,b))});var _e=N?O?la:aa:O?zt:xt,ze=U?i:_e(t);return Jt(ze||t,function(Ce,We){ze&&(We=Ce,Ce=t[We]),gi(S,We,nn(Ce,r,o,We,t,b))}),S}function Hp(t){var r=xt(t);return function(o){return Rc(o,t,r)}}function Rc(t,r,o){var u=o.length;if(t==null)return!u;for(t=tt(t);u--;){var g=o[u],b=r[g],S=t[g];if(S===i&&!(g in t)||!b(S))return!1}return!0}function Ic(t,r,o){if(typeof t!="function")throw new en(d);return _i(function(){t.apply(i,o)},r)}function mi(t,r,o,u){var g=-1,b=Yi,S=!0,A=t.length,O=[],N=r.length;if(!A)return O;o&&(r=at(r,Vt(o))),u?(b=As,S=!1):r.length>=a&&(b=ci,S=!1,r=new cr(r));e:for(;++g<A;){var U=t[g],Y=o==null?U:o(U);if(U=u||U!==0?U:0,S&&Y===Y){for(var ce=N;ce--;)if(r[ce]===Y)continue e;O.push(U)}else b(r,Y,u)||O.push(U)}return O}var Un=iu(xn),Mc=iu(Vs,!0);function Zp(t,r){var o=!0;return Un(t,function(u,g,b){return o=!!r(u,g,b),o}),o}function go(t,r,o){for(var u=-1,g=t.length;++u<g;){var b=t[u],S=r(b);if(S!=null&&(A===i?S===S&&!Ut(S):o(S,A)))var A=S,O=b}return O}function Vp(t,r,o,u){var g=t.length;for(o=Oe(o),o<0&&(o=-o>g?0:g+o),u=u===i||u>g?g:Oe(u),u<0&&(u+=g),u=o>u?0:Ku(u);o<u;)t[o++]=r;return t}function Fc(t,r){var o=[];return Un(t,function(u,g,b){r(u,g,b)&&o.push(u)}),o}function _t(t,r,o,u,g){var b=-1,S=t.length;for(o||(o=Mg),g||(g=[]);++b<S;){var A=t[b];r>0&&o(A)?r>1?_t(A,r-1,o,u,g):Zn(g,A):u||(g[g.length]=A)}return g}var Zs=ou(),Oc=ou(!0);function xn(t,r){return t&&Zs(t,r,xt)}function Vs(t,r){return t&&Oc(t,r,xt)}function mo(t,r){return Hn(r,function(o){return In(t[o])})}function dr(t,r){r=qn(r,t);for(var o=0,u=r.length;t!=null&&o<u;)t=t[wn(r[o++])];return o&&o==u?t:i}function zc(t,r,o){var u=r(t);return Ie(t)?u:Zn(u,o(t))}function Tt(t){return t==null?t===i?Ue:he:ar&&ar in tt(t)?kg(t):Pg(t)}function Ns(t,r){return t>r}function Np(t,r){return t!=null&&Xe.call(t,r)}function Up(t,r){return t!=null&&r in tt(t)}function Gp(t,r,o){return t>=St(r,o)&&t<yt(r,o)}function Us(t,r,o){for(var u=o?As:Yi,g=t[0].length,b=t.length,S=b,A=D(b),O=1/0,N=[];S--;){var U=t[S];S&&r&&(U=at(U,Vt(r))),O=St(U.length,O),A[S]=!o&&(r||g>=120&&U.length>=120)?new cr(S&&U):i}U=t[0];var Y=-1,ce=A[0];e:for(;++Y<g&&N.length<O;){var me=U[Y],_e=r?r(me):me;if(me=o||me!==0?me:0,!(ce?ci(ce,_e):u(N,_e,o))){for(S=b;--S;){var ze=A[S];if(!(ze?ci(ze,_e):u(t[S],_e,o)))continue e}ce&&ce.push(_e),N.push(me)}}return N}function qp(t,r,o,u){return xn(t,function(g,b,S){r(u,o(g),b,S)}),u}function yi(t,r,o){r=qn(r,t),t=_u(t,r);var u=t==null?t:t[wn(on(r))];return u==null?i:Zt(u,t,o)}function Lc(t){return ut(t)&&Tt(t)==Ze}function Kp(t){return ut(t)&&Tt(t)==Je}function Yp(t){return ut(t)&&Tt(t)==Te}function bi(t,r,o,u,g){return t===r?!0:t==null||r==null||!ut(t)&&!ut(r)?t!==t&&r!==r:Xp(t,r,o,u,bi,g)}function Xp(t,r,o,u,g,b){var S=Ie(t),A=Ie(r),O=S?Ee:Et(t),N=A?Ee:Et(r);O=O==Ze?Ae:O,N=N==Ze?Ae:N;var U=O==Ae,Y=N==Ae,ce=O==N;if(ce&&Yn(t)){if(!Yn(r))return!1;S=!0,U=!1}if(ce&&!U)return b||(b=new fn),S||Dr(t)?gu(t,r,o,u,g,b):Sg(t,r,O,o,u,g,b);if(!(o&C)){var me=U&&Xe.call(t,"__wrapped__"),_e=Y&&Xe.call(r,"__wrapped__");if(me||_e){var ze=me?t.value():t,Ce=_e?r.value():r;return b||(b=new fn),g(ze,Ce,o,u,b)}}return ce?(b||(b=new fn),Eg(t,r,o,u,g,b)):!1}function Qp(t){return ut(t)&&Et(t)==G}function Gs(t,r,o,u){var g=o.length,b=g,S=!u;if(t==null)return!b;for(t=tt(t);g--;){var A=o[g];if(S&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++g<b;){A=o[g];var O=A[0],N=t[O],U=A[1];if(S&&A[2]){if(N===i&&!(O in t))return!1}else{var Y=new fn;if(u)var ce=u(N,U,O,t,r,Y);if(!(ce===i?bi(U,N,C|R,u,Y):ce))return!1}}return!0}function jc(t){if(!ct(t)||Og(t))return!1;var r=In(t)?Qh:H1;return r.test(hr(t))}function Jp(t){return ut(t)&&Tt(t)==De}function eg(t){return ut(t)&&Et(t)==nt}function tg(t){return ut(t)&&Fo(t.length)&&!!ot[Tt(t)]}function Dc(t){return typeof t=="function"?t:t==null?Lt:typeof t=="object"?Ie(t)?Bc(t[0],t[1]):Wc(t):sd(t)}function qs(t){if(!wi(t))return ip(t);var r=[];for(var o in tt(t))Xe.call(t,o)&&o!="constructor"&&r.push(o);return r}function ng(t){if(!ct(t))return Dg(t);var r=wi(t),o=[];for(var u in t)u=="constructor"&&(r||!Xe.call(t,u))||o.push(u);return o}function Ks(t,r){return t<r}function Pc(t,r){var o=-1,u=Ot(t)?D(t.length):[];return Un(t,function(g,b,S){u[++o]=r(g,b,S)}),u}function Wc(t){var r=ua(t);return r.length==1&&r[0][2]?vu(r[0][0],r[0][1]):function(o){return o===t||Gs(o,t,r)}}function Bc(t,r){return fa(t)&&xu(r)?vu(wn(t),r):function(o){var u=_a(o,t);return u===i&&u===r?Ca(o,t):bi(r,u,C|R)}}function yo(t,r,o,u,g){t!==r&&Zs(r,function(b,S){if(g||(g=new fn),ct(b))rg(t,r,S,o,yo,u,g);else{var A=u?u(pa(t,S),b,S+"",t,r,g):i;A===i&&(A=b),Bs(t,S,A)}},zt)}function rg(t,r,o,u,g,b,S){var A=pa(t,o),O=pa(r,o),N=S.get(O);if(N){Bs(t,o,N);return}var U=b?b(A,O,o+"",t,r,S):i,Y=U===i;if(Y){var ce=Ie(O),me=!ce&&Yn(O),_e=!ce&&!me&&Dr(O);U=O,ce||me||_e?Ie(A)?U=A:dt(A)?U=Ft(A):me?(Y=!1,U=Jc(O,!0)):_e?(Y=!1,U=eu(O,!0)):U=[]:Ci(O)||pr(O)?(U=A,pr(A)?U=Yu(A):(!ct(A)||In(A))&&(U=bu(O))):Y=!1}Y&&(S.set(O,U),g(U,O,u,b,S),S.delete(O)),Bs(t,o,U)}function Hc(t,r){var o=t.length;if(o)return r+=r<0?o:0,Rn(r,o)?t[r]:i}function Zc(t,r,o){r.length?r=at(r,function(b){return Ie(b)?function(S){return dr(S,b.length===1?b[0]:b)}:b}):r=[Lt];var u=-1;r=at(r,Vt(ve()));var g=Pc(t,function(b,S,A){var O=at(r,function(N){return N(b)});return{criteria:O,index:++u,value:b}});return Rh(g,function(b,S){return mg(b,S,o)})}function ig(t,r){return Vc(t,r,function(o,u){return Ca(t,u)})}function Vc(t,r,o){for(var u=-1,g=r.length,b={};++u<g;){var S=r[u],A=dr(t,S);o(A,S)&&xi(b,qn(S,t),A)}return b}function og(t){return function(r){return dr(r,t)}}function Ys(t,r,o,u){var g=u?Th:$r,b=-1,S=r.length,A=t;for(t===r&&(r=Ft(r)),o&&(A=at(t,Vt(o)));++b<S;)for(var O=0,N=r[b],U=o?o(N):N;(O=g(A,U,O,u))>-1;)A!==t&&so.call(A,O,1),so.call(t,O,1);return t}function Nc(t,r){for(var o=t?r.length:0,u=o-1;o--;){var g=r[o];if(o==u||g!==b){var b=g;Rn(g)?so.call(t,g,1):ea(t,g)}}return t}function Xs(t,r){return t+co(Ec()*(r-t+1))}function sg(t,r,o,u){for(var g=-1,b=yt(lo((r-t)/(o||1)),0),S=D(b);b--;)S[u?b:++g]=t,t+=o;return S}function Qs(t,r){var o="";if(!t||r<1||r>ie)return o;do r%2&&(o+=t),r=co(r/2),r&&(t+=t);while(r);return o}function Le(t,r){return ga(wu(t,r,Lt),t+"")}function ag(t){return Ac(Pr(t))}function lg(t,r){var o=Pr(t);return $o(o,ur(r,0,o.length))}function xi(t,r,o,u){if(!ct(t))return t;r=qn(r,t);for(var g=-1,b=r.length,S=b-1,A=t;A!=null&&++g<b;){var O=wn(r[g]),N=o;if(O==="__proto__"||O==="constructor"||O==="prototype")return t;if(g!=S){var U=A[O];N=u?u(U,O,A):i,N===i&&(N=ct(U)?U:Rn(r[g+1])?[]:{})}gi(A,O,N),A=A[O]}return t}var Uc=uo?function(t,r){return uo.set(t,r),t}:Lt,cg=ao?function(t,r){return ao(t,"toString",{configurable:!0,enumerable:!1,value:Ea(r),writable:!0})}:Lt;function ug(t){return $o(Pr(t))}function rn(t,r,o){var u=-1,g=t.length;r<0&&(r=-r>g?0:g+r),o=o>g?g:o,o<0&&(o+=g),g=r>o?0:o-r>>>0,r>>>=0;for(var b=D(g);++u<g;)b[u]=t[u+r];return b}function dg(t,r){var o;return Un(t,function(u,g,b){return o=r(u,g,b),!o}),!!o}function bo(t,r,o){var u=0,g=t==null?u:t.length;if(typeof r=="number"&&r===r&&g<=de){for(;u<g;){var b=u+g>>>1,S=t[b];S!==null&&!Ut(S)&&(o?S<=r:S<r)?u=b+1:g=b}return g}return Js(t,r,Lt,o)}function Js(t,r,o,u){var g=0,b=t==null?0:t.length;if(b===0)return 0;r=o(r);for(var S=r!==r,A=r===null,O=Ut(r),N=r===i;g<b;){var U=co((g+b)/2),Y=o(t[U]),ce=Y!==i,me=Y===null,_e=Y===Y,ze=Ut(Y);if(S)var Ce=u||_e;else N?Ce=_e&&(u||ce):A?Ce=_e&&ce&&(u||!me):O?Ce=_e&&ce&&!me&&(u||!ze):me||ze?Ce=!1:Ce=u?Y<=r:Y<r;Ce?g=U+1:b=U}return St(b,$e)}function Gc(t,r){for(var o=-1,u=t.length,g=0,b=[];++o<u;){var S=t[o],A=r?r(S):S;if(!o||!hn(A,O)){var O=A;b[g++]=S===0?0:S}}return b}function qc(t){return typeof t=="number"?t:Ut(t)?pe:+t}function Nt(t){if(typeof t=="string")return t;if(Ie(t))return at(t,Nt)+"";if(Ut(t))return kc?kc.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Gn(t,r,o){var u=-1,g=Yi,b=t.length,S=!0,A=[],O=A;if(o)S=!1,g=As;else if(b>=a){var N=r?null:_g(t);if(N)return Qi(N);S=!1,g=ci,O=new cr}else O=r?[]:A;e:for(;++u<b;){var U=t[u],Y=r?r(U):U;if(U=o||U!==0?U:0,S&&Y===Y){for(var ce=O.length;ce--;)if(O[ce]===Y)continue e;r&&O.push(Y),A.push(U)}else g(O,Y,o)||(O!==A&&O.push(Y),A.push(U))}return A}function ea(t,r){return r=qn(r,t),t=_u(t,r),t==null||delete t[wn(on(r))]}function Kc(t,r,o,u){return xi(t,r,o(dr(t,r)),u)}function xo(t,r,o,u){for(var g=t.length,b=u?g:-1;(u?b--:++b<g)&&r(t[b],b,t););return o?rn(t,u?0:b,u?b+1:g):rn(t,u?b+1:0,u?g:b)}function Yc(t,r){var o=t;return o instanceof He&&(o=o.value()),Ts(r,function(u,g){return g.func.apply(g.thisArg,Zn([u],g.args))},o)}function ta(t,r,o){var u=t.length;if(u<2)return u?Gn(t[0]):[];for(var g=-1,b=D(u);++g<u;)for(var S=t[g],A=-1;++A<u;)A!=g&&(b[g]=mi(b[g]||S,t[A],r,o));return Gn(_t(b,1),r,o)}function Xc(t,r,o){for(var u=-1,g=t.length,b=r.length,S={};++u<g;){var A=u<b?r[u]:i;o(S,t[u],A)}return S}function na(t){return dt(t)?t:[]}function ra(t){return typeof t=="function"?t:Lt}function qn(t,r){return Ie(t)?t:fa(t,r)?[t]:ku(Ke(t))}var fg=Le;function Kn(t,r,o){var u=t.length;return o=o===i?u:o,!r&&o>=u?t:rn(t,r,o)}var Qc=Jh||function(t){return wt.clearTimeout(t)};function Jc(t,r){if(r)return t.slice();var o=t.length,u=vc?vc(o):new t.constructor(o);return t.copy(u),u}function ia(t){var r=new t.constructor(t.byteLength);return new io(r).set(new io(t)),r}function hg(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function pg(t){var r=new t.constructor(t.source,Ll.exec(t));return r.lastIndex=t.lastIndex,r}function gg(t){return pi?tt(pi.call(t)):{}}function eu(t,r){var o=r?ia(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function tu(t,r){if(t!==r){var o=t!==i,u=t===null,g=t===t,b=Ut(t),S=r!==i,A=r===null,O=r===r,N=Ut(r);if(!A&&!N&&!b&&t>r||b&&S&&O&&!A&&!N||u&&S&&O||!o&&O||!g)return 1;if(!u&&!b&&!N&&t<r||N&&o&&g&&!u&&!b||A&&o&&g||!S&&g||!O)return-1}return 0}function mg(t,r,o){for(var u=-1,g=t.criteria,b=r.criteria,S=g.length,A=o.length;++u<S;){var O=tu(g[u],b[u]);if(O){if(u>=A)return O;var N=o[u];return O*(N=="desc"?-1:1)}}return t.index-r.index}function nu(t,r,o,u){for(var g=-1,b=t.length,S=o.length,A=-1,O=r.length,N=yt(b-S,0),U=D(O+N),Y=!u;++A<O;)U[A]=r[A];for(;++g<S;)(Y||g<b)&&(U[o[g]]=t[g]);for(;N--;)U[A++]=t[g++];return U}function ru(t,r,o,u){for(var g=-1,b=t.length,S=-1,A=o.length,O=-1,N=r.length,U=yt(b-A,0),Y=D(U+N),ce=!u;++g<U;)Y[g]=t[g];for(var me=g;++O<N;)Y[me+O]=r[O];for(;++S<A;)(ce||g<b)&&(Y[me+o[S]]=t[g++]);return Y}function Ft(t,r){var o=-1,u=t.length;for(r||(r=D(u));++o<u;)r[o]=t[o];return r}function vn(t,r,o,u){var g=!o;o||(o={});for(var b=-1,S=r.length;++b<S;){var A=r[b],O=u?u(o[A],t[A],A,o,t):i;O===i&&(O=t[A]),g?$n(o,A,O):gi(o,A,O)}return o}function yg(t,r){return vn(t,da(t),r)}function bg(t,r){return vn(t,mu(t),r)}function vo(t,r){return function(o,u){var g=Ie(o)?Ch:Wp,b=r?r():{};return g(o,t,ve(u,2),b)}}function zr(t){return Le(function(r,o){var u=-1,g=o.length,b=g>1?o[g-1]:i,S=g>2?o[2]:i;for(b=t.length>3&&typeof b=="function"?(g--,b):i,S&&Rt(o[0],o[1],S)&&(b=g<3?i:b,g=1),r=tt(r);++u<g;){var A=o[u];A&&t(r,A,u,b)}return r})}function iu(t,r){return function(o,u){if(o==null)return o;if(!Ot(o))return t(o,u);for(var g=o.length,b=r?g:-1,S=tt(o);(r?b--:++b<g)&&u(S[b],b,S)!==!1;);return o}}function ou(t){return function(r,o,u){for(var g=-1,b=tt(r),S=u(r),A=S.length;A--;){var O=S[t?A:++g];if(o(b[O],O,b)===!1)break}return r}}function xg(t,r,o){var u=r&k,g=vi(t);function b(){var S=this&&this!==wt&&this instanceof b?g:t;return S.apply(u?o:this,arguments)}return b}function su(t){return function(r){r=Ke(r);var o=Ar(r)?dn(r):i,u=o?o[0]:r.charAt(0),g=o?Kn(o,1).join(""):r.slice(1);return u[t]()+g}}function Lr(t){return function(r){return Ts(id(rd(r).replace(ch,"")),t,"")}}function vi(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=Or(t.prototype),u=t.apply(o,r);return ct(u)?u:o}}function vg(t,r,o){var u=vi(t);function g(){for(var b=arguments.length,S=D(b),A=b,O=jr(g);A--;)S[A]=arguments[A];var N=b<3&&S[0]!==O&&S[b-1]!==O?[]:Vn(S,O);if(b-=N.length,b<o)return du(t,r,wo,g.placeholder,i,S,N,i,i,o-b);var U=this&&this!==wt&&this instanceof g?u:t;return Zt(U,this,S)}return g}function au(t){return function(r,o,u){var g=tt(r);if(!Ot(r)){var b=ve(o,3);r=xt(r),o=function(A){return b(g[A],A,g)}}var S=t(r,o,u);return S>-1?g[b?r[S]:S]:i}}function lu(t){return Tn(function(r){var o=r.length,u=o,g=tn.prototype.thru;for(t&&r.reverse();u--;){var b=r[u];if(typeof b!="function")throw new en(d);if(g&&!S&&Eo(b)=="wrapper")var S=new tn([],!0)}for(u=S?u:o;++u<o;){b=r[u];var A=Eo(b),O=A=="wrapper"?ca(b):i;O&&ha(O[0])&&O[1]==(j|I|M|H)&&!O[4].length&&O[9]==1?S=S[Eo(O[0])].apply(S,O[3]):S=b.length==1&&ha(b)?S[A]():S.thru(b)}return function(){var N=arguments,U=N[0];if(S&&N.length==1&&Ie(U))return S.plant(U).value();for(var Y=0,ce=o?r[Y].apply(this,N):U;++Y<o;)ce=r[Y].call(this,ce);return ce}})}function wo(t,r,o,u,g,b,S,A,O,N){var U=r&j,Y=r&k,ce=r&T,me=r&(I|$),_e=r&se,ze=ce?i:vi(t);function Ce(){for(var We=arguments.length,Ve=D(We),Gt=We;Gt--;)Ve[Gt]=arguments[Gt];if(me)var It=jr(Ce),qt=Mh(Ve,It);if(u&&(Ve=nu(Ve,u,g,me)),b&&(Ve=ru(Ve,b,S,me)),We-=qt,me&&We<N){var ft=Vn(Ve,It);return du(t,r,wo,Ce.placeholder,o,Ve,ft,A,O,N-We)}var pn=Y?o:this,Fn=ce?pn[t]:t;return We=Ve.length,A?Ve=Wg(Ve,A):_e&&We>1&&Ve.reverse(),U&&O<We&&(Ve.length=O),this&&this!==wt&&this instanceof Ce&&(Fn=ze||vi(Fn)),Fn.apply(pn,Ve)}return Ce}function cu(t,r){return function(o,u){return qp(o,t,r(u),{})}}function _o(t,r){return function(o,u){var g;if(o===i&&u===i)return r;if(o!==i&&(g=o),u!==i){if(g===i)return u;typeof o=="string"||typeof u=="string"?(o=Nt(o),u=Nt(u)):(o=qc(o),u=qc(u)),g=t(o,u)}return g}}function oa(t){return Tn(function(r){return r=at(r,Vt(ve())),Le(function(o){var u=this;return t(r,function(g){return Zt(g,u,o)})})})}function Co(t,r){r=r===i?" ":Nt(r);var o=r.length;if(o<2)return o?Qs(r,t):r;var u=Qs(r,lo(t/Tr(r)));return Ar(r)?Kn(dn(u),0,t).join(""):u.slice(0,t)}function wg(t,r,o,u){var g=r&k,b=vi(t);function S(){for(var A=-1,O=arguments.length,N=-1,U=u.length,Y=D(U+O),ce=this&&this!==wt&&this instanceof S?b:t;++N<U;)Y[N]=u[N];for(;O--;)Y[N++]=arguments[++A];return Zt(ce,g?o:this,Y)}return S}function uu(t){return function(r,o,u){return u&&typeof u!="number"&&Rt(r,o,u)&&(o=u=i),r=Mn(r),o===i?(o=r,r=0):o=Mn(o),u=u===i?r<o?1:-1:Mn(u),sg(r,o,u,t)}}function So(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=sn(r),o=sn(o)),t(r,o)}}function du(t,r,o,u,g,b,S,A,O,N){var U=r&I,Y=U?S:i,ce=U?i:S,me=U?b:i,_e=U?i:b;r|=U?M:z,r&=~(U?z:M),r&E||(r&=-4);var ze=[t,r,g,me,Y,_e,ce,A,O,N],Ce=o.apply(i,ze);return ha(t)&&Cu(Ce,ze),Ce.placeholder=u,Su(Ce,t,r)}function sa(t){var r=mt[t];return function(o,u){if(o=sn(o),u=u==null?0:St(Oe(u),292),u&&Sc(o)){var g=(Ke(o)+"e").split("e"),b=r(g[0]+"e"+(+g[1]+u));return g=(Ke(b)+"e").split("e"),+(g[0]+"e"+(+g[1]-u))}return r(o)}}var _g=Mr&&1/Qi(new Mr([,-0]))[1]==ne?function(t){return new Mr(t)}:Aa;function fu(t){return function(r){var o=Et(r);return o==G?Ls(r):o==nt?Ph(r):Ih(r,t(r))}}function An(t,r,o,u,g,b,S,A){var O=r&T;if(!O&&typeof t!="function")throw new en(d);var N=u?u.length:0;if(N||(r&=-97,u=g=i),S=S===i?S:yt(Oe(S),0),A=A===i?A:Oe(A),N-=g?g.length:0,r&z){var U=u,Y=g;u=g=i}var ce=O?i:ca(t),me=[t,r,o,u,g,U,Y,b,S,A];if(ce&&jg(me,ce),t=me[0],r=me[1],o=me[2],u=me[3],g=me[4],A=me[9]=me[9]===i?O?0:t.length:yt(me[9]-N,0),!A&&r&(I|$)&&(r&=-25),!r||r==k)var _e=xg(t,r,o);else r==I||r==$?_e=vg(t,r,A):(r==M||r==(k|M))&&!g.length?_e=wg(t,r,o,u):_e=wo.apply(i,me);var ze=ce?Uc:Cu;return Su(ze(_e,me),t,r)}function hu(t,r,o,u){return t===i||hn(t,Ir[o])&&!Xe.call(u,o)?r:t}function pu(t,r,o,u,g,b){return ct(t)&&ct(r)&&(b.set(r,t),yo(t,r,i,pu,b),b.delete(r)),t}function Cg(t){return Ci(t)?i:t}function gu(t,r,o,u,g,b){var S=o&C,A=t.length,O=r.length;if(A!=O&&!(S&&O>A))return!1;var N=b.get(t),U=b.get(r);if(N&&U)return N==r&&U==t;var Y=-1,ce=!0,me=o&R?new cr:i;for(b.set(t,r),b.set(r,t);++Y<A;){var _e=t[Y],ze=r[Y];if(u)var Ce=S?u(ze,_e,Y,r,t,b):u(_e,ze,Y,t,r,b);if(Ce!==i){if(Ce)continue;ce=!1;break}if(me){if(!Rs(r,function(We,Ve){if(!ci(me,Ve)&&(_e===We||g(_e,We,o,u,b)))return me.push(Ve)})){ce=!1;break}}else if(!(_e===ze||g(_e,ze,o,u,b))){ce=!1;break}}return b.delete(t),b.delete(r),ce}function Sg(t,r,o,u,g,b,S){switch(o){case bt:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Je:return!(t.byteLength!=r.byteLength||!b(new io(t),new io(r)));case ye:case Te:case oe:return hn(+t,+r);case ke:return t.name==r.name&&t.message==r.message;case De:case it:return t==r+"";case G:var A=Ls;case nt:var O=u&C;if(A||(A=Qi),t.size!=r.size&&!O)return!1;var N=S.get(t);if(N)return N==r;u|=R,S.set(t,r);var U=gu(A(t),A(r),u,g,b,S);return S.delete(t),U;case ae:if(pi)return pi.call(t)==pi.call(r)}return!1}function Eg(t,r,o,u,g,b){var S=o&C,A=aa(t),O=A.length,N=aa(r),U=N.length;if(O!=U&&!S)return!1;for(var Y=O;Y--;){var ce=A[Y];if(!(S?ce in r:Xe.call(r,ce)))return!1}var me=b.get(t),_e=b.get(r);if(me&&_e)return me==r&&_e==t;var ze=!0;b.set(t,r),b.set(r,t);for(var Ce=S;++Y<O;){ce=A[Y];var We=t[ce],Ve=r[ce];if(u)var Gt=S?u(Ve,We,ce,r,t,b):u(We,Ve,ce,t,r,b);if(!(Gt===i?We===Ve||g(We,Ve,o,u,b):Gt)){ze=!1;break}Ce||(Ce=ce=="constructor")}if(ze&&!Ce){var It=t.constructor,qt=r.constructor;It!=qt&&"constructor"in t&&"constructor"in r&&!(typeof It=="function"&&It instanceof It&&typeof qt=="function"&&qt instanceof qt)&&(ze=!1)}return b.delete(t),b.delete(r),ze}function Tn(t){return ga(wu(t,i,Ru),t+"")}function aa(t){return zc(t,xt,da)}function la(t){return zc(t,zt,mu)}var ca=uo?function(t){return uo.get(t)}:Aa;function Eo(t){for(var r=t.name+"",o=Fr[r],u=Xe.call(Fr,r)?o.length:0;u--;){var g=o[u],b=g.func;if(b==null||b==t)return g.name}return r}function jr(t){var r=Xe.call(y,"placeholder")?y:t;return r.placeholder}function ve(){var t=y.iteratee||ka;return t=t===ka?Dc:t,arguments.length?t(arguments[0],arguments[1]):t}function ko(t,r){var o=t.__data__;return Fg(r)?o[typeof r=="string"?"string":"hash"]:o.map}function ua(t){for(var r=xt(t),o=r.length;o--;){var u=r[o],g=t[u];r[o]=[u,g,xu(g)]}return r}function fr(t,r){var o=Lh(t,r);return jc(o)?o:i}function kg(t){var r=Xe.call(t,ar),o=t[ar];try{t[ar]=i;var u=!0}catch{}var g=no.call(t);return u&&(r?t[ar]=o:delete t[ar]),g}var da=Ds?function(t){return t==null?[]:(t=tt(t),Hn(Ds(t),function(r){return _c.call(t,r)}))}:Ta,mu=Ds?function(t){for(var r=[];t;)Zn(r,da(t)),t=oo(t);return r}:Ta,Et=Tt;(Ps&&Et(new Ps(new ArrayBuffer(1)))!=bt||di&&Et(new di)!=G||Ws&&Et(Ws.resolve())!=Be||Mr&&Et(new Mr)!=nt||fi&&Et(new fi)!=Pe)&&(Et=function(t){var r=Tt(t),o=r==Ae?t.constructor:i,u=o?hr(o):"";if(u)switch(u){case lp:return bt;case cp:return G;case up:return Be;case dp:return nt;case fp:return Pe}return r});function $g(t,r,o){for(var u=-1,g=o.length;++u<g;){var b=o[u],S=b.size;switch(b.type){case"drop":t+=S;break;case"dropRight":r-=S;break;case"take":r=St(r,t+S);break;case"takeRight":t=yt(t,r-S);break}}return{start:t,end:r}}function Ag(t){var r=t.match(Ui);return r?r[1].split(z1):[]}function yu(t,r,o){r=qn(r,t);for(var u=-1,g=r.length,b=!1;++u<g;){var S=wn(r[u]);if(!(b=t!=null&&o(t,S)))break;t=t[S]}return b||++u!=g?b:(g=t==null?0:t.length,!!g&&Fo(g)&&Rn(S,g)&&(Ie(t)||pr(t)))}function Tg(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&Xe.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function bu(t){return typeof t.constructor=="function"&&!wi(t)?Or(oo(t)):{}}function Rg(t,r,o){var u=t.constructor;switch(r){case Je:return ia(t);case ye:case Te:return new u(+t);case bt:return hg(t,o);case $t:case rr:case un:case Xt:case Sr:case Wn:case ri:case Er:case ii:return eu(t,o);case G:return new u;case oe:case it:return new u(t);case De:return pg(t);case nt:return new u;case ae:return gg(t)}}function Ig(t,r){var o=r.length;if(!o)return t;var u=o-1;return r[u]=(o>1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(bn,`{
|
|
9
|
-
/* [wrapped with `+
|
|
10
|
-
`)}function Mg(t){return Ie(t)||pr(t)||!!(Cc&&t&&t[Cc])}function Rn(t,r){var o=typeof t;return r=r??ie,!!r&&(o=="number"||o!="symbol"&&V1.test(t))&&t>-1&&t%1==0&&t<r}function Rt(t,r,o){if(!ct(o))return!1;var u=typeof r;return(u=="number"?Ot(o)&&Rn(r,o.length):u=="string"&&r in o)?hn(o[r],t):!1}function fa(t,r){if(Ie(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Ut(t)?!0:ir.test(t)||!li.test(t)||r!=null&&t in tt(r)}function Fg(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function ha(t){var r=Eo(t),o=y[r];if(typeof o!="function"||!(r in He.prototype))return!1;if(t===o)return!0;var u=ca(o);return!!u&&t===u[0]}function Og(t){return!!xc&&xc in t}var zg=eo?In:Ra;function wi(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Ir;return t===o}function xu(t){return t===t&&!ct(t)}function vu(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in tt(o))}}function Lg(t){var r=Io(t,function(u){return o.size===p&&o.clear(),u}),o=r.cache;return r}function jg(t,r){var o=t[1],u=r[1],g=o|u,b=g<(k|T|j),S=u==j&&o==I||u==j&&o==H&&t[7].length<=r[8]||u==(j|H)&&r[7].length<=r[8]&&o==I;if(!(b||S))return t;u&k&&(t[2]=r[2],g|=o&k?0:E);var A=r[3];if(A){var O=t[3];t[3]=O?nu(O,A,r[4]):A,t[4]=O?Vn(t[3],x):r[4]}return A=r[5],A&&(O=t[5],t[5]=O?ru(O,A,r[6]):A,t[6]=O?Vn(t[5],x):r[6]),A=r[7],A&&(t[7]=A),u&j&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=g,t}function Dg(t){var r=[];if(t!=null)for(var o in tt(t))r.push(o);return r}function Pg(t){return no.call(t)}function wu(t,r,o){return r=yt(r===i?t.length-1:r,0),function(){for(var u=arguments,g=-1,b=yt(u.length-r,0),S=D(b);++g<b;)S[g]=u[r+g];g=-1;for(var A=D(r+1);++g<r;)A[g]=u[g];return A[r]=o(S),Zt(t,this,A)}}function _u(t,r){return r.length<2?t:dr(t,rn(r,0,-1))}function Wg(t,r){for(var o=t.length,u=St(r.length,o),g=Ft(t);u--;){var b=r[u];t[u]=Rn(b,o)?g[b]:i}return t}function pa(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Cu=Eu(Uc),_i=tp||function(t,r){return wt.setTimeout(t,r)},ga=Eu(cg);function Su(t,r,o){var u=r+"";return ga(t,Ig(u,Bg(Ag(u),o)))}function Eu(t){var r=0,o=0;return function(){var u=op(),g=W-(u-o);if(o=u,g>0){if(++r>=B)return arguments[0]}else r=0;return t.apply(i,arguments)}}function $o(t,r){var o=-1,u=t.length,g=u-1;for(r=r===i?u:r;++o<r;){var b=Xs(o,g),S=t[b];t[b]=t[o],t[o]=S}return t.length=r,t}var ku=Lg(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Ni,function(o,u,g,b){r.push(g?b.replace(D1,"$1"):u||o)}),r});function wn(t){if(typeof t=="string"||Ut(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function hr(t){if(t!=null){try{return to.call(t)}catch{}try{return t+""}catch{}}return""}function Bg(t,r){return Jt(je,function(o){var u="_."+o[0];r&o[1]&&!Yi(t,u)&&t.push(u)}),t.sort()}function $u(t){if(t instanceof He)return t.clone();var r=new tn(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function Hg(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=yt(Oe(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var g=0,b=0,S=D(lo(u/r));g<u;)S[b++]=rn(t,g,g+=r);return S}function Zg(t){for(var r=-1,o=t==null?0:t.length,u=0,g=[];++r<o;){var b=t[r];b&&(g[u++]=b)}return g}function Vg(){var t=arguments.length;if(!t)return[];for(var r=D(t-1),o=arguments[0],u=t;u--;)r[u-1]=arguments[u];return Zn(Ie(o)?Ft(o):[o],_t(r,1))}var Ng=Le(function(t,r){return dt(t)?mi(t,_t(r,1,dt,!0)):[]}),Ug=Le(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),ve(o,2)):[]}),Gg=Le(function(t,r){var o=on(r);return dt(o)&&(o=i),dt(t)?mi(t,_t(r,1,dt,!0),i,o):[]});function qg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),rn(t,r<0?0:r,u)):[]}function Kg(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,0,r<0?0:r)):[]}function Yg(t,r){return t&&t.length?xo(t,ve(r,3),!0,!0):[]}function Xg(t,r){return t&&t.length?xo(t,ve(r,3),!0):[]}function Qg(t,r,o,u){var g=t==null?0:t.length;return g?(o&&typeof o!="number"&&Rt(t,r,o)&&(o=0,u=g),Vp(t,r,o,u)):[]}function Au(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),Xi(t,ve(r,3),g)}function Tu(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u-1;return o!==i&&(g=Oe(o),g=o<0?yt(u+g,0):St(g,u-1)),Xi(t,ve(r,3),g,!0)}function Ru(t){var r=t==null?0:t.length;return r?_t(t,1):[]}function Jg(t){var r=t==null?0:t.length;return r?_t(t,ne):[]}function em(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:Oe(r),_t(t,r)):[]}function tm(t){for(var r=-1,o=t==null?0:t.length,u={};++r<o;){var g=t[r];u[g[0]]=g[1]}return u}function Iu(t){return t&&t.length?t[0]:i}function nm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=o==null?0:Oe(o);return g<0&&(g=yt(u+g,0)),$r(t,r,g)}function rm(t){var r=t==null?0:t.length;return r?rn(t,0,-1):[]}var im=Le(function(t){var r=at(t,na);return r.length&&r[0]===t[0]?Us(r):[]}),om=Le(function(t){var r=on(t),o=at(t,na);return r===on(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Us(o,ve(r,2)):[]}),sm=Le(function(t){var r=on(t),o=at(t,na);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Us(o,i,r):[]});function am(t,r){return t==null?"":rp.call(t,r)}function on(t){var r=t==null?0:t.length;return r?t[r-1]:i}function lm(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var g=u;return o!==i&&(g=Oe(o),g=g<0?yt(u+g,0):St(g,u-1)),r===r?Bh(t,r,g):Xi(t,dc,g,!0)}function cm(t,r){return t&&t.length?Hc(t,Oe(r)):i}var um=Le(Mu);function Mu(t,r){return t&&t.length&&r&&r.length?Ys(t,r):t}function dm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,ve(o,2)):t}function fm(t,r,o){return t&&t.length&&r&&r.length?Ys(t,r,i,o):t}var hm=Tn(function(t,r){var o=t==null?0:t.length,u=Hs(t,r);return Nc(t,at(r,function(g){return Rn(g,o)?+g:g}).sort(tu)),u});function pm(t,r){var o=[];if(!(t&&t.length))return o;var u=-1,g=[],b=t.length;for(r=ve(r,3);++u<b;){var S=t[u];r(S,u,t)&&(o.push(S),g.push(u))}return Nc(t,g),o}function ma(t){return t==null?t:ap.call(t)}function gm(t,r,o){var u=t==null?0:t.length;return u?(o&&typeof o!="number"&&Rt(t,r,o)?(r=0,o=u):(r=r==null?0:Oe(r),o=o===i?u:Oe(o)),rn(t,r,o)):[]}function mm(t,r){return bo(t,r)}function ym(t,r,o){return Js(t,r,ve(o,2))}function bm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r);if(u<o&&hn(t[u],r))return u}return-1}function xm(t,r){return bo(t,r,!0)}function vm(t,r,o){return Js(t,r,ve(o,2),!0)}function wm(t,r){var o=t==null?0:t.length;if(o){var u=bo(t,r,!0)-1;if(hn(t[u],r))return u}return-1}function _m(t){return t&&t.length?Gc(t):[]}function Cm(t,r){return t&&t.length?Gc(t,ve(r,2)):[]}function Sm(t){var r=t==null?0:t.length;return r?rn(t,1,r):[]}function Em(t,r,o){return t&&t.length?(r=o||r===i?1:Oe(r),rn(t,0,r<0?0:r)):[]}function km(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:Oe(r),r=u-r,rn(t,r<0?0:r,u)):[]}function $m(t,r){return t&&t.length?xo(t,ve(r,3),!1,!0):[]}function Am(t,r){return t&&t.length?xo(t,ve(r,3)):[]}var Tm=Le(function(t){return Gn(_t(t,1,dt,!0))}),Rm=Le(function(t){var r=on(t);return dt(r)&&(r=i),Gn(_t(t,1,dt,!0),ve(r,2))}),Im=Le(function(t){var r=on(t);return r=typeof r=="function"?r:i,Gn(_t(t,1,dt,!0),i,r)});function Mm(t){return t&&t.length?Gn(t):[]}function Fm(t,r){return t&&t.length?Gn(t,ve(r,2)):[]}function Om(t,r){return r=typeof r=="function"?r:i,t&&t.length?Gn(t,i,r):[]}function ya(t){if(!(t&&t.length))return[];var r=0;return t=Hn(t,function(o){if(dt(o))return r=yt(o.length,r),!0}),Os(r,function(o){return at(t,Is(o))})}function Fu(t,r){if(!(t&&t.length))return[];var o=ya(t);return r==null?o:at(o,function(u){return Zt(r,i,u)})}var zm=Le(function(t,r){return dt(t)?mi(t,r):[]}),Lm=Le(function(t){return ta(Hn(t,dt))}),jm=Le(function(t){var r=on(t);return dt(r)&&(r=i),ta(Hn(t,dt),ve(r,2))}),Dm=Le(function(t){var r=on(t);return r=typeof r=="function"?r:i,ta(Hn(t,dt),i,r)}),Pm=Le(ya);function Wm(t,r){return Xc(t||[],r||[],gi)}function Bm(t,r){return Xc(t||[],r||[],xi)}var Hm=Le(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,Fu(t,o)});function Ou(t){var r=y(t);return r.__chain__=!0,r}function Zm(t,r){return r(t),t}function Ao(t,r){return r(t)}var Vm=Tn(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,g=function(b){return Hs(b,t)};return r>1||this.__actions__.length||!(u instanceof He)||!Rn(o)?this.thru(g):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:Ao,args:[g],thisArg:i}),new tn(u,this.__chain__).thru(function(b){return r&&!b.length&&b.push(i),b}))});function Nm(){return Ou(this)}function Um(){return new tn(this.value(),this.__chain__)}function Gm(){this.__values__===i&&(this.__values__=qu(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function qm(){return this}function Km(t){for(var r,o=this;o instanceof ho;){var u=$u(o);u.__index__=0,u.__values__=i,r?g.__wrapped__=u:r=u;var g=u;o=o.__wrapped__}return g.__wrapped__=t,r}function Ym(){var t=this.__wrapped__;if(t instanceof He){var r=t;return this.__actions__.length&&(r=new He(this)),r=r.reverse(),r.__actions__.push({func:Ao,args:[ma],thisArg:i}),new tn(r,this.__chain__)}return this.thru(ma)}function Xm(){return Yc(this.__wrapped__,this.__actions__)}var Qm=vo(function(t,r,o){Xe.call(t,o)?++t[o]:$n(t,o,1)});function Jm(t,r,o){var u=Ie(t)?cc:Zp;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}function e2(t,r){var o=Ie(t)?Hn:Fc;return o(t,ve(r,3))}var t2=au(Au),n2=au(Tu);function r2(t,r){return _t(To(t,r),1)}function i2(t,r){return _t(To(t,r),ne)}function o2(t,r,o){return o=o===i?1:Oe(o),_t(To(t,r),o)}function zu(t,r){var o=Ie(t)?Jt:Un;return o(t,ve(r,3))}function Lu(t,r){var o=Ie(t)?Sh:Mc;return o(t,ve(r,3))}var s2=vo(function(t,r,o){Xe.call(t,o)?t[o].push(r):$n(t,o,[r])});function a2(t,r,o,u){t=Ot(t)?t:Pr(t),o=o&&!u?Oe(o):0;var g=t.length;return o<0&&(o=yt(g+o,0)),Oo(t)?o<=g&&t.indexOf(r,o)>-1:!!g&&$r(t,r,o)>-1}var l2=Le(function(t,r,o){var u=-1,g=typeof r=="function",b=Ot(t)?D(t.length):[];return Un(t,function(S){b[++u]=g?Zt(r,S,o):yi(S,r,o)}),b}),c2=vo(function(t,r,o){$n(t,o,r)});function To(t,r){var o=Ie(t)?at:Pc;return o(t,ve(r,3))}function u2(t,r,o,u){return t==null?[]:(Ie(r)||(r=r==null?[]:[r]),o=u?i:o,Ie(o)||(o=o==null?[]:[o]),Zc(t,r,o))}var d2=vo(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function f2(t,r,o){var u=Ie(t)?Ts:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Un)}function h2(t,r,o){var u=Ie(t)?Eh:hc,g=arguments.length<3;return u(t,ve(r,4),o,g,Mc)}function p2(t,r){var o=Ie(t)?Hn:Fc;return o(t,Mo(ve(r,3)))}function g2(t){var r=Ie(t)?Ac:ag;return r(t)}function m2(t,r,o){(o?Rt(t,r,o):r===i)?r=1:r=Oe(r);var u=Ie(t)?Dp:lg;return u(t,r)}function y2(t){var r=Ie(t)?Pp:ug;return r(t)}function b2(t){if(t==null)return 0;if(Ot(t))return Oo(t)?Tr(t):t.length;var r=Et(t);return r==G||r==nt?t.size:qs(t).length}function x2(t,r,o){var u=Ie(t)?Rs:dg;return o&&Rt(t,r,o)&&(r=i),u(t,ve(r,3))}var v2=Le(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Rt(t,r[0],r[1])?r=[]:o>2&&Rt(r[0],r[1],r[2])&&(r=[r[0]]),Zc(t,_t(r,1),[])}),Ro=ep||function(){return wt.Date.now()};function w2(t,r){if(typeof r!="function")throw new en(d);return t=Oe(t),function(){if(--t<1)return r.apply(this,arguments)}}function ju(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,An(t,j,i,i,i,i,r)}function Du(t,r){var o;if(typeof r!="function")throw new en(d);return t=Oe(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var ba=Le(function(t,r,o){var u=k;if(o.length){var g=Vn(o,jr(ba));u|=M}return An(t,u,r,o,g)}),Pu=Le(function(t,r,o){var u=k|T;if(o.length){var g=Vn(o,jr(Pu));u|=M}return An(r,u,t,o,g)});function Wu(t,r,o){r=o?i:r;var u=An(t,I,i,i,i,i,i,r);return u.placeholder=Wu.placeholder,u}function Bu(t,r,o){r=o?i:r;var u=An(t,$,i,i,i,i,i,r);return u.placeholder=Bu.placeholder,u}function Hu(t,r,o){var u,g,b,S,A,O,N=0,U=!1,Y=!1,ce=!0;if(typeof t!="function")throw new en(d);r=sn(r)||0,ct(o)&&(U=!!o.leading,Y="maxWait"in o,b=Y?yt(sn(o.maxWait)||0,r):b,ce="trailing"in o?!!o.trailing:ce);function me(ft){var pn=u,Fn=g;return u=g=i,N=ft,S=t.apply(Fn,pn),S}function _e(ft){return N=ft,A=_i(We,r),U?me(ft):S}function ze(ft){var pn=ft-O,Fn=ft-N,ad=r-pn;return Y?St(ad,b-Fn):ad}function Ce(ft){var pn=ft-O,Fn=ft-N;return O===i||pn>=r||pn<0||Y&&Fn>=b}function We(){var ft=Ro();if(Ce(ft))return Ve(ft);A=_i(We,ze(ft))}function Ve(ft){return A=i,ce&&u?me(ft):(u=g=i,S)}function Gt(){A!==i&&Qc(A),N=0,u=O=g=A=i}function It(){return A===i?S:Ve(Ro())}function qt(){var ft=Ro(),pn=Ce(ft);if(u=arguments,g=this,O=ft,pn){if(A===i)return _e(O);if(Y)return Qc(A),A=_i(We,r),me(O)}return A===i&&(A=_i(We,r)),S}return qt.cancel=Gt,qt.flush=It,qt}var _2=Le(function(t,r){return Ic(t,1,r)}),C2=Le(function(t,r,o){return Ic(t,sn(r)||0,o)});function S2(t){return An(t,se)}function Io(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new en(d);var o=function(){var u=arguments,g=r?r.apply(this,u):u[0],b=o.cache;if(b.has(g))return b.get(g);var S=t.apply(this,u);return o.cache=b.set(g,S)||b,S};return o.cache=new(Io.Cache||kn),o}Io.Cache=kn;function Mo(t){if(typeof t!="function")throw new en(d);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function E2(t){return Du(2,t)}var k2=fg(function(t,r){r=r.length==1&&Ie(r[0])?at(r[0],Vt(ve())):at(_t(r,1),Vt(ve()));var o=r.length;return Le(function(u){for(var g=-1,b=St(u.length,o);++g<b;)u[g]=r[g].call(this,u[g]);return Zt(t,this,u)})}),xa=Le(function(t,r){var o=Vn(r,jr(xa));return An(t,M,i,r,o)}),Zu=Le(function(t,r){var o=Vn(r,jr(Zu));return An(t,z,i,r,o)}),$2=Tn(function(t,r){return An(t,H,i,i,i,r)});function A2(t,r){if(typeof t!="function")throw new en(d);return r=r===i?r:Oe(r),Le(t,r)}function T2(t,r){if(typeof t!="function")throw new en(d);return r=r==null?0:yt(Oe(r),0),Le(function(o){var u=o[r],g=Kn(o,0,r);return u&&Zn(g,u),Zt(t,this,g)})}function R2(t,r,o){var u=!0,g=!0;if(typeof t!="function")throw new en(d);return ct(o)&&(u="leading"in o?!!o.leading:u,g="trailing"in o?!!o.trailing:g),Hu(t,r,{leading:u,maxWait:r,trailing:g})}function I2(t){return ju(t,1)}function M2(t,r){return xa(ra(r),t)}function F2(){if(!arguments.length)return[];var t=arguments[0];return Ie(t)?t:[t]}function O2(t){return nn(t,v)}function z2(t,r){return r=typeof r=="function"?r:i,nn(t,v,r)}function L2(t){return nn(t,w|v)}function j2(t,r){return r=typeof r=="function"?r:i,nn(t,w|v,r)}function D2(t,r){return r==null||Rc(t,r,xt(r))}function hn(t,r){return t===r||t!==t&&r!==r}var P2=So(Ns),W2=So(function(t,r){return t>=r}),pr=Lc(function(){return arguments}())?Lc:function(t){return ut(t)&&Xe.call(t,"callee")&&!_c.call(t,"callee")},Ie=D.isArray,B2=rc?Vt(rc):Kp;function Ot(t){return t!=null&&Fo(t.length)&&!In(t)}function dt(t){return ut(t)&&Ot(t)}function H2(t){return t===!0||t===!1||ut(t)&&Tt(t)==ye}var Yn=np||Ra,Z2=ic?Vt(ic):Yp;function V2(t){return ut(t)&&t.nodeType===1&&!Ci(t)}function N2(t){if(t==null)return!0;if(Ot(t)&&(Ie(t)||typeof t=="string"||typeof t.splice=="function"||Yn(t)||Dr(t)||pr(t)))return!t.length;var r=Et(t);if(r==G||r==nt)return!t.size;if(wi(t))return!qs(t).length;for(var o in t)if(Xe.call(t,o))return!1;return!0}function U2(t,r){return bi(t,r)}function G2(t,r,o){o=typeof o=="function"?o:i;var u=o?o(t,r):i;return u===i?bi(t,r,i,o):!!u}function va(t){if(!ut(t))return!1;var r=Tt(t);return r==ke||r==Fe||typeof t.message=="string"&&typeof t.name=="string"&&!Ci(t)}function q2(t){return typeof t=="number"&&Sc(t)}function In(t){if(!ct(t))return!1;var r=Tt(t);return r==ee||r==ge||r==st||r==Ye}function Vu(t){return typeof t=="number"&&t==Oe(t)}function Fo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ie}function ct(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function ut(t){return t!=null&&typeof t=="object"}var Nu=oc?Vt(oc):Qp;function K2(t,r){return t===r||Gs(t,r,ua(r))}function Y2(t,r,o){return o=typeof o=="function"?o:i,Gs(t,r,ua(r),o)}function X2(t){return Uu(t)&&t!=+t}function Q2(t){if(zg(t))throw new Re(l);return jc(t)}function J2(t){return t===null}function e8(t){return t==null}function Uu(t){return typeof t=="number"||ut(t)&&Tt(t)==oe}function Ci(t){if(!ut(t)||Tt(t)!=Ae)return!1;var r=oo(t);if(r===null)return!0;var o=Xe.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&to.call(o)==Yh}var wa=sc?Vt(sc):Jp;function t8(t){return Vu(t)&&t>=-9007199254740991&&t<=ie}var Gu=ac?Vt(ac):eg;function Oo(t){return typeof t=="string"||!Ie(t)&&ut(t)&&Tt(t)==it}function Ut(t){return typeof t=="symbol"||ut(t)&&Tt(t)==ae}var Dr=lc?Vt(lc):tg;function n8(t){return t===i}function r8(t){return ut(t)&&Et(t)==Pe}function i8(t){return ut(t)&&Tt(t)==Ge}var o8=So(Ks),s8=So(function(t,r){return t<=r});function qu(t){if(!t)return[];if(Ot(t))return Oo(t)?dn(t):Ft(t);if(ui&&t[ui])return Dh(t[ui]());var r=Et(t),o=r==G?Ls:r==nt?Qi:Pr;return o(t)}function Mn(t){if(!t)return t===0?t:0;if(t=sn(t),t===ne||t===-1/0){var r=t<0?-1:1;return r*we}return t===t?t:0}function Oe(t){var r=Mn(t),o=r%1;return r===r?o?r-o:r:0}function Ku(t){return t?ur(Oe(t),0,Se):0}function sn(t){if(typeof t=="number")return t;if(Ut(t))return pe;if(ct(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=ct(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=pc(t);var o=B1.test(t);return o||Z1.test(t)?wh(t.slice(2),o?2:8):W1.test(t)?pe:+t}function Yu(t){return vn(t,zt(t))}function a8(t){return t?ur(Oe(t),-9007199254740991,ie):t===0?t:0}function Ke(t){return t==null?"":Nt(t)}var l8=zr(function(t,r){if(wi(r)||Ot(r)){vn(r,xt(r),t);return}for(var o in r)Xe.call(r,o)&&gi(t,o,r[o])}),Xu=zr(function(t,r){vn(r,zt(r),t)}),zo=zr(function(t,r,o,u){vn(r,zt(r),t,u)}),c8=zr(function(t,r,o,u){vn(r,xt(r),t,u)}),u8=Tn(Hs);function d8(t,r){var o=Or(t);return r==null?o:Tc(o,r)}var f8=Le(function(t,r){t=tt(t);var o=-1,u=r.length,g=u>2?r[2]:i;for(g&&Rt(r[0],r[1],g)&&(u=1);++o<u;)for(var b=r[o],S=zt(b),A=-1,O=S.length;++A<O;){var N=S[A],U=t[N];(U===i||hn(U,Ir[N])&&!Xe.call(t,N))&&(t[N]=b[N])}return t}),h8=Le(function(t){return t.push(i,pu),Zt(Qu,i,t)});function p8(t,r){return uc(t,ve(r,3),xn)}function g8(t,r){return uc(t,ve(r,3),Vs)}function m8(t,r){return t==null?t:Zs(t,ve(r,3),zt)}function y8(t,r){return t==null?t:Oc(t,ve(r,3),zt)}function b8(t,r){return t&&xn(t,ve(r,3))}function x8(t,r){return t&&Vs(t,ve(r,3))}function v8(t){return t==null?[]:mo(t,xt(t))}function w8(t){return t==null?[]:mo(t,zt(t))}function _a(t,r,o){var u=t==null?i:dr(t,r);return u===i?o:u}function _8(t,r){return t!=null&&yu(t,r,Np)}function Ca(t,r){return t!=null&&yu(t,r,Up)}var C8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),t[r]=o},Ea(Lt)),S8=cu(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=no.call(r)),Xe.call(t,r)?t[r].push(o):t[r]=[o]},ve),E8=Le(yi);function xt(t){return Ot(t)?$c(t):qs(t)}function zt(t){return Ot(t)?$c(t,!0):ng(t)}function k8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,r(u,g,b),u)}),o}function $8(t,r){var o={};return r=ve(r,3),xn(t,function(u,g,b){$n(o,g,r(u,g,b))}),o}var A8=zr(function(t,r,o){yo(t,r,o)}),Qu=zr(function(t,r,o,u){yo(t,r,o,u)}),T8=Tn(function(t,r){var o={};if(t==null)return o;var u=!1;r=at(r,function(b){return b=qn(b,t),u||(u=b.length>1),b}),vn(t,la(t),o),u&&(o=nn(o,w|_|v,Cg));for(var g=r.length;g--;)ea(o,r[g]);return o});function R8(t,r){return Ju(t,Mo(ve(r)))}var I8=Tn(function(t,r){return t==null?{}:ig(t,r)});function Ju(t,r){if(t==null)return{};var o=at(la(t),function(u){return[u]});return r=ve(r),Vc(t,o,function(u,g){return r(u,g[0])})}function M8(t,r,o){r=qn(r,t);var u=-1,g=r.length;for(g||(g=1,t=i);++u<g;){var b=t==null?i:t[wn(r[u])];b===i&&(u=g,b=o),t=In(b)?b.call(t):b}return t}function F8(t,r,o){return t==null?t:xi(t,r,o)}function O8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:xi(t,r,o,u)}var ed=fu(xt),td=fu(zt);function z8(t,r,o){var u=Ie(t),g=u||Yn(t)||Dr(t);if(r=ve(r,4),o==null){var b=t&&t.constructor;g?o=u?new b:[]:ct(t)?o=In(b)?Or(oo(t)):{}:o={}}return(g?Jt:xn)(t,function(S,A,O){return r(o,S,A,O)}),o}function L8(t,r){return t==null?!0:ea(t,r)}function j8(t,r,o){return t==null?t:Kc(t,r,ra(o))}function D8(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:Kc(t,r,ra(o),u)}function Pr(t){return t==null?[]:zs(t,xt(t))}function P8(t){return t==null?[]:zs(t,zt(t))}function W8(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=sn(o),o=o===o?o:0),r!==i&&(r=sn(r),r=r===r?r:0),ur(sn(t),r,o)}function B8(t,r,o){return r=Mn(r),o===i?(o=r,r=0):o=Mn(o),t=sn(t),Gp(t,r,o)}function H8(t,r,o){if(o&&typeof o!="boolean"&&Rt(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Mn(t),r===i?(r=t,t=0):r=Mn(r)),t>r){var u=t;t=r,r=u}if(o||t%1||r%1){var g=Ec();return St(t+g*(r-t+vh("1e-"+((g+"").length-1))),r)}return Xs(t,r)}var Z8=Lr(function(t,r,o){return r=r.toLowerCase(),t+(o?nd(r):r)});function nd(t){return Sa(Ke(t).toLowerCase())}function rd(t){return t=Ke(t),t&&t.replace(N1,Fh).replace(uh,"")}function V8(t,r,o){t=Ke(t),r=Nt(r);var u=t.length;o=o===i?u:ur(Oe(o),0,u);var g=o;return o-=r.length,o>=0&&t.slice(o,g)==r}function N8(t){return t=Ke(t),t&&vs.test(t)?t.replace(At,Oh):t}function U8(t){return t=Ke(t),t&&xe.test(t)?t.replace(or,"\\$&"):t}var G8=Lr(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),q8=Lr(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),K8=su("toLowerCase");function Y8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;if(!r||u>=r)return t;var g=(r-u)/2;return Co(co(g),o)+t+Co(lo(g),o)}function X8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?t+Co(r-u,o):t}function Q8(t,r,o){t=Ke(t),r=Oe(r);var u=r?Tr(t):0;return r&&u<r?Co(r-u,o)+t:t}function J8(t,r,o){return o||r==null?r=0:r&&(r=+r),sp(Ke(t).replace(gt,""),r||0)}function ey(t,r,o){return(o?Rt(t,r,o):r===i)?r=1:r=Oe(r),Qs(Ke(t),r)}function ty(){var t=arguments,r=Ke(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var ny=Lr(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function ry(t,r,o){return o&&typeof o!="number"&&Rt(t,r,o)&&(r=o=i),o=o===i?Se:o>>>0,o?(t=Ke(t),t&&(typeof r=="string"||r!=null&&!wa(r))&&(r=Nt(r),!r&&Ar(t))?Kn(dn(t),0,o):t.split(r,o)):[]}var iy=Lr(function(t,r,o){return t+(o?" ":"")+Sa(r)});function oy(t,r,o){return t=Ke(t),o=o==null?0:ur(Oe(o),0,t.length),r=Nt(r),t.slice(o,o+r.length)==r}function sy(t,r,o){var u=y.templateSettings;o&&Rt(t,r,o)&&(r=i),t=Ke(t),r=zo({},r,u,hu);var g=zo({},r.imports,u.imports,hu),b=xt(g),S=zs(g,b),A,O,N=0,U=r.interpolate||Gi,Y="__p += '",ce=js((r.escape||Gi).source+"|"+U.source+"|"+(U===Bn?P1:Gi).source+"|"+(r.evaluate||Gi).source+"|$","g"),me="//# sourceURL="+(Xe.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gh+"]")+`
|
|
11
|
-
`;t.replace(
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),It&&(
|
|
8
|
+
*/var qb=Wi.exports,Wd;function Kb(){return Wd||(Wd=1,function(e,n){(function(){var r,s="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",m=1,x=2,v=4,_=1,j=2,k=1,A=2,$=4,M=8,E=16,C=32,T=64,L=128,F=256,Y=512,U=30,K="...",O=800,W=16,B=1,he=2,N=3,ne=1/0,oe=9007199254740991,Se=17976931348623157e292,Te=NaN,ke=4294967295,V=ke-1,de=ke>>>1,Ce=[["ary",L],["bind",k],["bindKey",A],["curry",M],["curryRight",E],["flip",Y],["partial",C],["partialRight",T],["rearg",F]],Ee="[object Arguments]",H="[object Array]",be="[object AsyncFunction]",ie="[object Boolean]",xe="[object Date]",we="[object DOMException]",te="[object Error]",Q="[object Function]",ye="[object GeneratorFunction]",G="[object Map]",ce="[object Number]",_e="[object Null]",ze="[object Object]",Be="[object Promise]",Qe="[object Proxy]",me="[object RegExp]",Ae="[object Set]",Fe="[object String]",le="[object Symbol]",je="[object Undefined]",Me="[object WeakMap]",qe="[object WeakSet]",Je="[object ArrayBuffer]",pt="[object DataView]",wt="[object Float32Array]",Sn="[object Float64Array]",Gt="[object Int8Array]",Ft="[object Int16Array]",nt="[object Int32Array]",nn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",pr="[object Uint16Array]",Jn="[object Uint32Array]",Dr=/\b__p \+= '';/g,Ps=/\b(__p \+=) '' \+/g,to=/(__e\(.*?\)|\b__t\)) \+\n'';/g,no=/&(?:amp|lt|gt|quot|#39);/g,hi=/[&<>"']/g,Ws=RegExp(no.source),Hs=RegExp(hi.source),ro=/<%-([\s\S]+?)%>/g,Lt=/<%([\s\S]+?)%>/g,gn=/<%=([\s\S]+?)%>/g,Bs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pi=/^\w*$/,gr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cn=/[\\^$.*+?()[\]{}|]/g,mr=RegExp(Cn.source),En=/^\s+/,io=/\s/,oo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Vs=/\{\n\/\* \[wrapped with (.+)\] \*/,Zs=/,? & /,Ns=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Us=/[()=,{}\[\]\/\s]/,Gs=/\\(\\)?/g,qs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,mi=/^[-+]0x[0-9a-f]+$/i,Ks=/^0b[01]+$/i,Ys=/^\[object .+?Constructor\]$/,so=/^0o[0-7]+$/i,ao=/^(?:0|[1-9]\d*)$/,lo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,co=/['\n\r\u2028\u2029\\]/g,br="\\ud800-\\udfff",uo="\\u0300-\\u036f",fo="\\ufe20-\\ufe2f",ho="\\u20d0-\\u20ff",ge=uo+fo+ho,ct="\\u2700-\\u27bf",Dt="a-z\\xdf-\\xf6\\xf8-\\xff",rn="\\xac\\xb1\\xd7\\xf7",po="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zh="\\u2000-\\u206f",Nh=" \\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",bc="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",vc=rn+po+Zh+Nh,Xs="['’]",Uh="["+br+"]",wc="["+vc+"]",go="["+ge+"]",_c="\\d+",Gh="["+ct+"]",Sc="["+Dt+"]",Cc="[^"+br+vc+_c+ct+Dt+bc+"]",Qs="\\ud83c[\\udffb-\\udfff]",qh="(?:"+go+"|"+Qs+")",Ec="[^"+br+"]",Js="(?:\\ud83c[\\udde6-\\uddff]){2}",ea="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="["+bc+"]",$c="\\u200d",kc="(?:"+Sc+"|"+Cc+")",Kh="(?:"+Pr+"|"+Cc+")",Ac="(?:"+Xs+"(?:d|ll|m|re|s|t|ve))?",jc="(?:"+Xs+"(?:D|LL|M|RE|S|T|VE))?",Tc=qh+"?",Rc="["+xc+"]?",Yh="(?:"+$c+"(?:"+[Ec,Js,ea].join("|")+")"+Rc+Tc+")*",Xh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mc=Rc+Tc+Yh,Jh="(?:"+[Gh,Js,ea].join("|")+")"+Mc,ep="(?:"+[Ec+go+"?",go,Js,ea,Uh].join("|")+")",tp=RegExp(Xs,"g"),np=RegExp(go,"g"),ta=RegExp(Qs+"(?="+Qs+")|"+ep+Mc,"g"),rp=RegExp([Pr+"?"+Sc+"+"+Ac+"(?="+[wc,Pr,"$"].join("|")+")",Kh+"+"+jc+"(?="+[wc,Pr+kc,"$"].join("|")+")",Pr+"?"+kc+"+"+Ac,Pr+"+"+jc,Qh,Xh,_c,Jh].join("|"),"g"),ip=RegExp("["+$c+br+ge+xc+"]"),op=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sp=["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"],ap=-1,ut={};ut[wt]=ut[Sn]=ut[Gt]=ut[Ft]=ut[nt]=ut[nn]=ut[Qn]=ut[pr]=ut[Jn]=!0,ut[Ee]=ut[H]=ut[Je]=ut[ie]=ut[pt]=ut[xe]=ut[te]=ut[Q]=ut[G]=ut[ce]=ut[ze]=ut[me]=ut[Ae]=ut[Fe]=ut[Me]=!1;var lt={};lt[Ee]=lt[H]=lt[Je]=lt[pt]=lt[ie]=lt[xe]=lt[wt]=lt[Sn]=lt[Gt]=lt[Ft]=lt[nt]=lt[G]=lt[ce]=lt[ze]=lt[me]=lt[Ae]=lt[Fe]=lt[le]=lt[nn]=lt[Qn]=lt[pr]=lt[Jn]=!0,lt[te]=lt[Q]=lt[Me]=!1;var lp={À:"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"},cp={"&":"&","<":"<",">":">",'"':""","'":"'"},up={"&":"&","<":"<",">":">",""":'"',"'":"'"},dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fp=parseFloat,hp=parseInt,Ic=typeof ts=="object"&&ts&&ts.Object===Object&&ts,pp=typeof self=="object"&&self&&self.Object===Object&&self,$t=Ic||pp||Function("return this")(),na=n&&!n.nodeType&&n,xr=na&&!0&&e&&!e.nodeType&&e,Oc=xr&&xr.exports===na,ra=Oc&&Ic.process,on=function(){try{var D=xr&&xr.require&&xr.require("util").types;return D||ra&&ra.binding&&ra.binding("util")}catch{}}(),zc=on&&on.isArrayBuffer,Fc=on&&on.isDate,Lc=on&&on.isMap,Dc=on&&on.isRegExp,Pc=on&&on.isSet,Wc=on&&on.isTypedArray;function qt(D,q,Z){switch(Z.length){case 0:return D.call(q);case 1:return D.call(q,Z[0]);case 2:return D.call(q,Z[0],Z[1]);case 3:return D.call(q,Z[0],Z[1],Z[2])}return D.apply(q,Z)}function gp(D,q,Z,$e){for(var We=-1,et=D==null?0:D.length;++We<et;){var _t=D[We];q($e,_t,Z(_t),D)}return $e}function sn(D,q){for(var Z=-1,$e=D==null?0:D.length;++Z<$e&&q(D[Z],Z,D)!==!1;);return D}function mp(D,q){for(var Z=D==null?0:D.length;Z--&&q(D[Z],Z,D)!==!1;);return D}function Hc(D,q){for(var Z=-1,$e=D==null?0:D.length;++Z<$e;)if(!q(D[Z],Z,D))return!1;return!0}function er(D,q){for(var Z=-1,$e=D==null?0:D.length,We=0,et=[];++Z<$e;){var _t=D[Z];q(_t,Z,D)&&(et[We++]=_t)}return et}function mo(D,q){var Z=D==null?0:D.length;return!!Z&&Wr(D,q,0)>-1}function ia(D,q,Z){for(var $e=-1,We=D==null?0:D.length;++$e<We;)if(Z(q,D[$e]))return!0;return!1}function dt(D,q){for(var Z=-1,$e=D==null?0:D.length,We=Array($e);++Z<$e;)We[Z]=q(D[Z],Z,D);return We}function tr(D,q){for(var Z=-1,$e=q.length,We=D.length;++Z<$e;)D[We+Z]=q[Z];return D}function oa(D,q,Z,$e){var We=-1,et=D==null?0:D.length;for($e&&et&&(Z=D[++We]);++We<et;)Z=q(Z,D[We],We,D);return Z}function yp(D,q,Z,$e){var We=D==null?0:D.length;for($e&&We&&(Z=D[--We]);We--;)Z=q(Z,D[We],We,D);return Z}function sa(D,q){for(var Z=-1,$e=D==null?0:D.length;++Z<$e;)if(q(D[Z],Z,D))return!0;return!1}var bp=aa("length");function xp(D){return D.split("")}function vp(D){return D.match(Ns)||[]}function Bc(D,q,Z){var $e;return Z(D,function(We,et,_t){if(q(We,et,_t))return $e=et,!1}),$e}function yo(D,q,Z,$e){for(var We=D.length,et=Z+($e?1:-1);$e?et--:++et<We;)if(q(D[et],et,D))return et;return-1}function Wr(D,q,Z){return q===q?Mp(D,q,Z):yo(D,Vc,Z)}function wp(D,q,Z,$e){for(var We=Z-1,et=D.length;++We<et;)if($e(D[We],q))return We;return-1}function Vc(D){return D!==D}function Zc(D,q){var Z=D==null?0:D.length;return Z?ca(D,q)/Z:Te}function aa(D){return function(q){return q==null?r:q[D]}}function la(D){return function(q){return D==null?r:D[q]}}function Nc(D,q,Z,$e,We){return We(D,function(et,_t,st){Z=$e?($e=!1,et):q(Z,et,_t,st)}),Z}function _p(D,q){var Z=D.length;for(D.sort(q);Z--;)D[Z]=D[Z].value;return D}function ca(D,q){for(var Z,$e=-1,We=D.length;++$e<We;){var et=q(D[$e]);et!==r&&(Z=Z===r?et:Z+et)}return Z}function ua(D,q){for(var Z=-1,$e=Array(D);++Z<D;)$e[Z]=q(Z);return $e}function Sp(D,q){return dt(q,function(Z){return[Z,D[Z]]})}function Uc(D){return D&&D.slice(0,Yc(D)+1).replace(En,"")}function Kt(D){return function(q){return D(q)}}function da(D,q){return dt(q,function(Z){return D[Z]})}function yi(D,q){return D.has(q)}function Gc(D,q){for(var Z=-1,$e=D.length;++Z<$e&&Wr(q,D[Z],0)>-1;);return Z}function qc(D,q){for(var Z=D.length;Z--&&Wr(q,D[Z],0)>-1;);return Z}function Cp(D,q){for(var Z=D.length,$e=0;Z--;)D[Z]===q&&++$e;return $e}var Ep=la(lp),$p=la(cp);function kp(D){return"\\"+dp[D]}function Ap(D,q){return D==null?r:D[q]}function Hr(D){return ip.test(D)}function jp(D){return op.test(D)}function Tp(D){for(var q,Z=[];!(q=D.next()).done;)Z.push(q.value);return Z}function fa(D){var q=-1,Z=Array(D.size);return D.forEach(function($e,We){Z[++q]=[We,$e]}),Z}function Kc(D,q){return function(Z){return D(q(Z))}}function nr(D,q){for(var Z=-1,$e=D.length,We=0,et=[];++Z<$e;){var _t=D[Z];(_t===q||_t===b)&&(D[Z]=b,et[We++]=Z)}return et}function bo(D){var q=-1,Z=Array(D.size);return D.forEach(function($e){Z[++q]=$e}),Z}function Rp(D){var q=-1,Z=Array(D.size);return D.forEach(function($e){Z[++q]=[$e,$e]}),Z}function Mp(D,q,Z){for(var $e=Z-1,We=D.length;++$e<We;)if(D[$e]===q)return $e;return-1}function Ip(D,q,Z){for(var $e=Z+1;$e--;)if(D[$e]===q)return $e;return $e}function Br(D){return Hr(D)?zp(D):bp(D)}function mn(D){return Hr(D)?Fp(D):xp(D)}function Yc(D){for(var q=D.length;q--&&io.test(D.charAt(q)););return q}var Op=la(up);function zp(D){for(var q=ta.lastIndex=0;ta.test(D);)++q;return q}function Fp(D){return D.match(ta)||[]}function Lp(D){return D.match(rp)||[]}var Dp=function D(q){q=q==null?$t:Vr.defaults($t.Object(),q,Vr.pick($t,sp));var Z=q.Array,$e=q.Date,We=q.Error,et=q.Function,_t=q.Math,st=q.Object,ha=q.RegExp,Pp=q.String,an=q.TypeError,xo=Z.prototype,Wp=et.prototype,Zr=st.prototype,vo=q["__core-js_shared__"],wo=Wp.toString,rt=Zr.hasOwnProperty,Hp=0,Xc=function(){var t=/[^.]+$/.exec(vo&&vo.keys&&vo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),_o=Zr.toString,Bp=wo.call(st),Vp=$t._,Zp=ha("^"+wo.call(rt).replace(Cn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),So=Oc?q.Buffer:r,rr=q.Symbol,Co=q.Uint8Array,Qc=So?So.allocUnsafe:r,Eo=Kc(st.getPrototypeOf,st),Jc=st.create,eu=Zr.propertyIsEnumerable,$o=xo.splice,tu=rr?rr.isConcatSpreadable:r,bi=rr?rr.iterator:r,vr=rr?rr.toStringTag:r,ko=function(){try{var t=Er(st,"defineProperty");return t({},"",{}),t}catch{}}(),Np=q.clearTimeout!==$t.clearTimeout&&q.clearTimeout,Up=$e&&$e.now!==$t.Date.now&&$e.now,Gp=q.setTimeout!==$t.setTimeout&&q.setTimeout,Ao=_t.ceil,jo=_t.floor,pa=st.getOwnPropertySymbols,qp=So?So.isBuffer:r,nu=q.isFinite,Kp=xo.join,Yp=Kc(st.keys,st),St=_t.max,jt=_t.min,Xp=$e.now,Qp=q.parseInt,ru=_t.random,Jp=xo.reverse,ga=Er(q,"DataView"),xi=Er(q,"Map"),ma=Er(q,"Promise"),Nr=Er(q,"Set"),vi=Er(q,"WeakMap"),wi=Er(st,"create"),To=vi&&new vi,Ur={},eg=$r(ga),tg=$r(xi),ng=$r(ma),rg=$r(Nr),ig=$r(vi),Ro=rr?rr.prototype:r,_i=Ro?Ro.valueOf:r,iu=Ro?Ro.toString:r;function w(t){if(ht(t)&&!He(t)&&!(t instanceof Ke)){if(t instanceof ln)return t;if(rt.call(t,"__wrapped__"))return od(t)}return new ln(t)}var Gr=function(){function t(){}return function(i){if(!ft(i))return{};if(Jc)return Jc(i);t.prototype=i;var o=new t;return t.prototype=r,o}}();function Mo(){}function ln(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}w.templateSettings={escape:ro,evaluate:Lt,interpolate:gn,variable:"",imports:{_:w}},w.prototype=Mo.prototype,w.prototype.constructor=w,ln.prototype=Gr(Mo.prototype),ln.prototype.constructor=ln;function Ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function og(){var t=new Ke(this.__wrapped__);return t.__actions__=Pt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pt(this.__views__),t}function sg(){if(this.__filtered__){var t=new Ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function ag(){var t=this.__wrapped__.value(),i=this.__dir__,o=He(t),h=i<0,y=o?t.length:0,S=xm(0,y,this.__views__),R=S.start,z=S.end,P=z-R,J=h?z:R-1,ee=this.__iteratees__,se=ee.length,ve=0,Ie=jt(P,this.__takeCount__);if(!o||!h&&y==P&&Ie==P)return Au(t,this.__actions__);var De=[];e:for(;P--&&ve<Ie;){J+=i;for(var Ne=-1,Pe=t[J];++Ne<se;){var Ge=ee[Ne],Ye=Ge.iteratee,Qt=Ge.type,It=Ye(Pe);if(Qt==he)Pe=It;else if(!It){if(Qt==B)continue e;break e}}De[ve++]=Pe}return De}Ke.prototype=Gr(Mo.prototype),Ke.prototype.constructor=Ke;function wr(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var h=t[i];this.set(h[0],h[1])}}function lg(){this.__data__=wi?wi(null):{},this.size=0}function cg(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function ug(t){var i=this.__data__;if(wi){var o=i[t];return o===p?r:o}return rt.call(i,t)?i[t]:r}function dg(t){var i=this.__data__;return wi?i[t]!==r:rt.call(i,t)}function fg(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=wi&&i===r?p:i,this}wr.prototype.clear=lg,wr.prototype.delete=cg,wr.prototype.get=ug,wr.prototype.has=dg,wr.prototype.set=fg;function zn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var h=t[i];this.set(h[0],h[1])}}function hg(){this.__data__=[],this.size=0}function pg(t){var i=this.__data__,o=Io(i,t);if(o<0)return!1;var h=i.length-1;return o==h?i.pop():$o.call(i,o,1),--this.size,!0}function gg(t){var i=this.__data__,o=Io(i,t);return o<0?r:i[o][1]}function mg(t){return Io(this.__data__,t)>-1}function yg(t,i){var o=this.__data__,h=Io(o,t);return h<0?(++this.size,o.push([t,i])):o[h][1]=i,this}zn.prototype.clear=hg,zn.prototype.delete=pg,zn.prototype.get=gg,zn.prototype.has=mg,zn.prototype.set=yg;function Fn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var h=t[i];this.set(h[0],h[1])}}function bg(){this.size=0,this.__data__={hash:new wr,map:new(xi||zn),string:new wr}}function xg(t){var i=No(this,t).delete(t);return this.size-=i?1:0,i}function vg(t){return No(this,t).get(t)}function wg(t){return No(this,t).has(t)}function _g(t,i){var o=No(this,t),h=o.size;return o.set(t,i),this.size+=o.size==h?0:1,this}Fn.prototype.clear=bg,Fn.prototype.delete=xg,Fn.prototype.get=vg,Fn.prototype.has=wg,Fn.prototype.set=_g;function _r(t){var i=-1,o=t==null?0:t.length;for(this.__data__=new Fn;++i<o;)this.add(t[i])}function Sg(t){return this.__data__.set(t,p),this}function Cg(t){return this.__data__.has(t)}_r.prototype.add=_r.prototype.push=Sg,_r.prototype.has=Cg;function yn(t){var i=this.__data__=new zn(t);this.size=i.size}function Eg(){this.__data__=new zn,this.size=0}function $g(t){var i=this.__data__,o=i.delete(t);return this.size=i.size,o}function kg(t){return this.__data__.get(t)}function Ag(t){return this.__data__.has(t)}function jg(t,i){var o=this.__data__;if(o instanceof zn){var h=o.__data__;if(!xi||h.length<l-1)return h.push([t,i]),this.size=++o.size,this;o=this.__data__=new Fn(h)}return o.set(t,i),this.size=o.size,this}yn.prototype.clear=Eg,yn.prototype.delete=$g,yn.prototype.get=kg,yn.prototype.has=Ag,yn.prototype.set=jg;function ou(t,i){var o=He(t),h=!o&&kr(t),y=!o&&!h&&lr(t),S=!o&&!h&&!y&&Xr(t),R=o||h||y||S,z=R?ua(t.length,Pp):[],P=z.length;for(var J in t)(i||rt.call(t,J))&&!(R&&(J=="length"||y&&(J=="offset"||J=="parent")||S&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||Wn(J,P)))&&z.push(J);return z}function su(t){var i=t.length;return i?t[ka(0,i-1)]:r}function Tg(t,i){return Uo(Pt(t),Sr(i,0,t.length))}function Rg(t){return Uo(Pt(t))}function ya(t,i,o){(o!==r&&!bn(t[i],o)||o===r&&!(i in t))&&Ln(t,i,o)}function Si(t,i,o){var h=t[i];(!(rt.call(t,i)&&bn(h,o))||o===r&&!(i in t))&&Ln(t,i,o)}function Io(t,i){for(var o=t.length;o--;)if(bn(t[o][0],i))return o;return-1}function Mg(t,i,o,h){return ir(t,function(y,S,R){i(h,y,o(y),R)}),h}function au(t,i){return t&&kn(i,Et(i),t)}function Ig(t,i){return t&&kn(i,Ht(i),t)}function Ln(t,i,o){i=="__proto__"&&ko?ko(t,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[i]=o}function ba(t,i){for(var o=-1,h=i.length,y=Z(h),S=t==null;++o<h;)y[o]=S?r:Qa(t,i[o]);return y}function Sr(t,i,o){return t===t&&(o!==r&&(t=t<=o?t:o),i!==r&&(t=t>=i?t:i)),t}function cn(t,i,o,h,y,S){var R,z=i&m,P=i&x,J=i&v;if(o&&(R=y?o(t,h,y,S):o(t)),R!==r)return R;if(!ft(t))return t;var ee=He(t);if(ee){if(R=wm(t),!z)return Pt(t,R)}else{var se=Tt(t),ve=se==Q||se==ye;if(lr(t))return Ru(t,z);if(se==ze||se==Ee||ve&&!y){if(R=P||ve?{}:Yu(t),!z)return P?um(t,Ig(R,t)):cm(t,au(R,t))}else{if(!lt[se])return y?t:{};R=_m(t,se,z)}}S||(S=new yn);var Ie=S.get(t);if(Ie)return Ie;S.set(t,R),Ed(t)?t.forEach(function(Pe){R.add(cn(Pe,i,o,Pe,t,S))}):Sd(t)&&t.forEach(function(Pe,Ge){R.set(Ge,cn(Pe,i,o,Ge,t,S))});var De=J?P?Da:La:P?Ht:Et,Ne=ee?r:De(t);return sn(Ne||t,function(Pe,Ge){Ne&&(Ge=Pe,Pe=t[Ge]),Si(R,Ge,cn(Pe,i,o,Ge,t,S))}),R}function Og(t){var i=Et(t);return function(o){return lu(o,t,i)}}function lu(t,i,o){var h=o.length;if(t==null)return!h;for(t=st(t);h--;){var y=o[h],S=i[y],R=t[y];if(R===r&&!(y in t)||!S(R))return!1}return!0}function cu(t,i,o){if(typeof t!="function")throw new an(u);return Ti(function(){t.apply(r,o)},i)}function Ci(t,i,o,h){var y=-1,S=mo,R=!0,z=t.length,P=[],J=i.length;if(!z)return P;o&&(i=dt(i,Kt(o))),h?(S=ia,R=!1):i.length>=l&&(S=yi,R=!1,i=new _r(i));e:for(;++y<z;){var ee=t[y],se=o==null?ee:o(ee);if(ee=h||ee!==0?ee:0,R&&se===se){for(var ve=J;ve--;)if(i[ve]===se)continue e;P.push(ee)}else S(i,se,h)||P.push(ee)}return P}var ir=Fu($n),uu=Fu(va,!0);function zg(t,i){var o=!0;return ir(t,function(h,y,S){return o=!!i(h,y,S),o}),o}function Oo(t,i,o){for(var h=-1,y=t.length;++h<y;){var S=t[h],R=i(S);if(R!=null&&(z===r?R===R&&!Xt(R):o(R,z)))var z=R,P=S}return P}function Fg(t,i,o,h){var y=t.length;for(o=Ze(o),o<0&&(o=-o>y?0:y+o),h=h===r||h>y?y:Ze(h),h<0&&(h+=y),h=o>h?0:kd(h);o<h;)t[o++]=i;return t}function du(t,i){var o=[];return ir(t,function(h,y,S){i(h,y,S)&&o.push(h)}),o}function kt(t,i,o,h,y){var S=-1,R=t.length;for(o||(o=Cm),y||(y=[]);++S<R;){var z=t[S];i>0&&o(z)?i>1?kt(z,i-1,o,h,y):tr(y,z):h||(y[y.length]=z)}return y}var xa=Lu(),fu=Lu(!0);function $n(t,i){return t&&xa(t,i,Et)}function va(t,i){return t&&fu(t,i,Et)}function zo(t,i){return er(i,function(o){return Hn(t[o])})}function Cr(t,i){i=sr(i,t);for(var o=0,h=i.length;t!=null&&o<h;)t=t[An(i[o++])];return o&&o==h?t:r}function hu(t,i,o){var h=i(t);return He(t)?h:tr(h,o(t))}function Rt(t){return t==null?t===r?je:_e:vr&&vr in st(t)?bm(t):Rm(t)}function wa(t,i){return t>i}function Lg(t,i){return t!=null&&rt.call(t,i)}function Dg(t,i){return t!=null&&i in st(t)}function Pg(t,i,o){return t>=jt(i,o)&&t<St(i,o)}function _a(t,i,o){for(var h=o?ia:mo,y=t[0].length,S=t.length,R=S,z=Z(S),P=1/0,J=[];R--;){var ee=t[R];R&&i&&(ee=dt(ee,Kt(i))),P=jt(ee.length,P),z[R]=!o&&(i||y>=120&&ee.length>=120)?new _r(R&&ee):r}ee=t[0];var se=-1,ve=z[0];e:for(;++se<y&&J.length<P;){var Ie=ee[se],De=i?i(Ie):Ie;if(Ie=o||Ie!==0?Ie:0,!(ve?yi(ve,De):h(J,De,o))){for(R=S;--R;){var Ne=z[R];if(!(Ne?yi(Ne,De):h(t[R],De,o)))continue e}ve&&ve.push(De),J.push(Ie)}}return J}function Wg(t,i,o,h){return $n(t,function(y,S,R){i(h,o(y),S,R)}),h}function Ei(t,i,o){i=sr(i,t),t=ed(t,i);var h=t==null?t:t[An(dn(i))];return h==null?r:qt(h,t,o)}function pu(t){return ht(t)&&Rt(t)==Ee}function Hg(t){return ht(t)&&Rt(t)==Je}function Bg(t){return ht(t)&&Rt(t)==xe}function $i(t,i,o,h,y){return t===i?!0:t==null||i==null||!ht(t)&&!ht(i)?t!==t&&i!==i:Vg(t,i,o,h,$i,y)}function Vg(t,i,o,h,y,S){var R=He(t),z=He(i),P=R?H:Tt(t),J=z?H:Tt(i);P=P==Ee?ze:P,J=J==Ee?ze:J;var ee=P==ze,se=J==ze,ve=P==J;if(ve&&lr(t)){if(!lr(i))return!1;R=!0,ee=!1}if(ve&&!ee)return S||(S=new yn),R||Xr(t)?Gu(t,i,o,h,y,S):mm(t,i,P,o,h,y,S);if(!(o&_)){var Ie=ee&&rt.call(t,"__wrapped__"),De=se&&rt.call(i,"__wrapped__");if(Ie||De){var Ne=Ie?t.value():t,Pe=De?i.value():i;return S||(S=new yn),y(Ne,Pe,o,h,S)}}return ve?(S||(S=new yn),ym(t,i,o,h,y,S)):!1}function Zg(t){return ht(t)&&Tt(t)==G}function Sa(t,i,o,h){var y=o.length,S=y,R=!h;if(t==null)return!S;for(t=st(t);y--;){var z=o[y];if(R&&z[2]?z[1]!==t[z[0]]:!(z[0]in t))return!1}for(;++y<S;){z=o[y];var P=z[0],J=t[P],ee=z[1];if(R&&z[2]){if(J===r&&!(P in t))return!1}else{var se=new yn;if(h)var ve=h(J,ee,P,t,i,se);if(!(ve===r?$i(ee,J,_|j,h,se):ve))return!1}}return!0}function gu(t){if(!ft(t)||$m(t))return!1;var i=Hn(t)?Zp:Ys;return i.test($r(t))}function Ng(t){return ht(t)&&Rt(t)==me}function Ug(t){return ht(t)&&Tt(t)==Ae}function Gg(t){return ht(t)&&Qo(t.length)&&!!ut[Rt(t)]}function mu(t){return typeof t=="function"?t:t==null?Bt:typeof t=="object"?He(t)?xu(t[0],t[1]):bu(t):Dd(t)}function Ca(t){if(!ji(t))return Yp(t);var i=[];for(var o in st(t))rt.call(t,o)&&o!="constructor"&&i.push(o);return i}function qg(t){if(!ft(t))return Tm(t);var i=ji(t),o=[];for(var h in t)h=="constructor"&&(i||!rt.call(t,h))||o.push(h);return o}function Ea(t,i){return t<i}function yu(t,i){var o=-1,h=Wt(t)?Z(t.length):[];return ir(t,function(y,S,R){h[++o]=i(y,S,R)}),h}function bu(t){var i=Wa(t);return i.length==1&&i[0][2]?Qu(i[0][0],i[0][1]):function(o){return o===t||Sa(o,t,i)}}function xu(t,i){return Ba(t)&&Xu(i)?Qu(An(t),i):function(o){var h=Qa(o,t);return h===r&&h===i?Ja(o,t):$i(i,h,_|j)}}function Fo(t,i,o,h,y){t!==i&&xa(i,function(S,R){if(y||(y=new yn),ft(S))Kg(t,i,R,o,Fo,h,y);else{var z=h?h(Za(t,R),S,R+"",t,i,y):r;z===r&&(z=S),ya(t,R,z)}},Ht)}function Kg(t,i,o,h,y,S,R){var z=Za(t,o),P=Za(i,o),J=R.get(P);if(J){ya(t,o,J);return}var ee=S?S(z,P,o+"",t,i,R):r,se=ee===r;if(se){var ve=He(P),Ie=!ve&&lr(P),De=!ve&&!Ie&&Xr(P);ee=P,ve||Ie||De?He(z)?ee=z:gt(z)?ee=Pt(z):Ie?(se=!1,ee=Ru(P,!0)):De?(se=!1,ee=Mu(P,!0)):ee=[]:Ri(P)||kr(P)?(ee=z,kr(z)?ee=Ad(z):(!ft(z)||Hn(z))&&(ee=Yu(P))):se=!1}se&&(R.set(P,ee),y(ee,P,h,S,R),R.delete(P)),ya(t,o,ee)}function vu(t,i){var o=t.length;if(o)return i+=i<0?o:0,Wn(i,o)?t[i]:r}function wu(t,i,o){i.length?i=dt(i,function(S){return He(S)?function(R){return Cr(R,S.length===1?S[0]:S)}:S}):i=[Bt];var h=-1;i=dt(i,Kt(Le()));var y=yu(t,function(S,R,z){var P=dt(i,function(J){return J(S)});return{criteria:P,index:++h,value:S}});return _p(y,function(S,R){return lm(S,R,o)})}function Yg(t,i){return _u(t,i,function(o,h){return Ja(t,h)})}function _u(t,i,o){for(var h=-1,y=i.length,S={};++h<y;){var R=i[h],z=Cr(t,R);o(z,R)&&ki(S,sr(R,t),z)}return S}function Xg(t){return function(i){return Cr(i,t)}}function $a(t,i,o,h){var y=h?wp:Wr,S=-1,R=i.length,z=t;for(t===i&&(i=Pt(i)),o&&(z=dt(t,Kt(o)));++S<R;)for(var P=0,J=i[S],ee=o?o(J):J;(P=y(z,ee,P,h))>-1;)z!==t&&$o.call(z,P,1),$o.call(t,P,1);return t}function Su(t,i){for(var o=t?i.length:0,h=o-1;o--;){var y=i[o];if(o==h||y!==S){var S=y;Wn(y)?$o.call(t,y,1):Ta(t,y)}}return t}function ka(t,i){return t+jo(ru()*(i-t+1))}function Qg(t,i,o,h){for(var y=-1,S=St(Ao((i-t)/(o||1)),0),R=Z(S);S--;)R[h?S:++y]=t,t+=o;return R}function Aa(t,i){var o="";if(!t||i<1||i>oe)return o;do i%2&&(o+=t),i=jo(i/2),i&&(t+=t);while(i);return o}function Ue(t,i){return Na(Ju(t,i,Bt),t+"")}function Jg(t){return su(Qr(t))}function em(t,i){var o=Qr(t);return Uo(o,Sr(i,0,o.length))}function ki(t,i,o,h){if(!ft(t))return t;i=sr(i,t);for(var y=-1,S=i.length,R=S-1,z=t;z!=null&&++y<S;){var P=An(i[y]),J=o;if(P==="__proto__"||P==="constructor"||P==="prototype")return t;if(y!=R){var ee=z[P];J=h?h(ee,P,z):r,J===r&&(J=ft(ee)?ee:Wn(i[y+1])?[]:{})}Si(z,P,J),z=z[P]}return t}var Cu=To?function(t,i){return To.set(t,i),t}:Bt,tm=ko?function(t,i){return ko(t,"toString",{configurable:!0,enumerable:!1,value:tl(i),writable:!0})}:Bt;function nm(t){return Uo(Qr(t))}function un(t,i,o){var h=-1,y=t.length;i<0&&(i=-i>y?0:y+i),o=o>y?y:o,o<0&&(o+=y),y=i>o?0:o-i>>>0,i>>>=0;for(var S=Z(y);++h<y;)S[h]=t[h+i];return S}function rm(t,i){var o;return ir(t,function(h,y,S){return o=i(h,y,S),!o}),!!o}function Lo(t,i,o){var h=0,y=t==null?h:t.length;if(typeof i=="number"&&i===i&&y<=de){for(;h<y;){var S=h+y>>>1,R=t[S];R!==null&&!Xt(R)&&(o?R<=i:R<i)?h=S+1:y=S}return y}return ja(t,i,Bt,o)}function ja(t,i,o,h){var y=0,S=t==null?0:t.length;if(S===0)return 0;i=o(i);for(var R=i!==i,z=i===null,P=Xt(i),J=i===r;y<S;){var ee=jo((y+S)/2),se=o(t[ee]),ve=se!==r,Ie=se===null,De=se===se,Ne=Xt(se);if(R)var Pe=h||De;else J?Pe=De&&(h||ve):z?Pe=De&&ve&&(h||!Ie):P?Pe=De&&ve&&!Ie&&(h||!Ne):Ie||Ne?Pe=!1:Pe=h?se<=i:se<i;Pe?y=ee+1:S=ee}return jt(S,V)}function Eu(t,i){for(var o=-1,h=t.length,y=0,S=[];++o<h;){var R=t[o],z=i?i(R):R;if(!o||!bn(z,P)){var P=z;S[y++]=R===0?0:R}}return S}function $u(t){return typeof t=="number"?t:Xt(t)?Te:+t}function Yt(t){if(typeof t=="string")return t;if(He(t))return dt(t,Yt)+"";if(Xt(t))return iu?iu.call(t):"";var i=t+"";return i=="0"&&1/t==-1/0?"-0":i}function or(t,i,o){var h=-1,y=mo,S=t.length,R=!0,z=[],P=z;if(o)R=!1,y=ia;else if(S>=l){var J=i?null:pm(t);if(J)return bo(J);R=!1,y=yi,P=new _r}else P=i?[]:z;e:for(;++h<S;){var ee=t[h],se=i?i(ee):ee;if(ee=o||ee!==0?ee:0,R&&se===se){for(var ve=P.length;ve--;)if(P[ve]===se)continue e;i&&P.push(se),z.push(ee)}else y(P,se,o)||(P!==z&&P.push(se),z.push(ee))}return z}function Ta(t,i){return i=sr(i,t),t=ed(t,i),t==null||delete t[An(dn(i))]}function ku(t,i,o,h){return ki(t,i,o(Cr(t,i)),h)}function Do(t,i,o,h){for(var y=t.length,S=h?y:-1;(h?S--:++S<y)&&i(t[S],S,t););return o?un(t,h?0:S,h?S+1:y):un(t,h?S+1:0,h?y:S)}function Au(t,i){var o=t;return o instanceof Ke&&(o=o.value()),oa(i,function(h,y){return y.func.apply(y.thisArg,tr([h],y.args))},o)}function Ra(t,i,o){var h=t.length;if(h<2)return h?or(t[0]):[];for(var y=-1,S=Z(h);++y<h;)for(var R=t[y],z=-1;++z<h;)z!=y&&(S[y]=Ci(S[y]||R,t[z],i,o));return or(kt(S,1),i,o)}function ju(t,i,o){for(var h=-1,y=t.length,S=i.length,R={};++h<y;){var z=h<S?i[h]:r;o(R,t[h],z)}return R}function Ma(t){return gt(t)?t:[]}function Ia(t){return typeof t=="function"?t:Bt}function sr(t,i){return He(t)?t:Ba(t,i)?[t]:id(tt(t))}var im=Ue;function ar(t,i,o){var h=t.length;return o=o===r?h:o,!i&&o>=h?t:un(t,i,o)}var Tu=Np||function(t){return $t.clearTimeout(t)};function Ru(t,i){if(i)return t.slice();var o=t.length,h=Qc?Qc(o):new t.constructor(o);return t.copy(h),h}function Oa(t){var i=new t.constructor(t.byteLength);return new Co(i).set(new Co(t)),i}function om(t,i){var o=i?Oa(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function sm(t){var i=new t.constructor(t.source,gi.exec(t));return i.lastIndex=t.lastIndex,i}function am(t){return _i?st(_i.call(t)):{}}function Mu(t,i){var o=i?Oa(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function Iu(t,i){if(t!==i){var o=t!==r,h=t===null,y=t===t,S=Xt(t),R=i!==r,z=i===null,P=i===i,J=Xt(i);if(!z&&!J&&!S&&t>i||S&&R&&P&&!z&&!J||h&&R&&P||!o&&P||!y)return 1;if(!h&&!S&&!J&&t<i||J&&o&&y&&!h&&!S||z&&o&&y||!R&&y||!P)return-1}return 0}function lm(t,i,o){for(var h=-1,y=t.criteria,S=i.criteria,R=y.length,z=o.length;++h<R;){var P=Iu(y[h],S[h]);if(P){if(h>=z)return P;var J=o[h];return P*(J=="desc"?-1:1)}}return t.index-i.index}function Ou(t,i,o,h){for(var y=-1,S=t.length,R=o.length,z=-1,P=i.length,J=St(S-R,0),ee=Z(P+J),se=!h;++z<P;)ee[z]=i[z];for(;++y<R;)(se||y<S)&&(ee[o[y]]=t[y]);for(;J--;)ee[z++]=t[y++];return ee}function zu(t,i,o,h){for(var y=-1,S=t.length,R=-1,z=o.length,P=-1,J=i.length,ee=St(S-z,0),se=Z(ee+J),ve=!h;++y<ee;)se[y]=t[y];for(var Ie=y;++P<J;)se[Ie+P]=i[P];for(;++R<z;)(ve||y<S)&&(se[Ie+o[R]]=t[y++]);return se}function Pt(t,i){var o=-1,h=t.length;for(i||(i=Z(h));++o<h;)i[o]=t[o];return i}function kn(t,i,o,h){var y=!o;o||(o={});for(var S=-1,R=i.length;++S<R;){var z=i[S],P=h?h(o[z],t[z],z,o,t):r;P===r&&(P=t[z]),y?Ln(o,z,P):Si(o,z,P)}return o}function cm(t,i){return kn(t,Ha(t),i)}function um(t,i){return kn(t,qu(t),i)}function Po(t,i){return function(o,h){var y=He(o)?gp:Mg,S=i?i():{};return y(o,t,Le(h,2),S)}}function qr(t){return Ue(function(i,o){var h=-1,y=o.length,S=y>1?o[y-1]:r,R=y>2?o[2]:r;for(S=t.length>3&&typeof S=="function"?(y--,S):r,R&&Mt(o[0],o[1],R)&&(S=y<3?r:S,y=1),i=st(i);++h<y;){var z=o[h];z&&t(i,z,h,S)}return i})}function Fu(t,i){return function(o,h){if(o==null)return o;if(!Wt(o))return t(o,h);for(var y=o.length,S=i?y:-1,R=st(o);(i?S--:++S<y)&&h(R[S],S,R)!==!1;);return o}}function Lu(t){return function(i,o,h){for(var y=-1,S=st(i),R=h(i),z=R.length;z--;){var P=R[t?z:++y];if(o(S[P],P,S)===!1)break}return i}}function dm(t,i,o){var h=i&k,y=Ai(t);function S(){var R=this&&this!==$t&&this instanceof S?y:t;return R.apply(h?o:this,arguments)}return S}function Du(t){return function(i){i=tt(i);var o=Hr(i)?mn(i):r,h=o?o[0]:i.charAt(0),y=o?ar(o,1).join(""):i.slice(1);return h[t]()+y}}function Kr(t){return function(i){return oa(Fd(zd(i).replace(tp,"")),t,"")}}function Ai(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var o=Gr(t.prototype),h=t.apply(o,i);return ft(h)?h:o}}function fm(t,i,o){var h=Ai(t);function y(){for(var S=arguments.length,R=Z(S),z=S,P=Yr(y);z--;)R[z]=arguments[z];var J=S<3&&R[0]!==P&&R[S-1]!==P?[]:nr(R,P);if(S-=J.length,S<o)return Vu(t,i,Wo,y.placeholder,r,R,J,r,r,o-S);var ee=this&&this!==$t&&this instanceof y?h:t;return qt(ee,this,R)}return y}function Pu(t){return function(i,o,h){var y=st(i);if(!Wt(i)){var S=Le(o,3);i=Et(i),o=function(z){return S(y[z],z,y)}}var R=t(i,o,h);return R>-1?y[S?i[R]:R]:r}}function Wu(t){return Pn(function(i){var o=i.length,h=o,y=ln.prototype.thru;for(t&&i.reverse();h--;){var S=i[h];if(typeof S!="function")throw new an(u);if(y&&!R&&Zo(S)=="wrapper")var R=new ln([],!0)}for(h=R?h:o;++h<o;){S=i[h];var z=Zo(S),P=z=="wrapper"?Pa(S):r;P&&Va(P[0])&&P[1]==(L|M|C|F)&&!P[4].length&&P[9]==1?R=R[Zo(P[0])].apply(R,P[3]):R=S.length==1&&Va(S)?R[z]():R.thru(S)}return function(){var J=arguments,ee=J[0];if(R&&J.length==1&&He(ee))return R.plant(ee).value();for(var se=0,ve=o?i[se].apply(this,J):ee;++se<o;)ve=i[se].call(this,ve);return ve}})}function Wo(t,i,o,h,y,S,R,z,P,J){var ee=i&L,se=i&k,ve=i&A,Ie=i&(M|E),De=i&Y,Ne=ve?r:Ai(t);function Pe(){for(var Ge=arguments.length,Ye=Z(Ge),Qt=Ge;Qt--;)Ye[Qt]=arguments[Qt];if(Ie)var It=Yr(Pe),Jt=Cp(Ye,It);if(h&&(Ye=Ou(Ye,h,y,Ie)),S&&(Ye=zu(Ye,S,R,Ie)),Ge-=Jt,Ie&&Ge<J){var mt=nr(Ye,It);return Vu(t,i,Wo,Pe.placeholder,o,Ye,mt,z,P,J-Ge)}var xn=se?o:this,Vn=ve?xn[t]:t;return Ge=Ye.length,z?Ye=Mm(Ye,z):De&&Ge>1&&Ye.reverse(),ee&&P<Ge&&(Ye.length=P),this&&this!==$t&&this instanceof Pe&&(Vn=Ne||Ai(Vn)),Vn.apply(xn,Ye)}return Pe}function Hu(t,i){return function(o,h){return Wg(o,t,i(h),{})}}function Ho(t,i){return function(o,h){var y;if(o===r&&h===r)return i;if(o!==r&&(y=o),h!==r){if(y===r)return h;typeof o=="string"||typeof h=="string"?(o=Yt(o),h=Yt(h)):(o=$u(o),h=$u(h)),y=t(o,h)}return y}}function za(t){return Pn(function(i){return i=dt(i,Kt(Le())),Ue(function(o){var h=this;return t(i,function(y){return qt(y,h,o)})})})}function Bo(t,i){i=i===r?" ":Yt(i);var o=i.length;if(o<2)return o?Aa(i,t):i;var h=Aa(i,Ao(t/Br(i)));return Hr(i)?ar(mn(h),0,t).join(""):h.slice(0,t)}function hm(t,i,o,h){var y=i&k,S=Ai(t);function R(){for(var z=-1,P=arguments.length,J=-1,ee=h.length,se=Z(ee+P),ve=this&&this!==$t&&this instanceof R?S:t;++J<ee;)se[J]=h[J];for(;P--;)se[J++]=arguments[++z];return qt(ve,y?o:this,se)}return R}function Bu(t){return function(i,o,h){return h&&typeof h!="number"&&Mt(i,o,h)&&(o=h=r),i=Bn(i),o===r?(o=i,i=0):o=Bn(o),h=h===r?i<o?1:-1:Bn(h),Qg(i,o,h,t)}}function Vo(t){return function(i,o){return typeof i=="string"&&typeof o=="string"||(i=fn(i),o=fn(o)),t(i,o)}}function Vu(t,i,o,h,y,S,R,z,P,J){var ee=i&M,se=ee?R:r,ve=ee?r:R,Ie=ee?S:r,De=ee?r:S;i|=ee?C:T,i&=~(ee?T:C),i&$||(i&=-4);var Ne=[t,i,y,Ie,se,De,ve,z,P,J],Pe=o.apply(r,Ne);return Va(t)&&td(Pe,Ne),Pe.placeholder=h,nd(Pe,t,i)}function Fa(t){var i=_t[t];return function(o,h){if(o=fn(o),h=h==null?0:jt(Ze(h),292),h&&nu(o)){var y=(tt(o)+"e").split("e"),S=i(y[0]+"e"+(+y[1]+h));return y=(tt(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-h))}return i(o)}}var pm=Nr&&1/bo(new Nr([,-0]))[1]==ne?function(t){return new Nr(t)}:il;function Zu(t){return function(i){var o=Tt(i);return o==G?fa(i):o==Ae?Rp(i):Sp(i,t(i))}}function Dn(t,i,o,h,y,S,R,z){var P=i&A;if(!P&&typeof t!="function")throw new an(u);var J=h?h.length:0;if(J||(i&=-97,h=y=r),R=R===r?R:St(Ze(R),0),z=z===r?z:Ze(z),J-=y?y.length:0,i&T){var ee=h,se=y;h=y=r}var ve=P?r:Pa(t),Ie=[t,i,o,h,y,ee,se,S,R,z];if(ve&&jm(Ie,ve),t=Ie[0],i=Ie[1],o=Ie[2],h=Ie[3],y=Ie[4],z=Ie[9]=Ie[9]===r?P?0:t.length:St(Ie[9]-J,0),!z&&i&(M|E)&&(i&=-25),!i||i==k)var De=dm(t,i,o);else i==M||i==E?De=fm(t,i,z):(i==C||i==(k|C))&&!y.length?De=hm(t,i,o,h):De=Wo.apply(r,Ie);var Ne=ve?Cu:td;return nd(Ne(De,Ie),t,i)}function Nu(t,i,o,h){return t===r||bn(t,Zr[o])&&!rt.call(h,o)?i:t}function Uu(t,i,o,h,y,S){return ft(t)&&ft(i)&&(S.set(i,t),Fo(t,i,r,Uu,S),S.delete(i)),t}function gm(t){return Ri(t)?r:t}function Gu(t,i,o,h,y,S){var R=o&_,z=t.length,P=i.length;if(z!=P&&!(R&&P>z))return!1;var J=S.get(t),ee=S.get(i);if(J&&ee)return J==i&&ee==t;var se=-1,ve=!0,Ie=o&j?new _r:r;for(S.set(t,i),S.set(i,t);++se<z;){var De=t[se],Ne=i[se];if(h)var Pe=R?h(Ne,De,se,i,t,S):h(De,Ne,se,t,i,S);if(Pe!==r){if(Pe)continue;ve=!1;break}if(Ie){if(!sa(i,function(Ge,Ye){if(!yi(Ie,Ye)&&(De===Ge||y(De,Ge,o,h,S)))return Ie.push(Ye)})){ve=!1;break}}else if(!(De===Ne||y(De,Ne,o,h,S))){ve=!1;break}}return S.delete(t),S.delete(i),ve}function mm(t,i,o,h,y,S,R){switch(o){case pt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case Je:return!(t.byteLength!=i.byteLength||!S(new Co(t),new Co(i)));case ie:case xe:case ce:return bn(+t,+i);case te:return t.name==i.name&&t.message==i.message;case me:case Fe:return t==i+"";case G:var z=fa;case Ae:var P=h&_;if(z||(z=bo),t.size!=i.size&&!P)return!1;var J=R.get(t);if(J)return J==i;h|=j,R.set(t,i);var ee=Gu(z(t),z(i),h,y,S,R);return R.delete(t),ee;case le:if(_i)return _i.call(t)==_i.call(i)}return!1}function ym(t,i,o,h,y,S){var R=o&_,z=La(t),P=z.length,J=La(i),ee=J.length;if(P!=ee&&!R)return!1;for(var se=P;se--;){var ve=z[se];if(!(R?ve in i:rt.call(i,ve)))return!1}var Ie=S.get(t),De=S.get(i);if(Ie&&De)return Ie==i&&De==t;var Ne=!0;S.set(t,i),S.set(i,t);for(var Pe=R;++se<P;){ve=z[se];var Ge=t[ve],Ye=i[ve];if(h)var Qt=R?h(Ye,Ge,ve,i,t,S):h(Ge,Ye,ve,t,i,S);if(!(Qt===r?Ge===Ye||y(Ge,Ye,o,h,S):Qt)){Ne=!1;break}Pe||(Pe=ve=="constructor")}if(Ne&&!Pe){var It=t.constructor,Jt=i.constructor;It!=Jt&&"constructor"in t&&"constructor"in i&&!(typeof It=="function"&&It instanceof It&&typeof Jt=="function"&&Jt instanceof Jt)&&(Ne=!1)}return S.delete(t),S.delete(i),Ne}function Pn(t){return Na(Ju(t,r,ld),t+"")}function La(t){return hu(t,Et,Ha)}function Da(t){return hu(t,Ht,qu)}var Pa=To?function(t){return To.get(t)}:il;function Zo(t){for(var i=t.name+"",o=Ur[i],h=rt.call(Ur,i)?o.length:0;h--;){var y=o[h],S=y.func;if(S==null||S==t)return y.name}return i}function Yr(t){var i=rt.call(w,"placeholder")?w:t;return i.placeholder}function Le(){var t=w.iteratee||nl;return t=t===nl?mu:t,arguments.length?t(arguments[0],arguments[1]):t}function No(t,i){var o=t.__data__;return Em(i)?o[typeof i=="string"?"string":"hash"]:o.map}function Wa(t){for(var i=Et(t),o=i.length;o--;){var h=i[o],y=t[h];i[o]=[h,y,Xu(y)]}return i}function Er(t,i){var o=Ap(t,i);return gu(o)?o:r}function bm(t){var i=rt.call(t,vr),o=t[vr];try{t[vr]=r;var h=!0}catch{}var y=_o.call(t);return h&&(i?t[vr]=o:delete t[vr]),y}var Ha=pa?function(t){return t==null?[]:(t=st(t),er(pa(t),function(i){return eu.call(t,i)}))}:ol,qu=pa?function(t){for(var i=[];t;)tr(i,Ha(t)),t=Eo(t);return i}:ol,Tt=Rt;(ga&&Tt(new ga(new ArrayBuffer(1)))!=pt||xi&&Tt(new xi)!=G||ma&&Tt(ma.resolve())!=Be||Nr&&Tt(new Nr)!=Ae||vi&&Tt(new vi)!=Me)&&(Tt=function(t){var i=Rt(t),o=i==ze?t.constructor:r,h=o?$r(o):"";if(h)switch(h){case eg:return pt;case tg:return G;case ng:return Be;case rg:return Ae;case ig:return Me}return i});function xm(t,i,o){for(var h=-1,y=o.length;++h<y;){var S=o[h],R=S.size;switch(S.type){case"drop":t+=R;break;case"dropRight":i-=R;break;case"take":i=jt(i,t+R);break;case"takeRight":t=St(t,i-R);break}}return{start:t,end:i}}function vm(t){var i=t.match(Vs);return i?i[1].split(Zs):[]}function Ku(t,i,o){i=sr(i,t);for(var h=-1,y=i.length,S=!1;++h<y;){var R=An(i[h]);if(!(S=t!=null&&o(t,R)))break;t=t[R]}return S||++h!=y?S:(y=t==null?0:t.length,!!y&&Qo(y)&&Wn(R,y)&&(He(t)||kr(t)))}function wm(t){var i=t.length,o=new t.constructor(i);return i&&typeof t[0]=="string"&&rt.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function Yu(t){return typeof t.constructor=="function"&&!ji(t)?Gr(Eo(t)):{}}function _m(t,i,o){var h=t.constructor;switch(i){case Je:return Oa(t);case ie:case xe:return new h(+t);case pt:return om(t,o);case wt:case Sn:case Gt:case Ft:case nt:case nn:case Qn:case pr:case Jn:return Mu(t,o);case G:return new h;case ce:case Fe:return new h(t);case me:return sm(t);case Ae:return new h;case le:return am(t)}}function Sm(t,i){var o=i.length;if(!o)return t;var h=o-1;return i[h]=(o>1?"& ":"")+i[h],i=i.join(o>2?", ":" "),t.replace(oo,`{
|
|
9
|
+
/* [wrapped with `+i+`] */
|
|
10
|
+
`)}function Cm(t){return He(t)||kr(t)||!!(tu&&t&&t[tu])}function Wn(t,i){var o=typeof t;return i=i??oe,!!i&&(o=="number"||o!="symbol"&&ao.test(t))&&t>-1&&t%1==0&&t<i}function Mt(t,i,o){if(!ft(o))return!1;var h=typeof i;return(h=="number"?Wt(o)&&Wn(i,o.length):h=="string"&&i in o)?bn(o[i],t):!1}function Ba(t,i){if(He(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Xt(t)?!0:pi.test(t)||!Bs.test(t)||i!=null&&t in st(i)}function Em(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Va(t){var i=Zo(t),o=w[i];if(typeof o!="function"||!(i in Ke.prototype))return!1;if(t===o)return!0;var h=Pa(o);return!!h&&t===h[0]}function $m(t){return!!Xc&&Xc in t}var km=vo?Hn:sl;function ji(t){var i=t&&t.constructor,o=typeof i=="function"&&i.prototype||Zr;return t===o}function Xu(t){return t===t&&!ft(t)}function Qu(t,i){return function(o){return o==null?!1:o[t]===i&&(i!==r||t in st(o))}}function Am(t){var i=Yo(t,function(h){return o.size===g&&o.clear(),h}),o=i.cache;return i}function jm(t,i){var o=t[1],h=i[1],y=o|h,S=y<(k|A|L),R=h==L&&o==M||h==L&&o==F&&t[7].length<=i[8]||h==(L|F)&&i[7].length<=i[8]&&o==M;if(!(S||R))return t;h&k&&(t[2]=i[2],y|=o&k?0:$);var z=i[3];if(z){var P=t[3];t[3]=P?Ou(P,z,i[4]):z,t[4]=P?nr(t[3],b):i[4]}return z=i[5],z&&(P=t[5],t[5]=P?zu(P,z,i[6]):z,t[6]=P?nr(t[5],b):i[6]),z=i[7],z&&(t[7]=z),h&L&&(t[8]=t[8]==null?i[8]:jt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=y,t}function Tm(t){var i=[];if(t!=null)for(var o in st(t))i.push(o);return i}function Rm(t){return _o.call(t)}function Ju(t,i,o){return i=St(i===r?t.length-1:i,0),function(){for(var h=arguments,y=-1,S=St(h.length-i,0),R=Z(S);++y<S;)R[y]=h[i+y];y=-1;for(var z=Z(i+1);++y<i;)z[y]=h[y];return z[i]=o(R),qt(t,this,z)}}function ed(t,i){return i.length<2?t:Cr(t,un(i,0,-1))}function Mm(t,i){for(var o=t.length,h=jt(i.length,o),y=Pt(t);h--;){var S=i[h];t[h]=Wn(S,o)?y[S]:r}return t}function Za(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var td=rd(Cu),Ti=Gp||function(t,i){return $t.setTimeout(t,i)},Na=rd(tm);function nd(t,i,o){var h=i+"";return Na(t,Sm(h,Im(vm(h),o)))}function rd(t){var i=0,o=0;return function(){var h=Xp(),y=W-(h-o);if(o=h,y>0){if(++i>=O)return arguments[0]}else i=0;return t.apply(r,arguments)}}function Uo(t,i){var o=-1,h=t.length,y=h-1;for(i=i===r?h:i;++o<i;){var S=ka(o,y),R=t[S];t[S]=t[o],t[o]=R}return t.length=i,t}var id=Am(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(gr,function(o,h,y,S){i.push(y?S.replace(Gs,"$1"):h||o)}),i});function An(t){if(typeof t=="string"||Xt(t))return t;var i=t+"";return i=="0"&&1/t==-1/0?"-0":i}function $r(t){if(t!=null){try{return wo.call(t)}catch{}try{return t+""}catch{}}return""}function Im(t,i){return sn(Ce,function(o){var h="_."+o[0];i&o[1]&&!mo(t,h)&&t.push(h)}),t.sort()}function od(t){if(t instanceof Ke)return t.clone();var i=new ln(t.__wrapped__,t.__chain__);return i.__actions__=Pt(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function Om(t,i,o){(o?Mt(t,i,o):i===r)?i=1:i=St(Ze(i),0);var h=t==null?0:t.length;if(!h||i<1)return[];for(var y=0,S=0,R=Z(Ao(h/i));y<h;)R[S++]=un(t,y,y+=i);return R}function zm(t){for(var i=-1,o=t==null?0:t.length,h=0,y=[];++i<o;){var S=t[i];S&&(y[h++]=S)}return y}function Fm(){var t=arguments.length;if(!t)return[];for(var i=Z(t-1),o=arguments[0],h=t;h--;)i[h-1]=arguments[h];return tr(He(o)?Pt(o):[o],kt(i,1))}var Lm=Ue(function(t,i){return gt(t)?Ci(t,kt(i,1,gt,!0)):[]}),Dm=Ue(function(t,i){var o=dn(i);return gt(o)&&(o=r),gt(t)?Ci(t,kt(i,1,gt,!0),Le(o,2)):[]}),Pm=Ue(function(t,i){var o=dn(i);return gt(o)&&(o=r),gt(t)?Ci(t,kt(i,1,gt,!0),r,o):[]});function Wm(t,i,o){var h=t==null?0:t.length;return h?(i=o||i===r?1:Ze(i),un(t,i<0?0:i,h)):[]}function Hm(t,i,o){var h=t==null?0:t.length;return h?(i=o||i===r?1:Ze(i),i=h-i,un(t,0,i<0?0:i)):[]}function Bm(t,i){return t&&t.length?Do(t,Le(i,3),!0,!0):[]}function Vm(t,i){return t&&t.length?Do(t,Le(i,3),!0):[]}function Zm(t,i,o,h){var y=t==null?0:t.length;return y?(o&&typeof o!="number"&&Mt(t,i,o)&&(o=0,h=y),Fg(t,i,o,h)):[]}function sd(t,i,o){var h=t==null?0:t.length;if(!h)return-1;var y=o==null?0:Ze(o);return y<0&&(y=St(h+y,0)),yo(t,Le(i,3),y)}function ad(t,i,o){var h=t==null?0:t.length;if(!h)return-1;var y=h-1;return o!==r&&(y=Ze(o),y=o<0?St(h+y,0):jt(y,h-1)),yo(t,Le(i,3),y,!0)}function ld(t){var i=t==null?0:t.length;return i?kt(t,1):[]}function Nm(t){var i=t==null?0:t.length;return i?kt(t,ne):[]}function Um(t,i){var o=t==null?0:t.length;return o?(i=i===r?1:Ze(i),kt(t,i)):[]}function Gm(t){for(var i=-1,o=t==null?0:t.length,h={};++i<o;){var y=t[i];h[y[0]]=y[1]}return h}function cd(t){return t&&t.length?t[0]:r}function qm(t,i,o){var h=t==null?0:t.length;if(!h)return-1;var y=o==null?0:Ze(o);return y<0&&(y=St(h+y,0)),Wr(t,i,y)}function Km(t){var i=t==null?0:t.length;return i?un(t,0,-1):[]}var Ym=Ue(function(t){var i=dt(t,Ma);return i.length&&i[0]===t[0]?_a(i):[]}),Xm=Ue(function(t){var i=dn(t),o=dt(t,Ma);return i===dn(o)?i=r:o.pop(),o.length&&o[0]===t[0]?_a(o,Le(i,2)):[]}),Qm=Ue(function(t){var i=dn(t),o=dt(t,Ma);return i=typeof i=="function"?i:r,i&&o.pop(),o.length&&o[0]===t[0]?_a(o,r,i):[]});function Jm(t,i){return t==null?"":Kp.call(t,i)}function dn(t){var i=t==null?0:t.length;return i?t[i-1]:r}function e2(t,i,o){var h=t==null?0:t.length;if(!h)return-1;var y=h;return o!==r&&(y=Ze(o),y=y<0?St(h+y,0):jt(y,h-1)),i===i?Ip(t,i,y):yo(t,Vc,y,!0)}function t2(t,i){return t&&t.length?vu(t,Ze(i)):r}var n2=Ue(ud);function ud(t,i){return t&&t.length&&i&&i.length?$a(t,i):t}function r2(t,i,o){return t&&t.length&&i&&i.length?$a(t,i,Le(o,2)):t}function i2(t,i,o){return t&&t.length&&i&&i.length?$a(t,i,r,o):t}var o2=Pn(function(t,i){var o=t==null?0:t.length,h=ba(t,i);return Su(t,dt(i,function(y){return Wn(y,o)?+y:y}).sort(Iu)),h});function s2(t,i){var o=[];if(!(t&&t.length))return o;var h=-1,y=[],S=t.length;for(i=Le(i,3);++h<S;){var R=t[h];i(R,h,t)&&(o.push(R),y.push(h))}return Su(t,y),o}function Ua(t){return t==null?t:Jp.call(t)}function a2(t,i,o){var h=t==null?0:t.length;return h?(o&&typeof o!="number"&&Mt(t,i,o)?(i=0,o=h):(i=i==null?0:Ze(i),o=o===r?h:Ze(o)),un(t,i,o)):[]}function l2(t,i){return Lo(t,i)}function c2(t,i,o){return ja(t,i,Le(o,2))}function u2(t,i){var o=t==null?0:t.length;if(o){var h=Lo(t,i);if(h<o&&bn(t[h],i))return h}return-1}function d2(t,i){return Lo(t,i,!0)}function f2(t,i,o){return ja(t,i,Le(o,2),!0)}function h2(t,i){var o=t==null?0:t.length;if(o){var h=Lo(t,i,!0)-1;if(bn(t[h],i))return h}return-1}function p2(t){return t&&t.length?Eu(t):[]}function g2(t,i){return t&&t.length?Eu(t,Le(i,2)):[]}function m2(t){var i=t==null?0:t.length;return i?un(t,1,i):[]}function y2(t,i,o){return t&&t.length?(i=o||i===r?1:Ze(i),un(t,0,i<0?0:i)):[]}function b2(t,i,o){var h=t==null?0:t.length;return h?(i=o||i===r?1:Ze(i),i=h-i,un(t,i<0?0:i,h)):[]}function x2(t,i){return t&&t.length?Do(t,Le(i,3),!1,!0):[]}function v2(t,i){return t&&t.length?Do(t,Le(i,3)):[]}var w2=Ue(function(t){return or(kt(t,1,gt,!0))}),_2=Ue(function(t){var i=dn(t);return gt(i)&&(i=r),or(kt(t,1,gt,!0),Le(i,2))}),S2=Ue(function(t){var i=dn(t);return i=typeof i=="function"?i:r,or(kt(t,1,gt,!0),r,i)});function C2(t){return t&&t.length?or(t):[]}function E2(t,i){return t&&t.length?or(t,Le(i,2)):[]}function $2(t,i){return i=typeof i=="function"?i:r,t&&t.length?or(t,r,i):[]}function Ga(t){if(!(t&&t.length))return[];var i=0;return t=er(t,function(o){if(gt(o))return i=St(o.length,i),!0}),ua(i,function(o){return dt(t,aa(o))})}function dd(t,i){if(!(t&&t.length))return[];var o=Ga(t);return i==null?o:dt(o,function(h){return qt(i,r,h)})}var k2=Ue(function(t,i){return gt(t)?Ci(t,i):[]}),A2=Ue(function(t){return Ra(er(t,gt))}),j2=Ue(function(t){var i=dn(t);return gt(i)&&(i=r),Ra(er(t,gt),Le(i,2))}),T2=Ue(function(t){var i=dn(t);return i=typeof i=="function"?i:r,Ra(er(t,gt),r,i)}),R2=Ue(Ga);function M2(t,i){return ju(t||[],i||[],Si)}function I2(t,i){return ju(t||[],i||[],ki)}var O2=Ue(function(t){var i=t.length,o=i>1?t[i-1]:r;return o=typeof o=="function"?(t.pop(),o):r,dd(t,o)});function fd(t){var i=w(t);return i.__chain__=!0,i}function z2(t,i){return i(t),t}function Go(t,i){return i(t)}var F2=Pn(function(t){var i=t.length,o=i?t[0]:0,h=this.__wrapped__,y=function(S){return ba(S,t)};return i>1||this.__actions__.length||!(h instanceof Ke)||!Wn(o)?this.thru(y):(h=h.slice(o,+o+(i?1:0)),h.__actions__.push({func:Go,args:[y],thisArg:r}),new ln(h,this.__chain__).thru(function(S){return i&&!S.length&&S.push(r),S}))});function L2(){return fd(this)}function D2(){return new ln(this.value(),this.__chain__)}function P2(){this.__values__===r&&(this.__values__=$d(this.value()));var t=this.__index__>=this.__values__.length,i=t?r:this.__values__[this.__index__++];return{done:t,value:i}}function W2(){return this}function H2(t){for(var i,o=this;o instanceof Mo;){var h=od(o);h.__index__=0,h.__values__=r,i?y.__wrapped__=h:i=h;var y=h;o=o.__wrapped__}return y.__wrapped__=t,i}function B2(){var t=this.__wrapped__;if(t instanceof Ke){var i=t;return this.__actions__.length&&(i=new Ke(this)),i=i.reverse(),i.__actions__.push({func:Go,args:[Ua],thisArg:r}),new ln(i,this.__chain__)}return this.thru(Ua)}function V2(){return Au(this.__wrapped__,this.__actions__)}var Z2=Po(function(t,i,o){rt.call(t,o)?++t[o]:Ln(t,o,1)});function N2(t,i,o){var h=He(t)?Hc:zg;return o&&Mt(t,i,o)&&(i=r),h(t,Le(i,3))}function U2(t,i){var o=He(t)?er:du;return o(t,Le(i,3))}var G2=Pu(sd),q2=Pu(ad);function K2(t,i){return kt(qo(t,i),1)}function Y2(t,i){return kt(qo(t,i),ne)}function X2(t,i,o){return o=o===r?1:Ze(o),kt(qo(t,i),o)}function hd(t,i){var o=He(t)?sn:ir;return o(t,Le(i,3))}function pd(t,i){var o=He(t)?mp:uu;return o(t,Le(i,3))}var Q2=Po(function(t,i,o){rt.call(t,o)?t[o].push(i):Ln(t,o,[i])});function J2(t,i,o,h){t=Wt(t)?t:Qr(t),o=o&&!h?Ze(o):0;var y=t.length;return o<0&&(o=St(y+o,0)),Jo(t)?o<=y&&t.indexOf(i,o)>-1:!!y&&Wr(t,i,o)>-1}var e8=Ue(function(t,i,o){var h=-1,y=typeof i=="function",S=Wt(t)?Z(t.length):[];return ir(t,function(R){S[++h]=y?qt(i,R,o):Ei(R,i,o)}),S}),t8=Po(function(t,i,o){Ln(t,o,i)});function qo(t,i){var o=He(t)?dt:yu;return o(t,Le(i,3))}function n8(t,i,o,h){return t==null?[]:(He(i)||(i=i==null?[]:[i]),o=h?r:o,He(o)||(o=o==null?[]:[o]),wu(t,i,o))}var r8=Po(function(t,i,o){t[o?0:1].push(i)},function(){return[[],[]]});function i8(t,i,o){var h=He(t)?oa:Nc,y=arguments.length<3;return h(t,Le(i,4),o,y,ir)}function o8(t,i,o){var h=He(t)?yp:Nc,y=arguments.length<3;return h(t,Le(i,4),o,y,uu)}function s8(t,i){var o=He(t)?er:du;return o(t,Xo(Le(i,3)))}function a8(t){var i=He(t)?su:Jg;return i(t)}function l8(t,i,o){(o?Mt(t,i,o):i===r)?i=1:i=Ze(i);var h=He(t)?Tg:em;return h(t,i)}function c8(t){var i=He(t)?Rg:nm;return i(t)}function u8(t){if(t==null)return 0;if(Wt(t))return Jo(t)?Br(t):t.length;var i=Tt(t);return i==G||i==Ae?t.size:Ca(t).length}function d8(t,i,o){var h=He(t)?sa:rm;return o&&Mt(t,i,o)&&(i=r),h(t,Le(i,3))}var f8=Ue(function(t,i){if(t==null)return[];var o=i.length;return o>1&&Mt(t,i[0],i[1])?i=[]:o>2&&Mt(i[0],i[1],i[2])&&(i=[i[0]]),wu(t,kt(i,1),[])}),Ko=Up||function(){return $t.Date.now()};function h8(t,i){if(typeof i!="function")throw new an(u);return t=Ze(t),function(){if(--t<1)return i.apply(this,arguments)}}function gd(t,i,o){return i=o?r:i,i=t&&i==null?t.length:i,Dn(t,L,r,r,r,r,i)}function md(t,i){var o;if(typeof i!="function")throw new an(u);return t=Ze(t),function(){return--t>0&&(o=i.apply(this,arguments)),t<=1&&(i=r),o}}var qa=Ue(function(t,i,o){var h=k;if(o.length){var y=nr(o,Yr(qa));h|=C}return Dn(t,h,i,o,y)}),yd=Ue(function(t,i,o){var h=k|A;if(o.length){var y=nr(o,Yr(yd));h|=C}return Dn(i,h,t,o,y)});function bd(t,i,o){i=o?r:i;var h=Dn(t,M,r,r,r,r,r,i);return h.placeholder=bd.placeholder,h}function xd(t,i,o){i=o?r:i;var h=Dn(t,E,r,r,r,r,r,i);return h.placeholder=xd.placeholder,h}function vd(t,i,o){var h,y,S,R,z,P,J=0,ee=!1,se=!1,ve=!0;if(typeof t!="function")throw new an(u);i=fn(i)||0,ft(o)&&(ee=!!o.leading,se="maxWait"in o,S=se?St(fn(o.maxWait)||0,i):S,ve="trailing"in o?!!o.trailing:ve);function Ie(mt){var xn=h,Vn=y;return h=y=r,J=mt,R=t.apply(Vn,xn),R}function De(mt){return J=mt,z=Ti(Ge,i),ee?Ie(mt):R}function Ne(mt){var xn=mt-P,Vn=mt-J,Pd=i-xn;return se?jt(Pd,S-Vn):Pd}function Pe(mt){var xn=mt-P,Vn=mt-J;return P===r||xn>=i||xn<0||se&&Vn>=S}function Ge(){var mt=Ko();if(Pe(mt))return Ye(mt);z=Ti(Ge,Ne(mt))}function Ye(mt){return z=r,ve&&h?Ie(mt):(h=y=r,R)}function Qt(){z!==r&&Tu(z),J=0,h=P=y=z=r}function It(){return z===r?R:Ye(Ko())}function Jt(){var mt=Ko(),xn=Pe(mt);if(h=arguments,y=this,P=mt,xn){if(z===r)return De(P);if(se)return Tu(z),z=Ti(Ge,i),Ie(P)}return z===r&&(z=Ti(Ge,i)),R}return Jt.cancel=Qt,Jt.flush=It,Jt}var p8=Ue(function(t,i){return cu(t,1,i)}),g8=Ue(function(t,i,o){return cu(t,fn(i)||0,o)});function m8(t){return Dn(t,Y)}function Yo(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new an(u);var o=function(){var h=arguments,y=i?i.apply(this,h):h[0],S=o.cache;if(S.has(y))return S.get(y);var R=t.apply(this,h);return o.cache=S.set(y,R)||S,R};return o.cache=new(Yo.Cache||Fn),o}Yo.Cache=Fn;function Xo(t){if(typeof t!="function")throw new an(u);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function y8(t){return md(2,t)}var b8=im(function(t,i){i=i.length==1&&He(i[0])?dt(i[0],Kt(Le())):dt(kt(i,1),Kt(Le()));var o=i.length;return Ue(function(h){for(var y=-1,S=jt(h.length,o);++y<S;)h[y]=i[y].call(this,h[y]);return qt(t,this,h)})}),Ka=Ue(function(t,i){var o=nr(i,Yr(Ka));return Dn(t,C,r,i,o)}),wd=Ue(function(t,i){var o=nr(i,Yr(wd));return Dn(t,T,r,i,o)}),x8=Pn(function(t,i){return Dn(t,F,r,r,r,i)});function v8(t,i){if(typeof t!="function")throw new an(u);return i=i===r?i:Ze(i),Ue(t,i)}function w8(t,i){if(typeof t!="function")throw new an(u);return i=i==null?0:St(Ze(i),0),Ue(function(o){var h=o[i],y=ar(o,0,i);return h&&tr(y,h),qt(t,this,y)})}function _8(t,i,o){var h=!0,y=!0;if(typeof t!="function")throw new an(u);return ft(o)&&(h="leading"in o?!!o.leading:h,y="trailing"in o?!!o.trailing:y),vd(t,i,{leading:h,maxWait:i,trailing:y})}function S8(t){return gd(t,1)}function C8(t,i){return Ka(Ia(i),t)}function E8(){if(!arguments.length)return[];var t=arguments[0];return He(t)?t:[t]}function $8(t){return cn(t,v)}function k8(t,i){return i=typeof i=="function"?i:r,cn(t,v,i)}function A8(t){return cn(t,m|v)}function j8(t,i){return i=typeof i=="function"?i:r,cn(t,m|v,i)}function T8(t,i){return i==null||lu(t,i,Et(i))}function bn(t,i){return t===i||t!==t&&i!==i}var R8=Vo(wa),M8=Vo(function(t,i){return t>=i}),kr=pu(function(){return arguments}())?pu:function(t){return ht(t)&&rt.call(t,"callee")&&!eu.call(t,"callee")},He=Z.isArray,I8=zc?Kt(zc):Hg;function Wt(t){return t!=null&&Qo(t.length)&&!Hn(t)}function gt(t){return ht(t)&&Wt(t)}function O8(t){return t===!0||t===!1||ht(t)&&Rt(t)==ie}var lr=qp||sl,z8=Fc?Kt(Fc):Bg;function F8(t){return ht(t)&&t.nodeType===1&&!Ri(t)}function L8(t){if(t==null)return!0;if(Wt(t)&&(He(t)||typeof t=="string"||typeof t.splice=="function"||lr(t)||Xr(t)||kr(t)))return!t.length;var i=Tt(t);if(i==G||i==Ae)return!t.size;if(ji(t))return!Ca(t).length;for(var o in t)if(rt.call(t,o))return!1;return!0}function D8(t,i){return $i(t,i)}function P8(t,i,o){o=typeof o=="function"?o:r;var h=o?o(t,i):r;return h===r?$i(t,i,r,o):!!h}function Ya(t){if(!ht(t))return!1;var i=Rt(t);return i==te||i==we||typeof t.message=="string"&&typeof t.name=="string"&&!Ri(t)}function W8(t){return typeof t=="number"&&nu(t)}function Hn(t){if(!ft(t))return!1;var i=Rt(t);return i==Q||i==ye||i==be||i==Qe}function _d(t){return typeof t=="number"&&t==Ze(t)}function Qo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=oe}function ft(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function ht(t){return t!=null&&typeof t=="object"}var Sd=Lc?Kt(Lc):Zg;function H8(t,i){return t===i||Sa(t,i,Wa(i))}function B8(t,i,o){return o=typeof o=="function"?o:r,Sa(t,i,Wa(i),o)}function V8(t){return Cd(t)&&t!=+t}function Z8(t){if(km(t))throw new We(c);return gu(t)}function N8(t){return t===null}function U8(t){return t==null}function Cd(t){return typeof t=="number"||ht(t)&&Rt(t)==ce}function Ri(t){if(!ht(t)||Rt(t)!=ze)return!1;var i=Eo(t);if(i===null)return!0;var o=rt.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&&wo.call(o)==Bp}var Xa=Dc?Kt(Dc):Ng;function G8(t){return _d(t)&&t>=-9007199254740991&&t<=oe}var Ed=Pc?Kt(Pc):Ug;function Jo(t){return typeof t=="string"||!He(t)&&ht(t)&&Rt(t)==Fe}function Xt(t){return typeof t=="symbol"||ht(t)&&Rt(t)==le}var Xr=Wc?Kt(Wc):Gg;function q8(t){return t===r}function K8(t){return ht(t)&&Tt(t)==Me}function Y8(t){return ht(t)&&Rt(t)==qe}var X8=Vo(Ea),Q8=Vo(function(t,i){return t<=i});function $d(t){if(!t)return[];if(Wt(t))return Jo(t)?mn(t):Pt(t);if(bi&&t[bi])return Tp(t[bi]());var i=Tt(t),o=i==G?fa:i==Ae?bo:Qr;return o(t)}function Bn(t){if(!t)return t===0?t:0;if(t=fn(t),t===ne||t===-1/0){var i=t<0?-1:1;return i*Se}return t===t?t:0}function Ze(t){var i=Bn(t),o=i%1;return i===i?o?i-o:i:0}function kd(t){return t?Sr(Ze(t),0,ke):0}function fn(t){if(typeof t=="number")return t;if(Xt(t))return Te;if(ft(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=ft(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Uc(t);var o=Ks.test(t);return o||so.test(t)?hp(t.slice(2),o?2:8):mi.test(t)?Te:+t}function Ad(t){return kn(t,Ht(t))}function J8(t){return t?Sr(Ze(t),-9007199254740991,oe):t===0?t:0}function tt(t){return t==null?"":Yt(t)}var ey=qr(function(t,i){if(ji(i)||Wt(i)){kn(i,Et(i),t);return}for(var o in i)rt.call(i,o)&&Si(t,o,i[o])}),jd=qr(function(t,i){kn(i,Ht(i),t)}),es=qr(function(t,i,o,h){kn(i,Ht(i),t,h)}),ty=qr(function(t,i,o,h){kn(i,Et(i),t,h)}),ny=Pn(ba);function ry(t,i){var o=Gr(t);return i==null?o:au(o,i)}var iy=Ue(function(t,i){t=st(t);var o=-1,h=i.length,y=h>2?i[2]:r;for(y&&Mt(i[0],i[1],y)&&(h=1);++o<h;)for(var S=i[o],R=Ht(S),z=-1,P=R.length;++z<P;){var J=R[z],ee=t[J];(ee===r||bn(ee,Zr[J])&&!rt.call(t,J))&&(t[J]=S[J])}return t}),oy=Ue(function(t){return t.push(r,Uu),qt(Td,r,t)});function sy(t,i){return Bc(t,Le(i,3),$n)}function ay(t,i){return Bc(t,Le(i,3),va)}function ly(t,i){return t==null?t:xa(t,Le(i,3),Ht)}function cy(t,i){return t==null?t:fu(t,Le(i,3),Ht)}function uy(t,i){return t&&$n(t,Le(i,3))}function dy(t,i){return t&&va(t,Le(i,3))}function fy(t){return t==null?[]:zo(t,Et(t))}function hy(t){return t==null?[]:zo(t,Ht(t))}function Qa(t,i,o){var h=t==null?r:Cr(t,i);return h===r?o:h}function py(t,i){return t!=null&&Ku(t,i,Lg)}function Ja(t,i){return t!=null&&Ku(t,i,Dg)}var gy=Hu(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=_o.call(i)),t[i]=o},tl(Bt)),my=Hu(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=_o.call(i)),rt.call(t,i)?t[i].push(o):t[i]=[o]},Le),yy=Ue(Ei);function Et(t){return Wt(t)?ou(t):Ca(t)}function Ht(t){return Wt(t)?ou(t,!0):qg(t)}function by(t,i){var o={};return i=Le(i,3),$n(t,function(h,y,S){Ln(o,i(h,y,S),h)}),o}function xy(t,i){var o={};return i=Le(i,3),$n(t,function(h,y,S){Ln(o,y,i(h,y,S))}),o}var vy=qr(function(t,i,o){Fo(t,i,o)}),Td=qr(function(t,i,o,h){Fo(t,i,o,h)}),wy=Pn(function(t,i){var o={};if(t==null)return o;var h=!1;i=dt(i,function(S){return S=sr(S,t),h||(h=S.length>1),S}),kn(t,Da(t),o),h&&(o=cn(o,m|x|v,gm));for(var y=i.length;y--;)Ta(o,i[y]);return o});function _y(t,i){return Rd(t,Xo(Le(i)))}var Sy=Pn(function(t,i){return t==null?{}:Yg(t,i)});function Rd(t,i){if(t==null)return{};var o=dt(Da(t),function(h){return[h]});return i=Le(i),_u(t,o,function(h,y){return i(h,y[0])})}function Cy(t,i,o){i=sr(i,t);var h=-1,y=i.length;for(y||(y=1,t=r);++h<y;){var S=t==null?r:t[An(i[h])];S===r&&(h=y,S=o),t=Hn(S)?S.call(t):S}return t}function Ey(t,i,o){return t==null?t:ki(t,i,o)}function $y(t,i,o,h){return h=typeof h=="function"?h:r,t==null?t:ki(t,i,o,h)}var Md=Zu(Et),Id=Zu(Ht);function ky(t,i,o){var h=He(t),y=h||lr(t)||Xr(t);if(i=Le(i,4),o==null){var S=t&&t.constructor;y?o=h?new S:[]:ft(t)?o=Hn(S)?Gr(Eo(t)):{}:o={}}return(y?sn:$n)(t,function(R,z,P){return i(o,R,z,P)}),o}function Ay(t,i){return t==null?!0:Ta(t,i)}function jy(t,i,o){return t==null?t:ku(t,i,Ia(o))}function Ty(t,i,o,h){return h=typeof h=="function"?h:r,t==null?t:ku(t,i,Ia(o),h)}function Qr(t){return t==null?[]:da(t,Et(t))}function Ry(t){return t==null?[]:da(t,Ht(t))}function My(t,i,o){return o===r&&(o=i,i=r),o!==r&&(o=fn(o),o=o===o?o:0),i!==r&&(i=fn(i),i=i===i?i:0),Sr(fn(t),i,o)}function Iy(t,i,o){return i=Bn(i),o===r?(o=i,i=0):o=Bn(o),t=fn(t),Pg(t,i,o)}function Oy(t,i,o){if(o&&typeof o!="boolean"&&Mt(t,i,o)&&(i=o=r),o===r&&(typeof i=="boolean"?(o=i,i=r):typeof t=="boolean"&&(o=t,t=r)),t===r&&i===r?(t=0,i=1):(t=Bn(t),i===r?(i=t,t=0):i=Bn(i)),t>i){var h=t;t=i,i=h}if(o||t%1||i%1){var y=ru();return jt(t+y*(i-t+fp("1e-"+((y+"").length-1))),i)}return ka(t,i)}var zy=Kr(function(t,i,o){return i=i.toLowerCase(),t+(o?Od(i):i)});function Od(t){return el(tt(t).toLowerCase())}function zd(t){return t=tt(t),t&&t.replace(lo,Ep).replace(np,"")}function Fy(t,i,o){t=tt(t),i=Yt(i);var h=t.length;o=o===r?h:Sr(Ze(o),0,h);var y=o;return o-=i.length,o>=0&&t.slice(o,y)==i}function Ly(t){return t=tt(t),t&&Hs.test(t)?t.replace(hi,$p):t}function Dy(t){return t=tt(t),t&&mr.test(t)?t.replace(Cn,"\\$&"):t}var Py=Kr(function(t,i,o){return t+(o?"-":"")+i.toLowerCase()}),Wy=Kr(function(t,i,o){return t+(o?" ":"")+i.toLowerCase()}),Hy=Du("toLowerCase");function By(t,i,o){t=tt(t),i=Ze(i);var h=i?Br(t):0;if(!i||h>=i)return t;var y=(i-h)/2;return Bo(jo(y),o)+t+Bo(Ao(y),o)}function Vy(t,i,o){t=tt(t),i=Ze(i);var h=i?Br(t):0;return i&&h<i?t+Bo(i-h,o):t}function Zy(t,i,o){t=tt(t),i=Ze(i);var h=i?Br(t):0;return i&&h<i?Bo(i-h,o)+t:t}function Ny(t,i,o){return o||i==null?i=0:i&&(i=+i),Qp(tt(t).replace(En,""),i||0)}function Uy(t,i,o){return(o?Mt(t,i,o):i===r)?i=1:i=Ze(i),Aa(tt(t),i)}function Gy(){var t=arguments,i=tt(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var qy=Kr(function(t,i,o){return t+(o?"_":"")+i.toLowerCase()});function Ky(t,i,o){return o&&typeof o!="number"&&Mt(t,i,o)&&(i=o=r),o=o===r?ke:o>>>0,o?(t=tt(t),t&&(typeof i=="string"||i!=null&&!Xa(i))&&(i=Yt(i),!i&&Hr(t))?ar(mn(t),0,o):t.split(i,o)):[]}var Yy=Kr(function(t,i,o){return t+(o?" ":"")+el(i)});function Xy(t,i,o){return t=tt(t),o=o==null?0:Sr(Ze(o),0,t.length),i=Yt(i),t.slice(o,o+i.length)==i}function Qy(t,i,o){var h=w.templateSettings;o&&Mt(t,i,o)&&(i=r),t=tt(t),i=es({},i,h,Nu);var y=es({},i.imports,h.imports,Nu),S=Et(y),R=da(y,S),z,P,J=0,ee=i.interpolate||yr,se="__p += '",ve=ha((i.escape||yr).source+"|"+ee.source+"|"+(ee===gn?qs:yr).source+"|"+(i.evaluate||yr).source+"|$","g"),Ie="//# sourceURL="+(rt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ap+"]")+`
|
|
11
|
+
`;t.replace(ve,function(Pe,Ge,Ye,Qt,It,Jt){return Ye||(Ye=Qt),se+=t.slice(J,Jt).replace(co,kp),Ge&&(z=!0,se+=`' +
|
|
12
|
+
__e(`+Ge+`) +
|
|
13
|
+
'`),It&&(P=!0,se+=`';
|
|
14
14
|
`+It+`;
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),
|
|
18
|
-
`;var
|
|
19
|
-
`+
|
|
15
|
+
__p += '`),Ye&&(se+=`' +
|
|
16
|
+
((__t = (`+Ye+`)) == null ? '' : __t) +
|
|
17
|
+
'`),J=Jt+Pe.length,Pe}),se+=`';
|
|
18
|
+
`;var De=rt.call(i,"variable")&&i.variable;if(!De)se=`with (obj) {
|
|
19
|
+
`+se+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
22
|
-
`+(
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
21
|
+
`;else if(Us.test(De))throw new We(f);se=(P?se.replace(Dr,""):se).replace(Ps,"$1").replace(to,"$1;"),se="function("+(De||"obj")+`) {
|
|
22
|
+
`+(De?"":`obj || (obj = {});
|
|
23
|
+
`)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var ze=od(function(){return qe(b,me+"return "+Y).apply(i,S)});if(ze.source=Y,va(ze))throw ze;return ze}function ay(t){return Ke(t).toLowerCase()}function ly(t){return Ke(t).toUpperCase()}function cy(t,r,o){if(t=Ke(t),t&&(o||r===i))return pc(t);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=dn(r),b=gc(u,g),S=mc(u,g)+1;return Kn(u,b,S).join("")}function uy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.slice(0,bc(t)+1);if(!t||!(r=Nt(r)))return t;var u=dn(t),g=mc(u,dn(r))+1;return Kn(u,0,g).join("")}function dy(t,r,o){if(t=Ke(t),t&&(o||r===i))return t.replace(gt,"");if(!t||!(r=Nt(r)))return t;var u=dn(t),g=gc(u,dn(r));return Kn(u,g).join("")}function fy(t,r){var o=te,u=re;if(ct(r)){var g="separator"in r?r.separator:g;o="length"in r?Oe(r.length):o,u="omission"in r?Nt(r.omission):u}t=Ke(t);var b=t.length;if(Ar(t)){var S=dn(t);b=S.length}if(o>=b)return t;var A=o-Tr(u);if(A<1)return u;var O=S?Kn(S,0,A).join(""):t.slice(0,A);if(g===i)return O+u;if(S&&(A+=O.length-A),wa(g)){if(t.slice(A).search(g)){var N,U=O;for(g.global||(g=js(g.source,Ke(Ll.exec(g))+"g")),g.lastIndex=0;N=g.exec(U);)var Y=N.index;O=O.slice(0,Y===i?A:Y)}}else if(t.indexOf(Nt(g),A)!=A){var ce=O.lastIndexOf(g);ce>-1&&(O=O.slice(0,ce))}return O+u}function hy(t){return t=Ke(t),t&&yn.test(t)?t.replace(oi,Hh):t}var py=Lr(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),Sa=su("toUpperCase");function id(t,r,o){return t=Ke(t),r=o?i:r,r===i?jh(t)?Nh(t):Ah(t):t.match(r)||[]}var od=Le(function(t,r){try{return Zt(t,i,r)}catch(o){return va(o)?o:new Re(o)}}),gy=Tn(function(t,r){return Jt(r,function(o){o=wn(o),$n(t,o,ba(t[o],t))}),t});function my(t){var r=t==null?0:t.length,o=ve();return t=r?at(t,function(u){if(typeof u[1]!="function")throw new en(d);return[o(u[0]),u[1]]}):[],Le(function(u){for(var g=-1;++g<r;){var b=t[g];if(Zt(b[0],this,u))return Zt(b[1],this,u)}})}function yy(t){return Hp(nn(t,w))}function Ea(t){return function(){return t}}function by(t,r){return t==null||t!==t?r:t}var xy=lu(),vy=lu(!0);function Lt(t){return t}function ka(t){return Dc(typeof t=="function"?t:nn(t,w))}function wy(t){return Wc(nn(t,w))}function _y(t,r){return Bc(t,nn(r,w))}var Cy=Le(function(t,r){return function(o){return yi(o,t,r)}}),Sy=Le(function(t,r){return function(o){return yi(t,o,r)}});function $a(t,r,o){var u=xt(r),g=mo(r,u);o==null&&!(ct(r)&&(g.length||!u.length))&&(o=r,r=t,t=this,g=mo(r,xt(r)));var b=!(ct(o)&&"chain"in o)||!!o.chain,S=In(t);return Jt(g,function(A){var O=r[A];t[A]=O,S&&(t.prototype[A]=function(){var N=this.__chain__;if(b||N){var U=t(this.__wrapped__),Y=U.__actions__=Ft(this.__actions__);return Y.push({func:O,args:arguments,thisArg:t}),U.__chain__=N,U}return O.apply(t,Zn([this.value()],arguments))})}),t}function Ey(){return wt._===this&&(wt._=Xh),this}function Aa(){}function ky(t){return t=Oe(t),Le(function(r){return Hc(r,t)})}var $y=oa(at),Ay=oa(cc),Ty=oa(Rs);function sd(t){return fa(t)?Is(wn(t)):og(t)}function Ry(t){return function(r){return t==null?i:dr(t,r)}}var Iy=uu(),My=uu(!0);function Ta(){return[]}function Ra(){return!1}function Fy(){return{}}function Oy(){return""}function zy(){return!0}function Ly(t,r){if(t=Oe(t),t<1||t>ie)return[];var o=Se,u=St(t,Se);r=ve(r),t-=Se;for(var g=Os(u,r);++o<t;)r(o);return g}function jy(t){return Ie(t)?at(t,wn):Ut(t)?[t]:Ft(ku(Ke(t)))}function Dy(t){var r=++Kh;return Ke(t)+r}var Py=_o(function(t,r){return t+r},0),Wy=sa("ceil"),By=_o(function(t,r){return t/r},1),Hy=sa("floor");function Zy(t){return t&&t.length?go(t,Lt,Ns):i}function Vy(t,r){return t&&t.length?go(t,ve(r,2),Ns):i}function Ny(t){return fc(t,Lt)}function Uy(t,r){return fc(t,ve(r,2))}function Gy(t){return t&&t.length?go(t,Lt,Ks):i}function qy(t,r){return t&&t.length?go(t,ve(r,2),Ks):i}var Ky=_o(function(t,r){return t*r},1),Yy=sa("round"),Xy=_o(function(t,r){return t-r},0);function Qy(t){return t&&t.length?Fs(t,Lt):0}function Jy(t,r){return t&&t.length?Fs(t,ve(r,2)):0}return y.after=w2,y.ary=ju,y.assign=l8,y.assignIn=Xu,y.assignInWith=zo,y.assignWith=c8,y.at=u8,y.before=Du,y.bind=ba,y.bindAll=gy,y.bindKey=Pu,y.castArray=F2,y.chain=Ou,y.chunk=Hg,y.compact=Zg,y.concat=Vg,y.cond=my,y.conforms=yy,y.constant=Ea,y.countBy=Qm,y.create=d8,y.curry=Wu,y.curryRight=Bu,y.debounce=Hu,y.defaults=f8,y.defaultsDeep=h8,y.defer=_2,y.delay=C2,y.difference=Ng,y.differenceBy=Ug,y.differenceWith=Gg,y.drop=qg,y.dropRight=Kg,y.dropRightWhile=Yg,y.dropWhile=Xg,y.fill=Qg,y.filter=e2,y.flatMap=r2,y.flatMapDeep=i2,y.flatMapDepth=o2,y.flatten=Ru,y.flattenDeep=Jg,y.flattenDepth=em,y.flip=S2,y.flow=xy,y.flowRight=vy,y.fromPairs=tm,y.functions=v8,y.functionsIn=w8,y.groupBy=s2,y.initial=rm,y.intersection=im,y.intersectionBy=om,y.intersectionWith=sm,y.invert=C8,y.invertBy=S8,y.invokeMap=l2,y.iteratee=ka,y.keyBy=c2,y.keys=xt,y.keysIn=zt,y.map=To,y.mapKeys=k8,y.mapValues=$8,y.matches=wy,y.matchesProperty=_y,y.memoize=Io,y.merge=A8,y.mergeWith=Qu,y.method=Cy,y.methodOf=Sy,y.mixin=$a,y.negate=Mo,y.nthArg=ky,y.omit=T8,y.omitBy=R8,y.once=E2,y.orderBy=u2,y.over=$y,y.overArgs=k2,y.overEvery=Ay,y.overSome=Ty,y.partial=xa,y.partialRight=Zu,y.partition=d2,y.pick=I8,y.pickBy=Ju,y.property=sd,y.propertyOf=Ry,y.pull=um,y.pullAll=Mu,y.pullAllBy=dm,y.pullAllWith=fm,y.pullAt=hm,y.range=Iy,y.rangeRight=My,y.rearg=$2,y.reject=p2,y.remove=pm,y.rest=A2,y.reverse=ma,y.sampleSize=m2,y.set=F8,y.setWith=O8,y.shuffle=y2,y.slice=gm,y.sortBy=v2,y.sortedUniq=_m,y.sortedUniqBy=Cm,y.split=ry,y.spread=T2,y.tail=Sm,y.take=Em,y.takeRight=km,y.takeRightWhile=$m,y.takeWhile=Am,y.tap=Zm,y.throttle=R2,y.thru=Ao,y.toArray=qu,y.toPairs=ed,y.toPairsIn=td,y.toPath=jy,y.toPlainObject=Yu,y.transform=z8,y.unary=I2,y.union=Tm,y.unionBy=Rm,y.unionWith=Im,y.uniq=Mm,y.uniqBy=Fm,y.uniqWith=Om,y.unset=L8,y.unzip=ya,y.unzipWith=Fu,y.update=j8,y.updateWith=D8,y.values=Pr,y.valuesIn=P8,y.without=zm,y.words=id,y.wrap=M2,y.xor=Lm,y.xorBy=jm,y.xorWith=Dm,y.zip=Pm,y.zipObject=Wm,y.zipObjectDeep=Bm,y.zipWith=Hm,y.entries=ed,y.entriesIn=td,y.extend=Xu,y.extendWith=zo,$a(y,y),y.add=Py,y.attempt=od,y.camelCase=Z8,y.capitalize=nd,y.ceil=Wy,y.clamp=W8,y.clone=O2,y.cloneDeep=L2,y.cloneDeepWith=j2,y.cloneWith=z2,y.conformsTo=D2,y.deburr=rd,y.defaultTo=by,y.divide=By,y.endsWith=V8,y.eq=hn,y.escape=N8,y.escapeRegExp=U8,y.every=Jm,y.find=t2,y.findIndex=Au,y.findKey=p8,y.findLast=n2,y.findLastIndex=Tu,y.findLastKey=g8,y.floor=Hy,y.forEach=zu,y.forEachRight=Lu,y.forIn=m8,y.forInRight=y8,y.forOwn=b8,y.forOwnRight=x8,y.get=_a,y.gt=P2,y.gte=W2,y.has=_8,y.hasIn=Ca,y.head=Iu,y.identity=Lt,y.includes=a2,y.indexOf=nm,y.inRange=B8,y.invoke=E8,y.isArguments=pr,y.isArray=Ie,y.isArrayBuffer=B2,y.isArrayLike=Ot,y.isArrayLikeObject=dt,y.isBoolean=H2,y.isBuffer=Yn,y.isDate=Z2,y.isElement=V2,y.isEmpty=N2,y.isEqual=U2,y.isEqualWith=G2,y.isError=va,y.isFinite=q2,y.isFunction=In,y.isInteger=Vu,y.isLength=Fo,y.isMap=Nu,y.isMatch=K2,y.isMatchWith=Y2,y.isNaN=X2,y.isNative=Q2,y.isNil=e8,y.isNull=J2,y.isNumber=Uu,y.isObject=ct,y.isObjectLike=ut,y.isPlainObject=Ci,y.isRegExp=wa,y.isSafeInteger=t8,y.isSet=Gu,y.isString=Oo,y.isSymbol=Ut,y.isTypedArray=Dr,y.isUndefined=n8,y.isWeakMap=r8,y.isWeakSet=i8,y.join=am,y.kebabCase=G8,y.last=on,y.lastIndexOf=lm,y.lowerCase=q8,y.lowerFirst=K8,y.lt=o8,y.lte=s8,y.max=Zy,y.maxBy=Vy,y.mean=Ny,y.meanBy=Uy,y.min=Gy,y.minBy=qy,y.stubArray=Ta,y.stubFalse=Ra,y.stubObject=Fy,y.stubString=Oy,y.stubTrue=zy,y.multiply=Ky,y.nth=cm,y.noConflict=Ey,y.noop=Aa,y.now=Ro,y.pad=Y8,y.padEnd=X8,y.padStart=Q8,y.parseInt=J8,y.random=H8,y.reduce=f2,y.reduceRight=h2,y.repeat=ey,y.replace=ty,y.result=M8,y.round=Yy,y.runInContext=F,y.sample=g2,y.size=b2,y.snakeCase=ny,y.some=x2,y.sortedIndex=mm,y.sortedIndexBy=ym,y.sortedIndexOf=bm,y.sortedLastIndex=xm,y.sortedLastIndexBy=vm,y.sortedLastIndexOf=wm,y.startCase=iy,y.startsWith=oy,y.subtract=Xy,y.sum=Qy,y.sumBy=Jy,y.template=sy,y.times=Ly,y.toFinite=Mn,y.toInteger=Oe,y.toLength=Ku,y.toLower=ay,y.toNumber=sn,y.toSafeInteger=a8,y.toString=Ke,y.toUpper=ly,y.trim=cy,y.trimEnd=uy,y.trimStart=dy,y.truncate=fy,y.unescape=hy,y.uniqueId=Dy,y.upperCase=py,y.upperFirst=Sa,y.each=zu,y.eachRight=Lu,y.first=Iu,$a(y,function(){var t={};return xn(y,function(r,o){Xe.call(y.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),y.VERSION=s,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){y[t].placeholder=y}),Jt(["drop","take"],function(t,r){He.prototype[t]=function(o){o=o===i?1:yt(Oe(o),0);var u=this.__filtered__&&!r?new He(this):this.clone();return u.__filtered__?u.__takeCount__=St(o,u.__takeCount__):u.__views__.push({size:St(o,Se),type:t+(u.__dir__<0?"Right":"")}),u},He.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Jt(["filter","map","takeWhile"],function(t,r){var o=r+1,u=o==P||o==K;He.prototype[t]=function(g){var b=this.clone();return b.__iteratees__.push({iteratee:ve(g,3),type:o}),b.__filtered__=b.__filtered__||u,b}}),Jt(["head","last"],function(t,r){var o="take"+(r?"Right":"");He.prototype[t]=function(){return this[o](1).value()[0]}}),Jt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");He.prototype[t]=function(){return this.__filtered__?new He(this):this[o](1)}}),He.prototype.compact=function(){return this.filter(Lt)},He.prototype.find=function(t){return this.filter(t).head()},He.prototype.findLast=function(t){return this.reverse().find(t)},He.prototype.invokeMap=Le(function(t,r){return typeof t=="function"?new He(this):this.map(function(o){return yi(o,t,r)})}),He.prototype.reject=function(t){return this.filter(Mo(ve(t)))},He.prototype.slice=function(t,r){t=Oe(t);var o=this;return o.__filtered__&&(t>0||r<0)?new He(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=Oe(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},He.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},He.prototype.toArray=function(){return this.take(Se)},xn(He.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),g=y[u?"take"+(r=="last"?"Right":""):r],b=u||/^find/.test(r);g&&(y.prototype[r]=function(){var S=this.__wrapped__,A=u?[1]:arguments,O=S instanceof He,N=A[0],U=O||Ie(S),Y=function(We){var Ve=g.apply(y,Zn([We],A));return u&&ce?Ve[0]:Ve};U&&o&&typeof N=="function"&&N.length!=1&&(O=U=!1);var ce=this.__chain__,me=!!this.__actions__.length,_e=b&&!ce,ze=O&&!me;if(!b&&U){S=ze?S:new He(this);var Ce=t.apply(S,A);return Ce.__actions__.push({func:Ao,args:[Y],thisArg:i}),new tn(Ce,ce)}return _e&&ze?t.apply(this,A):(Ce=this.thru(Y),_e?u?Ce.value()[0]:Ce.value():Ce)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ji[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);y.prototype[t]=function(){var g=arguments;if(u&&!this.__chain__){var b=this.value();return r.apply(Ie(b)?b:[],g)}return this[o](function(S){return r.apply(Ie(S)?S:[],g)})}}),xn(He.prototype,function(t,r){var o=y[r];if(o){var u=o.name+"";Xe.call(Fr,u)||(Fr[u]=[]),Fr[u].push({name:r,func:o})}}),Fr[wo(i,T).name]=[{name:"wrapper",func:i}],He.prototype.clone=hp,He.prototype.reverse=pp,He.prototype.value=gp,y.prototype.at=Vm,y.prototype.chain=Nm,y.prototype.commit=Um,y.prototype.next=Gm,y.prototype.plant=Km,y.prototype.reverse=Ym,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Xm,y.prototype.first=y.prototype.head,ui&&(y.prototype[ui]=qm),y},Rr=Uh();sr?((sr.exports=Rr)._=Rr,ks._=Rr):wt._=Rr}).call(nb)}(Mi,Mi.exports)),Mi.exports}var Ne=rb();const ul=e=>({none:0,hairline:e*.5,thin:e,thick:e*2,heavy:e*4}),dl=e=>({none:0,xs:e*.5,sm:e,md:e*2,lg:e*3,xl:e*4,full:9999}),ib=e=>["none","hairline","thin","thick","heavy"].includes(e),Pf=e=>["none","xs","sm","md","lg","xl","full"].includes(e),as={transparent:"#FFFFFF00",white:"#FFFFFF",black:"#000000",primary:"#6949FF",secondary:"#FFC107",success:"#12D18E",danger:"#F75555",warning:"#FACC15",info:"#6949FF",grey100:"#F5F5F5",grey200:"#EEEEEE",grey300:"#E0E0E0",grey400:"#BDBDBD",grey500:"#9E9E9E",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",primary100:"#F0EDFF",primary200:"#C3B6FF",primary300:"#A592FF",primary400:"#876DFF",primary500:"#6949FF",secondary100:"#FFF9E6",secondary200:"#FFE69C",secondary300:"#FFDA6A",secondary400:"#FFCD39",secondary500:"#FFC107",orange100:"#FFF3E0",orange200:"#FFE0B2",orange300:"#FFCC80",orange400:"#FFB74D",orange500:"#FF9800",orange600:"#FB8C00",orange700:"#F57C00",orange800:"#EF6C00",orange900:"#E65100",cyan100:"#E0F7FA",cyan200:"#B2EBF2",cyan300:"#80DEEA",cyan400:"#4DD0E1",cyan500:"#26C6DA",cyan600:"#00BCD4",cyan700:"#00ACC1",cyan800:"#0097A7",cyan900:"#006064",purple100:"#F3E5F5",purple200:"#E1BEE7",purple300:"#CE93D8",purple400:"#BA68C8",purple500:"#AB47BC",purple600:"#9C27B0",purple700:"#8E24AA",purple800:"#7B1FA2",purple900:"#6A1B9A",teal100:"#E0F2F1",teal200:"#B2DFDB",teal300:"#80CBC4",teal400:"#4DB6AC",teal500:"#26A69A",teal600:"#009688",teal700:"#00897B",teal800:"#00796B",teal900:"#004D40",lime100:"#F9FBE7",lime200:"#F0F4C3",lime300:"#E6EE9C",lime400:"#DCE775",lime500:"#CDDC39",lime600:"#C0CA33",lime700:"#AFB42B",lime800:"#9E9D24",lime900:"#827717",pink100:"#FCE4EC",pink200:"#F8BBD0",pink300:"#F48FB1",pink400:"#F06292",pink500:"#EC4899",pink600:"#E91E63",pink700:"#D81B60",pink800:"#C2185B",pink900:"#880E4F",backgroundPurple:"#F9F8FF",backgroundYellow:"#FFFCED",backgroundGreen:"#F1FDF5",backgroundBlue:"#F6F9FF",backgroundTeal:"#F2FFF8",backgroundRed:"#FFF7F8",backgroundOrange:"#FFF8ED"},Wf=e=>e in as,Bf={primary:["#543ACC","#6949FF"],secondary:["#E0A800","#FFC107"],success:["#0FB57A","#12D18E"],danger:["#E64545","#F75555"],warning:["#E1B70D","#FACC15"],info:["#543ACC","#6949FF"]},ob=e=>["primary","secondary","success","danger","warning","info"].includes(e),sb=1,ab=8,lb=8,cb="Inter",ub="Sora",db=10,fb=4,Pn={borderWidth:sb,space:ab,size:lb,font:{neutral:cb,heading:ub},fontSize:db,radius:fb},Hf=e=>({none:"none",sm:`0 1px 2px 0 ${e.grey400}40`,md:`0 4px 6px -1px ${e.grey500}40, 0 2px 4px -1px ${e.grey400}40`,lg:`0 10px 15px -3px ${e.grey600}40, 0 4px 6px -2px ${e.grey500}40`}),hb=e=>["none","sm","md","lg"].includes(e),fl=e=>({"2xs":e*.5,xs:e,sm:e*2,"sm-md":e*2.5,md:e*4,"md-lg":e*6,lg:e*8,xl:e*16,"2xl":e*32,"3xl":e*64,"4xl":e*128}),xr=e=>["2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl"].includes(e),hl=e=>({none:0,"2xs":e*.25,xs:e*.5,sm:e,"sm-md":e*1.5,md:e*2,"md-lg":e*2.5,lg:e*3,xl:e*4,"2xl":e*5,"3xl":e*6,"4xl":e*8,"5xl":e*10,"6xl":e*12,"7xl":e*14,"8xl":e*16,"9xl":e*18,"10xl":e*20,"-xxs":e*-.25,"-xs":e*-.5,"-sm":e*-1,"-sm-md":e*-1.5,"-md":e*-2,"-md-lg":e*-2.5,"-lg":e*-3,"-xl":e*-4,"-2xl":e*-5,"-3xl":e*-6,"-4xl":e*-8,"-5xl":e*-10,"-6xl":e*-12,"-7xl":e*-14,"-8xl":e*-16,"-9xl":e*-18,"-10xl":e*-20}),Zf=e=>["none","2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl","-xxs","-xs","-sm","-sm-md","-md","-md-lg","-lg","-xl","-2xl","-3xl","-4xl"].includes(e),pl=({neutral:e,heading:n})=>({neutral:`"${e}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`,heading:`"${n}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`}),ls=e=>({"2xs":e*.75,xs:e,small:e*1.25,medium:e*1.5,large:e*2,xl:e*2.5,"2xl":e*3,"3xl":e*3.5,"4xl":e*4,"5xl":e*5,"6xl":e*6}),gl=e=>{const n=ls(e),i=1.4;return{"2xs":n["2xs"]*i,xs:n.xs*i,small:n.small*i,medium:n.medium*i,large:n.large*i,xl:n.xl*i,"2xl":n["2xl"]*i,"3xl":n["3xl"]*i,"4xl":n["4xl"]*i,"5xl":n["5xl"]*i,"6xl":n["6xl"]*i}},ml=()=>({"extra-light":100,thin:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900}),pb=e=>["2xs","xs","small","medium","large","xl","2xl","3xl","4xl","5xl","6xl"].includes(e),gb=e=>["extra-light","thin","light","regular","medium","semibold","bold","extrabold","black"].includes(e);class mb{constructor({baseZIndex:n=10,step:i=10}={}){Wr(this,"dependencies",new Map);Wr(this,"zIndexes",null);Wr(this,"nodes",new Set);Wr(this,"baseZIndex");Wr(this,"step");this.baseZIndex=n,this.step=i}register(n,i){this.nodes.add(n),this.nodes.add(i),this.dependencies.has(n)||this.dependencies.set(n,new Set),this.dependencies.get(n).add(i),this.zIndexes=null}deregister(n,i){const s=this.dependencies.get(n);s&&s.delete(i),this.zIndexes=null}getZIndex(n){return this.zIndexes||this._calculateZIndexes(),this.zIndexes.has(n)?this.zIndexes.get(n):(console.warn(`[ZIndexRegistry] ID '${n}' not found in the calculated z-index map. Returning a fallback value. Was it ever registered?`),this.baseZIndex)}_calculateZIndexes(){const n=new Map;for(const a of this.nodes)n.set(a,0);for(const a of this.dependencies.values())for(const l of a)n.set(l,(n.get(l)||0)+1);const i=[];for(const[a,l]of n.entries())l===0&&i.push(a);const s=[];for(;i.length>0;){const a=i.shift();s.push(a);const l=this.dependencies.get(a)||new Set;for(const d of l){const f=(n.get(d)||0)-1;n.set(d,f),f===0&&i.push(d)}}if(s.length!==this.nodes.size){if(process.env.NODE_ENV!=="production")throw new Error("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.");console.warn("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.")}this.zIndexes=new Map;for(let a=0;a<s.length;a++){const l=s[a];this.zIndexes.set(l,this.baseZIndex+a*this.step)}}}const Cr=new mb({baseZIndex:100,step:10}),mn={AIC_Kits_PageContent:"AIC_Kits_PageContent",AIC_Kits_Carousel:"AIC_Kits_Carousel",AIC_Kits_Dropdown:"AIC_Kits_Dropdown",AIC_Kits_Tooltip:"AIC_Kits_Tooltip",AIC_Kits_Modal:"AIC_Kits_Modal",AIC_Kits_Notification:"AIC_Kits_Notification"};Cr.register(mn.AIC_Kits_PageContent,mn.AIC_Kits_Carousel);Cr.register(mn.AIC_Kits_Carousel,mn.AIC_Kits_Dropdown);Cr.register(mn.AIC_Kits_Dropdown,mn.AIC_Kits_Tooltip);Cr.register(mn.AIC_Kits_Tooltip,mn.AIC_Kits_Modal);Cr.register(mn.AIC_Kits_Modal,mn.AIC_Kits_Notification);const yb=(e=Pn,n=as,i=Bf)=>{const s=pl(e.font),a=ls(e.fontSize),l=gl(e.fontSize),d=ml(),f=ul(e.borderWidth),h=hl(e.space),p=fl(e.size),x=dl(e.radius),w=Hf(n);return{colors:n,gradientColors:i,fonts:s,fontSizes:a,lineHeights:l,fontWeights:d,borderWidths:f,spaces:h,sizes:p,radii:x,shadows:w}},Vf=e=>({paddingVertical:"md",paddingHorizontal:"md",borderRadius:"lg",borderColor:"grey300",borderWidth:"thin",backgroundColor:"white",gap:"md",header:{gap:"sm-md",iconSize:"sm",iconColor:"grey600",disabledOpacity:.5},animation:{duration:300,easing:"ease"}}),Nf=e=>({defaultSize:"md",defaultIconSize:"md",defaultEmojiSize:"lg",defaultBrandSize:"md",defaultImageSize:"md",defaultSvgSize:"md"}),Uf=e=>({defaultSize:"md",defaultFallbackTextSize:"medium",fallbackBackgroundColor:"grey400",sizes:{sm:{fallbackTextSize:"small"},md:{fallbackTextSize:"medium"},lg:{fallbackTextSize:"xl"}}}),Gf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{barSpacing:8,barRadius:2,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},md:{barSpacing:12,barRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},lg:{barSpacing:16,barRadius:6,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"}},variants:{default:{defaultBarColor:"primary"},soft:{defaultBarColor:"secondary"},outlined:{defaultBarColor:"info"}}}),qf=e=>({defaultBackgroundColor:"white",defaultHeaderParams:{backgroundColor:"white"},desktopMediaQuery:"(min-width: 768px)",mobilePaddingX:"md",desktopPaddingX:"xl",desktopContentMaxWidth:"1200px"}),Kf=e=>({loadingConfig:{size:"md"},defaultColor:"primary",defaultTextColor:"white",iconSpacing:"xs",sizes:{sm:{paddingHorizontal:"sm",paddingVertical:"xs",fontSize:"xs",iconSize:"sm",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"md",square:"none"}},md:{paddingHorizontal:"md",paddingVertical:"sm",fontSize:"medium",iconSize:"sm-md",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"lg",square:"none"}},lg:{paddingHorizontal:"lg",paddingVertical:"md",fontSize:"large",iconSize:"md",borderWidth:"thick",fontWeight:"semibold",iconWeight:"bold",squircleBorderRadii:{circle:"full",rounded:"xl",square:"none"}}},variants:{solid:{},outlined:{bgColor:"transparent"},text:{bgColor:"transparent"}}}),Yf=e=>({pagination:{container:{marginTop:"md",padding:"xs",borderRadius:"full",backgroundColor:"grey100",gap:"xs"},dotSize:"2xs",inactiveColor:"grey300",activeColor:"primary",dotBorderRadius:"full"},navigation:{marginHorizontal:"md",buttonColor:"primary",buttonPadding:"sm",buttonBackgroundColor:"white",buttonBorderRadius:"full",iconSize:"sm-md"},autoScroll:{defaultSpeed:20},container:{defaultItemSpacing:"md"}}),Xf=e=>({defaultColor:"primary",defaultSize:"md",checkedBackgroundColor:"primary",uncheckedBorderColor:"grey400",disabledColor:"grey300",disabledTextColor:"grey500",focusBorderColor:"primary",iconColor:"white",textColor:"grey900",sizes:{sm:{labelFontSize:"small",labelPaddingLeft:"xs",iconSize:"xs",iconMargin:"2xs",borderRadius:"sm",borderWidth:"thin"},md:{labelFontSize:"medium",labelPaddingLeft:"sm",iconSize:"sm",iconMargin:"xs",borderRadius:"md",borderWidth:"thin"},lg:{labelFontSize:"large",labelPaddingLeft:"md",iconSize:"sm-md",iconMargin:"xs",borderRadius:"lg",borderWidth:"thin"}},animation:{duration:100,easing:"ease-out"}}),Qf=e=>{const n="primary",i="primary",s="white",a="grey300",l="grey100",d="grey400",f="primary",h="grey400",p="transparent";return{defaultSize:"md",defaultVariant:"outlined",defaultColor:n,borderRadii:{container:"lg",dateCell:"full",input:"md"},sizes:{sm:{containerPadding:"md",panelGap:"md",headerHeight:"xl",headerFontSize:"medium",headerFontWeight:"semibold",navButtonSize:"sm",navIconSize:"sm",weekdayFontSize:"2xs",dateCellSize:"xl",dateFontSize:"small",cellGap:"xs",timezoneFontSize:"2xs",borderWidth:"thin",viewHeight:258,viewWidth:280},md:{containerPadding:"lg",panelGap:"lg",headerHeight:"2xl",headerFontSize:"large",headerFontWeight:"semibold",navButtonSize:"sm-md",navIconSize:"sm-md",weekdayFontSize:"xs",dateCellSize:"2xl",dateFontSize:"medium",cellGap:"xs",timezoneFontSize:"xs",borderWidth:"thin",viewHeight:334,viewWidth:304},lg:{containerPadding:"xl",panelGap:"xl",headerHeight:"3xl",headerFontSize:"xl",headerFontWeight:"semibold",navButtonSize:"md",navIconSize:"md",weekdayFontSize:"small",dateCellSize:"3xl",dateFontSize:"large",cellGap:"xs",timezoneFontSize:"small",borderWidth:"thin",viewHeight:399,viewWidth:360}},variants:{outlined:{container:{backgroundColor:"white",borderColor:a},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:l,textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}},filled:{container:{backgroundColor:"grey100",borderColor:p},dateCells:{default:{backgroundColor:p,textColor:"grey900",borderColor:p},hover:{backgroundColor:"grey200",textColor:"grey900",borderColor:p},today:{backgroundColor:p,textColor:f,borderColor:n},selected:{backgroundColor:i,textColor:s,borderColor:i},disabled:{backgroundColor:p,textColor:d,borderColor:p},outsideMonth:{backgroundColor:p,textColor:h,borderColor:p}}}},colors:{headerText:"grey900",weekdayText:"grey600",labelText:"grey700",helperText:"grey600",errorText:"danger",placeholderText:"grey500",selectedDateDisplay:"grey900",timezoneText:"grey700",timezoneIconColor:"grey600"},calendar:{weeksToShow:6,daysInWeek:7,panelMinWidth:280},popup:{offset:"sm",shadow:"lg",zIndex:110},animation:{duration:200,easing:"ease-out"},input:{iconColor:"grey600",borderColor:"grey300",focusBorderColor:n,errorBorderColor:"danger"}}},Jf=e=>({defaultColor:"grey300",defaultThickness:1}),e0=e=>{const n=`0 0 16px 4px ${e.colors.grey400}40`;return{backgroundColor:"grey100",padding:"xs",radius:"full",avatarSize:"md",loadingGap:"sm",navItem:{radius:"full",paddingX:"md",paddingY:"sm",gap:"xs",large:{gap:"sm",containerHeight:30,fontSize:"large",iconSize:28,loadingSize:"small"},medium:{gap:"xs",containerHeight:24,fontSize:"medium",iconSize:22,loadingSize:"small"},active:{fontWeight:"medium",color:"black",backgroundColor:"white",hoverBackgroundColor:"white",hoverBoxShadow:n},inactive:{fontWeight:"regular",color:"grey600",backgroundColor:"transparent",hoverBackgroundColor:"white",hoverBoxShadow:n},hover:{color:"primary"}},profileDropdown:{offset:{top:72,right:0},containerPaddingRight:"md",spacingTop:"sm",padding:"sm",gap:"sm",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300},navDropdown:{spacingTop:"sm",paddingX:"md-lg",paddingY:"md",gap:"sm-md",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300}}},t0=e=>{const n="grey300",i="danger",s="primary",a="grey100",l="grey300",d="grey500",f="white",h="grey900",p="thin",x=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[s]}`,w=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[i]}`;return{borderRadius:"md",borderWidth:p,padding:{vertical:"sm",horizontal:"md"},fontSize:"medium",placeholderColor:"grey500",iconSpacing:"sm",iconSize:"sm-md",iconColor:"grey600",textColor:h,disabledTextColor:d,disabledBorderColor:l,focusColor:s,errorColor:i,states:{default:{borderColor:n,backgroundColor:f,boxShadow:"none"},focused:{borderColor:s,backgroundColor:f,boxShadow:x},error:{borderColor:i,backgroundColor:f,boxShadow:w},disabled:{borderColor:l,backgroundColor:a,boxShadow:"none"}}}},n0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1.5,dotRadius:3,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,dotRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,dotRadius:5,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","purple500"]},soft:{defaultColors:["primary300","secondary300","teal300","lime400","pink400","purple400","cyan400"]},bold:{defaultColors:["primary500","secondary500","teal600","orange600","pink600","purple600","cyan600"]}}}),r0=e=>({defaultGap:"sm",defaultPadding:"none"}),i0=e=>({sizes:{small:"24px",medium:"36px",large:"48px"},strokeWidths:{small:"2px",medium:"3px",large:"4px"},arc:{minAngle:40,maxAngle:290},animation:{loopInterval:800,showingDuration:250,contentShowingDuration:300}}),o0=e=>({container:{sizes:{small:{gap:"xs"},medium:{gap:"sm"},large:{gap:"md"}}},item:{defaultColor:"grey900",text:{color:"black",disabledColor:"grey500"},shapes:{circular:{container:{borderRadius:"full"}},rounded:{container:{borderRadius:"md"}}},sizes:{small:{container:{size:"sm-md"},text:{fontSize:"small"},buttonSize:"sm",icon:{size:"xs",weight:"bold"}},medium:{container:{size:"md"},text:{fontSize:"medium"},buttonSize:"md",icon:{size:"sm",weight:"bold"}},large:{container:{size:"md-lg"},text:{fontSize:"large"},buttonSize:"lg",icon:{size:"sm-md",weight:"bold"}}}}}),s0=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1,strokeColor:"white",labelColor:"grey700",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,strokeColor:"white",labelColor:"grey700",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,strokeColor:"white",labelColor:"grey700",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","cyan500"]},soft:{defaultColors:["primary200","secondary200","lime300","orange300","pink300","purple300","cyan300"]},outlined:{defaultColors:["primary500","secondary500","teal700","orange700","pink700","purple700","cyan700"]}}}),a0=e=>({defaultVariant:"soft",defaultSize:"md",sizes:{sm:{height:"2xs",borderRadius:"xs"},md:{height:"xs",borderRadius:"sm"},lg:{height:"sm",borderRadius:"md"}},variants:{soft:{containerBackgroundColor:"grey100",defaultProgressColor:"primary"},outlined:{containerBackgroundColor:"white",containerBorderWidth:"thin",defaultProgressColor:"primary"},plain:{containerBackgroundColor:"white",defaultProgressColor:"primary"}}}),l0=e=>{const n="grey300",i="danger",s="grey300",a="grey100",l="grey400",d="grey100",f="grey200",h="white",p="transparent",x="thin",w="thick";return{defaultColor:"primary",defaultSize:"md",defaultVariant:"outlined",defaultCorner:"circle",squircleBorderRadii:{circle:"999px",rounded:"8px"},labelColor:"grey700",disabledLabelColor:l,valueColor:"grey900",placeholderColor:"grey500",helperTextColor:"grey600",errorColor:i,iconColor:"grey600",disabledContentColor:l,disabledOpacity:.6,sizes:{sm:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",borderWidth:"thin",iconSize:"sm",gap:"xs",dropdownPaddingVertical:"xs",dropdownPaddingHorizontal:"sm"},md:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",borderWidth:"thin",iconSize:"sm-md",gap:"sm",dropdownPaddingVertical:"sm",dropdownPaddingHorizontal:"md"},lg:{paddingVertical:"md",paddingHorizontal:"lg",fontSize:"large",borderWidth:"thin",iconSize:"md",gap:"md",dropdownPaddingVertical:"md",dropdownPaddingHorizontal:"lg"}},variants:{outlined:{default:{backgroundColor:p,borderColor:n,borderWidth:x},hover:{backgroundColor:"grey100",borderColor:n,borderWidth:x},focused:{backgroundColor:p,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:p,borderColor:s,borderWidth:x},errored:{backgroundColor:p,borderColor:i,borderWidth:x}},filled:{default:{backgroundColor:d,borderColor:p,borderWidth:x},hover:{backgroundColor:f,borderColor:p,borderWidth:x},focused:{backgroundColor:h,borderColor:"primary",borderWidth:w},disabled:{backgroundColor:a,borderColor:p,borderWidth:x},errored:{backgroundColor:h,borderColor:i,borderWidth:x}}},animation:{duration:200,easing:"ease-out"},dropdown:{backgroundColor:h,borderColor:n,shadow:"md",offset:"sm",zIndex:1e3,maxHeight:200,borderRadiusForCircle:"xl",borderRadiusForRounded:"md",itemTextColor:"grey900",itemSelectedTextColor:"grey900",itemHoverBackgroundColor:"grey100",itemSelectedBackgroundColor:"white",emptyTextColor:"grey500"}}},c0=e=>({animation:{duration:1500,gradient:{start:"grey100",middle:"grey200",end:"grey100"},transition:{backgroundDuration:250,contentFadeDuration:200}},container:{rectangle:{borderRadius:"none",opacity:1},rounded:{borderRadius:"md",opacity:1},circle:{borderRadius:"full",opacity:1},transparent:{borderRadius:"none",opacity:0}}}),u0=e=>({defaultVariant:"solid",defaultColor:"primary",defaultRadius:"full",defaultSize:"md",sizes:{sm:{paddingVertical:"2xs",paddingHorizontal:"xs",fontSize:"xs",gap:"2xs",iconSize:"xs"},md:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",gap:"xs",iconSize:"sm"},lg:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",gap:"sm",iconSize:"sm-md"}}}),d0=e=>({defaultSize:"md",defaultFormat:"24h",borderRadii:{input:"md",popup:"lg"},sizes:{sm:{inputHeight:"xl",inputPaddingHorizontal:"sm",inputFontSize:"small",iconSize:"sm",popupPadding:"sm",wheelItemHeight:28,wheelWidth:48,wheelFontSize:"small"},md:{inputHeight:"2xl",inputPaddingHorizontal:"md",inputFontSize:"medium",iconSize:"sm-md",popupPadding:"md",wheelItemHeight:36,wheelWidth:56,wheelFontSize:"medium"},lg:{inputHeight:"3xl",inputPaddingHorizontal:"lg",inputFontSize:"large",iconSize:"md",popupPadding:"lg",wheelItemHeight:44,wheelWidth:64,wheelFontSize:"large"}},colors:{inputBorder:"grey300",inputFocusBorder:"primary",inputErrorBorder:"danger",inputBg:"white",inputText:"grey900",inputPlaceholder:"grey500",labelText:"grey700",helperText:"grey600",errorText:"danger",wheelBg:"white",wheelText:"grey600",wheelSelectedBg:"primary100",wheelSelectedText:"grey900",clearButtonColor:"grey500",clearButtonHoverColor:"grey700",separatorColor:"grey400"},popup:{offset:"sm",shadow:"lg",zIndex:110},wheel:{visibleItems:3}}),f0=e=>{const n="sm";return{defaultBackgroundColor:"grey800",defaultTextColor:"white",defaultPlacement:"bottom",container:{padding:"sm",borderRadius:"md",shadow:"md",zIndex:9999,maxWidth:"300px"},text:{fontSize:"small"},positioning:{spacing:n,placements:{top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",mb:n},bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",mt:n},left:{top:"50%",right:"100%",transform:"translateY(-50%)",mr:n},right:{top:"50%",left:"100%",transform:"translateY(-50%)",ml:n}}}}},h0=e=>({animation:{minScale:.92,maxScale:1,minOpacity:.7,maxOpacity:1,springConfig:{mass:.5}}}),p0=e=>({defaultAccentColor:"#00adef",aspectRatio:56.25,playerSettings:{autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,controls:!0}}),g0=e=>({art:Nf(),base:qf(),button:Kf(),divider:Jf(),header:e0(e),input:t0(e),list:r0(),loading:i0(),pagination:o0(),skeleton:c0(),touchable:h0(),vimeo:p0(),carousel:Yf(),accordion:Vf(),tag:u0(),checkbox:Xf(),select:l0(),progress:a0(),avatar:Uf(),tooltip:f0(),barChart:Gf(),pieChart:s0(),lineChart:n0(),datepicker:Qf(),timepicker:d0()}),bb=hl(Pn.space),xb=fl(Pn.size),vb=ul(Pn.borderWidth),wb=dl(Pn.radius),_b=ls(Pn.fontSize),Cb=gl(Pn.fontSize),Sb=ml(),cd=pl(Pn.font),Eb={spaces:bb,sizes:xb,colors:as,radii:wb,borderWidths:vb,fonts:cd,zIndex:Cr,__hd__:{text:{fontSizes:_b,lineHeights:Cb,fontWeights:Sb,fonts:cd}}};function m0(){const e=Eb,n=g0(e);return{...e,__hd__:{...e.__hd__,...n}}}const qo=m0(),ue=tr.styled,Sn=tr.keyframes,lt=tr.css,y0=(e,n)=>!["theme","themeFontSize","themeFontWeight","themeTypeface","themePosition","color","bg","bgColor","backgroundColor","opacity","margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my","padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py","gap","borderRadius","r","radius","borderBottomLeftRadius","bbl","borderBottomRightRadius","bbr","borderTopLeftRadius","btl","borderTopRightRadius","btr","borderWidth","b","borderBottomWidth","bb","borderTopWidth","bt","borderLeftWidth","bl","borderRightWidth","br","borderColor","bc","borderBottomColor","bb","borderTopColor","bt","borderLeftColor","bl","borderRightColor","br","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","fontStyle","textTransform","textDecoration","themeColor","useRichText","width","height","minWidth","maxWidth","minHeight","maxHeight","display","alignItems","alignContent","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","alignSelf","position","top","right","bottom","left","overflow","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","whiteSpace","textOverflow","overflowY","overflowX","fullWidth","fullHeight","fw","fh","absoluteFill"].includes(e),kb=e=>typeof e=="function"?e(qo):e?{...qo,...e}:qo,$b=({theme:e,children:n})=>{const i=kb(e);return m.jsx(tr.StyleSheetManager,{shouldForwardProp:y0,children:m.jsx(tr.ThemeProvider,{theme:i,children:n})})},be=tr.useTheme,Ct=()=>typeof document>"u",Hi={xs:0,sm:600,md:900,lg:1200,xl:1536},ji=Object.keys(Hi),cs=e=>Ne.isObject(e)&&("xs"in e||"sm"in e||"md"in e||"lg"in e||"xl"in e),Yt=(e,n)=>cs(e)?Object.fromEntries(Object.entries(e).map(([i,s])=>[i,n(s)])):n(e),Ja=e=>Ne.reduce(e,(n,i,s)=>(Ne.forEach(i,(a,l)=>{Ne.has(n,l)||Ne.set(n,l,{}),Ne.set(n,[l,s],a)}),n),{}),b0=(e,n)=>{const i=Object.fromEntries(Object.keys(e).map(f=>[f,yl(e[f])])),s=Ja(i),a=Object.fromEntries(ji.map(f=>[f,n(s[f])])),l=Ja(a);return Object.fromEntries(Object.entries(l).map(([f,h])=>[f,v0(h)]))},x0=(e,n)=>{if(!cs(e))return e;switch(n){case"xs":return e.xs??e.sm??e.md??e.lg??e.xl;case"sm":return e.sm??e.xs??e.md??e.lg??e.xl;case"md":return e.md??e.sm??e.xs??e.lg??e.xl;case"lg":return e.lg??e.md??e.sm??e.xs??e.xl;case"xl":return e.xl??e.lg??e.md??e.sm??e.xs}},yl=e=>Object.fromEntries(Object.keys(Hi).map(n=>[n,x0(e,n)])),v0=e=>{let n=e.xs;const i={xs:n};for(let s=1;s<ji.length;s++){const a=ji[s],l=e[a];Ne.isEqual(l,n)||(i[a]=l,n=l)}return Object.keys(i).length===1?i.xs:i},Jr=e=>{const[n,i]=Ne.partition(Object.entries(e),([l,d])=>cs(d)),s=Object.fromEntries(n.map(([l,d])=>[l,yl(d)])),a=Ne.compact(ji.map(l=>{const d=Object.fromEntries(Object.keys(s).map(h=>[h,s[h][l]]));if(l==="xs"){const h={...Object.fromEntries(i),...d};return Ne.isEmpty(h)?null:lt(h)}if(Ne.isEmpty(d))return null;const f=`(min-width: ${Hi[l]}px)`;return lt`
|
|
26
|
+
`)+se+`return __p
|
|
27
|
+
}`;var Ne=Ld(function(){return et(S,Ie+"return "+se).apply(r,R)});if(Ne.source=se,Ya(Ne))throw Ne;return Ne}function Jy(t){return tt(t).toLowerCase()}function eb(t){return tt(t).toUpperCase()}function tb(t,i,o){if(t=tt(t),t&&(o||i===r))return Uc(t);if(!t||!(i=Yt(i)))return t;var h=mn(t),y=mn(i),S=Gc(h,y),R=qc(h,y)+1;return ar(h,S,R).join("")}function nb(t,i,o){if(t=tt(t),t&&(o||i===r))return t.slice(0,Yc(t)+1);if(!t||!(i=Yt(i)))return t;var h=mn(t),y=qc(h,mn(i))+1;return ar(h,0,y).join("")}function rb(t,i,o){if(t=tt(t),t&&(o||i===r))return t.replace(En,"");if(!t||!(i=Yt(i)))return t;var h=mn(t),y=Gc(h,mn(i));return ar(h,y).join("")}function ib(t,i){var o=U,h=K;if(ft(i)){var y="separator"in i?i.separator:y;o="length"in i?Ze(i.length):o,h="omission"in i?Yt(i.omission):h}t=tt(t);var S=t.length;if(Hr(t)){var R=mn(t);S=R.length}if(o>=S)return t;var z=o-Br(h);if(z<1)return h;var P=R?ar(R,0,z).join(""):t.slice(0,z);if(y===r)return P+h;if(R&&(z+=P.length-z),Xa(y)){if(t.slice(z).search(y)){var J,ee=P;for(y.global||(y=ha(y.source,tt(gi.exec(y))+"g")),y.lastIndex=0;J=y.exec(ee);)var se=J.index;P=P.slice(0,se===r?z:se)}}else if(t.indexOf(Yt(y),z)!=z){var ve=P.lastIndexOf(y);ve>-1&&(P=P.slice(0,ve))}return P+h}function ob(t){return t=tt(t),t&&Ws.test(t)?t.replace(no,Op):t}var sb=Kr(function(t,i,o){return t+(o?" ":"")+i.toUpperCase()}),el=Du("toUpperCase");function Fd(t,i,o){return t=tt(t),i=o?r:i,i===r?jp(t)?Lp(t):vp(t):t.match(i)||[]}var Ld=Ue(function(t,i){try{return qt(t,r,i)}catch(o){return Ya(o)?o:new We(o)}}),ab=Pn(function(t,i){return sn(i,function(o){o=An(o),Ln(t,o,qa(t[o],t))}),t});function lb(t){var i=t==null?0:t.length,o=Le();return t=i?dt(t,function(h){if(typeof h[1]!="function")throw new an(u);return[o(h[0]),h[1]]}):[],Ue(function(h){for(var y=-1;++y<i;){var S=t[y];if(qt(S[0],this,h))return qt(S[1],this,h)}})}function cb(t){return Og(cn(t,m))}function tl(t){return function(){return t}}function ub(t,i){return t==null||t!==t?i:t}var db=Wu(),fb=Wu(!0);function Bt(t){return t}function nl(t){return mu(typeof t=="function"?t:cn(t,m))}function hb(t){return bu(cn(t,m))}function pb(t,i){return xu(t,cn(i,m))}var gb=Ue(function(t,i){return function(o){return Ei(o,t,i)}}),mb=Ue(function(t,i){return function(o){return Ei(t,o,i)}});function rl(t,i,o){var h=Et(i),y=zo(i,h);o==null&&!(ft(i)&&(y.length||!h.length))&&(o=i,i=t,t=this,y=zo(i,Et(i)));var S=!(ft(o)&&"chain"in o)||!!o.chain,R=Hn(t);return sn(y,function(z){var P=i[z];t[z]=P,R&&(t.prototype[z]=function(){var J=this.__chain__;if(S||J){var ee=t(this.__wrapped__),se=ee.__actions__=Pt(this.__actions__);return se.push({func:P,args:arguments,thisArg:t}),ee.__chain__=J,ee}return P.apply(t,tr([this.value()],arguments))})}),t}function yb(){return $t._===this&&($t._=Vp),this}function il(){}function bb(t){return t=Ze(t),Ue(function(i){return vu(i,t)})}var xb=za(dt),vb=za(Hc),wb=za(sa);function Dd(t){return Ba(t)?aa(An(t)):Xg(t)}function _b(t){return function(i){return t==null?r:Cr(t,i)}}var Sb=Bu(),Cb=Bu(!0);function ol(){return[]}function sl(){return!1}function Eb(){return{}}function $b(){return""}function kb(){return!0}function Ab(t,i){if(t=Ze(t),t<1||t>oe)return[];var o=ke,h=jt(t,ke);i=Le(i),t-=ke;for(var y=ua(h,i);++o<t;)i(o);return y}function jb(t){return He(t)?dt(t,An):Xt(t)?[t]:Pt(id(tt(t)))}function Tb(t){var i=++Hp;return tt(t)+i}var Rb=Ho(function(t,i){return t+i},0),Mb=Fa("ceil"),Ib=Ho(function(t,i){return t/i},1),Ob=Fa("floor");function zb(t){return t&&t.length?Oo(t,Bt,wa):r}function Fb(t,i){return t&&t.length?Oo(t,Le(i,2),wa):r}function Lb(t){return Zc(t,Bt)}function Db(t,i){return Zc(t,Le(i,2))}function Pb(t){return t&&t.length?Oo(t,Bt,Ea):r}function Wb(t,i){return t&&t.length?Oo(t,Le(i,2),Ea):r}var Hb=Ho(function(t,i){return t*i},1),Bb=Fa("round"),Vb=Ho(function(t,i){return t-i},0);function Zb(t){return t&&t.length?ca(t,Bt):0}function Nb(t,i){return t&&t.length?ca(t,Le(i,2)):0}return w.after=h8,w.ary=gd,w.assign=ey,w.assignIn=jd,w.assignInWith=es,w.assignWith=ty,w.at=ny,w.before=md,w.bind=qa,w.bindAll=ab,w.bindKey=yd,w.castArray=E8,w.chain=fd,w.chunk=Om,w.compact=zm,w.concat=Fm,w.cond=lb,w.conforms=cb,w.constant=tl,w.countBy=Z2,w.create=ry,w.curry=bd,w.curryRight=xd,w.debounce=vd,w.defaults=iy,w.defaultsDeep=oy,w.defer=p8,w.delay=g8,w.difference=Lm,w.differenceBy=Dm,w.differenceWith=Pm,w.drop=Wm,w.dropRight=Hm,w.dropRightWhile=Bm,w.dropWhile=Vm,w.fill=Zm,w.filter=U2,w.flatMap=K2,w.flatMapDeep=Y2,w.flatMapDepth=X2,w.flatten=ld,w.flattenDeep=Nm,w.flattenDepth=Um,w.flip=m8,w.flow=db,w.flowRight=fb,w.fromPairs=Gm,w.functions=fy,w.functionsIn=hy,w.groupBy=Q2,w.initial=Km,w.intersection=Ym,w.intersectionBy=Xm,w.intersectionWith=Qm,w.invert=gy,w.invertBy=my,w.invokeMap=e8,w.iteratee=nl,w.keyBy=t8,w.keys=Et,w.keysIn=Ht,w.map=qo,w.mapKeys=by,w.mapValues=xy,w.matches=hb,w.matchesProperty=pb,w.memoize=Yo,w.merge=vy,w.mergeWith=Td,w.method=gb,w.methodOf=mb,w.mixin=rl,w.negate=Xo,w.nthArg=bb,w.omit=wy,w.omitBy=_y,w.once=y8,w.orderBy=n8,w.over=xb,w.overArgs=b8,w.overEvery=vb,w.overSome=wb,w.partial=Ka,w.partialRight=wd,w.partition=r8,w.pick=Sy,w.pickBy=Rd,w.property=Dd,w.propertyOf=_b,w.pull=n2,w.pullAll=ud,w.pullAllBy=r2,w.pullAllWith=i2,w.pullAt=o2,w.range=Sb,w.rangeRight=Cb,w.rearg=x8,w.reject=s8,w.remove=s2,w.rest=v8,w.reverse=Ua,w.sampleSize=l8,w.set=Ey,w.setWith=$y,w.shuffle=c8,w.slice=a2,w.sortBy=f8,w.sortedUniq=p2,w.sortedUniqBy=g2,w.split=Ky,w.spread=w8,w.tail=m2,w.take=y2,w.takeRight=b2,w.takeRightWhile=x2,w.takeWhile=v2,w.tap=z2,w.throttle=_8,w.thru=Go,w.toArray=$d,w.toPairs=Md,w.toPairsIn=Id,w.toPath=jb,w.toPlainObject=Ad,w.transform=ky,w.unary=S8,w.union=w2,w.unionBy=_2,w.unionWith=S2,w.uniq=C2,w.uniqBy=E2,w.uniqWith=$2,w.unset=Ay,w.unzip=Ga,w.unzipWith=dd,w.update=jy,w.updateWith=Ty,w.values=Qr,w.valuesIn=Ry,w.without=k2,w.words=Fd,w.wrap=C8,w.xor=A2,w.xorBy=j2,w.xorWith=T2,w.zip=R2,w.zipObject=M2,w.zipObjectDeep=I2,w.zipWith=O2,w.entries=Md,w.entriesIn=Id,w.extend=jd,w.extendWith=es,rl(w,w),w.add=Rb,w.attempt=Ld,w.camelCase=zy,w.capitalize=Od,w.ceil=Mb,w.clamp=My,w.clone=$8,w.cloneDeep=A8,w.cloneDeepWith=j8,w.cloneWith=k8,w.conformsTo=T8,w.deburr=zd,w.defaultTo=ub,w.divide=Ib,w.endsWith=Fy,w.eq=bn,w.escape=Ly,w.escapeRegExp=Dy,w.every=N2,w.find=G2,w.findIndex=sd,w.findKey=sy,w.findLast=q2,w.findLastIndex=ad,w.findLastKey=ay,w.floor=Ob,w.forEach=hd,w.forEachRight=pd,w.forIn=ly,w.forInRight=cy,w.forOwn=uy,w.forOwnRight=dy,w.get=Qa,w.gt=R8,w.gte=M8,w.has=py,w.hasIn=Ja,w.head=cd,w.identity=Bt,w.includes=J2,w.indexOf=qm,w.inRange=Iy,w.invoke=yy,w.isArguments=kr,w.isArray=He,w.isArrayBuffer=I8,w.isArrayLike=Wt,w.isArrayLikeObject=gt,w.isBoolean=O8,w.isBuffer=lr,w.isDate=z8,w.isElement=F8,w.isEmpty=L8,w.isEqual=D8,w.isEqualWith=P8,w.isError=Ya,w.isFinite=W8,w.isFunction=Hn,w.isInteger=_d,w.isLength=Qo,w.isMap=Sd,w.isMatch=H8,w.isMatchWith=B8,w.isNaN=V8,w.isNative=Z8,w.isNil=U8,w.isNull=N8,w.isNumber=Cd,w.isObject=ft,w.isObjectLike=ht,w.isPlainObject=Ri,w.isRegExp=Xa,w.isSafeInteger=G8,w.isSet=Ed,w.isString=Jo,w.isSymbol=Xt,w.isTypedArray=Xr,w.isUndefined=q8,w.isWeakMap=K8,w.isWeakSet=Y8,w.join=Jm,w.kebabCase=Py,w.last=dn,w.lastIndexOf=e2,w.lowerCase=Wy,w.lowerFirst=Hy,w.lt=X8,w.lte=Q8,w.max=zb,w.maxBy=Fb,w.mean=Lb,w.meanBy=Db,w.min=Pb,w.minBy=Wb,w.stubArray=ol,w.stubFalse=sl,w.stubObject=Eb,w.stubString=$b,w.stubTrue=kb,w.multiply=Hb,w.nth=t2,w.noConflict=yb,w.noop=il,w.now=Ko,w.pad=By,w.padEnd=Vy,w.padStart=Zy,w.parseInt=Ny,w.random=Oy,w.reduce=i8,w.reduceRight=o8,w.repeat=Uy,w.replace=Gy,w.result=Cy,w.round=Bb,w.runInContext=D,w.sample=a8,w.size=u8,w.snakeCase=qy,w.some=d8,w.sortedIndex=l2,w.sortedIndexBy=c2,w.sortedIndexOf=u2,w.sortedLastIndex=d2,w.sortedLastIndexBy=f2,w.sortedLastIndexOf=h2,w.startCase=Yy,w.startsWith=Xy,w.subtract=Vb,w.sum=Zb,w.sumBy=Nb,w.template=Qy,w.times=Ab,w.toFinite=Bn,w.toInteger=Ze,w.toLength=kd,w.toLower=Jy,w.toNumber=fn,w.toSafeInteger=J8,w.toString=tt,w.toUpper=eb,w.trim=tb,w.trimEnd=nb,w.trimStart=rb,w.truncate=ib,w.unescape=ob,w.uniqueId=Tb,w.upperCase=sb,w.upperFirst=el,w.each=hd,w.eachRight=pd,w.first=cd,rl(w,function(){var t={};return $n(w,function(i,o){rt.call(w.prototype,o)||(t[o]=i)}),t}(),{chain:!1}),w.VERSION=s,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){Ke.prototype[t]=function(o){o=o===r?1:St(Ze(o),0);var h=this.__filtered__&&!i?new Ke(this):this.clone();return h.__filtered__?h.__takeCount__=jt(o,h.__takeCount__):h.__views__.push({size:jt(o,ke),type:t+(h.__dir__<0?"Right":"")}),h},Ke.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var o=i+1,h=o==B||o==N;Ke.prototype[t]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:Le(y,3),type:o}),S.__filtered__=S.__filtered__||h,S}}),sn(["head","last"],function(t,i){var o="take"+(i?"Right":"");Ke.prototype[t]=function(){return this[o](1).value()[0]}}),sn(["initial","tail"],function(t,i){var o="drop"+(i?"":"Right");Ke.prototype[t]=function(){return this.__filtered__?new Ke(this):this[o](1)}}),Ke.prototype.compact=function(){return this.filter(Bt)},Ke.prototype.find=function(t){return this.filter(t).head()},Ke.prototype.findLast=function(t){return this.reverse().find(t)},Ke.prototype.invokeMap=Ue(function(t,i){return typeof t=="function"?new Ke(this):this.map(function(o){return Ei(o,t,i)})}),Ke.prototype.reject=function(t){return this.filter(Xo(Le(t)))},Ke.prototype.slice=function(t,i){t=Ze(t);var o=this;return o.__filtered__&&(t>0||i<0)?new Ke(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),i!==r&&(i=Ze(i),o=i<0?o.dropRight(-i):o.take(i-t)),o)},Ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ke.prototype.toArray=function(){return this.take(ke)},$n(Ke.prototype,function(t,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),h=/^(?:head|last)$/.test(i),y=w[h?"take"+(i=="last"?"Right":""):i],S=h||/^find/.test(i);y&&(w.prototype[i]=function(){var R=this.__wrapped__,z=h?[1]:arguments,P=R instanceof Ke,J=z[0],ee=P||He(R),se=function(Ge){var Ye=y.apply(w,tr([Ge],z));return h&&ve?Ye[0]:Ye};ee&&o&&typeof J=="function"&&J.length!=1&&(P=ee=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,De=S&&!ve,Ne=P&&!Ie;if(!S&&ee){R=Ne?R:new Ke(this);var Pe=t.apply(R,z);return Pe.__actions__.push({func:Go,args:[se],thisArg:r}),new ln(Pe,ve)}return De&&Ne?t.apply(this,z):(Pe=this.thru(se),De?h?Pe.value()[0]:Pe.value():Pe)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=xo[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",h=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var y=arguments;if(h&&!this.__chain__){var S=this.value();return i.apply(He(S)?S:[],y)}return this[o](function(R){return i.apply(He(R)?R:[],y)})}}),$n(Ke.prototype,function(t,i){var o=w[i];if(o){var h=o.name+"";rt.call(Ur,h)||(Ur[h]=[]),Ur[h].push({name:i,func:o})}}),Ur[Wo(r,A).name]=[{name:"wrapper",func:r}],Ke.prototype.clone=og,Ke.prototype.reverse=sg,Ke.prototype.value=ag,w.prototype.at=F2,w.prototype.chain=L2,w.prototype.commit=D2,w.prototype.next=P2,w.prototype.plant=H2,w.prototype.reverse=B2,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=V2,w.prototype.first=w.prototype.head,bi&&(w.prototype[bi]=W2),w},Vr=Dp();xr?((xr.exports=Vr)._=Vr,na._=Vr):$t._=Vr}).call(qb)}(Wi,Wi.exports)),Wi.exports}var Xe=Kb();const Hl=e=>({none:0,hairline:e*.5,thin:e,thick:e*2,heavy:e*4}),Bl=e=>({none:0,xs:e*.5,sm:e,md:e*2,lg:e*3,xl:e*4,full:9999}),Yb=e=>["none","hairline","thin","thick","heavy"].includes(e),jf=e=>["none","xs","sm","md","lg","xl","full"].includes(e),ks={transparent:"#FFFFFF00",white:"#FFFFFF",black:"#000000",primary:"#6949FF",secondary:"#FFC107",success:"#12D18E",danger:"#F75555",warning:"#FACC15",info:"#6949FF",grey100:"#F5F5F5",grey200:"#EEEEEE",grey300:"#E0E0E0",grey400:"#BDBDBD",grey500:"#9E9E9E",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",primary100:"#F0EDFF",primary200:"#C3B6FF",primary300:"#A592FF",primary400:"#876DFF",primary500:"#6949FF",secondary100:"#FFF9E6",secondary200:"#FFE69C",secondary300:"#FFDA6A",secondary400:"#FFCD39",secondary500:"#FFC107",orange100:"#FFF3E0",orange200:"#FFE0B2",orange300:"#FFCC80",orange400:"#FFB74D",orange500:"#FF9800",orange600:"#FB8C00",orange700:"#F57C00",orange800:"#EF6C00",orange900:"#E65100",cyan100:"#E0F7FA",cyan200:"#B2EBF2",cyan300:"#80DEEA",cyan400:"#4DD0E1",cyan500:"#26C6DA",cyan600:"#00BCD4",cyan700:"#00ACC1",cyan800:"#0097A7",cyan900:"#006064",purple100:"#F3E5F5",purple200:"#E1BEE7",purple300:"#CE93D8",purple400:"#BA68C8",purple500:"#AB47BC",purple600:"#9C27B0",purple700:"#8E24AA",purple800:"#7B1FA2",purple900:"#6A1B9A",teal100:"#E0F2F1",teal200:"#B2DFDB",teal300:"#80CBC4",teal400:"#4DB6AC",teal500:"#26A69A",teal600:"#009688",teal700:"#00897B",teal800:"#00796B",teal900:"#004D40",lime100:"#F9FBE7",lime200:"#F0F4C3",lime300:"#E6EE9C",lime400:"#DCE775",lime500:"#CDDC39",lime600:"#C0CA33",lime700:"#AFB42B",lime800:"#9E9D24",lime900:"#827717",pink100:"#FCE4EC",pink200:"#F8BBD0",pink300:"#F48FB1",pink400:"#F06292",pink500:"#EC4899",pink600:"#E91E63",pink700:"#D81B60",pink800:"#C2185B",pink900:"#880E4F",backgroundPurple:"#F9F8FF",backgroundYellow:"#FFFCED",backgroundGreen:"#F1FDF5",backgroundBlue:"#F6F9FF",backgroundTeal:"#F2FFF8",backgroundRed:"#FFF7F8",backgroundOrange:"#FFF8ED"},Tf=e=>e in ks,Rf={primary:["#543ACC","#6949FF"],secondary:["#E0A800","#FFC107"],success:["#0FB57A","#12D18E"],danger:["#E64545","#F75555"],warning:["#E1B70D","#FACC15"],info:["#543ACC","#6949FF"]},Xb=e=>["primary","secondary","success","danger","warning","info"].includes(e),Qb=1,Jb=8,ex=8,tx="Inter",nx="Sora",rx=10,ix=4,Xn={borderWidth:Qb,space:Jb,size:ex,font:{neutral:tx,heading:nx},fontSize:rx,radius:ix},Mf=e=>({none:"none",sm:`0 1px 2px 0 ${e.grey400}40`,md:`0 4px 6px -1px ${e.grey500}40, 0 2px 4px -1px ${e.grey400}40`,lg:`0 10px 15px -3px ${e.grey600}40, 0 4px 6px -2px ${e.grey500}40`}),ox=e=>["none","sm","md","lg"].includes(e),Vl=e=>({"2xs":e*.5,xs:e,sm:e*2,"sm-md":e*2.5,md:e*4,"md-lg":e*6,lg:e*8,xl:e*16,"2xl":e*32,"3xl":e*64,"4xl":e*128}),Mr=e=>["2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl"].includes(e),Zl=e=>({none:0,"2xs":e*.25,xs:e*.5,sm:e,"sm-md":e*1.5,md:e*2,"md-lg":e*2.5,lg:e*3,xl:e*4,"2xl":e*5,"3xl":e*6,"4xl":e*8,"5xl":e*10,"6xl":e*12,"7xl":e*14,"8xl":e*16,"9xl":e*18,"10xl":e*20,"-xxs":e*-.25,"-xs":e*-.5,"-sm":e*-1,"-sm-md":e*-1.5,"-md":e*-2,"-md-lg":e*-2.5,"-lg":e*-3,"-xl":e*-4,"-2xl":e*-5,"-3xl":e*-6,"-4xl":e*-8,"-5xl":e*-10,"-6xl":e*-12,"-7xl":e*-14,"-8xl":e*-16,"-9xl":e*-18,"-10xl":e*-20}),If=e=>["none","2xs","xs","sm","sm-md","md","md-lg","lg","xl","2xl","3xl","4xl","-xxs","-xs","-sm","-sm-md","-md","-md-lg","-lg","-xl","-2xl","-3xl","-4xl"].includes(e),Nl=({neutral:e,heading:n})=>({neutral:`"${e}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`,heading:`"${n}", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif`}),As=e=>({"2xs":e*.75,xs:e,small:e*1.25,medium:e*1.5,large:e*2,xl:e*2.5,"2xl":e*3,"3xl":e*3.5,"4xl":e*4,"5xl":e*5,"6xl":e*6}),Ul=e=>{const n=As(e),r=1.4;return{"2xs":n["2xs"]*r,xs:n.xs*r,small:n.small*r,medium:n.medium*r,large:n.large*r,xl:n.xl*r,"2xl":n["2xl"]*r,"3xl":n["3xl"]*r,"4xl":n["4xl"]*r,"5xl":n["5xl"]*r,"6xl":n["6xl"]*r}},Gl=()=>({"extra-light":100,thin:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,black:900}),sx=e=>["2xs","xs","small","medium","large","xl","2xl","3xl","4xl","5xl","6xl"].includes(e),ax=e=>["extra-light","thin","light","regular","medium","semibold","bold","extrabold","black"].includes(e);class lx{constructor({baseZIndex:n=10,step:r=10}={}){Jr(this,"dependencies",new Map);Jr(this,"zIndexes",null);Jr(this,"nodes",new Set);Jr(this,"baseZIndex");Jr(this,"step");this.baseZIndex=n,this.step=r}register(n,r){this.nodes.add(n),this.nodes.add(r),this.dependencies.has(n)||this.dependencies.set(n,new Set),this.dependencies.get(n).add(r),this.zIndexes=null}deregister(n,r){const s=this.dependencies.get(n);s&&s.delete(r),this.zIndexes=null}getZIndex(n){return this.zIndexes||this._calculateZIndexes(),this.zIndexes.has(n)?this.zIndexes.get(n):(console.warn(`[ZIndexRegistry] ID '${n}' not found in the calculated z-index map. Returning a fallback value. Was it ever registered?`),this.baseZIndex)}_calculateZIndexes(){const n=new Map;for(const l of this.nodes)n.set(l,0);for(const l of this.dependencies.values())for(const c of l)n.set(c,(n.get(c)||0)+1);const r=[];for(const[l,c]of n.entries())c===0&&r.push(l);const s=[];for(;r.length>0;){const l=r.shift();s.push(l);const c=this.dependencies.get(l)||new Set;for(const u of c){const f=(n.get(u)||0)-1;n.set(u,f),f===0&&r.push(u)}}if(s.length!==this.nodes.size){if(process.env.NODE_ENV!=="production")throw new Error("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.");console.warn("[ZIndexRegistry] Detected a cycle in the z-index relationships. Cannot resolve the stacking order. Please check the register() function calls.")}this.zIndexes=new Map;for(let l=0;l<s.length;l++){const c=s[l];this.zIndexes.set(c,this.baseZIndex+l*this.step)}}}const Fr=new lx({baseZIndex:100,step:10}),_n={AIC_Kits_PageContent:"AIC_Kits_PageContent",AIC_Kits_Carousel:"AIC_Kits_Carousel",AIC_Kits_Dropdown:"AIC_Kits_Dropdown",AIC_Kits_Tooltip:"AIC_Kits_Tooltip",AIC_Kits_Modal:"AIC_Kits_Modal",AIC_Kits_Notification:"AIC_Kits_Notification"};Fr.register(_n.AIC_Kits_PageContent,_n.AIC_Kits_Carousel);Fr.register(_n.AIC_Kits_Carousel,_n.AIC_Kits_Dropdown);Fr.register(_n.AIC_Kits_Dropdown,_n.AIC_Kits_Tooltip);Fr.register(_n.AIC_Kits_Tooltip,_n.AIC_Kits_Modal);Fr.register(_n.AIC_Kits_Modal,_n.AIC_Kits_Notification);const cx=(e=Xn,n=ks,r=Rf)=>{const s=Nl(e.font),l=As(e.fontSize),c=Ul(e.fontSize),u=Gl(),f=Hl(e.borderWidth),p=Zl(e.space),g=Vl(e.size),b=Bl(e.radius),m=Mf(n);return{colors:n,gradientColors:r,fonts:s,fontSizes:l,lineHeights:c,fontWeights:u,borderWidths:f,spaces:p,sizes:g,radii:b,shadows:m}},Of=e=>({paddingVertical:"md",paddingHorizontal:"md",borderRadius:"lg",borderColor:"grey300",borderWidth:"thin",backgroundColor:"white",gap:"md",header:{gap:"sm-md",iconSize:"sm",iconColor:"grey600",disabledOpacity:.5},animation:{duration:300,easing:"ease"}}),zf=e=>({defaultSize:"md",defaultIconSize:"md",defaultEmojiSize:"lg",defaultBrandSize:"md",defaultImageSize:"md",defaultSvgSize:"md"}),Ff=e=>({defaultSize:"md",defaultFallbackTextSize:"medium",fallbackBackgroundColor:"grey400",sizes:{sm:{fallbackTextSize:"small"},md:{fallbackTextSize:"medium"},lg:{fallbackTextSize:"xl"}}}),Lf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{barSpacing:8,barRadius:2,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},md:{barSpacing:12,barRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"},lg:{barSpacing:16,barRadius:6,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600"}},variants:{default:{defaultBarColor:"primary"},soft:{defaultBarColor:"secondary"},outlined:{defaultBarColor:"info"}}}),Df=e=>({defaultBackgroundColor:"white",defaultHeaderParams:{backgroundColor:"white"},desktopMediaQuery:"(min-width: 768px)",mobilePaddingX:"md",desktopPaddingX:"xl",desktopContentMaxWidth:"1200px"}),Pf=e=>({loadingConfig:{size:"md"},defaultColor:"primary",defaultTextColor:"white",iconSpacing:"xs",sizes:{sm:{paddingHorizontal:"sm",paddingVertical:"xs",fontSize:"xs",iconSize:"sm",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"md",square:"none"}},md:{paddingHorizontal:"md",paddingVertical:"sm",fontSize:"medium",iconSize:"sm-md",borderWidth:"thin",fontWeight:"regular",iconWeight:"regular",squircleBorderRadii:{circle:"full",rounded:"lg",square:"none"}},lg:{paddingHorizontal:"lg",paddingVertical:"md",fontSize:"large",iconSize:"md",borderWidth:"thick",fontWeight:"semibold",iconWeight:"bold",squircleBorderRadii:{circle:"full",rounded:"xl",square:"none"}}},variants:{solid:{},outlined:{bgColor:"transparent"},text:{bgColor:"transparent"}}}),Wf=e=>({pagination:{container:{marginTop:"md",padding:"xs",borderRadius:"full",backgroundColor:"grey100",gap:"xs"},dotSize:"2xs",inactiveColor:"grey300",activeColor:"primary",dotBorderRadius:"full"},navigation:{marginHorizontal:"md",buttonColor:"primary",buttonPadding:"sm",buttonBackgroundColor:"white",buttonBorderRadius:"full",iconSize:"sm-md"},autoScroll:{defaultSpeed:20},container:{defaultItemSpacing:"md"}}),Hf=e=>({defaultColor:"primary",defaultSize:"md",checkedBackgroundColor:"primary",uncheckedBorderColor:"grey400",disabledColor:"grey300",disabledTextColor:"grey500",focusBorderColor:"primary",iconColor:"white",textColor:"grey900",sizes:{sm:{labelFontSize:"small",labelPaddingLeft:"xs",iconSize:"xs",iconMargin:"2xs",borderRadius:"sm",borderWidth:"thin"},md:{labelFontSize:"medium",labelPaddingLeft:"sm",iconSize:"sm",iconMargin:"xs",borderRadius:"md",borderWidth:"thin"},lg:{labelFontSize:"large",labelPaddingLeft:"md",iconSize:"sm-md",iconMargin:"xs",borderRadius:"lg",borderWidth:"thin"}},animation:{duration:100,easing:"ease-out"}}),Bf=e=>{const n="primary",r="primary",s="white",l="grey300",c="grey100",u="grey400",f="primary",p="grey400",g="transparent";return{defaultSize:"md",defaultVariant:"outlined",defaultColor:n,borderRadii:{container:"lg",dateCell:"full",input:"md"},sizes:{sm:{containerPadding:"md",panelGap:"md",headerHeight:"xl",headerFontSize:"medium",headerFontWeight:"semibold",navButtonSize:"sm",navIconSize:"sm",weekdayFontSize:"2xs",dateCellSize:"xl",dateFontSize:"small",cellGap:"xs",timezoneFontSize:"2xs",borderWidth:"thin",viewHeight:258,viewWidth:280},md:{containerPadding:"lg",panelGap:"lg",headerHeight:"2xl",headerFontSize:"large",headerFontWeight:"semibold",navButtonSize:"sm-md",navIconSize:"sm-md",weekdayFontSize:"xs",dateCellSize:"2xl",dateFontSize:"medium",cellGap:"xs",timezoneFontSize:"xs",borderWidth:"thin",viewHeight:334,viewWidth:304},lg:{containerPadding:"xl",panelGap:"xl",headerHeight:"3xl",headerFontSize:"xl",headerFontWeight:"semibold",navButtonSize:"md",navIconSize:"md",weekdayFontSize:"small",dateCellSize:"3xl",dateFontSize:"large",cellGap:"xs",timezoneFontSize:"small",borderWidth:"thin",viewHeight:399,viewWidth:360}},variants:{outlined:{container:{backgroundColor:"white",borderColor:l},dateCells:{default:{backgroundColor:g,textColor:"grey900",borderColor:g},hover:{backgroundColor:c,textColor:"grey900",borderColor:g},today:{backgroundColor:g,textColor:f,borderColor:n},selected:{backgroundColor:r,textColor:s,borderColor:r},disabled:{backgroundColor:g,textColor:u,borderColor:g},outsideMonth:{backgroundColor:g,textColor:p,borderColor:g}}},filled:{container:{backgroundColor:"grey100",borderColor:g},dateCells:{default:{backgroundColor:g,textColor:"grey900",borderColor:g},hover:{backgroundColor:"grey200",textColor:"grey900",borderColor:g},today:{backgroundColor:g,textColor:f,borderColor:n},selected:{backgroundColor:r,textColor:s,borderColor:r},disabled:{backgroundColor:g,textColor:u,borderColor:g},outsideMonth:{backgroundColor:g,textColor:p,borderColor:g}}}},colors:{headerText:"grey900",weekdayText:"grey600",labelText:"grey700",helperText:"grey600",errorText:"danger",placeholderText:"grey500",selectedDateDisplay:"grey900",timezoneText:"grey700",timezoneIconColor:"grey600"},calendar:{weeksToShow:6,daysInWeek:7,panelMinWidth:280},popup:{offset:"sm",shadow:"lg",zIndex:110},animation:{duration:200,easing:"ease-out"},input:{iconColor:"grey600",borderColor:"grey300",focusBorderColor:n,errorBorderColor:"danger"}}},Vf=e=>({defaultColor:"grey300",defaultThickness:1}),Zf=e=>{const n=`0 0 16px 4px ${e.colors.grey400}40`;return{backgroundColor:"grey100",padding:"xs",radius:"full",avatarSize:"md",loadingGap:"sm",navItem:{radius:"full",paddingX:"md",paddingY:"sm",gap:"xs",large:{gap:"sm",containerHeight:30,fontSize:"large",iconSize:28,loadingSize:"small"},medium:{gap:"xs",containerHeight:24,fontSize:"medium",iconSize:22,loadingSize:"small"},active:{fontWeight:"medium",color:"black",backgroundColor:"white",hoverBackgroundColor:"white",hoverBoxShadow:n},inactive:{fontWeight:"regular",color:"grey600",backgroundColor:"transparent",hoverBackgroundColor:"white",hoverBoxShadow:n},hover:{color:"primary"}},profileDropdown:{offset:{top:72,right:0},containerPaddingRight:"md",spacingTop:"sm",padding:"sm",gap:"sm",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300},navDropdown:{spacingTop:"sm",paddingX:"md-lg",paddingY:"md",gap:"sm-md",borderRadius:24,boxShadow:n,backgroundColor:"white",defaultMaxHeight:300,minWidth:50,animationDuration:300}}},Nf=e=>{const n="grey300",r="danger",s="primary",l="grey100",c="grey300",u="grey500",f="white",p="grey900",g="thin",b=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[s]}`,m=`inset 0 0 0 ${e.borderWidths.thin}px ${e.colors[r]}`;return{borderRadius:"md",borderWidth:g,padding:{vertical:"sm",horizontal:"md"},fontSize:"medium",placeholderColor:"grey500",iconSpacing:"sm",iconSize:"sm-md",iconColor:"grey600",textColor:p,disabledTextColor:u,disabledBorderColor:c,focusColor:s,errorColor:r,states:{default:{borderColor:n,backgroundColor:f,boxShadow:"none"},focused:{borderColor:s,backgroundColor:f,boxShadow:b},error:{borderColor:r,backgroundColor:f,boxShadow:m},disabled:{borderColor:c,backgroundColor:l,boxShadow:"none"}}}},Uf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1.5,dotRadius:3,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,dotRadius:4,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,dotRadius:5,axisColor:"grey600",gridColor:"grey200",labelColor:"grey600",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","purple500"]},soft:{defaultColors:["primary300","secondary300","teal300","lime400","pink400","purple400","cyan400"]},bold:{defaultColors:["primary500","secondary500","teal600","orange600","pink600","purple600","cyan600"]}}}),Gf=e=>({defaultGap:"sm",defaultPadding:"none"}),qf=e=>({sizes:{small:"24px",medium:"36px",large:"48px"},strokeWidths:{small:"2px",medium:"3px",large:"4px"},arc:{minAngle:40,maxAngle:290},animation:{loopInterval:800,showingDuration:250,contentShowingDuration:300}}),Kf=e=>({container:{sizes:{small:{gap:"xs"},medium:{gap:"sm"},large:{gap:"md"}}},item:{defaultColor:"grey900",text:{color:"black",disabledColor:"grey500"},shapes:{circular:{container:{borderRadius:"full"}},rounded:{container:{borderRadius:"md"}}},sizes:{small:{container:{size:"sm-md"},text:{fontSize:"small"},buttonSize:"sm",icon:{size:"xs",weight:"bold"}},medium:{container:{size:"md"},text:{fontSize:"medium"},buttonSize:"md",icon:{size:"sm",weight:"bold"}},large:{container:{size:"md-lg"},text:{fontSize:"large"},buttonSize:"lg",icon:{size:"sm-md",weight:"bold"}}}}}),Yf=e=>({defaultSize:"md",defaultVariant:"default",sizes:{sm:{strokeWidth:1,strokeColor:"white",labelColor:"grey700",labelFontSize:10,legendFontSize:12,legendSpacing:8},md:{strokeWidth:2,strokeColor:"white",labelColor:"grey700",labelFontSize:12,legendFontSize:14,legendSpacing:12},lg:{strokeWidth:3,strokeColor:"white",labelColor:"grey700",labelFontSize:14,legendFontSize:16,legendSpacing:16}},variants:{default:{defaultColors:["primary","secondary","success","warning","danger","info","cyan500"]},soft:{defaultColors:["primary200","secondary200","lime300","orange300","pink300","purple300","cyan300"]},outlined:{defaultColors:["primary500","secondary500","teal700","orange700","pink700","purple700","cyan700"]}}}),Xf=e=>({defaultVariant:"soft",defaultSize:"md",sizes:{sm:{height:"2xs",borderRadius:"xs"},md:{height:"xs",borderRadius:"sm"},lg:{height:"sm",borderRadius:"md"}},variants:{soft:{containerBackgroundColor:"grey100",defaultProgressColor:"primary"},outlined:{containerBackgroundColor:"white",containerBorderWidth:"thin",defaultProgressColor:"primary"},plain:{containerBackgroundColor:"white",defaultProgressColor:"primary"}}}),Qf=e=>({defaultColor:"primary",defaultSize:"md",uncheckedBorderColor:"grey400",disabledColor:"grey300",disabledTextColor:"grey500",textColor:"grey900",sizes:{sm:{labelFontSize:"small",labelPaddingLeft:"xs",indicatorSize:"xs",indicatorInnerSize:"2xs",borderRadius:"full",borderWidth:"thin",horizontalGap:"sm",verticalGap:"xs"},md:{labelFontSize:"medium",labelPaddingLeft:"sm",indicatorSize:"sm",indicatorInnerSize:"xs",borderRadius:"full",borderWidth:"thin",horizontalGap:"md",verticalGap:"sm"},lg:{labelFontSize:"large",labelPaddingLeft:"sm-md",indicatorSize:"24px",indicatorInnerSize:"sm",borderRadius:"full",borderWidth:"thin",horizontalGap:"lg",verticalGap:"md"}},button:{borderColor:"grey300",activeBorderColor:"primary",solidBackground:"primary",solidTextColor:"white",outlineTextColor:"grey900",disabledBackground:"grey100",sizes:{sm:{paddingHorizontal:"sm",paddingVertical:"2xs",fontSize:"small",borderRadius:"sm"},md:{paddingHorizontal:"md",paddingVertical:"xs",fontSize:"medium",borderRadius:"md"},lg:{paddingHorizontal:"lg",paddingVertical:"sm",fontSize:"large",borderRadius:"lg"}}},animation:{duration:200,easing:"ease-out"}}),Jf=e=>{const n="grey300",r="danger",s="grey300",l="grey100",c="grey400",u="grey100",f="grey200",p="white",g="transparent",b="thin",m="thick";return{defaultColor:"primary",defaultSize:"md",defaultVariant:"outlined",defaultCorner:"circle",squircleBorderRadii:{circle:"999px",rounded:"8px"},labelColor:"grey700",disabledLabelColor:c,valueColor:"grey900",placeholderColor:"grey500",helperTextColor:"grey600",errorColor:r,iconColor:"grey600",disabledContentColor:c,disabledOpacity:.6,sizes:{sm:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",borderWidth:"thin",iconSize:"sm",gap:"xs",dropdownPaddingVertical:"xs",dropdownPaddingHorizontal:"sm"},md:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",borderWidth:"thin",iconSize:"sm-md",gap:"sm",dropdownPaddingVertical:"sm",dropdownPaddingHorizontal:"md"},lg:{paddingVertical:"md",paddingHorizontal:"lg",fontSize:"large",borderWidth:"thin",iconSize:"md",gap:"md",dropdownPaddingVertical:"md",dropdownPaddingHorizontal:"lg"}},variants:{outlined:{default:{backgroundColor:g,borderColor:n,borderWidth:b},hover:{backgroundColor:"grey100",borderColor:n,borderWidth:b},focused:{backgroundColor:g,borderColor:"primary",borderWidth:m},disabled:{backgroundColor:g,borderColor:s,borderWidth:b},errored:{backgroundColor:g,borderColor:r,borderWidth:b}},filled:{default:{backgroundColor:u,borderColor:g,borderWidth:b},hover:{backgroundColor:f,borderColor:g,borderWidth:b},focused:{backgroundColor:p,borderColor:"primary",borderWidth:m},disabled:{backgroundColor:l,borderColor:g,borderWidth:b},errored:{backgroundColor:p,borderColor:r,borderWidth:b}}},animation:{duration:200,easing:"ease-out"},dropdown:{backgroundColor:p,borderColor:n,shadow:"md",offset:"sm",zIndex:1e3,maxHeight:200,borderRadiusForCircle:"xl",borderRadiusForRounded:"md",itemTextColor:"grey900",itemSelectedTextColor:"grey900",itemHoverBackgroundColor:"grey100",itemSelectedBackgroundColor:"white",emptyTextColor:"grey500"}}},e1=e=>({animation:{duration:1500,gradient:{start:"grey100",middle:"grey200",end:"grey100"},transition:{backgroundDuration:250,contentFadeDuration:200}},container:{rectangle:{borderRadius:"none",opacity:1},rounded:{borderRadius:"md",opacity:1},circle:{borderRadius:"full",opacity:1},transparent:{borderRadius:"none",opacity:0}}}),t1=e=>({defaultColor:"primary",defaultSize:"md",activeColor:"primary",inactiveColor:"grey300",handleColor:"white",disabledOpacity:.5,disabledTextColor:"grey500",textColor:"grey900",sizes:{sm:{trackWidth:28,trackHeight:16,handleSize:12,handleMargin:2,labelFontSize:"small",labelPaddingLeft:"xs"},md:{trackWidth:44,trackHeight:22,handleSize:18,handleMargin:2,labelFontSize:"medium",labelPaddingLeft:"sm"}},animation:{duration:200,easing:"ease-out"}}),n1=e=>({borderColor:"grey300",borderRadius:`${e.radii.md}px`,headerBgColor:"transparent",headerTextColor:"grey600",headerFontWeight:"bold",headerPadding:`${e.spaces.md}px`,rowBgColor:"grey100",rowBgColorAlt:"white",rowBgColorHover:"grey200",rowBgColorSelected:"orange100",rowBorderColor:"grey300",cellPadding:`${e.spaces.md}px`,cellTextColor:"grey900",cellFontSize:`${e.__hd__.text.fontSizes.small}px`,sortIndicatorColor:"grey400",sortIndicatorActiveColor:"primary",filterBgColor:"grey100",filterBorderColor:"grey300",filterPadding:`${e.spaces.sm}px`,formBgColor:"grey100",formBorderColor:"grey300",formPadding:`${e.spaces.md}px`,chipBgColor:"white",chipBorderColor:"grey300",chipTextColor:"grey900",chipPadding:`${e.spaces.xs}px ${e.spaces.sm}px`,chipBorderRadius:`${e.radii.sm}px`,linkColor:"primary",linkHoverColor:"primary400",noDataTextColor:"grey500"}),r1=e=>({defaultVariant:"solid",defaultColor:"primary",defaultRadius:"full",defaultSize:"md",sizes:{sm:{paddingVertical:"2xs",paddingHorizontal:"xs",fontSize:"xs",gap:"2xs",iconSize:"xs"},md:{paddingVertical:"xs",paddingHorizontal:"sm",fontSize:"small",gap:"xs",iconSize:"sm"},lg:{paddingVertical:"sm",paddingHorizontal:"md",fontSize:"medium",gap:"sm",iconSize:"sm-md"}}}),i1=e=>({defaultSize:"md",defaultFormat:"24h",borderRadii:{input:"md",popup:"lg"},sizes:{sm:{inputHeight:"xl",inputPaddingHorizontal:"sm",inputFontSize:"small",iconSize:"sm",popupPadding:"sm",wheelItemHeight:28,wheelWidth:48,wheelFontSize:"small"},md:{inputHeight:"2xl",inputPaddingHorizontal:"md",inputFontSize:"medium",iconSize:"sm-md",popupPadding:"md",wheelItemHeight:36,wheelWidth:56,wheelFontSize:"medium"},lg:{inputHeight:"3xl",inputPaddingHorizontal:"lg",inputFontSize:"large",iconSize:"md",popupPadding:"lg",wheelItemHeight:44,wheelWidth:64,wheelFontSize:"large"}},colors:{inputBorder:"grey300",inputFocusBorder:"primary",inputErrorBorder:"danger",inputBg:"white",inputText:"grey900",inputPlaceholder:"grey500",labelText:"grey700",helperText:"grey600",errorText:"danger",wheelBg:"white",wheelText:"grey600",wheelSelectedBg:"primary100",wheelSelectedText:"grey900",clearButtonColor:"grey500",clearButtonHoverColor:"grey700",separatorColor:"grey400"},popup:{offset:"sm",shadow:"lg",zIndex:110},wheel:{visibleItems:3}}),o1=e=>{const n="sm";return{defaultBackgroundColor:"grey800",defaultTextColor:"white",defaultPlacement:"bottom",container:{padding:"sm",borderRadius:"md",shadow:"md",zIndex:9999,maxWidth:"300px"},text:{fontSize:"small"},positioning:{spacing:n,placements:{top:{bottom:"100%",left:"50%",transform:"translateX(-50%)",mb:n},bottom:{top:"100%",left:"50%",transform:"translateX(-50%)",mt:n},left:{top:"50%",right:"100%",transform:"translateY(-50%)",mr:n},right:{top:"50%",left:"100%",transform:"translateY(-50%)",ml:n}}}}},s1=e=>({animation:{minScale:.92,maxScale:1,minOpacity:.7,maxOpacity:1,springConfig:{mass:.5}}}),a1=e=>({defaultAccentColor:"#00adef",aspectRatio:56.25,playerSettings:{autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,controls:!0}}),l1=e=>({art:zf(),base:Df(),button:Pf(),divider:Vf(),header:Zf(e),input:Nf(e),list:Gf(),loading:qf(),pagination:Kf(),skeleton:e1(),touchable:s1(),vimeo:a1(),carousel:Wf(),accordion:Of(),tag:r1(),checkbox:Hf(),select:Jf(),progress:Xf(),avatar:Ff(),tooltip:o1(),barChart:Lf(),pieChart:Yf(),lineChart:Uf(),datepicker:Bf(),timepicker:i1(),switch:t1(),table:n1(e),radio:Qf()}),ux=Zl(Xn.space),dx=Vl(Xn.size),fx=Hl(Xn.borderWidth),hx=Bl(Xn.radius),px=As(Xn.fontSize),gx=Ul(Xn.fontSize),mx=Gl(),Hd=Nl(Xn.font),yx={spaces:ux,sizes:dx,colors:ks,radii:hx,borderWidths:fx,fonts:Hd,zIndex:Fr,__hd__:{text:{fontSizes:px,lineHeights:gx,fontWeights:mx,fonts:Hd}}};function c1(){const e=yx,n=l1(e);return{...e,__hd__:{...e.__hd__,...n}}}const hs=c1(),pe=wn.styled,On=wn.keyframes,Ct=wn.css,u1=(e,n)=>!["theme","themeFontSize","themeFontWeight","themeTypeface","themePosition","color","bg","bgColor","backgroundColor","opacity","margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my","padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py","gap","borderRadius","r","radius","borderBottomLeftRadius","bbl","borderBottomRightRadius","bbr","borderTopLeftRadius","btl","borderTopRightRadius","btr","borderWidth","b","borderBottomWidth","bb","borderTopWidth","bt","borderLeftWidth","bl","borderRightWidth","br","borderColor","bc","borderBottomColor","bb","borderTopColor","bt","borderLeftColor","bl","borderRightColor","br","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","fontStyle","textTransform","textDecoration","themeColor","useRichText","width","height","minWidth","maxWidth","minHeight","maxHeight","display","alignItems","alignContent","justifyContent","flexWrap","flexDirection","flex","flexGrow","flexShrink","flexBasis","alignSelf","position","top","right","bottom","left","overflow","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","whiteSpace","textOverflow","overflowY","overflowX","fullWidth","fullHeight","fw","fh","absoluteFill"].includes(e),bx=e=>typeof e=="function"?e(hs):e?{...hs,...e}:hs,xx=({theme:e,children:n})=>{const r=bx(e);return d.jsx(wn.StyleSheetManager,{shouldForwardProp:u1,children:d.jsx(wn.ThemeProvider,{theme:r,children:n})})},Re=wn.useTheme,At=()=>typeof document>"u",Xi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ui=Object.keys(Xi),js=e=>Xe.isObject(e)&&("xs"in e||"sm"in e||"md"in e||"lg"in e||"xl"in e),tn=(e,n)=>js(e)?Object.fromEntries(Object.entries(e).map(([r,s])=>[r,n(s)])):n(e),jl=e=>Xe.reduce(e,(n,r,s)=>(Xe.forEach(r,(l,c)=>{Xe.has(n,c)||Xe.set(n,c,{}),Xe.set(n,[c,s],l)}),n),{}),d1=(e,n)=>{const r=Object.fromEntries(Object.keys(e).map(f=>[f,ql(e[f])])),s=jl(r),l=Object.fromEntries(Ui.map(f=>[f,n(s[f])])),c=jl(l);return Object.fromEntries(Object.entries(c).map(([f,p])=>[f,h1(p)]))},f1=(e,n)=>{if(!js(e))return e;switch(n){case"xs":return e.xs??e.sm??e.md??e.lg??e.xl;case"sm":return e.sm??e.xs??e.md??e.lg??e.xl;case"md":return e.md??e.sm??e.xs??e.lg??e.xl;case"lg":return e.lg??e.md??e.sm??e.xs??e.xl;case"xl":return e.xl??e.lg??e.md??e.sm??e.xs}},ql=e=>Object.fromEntries(Object.keys(Xi).map(n=>[n,f1(e,n)])),h1=e=>{let n=e.xs;const r={xs:n};for(let s=1;s<Ui.length;s++){const l=Ui[s],c=e[l];Xe.isEqual(c,n)||(r[l]=c,n=c)}return Object.keys(r).length===1?r.xs:r},ui=e=>{const[n,r]=Xe.partition(Object.entries(e),([c,u])=>js(u)),s=Object.fromEntries(n.map(([c,u])=>[c,ql(u)])),l=Xe.compact(Ui.map(c=>{const u=Object.fromEntries(Object.keys(s).map(p=>[p,s[p][c]]));if(c==="xs"){const p={...Object.fromEntries(r),...u};return Xe.isEmpty(p)?null:Ct(p)}if(Xe.isEmpty(u))return null;const f=`(min-width: ${Xi[c]}px)`;return Ct`
|
|
28
28
|
@media ${f} {
|
|
29
|
-
${
|
|
29
|
+
${Ct(u)}
|
|
30
30
|
}
|
|
31
|
-
`}));return lt`${a}`},Ab={bgColor:{property:"backgroundColor",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},borderColor:{property:"borderColor",scale:"colors"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderBottomColor:{property:"borderBottomColor",scale:"colors"},borderLeftColor:{property:"borderLeftColor",scale:"colors"},borderRightColor:{property:"borderRightColor",scale:"colors"}},Tb={m:{property:"margin",scale:"spaces"},mt:{property:"marginTop",scale:"spaces"},mb:{property:"marginBottom",scale:"spaces"},ml:{property:"marginLeft",scale:"spaces"},mr:{property:"marginRight",scale:"spaces"},mx:{property:"marginInline",scale:"spaces"},my:{property:"marginBlock",scale:"spaces"},p:{property:"padding",scale:"spaces"},pt:{property:"paddingTop",scale:"spaces"},pb:{property:"paddingBottom",scale:"spaces"},pl:{property:"paddingLeft",scale:"spaces"},pr:{property:"paddingRight",scale:"spaces"},px:{property:"paddingInline",scale:"spaces"},py:{property:"paddingBlock",scale:"spaces"},margin:{property:"margin",scale:"spaces"},marginBottom:{property:"marginBottom",scale:"spaces"},marginLeft:{property:"marginLeft",scale:"spaces"},marginRight:{property:"marginRight",scale:"spaces"},marginTop:{property:"marginTop",scale:"spaces"},marginX:{property:"marginInline",scale:"spaces"},marginY:{property:"marginBlock",scale:"spaces"},padding:{property:"padding",scale:"spaces"},paddingBottom:{property:"paddingBottom",scale:"spaces"},paddingLeft:{property:"paddingLeft",scale:"spaces"},paddingRight:{property:"paddingRight",scale:"spaces"},paddingTop:{property:"paddingTop",scale:"spaces"},paddingX:{property:"paddingInline",scale:"spaces"},paddingY:{property:"paddingBlock",scale:"spaces"},gap:{property:"gap",scale:"spaces"}},Rb={bbl:{property:"borderBottomLeftRadius",scale:"radii"},bbr:{property:"borderBottomRightRadius",scale:"radii"},btl:{property:"borderTopLeftRadius",scale:"radii"},btr:{property:"borderTopRightRadius",scale:"radii"},r:{property:"borderRadius",scale:"radii"},radius:{property:"borderRadius",scale:"radii"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRadius:{property:"borderRadius",scale:"radii"}},Ib={b:{property:"borderWidth",scale:"borderWidths"},bb:{property:"borderBottomWidth",scale:"borderWidths"},bt:{property:"borderTopWidth",scale:"borderWidths"},bl:{property:"borderLeftWidth",scale:"borderWidths"},br:{property:"borderRightWidth",scale:"borderWidths"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderBottomWidth:{property:"borderBottomWidth",scale:"borderWidths"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderLeftWidth:{property:"borderLeftWidth",scale:"borderWidths"},borderRightWidth:{property:"borderRightWidth",scale:"borderWidths"}},w0={...Ab,...Tb,...Rb,...Ib},_0=["alignContent","alignItems","alignSelf","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","position","top","right","bottom","left","overflow","width","minWidth","maxWidth","height","minHeight","maxHeight","opacity","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","willChange","whiteSpace","textOverflow","overflowY","overflowX"],bl=["absoluteFill","fullWidth","fullHeight","fw","fh"],C0={absoluteFill:{position:"absolute",top:0,bottom:0,left:0,right:0},fullWidth:{width:"100%"},fullHeight:{height:"100%"},fw:{width:"100%"},fh:{height:"100%"}},S0=(e,n,i)=>{const s=w0[n],a=i[n];if(!a)return;const{scale:l,property:d}=s;switch(l){case"colors":return{[d]:Yt(a,f=>e.colors[f])};case"spaces":return{[d]:Yt(a,f=>e.spaces[f])};case"radii":return{[d]:Yt(a,f=>e.radii[f])};case"borderWidths":return{[d]:Yt(a,f=>e.borderWidths[f])}}},E0=(e,n)=>Object.keys(n).reduce((s,a)=>({...s,...S0(e,a,n)}),{}),Mb=e=>bl.reduce((n,i)=>e[i]?{...n,...C0[i]}:n,{}),k0=Object.keys(w0),$0=(e,n)=>{const i=Ne.pick(n,k0),s=Ne.pick(n,[..._0]),a=Ne.pick(n,[...bl]);return Jr({...E0(e,i),...Mb(a),...s})},A0=ue.div(({theme:e,...n})=>$0(e,n));function Fb({children:e,style:n,"data-testid":i,...s},a){return m.jsx(A0,{...s,style:n,ref:a,"data-testid":i,children:e})}const L=c.forwardRef(Fb),vt=(e,n)=>typeof n=="number"?`${n}px`:Ne.isString(n)?xr(n)?`${e.sizes[n]}px`:n:"auto",T0=e=>new RegExp("\\p{Emoji}","u").test(e)&&e.length<=2,R0=e=>Ne.isString(e)&&e.includes("icon-"),I0=e=>{const n=[".jpg",".jpeg",".png",".gif",".webp",".svg"],i=e.toLowerCase();return Ne.isString(e)&&(n.some(s=>i.endsWith(s))||e.startsWith("data:image/")||e.startsWith("http"))},M0=e=>Ne.isString(e)&&e.startsWith("<svg"),F0=({art:e,width:n,height:i,style:s,"data-testid":a,...l})=>{const d=be(),f=d.__hd__.art.defaultBrandSize||d.__hd__.art.defaultSize,h=vt(d,n??f),p=vt(d,i??f);return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:h,height:p,style:s,"data-testid":a,...l,children:e})},O0=({art:e,size:n,style:i,"data-testid":s,...a})=>{const l=be(),d=l.__hd__.art.defaultEmojiSize||l.__hd__.art.defaultSize,f=vt(l,n??d),h=typeof f=="string"&&f.endsWith("px")?parseInt(f,10):l.__hd__.text.fontSizes[d]??24,p=l.__hd__.text.lineHeights[d]?`${l.__hd__.text.lineHeights[d]/h}`:"1";return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:f,height:f,style:{...i,fontSize:f,lineHeight:p},"data-testid":s,...a,children:e})},xl=({art:e,size:n,color:i="currentColor",weight:s="regular",style:a,"data-testid":l,...d})=>{const f=be(),h=f.__hd__.art.defaultIconSize||f.__hd__.art.defaultSize,p=vt(f,n??h),x=e;if(!x)return process.env.NODE_ENV!=="production"&&console.warn(`[IconArt] Icon component not found for art="${e}". This should not happen with TypeScript checks.`),null;const w=Wf(i)?f.colors[i]:i;return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:p,height:p,style:a,"data-testid":l,...d,children:m.jsx(x,{size:p,color:w,weight:s,style:a})})},Ob=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),c.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),zb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),Lb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,48V208l-80-80Z",opacity:"0.2"}),c.createElement("path",{d:"M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z"}))]]),jb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M136,128,56,208V48Z",opacity:"0.2"}),c.createElement("path",{d:"M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z"}))]]),Db=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),c.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Pb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),c.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),Wb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),c.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),Bb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Hb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),Zb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),Vb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),Nb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),c.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Ub=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm56.49-92.49a12,12,0,0,1-17,17L162,131l-5.51,5.52a12,12,0,0,1-17-17L145,114l-5.52-5.51a12,12,0,0,1,17-17L162,97l5.51-5.52a12,12,0,0,1,17,17L179,114Zm-68,17a12,12,0,0,1-17,0L94,131l-5.51,5.52a12,12,0,0,1-17-17L77,114l-5.52-5.51a12,12,0,0,1,17-17L94,97l5.51-5.52a12,12,0,0,1,17,17L111,114l5.52,5.51A12,12,0,0,1,116.49,136.49ZM144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm-18.34,98.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32L99.31,112ZM128,192a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm61.66-69.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm60.24-117.76L176.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L168,120.49l-11.76,11.75a6,6,0,0,1-8.48-8.48L159.51,112l-11.75-11.76a6,6,0,0,1,8.48-8.48L168,103.51l11.76-11.75a6,6,0,0,1,8.48,8.48Zm-80,0L96.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L88,120.49,76.24,132.24a6,6,0,0,1-8.48-8.48L79.51,112,67.76,100.24a6,6,0,0,1,8.48-8.48L88,103.51,99.76,91.76a6,6,0,0,1,8.48,8.48ZM138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM186.83,98.83,173.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L168,117.66l-13.17,13.17a4,4,0,0,1-5.66-5.66L162.34,112,149.17,98.83a4,4,0,0,1,5.66-5.66L168,106.34l13.17-13.17a4,4,0,1,1,5.66,5.66Zm-80,0L93.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L88,117.66,74.83,130.83a4,4,0,0,1-5.66-5.66L82.34,112,69.17,98.83a4,4,0,0,1,5.66-5.66L88,106.34l13.17-13.17a4,4,0,0,1,5.66,5.66ZM136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Gb=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),qb=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var Kb=Object.defineProperty,es=Object.getOwnPropertySymbols,z0=Object.prototype.hasOwnProperty,L0=Object.prototype.propertyIsEnumerable,ud=(e,n,i)=>n in e?Kb(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,dd=(e,n)=>{for(var i in n||(n={}))z0.call(n,i)&&ud(e,i,n[i]);if(es)for(var i of es(n))L0.call(n,i)&&ud(e,i,n[i]);return e},fd=(e,n)=>{var i={};for(var s in e)z0.call(e,s)&&n.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&es)for(var s of es(e))n.indexOf(s)<0&&L0.call(e,s)&&(i[s]=e[s]);return i};const j0=c.forwardRef((e,n)=>{const i=e,{alt:s,color:a,size:l,weight:d,mirrored:f,children:h,weights:p}=i,x=fd(i,["alt","color","size","weight","mirrored","children","weights"]),w=c.useContext(qb),{color:_="currentColor",size:v,weight:C="regular",mirrored:R=!1}=w,k=fd(w,["color","size","weight","mirrored"]);return c.createElement("svg",dd(dd({ref:n,xmlns:"http://www.w3.org/2000/svg",width:l??v,height:l??v,fill:a??_,viewBox:"0 0 256 256",transform:f||R?"scale(-1, 1)":void 0},k),x),!!s&&c.createElement("title",null,s),h,p.get(d??C))});j0.displayName="IconBase";const Bt=j0;var Yb=Object.defineProperty,Xb=Object.defineProperties,Qb=Object.getOwnPropertyDescriptors,hd=Object.getOwnPropertySymbols,Jb=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,pd=(e,n,i)=>n in e?Yb(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,tx=(e,n)=>{for(var i in n||(n={}))Jb.call(n,i)&&pd(e,i,n[i]);if(hd)for(var i of hd(n))ex.call(n,i)&&pd(e,i,n[i]);return e},nx=(e,n)=>Xb(e,Qb(n));const vl=c.forwardRef((e,n)=>c.createElement(Bt,nx(tx({ref:n},e),{weights:Ob})));vl.displayName="ArrowRight";var rx=Object.defineProperty,ix=Object.defineProperties,ox=Object.getOwnPropertyDescriptors,gd=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,ax=Object.prototype.propertyIsEnumerable,md=(e,n,i)=>n in e?rx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,lx=(e,n)=>{for(var i in n||(n={}))sx.call(n,i)&&md(e,i,n[i]);if(gd)for(var i of gd(n))ax.call(n,i)&&md(e,i,n[i]);return e},cx=(e,n)=>ix(e,ox(n));const wl=c.forwardRef((e,n)=>c.createElement(Bt,cx(lx({ref:n},e),{weights:zb})));wl.displayName="CalendarBlank";var ux=Object.defineProperty,dx=Object.defineProperties,fx=Object.getOwnPropertyDescriptors,yd=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,bd=(e,n,i)=>n in e?ux(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,gx=(e,n)=>{for(var i in n||(n={}))hx.call(n,i)&&bd(e,i,n[i]);if(yd)for(var i of yd(n))px.call(n,i)&&bd(e,i,n[i]);return e},mx=(e,n)=>dx(e,fx(n));const D0=c.forwardRef((e,n)=>c.createElement(Bt,mx(gx({ref:n},e),{weights:Lb})));D0.displayName="CaretDoubleLeft";var yx=Object.defineProperty,bx=Object.defineProperties,xx=Object.getOwnPropertyDescriptors,xd=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,vd=(e,n,i)=>n in e?yx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,_x=(e,n)=>{for(var i in n||(n={}))vx.call(n,i)&&vd(e,i,n[i]);if(xd)for(var i of xd(n))wx.call(n,i)&&vd(e,i,n[i]);return e},Cx=(e,n)=>bx(e,xx(n));const P0=c.forwardRef((e,n)=>c.createElement(Bt,Cx(_x({ref:n},e),{weights:jb})));P0.displayName="CaretDoubleRight";var Sx=Object.defineProperty,Ex=Object.defineProperties,kx=Object.getOwnPropertyDescriptors,wd=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,_d=(e,n,i)=>n in e?Sx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,Tx=(e,n)=>{for(var i in n||(n={}))$x.call(n,i)&&_d(e,i,n[i]);if(wd)for(var i of wd(n))Ax.call(n,i)&&_d(e,i,n[i]);return e},Rx=(e,n)=>Ex(e,kx(n));const _l=c.forwardRef((e,n)=>c.createElement(Bt,Rx(Tx({ref:n},e),{weights:Db})));_l.displayName="CaretDown";var Ix=Object.defineProperty,Mx=Object.defineProperties,Fx=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,zx=Object.prototype.propertyIsEnumerable,Sd=(e,n,i)=>n in e?Ix(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,Lx=(e,n)=>{for(var i in n||(n={}))Ox.call(n,i)&&Sd(e,i,n[i]);if(Cd)for(var i of Cd(n))zx.call(n,i)&&Sd(e,i,n[i]);return e},jx=(e,n)=>Mx(e,Fx(n));const us=c.forwardRef((e,n)=>c.createElement(Bt,jx(Lx({ref:n},e),{weights:Pb})));us.displayName="CaretLeft";var Dx=Object.defineProperty,Px=Object.defineProperties,Wx=Object.getOwnPropertyDescriptors,Ed=Object.getOwnPropertySymbols,Bx=Object.prototype.hasOwnProperty,Hx=Object.prototype.propertyIsEnumerable,kd=(e,n,i)=>n in e?Dx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,Zx=(e,n)=>{for(var i in n||(n={}))Bx.call(n,i)&&kd(e,i,n[i]);if(Ed)for(var i of Ed(n))Hx.call(n,i)&&kd(e,i,n[i]);return e},Vx=(e,n)=>Px(e,Wx(n));const ei=c.forwardRef((e,n)=>c.createElement(Bt,Vx(Zx({ref:n},e),{weights:Wb})));ei.displayName="CaretRight";var Nx=Object.defineProperty,Ux=Object.defineProperties,Gx=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Kx=Object.prototype.propertyIsEnumerable,Ad=(e,n,i)=>n in e?Nx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,Yx=(e,n)=>{for(var i in n||(n={}))qx.call(n,i)&&Ad(e,i,n[i]);if($d)for(var i of $d(n))Kx.call(n,i)&&Ad(e,i,n[i]);return e},Xx=(e,n)=>Ux(e,Gx(n));const W0=c.forwardRef((e,n)=>c.createElement(Bt,Xx(Yx({ref:n},e),{weights:Bb})));W0.displayName="Check";var Qx=Object.defineProperty,Jx=Object.defineProperties,e6=Object.getOwnPropertyDescriptors,Td=Object.getOwnPropertySymbols,t6=Object.prototype.hasOwnProperty,n6=Object.prototype.propertyIsEnumerable,Rd=(e,n,i)=>n in e?Qx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,r6=(e,n)=>{for(var i in n||(n={}))t6.call(n,i)&&Rd(e,i,n[i]);if(Td)for(var i of Td(n))n6.call(n,i)&&Rd(e,i,n[i]);return e},i6=(e,n)=>Jx(e,e6(n));const Cl=c.forwardRef((e,n)=>c.createElement(Bt,i6(r6({ref:n},e),{weights:Hb})));Cl.displayName="Clock";var o6=Object.defineProperty,s6=Object.defineProperties,a6=Object.getOwnPropertyDescriptors,Id=Object.getOwnPropertySymbols,l6=Object.prototype.hasOwnProperty,c6=Object.prototype.propertyIsEnumerable,Md=(e,n,i)=>n in e?o6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,u6=(e,n)=>{for(var i in n||(n={}))l6.call(n,i)&&Md(e,i,n[i]);if(Id)for(var i of Id(n))c6.call(n,i)&&Md(e,i,n[i]);return e},d6=(e,n)=>s6(e,a6(n));const B0=c.forwardRef((e,n)=>c.createElement(Bt,d6(u6({ref:n},e),{weights:Zb})));B0.displayName="Eye";var f6=Object.defineProperty,h6=Object.defineProperties,p6=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,g6=Object.prototype.hasOwnProperty,m6=Object.prototype.propertyIsEnumerable,Od=(e,n,i)=>n in e?f6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,y6=(e,n)=>{for(var i in n||(n={}))g6.call(n,i)&&Od(e,i,n[i]);if(Fd)for(var i of Fd(n))m6.call(n,i)&&Od(e,i,n[i]);return e},b6=(e,n)=>h6(e,p6(n));const H0=c.forwardRef((e,n)=>c.createElement(Bt,b6(y6({ref:n},e),{weights:Vb})));H0.displayName="EyeSlash";var x6=Object.defineProperty,v6=Object.defineProperties,w6=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,_6=Object.prototype.hasOwnProperty,C6=Object.prototype.propertyIsEnumerable,Ld=(e,n,i)=>n in e?x6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,S6=(e,n)=>{for(var i in n||(n={}))_6.call(n,i)&&Ld(e,i,n[i]);if(zd)for(var i of zd(n))C6.call(n,i)&&Ld(e,i,n[i]);return e},E6=(e,n)=>v6(e,w6(n));const Z0=c.forwardRef((e,n)=>c.createElement(Bt,E6(S6({ref:n},e),{weights:Nb})));Z0.displayName="MagnifyingGlass";var k6=Object.defineProperty,$6=Object.defineProperties,A6=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,R6=Object.prototype.propertyIsEnumerable,Dd=(e,n,i)=>n in e?k6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,I6=(e,n)=>{for(var i in n||(n={}))T6.call(n,i)&&Dd(e,i,n[i]);if(jd)for(var i of jd(n))R6.call(n,i)&&Dd(e,i,n[i]);return e},M6=(e,n)=>$6(e,A6(n));const V0=c.forwardRef((e,n)=>c.createElement(Bt,M6(I6({ref:n},e),{weights:Ub})));V0.displayName="SmileyXEyes";var F6=Object.defineProperty,O6=Object.defineProperties,z6=Object.getOwnPropertyDescriptors,Pd=Object.getOwnPropertySymbols,L6=Object.prototype.hasOwnProperty,j6=Object.prototype.propertyIsEnumerable,Wd=(e,n,i)=>n in e?F6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,D6=(e,n)=>{for(var i in n||(n={}))L6.call(n,i)&&Wd(e,i,n[i]);if(Pd)for(var i of Pd(n))j6.call(n,i)&&Wd(e,i,n[i]);return e},P6=(e,n)=>O6(e,z6(n));const ds=c.forwardRef((e,n)=>c.createElement(Bt,P6(D6({ref:n},e),{weights:Gb})));ds.displayName="X";function W6(e){const n=c.useRef(void 0);return c.useEffect(()=>{n.current=e},[e]),n.current}const B6=tr.keyframes`
|
|
31
|
+
`}));return Ct`${l}`},vx={bgColor:{property:"backgroundColor",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},borderColor:{property:"borderColor",scale:"colors"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderBottomColor:{property:"borderBottomColor",scale:"colors"},borderLeftColor:{property:"borderLeftColor",scale:"colors"},borderRightColor:{property:"borderRightColor",scale:"colors"}},wx={m:{property:"margin",scale:"spaces"},mt:{property:"marginTop",scale:"spaces"},mb:{property:"marginBottom",scale:"spaces"},ml:{property:"marginLeft",scale:"spaces"},mr:{property:"marginRight",scale:"spaces"},mx:{property:"marginInline",scale:"spaces"},my:{property:"marginBlock",scale:"spaces"},p:{property:"padding",scale:"spaces"},pt:{property:"paddingTop",scale:"spaces"},pb:{property:"paddingBottom",scale:"spaces"},pl:{property:"paddingLeft",scale:"spaces"},pr:{property:"paddingRight",scale:"spaces"},px:{property:"paddingInline",scale:"spaces"},py:{property:"paddingBlock",scale:"spaces"},margin:{property:"margin",scale:"spaces"},marginBottom:{property:"marginBottom",scale:"spaces"},marginLeft:{property:"marginLeft",scale:"spaces"},marginRight:{property:"marginRight",scale:"spaces"},marginTop:{property:"marginTop",scale:"spaces"},marginX:{property:"marginInline",scale:"spaces"},marginY:{property:"marginBlock",scale:"spaces"},padding:{property:"padding",scale:"spaces"},paddingBottom:{property:"paddingBottom",scale:"spaces"},paddingLeft:{property:"paddingLeft",scale:"spaces"},paddingRight:{property:"paddingRight",scale:"spaces"},paddingTop:{property:"paddingTop",scale:"spaces"},paddingX:{property:"paddingInline",scale:"spaces"},paddingY:{property:"paddingBlock",scale:"spaces"},gap:{property:"gap",scale:"spaces"}},_x={bbl:{property:"borderBottomLeftRadius",scale:"radii"},bbr:{property:"borderBottomRightRadius",scale:"radii"},btl:{property:"borderTopLeftRadius",scale:"radii"},btr:{property:"borderTopRightRadius",scale:"radii"},r:{property:"borderRadius",scale:"radii"},radius:{property:"borderRadius",scale:"radii"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRadius:{property:"borderRadius",scale:"radii"}},Sx={b:{property:"borderWidth",scale:"borderWidths"},bb:{property:"borderBottomWidth",scale:"borderWidths"},bt:{property:"borderTopWidth",scale:"borderWidths"},bl:{property:"borderLeftWidth",scale:"borderWidths"},br:{property:"borderRightWidth",scale:"borderWidths"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderBottomWidth:{property:"borderBottomWidth",scale:"borderWidths"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderLeftWidth:{property:"borderLeftWidth",scale:"borderWidths"},borderRightWidth:{property:"borderRightWidth",scale:"borderWidths"}},p1={...vx,...wx,..._x,...Sx},g1=["alignContent","alignItems","alignSelf","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","position","top","right","bottom","left","overflow","width","minWidth","maxWidth","height","minHeight","maxHeight","opacity","cursor","transition","transform","animation","willChange","pointerEvents","userSelect","resize","boxShadow","textShadow","filter","backdropFilter","mixBlendMode","isolation","zIndex","marginInline","marginBlock","paddingInline","paddingBlock","willChange","whiteSpace","textOverflow","overflowY","overflowX"],Kl=["absoluteFill","fullWidth","fullHeight","fw","fh"],m1={absoluteFill:{position:"absolute",top:0,bottom:0,left:0,right:0},fullWidth:{width:"100%"},fullHeight:{height:"100%"},fw:{width:"100%"},fh:{height:"100%"}},y1=(e,n,r)=>{const s=p1[n],l=r[n];if(!l)return;const{scale:c,property:u}=s;switch(c){case"colors":return{[u]:tn(l,f=>e.colors[f])};case"spaces":return{[u]:tn(l,f=>e.spaces[f])};case"radii":return{[u]:tn(l,f=>e.radii[f])};case"borderWidths":return{[u]:tn(l,f=>e.borderWidths[f])}}},b1=(e,n)=>Object.keys(n).reduce((s,l)=>({...s,...y1(e,l,n)}),{}),Cx=e=>Kl.reduce((n,r)=>e[r]?{...n,...m1[r]}:n,{}),x1=Object.keys(p1),v1=(e,n)=>{const r=Xe.pick(n,x1),s=Xe.pick(n,[...g1]),l=Xe.pick(n,[...Kl]);return ui({...b1(e,r),...Cx(l),...s})},w1=pe.div(({theme:e,...n})=>v1(e,n));function Ex({children:e,style:n,"data-testid":r,...s},l){return d.jsx(w1,{...s,style:n,ref:l,"data-testid":r,children:e})}const I=a.forwardRef(Ex),xt=(e,n)=>typeof n=="number"?`${n}px`:Xe.isString(n)?Mr(n)?`${e.sizes[n]}px`:n:"auto",_1=e=>new RegExp("\\p{Emoji}","u").test(e)&&e.length<=2,S1=e=>Xe.isString(e)&&e.includes("icon-"),C1=e=>{const n=[".jpg",".jpeg",".png",".gif",".webp",".svg"],r=e.toLowerCase();return Xe.isString(e)&&(n.some(s=>r.endsWith(s))||e.startsWith("data:image/")||e.startsWith("http"))},E1=e=>Xe.isString(e)&&e.startsWith("<svg"),$1=({art:e,width:n,height:r,style:s,"data-testid":l,...c})=>{const u=Re(),f=u.__hd__.art.defaultBrandSize||u.__hd__.art.defaultSize,p=xt(u,n??f),g=xt(u,r??f);return d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:p,height:g,style:s,"data-testid":l,...c,children:e})},k1=({art:e,size:n,style:r,"data-testid":s,...l})=>{const c=Re(),u=c.__hd__.art.defaultEmojiSize||c.__hd__.art.defaultSize,f=xt(c,n??u),p=typeof f=="string"&&f.endsWith("px")?parseInt(f,10):c.__hd__.text.fontSizes[u]??24,g=c.__hd__.text.lineHeights[u]?`${c.__hd__.text.lineHeights[u]/p}`:"1";return d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:f,height:f,style:{...r,fontSize:f,lineHeight:g},"data-testid":s,...l,children:e})},Yl=({art:e,size:n,color:r="currentColor",weight:s="regular",style:l,"data-testid":c,...u})=>{const f=Re(),p=f.__hd__.art.defaultIconSize||f.__hd__.art.defaultSize,g=xt(f,n??p),b=e;if(!b)return process.env.NODE_ENV!=="production"&&console.warn(`[IconArt] Icon component not found for art="${e}". This should not happen with TypeScript checks.`),null;const m=Tf(r)?f.colors[r]:r;return d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:g,height:g,style:l,"data-testid":c,...u,children:d.jsx(b,{size:g,color:m,weight:s,style:l})})},$x=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"}),a.createElement("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"}))]]),kx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),a.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),Ax=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),a.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]),jx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),Tx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,48V208l-80-80Z",opacity:"0.2"}),a.createElement("path",{d:"M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z"}))]]),Rx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M136,128,56,208V48Z",opacity:"0.2"}),a.createElement("path",{d:"M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z"}))]]),Mx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),a.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Ix=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),a.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),Ox=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),a.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),zx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),a.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Fx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),Lx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),a.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),Dx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),a.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),Px=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),a.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),Wx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),a.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Hx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),a.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),Bx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm56.49-92.49a12,12,0,0,1-17,17L162,131l-5.51,5.52a12,12,0,0,1-17-17L145,114l-5.52-5.51a12,12,0,0,1,17-17L162,97l5.51-5.52a12,12,0,0,1,17,17L179,114Zm-68,17a12,12,0,0,1-17,0L94,131l-5.51,5.52a12,12,0,0,1-17-17L77,114l-5.52-5.51a12,12,0,0,1,17-17L94,97l5.51-5.52a12,12,0,0,1,17,17L111,114l5.52,5.51A12,12,0,0,1,116.49,136.49ZM144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm-18.34,98.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32L99.31,112ZM128,192a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm61.66-69.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm60.24-117.76L176.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L168,120.49l-11.76,11.75a6,6,0,0,1-8.48-8.48L159.51,112l-11.75-11.76a6,6,0,0,1,8.48-8.48L168,103.51l11.76-11.75a6,6,0,0,1,8.48,8.48Zm-80,0L96.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L88,120.49,76.24,132.24a6,6,0,0,1-8.48-8.48L79.51,112,67.76,100.24a6,6,0,0,1,8.48-8.48L88,103.51,99.76,91.76a6,6,0,0,1,8.48,8.48ZM138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM186.83,98.83,173.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L168,117.66l-13.17,13.17a4,4,0,0,1-5.66-5.66L162.34,112,149.17,98.83a4,4,0,0,1,5.66-5.66L168,106.34l13.17-13.17a4,4,0,1,1,5.66,5.66Zm-80,0L93.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L88,117.66,74.83,130.83a4,4,0,0,1-5.66-5.66L82.34,112,69.17,98.83a4,4,0,0,1,5.66-5.66L88,106.34l13.17-13.17a4,4,0,0,1,5.66,5.66ZM136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Vx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),a.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Zx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM188,204H68V72H188ZM76,20A12,12,0,0,1,88,8h80a12,12,0,0,1,0,24H88A12,12,0,0,1,76,20Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),a.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,56a8,8,0,0,1-8,8h-8V208a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,56ZM88,32h80a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM82,24a6,6,0,0,1,6-6h80a6,6,0,0,1,0,12H88A6,6,0,0,1,82,24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM84,24a4,4,0,0,1,4-4h80a4,4,0,0,1,0,8H88A4,4,0,0,1,84,24Z"}))]]),Nx=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),a.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Ux=a.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var Gx=Object.defineProperty,xs=Object.getOwnPropertySymbols,A1=Object.prototype.hasOwnProperty,j1=Object.prototype.propertyIsEnumerable,Bd=(e,n,r)=>n in e?Gx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Vd=(e,n)=>{for(var r in n||(n={}))A1.call(n,r)&&Bd(e,r,n[r]);if(xs)for(var r of xs(n))j1.call(n,r)&&Bd(e,r,n[r]);return e},Zd=(e,n)=>{var r={};for(var s in e)A1.call(e,s)&&n.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&xs)for(var s of xs(e))n.indexOf(s)<0&&j1.call(e,s)&&(r[s]=e[s]);return r};const T1=a.forwardRef((e,n)=>{const r=e,{alt:s,color:l,size:c,weight:u,mirrored:f,children:p,weights:g}=r,b=Zd(r,["alt","color","size","weight","mirrored","children","weights"]),m=a.useContext(Ux),{color:x="currentColor",size:v,weight:_="regular",mirrored:j=!1}=m,k=Zd(m,["color","size","weight","mirrored"]);return a.createElement("svg",Vd(Vd({ref:n,xmlns:"http://www.w3.org/2000/svg",width:c??v,height:c??v,fill:l??x,viewBox:"0 0 256 256",transform:f||j?"scale(-1, 1)":void 0},k),b),!!s&&a.createElement("title",null,s),p,g.get(u??_))});T1.displayName="IconBase";const vt=T1;var qx=Object.defineProperty,Kx=Object.defineProperties,Yx=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Xx=Object.prototype.hasOwnProperty,Qx=Object.prototype.propertyIsEnumerable,Ud=(e,n,r)=>n in e?qx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Jx=(e,n)=>{for(var r in n||(n={}))Xx.call(n,r)&&Ud(e,r,n[r]);if(Nd)for(var r of Nd(n))Qx.call(n,r)&&Ud(e,r,n[r]);return e},e6=(e,n)=>Kx(e,Yx(n));const R1=a.forwardRef((e,n)=>a.createElement(vt,e6(Jx({ref:n},e),{weights:$x})));R1.displayName="ArrowDown";var t6=Object.defineProperty,n6=Object.defineProperties,r6=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,i6=Object.prototype.hasOwnProperty,o6=Object.prototype.propertyIsEnumerable,qd=(e,n,r)=>n in e?t6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,s6=(e,n)=>{for(var r in n||(n={}))i6.call(n,r)&&qd(e,r,n[r]);if(Gd)for(var r of Gd(n))o6.call(n,r)&&qd(e,r,n[r]);return e},a6=(e,n)=>n6(e,r6(n));const Xl=a.forwardRef((e,n)=>a.createElement(vt,a6(s6({ref:n},e),{weights:kx})));Xl.displayName="ArrowRight";var l6=Object.defineProperty,c6=Object.defineProperties,u6=Object.getOwnPropertyDescriptors,Kd=Object.getOwnPropertySymbols,d6=Object.prototype.hasOwnProperty,f6=Object.prototype.propertyIsEnumerable,Yd=(e,n,r)=>n in e?l6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,h6=(e,n)=>{for(var r in n||(n={}))d6.call(n,r)&&Yd(e,r,n[r]);if(Kd)for(var r of Kd(n))f6.call(n,r)&&Yd(e,r,n[r]);return e},p6=(e,n)=>c6(e,u6(n));const M1=a.forwardRef((e,n)=>a.createElement(vt,p6(h6({ref:n},e),{weights:Ax})));M1.displayName="ArrowUp";var g6=Object.defineProperty,m6=Object.defineProperties,y6=Object.getOwnPropertyDescriptors,Xd=Object.getOwnPropertySymbols,b6=Object.prototype.hasOwnProperty,x6=Object.prototype.propertyIsEnumerable,Qd=(e,n,r)=>n in e?g6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,v6=(e,n)=>{for(var r in n||(n={}))b6.call(n,r)&&Qd(e,r,n[r]);if(Xd)for(var r of Xd(n))x6.call(n,r)&&Qd(e,r,n[r]);return e},w6=(e,n)=>m6(e,y6(n));const Ql=a.forwardRef((e,n)=>a.createElement(vt,w6(v6({ref:n},e),{weights:jx})));Ql.displayName="CalendarBlank";var _6=Object.defineProperty,S6=Object.defineProperties,C6=Object.getOwnPropertyDescriptors,Jd=Object.getOwnPropertySymbols,E6=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,e0=(e,n,r)=>n in e?_6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,k6=(e,n)=>{for(var r in n||(n={}))E6.call(n,r)&&e0(e,r,n[r]);if(Jd)for(var r of Jd(n))$6.call(n,r)&&e0(e,r,n[r]);return e},A6=(e,n)=>S6(e,C6(n));const Jl=a.forwardRef((e,n)=>a.createElement(vt,A6(k6({ref:n},e),{weights:Tx})));Jl.displayName="CaretDoubleLeft";var j6=Object.defineProperty,T6=Object.defineProperties,R6=Object.getOwnPropertyDescriptors,t0=Object.getOwnPropertySymbols,M6=Object.prototype.hasOwnProperty,I6=Object.prototype.propertyIsEnumerable,n0=(e,n,r)=>n in e?j6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,O6=(e,n)=>{for(var r in n||(n={}))M6.call(n,r)&&n0(e,r,n[r]);if(t0)for(var r of t0(n))I6.call(n,r)&&n0(e,r,n[r]);return e},z6=(e,n)=>T6(e,R6(n));const ec=a.forwardRef((e,n)=>a.createElement(vt,z6(O6({ref:n},e),{weights:Rx})));ec.displayName="CaretDoubleRight";var F6=Object.defineProperty,L6=Object.defineProperties,D6=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,P6=Object.prototype.hasOwnProperty,W6=Object.prototype.propertyIsEnumerable,i0=(e,n,r)=>n in e?F6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,H6=(e,n)=>{for(var r in n||(n={}))P6.call(n,r)&&i0(e,r,n[r]);if(r0)for(var r of r0(n))W6.call(n,r)&&i0(e,r,n[r]);return e},B6=(e,n)=>L6(e,D6(n));const tc=a.forwardRef((e,n)=>a.createElement(vt,B6(H6({ref:n},e),{weights:Mx})));tc.displayName="CaretDown";var V6=Object.defineProperty,Z6=Object.defineProperties,N6=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,U6=Object.prototype.hasOwnProperty,G6=Object.prototype.propertyIsEnumerable,s0=(e,n,r)=>n in e?V6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,q6=(e,n)=>{for(var r in n||(n={}))U6.call(n,r)&&s0(e,r,n[r]);if(o0)for(var r of o0(n))G6.call(n,r)&&s0(e,r,n[r]);return e},K6=(e,n)=>Z6(e,N6(n));const Qi=a.forwardRef((e,n)=>a.createElement(vt,K6(q6({ref:n},e),{weights:Ix})));Qi.displayName="CaretLeft";var Y6=Object.defineProperty,X6=Object.defineProperties,Q6=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertySymbols,J6=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,l0=(e,n,r)=>n in e?Y6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,tv=(e,n)=>{for(var r in n||(n={}))J6.call(n,r)&&l0(e,r,n[r]);if(a0)for(var r of a0(n))ev.call(n,r)&&l0(e,r,n[r]);return e},nv=(e,n)=>X6(e,Q6(n));const Lr=a.forwardRef((e,n)=>a.createElement(vt,nv(tv({ref:n},e),{weights:Ox})));Lr.displayName="CaretRight";var rv=Object.defineProperty,iv=Object.defineProperties,ov=Object.getOwnPropertyDescriptors,c0=Object.getOwnPropertySymbols,sv=Object.prototype.hasOwnProperty,av=Object.prototype.propertyIsEnumerable,u0=(e,n,r)=>n in e?rv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,lv=(e,n)=>{for(var r in n||(n={}))sv.call(n,r)&&u0(e,r,n[r]);if(c0)for(var r of c0(n))av.call(n,r)&&u0(e,r,n[r]);return e},cv=(e,n)=>iv(e,ov(n));const I1=a.forwardRef((e,n)=>a.createElement(vt,cv(lv({ref:n},e),{weights:zx})));I1.displayName="Check";var uv=Object.defineProperty,dv=Object.defineProperties,fv=Object.getOwnPropertyDescriptors,d0=Object.getOwnPropertySymbols,hv=Object.prototype.hasOwnProperty,pv=Object.prototype.propertyIsEnumerable,f0=(e,n,r)=>n in e?uv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,gv=(e,n)=>{for(var r in n||(n={}))hv.call(n,r)&&f0(e,r,n[r]);if(d0)for(var r of d0(n))pv.call(n,r)&&f0(e,r,n[r]);return e},mv=(e,n)=>dv(e,fv(n));const nc=a.forwardRef((e,n)=>a.createElement(vt,mv(gv({ref:n},e),{weights:Fx})));nc.displayName="Clock";var yv=Object.defineProperty,bv=Object.defineProperties,xv=Object.getOwnPropertyDescriptors,h0=Object.getOwnPropertySymbols,vv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,p0=(e,n,r)=>n in e?yv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,_v=(e,n)=>{for(var r in n||(n={}))vv.call(n,r)&&p0(e,r,n[r]);if(h0)for(var r of h0(n))wv.call(n,r)&&p0(e,r,n[r]);return e},Sv=(e,n)=>bv(e,xv(n));const O1=a.forwardRef((e,n)=>a.createElement(vt,Sv(_v({ref:n},e),{weights:Lx})));O1.displayName="Eye";var Cv=Object.defineProperty,Ev=Object.defineProperties,$v=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,kv=Object.prototype.hasOwnProperty,Av=Object.prototype.propertyIsEnumerable,m0=(e,n,r)=>n in e?Cv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,jv=(e,n)=>{for(var r in n||(n={}))kv.call(n,r)&&m0(e,r,n[r]);if(g0)for(var r of g0(n))Av.call(n,r)&&m0(e,r,n[r]);return e},Tv=(e,n)=>Ev(e,$v(n));const z1=a.forwardRef((e,n)=>a.createElement(vt,Tv(jv({ref:n},e),{weights:Dx})));z1.displayName="EyeSlash";var Rv=Object.defineProperty,Mv=Object.defineProperties,Iv=Object.getOwnPropertyDescriptors,y0=Object.getOwnPropertySymbols,Ov=Object.prototype.hasOwnProperty,zv=Object.prototype.propertyIsEnumerable,b0=(e,n,r)=>n in e?Rv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Fv=(e,n)=>{for(var r in n||(n={}))Ov.call(n,r)&&b0(e,r,n[r]);if(y0)for(var r of y0(n))zv.call(n,r)&&b0(e,r,n[r]);return e},Lv=(e,n)=>Mv(e,Iv(n));const F1=a.forwardRef((e,n)=>a.createElement(vt,Lv(Fv({ref:n},e),{weights:Px})));F1.displayName="Funnel";var Dv=Object.defineProperty,Pv=Object.defineProperties,Wv=Object.getOwnPropertyDescriptors,x0=Object.getOwnPropertySymbols,Hv=Object.prototype.hasOwnProperty,Bv=Object.prototype.propertyIsEnumerable,v0=(e,n,r)=>n in e?Dv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Vv=(e,n)=>{for(var r in n||(n={}))Hv.call(n,r)&&v0(e,r,n[r]);if(x0)for(var r of x0(n))Bv.call(n,r)&&v0(e,r,n[r]);return e},Zv=(e,n)=>Pv(e,Wv(n));const L1=a.forwardRef((e,n)=>a.createElement(vt,Zv(Vv({ref:n},e),{weights:Wx})));L1.displayName="MagnifyingGlass";var Nv=Object.defineProperty,Uv=Object.defineProperties,Gv=Object.getOwnPropertyDescriptors,w0=Object.getOwnPropertySymbols,qv=Object.prototype.hasOwnProperty,Kv=Object.prototype.propertyIsEnumerable,_0=(e,n,r)=>n in e?Nv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Yv=(e,n)=>{for(var r in n||(n={}))qv.call(n,r)&&_0(e,r,n[r]);if(w0)for(var r of w0(n))Kv.call(n,r)&&_0(e,r,n[r]);return e},Xv=(e,n)=>Uv(e,Gv(n));const D1=a.forwardRef((e,n)=>a.createElement(vt,Xv(Yv({ref:n},e),{weights:Hx})));D1.displayName="Plus";var Qv=Object.defineProperty,Jv=Object.defineProperties,ew=Object.getOwnPropertyDescriptors,S0=Object.getOwnPropertySymbols,tw=Object.prototype.hasOwnProperty,nw=Object.prototype.propertyIsEnumerable,C0=(e,n,r)=>n in e?Qv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,rw=(e,n)=>{for(var r in n||(n={}))tw.call(n,r)&&C0(e,r,n[r]);if(S0)for(var r of S0(n))nw.call(n,r)&&C0(e,r,n[r]);return e},iw=(e,n)=>Jv(e,ew(n));const P1=a.forwardRef((e,n)=>a.createElement(vt,iw(rw({ref:n},e),{weights:Bx})));P1.displayName="SmileyXEyes";var ow=Object.defineProperty,sw=Object.defineProperties,aw=Object.getOwnPropertyDescriptors,E0=Object.getOwnPropertySymbols,lw=Object.prototype.hasOwnProperty,cw=Object.prototype.propertyIsEnumerable,$0=(e,n,r)=>n in e?ow(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,uw=(e,n)=>{for(var r in n||(n={}))lw.call(n,r)&&$0(e,r,n[r]);if(E0)for(var r of E0(n))cw.call(n,r)&&$0(e,r,n[r]);return e},dw=(e,n)=>sw(e,aw(n));const W1=a.forwardRef((e,n)=>a.createElement(vt,dw(uw({ref:n},e),{weights:Vx})));W1.displayName="Trash";var fw=Object.defineProperty,hw=Object.defineProperties,pw=Object.getOwnPropertyDescriptors,k0=Object.getOwnPropertySymbols,gw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,A0=(e,n,r)=>n in e?fw(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,yw=(e,n)=>{for(var r in n||(n={}))gw.call(n,r)&&A0(e,r,n[r]);if(k0)for(var r of k0(n))mw.call(n,r)&&A0(e,r,n[r]);return e},bw=(e,n)=>hw(e,pw(n));const H1=a.forwardRef((e,n)=>a.createElement(vt,bw(yw({ref:n},e),{weights:Zx})));H1.displayName="TrashSimple";var xw=Object.defineProperty,vw=Object.defineProperties,ww=Object.getOwnPropertyDescriptors,j0=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,T0=(e,n,r)=>n in e?xw(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Cw=(e,n)=>{for(var r in n||(n={}))_w.call(n,r)&&T0(e,r,n[r]);if(j0)for(var r of j0(n))Sw.call(n,r)&&T0(e,r,n[r]);return e},Ew=(e,n)=>vw(e,ww(n));const Rn=a.forwardRef((e,n)=>a.createElement(vt,Ew(Cw({ref:n},e),{weights:Nx})));Rn.displayName="X";function $w(e){const n=a.useRef(void 0);return a.useEffect(()=>{n.current=e},[e]),n.current}const kw=wn.keyframes`
|
|
32
32
|
0% {
|
|
33
33
|
background-position: -468px 0;
|
|
34
34
|
}
|
|
35
35
|
100% {
|
|
36
36
|
background-position: 468px 0;
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,Aw=pe.div`
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 100%;
|
|
41
|
-
border-radius: ${({theme:e,$variant:n})=>{const
|
|
42
|
-
background: ${({theme:e,$visible:n})=>{const
|
|
41
|
+
border-radius: ${({theme:e,$variant:n})=>{const r=e.__hd__.skeleton.container[n].borderRadius;switch(n){case"circle":return`${e.radii[r]}px`;case"rounded":return`${e.radii[r]}px`;default:return`${e.radii[r]}px`}}};
|
|
42
|
+
background: ${({theme:e,$visible:n})=>{const r=e.__hd__.skeleton.animation.gradient,s=e.colors[r.start],l=e.colors[r.middle],c=e.colors[r.end];return n?`linear-gradient(
|
|
43
43
|
to right,
|
|
44
44
|
${s} 8%,
|
|
45
|
-
${
|
|
46
|
-
${
|
|
45
|
+
${l} 18%,
|
|
46
|
+
${c} 33%
|
|
47
47
|
)`:s}};
|
|
48
48
|
opacity: ${({theme:e,$variant:n})=>e.__hd__.skeleton.container[n].opacity};
|
|
49
49
|
transition: background ${({theme:e})=>e.__hd__.skeleton.animation.transition.backgroundDuration}ms ease-in-out;
|
|
50
50
|
background-size: 800px 100px;
|
|
51
|
-
animation: ${
|
|
51
|
+
animation: ${kw} ${({theme:e,$duration:n})=>n||e.__hd__.skeleton.animation.duration}ms linear infinite;
|
|
52
52
|
will-change: background-position;
|
|
53
53
|
transform: translateZ(0); /* Force hardware acceleration */
|
|
54
|
-
`,
|
|
54
|
+
`,jw=({visible:e,variant:n,animationDuration:r,children:s,...l})=>{const c=Re(),[u,f]=a.useState(e),p=a.useDeferredValue(e),g=a.useDeferredValue(u),b=c.__hd__.skeleton.animation.transition.backgroundDuration,m=c.__hd__.skeleton.animation.transition.contentFadeDuration;return a.useEffect(()=>{let x;return p?f(!0):x=setTimeout(()=>{f(!1)},b),()=>{x&&clearTimeout(x)}},[b,p]),d.jsxs(I,{...l,position:"relative",children:[d.jsx(I,{fw:!0,fh:!0,position:"relative",opacity:e?0:1,transition:`opacity ${m}ms ease-in-out`,children:s}),(e||p||u||g)&&d.jsx(I,{absoluteFill:!0,opacity:e&&u?1:0,transition:`opacity ${b}ms ease-in-out`,children:d.jsx(Aw,{$variant:n,$duration:r,$visible:!0})})]})},Ji=({visible:e=!0,variant:n="rectangle",children:r,animationDuration:s=1500,...l})=>d.jsx(jw,{visible:e,variant:n,animationDuration:s,...l,children:r}),Tw=pe.p.attrs(({as:e})=>({as:e||"p"}))(({$themeFontSize:e,$themeFontWeight:n,$themeColor:r,$themeTypeface:s,theme:l,$textAlign:c,$textTransform:u,$textDecoration:f,$numberOfLines:p})=>{const g=l,b=tn(n,v=>g.__hd__.text.fontWeights[v]),m={fontSize:tn(e,v=>`${g.__hd__.text.fontSizes[v]}px`),lineHeight:tn(e,v=>`${g.__hd__.text.lineHeights[v]}px`),letterSpacing:tn(e,v=>`${g.__hd__.text.fontSizes[v]*.03}px`)},x=p?d1({numberOfLines:p,themeFontSize:e},({numberOfLines:v,themeFontSize:_})=>({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:v,minHeight:`${g.__hd__.text.lineHeights[_]*v}px`,maxHeight:`${g.__hd__.text.lineHeights[_]*v}px`,overflow:"hidden"})):{};return ui({...m,...x,fontFamily:tn(s,v=>g.fonts[v]),fontWeight:b,color:tn(r,v=>g.colors[v]),textAlign:c,textTransform:u,textDecoration:f,margin:0})}),B1=[{pattern:/<strong>(.*?)<\/strong>/g,props:{fontWeight:"bold"}}],Rw=(e,n,r)=>{if(typeof e!="string")return e;let s=0;const l=[];return B1.forEach(({pattern:c,props:u})=>{Array.from(e.matchAll(c)).forEach(p=>{const[g,b]=p,m=p.index;m>s&&l.push(e.slice(s,m)),l.push(a.createElement(n,{...r,...u,key:m},b)),s=m+g.length})}),s<e.length&&l.push(e.slice(s)),l},Mw=e=>function(r){const{useRichText:s=!1,children:l}=r;if(!s||typeof l!="string")return d.jsx(e,{...r,children:l});const c=Rw(l.toString(),e,r);return d.jsx(e,{...r,children:c})};function Iw({children:e,fontSize:n="medium",fontWeight:r="regular",color:s="grey900",typeface:l="neutral",textAlign:c,textTransform:u,textDecoration:f,numberOfLines:p,"data-testid":g,as:b="p",...m},x){return d.jsx(Tw,{...m,$themeFontSize:n,$themeFontWeight:r,$themeColor:s,$themeTypeface:l,$textAlign:c,$textTransform:u,$textDecoration:f,ref:x,"data-testid":g,as:b,$numberOfLines:p,children:e})}const Ow=a.forwardRef(Iw),Oe=Mw(Ow),zw=()=>d.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"center",gap:"2xs",children:[d.jsx(Yl,{art:P1,size:"sm",color:"grey600"}),d.jsx(Oe,{fontSize:"xs",color:"grey600",children:"Error"})]}),Fw=pe.img`
|
|
55
55
|
width: 100%;
|
|
56
56
|
height: 100%;
|
|
57
57
|
object-fit: ${({$objectFit:e})=>e};
|
|
@@ -59,7 +59,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
59
59
|
aspect-ratio: ${({$aspectRatio:e})=>e};
|
|
60
60
|
mix-blend-mode: ${({$mixBlendMode:e})=>e};
|
|
61
61
|
image-rendering: ${({$imageRendering:e})=>e};
|
|
62
|
-
`,U0=({art:e,width:n,height:i,style:s,"data-testid":a,alt:l,fallback:d,useSkeleton:f=!0,objectFit:h,objectPosition:p,aspectRatio:x,mixBlendMode:w,imageRendering:_,...v})=>{const C=be(),[R,k]=c.useState(!0),[T,E]=c.useState(!1),I=C.__hd__.art.defaultImageSize||C.__hd__.art.defaultSize,$=Yt(n,te=>vt(C,te??I)),M=Yt(i,te=>vt(C,te??I)),z=v.r||v.radius||v.borderRadius||"md",j=W6(e);c.useEffect(()=>{!Ne.isNil(j)&&j!==e&&(k(!0),E(!1))},[e,j]);const H=()=>{k(!1)},se=()=>{E(!0),k(!1)};return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:$,height:M,overflow:"hidden",style:s,"data-testid":a,...v,children:m.jsxs(Zi,{visible:R,width:$,height:M,r:z,children:[T&&m.jsxs(L,{width:$,height:M,r:z,display:"flex",alignItems:"center",justifyContent:"center",bgColor:"grey200",children:[!R&&d,!R&&!d&&!l&&m.jsx(Qe,{fontSize:"xs",color:"grey600",children:d||l}),!R&&!d&&!l&&K6()]}),!T&&(!Ct()||!f)&&m.jsx(Y6,{src:e,alt:Ne.isString(l)?l:"Image",onLoad:H,onError:se,"data-testid":a?`${a}-image`:void 0,$objectFit:h,$objectPosition:p,$aspectRatio:x,$mixBlendMode:w,$imageRendering:_}),!T&&Ct()&&f&&l]})})},G0=({art:e,width:n,height:i,style:s,"data-testid":a,...l})=>{const d=be(),f=d.__hd__.art.defaultSvgSize||d.__hd__.art.defaultSize,h=vt(d,n??f),p=vt(d,i??f);return m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",width:h,height:p,overflow:"hidden",style:s,"data-testid":a,dangerouslySetInnerHTML:{__html:e},...l})},pt=e=>{const{art:n,type:i}=e;return i==="image"||Ne.isString(n)&&I0(n)?m.jsx(U0,{...e}):i==="svg"||Ne.isString(n)&&M0(n)?m.jsx(G0,{...e}):i==="emoji"||Ne.isString(n)&&T0(n)?m.jsx(O0,{...e}):i==="icon"||Ne.isString(n)&&R0(n)?m.jsx(xl,{...e}):i==="brand"?m.jsx(F0,{...e}):m.jsx(m.Fragment,{})},X6=e=>e==="sm"||e==="md"||e==="lg",q0=({src:e,name:n,size:i,...s})=>{var x;const a=be(),l=a.__hd__.avatar,d=i||l.defaultSize,f=vt(a,d);let h=l.defaultFallbackTextSize;typeof d=="string"&&X6(d)&&l.sizes[d]&&(h=l.sizes[d].fallbackTextSize);const p=l.fallbackBackgroundColor;return m.jsx(L,{width:f,height:f,r:"full",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...s,children:e?m.jsx(pt,{type:"image",art:e,width:"100%",height:"100%",objectFit:"cover"}):m.jsx(L,{width:"100%",height:"100%",bgColor:p,display:"flex",justifyContent:"center",alignItems:"center",children:m.jsx(Qe,{color:"white",fontSize:h,fontWeight:"semibold",children:((x=n==null?void 0:n.charAt(0))==null?void 0:x.toUpperCase())||"U"})})})};function Q6(e){const[n,i]=c.useState(()=>(Ct(),!1));return c.useEffect(()=>{if(Ct())return;const s=window.matchMedia(e),a=l=>{i(l.matches)};return s.addEventListener?s.addEventListener("change",a):s.addListener(a),i(s.matches),()=>{s.removeEventListener?s.removeEventListener("change",a):s.removeListener(a)}},[e]),n}const ti=(e="xl")=>{const[n,i]=c.useState(()=>(typeof window>"u"||!window.matchMedia,e));return c.useEffect(()=>{if(Ct())return;const a=["xl","lg","md","sm"].map(f=>({key:f,mql:window.matchMedia(`(min-width: ${Hi[f]}px)`)})),l=()=>{for(const{key:f,mql:h}of a)if(h.matches)return f;return"xs"},d=()=>{i(l())};return d(),a.forEach(({mql:f})=>{f.addEventListener?f.addEventListener("change",d):f.addListener(d)}),()=>{a.forEach(({mql:f})=>{f.removeEventListener?f.removeEventListener("change",d):f.removeListener(d)})}},[]),n};function J6(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}const K0=()=>{const[e,n]=c.useState(()=>Ct()?{width:void 0,height:void 0}:{width:void 0,height:void 0});return c.useEffect(()=>{if(Ct())return;function i(){n(J6())}return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),e},vr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function el(e,n,i,s){const a=c.useRef(n);vr(()=>{a.current=n},[n]),c.useEffect(()=>{const l=(i==null?void 0:i.current)??window;if(!(l&&l.addEventListener))return;const d=f=>{a.current(f)};return l.addEventListener(e,d,s),()=>{l.removeEventListener(e,d,s)}},[e,i,s])}function fs(e){const[n,i]=c.useState(!1),s=ti(),a=s==="xs"||s==="sm",l=()=>{a||i(!0)},d=()=>{a||i(!1)};return el("mouseenter",l,e),el("mouseleave",d,e),a?!1:n}const ev=()=>typeof window>"u"||!window.navigator?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: fine)").matches?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: coarse)").matches?{isMouse:!1,isTouch:!0}:{isMouse:!0,isTouch:!1};function Sl(){const[e,n]=c.useState(ev);return c.useEffect(()=>{const i=s=>{s.pointerType==="touch"?e.isTouch||n({isMouse:!1,isTouch:!0}):s.pointerType==="mouse"&&(e.isMouse||n({isMouse:!0,isTouch:!1}))};return window.addEventListener("pointerdown",i,{passive:!0}),()=>{window.removeEventListener("pointerdown",i)}},[e]),e}var tv="2.0.3",tl=500,Bd="user-agent",Kr="",Hd="?",ts="function",er="undefined",Yr="object",nl="string",Dt="browser",On="cpu",Cn="device",gn="engine",cn="os",Ur="result",Q="name",V="type",X="vendor",J="version",Pt="architecture",Di="major",q="model",Fi="console",Me="mobile",et="tablet",ht="smarttv",_n="wearable",Ia="xr",Oi="embedded",Si="inapp",El="brands",br="formFactors",kl="fullVersionList",Gr="platform",$l="platformVersion",hs="bitness",nr="sec-ch-ua",nv=nr+"-full-version-list",rv=nr+"-arch",iv=nr+"-"+hs,ov=nr+"-form-factors",sv=nr+"-"+Me,av=nr+"-"+q,Y0=nr+"-"+Gr,lv=Y0+"-version",X0=[El,kl,Me,q,Gr,$l,Pt,br,hs],jo="Amazon",Br="Apple",Zd="ASUS",Vd="BlackBerry",gr="Google",Nd="Huawei",Ud="Lenovo",Gd="Honor",Do="LG",Ma="Microsoft",Fa="Motorola",Oa="Nvidia",qd="OnePlus",za="OPPO",Ei="Samsung",Kd="Sharp",ki="Sony",La="Xiaomi",ja="Zebra",Yd="Chrome",Xd="Chromium",Xn="Chromecast",cv="Edge",$i="Firefox",Ai="Opera",Da="Facebook",Qd="Sogou",Hr="Mobile ",Ti=" Browser",rl="Windows",uv=typeof window!==er,Wt=uv&&window.navigator?window.navigator:void 0,Qn=Wt&&Wt.userAgentData?Wt.userAgentData:void 0,dv=function(e,n){var i={},s=n;if(!ns(n)){s={};for(var a in n)for(var l in n[a])s[l]=n[a][l].concat(s[l]?s[l]:[])}for(var d in e)i[d]=s[d]&&s[d].length%2===0?s[d].concat(e[d]):e[d];return i},ps=function(e){for(var n={},i=0;i<e.length;i++)n[e[i].toUpperCase()]=e[i];return n},il=function(e,n){if(typeof e===Yr&&e.length>0){for(var i in e)if(zn(e[i])==zn(n))return!0;return!1}return ni(e)?zn(n).indexOf(zn(e))!==-1:!1},ns=function(e,n){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(n?ns(e[i]):!1)},ni=function(e){return typeof e===nl},Pa=function(e){if(e){for(var n=[],i=Xr(/\\?\"/g,e).split(","),s=0;s<i.length;s++)if(i[s].indexOf(";")>-1){var a=Pi(i[s]).split(";v=");n[s]={brand:a[0],version:a[1]}}else n[s]=Pi(i[s]);return n}},zn=function(e){return ni(e)?e.toLowerCase():e},Wa=function(e){return ni(e)?Xr(/[^\d\.]/g,e).split(".")[0]:void 0},Ln=function(e){for(var n in e){var i=e[n];typeof i==Yr&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Xr=function(e,n){return ni(n)?n.replace(e,Kr):n},Ri=function(e){return Xr(/\\?\"/g,e)},Pi=function(e,n){if(ni(e))return e=Xr(/^\s\s*/,e),typeof n===er?e:e.substring(0,tl)},Ba=function(e,n){if(!(!e||!n))for(var i=0,s,a,l,d,f,h;i<n.length&&!f;){var p=n[i],x=n[i+1];for(s=a=0;s<p.length&&!f&&p[s];)if(f=p[s++].exec(e),f)for(l=0;l<x.length;l++)h=f[++a],d=x[l],typeof d===Yr&&d.length>0?d.length===2?typeof d[1]==ts?this[d[0]]=d[1].call(this,h):this[d[0]]=d[1]:d.length===3?typeof d[1]===ts&&!(d[1].exec&&d[1].test)?this[d[0]]=h?d[1].call(this,h,d[2]):void 0:this[d[0]]=h?h.replace(d[1],d[2]):void 0:d.length===4&&(this[d[0]]=h?d[3].call(this,h.replace(d[1],d[2])):void 0):this[d]=h||void 0;i+=2}},Jn=function(e,n){for(var i in n)if(typeof n[i]===Yr&&n[i].length>0){for(var s=0;s<n[i].length;s++)if(il(n[i][s],e))return i===Hd?void 0:i}else if(il(n[i],e))return i===Hd?void 0:i;return n.hasOwnProperty("*")?n["*"]:e},Jd={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ef={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},tf={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[J,[Q,Hr+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[J,[Q,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Q,J],[/opios[\/ ]+([\w\.]+)/i],[J,[Q,Ai+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[J,[Q,Ai+" GX"]],[/\bopr\/([\w\.]+)/i],[J,[Q,Ai]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[J,[Q,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[J,[Q,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[Q,J],[/quark(?:pc)?\/([-\w\.]+)/i],[J,[Q,"Quark"]],[/\bddg\/([\w\.]+)/i],[J,[Q,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[J,[Q,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[J,[Q,"WeChat"]],[/konqueror\/([\w\.]+)/i],[J,[Q,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[J,[Q,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[J,[Q,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[J,[Q,"Smart "+Ud+Ti]],[/(avast|avg)\/([\w\.]+)/i],[[Q,/(.+)/,"$1 Secure"+Ti],J],[/\bfocus\/([\w\.]+)/i],[J,[Q,$i+" Focus"]],[/\bopt\/([\w\.]+)/i],[J,[Q,Ai+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[J,[Q,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[J,[Q,"Dolphin"]],[/coast\/([\w\.]+)/i],[J,[Q,Ai+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[J,[Q,"MIUI"+Ti]],[/fxios\/([\w\.-]+)/i],[J,[Q,Hr+$i]],[/\bqihoobrowser\/?([\w\.]*)/i],[J,[Q,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Q,/(.+)/,"$1Browser"],J],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Q,/(.+)/,"$1"+Ti],J],[/samsungbrowser\/([\w\.]+)/i],[J,[Q,Ei+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[J,[Q,Qd+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Q,Qd+" Mobile"],J],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Q,J],[/(lbbrowser|rekonq)/i],[Q],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[J,Q],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Q,Da],J,[V,Si]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[Q,J,[V,Si]],[/\bgsa\/([\w\.]+) .*safari\//i],[J,[Q,"GSA"],[V,Si]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[J,[Q,"TikTok"],[V,Si]],[/\[(linkedin)app\]/i],[Q,[V,Si]],[/(chromium)[\/ ]([-\w\.]+)/i],[Q,J],[/headlesschrome(?:\/([\w\.]+)| )/i],[J,[Q,Yd+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Q,Yd+" WebView"],J],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[J,[Q,"Android"+Ti]],[/chrome\/([\w\.]+) mobile/i],[J,[Q,Hr+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Q,J],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[J,[Q,Hr+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[Q,Hr+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[J,Q],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Q,[J,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[Q,J],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[Q,Hr+$i],J],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Q,"Netscape"],J],[/(wolvic|librewolf)\/([\w\.]+)/i],[Q,J],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[J,[Q,$i+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Q,[J,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Q,[J,/[^\d\.]+./,Kr]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Pt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Pt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Pt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Pt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Pt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Pt,/ower/,Kr,zn]],[/ sun4\w[;\)]/i],[[Pt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Pt,zn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[q,[X,Ei],[V,et]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[q,[X,Ei],[V,Me]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[q,[X,Br],[V,Me]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[q,[X,Br],[V,et]],[/(macintosh);/i],[q,[X,Br]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[q,[X,Kd],[V,Me]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[q,[X,Gd],[V,et]],[/honor([-\w ]+)[;\)]/i],[q,[X,Gd],[V,Me]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[q,[X,Nd],[V,et]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[q,[X,Nd],[V,Me]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[q,/_/g," "],[X,La],[V,et]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[q,/_/g," "],[X,La],[V,Me]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[q,[X,za],[V,Me]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[q,[X,Jn,{OnePlus:["304","403","203"],"*":za}],[V,et]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[q,[X,"BLU"],[V,Me]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[q,[X,"Vivo"],[V,Me]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[q,[X,"Realme"],[V,Me]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[q,[X,Fa],[V,Me]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[q,[X,Fa],[V,et]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[q,[X,Do],[V,et]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[q,[X,Do],[V,Me]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[q,[X,Ud],[V,et]],[/(nokia) (t[12][01])/i],[X,q,[V,et]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[q,/_/g," "],[V,Me],[X,"Nokia"]],[/(pixel (c|tablet))\b/i],[q,[X,gr],[V,et]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[q,[X,gr],[V,Me]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[q,[X,ki],[V,Me]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[q,"Xperia Tablet"],[X,ki],[V,et]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[q,[X,qd],[V,Me]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[q,[X,jo],[V,et]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[q,/(.+)/g,"Fire Phone $1"],[X,jo],[V,Me]],[/(playbook);[-\w\),; ]+(rim)/i],[q,X,[V,et]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[q,[X,Vd],[V,Me]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[q,[X,Zd],[V,et]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[q,[X,Zd],[V,Me]],[/(nexus 9)/i],[q,[X,"HTC"],[V,et]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[X,[q,/_/g," "],[V,Me]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,et]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[q,[X,"TCL"],[V,Me]],[/(itel) ((\w+))/i],[[X,zn],q,[V,Jn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[q,[X,"Acer"],[V,et]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[q,[X,"Meizu"],[V,Me]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[q,[X,"Ulefone"],[V,Me]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[q,[X,"Energizer"],[V,Me]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[q,[X,"Cat"],[V,Me]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[q,[X,"Smartfren"],[V,Me]],[/droid.+; (a(?:015|06[35]|142p?))/i],[q,[X,"Nothing"],[V,Me]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[q,[X,"Archos"],[V,et]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[q,[X,"Archos"],[V,Me]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[X,q,[V,et]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[X,q,[V,Me]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[X,q,[V,et]],[/(surface duo)/i],[q,[X,Ma],[V,et]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[q,[X,"Fairphone"],[V,Me]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[q,[X,Oa],[V,et]],[/(sprint) (\w+)/i],[X,q,[V,Me]],[/(kin\.[onetw]{3})/i],[[q,/\./g," "],[X,Ma],[V,Me]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[q,[X,ja],[V,et]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[q,[X,ja],[V,Me]],[/smart-tv.+(samsung)/i],[X,[V,ht]],[/hbbtv.+maple;(\d+)/i],[[q,/^/,"SmartTV"],[X,Ei],[V,ht]],[/tcast.+(lg)e?. ([-\w]+)/i],[X,q,[V,ht]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[X,Do],[V,ht]],[/(apple) ?tv/i],[X,[q,Br+" TV"],[V,ht]],[/crkey.*devicetype\/chromecast/i],[[q,Xn+" Third Generation"],[X,gr],[V,ht]],[/crkey.*devicetype\/([^/]*)/i],[[q,/^/,"Chromecast "],[X,gr],[V,ht]],[/fuchsia.*crkey/i],[[q,Xn+" Nest Hub"],[X,gr],[V,ht]],[/crkey/i],[[q,Xn],[X,gr],[V,ht]],[/(portaltv)/i],[q,[X,Da],[V,ht]],[/droid.+aft(\w+)( bui|\))/i],[q,[X,jo],[V,ht]],[/(shield \w+ tv)/i],[q,[X,Oa],[V,ht]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[q,[X,Kd],[V,ht]],[/(bravia[\w ]+)( bui|\))/i],[q,[X,ki],[V,ht]],[/(mi(tv|box)-?\w+) bui/i],[q,[X,La],[V,ht]],[/Hbbtv.*(technisat) (.*);/i],[X,q,[V,ht]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[X,Pi],[q,Pi],[V,ht]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[q,[V,ht]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[V,ht]],[/(ouya)/i,/(nintendo) (\w+)/i],[X,q,[V,Fi]],[/droid.+; (shield)( bui|\))/i],[q,[X,Oa],[V,Fi]],[/(playstation \w+)/i],[q,[X,ki],[V,Fi]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[q,[X,Ma],[V,Fi]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[q,[X,Ei],[V,_n]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[X,q,[V,_n]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[q,[X,za],[V,_n]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[q,[X,Br],[V,_n]],[/(opwwe\d{3})/i],[q,[X,qd],[V,_n]],[/(moto 360)/i],[q,[X,Fa],[V,_n]],[/(smartwatch 3)/i],[q,[X,ki],[V,_n]],[/(g watch r)/i],[q,[X,Do],[V,_n]],[/droid.+; (wt63?0{2,3})\)/i],[q,[X,ja],[V,_n]],[/droid.+; (glass) \d/i],[q,[X,gr],[V,Ia]],[/(pico) (4|neo3(?: link|pro)?)/i],[X,q,[V,Ia]],[/(quest( \d| pro)?s?).+vr/i],[q,[X,Da],[V,Ia]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[X,[V,Oi]],[/(aeobc)\b/i],[q,[X,jo],[V,Oi]],[/(homepod).+mac os/i],[q,[X,Br],[V,Oi]],[/windows iot/i],[[V,Oi]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[q,[V,Jn,{mobile:"Mobile",xr:"VR","*":et}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[V,et]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[V,Me]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[q,[X,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[J,[Q,cv+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Q,J],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[J,[Q,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Q,J],[/ladybird\//i],[[Q,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[J,Q]],os:[[/microsoft (windows) (vista|xp)/i],[Q,J],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[Q,[J,Jn,Jd]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[J,Jn,Jd],[Q,rl]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[J,/_/g,"."],[Q,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Q,"macOS"],[J,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[J,[Q,Xn+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[J,[Q,Xn+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[J,[Q,Xn+" Linux"]],[/crkey\/([\d\.]+)/i],[J,[Q,Xn]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[J,Q],[/(ubuntu) ([\w\.]+) like android/i],[[Q,/(.+)/,"$1 Touch"],J],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[Q,J],[/\(bb(10);/i],[J,[Q,Vd]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[J,[Q,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[J,[Q,$i+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[J,[Q,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[J,[Q,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Q,"Chrome OS"],J],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[Q,J],[/(sunos) ?([\w\.\d]*)/i],[[Q,"Solaris"],J],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Q,J]]},Po=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Ln.call(e.init,[[Dt,[Q,J,Di,V]],[On,[Pt]],[Cn,[V,q,X]],[gn,[Q,J]],[cn,[Q,J]]]),Ln.call(e.isIgnore,[[Dt,[J,Di]],[gn,[J]],[cn,[J]]]),Ln.call(e.isIgnoreRgx,[[Dt,/ ?browser$/i],[cn,/ ?os$/i]]),Ln.call(e.toString,[[Dt,[Q,J]],[On,[Pt]],[Cn,[X,q]],[gn,[Q,J]],[cn,[Q,J]]]),e}(),fv=function(e,n){var i=Po.init[n],s=Po.isIgnore[n]||0,a=Po.isIgnoreRgx[n]||0,l=Po.toString[n]||0;function d(){Ln.call(this,i)}return d.prototype.getItem=function(){return e},d.prototype.withClientHints=function(){return Qn?Qn.getHighEntropyValues(X0).then(function(f){return e.setCH(new Q0(f,!1)).parseCH().get()}):e.parseCH().get()},d.prototype.withFeatureCheck=function(){return e.detectFeature().get()},n!=Ur&&(d.prototype.is=function(f){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!il(s,p)&&zn(a?Xr(a,this[p]):this[p])==zn(a?Xr(a,f):f)){if(h=!0,f!=er)break}else if(f==er&&h){h=!h;break}return h},d.prototype.toString=function(){var f=Kr;for(var h in l)typeof this[l[h]]!==er&&(f+=(f?" ":Kr)+this[l[h]]);return f||er}),Qn||(d.prototype.then=function(f){var h=this,p=function(){for(var w in h)h.hasOwnProperty(w)&&(this[w]=h[w])};p.prototype={is:d.prototype.is,toString:d.prototype.toString};var x=new p;return f(x),x}),new d};function Q0(e,n){if(e=e||{},Ln.call(this,X0),n)Ln.call(this,[[El,Pa(e[nr])],[kl,Pa(e[nv])],[Me,/\?1/.test(e[sv])],[q,Ri(e[av])],[Gr,Ri(e[Y0])],[$l,Ri(e[lv])],[Pt,Ri(e[rv])],[br,Pa(e[ov])],[hs,Ri(e[iv])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==er&&(this[i]=e[i])}function nf(e,n,i,s){return this.get=function(a){return a?this.data.hasOwnProperty(a)?this.data[a]:void 0:this.data},this.set=function(a,l){return this.data[a]=l,this},this.setCH=function(a){return this.uaCH=a,this},this.detectFeature=function(){if(Wt&&Wt.userAgent==this.ua)switch(this.itemType){case Dt:Wt.brave&&typeof Wt.brave.isBrave==ts&&this.set(Q,"Brave");break;case Cn:!this.get(V)&&Qn&&Qn[Me]&&this.set(V,Me),this.get(q)=="Macintosh"&&Wt&&typeof Wt.standalone!==er&&Wt.maxTouchPoints&&Wt.maxTouchPoints>2&&this.set(q,"iPad").set(V,et);break;case cn:!this.get(Q)&&Qn&&Qn[Gr]&&this.set(Q,Qn[Gr]);break;case Ur:var a=this.data,l=function(d){return a[d].getItem().detectFeature().get()};this.set(Dt,l(Dt)).set(On,l(On)).set(Cn,l(Cn)).set(gn,l(gn)).set(cn,l(cn))}return this},this.parseUA=function(){return this.itemType!=Ur&&Ba.call(this.data,this.ua,this.rgxMap),this.itemType==Dt&&this.set(Di,Wa(this.get(J))),this},this.parseCH=function(){var a=this.uaCH,l=this.rgxMap;switch(this.itemType){case Dt:case gn:var d=a[kl]||a[El],f;if(d)for(var h in d){var p=d[h].brand||d[h],x=d[h].version;this.itemType==Dt&&!/not.a.brand/i.test(p)&&(!f||/chrom/i.test(f)&&p!=Xd)&&(p=Jn(p,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(Q,p).set(J,x).set(Di,Wa(x)),f=p),this.itemType==gn&&p==Xd&&this.set(J,x)}break;case On:var w=a[Pt];w&&(w&&a[hs]=="64"&&(w+="64"),Ba.call(this.data,w+";",l));break;case Cn:if(a[Me]&&this.set(V,Me),a[q]&&(this.set(q,a[q]),!this.get(V)||!this.get(X))){var _={};Ba.call(_,"droid 9; "+a[q]+")",l),!this.get(V)&&_.type&&this.set(V,_.type),!this.get(X)&&_.vendor&&this.set(X,_.vendor)}if(a[br]){var v;if(typeof a[br]!="string")for(var C=0;!v&&C<a[br].length;)v=Jn(a[br][C++],ef);else v=Jn(a[br],ef);this.set(V,v)}break;case cn:var R=a[Gr];if(R){var k=a[$l];R==rl&&(k=parseInt(Wa(k),10)>=13?"11":"10"),this.set(Q,R).set(J,k)}this.get(Q)==rl&&a[q]=="Xbox"&&this.set(Q,"Xbox").set(J,void 0);break;case Ur:var T=this.data,E=function(I){return T[I].getItem().setCH(a).parseCH().get()};this.set(Dt,E(Dt)).set(On,E(On)).set(Cn,E(Cn)).set(gn,E(gn)).set(cn,E(cn))}return this},Ln.call(this,[["itemType",e],["ua",n],["uaCH",s],["rgxMap",i],["data",fv(this,e)]]),this}function Dn(e,n,i){if(typeof e===Yr?(ns(e,!0)?(typeof n===Yr&&(i=n),n=e):(i=e,n=void 0),e=void 0):typeof e===nl&&!ns(n,!0)&&(i=n,n=void 0),i&&typeof i.append===ts){var s={};i.forEach(function(h,p){s[p]=h}),i=s}if(!(this instanceof Dn))return new Dn(e,n,i).getResult();var a=typeof e===nl?e:i&&i[Bd]?i[Bd]:Wt&&Wt.userAgent?Wt.userAgent:Kr,l=new Q0(i,!0),d=n?dv(tf,n):tf,f=function(h){return h==Ur?function(){return new nf(h,a,d,l).set("ua",a).set(Dt,this.getBrowser()).set(On,this.getCPU()).set(Cn,this.getDevice()).set(gn,this.getEngine()).set(cn,this.getOS()).get()}:function(){return new nf(h,a,d[h],l).parseUA().get()}};return Ln.call(this,[["getBrowser",f(Dt)],["getCPU",f(On)],["getDevice",f(Cn)],["getEngine",f(gn)],["getOS",f(cn)],["getResult",f(Ur)],["getUA",function(){return a}],["setUA",function(h){return ni(h)&&(a=h.length>tl?Pi(h,tl):h),this}]]).setUA(a),this}Dn.VERSION=tv;Dn.BROWSER=ps([Q,J,Di,V]);Dn.CPU=ps([Pt]);Dn.DEVICE=ps([q,X,V,Fi,Me,ht,et,_n,Oi]);Dn.ENGINE=Dn.OS=ps([Q,J]);var J0=(e=>(e.Desktop="Desktop",e.Mobile="Mobile",e.Tablet="Tablet",e.SmartTV="Smart TV",e.Bot="Bot/Crawler",e.Unknown="Unknown",e))(J0||{}),e1=(e=>(e.Chrome="Chrome",e.Firefox="Firefox",e.Safari="Safari",e.Edge="Edge",e.IE="IE/Edge Legacy",e.Opera="Opera",e.Brave="Brave",e.Other="Other",e))(e1||{}),t1=(e=>(e.Windows="Windows",e.macOS="macOS",e.Linux="Linux",e.Android="Android",e.iOS="iOS",e.Other="Other",e))(t1||{});const ol=e=>{const i=new Dn(e).getResult(),a={deviceType:/bot|crawler|spider|crawling/i.test(e)?"Bot/Crawler":hv(i.device.type),browserName:pv(i.browser.name),osName:gv(i.os.name)},l=a.deviceType==="Mobile"||a.deviceType==="Tablet";return{...i,normalized:a,isMobile:l,isDesktop:!l}},hv=e=>{if(!e)return"Desktop";const n=e.toLowerCase();return n==="mobile"?"Mobile":n==="tablet"?"Tablet":n==="smarttv"?"Smart TV":"Unknown"},pv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("brave")?"Brave":n.includes("edge")?"Edge":n.includes("opera")?"Opera":n.includes("ie")||n.includes("trident")?"IE/Edge Legacy":n.includes("chrome")?"Chrome":n.includes("firefox")?"Firefox":n.includes("safari")?"Safari":"Other"},gv=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("windows")?"Windows":n.includes("mac os")?"macOS":["ubuntu","debian","fedora","linux"].some(i=>n.includes(i))?"Linux":n.includes("android")?"Android":n.includes("ios")?"iOS":"Other"},mv=e=>{const[n,i]=c.useState(e?ol(e):void 0);return c.useEffect(()=>{n||i(ol(window.navigator.userAgent))},[n]),n};function Al({anchorRef:e,popupRef:n,offsetValue:i,isOpen:s,useFixedPosition:a=!1}){const l=c.useCallback(()=>{const d=e.current,f=n.current;if(!d||!f)return;const h=d.getBoundingClientRect(),p=f.getBoundingClientRect();if(a){let R=h.bottom+i,k=h.left;k+p.width>window.innerWidth-16&&(k=window.innerWidth-p.width-16),k<16&&(k=16);const T=window.innerHeight-h.bottom-i,E=h.top-i;T<p.height&&E>=p.height&&(R=h.top-p.height-i),f.style.position="fixed",f.style.inset=`${R}px auto auto ${k}px`;return}const x=d.offsetParent;if(!x)return;const w=x.getBoundingClientRect();let _=h.bottom-w.top+i,v=h.left-w.left;v+p.width>w.width-16&&(v=w.width-p.width-16),v<16&&(v=16);const C=h.top-w.top;_+p.height>w.height-16&&C>=p.height+i&&(_=h.top-w.top-p.height-i),f.style.inset=`${_}px auto auto ${v}px`},[e,n,i,a]);c.useLayoutEffect(()=>{s&&requestAnimationFrame(l)},[s,l]),c.useEffect(()=>{if(s)return window.addEventListener("resize",l),a&&window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),a&&window.removeEventListener("scroll",l,!0)}},[s,l,a])}const yv=ue(L)`
|
|
62
|
+
`,V1=({art:e,width:n,height:r,style:s,"data-testid":l,alt:c,fallback:u,useSkeleton:f=!0,objectFit:p,objectPosition:g,aspectRatio:b,mixBlendMode:m,imageRendering:x,...v})=>{const _=Re(),[j,k]=a.useState(!0),[A,$]=a.useState(!1),M=_.__hd__.art.defaultImageSize||_.__hd__.art.defaultSize,E=tn(n,U=>xt(_,U??M)),C=tn(r,U=>xt(_,U??M)),T=v.r||v.radius||v.borderRadius||"md",L=$w(e);a.useEffect(()=>{!Xe.isNil(L)&&L!==e&&(k(!0),$(!1))},[e,L]);const F=()=>{k(!1)},Y=()=>{$(!0),k(!1)};return d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:E,height:C,overflow:"hidden",style:s,"data-testid":l,...v,children:d.jsxs(Ji,{visible:j,width:E,height:C,r:T,children:[A&&d.jsxs(I,{width:E,height:C,r:T,display:"flex",alignItems:"center",justifyContent:"center",bgColor:"grey200",children:[!j&&u,!j&&!u&&!c&&d.jsx(Oe,{fontSize:"xs",color:"grey600",children:u||c}),!j&&!u&&!c&&zw()]}),!A&&(!At()||!f)&&d.jsx(Fw,{src:e,alt:Xe.isString(c)?c:"Image",onLoad:F,onError:Y,"data-testid":l?`${l}-image`:void 0,$objectFit:p,$objectPosition:g,$aspectRatio:b,$mixBlendMode:m,$imageRendering:x}),!A&&At()&&f&&c]})})},Z1=({art:e,width:n,height:r,style:s,"data-testid":l,...c})=>{const u=Re(),f=u.__hd__.art.defaultSvgSize||u.__hd__.art.defaultSize,p=xt(u,n??f),g=xt(u,r??f);return d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:p,height:g,overflow:"hidden",style:s,"data-testid":l,dangerouslySetInnerHTML:{__html:e},...c})},yt=e=>{const{art:n,type:r}=e;return r==="image"||Xe.isString(n)&&C1(n)?d.jsx(V1,{...e}):r==="svg"||Xe.isString(n)&&E1(n)?d.jsx(Z1,{...e}):r==="emoji"||Xe.isString(n)&&_1(n)?d.jsx(k1,{...e}):r==="icon"||Xe.isString(n)&&S1(n)?d.jsx(Yl,{...e}):r==="brand"?d.jsx($1,{...e}):d.jsx(d.Fragment,{})},Lw=e=>e==="sm"||e==="md"||e==="lg",N1=({src:e,name:n,size:r,...s})=>{var b;const l=Re(),c=l.__hd__.avatar,u=r||c.defaultSize,f=xt(l,u);let p=c.defaultFallbackTextSize;typeof u=="string"&&Lw(u)&&c.sizes[u]&&(p=c.sizes[u].fallbackTextSize);const g=c.fallbackBackgroundColor;return d.jsx(I,{width:f,height:f,r:"full",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...s,children:e?d.jsx(yt,{type:"image",art:e,width:"100%",height:"100%",objectFit:"cover"}):d.jsx(I,{width:"100%",height:"100%",bgColor:g,display:"flex",justifyContent:"center",alignItems:"center",children:d.jsx(Oe,{color:"white",fontSize:p,fontWeight:"semibold",children:((b=n==null?void 0:n.charAt(0))==null?void 0:b.toUpperCase())||"U"})})})};function Dw(e){const[n,r]=a.useState(()=>(At(),!1));return a.useEffect(()=>{if(At())return;const s=window.matchMedia(e),l=c=>{r(c.matches)};return s.addEventListener?s.addEventListener("change",l):s.addListener(l),r(s.matches),()=>{s.removeEventListener?s.removeEventListener("change",l):s.removeListener(l)}},[e]),n}const di=(e="xl")=>{const[n,r]=a.useState(()=>(typeof window>"u"||!window.matchMedia,e));return a.useEffect(()=>{if(At())return;const l=["xl","lg","md","sm"].map(f=>({key:f,mql:window.matchMedia(`(min-width: ${Xi[f]}px)`)})),c=()=>{for(const{key:f,mql:p}of l)if(p.matches)return f;return"xs"},u=()=>{r(c())};return u(),l.forEach(({mql:f})=>{f.addEventListener?f.addEventListener("change",u):f.addListener(u)}),()=>{l.forEach(({mql:f})=>{f.removeEventListener?f.removeEventListener("change",u):f.removeListener(u)})}},[]),n};function Pw(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}const U1=()=>{const[e,n]=a.useState(()=>At()?{width:void 0,height:void 0}:{width:void 0,height:void 0});return a.useEffect(()=>{if(At())return;function r(){n(Pw())}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e},Ir=typeof window<"u"?a.useLayoutEffect:a.useEffect;function Tl(e,n,r,s){const l=a.useRef(n);Ir(()=>{l.current=n},[n]),a.useEffect(()=>{const c=(r==null?void 0:r.current)??window;if(!(c&&c.addEventListener))return;const u=f=>{l.current(f)};return c.addEventListener(e,u,s),()=>{c.removeEventListener(e,u,s)}},[e,r,s])}function Ts(e){const[n,r]=a.useState(!1),s=di(),l=s==="xs"||s==="sm",c=()=>{l||r(!0)},u=()=>{l||r(!1)};return Tl("mouseenter",c,e),Tl("mouseleave",u,e),l?!1:n}const Ww=()=>typeof window>"u"||!window.navigator?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: fine)").matches?{isMouse:!0,isTouch:!1}:window.matchMedia("(any-pointer: coarse)").matches?{isMouse:!1,isTouch:!0}:{isMouse:!0,isTouch:!1};function rc(){const[e,n]=a.useState(Ww);return a.useEffect(()=>{const r=s=>{s.pointerType==="touch"?e.isTouch||n({isMouse:!1,isTouch:!0}):s.pointerType==="mouse"&&(e.isMouse||n({isMouse:!0,isTouch:!1}))};return window.addEventListener("pointerdown",r,{passive:!0}),()=>{window.removeEventListener("pointerdown",r)}},[e]),e}var Hw="2.0.3",Rl=500,R0="user-agent",ai="",M0="?",vs="function",fr="undefined",li="object",Ml="string",Zt="browser",Zn="cpu",Tn="device",vn="engine",pn="os",ii="result",ue="name",X="type",ae="vendor",fe="version",Nt="architecture",Gi="major",re="model",Hi="console",Ve="mobile",it="tablet",bt="smarttv",jn="wearable",al="xr",Bi="embedded",Mi="inapp",ic="brands",Rr="formFactors",oc="fullVersionList",oi="platform",sc="platformVersion",Rs="bitness",hr="sec-ch-ua",Bw=hr+"-full-version-list",Vw=hr+"-arch",Zw=hr+"-"+Rs,Nw=hr+"-form-factors",Uw=hr+"-"+Ve,Gw=hr+"-"+re,G1=hr+"-"+oi,qw=G1+"-version",q1=[ic,oc,Ve,re,oi,sc,Nt,Rr,Rs],ns="Amazon",ei="Apple",I0="ASUS",O0="BlackBerry",Ar="Google",z0="Huawei",F0="Lenovo",L0="Honor",rs="LG",ll="Microsoft",cl="Motorola",ul="Nvidia",D0="OnePlus",dl="OPPO",Ii="Samsung",P0="Sharp",Oi="Sony",fl="Xiaomi",hl="Zebra",W0="Chrome",H0="Chromium",cr="Chromecast",Kw="Edge",zi="Firefox",Fi="Opera",pl="Facebook",B0="Sogou",ti="Mobile ",Li=" Browser",Il="Windows",Yw=typeof window!==fr,Ut=Yw&&window.navigator?window.navigator:void 0,ur=Ut&&Ut.userAgentData?Ut.userAgentData:void 0,Xw=function(e,n){var r={},s=n;if(!ws(n)){s={};for(var l in n)for(var c in n[l])s[c]=n[l][c].concat(s[c]?s[c]:[])}for(var u in e)r[u]=s[u]&&s[u].length%2===0?s[u].concat(e[u]):e[u];return r},Ms=function(e){for(var n={},r=0;r<e.length;r++)n[e[r].toUpperCase()]=e[r];return n},Ol=function(e,n){if(typeof e===li&&e.length>0){for(var r in e)if(Nn(e[r])==Nn(n))return!0;return!1}return fi(e)?Nn(n).indexOf(Nn(e))!==-1:!1},ws=function(e,n){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||(n?ws(e[r]):!1)},fi=function(e){return typeof e===Ml},gl=function(e){if(e){for(var n=[],r=ci(/\\?\"/g,e).split(","),s=0;s<r.length;s++)if(r[s].indexOf(";")>-1){var l=qi(r[s]).split(";v=");n[s]={brand:l[0],version:l[1]}}else n[s]=qi(r[s]);return n}},Nn=function(e){return fi(e)?e.toLowerCase():e},ml=function(e){return fi(e)?ci(/[^\d\.]/g,e).split(".")[0]:void 0},Un=function(e){for(var n in e){var r=e[n];typeof r==li&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},ci=function(e,n){return fi(n)?n.replace(e,ai):n},Di=function(e){return ci(/\\?\"/g,e)},qi=function(e,n){if(fi(e))return e=ci(/^\s\s*/,e),typeof n===fr?e:e.substring(0,Rl)},yl=function(e,n){if(!(!e||!n))for(var r=0,s,l,c,u,f,p;r<n.length&&!f;){var g=n[r],b=n[r+1];for(s=l=0;s<g.length&&!f&&g[s];)if(f=g[s++].exec(e),f)for(c=0;c<b.length;c++)p=f[++l],u=b[c],typeof u===li&&u.length>0?u.length===2?typeof u[1]==vs?this[u[0]]=u[1].call(this,p):this[u[0]]=u[1]:u.length===3?typeof u[1]===vs&&!(u[1].exec&&u[1].test)?this[u[0]]=p?u[1].call(this,p,u[2]):void 0:this[u[0]]=p?p.replace(u[1],u[2]):void 0:u.length===4&&(this[u[0]]=p?u[3].call(this,p.replace(u[1],u[2])):void 0):this[u]=p||void 0;r+=2}},dr=function(e,n){for(var r in n)if(typeof n[r]===li&&n[r].length>0){for(var s=0;s<n[r].length;s++)if(Ol(n[r][s],e))return r===M0?void 0:r}else if(Ol(n[r],e))return r===M0?void 0:r;return n.hasOwnProperty("*")?n["*"]:e},V0={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z0={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},N0={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[fe,[ue,ti+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[fe,[ue,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ue,fe],[/opios[\/ ]+([\w\.]+)/i],[fe,[ue,Fi+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[fe,[ue,Fi+" GX"]],[/\bopr\/([\w\.]+)/i],[fe,[ue,Fi]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[fe,[ue,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[fe,[ue,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ue,fe],[/quark(?:pc)?\/([-\w\.]+)/i],[fe,[ue,"Quark"]],[/\bddg\/([\w\.]+)/i],[fe,[ue,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[fe,[ue,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[fe,[ue,"WeChat"]],[/konqueror\/([\w\.]+)/i],[fe,[ue,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[fe,[ue,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[fe,[ue,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[fe,[ue,"Smart "+F0+Li]],[/(avast|avg)\/([\w\.]+)/i],[[ue,/(.+)/,"$1 Secure"+Li],fe],[/\bfocus\/([\w\.]+)/i],[fe,[ue,zi+" Focus"]],[/\bopt\/([\w\.]+)/i],[fe,[ue,Fi+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[fe,[ue,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[fe,[ue,"Dolphin"]],[/coast\/([\w\.]+)/i],[fe,[ue,Fi+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[fe,[ue,"MIUI"+Li]],[/fxios\/([\w\.-]+)/i],[fe,[ue,ti+zi]],[/\bqihoobrowser\/?([\w\.]*)/i],[fe,[ue,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ue,/(.+)/,"$1Browser"],fe],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ue,/(.+)/,"$1"+Li],fe],[/samsungbrowser\/([\w\.]+)/i],[fe,[ue,Ii+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[fe,[ue,B0+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ue,B0+" Mobile"],fe],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ue,fe],[/(lbbrowser|rekonq)/i],[ue],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[fe,ue],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ue,pl],fe,[X,Mi]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[ue,fe,[X,Mi]],[/\bgsa\/([\w\.]+) .*safari\//i],[fe,[ue,"GSA"],[X,Mi]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[fe,[ue,"TikTok"],[X,Mi]],[/\[(linkedin)app\]/i],[ue,[X,Mi]],[/(chromium)[\/ ]([-\w\.]+)/i],[ue,fe],[/headlesschrome(?:\/([\w\.]+)| )/i],[fe,[ue,W0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ue,W0+" WebView"],fe],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[fe,[ue,"Android"+Li]],[/chrome\/([\w\.]+) mobile/i],[fe,[ue,ti+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ue,fe],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[fe,[ue,ti+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ue,ti+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[fe,ue],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ue,[fe,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ue,fe],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ue,ti+zi],fe],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ue,"Netscape"],fe],[/(wolvic|librewolf)\/([\w\.]+)/i],[ue,fe],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[fe,[ue,zi+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ue,[fe,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ue,[fe,/[^\d\.]+./,ai]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Nt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Nt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Nt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Nt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Nt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Nt,/ower/,ai,Nn]],[/ sun4\w[;\)]/i],[[Nt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Nt,Nn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[re,[ae,Ii],[X,it]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[re,[ae,Ii],[X,Ve]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[re,[ae,ei],[X,Ve]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[re,[ae,ei],[X,it]],[/(macintosh);/i],[re,[ae,ei]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[re,[ae,P0],[X,Ve]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[re,[ae,L0],[X,it]],[/honor([-\w ]+)[;\)]/i],[re,[ae,L0],[X,Ve]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[re,[ae,z0],[X,it]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[re,[ae,z0],[X,Ve]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[re,/_/g," "],[ae,fl],[X,it]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[re,/_/g," "],[ae,fl],[X,Ve]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[re,[ae,dl],[X,Ve]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[re,[ae,dr,{OnePlus:["304","403","203"],"*":dl}],[X,it]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[re,[ae,"BLU"],[X,Ve]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[re,[ae,"Vivo"],[X,Ve]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[re,[ae,"Realme"],[X,Ve]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[re,[ae,cl],[X,Ve]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[re,[ae,cl],[X,it]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[re,[ae,rs],[X,it]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[re,[ae,rs],[X,Ve]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[re,[ae,F0],[X,it]],[/(nokia) (t[12][01])/i],[ae,re,[X,it]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[re,/_/g," "],[X,Ve],[ae,"Nokia"]],[/(pixel (c|tablet))\b/i],[re,[ae,Ar],[X,it]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[re,[ae,Ar],[X,Ve]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[re,[ae,Oi],[X,Ve]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[re,"Xperia Tablet"],[ae,Oi],[X,it]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[re,[ae,D0],[X,Ve]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[re,[ae,ns],[X,it]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[re,/(.+)/g,"Fire Phone $1"],[ae,ns],[X,Ve]],[/(playbook);[-\w\),; ]+(rim)/i],[re,ae,[X,it]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[re,[ae,O0],[X,Ve]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[re,[ae,I0],[X,it]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[re,[ae,I0],[X,Ve]],[/(nexus 9)/i],[re,[ae,"HTC"],[X,it]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ae,[re,/_/g," "],[X,Ve]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[re,[ae,"TCL"],[X,it]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[re,[ae,"TCL"],[X,Ve]],[/(itel) ((\w+))/i],[[ae,Nn],re,[X,dr,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[re,[ae,"Acer"],[X,it]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[re,[ae,"Meizu"],[X,Ve]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[re,[ae,"Ulefone"],[X,Ve]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[re,[ae,"Energizer"],[X,Ve]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[re,[ae,"Cat"],[X,Ve]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[re,[ae,"Smartfren"],[X,Ve]],[/droid.+; (a(?:015|06[35]|142p?))/i],[re,[ae,"Nothing"],[X,Ve]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[re,[ae,"Archos"],[X,it]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[re,[ae,"Archos"],[X,Ve]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[ae,re,[X,it]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[ae,re,[X,Ve]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ae,re,[X,it]],[/(surface duo)/i],[re,[ae,ll],[X,it]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[re,[ae,"Fairphone"],[X,Ve]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[re,[ae,ul],[X,it]],[/(sprint) (\w+)/i],[ae,re,[X,Ve]],[/(kin\.[onetw]{3})/i],[[re,/\./g," "],[ae,ll],[X,Ve]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[re,[ae,hl],[X,it]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[re,[ae,hl],[X,Ve]],[/smart-tv.+(samsung)/i],[ae,[X,bt]],[/hbbtv.+maple;(\d+)/i],[[re,/^/,"SmartTV"],[ae,Ii],[X,bt]],[/tcast.+(lg)e?. ([-\w]+)/i],[ae,re,[X,bt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ae,rs],[X,bt]],[/(apple) ?tv/i],[ae,[re,ei+" TV"],[X,bt]],[/crkey.*devicetype\/chromecast/i],[[re,cr+" Third Generation"],[ae,Ar],[X,bt]],[/crkey.*devicetype\/([^/]*)/i],[[re,/^/,"Chromecast "],[ae,Ar],[X,bt]],[/fuchsia.*crkey/i],[[re,cr+" Nest Hub"],[ae,Ar],[X,bt]],[/crkey/i],[[re,cr],[ae,Ar],[X,bt]],[/(portaltv)/i],[re,[ae,pl],[X,bt]],[/droid.+aft(\w+)( bui|\))/i],[re,[ae,ns],[X,bt]],[/(shield \w+ tv)/i],[re,[ae,ul],[X,bt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[re,[ae,P0],[X,bt]],[/(bravia[\w ]+)( bui|\))/i],[re,[ae,Oi],[X,bt]],[/(mi(tv|box)-?\w+) bui/i],[re,[ae,fl],[X,bt]],[/Hbbtv.*(technisat) (.*);/i],[ae,re,[X,bt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ae,qi],[re,qi],[X,bt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[re,[X,bt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[X,bt]],[/(ouya)/i,/(nintendo) (\w+)/i],[ae,re,[X,Hi]],[/droid.+; (shield)( bui|\))/i],[re,[ae,ul],[X,Hi]],[/(playstation \w+)/i],[re,[ae,Oi],[X,Hi]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[re,[ae,ll],[X,Hi]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[re,[ae,Ii],[X,jn]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ae,re,[X,jn]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[re,[ae,dl],[X,jn]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[re,[ae,ei],[X,jn]],[/(opwwe\d{3})/i],[re,[ae,D0],[X,jn]],[/(moto 360)/i],[re,[ae,cl],[X,jn]],[/(smartwatch 3)/i],[re,[ae,Oi],[X,jn]],[/(g watch r)/i],[re,[ae,rs],[X,jn]],[/droid.+; (wt63?0{2,3})\)/i],[re,[ae,hl],[X,jn]],[/droid.+; (glass) \d/i],[re,[ae,Ar],[X,al]],[/(pico) (4|neo3(?: link|pro)?)/i],[ae,re,[X,al]],[/(quest( \d| pro)?s?).+vr/i],[re,[ae,pl],[X,al]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ae,[X,Bi]],[/(aeobc)\b/i],[re,[ae,ns],[X,Bi]],[/(homepod).+mac os/i],[re,[ae,ei],[X,Bi]],[/windows iot/i],[[X,Bi]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[re,[X,dr,{mobile:"Mobile",xr:"VR","*":it}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[X,it]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[X,Ve]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[re,[ae,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[fe,[ue,Kw+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ue,fe],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[fe,[ue,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ue,fe],[/ladybird\//i],[[ue,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[fe,ue]],os:[[/microsoft (windows) (vista|xp)/i],[ue,fe],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[ue,[fe,dr,V0]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[fe,dr,V0],[ue,Il]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[fe,/_/g,"."],[ue,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[ue,"macOS"],[fe,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[fe,[ue,cr+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[fe,[ue,cr+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[fe,[ue,cr+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[fe,[ue,cr+" Linux"]],[/crkey\/([\d\.]+)/i],[fe,[ue,cr]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[fe,ue],[/(ubuntu) ([\w\.]+) like android/i],[[ue,/(.+)/,"$1 Touch"],fe],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[ue,fe],[/\(bb(10);/i],[fe,[ue,O0]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[fe,[ue,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[fe,[ue,zi+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[fe,[ue,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[fe,[ue,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ue,"Chrome OS"],fe],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[ue,fe],[/(sunos) ?([\w\.\d]*)/i],[[ue,"Solaris"],fe],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ue,fe]]},is=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Un.call(e.init,[[Zt,[ue,fe,Gi,X]],[Zn,[Nt]],[Tn,[X,re,ae]],[vn,[ue,fe]],[pn,[ue,fe]]]),Un.call(e.isIgnore,[[Zt,[fe,Gi]],[vn,[fe]],[pn,[fe]]]),Un.call(e.isIgnoreRgx,[[Zt,/ ?browser$/i],[pn,/ ?os$/i]]),Un.call(e.toString,[[Zt,[ue,fe]],[Zn,[Nt]],[Tn,[ae,re]],[vn,[ue,fe]],[pn,[ue,fe]]]),e}(),Qw=function(e,n){var r=is.init[n],s=is.isIgnore[n]||0,l=is.isIgnoreRgx[n]||0,c=is.toString[n]||0;function u(){Un.call(this,r)}return u.prototype.getItem=function(){return e},u.prototype.withClientHints=function(){return ur?ur.getHighEntropyValues(q1).then(function(f){return e.setCH(new K1(f,!1)).parseCH().get()}):e.parseCH().get()},u.prototype.withFeatureCheck=function(){return e.detectFeature().get()},n!=ii&&(u.prototype.is=function(f){var p=!1;for(var g in this)if(this.hasOwnProperty(g)&&!Ol(s,g)&&Nn(l?ci(l,this[g]):this[g])==Nn(l?ci(l,f):f)){if(p=!0,f!=fr)break}else if(f==fr&&p){p=!p;break}return p},u.prototype.toString=function(){var f=ai;for(var p in c)typeof this[c[p]]!==fr&&(f+=(f?" ":ai)+this[c[p]]);return f||fr}),ur||(u.prototype.then=function(f){var p=this,g=function(){for(var m in p)p.hasOwnProperty(m)&&(this[m]=p[m])};g.prototype={is:u.prototype.is,toString:u.prototype.toString};var b=new g;return f(b),b}),new u};function K1(e,n){if(e=e||{},Un.call(this,q1),n)Un.call(this,[[ic,gl(e[hr])],[oc,gl(e[Bw])],[Ve,/\?1/.test(e[Uw])],[re,Di(e[Gw])],[oi,Di(e[G1])],[sc,Di(e[qw])],[Nt,Di(e[Vw])],[Rr,gl(e[Nw])],[Rs,Di(e[Zw])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==fr&&(this[r]=e[r])}function U0(e,n,r,s){return this.get=function(l){return l?this.data.hasOwnProperty(l)?this.data[l]:void 0:this.data},this.set=function(l,c){return this.data[l]=c,this},this.setCH=function(l){return this.uaCH=l,this},this.detectFeature=function(){if(Ut&&Ut.userAgent==this.ua)switch(this.itemType){case Zt:Ut.brave&&typeof Ut.brave.isBrave==vs&&this.set(ue,"Brave");break;case Tn:!this.get(X)&&ur&&ur[Ve]&&this.set(X,Ve),this.get(re)=="Macintosh"&&Ut&&typeof Ut.standalone!==fr&&Ut.maxTouchPoints&&Ut.maxTouchPoints>2&&this.set(re,"iPad").set(X,it);break;case pn:!this.get(ue)&&ur&&ur[oi]&&this.set(ue,ur[oi]);break;case ii:var l=this.data,c=function(u){return l[u].getItem().detectFeature().get()};this.set(Zt,c(Zt)).set(Zn,c(Zn)).set(Tn,c(Tn)).set(vn,c(vn)).set(pn,c(pn))}return this},this.parseUA=function(){return this.itemType!=ii&&yl.call(this.data,this.ua,this.rgxMap),this.itemType==Zt&&this.set(Gi,ml(this.get(fe))),this},this.parseCH=function(){var l=this.uaCH,c=this.rgxMap;switch(this.itemType){case Zt:case vn:var u=l[oc]||l[ic],f;if(u)for(var p in u){var g=u[p].brand||u[p],b=u[p].version;this.itemType==Zt&&!/not.a.brand/i.test(g)&&(!f||/chrom/i.test(f)&&g!=H0)&&(g=dr(g,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(ue,g).set(fe,b).set(Gi,ml(b)),f=g),this.itemType==vn&&g==H0&&this.set(fe,b)}break;case Zn:var m=l[Nt];m&&(m&&l[Rs]=="64"&&(m+="64"),yl.call(this.data,m+";",c));break;case Tn:if(l[Ve]&&this.set(X,Ve),l[re]&&(this.set(re,l[re]),!this.get(X)||!this.get(ae))){var x={};yl.call(x,"droid 9; "+l[re]+")",c),!this.get(X)&&x.type&&this.set(X,x.type),!this.get(ae)&&x.vendor&&this.set(ae,x.vendor)}if(l[Rr]){var v;if(typeof l[Rr]!="string")for(var _=0;!v&&_<l[Rr].length;)v=dr(l[Rr][_++],Z0);else v=dr(l[Rr],Z0);this.set(X,v)}break;case pn:var j=l[oi];if(j){var k=l[sc];j==Il&&(k=parseInt(ml(k),10)>=13?"11":"10"),this.set(ue,j).set(fe,k)}this.get(ue)==Il&&l[re]=="Xbox"&&this.set(ue,"Xbox").set(fe,void 0);break;case ii:var A=this.data,$=function(M){return A[M].getItem().setCH(l).parseCH().get()};this.set(Zt,$(Zt)).set(Zn,$(Zn)).set(Tn,$(Tn)).set(vn,$(vn)).set(pn,$(pn))}return this},Un.call(this,[["itemType",e],["ua",n],["uaCH",s],["rgxMap",r],["data",Qw(this,e)]]),this}function Yn(e,n,r){if(typeof e===li?(ws(e,!0)?(typeof n===li&&(r=n),n=e):(r=e,n=void 0),e=void 0):typeof e===Ml&&!ws(n,!0)&&(r=n,n=void 0),r&&typeof r.append===vs){var s={};r.forEach(function(p,g){s[g]=p}),r=s}if(!(this instanceof Yn))return new Yn(e,n,r).getResult();var l=typeof e===Ml?e:r&&r[R0]?r[R0]:Ut&&Ut.userAgent?Ut.userAgent:ai,c=new K1(r,!0),u=n?Xw(N0,n):N0,f=function(p){return p==ii?function(){return new U0(p,l,u,c).set("ua",l).set(Zt,this.getBrowser()).set(Zn,this.getCPU()).set(Tn,this.getDevice()).set(vn,this.getEngine()).set(pn,this.getOS()).get()}:function(){return new U0(p,l,u[p],c).parseUA().get()}};return Un.call(this,[["getBrowser",f(Zt)],["getCPU",f(Zn)],["getDevice",f(Tn)],["getEngine",f(vn)],["getOS",f(pn)],["getResult",f(ii)],["getUA",function(){return l}],["setUA",function(p){return fi(p)&&(l=p.length>Rl?qi(p,Rl):p),this}]]).setUA(l),this}Yn.VERSION=Hw;Yn.BROWSER=Ms([ue,fe,Gi,X]);Yn.CPU=Ms([Nt]);Yn.DEVICE=Ms([re,ae,X,Hi,Ve,bt,it,jn,Bi]);Yn.ENGINE=Yn.OS=Ms([ue,fe]);var Y1=(e=>(e.Desktop="Desktop",e.Mobile="Mobile",e.Tablet="Tablet",e.SmartTV="Smart TV",e.Bot="Bot/Crawler",e.Unknown="Unknown",e))(Y1||{}),X1=(e=>(e.Chrome="Chrome",e.Firefox="Firefox",e.Safari="Safari",e.Edge="Edge",e.IE="IE/Edge Legacy",e.Opera="Opera",e.Brave="Brave",e.Other="Other",e))(X1||{}),Q1=(e=>(e.Windows="Windows",e.macOS="macOS",e.Linux="Linux",e.Android="Android",e.iOS="iOS",e.Other="Other",e))(Q1||{});const zl=e=>{const r=new Yn(e).getResult(),l={deviceType:/bot|crawler|spider|crawling/i.test(e)?"Bot/Crawler":Jw(r.device.type),browserName:e4(r.browser.name),osName:t4(r.os.name)},c=l.deviceType==="Mobile"||l.deviceType==="Tablet";return{...r,normalized:l,isMobile:c,isDesktop:!c}},Jw=e=>{if(!e)return"Desktop";const n=e.toLowerCase();return n==="mobile"?"Mobile":n==="tablet"?"Tablet":n==="smarttv"?"Smart TV":"Unknown"},e4=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("brave")?"Brave":n.includes("edge")?"Edge":n.includes("opera")?"Opera":n.includes("ie")||n.includes("trident")?"IE/Edge Legacy":n.includes("chrome")?"Chrome":n.includes("firefox")?"Firefox":n.includes("safari")?"Safari":"Other"},t4=e=>{if(!e)return"Other";const n=e.toLowerCase();return n.includes("windows")?"Windows":n.includes("mac os")?"macOS":["ubuntu","debian","fedora","linux"].some(r=>n.includes(r))?"Linux":n.includes("android")?"Android":n.includes("ios")?"iOS":"Other"},n4=e=>{const[n,r]=a.useState(e?zl(e):void 0);return a.useEffect(()=>{n||r(zl(window.navigator.userAgent))},[n]),n};function ac({anchorRef:e,popupRef:n,offsetValue:r,isOpen:s,useFixedPosition:l=!1}){const c=a.useCallback(()=>{const u=e.current,f=n.current;if(!u||!f)return;const p=u.getBoundingClientRect(),g=f.getBoundingClientRect();if(l){let j=p.bottom+r,k=p.left;k+g.width>window.innerWidth-16&&(k=window.innerWidth-g.width-16),k<16&&(k=16);const A=window.innerHeight-p.bottom-r,$=p.top-r;A<g.height&&$>=g.height&&(j=p.top-g.height-r),f.style.position="fixed",f.style.inset=`${j}px auto auto ${k}px`;return}const b=u.offsetParent;if(!b)return;const m=b.getBoundingClientRect();let x=p.bottom-m.top+r,v=p.left-m.left;v+g.width>m.width-16&&(v=m.width-g.width-16),v<16&&(v=16);const _=p.top-m.top;x+g.height>m.height-16&&_>=g.height+r&&(x=p.top-m.top-g.height-r),f.style.inset=`${x}px auto auto ${v}px`},[e,n,r,l]);a.useLayoutEffect(()=>{s&&requestAnimationFrame(c)},[s,c]),a.useEffect(()=>{if(s)return window.addEventListener("resize",c),l&&window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),l&&window.removeEventListener("scroll",c,!0)}},[s,c,l])}const r4=pe(I)`
|
|
63
63
|
position: absolute;
|
|
64
64
|
top: 0;
|
|
65
65
|
left: 0;
|
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
68
68
|
display: flex;
|
|
69
69
|
justify-content: center;
|
|
70
70
|
align-items: center;
|
|
71
|
-
`,
|
|
71
|
+
`,i4=pe.div`
|
|
72
72
|
width: ${({size:e})=>e};
|
|
73
73
|
height: ${({size:e})=>e};
|
|
74
74
|
border-radius: 50%;
|
|
@@ -94,7 +94,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
94
94
|
transform: rotate(360deg);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,G0=({size:e,color:n="primary","data-testid":r})=>{const s=Re(),c=Object.keys(s.__hd__.loading.sizes).includes(e)?s.__hd__.loading.sizes[e]:e,f=Object.keys(s.__hd__.loading.strokeWidths).includes(e)?s.__hd__.loading.strokeWidths[e]:"2px",p=s.colors[n]||n;return d.jsx(i4,{size:c,color:p,strokeWidth:f,"data-testid":r})},eo=({size:e,loading:n=!0,color:r="primary",children:s,"data-testid":l,...c})=>{const u=Re(),[f,p]=a.useState(n),[g,b]=a.useState(n?1:0),[m,x]=a.useState(n?0:1);return a.useEffect(()=>{let v;return n?(p(!0),b(1),x(0)):(b(0),x(1),v=setTimeout(()=>{p(!1)},u.__hd__.loading.animation.showingDuration)),()=>{v&&clearTimeout(v)}},[n,u.__hd__.loading.animation.showingDuration]),s?d.jsxs(I,{position:"relative",...c,children:[f&&d.jsx(r4,{style:{opacity:g,transition:`opacity ${u.__hd__.loading.animation.showingDuration}ms`},children:d.jsx(G0,{size:e,color:r,"data-testid":l})}),d.jsx(I,{style:{opacity:m,transition:`opacity ${u.__hd__.loading.animation.contentShowingDuration}ms`},children:s})]}):f?d.jsx(G0,{size:e,color:r,"data-testid":l}):null};function o4({children:e,onClick:n,style:r,useScaleAnimation:s=!0,useOpacityAnimation:l=!0,href:c,target:u,rel:f,"data-testid":p,...g},b){const m=Re(),[x,v]=a.useState(!1),_=a.useCallback(()=>{v(!0)},[]),j=a.useCallback(()=>{v(!1)},[]),k=a.useCallback(()=>{v(!1)},[]),A=a.useMemo(()=>{const M=[];return s&&M.push("transform 0.2s ease"),l&&M.push("opacity 0.2s ease"),M.join(", ")},[s,l]),$={ref:b,onClick:n,onMouseDown:_,onMouseUp:j,onMouseLeave:k,style:r,"data-testid":p,transition:A,transform:s?`scale(${x?m.__hd__.touchable.animation.minScale:m.__hd__.touchable.animation.maxScale})`:void 0,opacity:l?x?m.__hd__.touchable.animation.minOpacity:m.__hd__.touchable.animation.maxOpacity:void 0,cursor:"pointer",...g};return c?d.jsx(I,{as:"a",href:c,target:u,rel:f,...$,children:e}):d.jsx(I,{...$,children:e})}const s4=a.forwardRef(o4),at=s4,Is=(e,n,r,s="solid",l)=>{if(l)return e.colors.grey500;if(r)return e.colors[r];switch(s){case"outlined":case"text":return e.colors[n];case"solid":default:return n==="white"?e.colors.grey900:e.colors.white}},lc=pe(I)`
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: row;
|
|
100
100
|
justify-content: center;
|
|
@@ -102,9 +102,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
102
102
|
position: relative;
|
|
103
103
|
background-color: ${({theme:e,$backgroundColor:n})=>n==="disabled"?e.colors.grey200:e.colors[n]};
|
|
104
104
|
border-radius: ${({theme:e,$borderRadius:n})=>e.radii[n]}px;
|
|
105
|
-
padding: ${({$paddingVertical:e,$paddingHorizontal:n,theme:
|
|
105
|
+
padding: ${({$paddingVertical:e,$paddingHorizontal:n,theme:r})=>`${r.spaces[e]}px ${r.spaces[n]}px`};
|
|
106
106
|
border: ${({$borderWidth:e,theme:n})=>n.borderWidths[e]}px solid transparent;
|
|
107
|
-
${({$variant:e,$color:n,theme:
|
|
107
|
+
${({$variant:e,$color:n,theme:r})=>e==="outlined"&&`border-color: ${r.colors[n]};`}
|
|
108
108
|
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
109
109
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
110
110
|
// Add border-color to transition
|
|
@@ -113,28 +113,32 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
113
113
|
|
|
114
114
|
@media (min-width: 900px) {
|
|
115
115
|
&:hover {
|
|
116
|
-
${({$disabled:e,$variant:n,$color:
|
|
116
|
+
${({$disabled:e,$variant:n,$color:r,$borderWidth:s,theme:l})=>!e&&`
|
|
117
117
|
opacity: 1; // Ensure full opacity on hover
|
|
118
118
|
// Solid: background white, border with main color
|
|
119
|
-
${n==="solid"?`background-color: ${
|
|
119
|
+
${n==="solid"?`background-color: ${l.colors.white}; border-color: ${l.colors[r]}; border-width: ${l.borderWidths[s]}px;`:""}
|
|
120
120
|
// Outlined: background with main color, border remains same (or becomes transparent/main color based on design)
|
|
121
|
-
${n==="outlined"?`background-color: ${
|
|
121
|
+
${n==="outlined"?`background-color: ${l.colors[r]}; border-color: ${l.colors[r]};`:""}
|
|
122
122
|
// Text variant doesn't change background or border on hover
|
|
123
123
|
`}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
127
|
-
color: ${({theme:e,$themeColor:n,$themeTextColor:
|
|
126
|
+
`,a4=pe(Oe)`
|
|
127
|
+
color: ${({theme:e,$themeColor:n,$themeTextColor:r,$variant:s,$disabled:l})=>Is(e,n,r,s,l)};
|
|
128
128
|
font-size: ${({theme:e,$themeFontSize:n})=>e.__hd__.text.fontSizes[n]}px;
|
|
129
129
|
font-weight: ${({theme:e,$themeFontWeight:n})=>e.__hd__.text.fontWeights[n]};
|
|
130
130
|
// Apply other text properties from theme sizes if needed (e.g., line height)
|
|
131
131
|
transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
132
|
+
${({$overflow:e})=>e&&`overflow: ${e};`}
|
|
133
|
+
${({$textOverflow:e})=>e&&`text-overflow: ${e};`}
|
|
134
|
+
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
135
|
+
${({$whiteSpace:e})=>e&&`white-space: ${e};`}
|
|
132
136
|
|
|
133
137
|
@media (min-width: 900px) {
|
|
134
|
-
${
|
|
135
|
-
${({$variant:e,theme:n,$themeColor:
|
|
138
|
+
${lc}:hover & {
|
|
139
|
+
${({$variant:e,theme:n,$themeColor:r,$disabled:s})=>!s&&`
|
|
136
140
|
// Solid: text becomes main color
|
|
137
|
-
${e==="solid"?`color: ${n.colors[
|
|
141
|
+
${e==="solid"?`color: ${n.colors[r]};`:""}
|
|
138
142
|
// Outlined: text becomes white
|
|
139
143
|
${e==="outlined"?`color: ${n.colors.white};`:""}
|
|
140
144
|
// Text: opacity changes
|
|
@@ -142,22 +146,22 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
142
146
|
`}
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
|
-
`,
|
|
149
|
+
`,q0=pe(I)`
|
|
146
150
|
display: flex;
|
|
147
151
|
align-items: center;
|
|
148
|
-
margin-left: ${({theme:e,$themePosition:n,$iconSpacing:
|
|
149
|
-
margin-right: ${({theme:e,$themePosition:n,$iconSpacing:
|
|
150
|
-
`,
|
|
152
|
+
margin-left: ${({theme:e,$themePosition:n,$iconSpacing:r})=>n==="right"?`${e.spaces[r]}px`:0};
|
|
153
|
+
margin-right: ${({theme:e,$themePosition:n,$iconSpacing:r,$hasText:s})=>n==="left"&&s?`${e.spaces[r]}px`:0};
|
|
154
|
+
`,K0=pe(yt)`
|
|
151
155
|
transition: color 0.2s ease-in-out;
|
|
152
|
-
color: ${({theme:e,$themeColor:n,$themeTextColor:
|
|
156
|
+
color: ${({theme:e,$themeColor:n,$themeTextColor:r,$variant:s,$disabled:l})=>Is(e,n,r,s,l)};
|
|
153
157
|
width: ${({theme:e,$iconSize:n})=>e.sizes[n]}px;
|
|
154
158
|
height: ${({theme:e,$iconSize:n})=>e.sizes[n]}px;
|
|
155
159
|
|
|
156
160
|
@media (min-width: 900px) {
|
|
157
|
-
${
|
|
158
|
-
${({$variant:e,theme:n,$themeColor:
|
|
161
|
+
${lc}:hover & {
|
|
162
|
+
${({$variant:e,theme:n,$themeColor:r,$disabled:s})=>!s&&`
|
|
159
163
|
// Solid: text becomes main color
|
|
160
|
-
${e==="solid"?`color: ${n.colors[
|
|
164
|
+
${e==="solid"?`color: ${n.colors[r]};`:""}
|
|
161
165
|
// Outlined: text becomes white
|
|
162
166
|
${e==="outlined"?`color: ${n.colors.white};`:""}
|
|
163
167
|
// Text: opacity changes
|
|
@@ -165,7 +169,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
165
169
|
`}
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
|
-
`,
|
|
172
|
+
`,ot=({disabled:e=!1,icon:n,color:r,textColor:s,loading:l=!1,onClick:c,rightIcon:u,corner:f="circle",variant:p="solid",size:g="md",style:b,"data-testid":m,text:x,...v})=>{var Se;const{overflow:_,textOverflow:j,maxWidth:k,whiteSpace:A,...$}=v,M=Re(),E=M.__hd__.button,C=E.defaultColor||"primary",T=r||C,L=((Se=E.variants)==null?void 0:Se[p])||{},F=E.sizes[g],Y=e||l,U=a.useMemo(()=>Y&&p==="solid"?"disabled":p==="solid"?T:L.bgColor||"transparent",[T,Y,p,L.bgColor]),K=a.useMemo(()=>Is(M,T,s,p,Y),[M,T,s,p,Y]),O=Te=>{e||l||c==null||c(Te)},W=p==="text"?"none":F.paddingHorizontal,B=p==="text"?"none":F.paddingVertical,he=F.fontSize,N=F.iconSize,ne=E.iconSpacing||"xs",oe=d.jsxs(I,{display:"flex",alignItems:"center",gap:ne,children:[n&&d.jsx(q0,{$themePosition:"left",$iconSpacing:ne,$hasText:!!x,children:d.jsx(K0,{$themeColor:T,$themeTextColor:s,$variant:p,$disabled:Y,$iconSize:N,type:"icon",art:n,weight:F.iconWeight,size:N})}),x&&d.jsx(a4,{$themeColor:T,$themeTextColor:s,$themeFontSize:he,$themeFontWeight:F.fontWeight,$disabled:Y,$variant:p,$overflow:_,$textOverflow:j,$maxWidth:k,$whiteSpace:A,as:"span",children:x}),u&&d.jsx(q0,{$themePosition:"right",$iconSpacing:ne,children:d.jsx(K0,{$themeColor:T,$themeTextColor:s,$variant:p,$disabled:Y,$iconSize:N,weight:F.iconWeight,type:"icon",art:u,size:N})})]});return d.jsx(at,{onClick:O,style:b,"data-testid":m,...$,children:d.jsx(lc,{$backgroundColor:U,$paddingHorizontal:W,$paddingVertical:B,$borderRadius:F.squircleBorderRadii[f],$borderWidth:F.borderWidth,$disabled:Y,$variant:p,$color:T,$size:g,children:d.jsx(eo,{size:"small",color:K,loading:l,display:"flex",alignItems:"center",justifyContent:"center",children:oe})})})},l4=pe(I)`
|
|
169
173
|
background-color: ${({theme:e,$color:n})=>e.colors[n]};
|
|
170
174
|
${({$orientation:e,$thickness:n})=>e==="horizontal"?`
|
|
171
175
|
height: ${n}px;
|
|
@@ -174,16 +178,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
174
178
|
width: ${n}px;
|
|
175
179
|
height: 100%;
|
|
176
180
|
`}
|
|
177
|
-
`,
|
|
181
|
+
`,J1=({orientation:e="horizontal",color:n,thickness:r,...s})=>{var g,b;const l=Re(),c=(g=l.__hd__.divider)==null?void 0:g.defaultColor,u=(b=l.__hd__.divider)==null?void 0:b.defaultThickness,f=n||c||"grey300",p=r||u||1;return d.jsx(l4,{$orientation:e,$color:f,$thickness:p,...s})},eh=pe(at)`
|
|
178
182
|
display: flex;
|
|
179
183
|
align-items: center;
|
|
180
184
|
justify-content: center;
|
|
181
185
|
transition: background-color 0.2s ease-in-out, transform 50ms ease-in-out, box-shadow 0.2s ease-in-out;
|
|
182
186
|
background-color: ${({theme:e,$themeBackgroundColor:n})=>e.colors[n]};
|
|
183
187
|
box-shadow: ${({$themeBoxShadow:e})=>e};
|
|
184
|
-
border-radius: ${({theme:e,$themeRadius:n,$isRound:
|
|
185
|
-
padding-left: ${({theme:e,$themePaddingX:n,$themePaddingY:
|
|
186
|
-
padding-right: ${({theme:e,$themePaddingX:n,$themePaddingY:
|
|
188
|
+
border-radius: ${({theme:e,$themeRadius:n,$isRound:r})=>r?"50%":`${e.radii[n]}px`};
|
|
189
|
+
padding-left: ${({theme:e,$themePaddingX:n,$themePaddingY:r,$isRound:s})=>e.spaces[s?r:n]}px;
|
|
190
|
+
padding-right: ${({theme:e,$themePaddingX:n,$themePaddingY:r,$isRound:s})=>e.spaces[s?r:n]}px;
|
|
187
191
|
padding-top: ${({theme:e,$themePaddingY:n})=>e.spaces[n]}px;
|
|
188
192
|
padding-bottom: ${({theme:e,$themePaddingY:n})=>e.spaces[n]}px;
|
|
189
193
|
gap: ${({theme:e,$gap:n})=>e.spaces[n]}px;
|
|
@@ -191,7 +195,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
191
195
|
box-shadow: ${({$themeHoverBoxShadow:e})=>e};
|
|
192
196
|
background-color: ${({theme:e,$themeHoverBackgroundColor:n})=>e.colors[n]};
|
|
193
197
|
}
|
|
194
|
-
`,
|
|
198
|
+
`,Y0=pe.span`
|
|
195
199
|
display: inline-flex;
|
|
196
200
|
align-items: center;
|
|
197
201
|
justify-content: center;
|
|
@@ -203,7 +207,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
203
207
|
font-weight: ${({theme:e,$themeFontWeight:n})=>e.__hd__.text.fontWeights[n]};
|
|
204
208
|
font-size: ${({theme:e,$themeFontSize:n})=>e.__hd__.text.fontSizes[n]}px;
|
|
205
209
|
rotate: ${({$isDropdownItem:e,$isDropdownOpen:n})=>!e&&n?"-180deg":void 0};
|
|
206
|
-
${
|
|
210
|
+
${eh}:hover & {
|
|
207
211
|
color: ${({theme:e,$themeHoverColor:n})=>e.colors[n]};
|
|
208
212
|
rotate: ${({$isDropdownItem:e,$isDropdownOpen:n})=>!e&&n?"-90deg":void 0};
|
|
209
213
|
}
|
|
@@ -211,23 +215,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211
215
|
opacity: 0;
|
|
212
216
|
`}
|
|
213
217
|
white-space: nowrap;
|
|
214
|
-
`,ms=({label:e,icon:n,iconSize:i,isActive:s,isLoading:a,dropdownItems:l=[],onClick:d,size:f="large",isDropdownOpen:h=!1,isDropdownItem:p=!1,onMouseEnter:x,onToggleDropdown:w,paddingX:_,paddingY:v,isRound:C=!1})=>{const R=be(),{isTouch:k}=Sl(),T=l.length>0,E=()=>{if(k&&T){h?d==null||d():w==null||w();return}d==null||d()},I=R.__hd__.header,$=I.navItem,M=s?$.active:$.inactive,z=c.useMemo(()=>p?"transparent":h?M.hoverBackgroundColor:M.backgroundColor,[p,h,M.backgroundColor,M.hoverBackgroundColor]);return m.jsxs(r1,{onClick:E,onMouseEnter:x,$themeBackgroundColor:z,$themeBoxShadow:!p&&h?M.hoverBoxShadow:"none",$themeHoverBackgroundColor:p?"transparent":M.hoverBackgroundColor,$themeHoverBoxShadow:p?"none":M.hoverBoxShadow,$themeHoverColor:$.active.backgroundColor,$themeRadius:$.radius,$themePaddingX:_??$.paddingX,$themePaddingY:v??$.paddingY,$gap:I.loadingGap,$isRound:C,children:[m.jsx(L,{display:"flex",justifyContent:"start",alignItems:"center",flex:1,children:m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$themeMinWidth:$[f].containerHeight,$isLoading:a??!1,children:[n&&m.jsx(pt,{type:"icon",art:n,size:i??$[f].iconSize}),e]})}),(l.length>0||h)&&m.jsxs(af,{$themeFontWeight:M.fontWeight,$themeFontSize:$[f].fontSize,$themeColor:M.color,$themeHoverColor:$.hover.color,$themeGap:$[f].gap,$themeHeight:$[f].containerHeight,$isLoading:a??!1,$isDropdownOpen:h,$isDropdownItem:p,children:[l.length>0&&m.jsx(_l,{size:16,weight:"bold"}),p&&m.jsx(ei,{rotate:45,size:16,weight:"bold"})]}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",absoluteFill:!0,opacity:a?1:0,transition:"opacity 0.2s ease-in-out",children:m.jsx(Tl,{size:$[f].loadingSize,color:M.color})})]})};function Cv({userProfile:e,dropdownItems:n,maxHeight:i},s){const a=be(),l=a.__hd__.header.profileDropdown,[d,f]=c.useState(!1),h=c.useRef(null),p=c.useRef(null),x=Ne.isString(l.minWidth)&&xr(l.minWidth)?a.sizes[l.minWidth]:l.minWidth,w=Ne.isString(i)&&xr(i)?a.sizes[i]:i||l.defaultMaxHeight,_=()=>{h.current&&clearTimeout(h.current),p.current&&clearTimeout(p.current)},v=(R=()=>{})=>{_(),f(!0),h.current=setTimeout(R,l.animationDuration)},C=(R=()=>{})=>{_(),f(!1),p.current=setTimeout(R,l.animationDuration)};return c.useImperativeHandle(s,()=>({showDropdown:v,hideDropdown:C})),m.jsx(L,{position:"absolute",top:l.offset.top,right:l.offset.right,minWidth:x,zIndex:d?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:d?1:0,transition:`opacity ${l.animationDuration}ms ease-in-out, z-index ${l.animationDuration}ms ease-in-out`,onMouseEnter:()=>v(),onMouseLeave:()=>C(),children:m.jsxs(L,{overflow:"hidden",mt:l.spacingTop,mr:l.containerPaddingRight,padding:l.padding,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:d?w:0,transition:`max-height ${l.animationDuration}ms ease-in-out`,style:{borderRadius:l.borderRadius},display:"flex",flexDirection:"column",children:[e!=null&&e.name?m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e.name})}):m.jsx(L,{py:l.padding,mx:"md",children:m.jsx(Qe,{textAlign:"left",children:e==null?void 0:e.email})}),m.jsx(L,{p:l.padding,children:m.jsx(n1,{})}),n==null?void 0:n.map(R=>m.jsx(ms,{label:R.label,onClick:R.onClick,isActive:R.isActive,size:"medium",isDropdownItem:!0},R.label))]})})}const Sv=c.forwardRef(Cv),i1=({isSignedIn:e=!1,isDropdownVisible:n,setIsDropdownVisible:i,userProfile:s,dropdownItems:a,profileDropdownMaxHeight:l,onProfileClick:d,onSignInClick:f,onRegisterClick:h})=>{const p=be(),[x,w]=c.useState(!1),[_,v]=c.useState(!0),C=c.useDeferredValue(x),R=ti(),k=!Ct()&&R==="xs";c.useEffect(()=>{Ct()||(w(!k),setTimeout(()=>{v(!1)},300))},[k]);const T=p.__hd__.header.avatarSize||"md",E=c.useRef(null),I=()=>{var M;i(!0),(M=E.current)==null||M.showDropdown()},$=()=>{var M;(M=E.current)==null||M.hideDropdown(()=>{i(!1)})};return c.useEffect(()=>{n?I():$()},[n]),m.jsx(Zi,{display:"flex",visible:_,maxWidth:C?"100%":"0px",maxHeight:C?"100%":"0px",opacity:C?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[e?m.jsx(kt,{onClick:d,children:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",p:"sm",r:"full",bgColor:"grey100",onMouseEnter:I,onMouseLeave:$,children:[m.jsx(q0,{src:s==null?void 0:s.avatar,name:s==null?void 0:s.name,size:T}),(s==null?void 0:s.name)&&m.jsx(L,{ml:"sm",children:m.jsx(Qe,{fontWeight:"medium",children:s.name})})]})}):m.jsxs(m.Fragment,{children:[m.jsx(L,{mr:"md",children:m.jsx(Qr,{text:"Sign in",variant:"text",color:"black",onClick:f})}),m.jsx(Qr,{text:"Register",color:"primary",corner:"rounded",onClick:h})]}),e&&m.jsx(Sv,{ref:E,userProfile:s,dropdownItems:a,maxHeight:l})]})})},Ev="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='500'%20zoomAndPan='magnify'%20viewBox='0%200%20375%20374.999991'%20height='500'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cg%3e%3c/g%3e%3c/defs%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(66.308093,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2095.3125%20-19.625%20L%2098.71875%20-19.625%20L%2098.71875%200%20C%2097.832031%200.375%2096.851562%200.71875%2095.78125%201.03125%20C%2094.71875%201.351562%2093.554688%201.515625%2092.296875%201.515625%20C%2087.265625%201.515625%2082.734375%200.351562%2078.703125%20-1.96875%20C%2074.679688%20-4.300781%2071.472656%20-7.421875%2069.078125%20-11.328125%20C%2066.054688%20-7.421875%2062.375%20-4.300781%2058.03125%20-1.96875%20C%2053.695312%200.351562%2048.757812%201.515625%2043.21875%201.515625%20C%2036.300781%201.515625%2030.007812%20-0.242188%2024.34375%20-3.765625%20C%2018.6875%20-7.296875%2014.1875%20-12.015625%2010.84375%20-17.921875%20C%207.507812%20-23.835938%205.84375%20-30.445312%205.84375%20-37.75%20C%205.84375%20-45.050781%207.507812%20-51.65625%2010.84375%20-57.5625%20C%2014.1875%20-63.476562%2018.6875%20-68.195312%2024.34375%20-71.71875%20C%2030.007812%20-75.25%2036.300781%20-77.015625%2043.21875%20-77.015625%20C%2047.625%20-77.015625%2051.617188%20-76.289062%2055.203125%20-74.84375%20C%2058.796875%20-73.394531%2061.972656%20-71.410156%2064.734375%20-68.890625%20L%2064.734375%20-75.5%20L%2088.71875%20-75.5%20L%2088.71875%20-26.984375%20C%2088.71875%20-23.835938%2089.40625%20-21.820312%2090.78125%20-20.9375%20C%2092.164062%20-20.0625%2093.675781%20-19.625%2095.3125%20-19.625%20Z%20M%2047.9375%20-19.8125%20C%2052.84375%20-19.8125%2057.054688%20-21.539062%2060.578125%20-25%20C%2064.109375%20-28.46875%2065.875%20-32.71875%2065.875%20-37.75%20C%2065.875%20-42.78125%2064.109375%20-47.023438%2060.578125%20-50.484375%20C%2057.054688%20-53.953125%2052.84375%20-55.6875%2047.9375%20-55.6875%20C%2042.90625%20-55.6875%2038.660156%20-53.953125%2035.203125%20-50.484375%20C%2031.742188%20-47.023438%2030.015625%20-42.78125%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.742188%20-28.46875%2035.203125%20-25%20C%2038.660156%20-21.539062%2042.90625%20-19.8125%2047.9375%20-19.8125%20Z%20M%2047.9375%20-19.8125%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(167.850545,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2023.59375%20-88.140625%20C%2020.070312%20-88.140625%2016.988281%20-89.460938%2014.34375%20-92.109375%20C%2011.695312%20-94.753906%2010.375%20-97.835938%2010.375%20-101.359375%20C%2010.375%20-105.003906%2011.695312%20-108.117188%2014.34375%20-110.703125%20C%2016.988281%20-113.285156%2020.070312%20-114.578125%2023.59375%20-114.578125%20C%2027.238281%20-114.578125%2030.351562%20-113.285156%2032.9375%20-110.703125%20C%2035.519531%20-108.117188%2036.8125%20-105.003906%2036.8125%20-101.359375%20C%2036.8125%20-97.835938%2035.519531%20-94.753906%2032.9375%20-92.109375%20C%2030.351562%20-89.460938%2027.238281%20-88.140625%2023.59375%20-88.140625%20Z%20M%2011.515625%200%20L%2011.515625%20-75.5%20L%2035.484375%20-75.5%20L%2035.484375%200%20Z%20M%2011.515625%200%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(215.035693,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2047.9375%201.515625%20C%2039.507812%201.515625%2032.148438%20-0.179688%2025.859375%20-3.578125%20C%2019.566406%20-6.984375%2014.65625%20-11.640625%2011.125%20-17.546875%20C%207.601562%20-23.460938%205.84375%20-30.195312%205.84375%20-37.75%20C%205.84375%20-45.300781%207.601562%20-52.03125%2011.125%20-57.9375%20C%2014.65625%20-63.851562%2019.566406%20-68.507812%2025.859375%20-71.90625%20C%2032.148438%20-75.3125%2039.507812%20-77.015625%2047.9375%20-77.015625%20C%2059.269531%20-77.015625%2068.582031%20-74.023438%2075.875%20-68.046875%20C%2083.175781%20-62.066406%2087.644531%20-54.359375%2089.28125%20-44.921875%20L%2064.359375%20-44.921875%20C%2063.097656%20-48.191406%2061.019531%20-50.769531%2058.125%20-52.65625%20C%2055.238281%20-54.550781%2051.84375%20-55.5625%2047.9375%20-55.6875%20C%2042.78125%20-55.5625%2038.503906%20-53.828125%2035.109375%20-50.484375%20C%2031.710938%20-47.148438%2030.015625%20-42.90625%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.710938%20-28.5%2035.109375%20-25.09375%20C%2038.503906%20-21.695312%2042.78125%20-19.9375%2047.9375%20-19.8125%20C%2051.84375%20-19.9375%2055.238281%20-20.972656%2058.125%20-22.921875%20C%2061.019531%20-24.878906%2063.097656%20-27.429688%2064.359375%20-30.578125%20L%2089.28125%20-30.578125%20C%2087.644531%20-21.140625%2083.175781%20-13.429688%2075.875%20-7.453125%20C%2068.582031%20-1.472656%2059.269531%201.515625%2047.9375%201.515625%20Z%20M%2047.9375%201.515625%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",o1=({logo:e=Ev,onLogoClick:n})=>m.jsx(L,{children:m.jsx(kt,{onClick:n,children:m.jsx(pt,{art:e,type:"svg",width:"lg",height:"lg"})})}),kv=({dropdownMaxHeight:e,dropdownMinWidth:n,isDropdownOpen:i=!1,dropdownItems:s=[]})=>{const a=be(),l=a.__hd__.header.navDropdown,d=Ne.isString(e)&&xr(e)?a.sizes[e]:e||l.defaultMaxHeight,f=Ne.isString(n)&&xr(n)?a.sizes[n]:n||l.minWidth;return m.jsx(L,{position:"absolute",top:"100%",left:0,minWidth:f,zIndex:i?a.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:i?1:0,transition:`z-index ${l.animationDuration}ms ease-in, opacity ${l.animationDuration}ms ease-in`,children:m.jsx(L,{overflow:"hidden",display:"flex",flexDirection:"column",mt:l.spacingTop,px:l.paddingX,py:l.paddingY,gap:l.gap,backgroundColor:l.backgroundColor,boxShadow:l.boxShadow,maxHeight:i?d:0,transition:`max-height ${l.animationDuration}ms ease-in`,style:{borderRadius:l.borderRadius},children:s.length>0&&s.map((h,p)=>m.jsx(ms,{isDropdownOpen:!0,isDropdownItem:!0,size:"medium",paddingX:"none",paddingY:"none",...h},`nav-dropdown-item-${p}`))})})},$v=ue.span`
|
|
218
|
+
`,Os=({label:e,icon:n,iconSize:r,isActive:s,isLoading:l,dropdownItems:c=[],onClick:u,size:f="large",isDropdownOpen:p=!1,isDropdownItem:g=!1,onMouseEnter:b,onToggleDropdown:m,paddingX:x,paddingY:v,isRound:_=!1})=>{const j=Re(),{isTouch:k}=rc(),A=c.length>0,$=()=>{if(k&&A){p?u==null||u():m==null||m();return}u==null||u()},M=j.__hd__.header,E=M.navItem,C=s?E.active:E.inactive,T=a.useMemo(()=>g?"transparent":p?C.hoverBackgroundColor:C.backgroundColor,[g,p,C.backgroundColor,C.hoverBackgroundColor]);return d.jsxs(eh,{onClick:$,onMouseEnter:b,$themeBackgroundColor:T,$themeBoxShadow:!g&&p?C.hoverBoxShadow:"none",$themeHoverBackgroundColor:g?"transparent":C.hoverBackgroundColor,$themeHoverBoxShadow:g?"none":C.hoverBoxShadow,$themeHoverColor:E.active.backgroundColor,$themeRadius:E.radius,$themePaddingX:x??E.paddingX,$themePaddingY:v??E.paddingY,$gap:M.loadingGap,$isRound:_,children:[d.jsx(I,{display:"flex",justifyContent:"start",alignItems:"center",flex:1,children:d.jsxs(Y0,{$themeFontWeight:C.fontWeight,$themeFontSize:E[f].fontSize,$themeColor:C.color,$themeHoverColor:E.hover.color,$themeGap:E[f].gap,$themeHeight:E[f].containerHeight,$themeMinWidth:E[f].containerHeight,$isLoading:l??!1,children:[n&&d.jsx(yt,{type:"icon",art:n,size:r??E[f].iconSize}),e]})}),(c.length>0||p)&&d.jsxs(Y0,{$themeFontWeight:C.fontWeight,$themeFontSize:E[f].fontSize,$themeColor:C.color,$themeHoverColor:E.hover.color,$themeGap:E[f].gap,$themeHeight:E[f].containerHeight,$isLoading:l??!1,$isDropdownOpen:p,$isDropdownItem:g,children:[c.length>0&&d.jsx(tc,{size:16,weight:"bold"}),g&&d.jsx(Lr,{rotate:45,size:16,weight:"bold"})]}),d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",absoluteFill:!0,opacity:l?1:0,transition:"opacity 0.2s ease-in-out",children:d.jsx(eo,{size:E[f].loadingSize,color:C.color})})]})};function c4({userProfile:e,dropdownItems:n,maxHeight:r},s){const l=Re(),c=l.__hd__.header.profileDropdown,[u,f]=a.useState(!1),p=a.useRef(null),g=a.useRef(null),b=Xe.isString(c.minWidth)&&Mr(c.minWidth)?l.sizes[c.minWidth]:c.minWidth,m=Xe.isString(r)&&Mr(r)?l.sizes[r]:r||c.defaultMaxHeight,x=()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current)},v=(j=()=>{})=>{x(),f(!0),p.current=setTimeout(j,c.animationDuration)},_=(j=()=>{})=>{x(),f(!1),g.current=setTimeout(j,c.animationDuration)};return a.useImperativeHandle(s,()=>({showDropdown:v,hideDropdown:_})),d.jsx(I,{position:"absolute",top:c.offset.top,right:c.offset.right,minWidth:b,zIndex:u?l.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:u?1:0,transition:`opacity ${c.animationDuration}ms ease-in-out, z-index ${c.animationDuration}ms ease-in-out`,onMouseEnter:()=>v(),onMouseLeave:()=>_(),children:d.jsxs(I,{overflow:"hidden",mt:c.spacingTop,mr:c.containerPaddingRight,padding:c.padding,backgroundColor:c.backgroundColor,boxShadow:c.boxShadow,maxHeight:u?m:0,transition:`max-height ${c.animationDuration}ms ease-in-out`,style:{borderRadius:c.borderRadius},display:"flex",flexDirection:"column",children:[e!=null&&e.name?d.jsx(I,{py:c.padding,mx:"md",children:d.jsx(Oe,{textAlign:"left",children:e.name})}):d.jsx(I,{py:c.padding,mx:"md",children:d.jsx(Oe,{textAlign:"left",children:e==null?void 0:e.email})}),d.jsx(I,{p:c.padding,children:d.jsx(J1,{})}),n==null?void 0:n.map(j=>d.jsx(Os,{label:j.label,onClick:j.onClick,isActive:j.isActive,size:"medium",isDropdownItem:!0},j.label))]})})}const u4=a.forwardRef(c4),th=({isSignedIn:e=!1,isDropdownVisible:n,setIsDropdownVisible:r,userProfile:s,dropdownItems:l,profileDropdownMaxHeight:c,onProfileClick:u,onSignInClick:f,onRegisterClick:p})=>{const g=Re(),[b,m]=a.useState(!1),[x,v]=a.useState(!0),_=a.useDeferredValue(b),j=di(),k=!At()&&j==="xs";a.useEffect(()=>{At()||(m(!k),setTimeout(()=>{v(!1)},300))},[k]);const A=g.__hd__.header.avatarSize||"md",$=a.useRef(null),M=()=>{var C;r(!0),(C=$.current)==null||C.showDropdown()},E=()=>{var C;(C=$.current)==null||C.hideDropdown(()=>{r(!1)})};return a.useEffect(()=>{n?M():E()},[n]),d.jsx(Ji,{display:"flex",visible:x,maxWidth:_?"100%":"0px",maxHeight:_?"100%":"0px",opacity:_?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",children:d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",children:[e?d.jsx(at,{onClick:u,children:d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",p:"sm",r:"full",bgColor:"grey100",onMouseEnter:M,onMouseLeave:E,children:[d.jsx(N1,{src:s==null?void 0:s.avatar,name:s==null?void 0:s.name,size:A}),(s==null?void 0:s.name)&&d.jsx(I,{ml:"sm",children:d.jsx(Oe,{fontWeight:"medium",children:s.name})})]})}):d.jsxs(d.Fragment,{children:[d.jsx(I,{mr:"md",children:d.jsx(ot,{text:"Sign in",variant:"text",color:"black",onClick:f})}),d.jsx(ot,{text:"Register",color:"primary",corner:"rounded",onClick:p})]}),e&&d.jsx(u4,{ref:$,userProfile:s,dropdownItems:l,maxHeight:c})]})})},d4="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='500'%20zoomAndPan='magnify'%20viewBox='0%200%20375%20374.999991'%20height='500'%20preserveAspectRatio='xMidYMid%20meet'%20version='1.0'%3e%3cdefs%3e%3cg%3e%3c/g%3e%3c/defs%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(66.308093,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2095.3125%20-19.625%20L%2098.71875%20-19.625%20L%2098.71875%200%20C%2097.832031%200.375%2096.851562%200.71875%2095.78125%201.03125%20C%2094.71875%201.351562%2093.554688%201.515625%2092.296875%201.515625%20C%2087.265625%201.515625%2082.734375%200.351562%2078.703125%20-1.96875%20C%2074.679688%20-4.300781%2071.472656%20-7.421875%2069.078125%20-11.328125%20C%2066.054688%20-7.421875%2062.375%20-4.300781%2058.03125%20-1.96875%20C%2053.695312%200.351562%2048.757812%201.515625%2043.21875%201.515625%20C%2036.300781%201.515625%2030.007812%20-0.242188%2024.34375%20-3.765625%20C%2018.6875%20-7.296875%2014.1875%20-12.015625%2010.84375%20-17.921875%20C%207.507812%20-23.835938%205.84375%20-30.445312%205.84375%20-37.75%20C%205.84375%20-45.050781%207.507812%20-51.65625%2010.84375%20-57.5625%20C%2014.1875%20-63.476562%2018.6875%20-68.195312%2024.34375%20-71.71875%20C%2030.007812%20-75.25%2036.300781%20-77.015625%2043.21875%20-77.015625%20C%2047.625%20-77.015625%2051.617188%20-76.289062%2055.203125%20-74.84375%20C%2058.796875%20-73.394531%2061.972656%20-71.410156%2064.734375%20-68.890625%20L%2064.734375%20-75.5%20L%2088.71875%20-75.5%20L%2088.71875%20-26.984375%20C%2088.71875%20-23.835938%2089.40625%20-21.820312%2090.78125%20-20.9375%20C%2092.164062%20-20.0625%2093.675781%20-19.625%2095.3125%20-19.625%20Z%20M%2047.9375%20-19.8125%20C%2052.84375%20-19.8125%2057.054688%20-21.539062%2060.578125%20-25%20C%2064.109375%20-28.46875%2065.875%20-32.71875%2065.875%20-37.75%20C%2065.875%20-42.78125%2064.109375%20-47.023438%2060.578125%20-50.484375%20C%2057.054688%20-53.953125%2052.84375%20-55.6875%2047.9375%20-55.6875%20C%2042.90625%20-55.6875%2038.660156%20-53.953125%2035.203125%20-50.484375%20C%2031.742188%20-47.023438%2030.015625%20-42.78125%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.742188%20-28.46875%2035.203125%20-25%20C%2038.660156%20-21.539062%2042.90625%20-19.8125%2047.9375%20-19.8125%20Z%20M%2047.9375%20-19.8125%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(167.850545,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2023.59375%20-88.140625%20C%2020.070312%20-88.140625%2016.988281%20-89.460938%2014.34375%20-92.109375%20C%2011.695312%20-94.753906%2010.375%20-97.835938%2010.375%20-101.359375%20C%2010.375%20-105.003906%2011.695312%20-108.117188%2014.34375%20-110.703125%20C%2016.988281%20-113.285156%2020.070312%20-114.578125%2023.59375%20-114.578125%20C%2027.238281%20-114.578125%2030.351562%20-113.285156%2032.9375%20-110.703125%20C%2035.519531%20-108.117188%2036.8125%20-105.003906%2036.8125%20-101.359375%20C%2036.8125%20-97.835938%2035.519531%20-94.753906%2032.9375%20-92.109375%20C%2030.351562%20-89.460938%2027.238281%20-88.140625%2023.59375%20-88.140625%20Z%20M%2011.515625%200%20L%2011.515625%20-75.5%20L%2035.484375%20-75.5%20L%2035.484375%200%20Z%20M%2011.515625%200%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20fill='%230a1420'%20fill-opacity='1'%3e%3cg%20transform='translate(215.035693,%20231.512278)'%3e%3cg%3e%3cpath%20d='M%2047.9375%201.515625%20C%2039.507812%201.515625%2032.148438%20-0.179688%2025.859375%20-3.578125%20C%2019.566406%20-6.984375%2014.65625%20-11.640625%2011.125%20-17.546875%20C%207.601562%20-23.460938%205.84375%20-30.195312%205.84375%20-37.75%20C%205.84375%20-45.300781%207.601562%20-52.03125%2011.125%20-57.9375%20C%2014.65625%20-63.851562%2019.566406%20-68.507812%2025.859375%20-71.90625%20C%2032.148438%20-75.3125%2039.507812%20-77.015625%2047.9375%20-77.015625%20C%2059.269531%20-77.015625%2068.582031%20-74.023438%2075.875%20-68.046875%20C%2083.175781%20-62.066406%2087.644531%20-54.359375%2089.28125%20-44.921875%20L%2064.359375%20-44.921875%20C%2063.097656%20-48.191406%2061.019531%20-50.769531%2058.125%20-52.65625%20C%2055.238281%20-54.550781%2051.84375%20-55.5625%2047.9375%20-55.6875%20C%2042.78125%20-55.5625%2038.503906%20-53.828125%2035.109375%20-50.484375%20C%2031.710938%20-47.148438%2030.015625%20-42.90625%2030.015625%20-37.75%20C%2030.015625%20-32.71875%2031.710938%20-28.5%2035.109375%20-25.09375%20C%2038.503906%20-21.695312%2042.78125%20-19.9375%2047.9375%20-19.8125%20C%2051.84375%20-19.9375%2055.238281%20-20.972656%2058.125%20-22.921875%20C%2061.019531%20-24.878906%2063.097656%20-27.429688%2064.359375%20-30.578125%20L%2089.28125%20-30.578125%20C%2087.644531%20-21.140625%2083.175781%20-13.429688%2075.875%20-7.453125%20C%2068.582031%20-1.472656%2059.269531%201.515625%2047.9375%201.515625%20Z%20M%2047.9375%201.515625%20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nh=({logo:e=d4,onLogoClick:n})=>d.jsx(I,{children:d.jsx(at,{onClick:n,children:d.jsx(yt,{art:e,type:"svg",width:"lg",height:"lg"})})}),f4=({dropdownMaxHeight:e,dropdownMinWidth:n,isDropdownOpen:r=!1,dropdownItems:s=[]})=>{const l=Re(),c=l.__hd__.header.navDropdown,u=Xe.isString(e)&&Mr(e)?l.sizes[e]:e||c.defaultMaxHeight,f=Xe.isString(n)&&Mr(n)?l.sizes[n]:n||c.minWidth;return d.jsx(I,{position:"absolute",top:"100%",left:0,minWidth:f,zIndex:r?l.zIndex.getZIndex("AIC_Kits_Dropdown"):-1,opacity:r?1:0,transition:`z-index ${c.animationDuration}ms ease-in, opacity ${c.animationDuration}ms ease-in`,children:d.jsx(I,{overflow:"hidden",display:"flex",flexDirection:"column",mt:c.spacingTop,px:c.paddingX,py:c.paddingY,gap:c.gap,backgroundColor:c.backgroundColor,boxShadow:c.boxShadow,maxHeight:r?u:0,transition:`max-height ${c.animationDuration}ms ease-in`,style:{borderRadius:c.borderRadius},children:s.length>0&&s.map((p,g)=>d.jsx(Os,{isDropdownOpen:!0,isDropdownItem:!0,size:"medium",paddingX:"none",paddingY:"none",...p},`nav-dropdown-item-${g}`))})})},h4=pe.span`
|
|
215
219
|
position: relative;
|
|
216
|
-
`,
|
|
220
|
+
`,p4=({item:e,index:n,openItemIndex:r,handleNavItemMouseEnter:s,handleNavItemMouseLeave:l,handleNavItemToggleDropdown:c})=>{var b,m;const[u,f]=a.useState(0),p=a.useRef(null),{isMouse:g}=rc();return a.useLayoutEffect(()=>{p.current&&f(p.current.offsetWidth)},[e]),d.jsxs(h4,{onMouseLeave:g?l:void 0,onMouseEnter:g?()=>s(e,n):void 0,children:[d.jsx(I,{ref:p,display:"inline-block",children:d.jsx(Os,{...e,isActive:r!==n&&(e.isActive||((b=e.dropdownItems)==null?void 0:b.some(x=>x.isActive)))||e.isActive,isLoading:r!==n&&(e.isLoading||((m=e.dropdownItems)==null?void 0:m.some(x=>x.isLoading)))||e.isLoading,isDropdownOpen:r===n,onToggleDropdown:()=>c(n)})}),e.dropdownItems&&e.dropdownItems.length>0&&d.jsx(f4,{dropdownItems:e.dropdownItems,isDropdownOpen:r===n,dropdownMinWidth:u})]})},rh=({navItems:e=[]})=>{const r=Re().__hd__.header,s=a.useRef(null),[l,c]=a.useState(!1),[u,f]=a.useState(!0),p=di(),g=!At()&&p==="xs",[b,m]=a.useState(null);a.useEffect(()=>{At()||(c(!g),setTimeout(()=>{f(!1)},300))},[g]),a.useEffect(()=>{const k=A=>{s.current&&!s.current.contains(A.target)&&m(null)};return b!==null&&document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[b]);const x=a.useDeferredValue(l),v=(k,A)=>{k.dropdownItems&&k.dropdownItems.length>0&&m(A)},_=()=>{m(null)},j=k=>{m(A=>A===k?null:k)};return d.jsx(Ji,{display:"flex",visible:u,maxWidth:x?"100%":"0px",maxHeight:x?"100%":"0px",opacity:x?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",py:"sm",children:d.jsx(I,{ref:s,display:"flex",flexDirection:"row",justifyContent:"center",flex:1,gap:r.navItem.gap,p:r.padding,r:r.radius,bgColor:r.backgroundColor,children:e.map((k,A)=>d.jsx(p4,{item:k,index:A,openItemIndex:b,handleNavItemMouseEnter:v,handleNavItemMouseLeave:_,handleNavItemToggleDropdown:j},`nav-item-wrapper-${A}`))})})},ih=({onSearchClick:e,isSearchActive:n=!1,isSearchLoading:r=!1})=>{const l=Re().__hd__.header,[c,u]=a.useState(!1),[f,p]=a.useState(!0),g=di(),b=!At()&&g==="xs";a.useEffect(()=>{At()||(u(!b),setTimeout(()=>{p(!1)},300))},[b]);const m=a.useDeferredValue(c);return d.jsx(Ji,{display:"flex",visible:f,maxWidth:m?"100%":"0px",maxHeight:m?"100%":"0px",opacity:m?1:0,variant:"transparent",transition:"max-width 0.3s ease-in-out, opacity 0.3s ease-in-out",r:"lg",py:"sm",children:d.jsx(I,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",p:l.padding,r:l.radius,bgColor:l.backgroundColor,children:d.jsx(Os,{icon:L1,isActive:n,isLoading:r,onClick:e,isRound:!0})})})};function g4({backgroundColor:e="white",logo:n,navItems:r=[],isSignedIn:s=!1,userProfile:l,profileDropdownItems:c,profileDropdownMaxHeight:u,onLogoClick:f,onNavItemClick:p,onSignInClick:g,onRegisterClick:b,onProfileClick:m,onSearchClick:x,isSearchActive:v,isSearchLoading:_,...j},k){const[A,$]=a.useState(!1);return a.useImperativeHandle(k,()=>({showDropdown:()=>$(!0),hideDropdown:()=>$(!1)})),d.jsxs(I,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",p:"md",bgColor:e,...j,children:[d.jsx(nh,{logo:n,onLogoClick:f}),d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:"sm-md",children:[d.jsx(rh,{navItems:r,onNavItemClick:p}),x&&d.jsx(ih,{onSearchClick:x,isSearchActive:v,isSearchLoading:_})]}),d.jsx(th,{isSignedIn:s,isDropdownVisible:A,setIsDropdownVisible:$,userProfile:l,dropdownItems:c,profileDropdownMaxHeight:u,onSignInClick:g,onRegisterClick:b,onProfileClick:m})]})}const oh=a.forwardRef(g4),m4=(e,n,r)=>{let s={};return e?n==="padded"?(s.maxWidth=void 0,s.px=r.desktopPaddingX):(s.maxWidth=r.desktopContentMaxWidth,s.px=r.mobilePaddingX):(s.maxWidth=void 0,s.px=r.mobilePaddingX),s},y4=(e,n)=>{const r={};return e&&n==="maxWidth"&&(r.marginLeft="auto",r.marginRight="auto"),r},b4=({children:e,backgroundColor:n="white",header:r,contentLayoutMode:s="maxWidth",style:l,...c})=>{const f=Re().__hd__.base,p=di(),g=At()||p==="md"||p==="lg"||p==="xl",b=m4(g,s,f),m=y4(g,s);return d.jsxs(I,{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",bgColor:n,style:l,...c,children:[r&&d.jsx(oh,{...r}),d.jsx(I,{flex:1,overflow:"visible",position:"relative",width:"100%",...b,style:m,children:e})]})},x4=pe.div`
|
|
217
221
|
display: flex;
|
|
218
222
|
flex-direction: row;
|
|
219
223
|
align-items: center;
|
|
220
224
|
overflow: hidden;
|
|
221
|
-
${({theme:e,$isFocused:n,$isDisabled:
|
|
222
|
-
padding: ${
|
|
223
|
-
border-radius: ${
|
|
224
|
-
border: ${
|
|
225
|
-
box-shadow: ${
|
|
226
|
-
background-color: ${
|
|
227
|
-
opacity: ${
|
|
225
|
+
${({theme:e,$isFocused:n,$isDisabled:r,$error:s,$borderColor:l,$bgColor:c,$borderRadius:u})=>{const f=e.__hd__.input;let p="default";s?p="error":r?p="disabled":n&&(p="focused");const g=f.states[p],b=p==="focused"&&l?`0 0 0 2px ${e.colors[l]} inset`:g.boxShadow,m=e.spaces[f.padding.vertical],x=e.spaces[f.padding.horizontal],v=e.radii[u??f.borderRadius],_=e.borderWidths[f.borderWidth],j=p!=="disabled"&&c?e.colors[c]:g.backgroundColor;return`
|
|
226
|
+
padding: ${m}px ${x}px;
|
|
227
|
+
border-radius: ${v}px;
|
|
228
|
+
border: ${_}px solid ${e.colors[g.borderColor]};
|
|
229
|
+
box-shadow: ${b};
|
|
230
|
+
background-color: ${j};
|
|
231
|
+
opacity: ${r?.7:1};
|
|
228
232
|
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
229
233
|
`}}
|
|
230
|
-
`,
|
|
234
|
+
`,X0=pe.input`
|
|
231
235
|
flex: 1;
|
|
232
236
|
min-width: 0;
|
|
233
237
|
border: none;
|
|
@@ -249,34 +253,34 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
249
253
|
&::-ms-reveal {
|
|
250
254
|
display: none;
|
|
251
255
|
}
|
|
252
|
-
`,Ov=(e,n)=>{const{value:i="",onChange:s,placeholder:a="",disabled:l=!1,error:d,label:f,helperText:h,leftIcon:p,rightIcon:x,onClear:w,borderColor:_,bgColor:v,multiline:C,...R}=e,k=be(),T=k.__hd__.input,[E,I]=c.useState(!1),$=c.useRef(null),[M,z]=c.useState(i),[j,H]=c.useState(!1),[se,te]=c.useState(null),re=!C&&R.type==="password";c.useEffect(()=>{z(i)},[i]),c.useEffect(()=>{if(re&&$.current&&se!==null){const pe=$.current,Se=se;requestAnimationFrame(()=>{pe&&(pe.focus(),pe.setSelectionRange(Se,Se))}),te(null)}},[j,re,se]),c.useImperativeHandle(n,()=>({focus:()=>{var pe;return(pe=$.current)==null?void 0:pe.focus()},blur:()=>{var pe;return(pe=$.current)==null?void 0:pe.blur()},get value(){return M}}));const B=pe=>{I(!0),e.onFocus&&e.onFocus(pe)},W=pe=>{I(!1),e.onBlur&&e.onBlur(pe)},P=pe=>{const Se=pe.target.value;z(Se),s==null||s(Se)},le=vt(k,T.iconSize),K=l?T.disabledTextColor:T.iconColor,ne=()=>{re&&$.current&&(te($.current.selectionStart),H(!j))},ie=()=>{$.current&&(z(""),s==null||s(""),w==null||w())},we={ref:$,value:M,onChange:P,onFocus:B,onBlur:W,placeholder:a,disabled:l};return m.jsxs(L,{fw:!0,children:[f&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:f})}),m.jsxs(Fv,{$isFocused:E,$isDisabled:l,$error:!!d,$borderColor:_,$bgColor:v,children:[p&&m.jsx(L,{mr:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:p,size:le,color:K})}),C?m.jsx(lf,{as:"textarea",...we,...R}):m.jsx(lf,{...we,...R,type:j?"text":R.type}),re&&E?m.jsx(L,{ml:T.iconSpacing,onClick:ne,onMouseDown:pe=>pe.preventDefault(),cursor:"pointer","data-testid":"password-toggle-icon",children:m.jsx(pt,{type:"icon",art:j?B0:H0,size:le,color:K})}):w&&M&&!l?m.jsx(kt,{onClick:ie,children:m.jsx(L,{ml:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:le,color:K})})}):!re&&x&&m.jsx(L,{ml:T.iconSpacing,children:m.jsx(pt,{type:"icon",art:x,size:le,color:K})})]}),(d||h)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:d?"danger":"grey600",children:d||h})})]})},Il=c.forwardRef(Ov),zv=["p","padding","pt","pb","pl","pr","px","py","gap","display","flexDirection","alignItems","justifyContent","flexWrap","flexGrow","flexShrink","flexBasis","flex"];function Lv(e){const n={},i={},s={};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=e[a];zv.includes(a)?n[a]=l:a!=="data"&&a!=="renderItem"&&a!=="keyExtractor"&&a!=="ListEmptyComponent"&&a!=="ListHeaderComponent"&&a!=="ListFooterComponent"&&a!=="ItemSeparatorComponent"&&a!=="itemGap"?i[a]=l:s[a]=l}return{listProps:s,contentProps:n,containerProps:i}}function jv(e,n){var I,$;const{listProps:i,contentProps:s,containerProps:a}=Lv(e),{data:l=[],renderItem:d,keyExtractor:f,ListEmptyComponent:h,ListHeaderComponent:p,ListFooterComponent:x,ItemSeparatorComponent:w,itemGap:_}=i,v=be(),C=((I=v.__hd__.list)==null?void 0:I.defaultGap)||"xs",R=_||C,k=(($=v.__hd__.list)==null?void 0:$.defaultPadding)||"0px",T=s.p??s.padding??k,E=()=>l.length===0&&h?h:l.map((M,z)=>{const j=f?f(M,z):String(z),H=d?d(M,z):null;return H?m.jsxs(c.Fragment,{children:[H,w&&z<l.length-1?w:null]},j):null});return m.jsx(L,{ref:n,overflow:"auto",width:"100%",...a,children:m.jsxs(L,{display:"flex",flexDirection:"column",gap:R,p:T,...s,children:[p,E(),x]})})}const Dv=c.forwardRef(jv);/*! @vimeo/player v2.27.1 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function cf(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function uf(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?cf(Object(i),!0).forEach(function(s){Ko(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):cf(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Mt(){Mt=function(){return e};var e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(B,W,P){B[W]=P.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",d=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function h(B,W,P){return Object.defineProperty(B,W,{value:P,enumerable:!0,configurable:!0,writable:!0}),B[W]}try{h({},"")}catch{h=function(W,P,le){return W[P]=le}}function p(B,W,P,le){var K=W&&W.prototype instanceof _?W:_,ne=Object.create(K.prototype),ie=new se(le||[]);return s(ne,"_invoke",{value:M(B,P,ie)}),ne}function x(B,W,P){try{return{type:"normal",arg:B.call(W,P)}}catch(le){return{type:"throw",arg:le}}}e.wrap=p;var w={};function _(){}function v(){}function C(){}var R={};h(R,l,function(){return this});var k=Object.getPrototypeOf,T=k&&k(k(te([])));T&&T!==n&&i.call(T,l)&&(R=T);var E=C.prototype=_.prototype=Object.create(R);function I(B){["next","throw","return"].forEach(function(W){h(B,W,function(P){return this._invoke(W,P)})})}function $(B,W){function P(K,ne,ie,we){var pe=x(B[K],B,ne);if(pe.type!=="throw"){var Se=pe.arg,$e=Se.value;return $e&&typeof $e=="object"&&i.call($e,"__await")?W.resolve($e.__await).then(function(de){P("next",de,ie,we)},function(de){P("throw",de,ie,we)}):W.resolve($e).then(function(de){Se.value=de,ie(Se)},function(de){return P("throw",de,ie,we)})}we(pe.arg)}var le;s(this,"_invoke",{value:function(K,ne){function ie(){return new W(function(we,pe){P(K,ne,we,pe)})}return le=le?le.then(ie,ie):ie()}})}function M(B,W,P){var le="suspendedStart";return function(K,ne){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(K==="throw")throw ne;return re()}for(P.method=K,P.arg=ne;;){var ie=P.delegate;if(ie){var we=z(ie,P);if(we){if(we===w)continue;return we}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(le==="suspendedStart")throw le="completed",P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);le="executing";var pe=x(B,W,P);if(pe.type==="normal"){if(le=P.done?"completed":"suspendedYield",pe.arg===w)continue;return{value:pe.arg,done:P.done}}pe.type==="throw"&&(le="completed",P.method="throw",P.arg=pe.arg)}}}function z(B,W){var P=W.method,le=B.iterator[P];if(le===void 0)return W.delegate=null,P==="throw"&&B.iterator.return&&(W.method="return",W.arg=void 0,z(B,W),W.method==="throw")||P!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+P+"' method")),w;var K=x(le,B.iterator,W.arg);if(K.type==="throw")return W.method="throw",W.arg=K.arg,W.delegate=null,w;var ne=K.arg;return ne?ne.done?(W[B.resultName]=ne.value,W.next=B.nextLoc,W.method!=="return"&&(W.method="next",W.arg=void 0),W.delegate=null,w):ne:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,w)}function j(B){var W={tryLoc:B[0]};1 in B&&(W.catchLoc=B[1]),2 in B&&(W.finallyLoc=B[2],W.afterLoc=B[3]),this.tryEntries.push(W)}function H(B){var W=B.completion||{};W.type="normal",delete W.arg,B.completion=W}function se(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(j,this),this.reset(!0)}function te(B){if(B){var W=B[l];if(W)return W.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var P=-1,le=function K(){for(;++P<B.length;)if(i.call(B,P))return K.value=B[P],K.done=!1,K;return K.value=void 0,K.done=!0,K};return le.next=le}}return{next:re}}function re(){return{value:void 0,done:!0}}return v.prototype=C,s(E,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:v,configurable:!0}),v.displayName=h(C,f,"GeneratorFunction"),e.isGeneratorFunction=function(B){var W=typeof B=="function"&&B.constructor;return!!W&&(W===v||(W.displayName||W.name)==="GeneratorFunction")},e.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,C):(B.__proto__=C,h(B,f,"GeneratorFunction")),B.prototype=Object.create(E),B},e.awrap=function(B){return{__await:B}},I($.prototype),h($.prototype,d,function(){return this}),e.AsyncIterator=$,e.async=function(B,W,P,le,K){K===void 0&&(K=Promise);var ne=new $(p(B,W,P,le),K);return e.isGeneratorFunction(W)?ne:ne.next().then(function(ie){return ie.done?ie.value:ne.next()})},I(E),h(E,f,"Generator"),h(E,l,function(){return this}),h(E,"toString",function(){return"[object Generator]"}),e.keys=function(B){var W=Object(B),P=[];for(var le in W)P.push(le);return P.reverse(),function K(){for(;P.length;){var ne=P.pop();if(ne in W)return K.value=ne,K.done=!1,K}return K.done=!0,K}},e.values=te,se.prototype={constructor:se,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(H),!B)for(var W in this)W.charAt(0)==="t"&&i.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var W=this;function P(pe,Se){return ne.type="throw",ne.arg=B,W.next=pe,Se&&(W.method="next",W.arg=void 0),!!Se}for(var le=this.tryEntries.length-1;le>=0;--le){var K=this.tryEntries[le],ne=K.completion;if(K.tryLoc==="root")return P("end");if(K.tryLoc<=this.prev){var ie=i.call(K,"catchLoc"),we=i.call(K,"finallyLoc");if(ie&&we){if(this.prev<K.catchLoc)return P(K.catchLoc,!0);if(this.prev<K.finallyLoc)return P(K.finallyLoc)}else if(ie){if(this.prev<K.catchLoc)return P(K.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return P(K.finallyLoc)}}}},abrupt:function(B,W){for(var P=this.tryEntries.length-1;P>=0;--P){var le=this.tryEntries[P];if(le.tryLoc<=this.prev&&i.call(le,"finallyLoc")&&this.prev<le.finallyLoc){var K=le;break}}K&&(B==="break"||B==="continue")&&K.tryLoc<=W&&W<=K.finallyLoc&&(K=null);var ne=K?K.completion:{};return ne.type=B,ne.arg=W,K?(this.method="next",this.next=K.finallyLoc,w):this.complete(ne)},complete:function(B,W){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&W&&(this.next=W),w},finish:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.finallyLoc===B)return this.complete(P.completion,P.afterLoc),H(P),w}},catch:function(B){for(var W=this.tryEntries.length-1;W>=0;--W){var P=this.tryEntries[W];if(P.tryLoc===B){var le=P.completion;if(le.type==="throw"){var K=le.arg;H(P)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(B,W,P){return this.delegate={iterator:te(B),resultName:W,nextLoc:P},this.method==="next"&&(this.arg=void 0),w}},e}function df(e,n,i,s,a,l,d){try{var f=e[l](d),h=f.value}catch(p){i(p);return}f.done?n(h):Promise.resolve(h).then(s,a)}function yr(e){return function(){var n=this,i=arguments;return new Promise(function(s,a){var l=e.apply(n,i);function d(h){df(l,s,a,d,f,"next",h)}function f(h){df(l,s,a,d,f,"throw",h)}d(void 0)})}}function c1(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Pv(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,f1(s.key),s)}}function u1(e,n,i){return n&&Pv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ko(e,n,i){return n=f1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Wv(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Bi(e,n)}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wi(e)}function Bi(e,n){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Bi(e,n)}function d1(){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 Yo(e,n,i){return d1()?Yo=Reflect.construct.bind():Yo=function(a,l,d){var f=[null];f.push.apply(f,l);var h=Function.bind.apply(a,f),p=new h;return d&&Bi(p,d.prototype),p},Yo.apply(null,arguments)}function Bv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sl(e){var n=typeof Map=="function"?new Map:void 0;return sl=function(s){if(s===null||!Bv(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(s))return n.get(s);n.set(s,a)}function a(){return Yo(s,arguments,Wi(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bi(a,s)},sl(e)}function Xo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hv(e,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xo(e)}function Zv(e){var n=d1();return function(){var s=Wi(e),a;if(n){var l=Wi(this).constructor;a=Reflect.construct(s,arguments,l)}else a=s.apply(this,arguments);return Hv(this,a)}}function Vv(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function f1(e){var n=Vv(e,"string");return typeof n=="symbol"?n:String(n)}var h1=typeof global<"u"&&{}.toString.call(global)==="[object global]";function ff(e,n){return e.indexOf(n.toLowerCase())===0?e:"".concat(n.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function Nv(e){return!!(e&&e.nodeType===1&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function Uv(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function wr(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function p1(e){var n=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return n.test(e)}function Gv(e){for(var n=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),i=(n&&n[1]||"").replace("player.",""),s=[".videoji.hk",".vimeo.work",".videoji.cn"],a=0,l=s;a<l.length;a++){var d=l[a];if(i.endsWith(d))return i}return"vimeo.com"}function g1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.id,i=e.url,s=n||i;if(!s)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Uv(s))return"https://vimeo.com/".concat(s);if(wr(s))return s.replace("http:","https:");throw n?new TypeError("“".concat(n,"” is not a valid video id.")):new TypeError("“".concat(s,"” is not a vimeo.com url."))}var hf=function(n,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",d=typeof i=="string"?[i]:i;return d.forEach(function(f){n[a](f,s)}),{cancel:function(){return d.forEach(function(h){return n[l](h,s)})}}},qv=typeof Array.prototype.indexOf<"u",Kv=typeof window<"u"&&typeof window.postMessage<"u";if(!h1&&(!qv||!Kv))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yv(e,n){return n={exports:{}},e(n,n.exports),n.exports}/*!
|
|
256
|
+
`,v4=(e,n)=>{const{value:r="",onChange:s,placeholder:l="",disabled:c=!1,error:u,label:f,helperText:p,leftIcon:g,rightIcon:b,onClear:m,borderColor:x,bgColor:v,borderRadius:_,multiline:j,...k}=e,A=Re(),$=A.__hd__.input,[M,E]=a.useState(!1),C=a.useRef(null),[T,L]=a.useState(r),[F,Y]=a.useState(!1),[U,K]=a.useState(null),O=!j&&k.type==="password";a.useEffect(()=>{L(r)},[r]),a.useEffect(()=>{if(O&&C.current&&U!==null){const ke=C.current,V=U;requestAnimationFrame(()=>{ke&&(ke.focus(),ke.setSelectionRange(V,V))}),K(null)}},[F,O,U]),a.useImperativeHandle(n,()=>({focus:()=>{var ke;return(ke=C.current)==null?void 0:ke.focus()},blur:()=>{var ke;return(ke=C.current)==null?void 0:ke.blur()},get value(){return T}}));const W=ke=>{E(!0),e.onFocus&&e.onFocus(ke)},B=ke=>{E(!1),e.onBlur&&e.onBlur(ke)},he=ke=>{const V=ke.target.value;L(V),s==null||s(V)},N=xt(A,$.iconSize),ne=c?$.disabledTextColor:$.iconColor,oe=()=>{O&&C.current&&(K(C.current.selectionStart),Y(!F))},Se=()=>{C.current&&(L(""),s==null||s(""),m==null||m())},Te={ref:C,value:T,onChange:he,onFocus:W,onBlur:B,placeholder:l,disabled:c};return d.jsxs(I,{fw:!0,children:[f&&d.jsx(I,{mb:"xs",children:d.jsx(Oe,{fontWeight:"medium",children:f})}),d.jsxs(x4,{$isFocused:M,$isDisabled:c,$error:!!u,$borderColor:x,$bgColor:v,$borderRadius:_,children:[g&&d.jsx(I,{mr:$.iconSpacing,children:d.jsx(yt,{type:"icon",art:g,size:N,color:ne})}),j?d.jsx(X0,{as:"textarea",...Te,...k}):d.jsx(X0,{...Te,...k,type:F?"text":k.type}),O&&M?d.jsx(I,{ml:$.iconSpacing,onClick:oe,onMouseDown:ke=>ke.preventDefault(),cursor:"pointer","data-testid":"password-toggle-icon",children:d.jsx(yt,{type:"icon",art:F?O1:z1,size:N,color:ne})}):m&&T&&!c?d.jsx(at,{onClick:Se,children:d.jsx(I,{ml:$.iconSpacing,children:d.jsx(yt,{type:"icon",art:Rn,size:N,color:ne})})}):!O&&b&&d.jsx(I,{ml:$.iconSpacing,children:d.jsx(yt,{type:"icon",art:b,size:N,color:ne})})]}),(u||p)&&d.jsx(I,{mt:"xs",children:d.jsx(Oe,{fontSize:"xs",color:u?"danger":"grey600",children:u||p})})]})},In=a.forwardRef(v4),w4=["p","padding","pt","pb","pl","pr","px","py","gap","display","flexDirection","alignItems","justifyContent","flexWrap","flexGrow","flexShrink","flexBasis","flex"];function _4(e){const n={},r={},s={};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const c=e[l];w4.includes(l)?n[l]=c:l!=="data"&&l!=="renderItem"&&l!=="keyExtractor"&&l!=="ListEmptyComponent"&&l!=="ListHeaderComponent"&&l!=="ListFooterComponent"&&l!=="ItemSeparatorComponent"&&l!=="itemGap"?r[l]=c:s[l]=c}return{listProps:s,contentProps:n,containerProps:r}}function S4(e,n){var M,E;const{listProps:r,contentProps:s,containerProps:l}=_4(e),{data:c=[],renderItem:u,keyExtractor:f,ListEmptyComponent:p,ListHeaderComponent:g,ListFooterComponent:b,ItemSeparatorComponent:m,itemGap:x}=r,v=Re(),_=((M=v.__hd__.list)==null?void 0:M.defaultGap)||"xs",j=x||_,k=((E=v.__hd__.list)==null?void 0:E.defaultPadding)||"0px",A=s.p??s.padding??k,$=()=>c.length===0&&p?p:c.map((C,T)=>{const L=f?f(C,T):String(T),F=u?u(C,T):null;return F?d.jsxs(a.Fragment,{children:[F,m&&T<c.length-1?m:null]},L):null});return d.jsx(I,{ref:n,overflow:"auto",width:"100%",...l,children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:j,p:A,...s,children:[g,$(),b]})})}const C4=a.forwardRef(S4);/*! @vimeo/player v2.27.1 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function Q0(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,s)}return r}function J0(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Q0(Object(r),!0).forEach(function(s){ps(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q0(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function zt(){zt=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(O,W,B){O[W]=B.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function p(O,W,B){return Object.defineProperty(O,W,{value:B,enumerable:!0,configurable:!0,writable:!0}),O[W]}try{p({},"")}catch{p=function(W,B,he){return W[B]=he}}function g(O,W,B,he){var N=W&&W.prototype instanceof x?W:x,ne=Object.create(N.prototype),oe=new Y(he||[]);return s(ne,"_invoke",{value:C(O,B,oe)}),ne}function b(O,W,B){try{return{type:"normal",arg:O.call(W,B)}}catch(he){return{type:"throw",arg:he}}}e.wrap=g;var m={};function x(){}function v(){}function _(){}var j={};p(j,c,function(){return this});var k=Object.getPrototypeOf,A=k&&k(k(U([])));A&&A!==n&&r.call(A,c)&&(j=A);var $=_.prototype=x.prototype=Object.create(j);function M(O){["next","throw","return"].forEach(function(W){p(O,W,function(B){return this._invoke(W,B)})})}function E(O,W){function B(N,ne,oe,Se){var Te=b(O[N],O,ne);if(Te.type!=="throw"){var ke=Te.arg,V=ke.value;return V&&typeof V=="object"&&r.call(V,"__await")?W.resolve(V.__await).then(function(de){B("next",de,oe,Se)},function(de){B("throw",de,oe,Se)}):W.resolve(V).then(function(de){ke.value=de,oe(ke)},function(de){return B("throw",de,oe,Se)})}Se(Te.arg)}var he;s(this,"_invoke",{value:function(N,ne){function oe(){return new W(function(Se,Te){B(N,ne,Se,Te)})}return he=he?he.then(oe,oe):oe()}})}function C(O,W,B){var he="suspendedStart";return function(N,ne){if(he==="executing")throw new Error("Generator is already running");if(he==="completed"){if(N==="throw")throw ne;return K()}for(B.method=N,B.arg=ne;;){var oe=B.delegate;if(oe){var Se=T(oe,B);if(Se){if(Se===m)continue;return Se}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(he==="suspendedStart")throw he="completed",B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);he="executing";var Te=b(O,W,B);if(Te.type==="normal"){if(he=B.done?"completed":"suspendedYield",Te.arg===m)continue;return{value:Te.arg,done:B.done}}Te.type==="throw"&&(he="completed",B.method="throw",B.arg=Te.arg)}}}function T(O,W){var B=W.method,he=O.iterator[B];if(he===void 0)return W.delegate=null,B==="throw"&&O.iterator.return&&(W.method="return",W.arg=void 0,T(O,W),W.method==="throw")||B!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+B+"' method")),m;var N=b(he,O.iterator,W.arg);if(N.type==="throw")return W.method="throw",W.arg=N.arg,W.delegate=null,m;var ne=N.arg;return ne?ne.done?(W[O.resultName]=ne.value,W.next=O.nextLoc,W.method!=="return"&&(W.method="next",W.arg=void 0),W.delegate=null,m):ne:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,m)}function L(O){var W={tryLoc:O[0]};1 in O&&(W.catchLoc=O[1]),2 in O&&(W.finallyLoc=O[2],W.afterLoc=O[3]),this.tryEntries.push(W)}function F(O){var W=O.completion||{};W.type="normal",delete W.arg,O.completion=W}function Y(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(L,this),this.reset(!0)}function U(O){if(O){var W=O[c];if(W)return W.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var B=-1,he=function N(){for(;++B<O.length;)if(r.call(O,B))return N.value=O[B],N.done=!1,N;return N.value=void 0,N.done=!0,N};return he.next=he}}return{next:K}}function K(){return{value:void 0,done:!0}}return v.prototype=_,s($,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:v,configurable:!0}),v.displayName=p(_,f,"GeneratorFunction"),e.isGeneratorFunction=function(O){var W=typeof O=="function"&&O.constructor;return!!W&&(W===v||(W.displayName||W.name)==="GeneratorFunction")},e.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,_):(O.__proto__=_,p(O,f,"GeneratorFunction")),O.prototype=Object.create($),O},e.awrap=function(O){return{__await:O}},M(E.prototype),p(E.prototype,u,function(){return this}),e.AsyncIterator=E,e.async=function(O,W,B,he,N){N===void 0&&(N=Promise);var ne=new E(g(O,W,B,he),N);return e.isGeneratorFunction(W)?ne:ne.next().then(function(oe){return oe.done?oe.value:ne.next()})},M($),p($,f,"Generator"),p($,c,function(){return this}),p($,"toString",function(){return"[object Generator]"}),e.keys=function(O){var W=Object(O),B=[];for(var he in W)B.push(he);return B.reverse(),function N(){for(;B.length;){var ne=B.pop();if(ne in W)return N.value=ne,N.done=!1,N}return N.done=!0,N}},e.values=U,Y.prototype={constructor:Y,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!O)for(var W in this)W.charAt(0)==="t"&&r.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var W=this;function B(Te,ke){return ne.type="throw",ne.arg=O,W.next=Te,ke&&(W.method="next",W.arg=void 0),!!ke}for(var he=this.tryEntries.length-1;he>=0;--he){var N=this.tryEntries[he],ne=N.completion;if(N.tryLoc==="root")return B("end");if(N.tryLoc<=this.prev){var oe=r.call(N,"catchLoc"),Se=r.call(N,"finallyLoc");if(oe&&Se){if(this.prev<N.catchLoc)return B(N.catchLoc,!0);if(this.prev<N.finallyLoc)return B(N.finallyLoc)}else if(oe){if(this.prev<N.catchLoc)return B(N.catchLoc,!0)}else{if(!Se)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return B(N.finallyLoc)}}}},abrupt:function(O,W){for(var B=this.tryEntries.length-1;B>=0;--B){var he=this.tryEntries[B];if(he.tryLoc<=this.prev&&r.call(he,"finallyLoc")&&this.prev<he.finallyLoc){var N=he;break}}N&&(O==="break"||O==="continue")&&N.tryLoc<=W&&W<=N.finallyLoc&&(N=null);var ne=N?N.completion:{};return ne.type=O,ne.arg=W,N?(this.method="next",this.next=N.finallyLoc,m):this.complete(ne)},complete:function(O,W){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&W&&(this.next=W),m},finish:function(O){for(var W=this.tryEntries.length-1;W>=0;--W){var B=this.tryEntries[W];if(B.finallyLoc===O)return this.complete(B.completion,B.afterLoc),F(B),m}},catch:function(O){for(var W=this.tryEntries.length-1;W>=0;--W){var B=this.tryEntries[W];if(B.tryLoc===O){var he=B.completion;if(he.type==="throw"){var N=he.arg;F(B)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(O,W,B){return this.delegate={iterator:U(O),resultName:W,nextLoc:B},this.method==="next"&&(this.arg=void 0),m}},e}function ef(e,n,r,s,l,c,u){try{var f=e[c](u),p=f.value}catch(g){r(g);return}f.done?n(p):Promise.resolve(p).then(s,l)}function Tr(e){return function(){var n=this,r=arguments;return new Promise(function(s,l){var c=e.apply(n,r);function u(p){ef(c,s,l,u,f,"next",p)}function f(p){ef(c,s,l,u,f,"throw",p)}u(void 0)})}}function sh(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function E4(e,n){for(var r=0;r<n.length;r++){var s=n[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,ch(s.key),s)}}function ah(e,n,r){return n&&E4(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ps(e,n,r){return n=ch(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function $4(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Yi(e,n)}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function Yi(e,n){return Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},Yi(e,n)}function lh(){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 gs(e,n,r){return lh()?gs=Reflect.construct.bind():gs=function(l,c,u){var f=[null];f.push.apply(f,c);var p=Function.bind.apply(l,f),g=new p;return u&&Yi(g,u.prototype),g},gs.apply(null,arguments)}function k4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fl(e){var n=typeof Map=="function"?new Map:void 0;return Fl=function(s){if(s===null||!k4(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(s))return n.get(s);n.set(s,l)}function l(){return gs(s,arguments,Ki(this).constructor)}return l.prototype=Object.create(s.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Yi(l,s)},Fl(e)}function ms(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A4(e,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ms(e)}function j4(e){var n=lh();return function(){var s=Ki(e),l;if(n){var c=Ki(this).constructor;l=Reflect.construct(s,arguments,c)}else l=s.apply(this,arguments);return A4(this,l)}}function T4(e,n){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ch(e){var n=T4(e,"string");return typeof n=="symbol"?n:String(n)}var uh=typeof global<"u"&&{}.toString.call(global)==="[object global]";function tf(e,n){return e.indexOf(n.toLowerCase())===0?e:"".concat(n.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function R4(e){return!!(e&&e.nodeType===1&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function M4(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function Or(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function dh(e){var n=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return n.test(e)}function I4(e){for(var n=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),r=(n&&n[1]||"").replace("player.",""),s=[".videoji.hk",".vimeo.work",".videoji.cn"],l=0,c=s;l<c.length;l++){var u=c[l];if(r.endsWith(u))return r}return"vimeo.com"}function fh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.id,r=e.url,s=n||r;if(!s)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(M4(s))return"https://vimeo.com/".concat(s);if(Or(s))return s.replace("http:","https:");throw n?new TypeError("“".concat(n,"” is not a valid video id.")):new TypeError("“".concat(s,"” is not a vimeo.com url."))}var nf=function(n,r,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof r=="string"?[r]:r;return u.forEach(function(f){n[l](f,s)}),{cancel:function(){return u.forEach(function(p){return n[c](p,s)})}}},O4=typeof Array.prototype.indexOf<"u",z4=typeof window<"u"&&typeof window.postMessage<"u";if(!uh&&(!O4||!z4))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function F4(e,n){return n={exports:{}},e(n,n.exports),n.exports}/*!
|
|
253
257
|
* weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
|
|
254
258
|
* https://github.com/polygonplanet/weakmap-polyfill
|
|
255
259
|
* Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
|
|
256
260
|
* @license MIT
|
|
257
|
-
*/(function(e){if(e.WeakMap)return;var n=Object.prototype.hasOwnProperty,
|
|
261
|
+
*/(function(e){if(e.WeakMap)return;var n=Object.prototype.hasOwnProperty,r=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),s=function(c,u,f){r?Object.defineProperty(c,u,{configurable:!0,writable:!0,value:f}):c[u]=f};e.WeakMap=function(){function c(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(s(this,"_id",f("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}s(c.prototype,"delete",function(g){if(u(this,"delete"),!l(g))return!1;var b=g[this._id];return b&&b[0]===g?(delete g[this._id],!0):!1}),s(c.prototype,"get",function(g){if(u(this,"get"),!!l(g)){var b=g[this._id];if(b&&b[0]===g)return b[1]}}),s(c.prototype,"has",function(g){if(u(this,"has"),!l(g))return!1;var b=g[this._id];return!!(b&&b[0]===g)}),s(c.prototype,"set",function(g,b){if(u(this,"set"),!l(g))throw new TypeError("Invalid value used as weak map key");var m=g[this._id];return m&&m[0]===g?(m[1]=b,this):(s(g,this._id,[g,b]),this)});function u(g,b){if(!l(g)||!n.call(g,"_id"))throw new TypeError(b+" method called on incompatible receiver "+typeof g)}function f(g){return g+"_"+p()+"."+p()}function p(){return Math.random().toString().substring(2)}return s(c,"_polyfill",!0),c}();function l(c){return Object(c)===c}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:si);var hn=F4(function(e){/*! Native Promise Only
|
|
258
262
|
v0.8.1 (c) Kyle Simpson
|
|
259
263
|
MIT License: http://getify.mit-license.org
|
|
260
|
-
*/(function(i,s,a){s[i]=s[i]||a(),e.exports&&(e.exports=s[i])})("Promise",qr,function(){var i,s,a,l=Object.prototype.toString,d=typeof setImmediate<"u"?function(I){return setImmediate(I)}:setTimeout;try{Object.defineProperty({},"x",{}),i=function(I,$,M,z){return Object.defineProperty(I,$,{value:M,writable:!0,configurable:z!==!1})}}catch{i=function($,M,z){return $[M]=z,$}}a=function(){var I,$,M;function z(j,H){this.fn=j,this.self=H,this.next=void 0}return{add:function(H,se){M=new z(H,se),$?$.next=M:I=M,$=M,M=void 0},drain:function(){var H=I;for(I=$=s=void 0;H;)H.fn.call(H.self),H=H.next}}}();function f(E,I){a.add(E,I),s||(s=d(a.drain))}function h(E){var I,$=typeof E;return E!=null&&($=="object"||$=="function")&&(I=E.then),typeof I=="function"?I:!1}function p(){for(var E=0;E<this.chain.length;E++)x(this,this.state===1?this.chain[E].success:this.chain[E].failure,this.chain[E]);this.chain.length=0}function x(E,I,$){var M,z;try{I===!1?$.reject(E.msg):(I===!0?M=E.msg:M=I.call(void 0,E.msg),M===$.promise?$.reject(TypeError("Promise-chain cycle")):(z=h(M))?z.call(M,$.resolve,$.reject):$.resolve(M))}catch(j){$.reject(j)}}function w(E){var I,$=this;if(!$.triggered){$.triggered=!0,$.def&&($=$.def);try{(I=h(E))?f(function(){var M=new C($);try{I.call(E,function(){w.apply(M,arguments)},function(){_.apply(M,arguments)})}catch(z){_.call(M,z)}}):($.msg=E,$.state=1,$.chain.length>0&&f(p,$))}catch(M){_.call(new C($),M)}}}function _(E){var I=this;I.triggered||(I.triggered=!0,I.def&&(I=I.def),I.msg=E,I.state=2,I.chain.length>0&&f(p,I))}function v(E,I,$,M){for(var z=0;z<I.length;z++)(function(H){E.resolve(I[H]).then(function(te){$(H,te)},M)})(z)}function C(E){this.def=E,this.triggered=!1}function R(E){this.promise=E,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function k(E){if(typeof E!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var I=new R(this);this.then=function(M,z){var j={success:typeof M=="function"?M:!0,failure:typeof z=="function"?z:!1};return j.promise=new this.constructor(function(se,te){if(typeof se!="function"||typeof te!="function")throw TypeError("Not a function");j.resolve=se,j.reject=te}),I.chain.push(j),I.state!==0&&f(p,I),j.promise},this.catch=function(M){return this.then(void 0,M)};try{E.call(void 0,function(M){w.call(I,M)},function(M){_.call(I,M)})}catch($){_.call(I,$)}}var T=i({},"constructor",k,!1);return k.prototype=T,i(T,"__NPO__",0,!1),i(k,"resolve",function(I){var $=this;return I&&typeof I=="object"&&I.__NPO__===1?I:new $(function(z,j){if(typeof z!="function"||typeof j!="function")throw TypeError("Not a function");z(I)})}),i(k,"reject",function(I){return new this(function(M,z){if(typeof M!="function"||typeof z!="function")throw TypeError("Not a function");z(I)})}),i(k,"all",function(I){var $=this;return l.call(I)!="[object Array]"?$.reject(TypeError("Not an array")):I.length===0?$.resolve([]):new $(function(z,j){if(typeof z!="function"||typeof j!="function")throw TypeError("Not a function");var H=I.length,se=Array(H),te=0;v($,I,function(B,W){se[B]=W,++te===H&&z(se)},j)})}),i(k,"race",function(I){var $=this;return l.call(I)!="[object Array]"?$.reject(TypeError("Not an array")):new $(function(z,j){if(typeof z!="function"||typeof j!="function")throw TypeError("Not a function");v($,I,function(se,te){z(te)},j)})}),k})}),jn=new WeakMap;function Ii(e,n,i){var s=jn.get(e.element)||{};n in s||(s[n]=[]),s[n].push(i),jn.set(e.element,s)}function rs(e,n){var i=jn.get(e.element)||{};return i[n]||[]}function is(e,n,i){var s=jn.get(e.element)||{};if(!s[n])return!0;if(!i)return s[n]=[],jn.set(e.element,s),!0;var a=s[n].indexOf(i);return a!==-1&&s[n].splice(a,1),jn.set(e.element,s),s[n]&&s[n].length===0}function Xv(e,n){var i=rs(e,n);if(i.length<1)return!1;var s=i.shift();return is(e,n,s),s}function Qv(e,n){var i=jn.get(e);jn.set(n,i),jn.delete(e)}function ys(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(n){return console.warn(n),{}}return e}function mr(e,n,i){if(!(!e.element.contentWindow||!e.element.contentWindow.postMessage)){var s={method:n};i!==void 0&&(s.value=i);var a=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));a>=8&&a<10&&(s=JSON.stringify(s)),e.element.contentWindow.postMessage(s,e.origin)}}function Jv(e,n){n=ys(n);var i=[],s;if(n.event){if(n.event==="error"){var a=rs(e,n.data.method);a.forEach(function(d){var f=new Error(n.data.message);f.name=n.data.name,d.reject(f),is(e,n.data.method,d)})}i=rs(e,"event:".concat(n.event)),s=n.data}else if(n.method){var l=Xv(e,n.method);l&&(i.push(l),s=n.value)}i.forEach(function(d){try{if(typeof d=="function"){d.call(e,s);return}d.resolve(s)}catch{}})}var ew=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function m1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ew.reduce(function(i,s){var a=e.getAttribute("data-vimeo-".concat(s));return(a||a==="")&&(i[s]=a===""?1:a),i},n)}function Ml(e,n){var i=e.html;if(!n)throw new TypeError("An element must be provided");if(n.getAttribute("data-vimeo-initialized")!==null)return n.querySelector("iframe");var s=document.createElement("div");return s.innerHTML=i,n.appendChild(s.firstChild),n.setAttribute("data-vimeo-initialized","true"),n.querySelector("iframe")}function y1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise(function(s,a){if(!wr(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var l=Gv(e),d="https://".concat(l,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var f in n)n.hasOwnProperty(f)&&(d+="&".concat(f,"=").concat(encodeURIComponent(n[f])));var h="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;h.open("GET",d,!0),h.onload=function(){if(h.status===404){a(new Error("“".concat(e,"” was not found.")));return}if(h.status===403){a(new Error("“".concat(e,"” is not embeddable.")));return}try{var p=JSON.parse(h.responseText);if(p.domain_status_code===403){Ml(p,i),a(new Error("“".concat(e,"” is not embeddable.")));return}s(p)}catch(x){a(x)}},h.onerror=function(){var p=h.status?" (".concat(h.status,")"):"";a(new Error("There was an error fetching the embed code from Vimeo".concat(p,".")))},h.send()})}function tw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,n=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),i=function(a){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(a))};n.forEach(function(s){try{if(s.getAttribute("data-vimeo-defer")!==null)return;var a=m1(s),l=g1(a);y1(l,a,s).then(function(d){return Ml(d,s)}).catch(i)}catch(d){i(d)}})}function nw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var n=function(s){if(wr(s.origin)&&!(!s.data||s.data.event!=="spacechange")){for(var a=e.querySelectorAll("iframe"),l=0;l<a.length;l++)if(a[l].contentWindow===s.source){var d=a[l].parentElement;d.style.paddingBottom="".concat(s.data.data[0].bottom,"px");break}}};window.addEventListener("message",n)}}function rw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var n=function(s){if(wr(s.origin)){var a=ys(s.data);if(!(!a||a.event!=="ready"))for(var l=e.querySelectorAll("iframe"),d=0;d<l.length;d++){var f=l[d],h=f.contentWindow===s.source;if(p1(f.src)&&h){var p=new Fl(f);p.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",n)}}function iw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var n=function(a){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(a))},i=function(a){if(wr(a.origin)){var l=ys(a.data);if(!(!l||l.event!=="ready"))for(var d=e.querySelectorAll("iframe"),f=function(){var x=d[h],w=x.contentWindow===a.source;if(p1(x.src)&&w){var _=new Fl(x);_.getVideoId().then(function(v){var C=new RegExp("[?&]vimeo_t_".concat(v,"=([^&#]*)")).exec(window.location.href);if(C&&C[1]){var R=decodeURI(C[1]);_.setCurrentTime(R)}}).catch(n)}},h=0;h<d.length;h++)f()}};window.addEventListener("message",i)}}function ow(){var e=function(){for(var s,a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,d=a.length,f={};l<d;l++)if(s=a[l],s&&s[1]in document){for(l=0;l<s.length;l++)f[a[0][l]]=s[l];return f}return!1}(),n={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},i={request:function(a){return new Promise(function(l,d){var f=function p(){i.off("fullscreenchange",p),l()};i.on("fullscreenchange",f),a=a||document.documentElement;var h=a[e.requestFullscreen]();h instanceof Promise&&h.then(f).catch(d)})},exit:function(){return new Promise(function(a,l){if(!i.isFullscreen){a();return}var d=function h(){i.off("fullscreenchange",h),a()};i.on("fullscreenchange",d);var f=document[e.exitFullscreen]();f instanceof Promise&&f.then(d).catch(l)})},on:function(a,l){var d=n[a];d&&document.addEventListener(d,l)},off:function(a,l){var d=n[a];d&&document.removeEventListener(d,l)}};return Object.defineProperties(i,{isFullscreen:{get:function(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[e.fullscreenEnabled]}}}),i}var sw={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},aw=function(e){Wv(i,e);var n=Zv(i);function i(s,a){var l,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;return c1(this,i),l=n.call(this),Ko(Xo(l),"logger",void 0),Ko(Xo(l),"speedAdjustment",0),Ko(Xo(l),"adjustSpeed",function(){var h=yr(Mt().mark(function p(x,w){var _;return Mt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(l.speedAdjustment!==w){C.next=2;break}return C.abrupt("return");case 2:return C.next=4,x.getPlaybackRate();case 4:return C.t0=C.sent,C.t1=l.speedAdjustment,C.t2=C.t0-C.t1,C.t3=w,_=C.t2+C.t3,l.log("New playbackRate: ".concat(_)),C.next=12,x.setPlaybackRate(_);case 12:l.speedAdjustment=w;case 13:case"end":return C.stop()}},p)}));return function(p,x){return h.apply(this,arguments)}}()),l.logger=f,l.init(a,s,uf(uf({},sw),d)),l}return u1(i,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var s=yr(Mt().mark(function l(d,f,h){var p=this,x,w,_;return Mt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.waitForTOReadyState(d,"open");case 2:if(h.role!=="viewer"){C.next=10;break}return C.next=5,this.updatePlayer(d,f,h);case 5:x=hf(d,"change",function(){return p.updatePlayer(d,f,h)}),w=this.maintainPlaybackPosition(d,f,h),this.addEventListener("disconnect",function(){w.cancel(),x.cancel()}),C.next=14;break;case 10:return C.next=12,this.updateTimingObject(d,f);case 12:_=hf(f,["seeked","play","pause","ratechange"],function(){return p.updateTimingObject(d,f)},"on","off"),this.addEventListener("disconnect",function(){return _.cancel()});case 14:case"end":return C.stop()}},l,this)}));function a(l,d,f){return s.apply(this,arguments)}return a}()},{key:"updateTimingObject",value:function(){var s=yr(Mt().mark(function l(d,f){return Mt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.t0=d,p.next=3,f.getCurrentTime();case 3:return p.t1=p.sent,p.next=6,f.getPaused();case 6:if(!p.sent){p.next=10;break}p.t2=0,p.next=13;break;case 10:return p.next=12,f.getPlaybackRate();case 12:p.t2=p.sent;case 13:p.t3=p.t2,p.t4={position:p.t1,velocity:p.t3},p.t0.update.call(p.t0,p.t4);case 16:case"end":return p.stop()}},l)}));function a(l,d){return s.apply(this,arguments)}return a}()},{key:"updatePlayer",value:function(){var s=yr(Mt().mark(function l(d,f,h){var p,x,w;return Mt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(p=d.query(),x=p.position,w=p.velocity,typeof x=="number"&&f.setCurrentTime(x),typeof w!="number"){v.next=25;break}if(w!==0){v.next=11;break}return v.next=6,f.getPaused();case 6:if(v.t0=v.sent,v.t0!==!1){v.next=9;break}f.pause();case 9:v.next=25;break;case 11:if(!(w>0)){v.next=25;break}return v.next=14,f.getPaused();case 14:if(v.t1=v.sent,v.t1!==!0){v.next=19;break}return v.next=18,f.play().catch(function(){var C=yr(Mt().mark(function R(k){return Mt().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!(k.name==="NotAllowedError"&&h.autoPlayMuted)){E.next=5;break}return E.next=3,f.setMuted(!0);case 3:return E.next=5,f.play().catch(function(I){return console.error("Couldn't play the video from TimingSrcConnector. Error:",I)});case 5:case"end":return E.stop()}},R)}));return function(R){return C.apply(this,arguments)}}());case 18:this.updatePlayer(d,f,h);case 19:return v.next=21,f.getPlaybackRate();case 21:if(v.t2=v.sent,v.t3=w,v.t2===v.t3){v.next=25;break}f.setPlaybackRate(w);case 25:case"end":return v.stop()}},l,this)}));function a(l,d,f){return s.apply(this,arguments)}return a}()},{key:"maintainPlaybackPosition",value:function(a,l,d){var f=this,h=d.allowedDrift,p=d.maxAllowedDrift,x=d.minCheckInterval,w=d.maxRateAdjustment,_=d.maxTimeToCatchUp,v=Math.min(_,Math.max(x,p))*1e3,C=function(){var k=yr(Mt().mark(function T(){var E,I,$,M,z;return Mt().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(H.t0=a.query().velocity===0,H.t0){H.next=6;break}return H.next=4,l.getPaused();case 4:H.t1=H.sent,H.t0=H.t1===!0;case 6:if(!H.t0){H.next=8;break}return H.abrupt("return");case 8:return H.t2=a.query().position,H.next=11,l.getCurrentTime();case 11:if(H.t3=H.sent,E=H.t2-H.t3,I=Math.abs(E),f.log("Drift: ".concat(E)),!(I>p)){H.next=22;break}return H.next=18,f.adjustSpeed(l,0);case 18:l.setCurrentTime(a.query().position),f.log("Resync by currentTime"),H.next=29;break;case 22:if(!(I>h)){H.next=29;break}return $=I/_,M=w,z=$<M?(M-$)/2:M,H.next=28,f.adjustSpeed(l,z*Math.sign(E));case 28:f.log("Resync by playbackRate");case 29:case"end":return H.stop()}},T)}));return function(){return k.apply(this,arguments)}}(),R=setInterval(function(){return C()},v);return{cancel:function(){return clearInterval(R)}}}},{key:"log",value:function(a){var l;(l=this.logger)===null||l===void 0||l.call(this,"TimingSrcConnector: ".concat(a))}},{key:"waitForTOReadyState",value:function(a,l){return new Promise(function(d){var f=function h(){a.readyState===l?d():a.addEventListener("readystatechange",h,{once:!0})};f()})}}]),i}(sl(EventTarget)),Zr=new WeakMap,Ha=new WeakMap,jt={},Fl=function(){function e(n){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c1(this,e),window.jQuery&&n instanceof jQuery&&(n.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),n=n[0]),typeof document<"u"&&typeof n=="string"&&(n=document.getElementById(n)),!Nv(n))throw new TypeError("You must pass either a valid element or a valid id.");if(n.nodeName!=="IFRAME"){var a=n.querySelector("iframe");a&&(n=a)}if(n.nodeName==="IFRAME"&&!wr(n.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Zr.has(n))return Zr.get(n);this._window=n.ownerDocument.defaultView,this.element=n,this.origin="*";var l=new an(function(f,h){if(i._onMessage=function(w){if(!(!wr(w.origin)||i.element.contentWindow!==w.source)){i.origin==="*"&&(i.origin=w.origin);var _=ys(w.data),v=_&&_.event==="error",C=v&&_.data&&_.data.method==="ready";if(C){var R=new Error(_.data.message);R.name=_.data.name,h(R);return}var k=_&&_.event==="ready",T=_&&_.method==="ping";if(k||T){i.element.setAttribute("data-ready","true"),f();return}Jv(i,_)}},i._window.addEventListener("message",i._onMessage),i.element.nodeName!=="IFRAME"){var p=m1(n,s),x=g1(p);y1(x,p,n).then(function(w){var _=Ml(w,n);return i.element=_,i._originalElement=n,Qv(n,_),Zr.set(i.element,i),w}).catch(h)}});if(Ha.set(this,l),Zr.set(this.element,this),this.element.nodeName==="IFRAME"&&mr(this,"ping"),jt.isEnabled){var d=function(){return jt.exit()};this.fullscreenchangeHandler=function(){jt.isFullscreen?Ii(i,"event:exitFullscreen",d):is(i,"event:exitFullscreen",d),i.ready().then(function(){mr(i,"fullscreenchange",jt.isFullscreen)})},jt.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return u1(e,[{key:"callMethod",value:function(i){for(var s=this,a=arguments.length,l=new Array(a>1?a-1:0),d=1;d<a;d++)l[d-1]=arguments[d];if(i==null)throw new TypeError("You must pass a method name.");return new an(function(f,h){return s.ready().then(function(){Ii(s,i,{resolve:f,reject:h}),mr(s,i,l)}).catch(h)})}},{key:"get",value:function(i){var s=this;return new an(function(a,l){return i=ff(i,"get"),s.ready().then(function(){Ii(s,i,{resolve:a,reject:l}),mr(s,i)}).catch(l)})}},{key:"set",value:function(i,s){var a=this;return new an(function(l,d){if(i=ff(i,"set"),s==null)throw new TypeError("There must be a value to set.");return a.ready().then(function(){Ii(a,i,{resolve:l,reject:d}),mr(a,i,s)}).catch(d)})}},{key:"on",value:function(i,s){if(!i)throw new TypeError("You must pass an event name.");if(!s)throw new TypeError("You must pass a callback function.");if(typeof s!="function")throw new TypeError("The callback must be a function.");var a=rs(this,"event:".concat(i));a.length===0&&this.callMethod("addEventListener",i).catch(function(){}),Ii(this,"event:".concat(i),s)}},{key:"off",value:function(i,s){if(!i)throw new TypeError("You must pass an event name.");if(s&&typeof s!="function")throw new TypeError("The callback must be a function.");var a=is(this,"event:".concat(i),s);a&&this.callMethod("removeEventListener",i).catch(function(l){})}},{key:"loadVideo",value:function(i){return this.callMethod("loadVideo",i)}},{key:"ready",value:function(){var i=Ha.get(this)||new an(function(s,a){a(new Error("Unknown player. Probably unloaded."))});return an.resolve(i)}},{key:"addCuePoint",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:i,data:s})}},{key:"removeCuePoint",value:function(i){return this.callMethod("removeCuePoint",i)}},{key:"enableTextTrack",value:function(i,s){if(!i)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:i,kind:s})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return jt.isEnabled?jt.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return jt.isEnabled?jt.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return jt.isEnabled?an.resolve(jt.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var i=this;return new an(function(s){if(Ha.delete(i),Zr.delete(i.element),i._originalElement&&(Zr.delete(i._originalElement),i._originalElement.removeAttribute("data-vimeo-initialized")),i.element&&i.element.nodeName==="IFRAME"&&i.element.parentNode&&(i.element.parentNode.parentNode&&i._originalElement&&i._originalElement!==i.element.parentNode?i.element.parentNode.parentNode.removeChild(i.element.parentNode):i.element.parentNode.removeChild(i.element)),i.element&&i.element.nodeName==="DIV"&&i.element.parentNode){i.element.removeAttribute("data-vimeo-initialized");var a=i.element.querySelector("iframe");a&&a.parentNode&&(a.parentNode.parentNode&&i._originalElement&&i._originalElement!==a.parentNode?a.parentNode.parentNode.removeChild(a.parentNode):a.parentNode.removeChild(a))}i._window.removeEventListener("message",i._onMessage),jt.isEnabled&&jt.off("fullscreenchange",i.fullscreenchangeHandler),s()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(i){return this.set("autopause",i)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(i){return this.set("cameraProps",i)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return an.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(i){return this.set("color",i)}},{key:"setColors",value:function(i){if(!Array.isArray(i))return new an(function(l,d){return d(new TypeError("Argument must be an array."))});var s=new an(function(l){return l(null)}),a=[i[0]?this.set("colorOne",i[0]):s,i[1]?this.set("colorTwo",i[1]):s,i[2]?this.set("colorThree",i[2]):s,i[3]?this.set("colorFour",i[3]):s];return an.all(a)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(i){return this.set("currentTime",i)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(i){return this.set("loop",i)}},{key:"setMuted",value:function(i){return this.set("muted",i)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(i){return this.set("playbackRate",i)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(i){return this.set("quality",i)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(i){return this.set("volume",i)}},{key:"setTimingSrc",value:function(){var n=yr(Mt().mark(function s(a,l){var d=this,f;return Mt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(a){p.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return p.next=4,this.ready();case 4:return f=new aw(this,a,l),mr(this,"notifyTimingObjectConnect"),f.addEventListener("disconnect",function(){return mr(d,"notifyTimingObjectDisconnect")}),p.abrupt("return",f);case 8:case"end":return p.stop()}},s,this)}));function i(s,a){return n.apply(this,arguments)}return i}()}]),e}();h1||(jt=ow(),tw(),nw(),rw(),iw());const lw=(e,n,i,s)=>({id:parseInt(e,10),width:typeof n=="number"?n:void 0,height:typeof i=="number"?i:void 0,...s}),cw=async(e,n)=>{if(e)try{const i=[];typeof n.loop=="boolean"&&i.push(e.getLoop().then(s=>{if(s!==n.loop)return e.setLoop(n.loop)})),n.color&&i.push(e.getColor().then(s=>{if(s!==n.color)return e.setColor(n.color)})),typeof n.muted=="boolean"&&i.push(e.getMuted().then(s=>{if(s!==n.muted)return e.setMuted(n.muted)})),await Promise.all(i)}catch(i){console.warn("Error enforcing player config:",i)}},uw=e=>({ready:e.onReady,play:e.onPlay,pause:e.onPlayerPause,ended:e.onEnd,timeupdate:e.onTimeUpdate?n=>{var i;(i=e.onTimeUpdate)==null||i.call(e,n.seconds)}:void 0,progress:e.onProgress?n=>{var i;(i=e.onProgress)==null||i.call(e,n.percent)}:void 0,seeking:e.onSeeking,seeked:e.onSeeked,error:e.onPlayerError}),dw=e=>{var i,s;const n=be();return c.useMemo(()=>{var l,d;return{...(l=n.__hd__.vimeo)==null?void 0:l.playerSettings,...e,color:(e==null?void 0:e.color)||((d=n.__hd__.vimeo)==null?void 0:d.defaultAccentColor)||"#00adef"}},[(i=n.__hd__.vimeo)==null?void 0:i.playerSettings,(s=n.__hd__.vimeo)==null?void 0:s.defaultAccentColor,e])},fw=(e,n,i,s,a)=>{const l=c.useRef(null);return c.useEffect(()=>e.current?((async()=>{try{const f=lw(n,i,s,a);e.current&&(l.current=new Fl(e.current,f),setTimeout(()=>{cw(l.current,a)},100))}catch(f){console.error("Failed to initialize Vimeo player:",f)}})(),()=>{l.current&&(l.current.destroy(),l.current=null)}):void 0,[n,i,s]),l},hw=(e,n)=>{c.useEffect(()=>{if(!e.current||!n)return;const i=e.current,s=uw(n);return Object.entries(s).forEach(([a,l])=>{l&&i.on(a,l)}),()=>{e.current&&Object.entries(s).forEach(([a,l])=>{if(l)try{e.current.off(a,l)}catch{}})}},[e,n])},pw=ue.div`
|
|
264
|
+
*/(function(r,s,l){s[r]=s[r]||l(),e.exports&&(e.exports=s[r])})("Promise",si,function(){var r,s,l,c=Object.prototype.toString,u=typeof setImmediate<"u"?function(M){return setImmediate(M)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(M,E,C,T){return Object.defineProperty(M,E,{value:C,writable:!0,configurable:T!==!1})}}catch{r=function(E,C,T){return E[C]=T,E}}l=function(){var M,E,C;function T(L,F){this.fn=L,this.self=F,this.next=void 0}return{add:function(F,Y){C=new T(F,Y),E?E.next=C:M=C,E=C,C=void 0},drain:function(){var F=M;for(M=E=s=void 0;F;)F.fn.call(F.self),F=F.next}}}();function f($,M){l.add($,M),s||(s=u(l.drain))}function p($){var M,E=typeof $;return $!=null&&(E=="object"||E=="function")&&(M=$.then),typeof M=="function"?M:!1}function g(){for(var $=0;$<this.chain.length;$++)b(this,this.state===1?this.chain[$].success:this.chain[$].failure,this.chain[$]);this.chain.length=0}function b($,M,E){var C,T;try{M===!1?E.reject($.msg):(M===!0?C=$.msg:C=M.call(void 0,$.msg),C===E.promise?E.reject(TypeError("Promise-chain cycle")):(T=p(C))?T.call(C,E.resolve,E.reject):E.resolve(C))}catch(L){E.reject(L)}}function m($){var M,E=this;if(!E.triggered){E.triggered=!0,E.def&&(E=E.def);try{(M=p($))?f(function(){var C=new _(E);try{M.call($,function(){m.apply(C,arguments)},function(){x.apply(C,arguments)})}catch(T){x.call(C,T)}}):(E.msg=$,E.state=1,E.chain.length>0&&f(g,E))}catch(C){x.call(new _(E),C)}}}function x($){var M=this;M.triggered||(M.triggered=!0,M.def&&(M=M.def),M.msg=$,M.state=2,M.chain.length>0&&f(g,M))}function v($,M,E,C){for(var T=0;T<M.length;T++)(function(F){$.resolve(M[F]).then(function(U){E(F,U)},C)})(T)}function _($){this.def=$,this.triggered=!1}function j($){this.promise=$,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function k($){if(typeof $!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var M=new j(this);this.then=function(C,T){var L={success:typeof C=="function"?C:!0,failure:typeof T=="function"?T:!1};return L.promise=new this.constructor(function(Y,U){if(typeof Y!="function"||typeof U!="function")throw TypeError("Not a function");L.resolve=Y,L.reject=U}),M.chain.push(L),M.state!==0&&f(g,M),L.promise},this.catch=function(C){return this.then(void 0,C)};try{$.call(void 0,function(C){m.call(M,C)},function(C){x.call(M,C)})}catch(E){x.call(M,E)}}var A=r({},"constructor",k,!1);return k.prototype=A,r(A,"__NPO__",0,!1),r(k,"resolve",function(M){var E=this;return M&&typeof M=="object"&&M.__NPO__===1?M:new E(function(T,L){if(typeof T!="function"||typeof L!="function")throw TypeError("Not a function");T(M)})}),r(k,"reject",function(M){return new this(function(C,T){if(typeof C!="function"||typeof T!="function")throw TypeError("Not a function");T(M)})}),r(k,"all",function(M){var E=this;return c.call(M)!="[object Array]"?E.reject(TypeError("Not an array")):M.length===0?E.resolve([]):new E(function(T,L){if(typeof T!="function"||typeof L!="function")throw TypeError("Not a function");var F=M.length,Y=Array(F),U=0;v(E,M,function(O,W){Y[O]=W,++U===F&&T(Y)},L)})}),r(k,"race",function(M){var E=this;return c.call(M)!="[object Array]"?E.reject(TypeError("Not an array")):new E(function(T,L){if(typeof T!="function"||typeof L!="function")throw TypeError("Not a function");v(E,M,function(Y,U){T(U)},L)})}),k})}),qn=new WeakMap;function Pi(e,n,r){var s=qn.get(e.element)||{};n in s||(s[n]=[]),s[n].push(r),qn.set(e.element,s)}function _s(e,n){var r=qn.get(e.element)||{};return r[n]||[]}function Ss(e,n,r){var s=qn.get(e.element)||{};if(!s[n])return!0;if(!r)return s[n]=[],qn.set(e.element,s),!0;var l=s[n].indexOf(r);return l!==-1&&s[n].splice(l,1),qn.set(e.element,s),s[n]&&s[n].length===0}function L4(e,n){var r=_s(e,n);if(r.length<1)return!1;var s=r.shift();return Ss(e,n,s),s}function D4(e,n){var r=qn.get(e);qn.set(n,r),qn.delete(e)}function zs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(n){return console.warn(n),{}}return e}function jr(e,n,r){if(!(!e.element.contentWindow||!e.element.contentWindow.postMessage)){var s={method:n};r!==void 0&&(s.value=r);var l=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));l>=8&&l<10&&(s=JSON.stringify(s)),e.element.contentWindow.postMessage(s,e.origin)}}function P4(e,n){n=zs(n);var r=[],s;if(n.event){if(n.event==="error"){var l=_s(e,n.data.method);l.forEach(function(u){var f=new Error(n.data.message);f.name=n.data.name,u.reject(f),Ss(e,n.data.method,u)})}r=_s(e,"event:".concat(n.event)),s=n.data}else if(n.method){var c=L4(e,n.method);c&&(r.push(c),s=n.value)}r.forEach(function(u){try{if(typeof u=="function"){u.call(e,s);return}u.resolve(s)}catch{}})}var W4=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function hh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W4.reduce(function(r,s){var l=e.getAttribute("data-vimeo-".concat(s));return(l||l==="")&&(r[s]=l===""?1:l),r},n)}function cc(e,n){var r=e.html;if(!n)throw new TypeError("An element must be provided");if(n.getAttribute("data-vimeo-initialized")!==null)return n.querySelector("iframe");var s=document.createElement("div");return s.innerHTML=r,n.appendChild(s.firstChild),n.setAttribute("data-vimeo-initialized","true"),n.querySelector("iframe")}function ph(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new Promise(function(s,l){if(!Or(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var c=I4(e),u="https://".concat(c,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var f in n)n.hasOwnProperty(f)&&(u+="&".concat(f,"=").concat(encodeURIComponent(n[f])));var p="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;p.open("GET",u,!0),p.onload=function(){if(p.status===404){l(new Error("“".concat(e,"” was not found.")));return}if(p.status===403){l(new Error("“".concat(e,"” is not embeddable.")));return}try{var g=JSON.parse(p.responseText);if(g.domain_status_code===403){cc(g,r),l(new Error("“".concat(e,"” is not embeddable.")));return}s(g)}catch(b){l(b)}},p.onerror=function(){var g=p.status?" (".concat(p.status,")"):"";l(new Error("There was an error fetching the embed code from Vimeo".concat(g,".")))},p.send()})}function H4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,n=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),r=function(l){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(l))};n.forEach(function(s){try{if(s.getAttribute("data-vimeo-defer")!==null)return;var l=hh(s),c=fh(l);ph(c,l,s).then(function(u){return cc(u,s)}).catch(r)}catch(u){r(u)}})}function B4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var n=function(s){if(Or(s.origin)&&!(!s.data||s.data.event!=="spacechange")){for(var l=e.querySelectorAll("iframe"),c=0;c<l.length;c++)if(l[c].contentWindow===s.source){var u=l[c].parentElement;u.style.paddingBottom="".concat(s.data.data[0].bottom,"px");break}}};window.addEventListener("message",n)}}function V4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var n=function(s){if(Or(s.origin)){var l=zs(s.data);if(!(!l||l.event!=="ready"))for(var c=e.querySelectorAll("iframe"),u=0;u<c.length;u++){var f=c[u],p=f.contentWindow===s.source;if(dh(f.src)&&p){var g=new uc(f);g.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",n)}}function Z4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var n=function(l){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(l))},r=function(l){if(Or(l.origin)){var c=zs(l.data);if(!(!c||c.event!=="ready"))for(var u=e.querySelectorAll("iframe"),f=function(){var b=u[p],m=b.contentWindow===l.source;if(dh(b.src)&&m){var x=new uc(b);x.getVideoId().then(function(v){var _=new RegExp("[?&]vimeo_t_".concat(v,"=([^&#]*)")).exec(window.location.href);if(_&&_[1]){var j=decodeURI(_[1]);x.setCurrentTime(j)}}).catch(n)}},p=0;p<u.length;p++)f()}};window.addEventListener("message",r)}}function N4(){var e=function(){for(var s,l=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],c=0,u=l.length,f={};c<u;c++)if(s=l[c],s&&s[1]in document){for(c=0;c<s.length;c++)f[l[0][c]]=s[c];return f}return!1}(),n={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},r={request:function(l){return new Promise(function(c,u){var f=function g(){r.off("fullscreenchange",g),c()};r.on("fullscreenchange",f),l=l||document.documentElement;var p=l[e.requestFullscreen]();p instanceof Promise&&p.then(f).catch(u)})},exit:function(){return new Promise(function(l,c){if(!r.isFullscreen){l();return}var u=function p(){r.off("fullscreenchange",p),l()};r.on("fullscreenchange",u);var f=document[e.exitFullscreen]();f instanceof Promise&&f.then(u).catch(c)})},on:function(l,c){var u=n[l];u&&document.addEventListener(u,c)},off:function(l,c){var u=n[l];u&&document.removeEventListener(u,c)}};return Object.defineProperties(r,{isFullscreen:{get:function(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[e.fullscreenEnabled]}}}),r}var U4={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},G4=function(e){$4(r,e);var n=j4(r);function r(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;return sh(this,r),c=n.call(this),ps(ms(c),"logger",void 0),ps(ms(c),"speedAdjustment",0),ps(ms(c),"adjustSpeed",function(){var p=Tr(zt().mark(function g(b,m){var x;return zt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(c.speedAdjustment!==m){_.next=2;break}return _.abrupt("return");case 2:return _.next=4,b.getPlaybackRate();case 4:return _.t0=_.sent,_.t1=c.speedAdjustment,_.t2=_.t0-_.t1,_.t3=m,x=_.t2+_.t3,c.log("New playbackRate: ".concat(x)),_.next=12,b.setPlaybackRate(x);case 12:c.speedAdjustment=m;case 13:case"end":return _.stop()}},g)}));return function(g,b){return p.apply(this,arguments)}}()),c.logger=f,c.init(l,s,J0(J0({},U4),u)),c}return ah(r,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var s=Tr(zt().mark(function c(u,f,p){var g=this,b,m,x;return zt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,this.waitForTOReadyState(u,"open");case 2:if(p.role!=="viewer"){_.next=10;break}return _.next=5,this.updatePlayer(u,f,p);case 5:b=nf(u,"change",function(){return g.updatePlayer(u,f,p)}),m=this.maintainPlaybackPosition(u,f,p),this.addEventListener("disconnect",function(){m.cancel(),b.cancel()}),_.next=14;break;case 10:return _.next=12,this.updateTimingObject(u,f);case 12:x=nf(f,["seeked","play","pause","ratechange"],function(){return g.updateTimingObject(u,f)},"on","off"),this.addEventListener("disconnect",function(){return x.cancel()});case 14:case"end":return _.stop()}},c,this)}));function l(c,u,f){return s.apply(this,arguments)}return l}()},{key:"updateTimingObject",value:function(){var s=Tr(zt().mark(function c(u,f){return zt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.t0=u,g.next=3,f.getCurrentTime();case 3:return g.t1=g.sent,g.next=6,f.getPaused();case 6:if(!g.sent){g.next=10;break}g.t2=0,g.next=13;break;case 10:return g.next=12,f.getPlaybackRate();case 12:g.t2=g.sent;case 13:g.t3=g.t2,g.t4={position:g.t1,velocity:g.t3},g.t0.update.call(g.t0,g.t4);case 16:case"end":return g.stop()}},c)}));function l(c,u){return s.apply(this,arguments)}return l}()},{key:"updatePlayer",value:function(){var s=Tr(zt().mark(function c(u,f,p){var g,b,m;return zt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(g=u.query(),b=g.position,m=g.velocity,typeof b=="number"&&f.setCurrentTime(b),typeof m!="number"){v.next=25;break}if(m!==0){v.next=11;break}return v.next=6,f.getPaused();case 6:if(v.t0=v.sent,v.t0!==!1){v.next=9;break}f.pause();case 9:v.next=25;break;case 11:if(!(m>0)){v.next=25;break}return v.next=14,f.getPaused();case 14:if(v.t1=v.sent,v.t1!==!0){v.next=19;break}return v.next=18,f.play().catch(function(){var _=Tr(zt().mark(function j(k){return zt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(!(k.name==="NotAllowedError"&&p.autoPlayMuted)){$.next=5;break}return $.next=3,f.setMuted(!0);case 3:return $.next=5,f.play().catch(function(M){return console.error("Couldn't play the video from TimingSrcConnector. Error:",M)});case 5:case"end":return $.stop()}},j)}));return function(j){return _.apply(this,arguments)}}());case 18:this.updatePlayer(u,f,p);case 19:return v.next=21,f.getPlaybackRate();case 21:if(v.t2=v.sent,v.t3=m,v.t2===v.t3){v.next=25;break}f.setPlaybackRate(m);case 25:case"end":return v.stop()}},c,this)}));function l(c,u,f){return s.apply(this,arguments)}return l}()},{key:"maintainPlaybackPosition",value:function(l,c,u){var f=this,p=u.allowedDrift,g=u.maxAllowedDrift,b=u.minCheckInterval,m=u.maxRateAdjustment,x=u.maxTimeToCatchUp,v=Math.min(x,Math.max(b,g))*1e3,_=function(){var k=Tr(zt().mark(function A(){var $,M,E,C,T;return zt().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(F.t0=l.query().velocity===0,F.t0){F.next=6;break}return F.next=4,c.getPaused();case 4:F.t1=F.sent,F.t0=F.t1===!0;case 6:if(!F.t0){F.next=8;break}return F.abrupt("return");case 8:return F.t2=l.query().position,F.next=11,c.getCurrentTime();case 11:if(F.t3=F.sent,$=F.t2-F.t3,M=Math.abs($),f.log("Drift: ".concat($)),!(M>g)){F.next=22;break}return F.next=18,f.adjustSpeed(c,0);case 18:c.setCurrentTime(l.query().position),f.log("Resync by currentTime"),F.next=29;break;case 22:if(!(M>p)){F.next=29;break}return E=M/x,C=m,T=E<C?(C-E)/2:C,F.next=28,f.adjustSpeed(c,T*Math.sign($));case 28:f.log("Resync by playbackRate");case 29:case"end":return F.stop()}},A)}));return function(){return k.apply(this,arguments)}}(),j=setInterval(function(){return _()},v);return{cancel:function(){return clearInterval(j)}}}},{key:"log",value:function(l){var c;(c=this.logger)===null||c===void 0||c.call(this,"TimingSrcConnector: ".concat(l))}},{key:"waitForTOReadyState",value:function(l,c){return new Promise(function(u){var f=function p(){l.readyState===c?u():l.addEventListener("readystatechange",p,{once:!0})};f()})}}]),r}(Fl(EventTarget)),ni=new WeakMap,bl=new WeakMap,Vt={},uc=function(){function e(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(sh(this,e),window.jQuery&&n instanceof jQuery&&(n.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),n=n[0]),typeof document<"u"&&typeof n=="string"&&(n=document.getElementById(n)),!R4(n))throw new TypeError("You must pass either a valid element or a valid id.");if(n.nodeName!=="IFRAME"){var l=n.querySelector("iframe");l&&(n=l)}if(n.nodeName==="IFRAME"&&!Or(n.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(ni.has(n))return ni.get(n);this._window=n.ownerDocument.defaultView,this.element=n,this.origin="*";var c=new hn(function(f,p){if(r._onMessage=function(m){if(!(!Or(m.origin)||r.element.contentWindow!==m.source)){r.origin==="*"&&(r.origin=m.origin);var x=zs(m.data),v=x&&x.event==="error",_=v&&x.data&&x.data.method==="ready";if(_){var j=new Error(x.data.message);j.name=x.data.name,p(j);return}var k=x&&x.event==="ready",A=x&&x.method==="ping";if(k||A){r.element.setAttribute("data-ready","true"),f();return}P4(r,x)}},r._window.addEventListener("message",r._onMessage),r.element.nodeName!=="IFRAME"){var g=hh(n,s),b=fh(g);ph(b,g,n).then(function(m){var x=cc(m,n);return r.element=x,r._originalElement=n,D4(n,x),ni.set(r.element,r),m}).catch(p)}});if(bl.set(this,c),ni.set(this.element,this),this.element.nodeName==="IFRAME"&&jr(this,"ping"),Vt.isEnabled){var u=function(){return Vt.exit()};this.fullscreenchangeHandler=function(){Vt.isFullscreen?Pi(r,"event:exitFullscreen",u):Ss(r,"event:exitFullscreen",u),r.ready().then(function(){jr(r,"fullscreenchange",Vt.isFullscreen)})},Vt.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return ah(e,[{key:"callMethod",value:function(r){for(var s=this,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(r==null)throw new TypeError("You must pass a method name.");return new hn(function(f,p){return s.ready().then(function(){Pi(s,r,{resolve:f,reject:p}),jr(s,r,c)}).catch(p)})}},{key:"get",value:function(r){var s=this;return new hn(function(l,c){return r=tf(r,"get"),s.ready().then(function(){Pi(s,r,{resolve:l,reject:c}),jr(s,r)}).catch(c)})}},{key:"set",value:function(r,s){var l=this;return new hn(function(c,u){if(r=tf(r,"set"),s==null)throw new TypeError("There must be a value to set.");return l.ready().then(function(){Pi(l,r,{resolve:c,reject:u}),jr(l,r,s)}).catch(u)})}},{key:"on",value:function(r,s){if(!r)throw new TypeError("You must pass an event name.");if(!s)throw new TypeError("You must pass a callback function.");if(typeof s!="function")throw new TypeError("The callback must be a function.");var l=_s(this,"event:".concat(r));l.length===0&&this.callMethod("addEventListener",r).catch(function(){}),Pi(this,"event:".concat(r),s)}},{key:"off",value:function(r,s){if(!r)throw new TypeError("You must pass an event name.");if(s&&typeof s!="function")throw new TypeError("The callback must be a function.");var l=Ss(this,"event:".concat(r),s);l&&this.callMethod("removeEventListener",r).catch(function(c){})}},{key:"loadVideo",value:function(r){return this.callMethod("loadVideo",r)}},{key:"ready",value:function(){var r=bl.get(this)||new hn(function(s,l){l(new Error("Unknown player. Probably unloaded."))});return hn.resolve(r)}},{key:"addCuePoint",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:r,data:s})}},{key:"removeCuePoint",value:function(r){return this.callMethod("removeCuePoint",r)}},{key:"enableTextTrack",value:function(r,s){if(!r)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:r,kind:s})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Vt.isEnabled?Vt.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Vt.isEnabled?Vt.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Vt.isEnabled?hn.resolve(Vt.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var r=this;return new hn(function(s){if(bl.delete(r),ni.delete(r.element),r._originalElement&&(ni.delete(r._originalElement),r._originalElement.removeAttribute("data-vimeo-initialized")),r.element&&r.element.nodeName==="IFRAME"&&r.element.parentNode&&(r.element.parentNode.parentNode&&r._originalElement&&r._originalElement!==r.element.parentNode?r.element.parentNode.parentNode.removeChild(r.element.parentNode):r.element.parentNode.removeChild(r.element)),r.element&&r.element.nodeName==="DIV"&&r.element.parentNode){r.element.removeAttribute("data-vimeo-initialized");var l=r.element.querySelector("iframe");l&&l.parentNode&&(l.parentNode.parentNode&&r._originalElement&&r._originalElement!==l.parentNode?l.parentNode.parentNode.removeChild(l.parentNode):l.parentNode.removeChild(l))}r._window.removeEventListener("message",r._onMessage),Vt.isEnabled&&Vt.off("fullscreenchange",r.fullscreenchangeHandler),s()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(r){return this.set("autopause",r)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(r){return this.set("cameraProps",r)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return hn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(r){return this.set("color",r)}},{key:"setColors",value:function(r){if(!Array.isArray(r))return new hn(function(c,u){return u(new TypeError("Argument must be an array."))});var s=new hn(function(c){return c(null)}),l=[r[0]?this.set("colorOne",r[0]):s,r[1]?this.set("colorTwo",r[1]):s,r[2]?this.set("colorThree",r[2]):s,r[3]?this.set("colorFour",r[3]):s];return hn.all(l)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(r){return this.set("currentTime",r)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(r){return this.set("loop",r)}},{key:"setMuted",value:function(r){return this.set("muted",r)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(r){return this.set("playbackRate",r)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(r){return this.set("quality",r)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(r){return this.set("volume",r)}},{key:"setTimingSrc",value:function(){var n=Tr(zt().mark(function s(l,c){var u=this,f;return zt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(l){g.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return g.next=4,this.ready();case 4:return f=new G4(this,l,c),jr(this,"notifyTimingObjectConnect"),f.addEventListener("disconnect",function(){return jr(u,"notifyTimingObjectDisconnect")}),g.abrupt("return",f);case 8:case"end":return g.stop()}},s,this)}));function r(s,l){return n.apply(this,arguments)}return r}()}]),e}();uh||(Vt=N4(),H4(),B4(),V4(),Z4());const q4=(e,n,r,s)=>({id:parseInt(e,10),width:typeof n=="number"?n:void 0,height:typeof r=="number"?r:void 0,...s}),K4=async(e,n)=>{if(e)try{const r=[];typeof n.loop=="boolean"&&r.push(e.getLoop().then(s=>{if(s!==n.loop)return e.setLoop(n.loop)})),n.color&&r.push(e.getColor().then(s=>{if(s!==n.color)return e.setColor(n.color)})),typeof n.muted=="boolean"&&r.push(e.getMuted().then(s=>{if(s!==n.muted)return e.setMuted(n.muted)})),await Promise.all(r)}catch(r){console.warn("Error enforcing player config:",r)}},Y4=e=>({ready:e.onReady,play:e.onPlay,pause:e.onPlayerPause,ended:e.onEnd,timeupdate:e.onTimeUpdate?n=>{var r;(r=e.onTimeUpdate)==null||r.call(e,n.seconds)}:void 0,progress:e.onProgress?n=>{var r;(r=e.onProgress)==null||r.call(e,n.percent)}:void 0,seeking:e.onSeeking,seeked:e.onSeeked,error:e.onPlayerError}),X4=e=>{var r,s;const n=Re();return a.useMemo(()=>{var c,u;return{...(c=n.__hd__.vimeo)==null?void 0:c.playerSettings,...e,color:(e==null?void 0:e.color)||((u=n.__hd__.vimeo)==null?void 0:u.defaultAccentColor)||"#00adef"}},[(r=n.__hd__.vimeo)==null?void 0:r.playerSettings,(s=n.__hd__.vimeo)==null?void 0:s.defaultAccentColor,e])},Q4=(e,n,r,s,l)=>{const c=a.useRef(null);return a.useEffect(()=>e.current?((async()=>{try{const f=q4(n,r,s,l);e.current&&(c.current=new uc(e.current,f),setTimeout(()=>{K4(c.current,l)},100))}catch(f){console.error("Failed to initialize Vimeo player:",f)}})(),()=>{c.current&&(c.current.destroy(),c.current=null)}):void 0,[n,r,s]),c},J4=(e,n)=>{a.useEffect(()=>{if(!e.current||!n)return;const r=e.current,s=Y4(n);return Object.entries(s).forEach(([l,c])=>{c&&r.on(l,c)}),()=>{e.current&&Object.entries(s).forEach(([l,c])=>{if(c)try{e.current.off(l,c)}catch{}})}},[e,n])},e3=pe.div`
|
|
261
265
|
position: relative;
|
|
262
266
|
width: 100%;
|
|
263
267
|
height: 100%;
|
|
264
268
|
overflow: hidden;
|
|
265
|
-
`,
|
|
269
|
+
`,t3=pe.div`
|
|
266
270
|
position: relative;
|
|
267
271
|
padding-bottom: ${({$aspectRatio:e})=>`${e}%`};
|
|
268
272
|
height: 0;
|
|
269
273
|
overflow: hidden;
|
|
270
|
-
`,
|
|
274
|
+
`,n3=pe.div`
|
|
271
275
|
position: absolute;
|
|
272
276
|
top: 0;
|
|
273
277
|
left: 0;
|
|
274
278
|
width: 100%;
|
|
275
279
|
height: 100%;
|
|
276
|
-
`,
|
|
280
|
+
`,r3=({videoId:e,width:n="100%",height:r="auto",config:s,callbacks:l})=>{var x;const c=Re(),u=a.useRef(null),[f]=a.useState(`vimeo-player-${Math.random().toString(36).substr(2,9)}`),p=r==="auto",g=((x=c.__hd__.vimeo)==null?void 0:x.aspectRatio)||56.25,b=X4(s),m=Q4(u,e,n,r,b);return J4(m,l),p?d.jsx(t3,{$aspectRatio:g,children:d.jsx(n3,{ref:u,id:f})}):d.jsx(e3,{style:{width:n,height:r},children:d.jsx("div",{ref:u,id:f,style:{width:"100%",height:"100%"}})})},i3={color:"#00adef",autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,dnt:!0,playsinline:!0,background:!1,controls:!0,pip:!1,responsive:!0,width:"100%"},o3="https://player.vimeo.com",s3=({videoId:e,playerWidth:n,playerHeight:r,config:s,callbacks:l,...c})=>d.jsx(I,{overflow:"hidden",...c,children:d.jsx(r3,{videoId:e,width:n,height:r,config:s,callbacks:l})});function rf({item:e,index:n,renderItem:r}){return d.jsx(I,{flexShrink:0,children:r({item:e,index:n,isFocused:!0})})}function os({item:e,index:n,isFocused:r,renderItem:s,itemsPerView:l,itemWidth:c}){const u=Xe.isNil(l)?void 0:`0 0 ${100/l}%`;return d.jsx(I,{flex:Xe.isNil(c)?u:void 0,width:c,overflow:"hidden",children:s({item:e,index:n,isFocused:r})})}const a3=/^(\d+|\d*\.\d+)(px)$/,l3=(e,n)=>{if(typeof n=="string"){if(Mr(n))return e.sizes[n];if(a3.test(n))return parseInt(n.replace("px",""),10);throw new Error("Invalid itemWidth, must be a Size or a number or a valid pixel value")}return n},xl=(e,n,r,s)=>{if(s)return`calc(-${e} * (${s}px + ${r}px))`;const l=e*(100/n),c=e*r;return`calc(-${l}% - ${c}px)`},ri=(e,n,r,s)=>s?`${s(e,n)}${r||""}`:`carousel-item-${n}${r||""}`,c3=On`
|
|
277
281
|
0% { transform: translateX(0); }
|
|
278
282
|
100% { transform: translateX(-50%); } /* Scroll one full set of items */
|
|
279
|
-
`,
|
|
283
|
+
`,u3=pe(I)`
|
|
280
284
|
display: flex;
|
|
281
285
|
align-items: stretch; // Use stretch to ensure items fill height if needed
|
|
282
286
|
gap: ${({$itemSpacing:e})=>e||0}px;
|
|
@@ -284,19 +288,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
284
288
|
transition: ${({$autoScroll:e})=>e?"none":"transform 0.5s ease-in-out"};
|
|
285
289
|
|
|
286
290
|
/* Apply animation conditionally using the css helper */
|
|
287
|
-
animation: ${({$autoScroll:e,$scrollDuration:n})=>e?
|
|
288
|
-
`;function
|
|
291
|
+
animation: ${({$autoScroll:e,$scrollDuration:n})=>e?Ct`${c3} ${n}s linear infinite`:"none"};
|
|
292
|
+
`;function d3({itemSpacing:e,itemsWrapperRef:n,items:r,renderItem:s,keyExtractor:l,autoScroll:c,activeIndex:u,virtualActiveIndex:f,itemsPerView:p=1,itemWidth:g,infiniteLoop:b=!1}){const m=Re(),v=m.__hd__.carousel.autoScroll,_=typeof c=="object"&&c.speed||v.defaultSpeed,j=a.useMemo(()=>{if(r.length<=p)return r;const C=r.length%p;return C===0?r:r.slice(0,r.length-C)},[r,p]),k=c?j.length*(_/5):0,A=m.spaces[e||m.__hd__.carousel.container.defaultItemSpacing]||0,$=b&&!c&&j.length>1,M=a.useMemo(()=>{if(g)return g*p+A*(p-1)},[g,p,A]),E=a.useMemo(()=>{if(c)return d.jsxs(d.Fragment,{children:[j.map((C,T)=>d.jsx(rf,{item:C,index:T,renderItem:s},ri(C,T,"-auto-scroll",l))),j.map((C,T)=>d.jsx(rf,{item:C,index:T+j.length,renderItem:s},ri(C,T,"-duplicate",l)))]});if($){const C=T=>{const L=f-j.length;return T>=L&&T<L+p};return d.jsxs(d.Fragment,{children:[j.map((T,L)=>{const F=L;return d.jsx(os,{item:T,index:F,isFocused:C(L),renderItem:s,itemsPerView:p,itemWidth:g},ri(T,F,"-prefix",l))}),j.map((T,L)=>d.jsx(os,{item:T,index:L,isFocused:C(L),renderItem:s,itemsPerView:p,itemWidth:g},ri(T,L,void 0,l))),j.map((T,L)=>{const F=L;return d.jsx(os,{item:T,index:F,isFocused:C(L),renderItem:s,itemsPerView:p,itemWidth:g},ri(T,F,"-suffix",l))})]})}return j.map((C,T)=>d.jsx(os,{item:C,index:T,isFocused:T>=u&&T<u+p,renderItem:s,itemsPerView:p,itemWidth:g},ri(C,T,void 0,l)))},[c,$,j,l,s,f,p,g,u]);return d.jsx(I,{width:M,display:"flex",children:d.jsx(u3,{$autoScroll:!!c,$scrollDuration:k,$itemSpacing:A,ref:n,children:E})})}const f3=pe(Qi)`
|
|
289
293
|
transition: color 0.2s ease;
|
|
290
294
|
color: ${({$color:e,theme:n})=>n.colors[e]};
|
|
291
|
-
|
|
295
|
+
`,h3=pe(Lr)`
|
|
292
296
|
transition: color 0.2s ease;
|
|
293
297
|
color: ${({$color:e,theme:n})=>n.colors[e]};
|
|
294
|
-
`;function
|
|
295
|
-
opacity ${
|
|
298
|
+
`;function of({isLeft:e,onPrev:n,onNext:r}){const s=a.useRef(null),l=Ts(s),c=Re(),u=c.__hd__.carousel.navigation,f=c.spaces[u.buttonPadding]*2+c.sizes[u.iconSize],p=xt(c,u.iconSize),g=l?u.buttonBackgroundColor:u.buttonColor,b=typeof p=="string"?parseInt(p,10):p;return d.jsx(at,{onClick:e?n:r,ml:e?{xs:"none",sm:u.marginHorizontal}:void 0,mr:e?void 0:{xs:"none",sm:u.marginHorizontal},ref:s,children:d.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",width:f,height:f,p:u.buttonPadding,r:u.buttonBorderRadius,bgColor:l?u.buttonColor:u.buttonBackgroundColor,transition:"background-color 0.2s ease",zIndex:c.zIndex.getZIndex("AIC_Kits_Carousel"),boxShadow:"0 0 16px 0 rgba(0, 0, 0, 0.1)",ref:s,children:e?d.jsx(f3,{size:b,weight:"bold",$color:g}):d.jsx(h3,{size:b,weight:"bold",$color:g})})})}function p3({itemsCount:e,activeIndex:n,onDotClick:r}){const s=Re(),l=s.__hd__.carousel.pagination,c=l.container,u=xt(s,l.dotSize);return d.jsx(I,{display:"flex",justifyContent:"center",alignItems:"center",mt:c.marginTop,p:c.padding,r:c.borderRadius,bgColor:c.backgroundColor,gap:c.gap,children:Array.from({length:e}).map((f,p)=>d.jsx(I,{width:u,height:u,r:l.dotBorderRadius,bgColor:p===n?l.activeColor:l.inactiveColor,cursor:"pointer",transition:"background-color 0.3s ease",onClick:()=>r(p)},`dot-${p}`))})}function g3({items:e,renderItem:n,showPagination:r=!0,showNavigation:s=!0,autoPlay:l=!1,autoScroll:c=!1,initialIndex:u=0,onIndexChange:f,keyExtractor:p,itemSpacing:g,itemsPerView:b=1,itemWidth:m,infiniteLoop:x=!1,...v},_){const j=Re(),{width:k}=U1(),A=j.__hd__.carousel,$=a.useMemo(()=>{if(e.length<=b)return e;const le=e.length%b;return le===0?e:e.slice(0,e.length-le)},[e,b]),[M,E]=a.useState(u),[C,T]=a.useState(u),L=a.useRef(null),F=a.useRef(null),Y=a.useRef(null),U=a.useRef(!1),[K,O]=a.useState(!1),[W,B]=a.useState(null),[he,N]=a.useState(0),ne=!!c,oe=ne?1:Math.max(1,b),Se=ne?void 0:l3(j,m),Te=j.spaces[g||A.container.defaultItemSpacing]||0,ke=ne?!1:r,V=ne?!1:s,de=x&&!ne&&$.length>1,Ce=Math.max(0,$.length-oe),Ee=Math.ceil($.length/oe),H=typeof l=="object"&&l.delay||3e3,be=a.useCallback(le=>{if($.length===0)return 0;for(;le<0;)le+=$.length;return le%$.length},[$.length]),ie=a.useCallback(le=>{if(!de)return{virtualIndex:le,realIndex:le,needsSnap:!1};let je=le,Me=le,qe=!1;return le<0||le>Ce?(je=$.length+le,Me=be(le),qe=!0):(je=$.length+le,Me=le,qe=!1),{virtualIndex:je,realIndex:Me,needsSnap:qe}},[de,$.length,Ce,be]),xe=a.useCallback(le=>{if(!de||!L.current)return;const je=$.length+le,Me=xl(je,oe,Te,Se);L.current.style.transition="none",L.current.style.transform=`translateX(${Me})`,T(je),requestAnimationFrame(()=>{L.current&&(L.current.style.transition="")})},[de,$.length,oe,Te,Se]),we=a.useCallback(()=>{if(L.current){const le=window.getComputedStyle(L.current),je=new DOMMatrixReadOnly(le.transform);N(je.e)}},[]),te=a.useCallback(le=>{const je=de?le:Math.max(0,Math.min(le,Ce)),Me=ie(je),qe=Math.max(0,Math.min(je,Ce));if((qe!==M||K)&&(E(qe),f==null||f(qe)),L.current&&!ne){const Je=Me.virtualIndex;T(Je);const pt=xl(Je,oe,Te,Se);L.current.style.transform=`translateX(${pt})`,L.current.style.transition="",queueMicrotask(()=>{we()}),Me.needsSnap&&(Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{xe(Me.realIndex),E(Me.realIndex),f==null||f(Me.realIndex)},500))}},[de,Ce,M,f,ne,oe,Te,Se,we,K,ie,xe]),Q=a.useCallback(()=>{x&&$.length>0?te(M+oe):te(Math.min(M+oe,Ce))},[x,M,oe,Ce,$.length,te]),ye=a.useCallback(()=>{x&&$.length>0?te(M-oe):te(Math.max(M-oe,0))},[x,M,oe,$.length,te]);a.useImperativeHandle(_,()=>({goToIndex:te,goToNext:Q,goToPrev:ye}));const G=a.useCallback(()=>{F.current&&clearTimeout(F.current)},[]),ce=()=>{U.current=!0,l&&!ne&&G(),ne&&L.current&&(L.current.style.animationPlayState="paused")},_e=a.useCallback(()=>{if(U.current=!1,l&&!ne&&!K){G();const le=(M+1)%$.length,je=Math.min(le,Ce);F.current=setTimeout(()=>te(je),H)}ne&&L.current&&(L.current.style.animationPlayState="running")},[l,ne,K,G,M,$.length,Ce,H,te]),ze=a.useCallback(le=>{ne||e.length<=oe||(Y.current&&(clearTimeout(Y.current),Y.current=null),we(),G(),O(!0),B(le),L.current&&(L.current.style.transition="none"))},[ne,G,e.length,oe,we]),Be=a.useCallback(le=>{if(!K||W===null||ne||!L.current)return;const je=le-W;L.current.style.transform=`translateX(${he+je}px)`},[K,W,ne,he]),Qe=a.useCallback(()=>{if(!K||W===null||ne)return;O(!1);let le=Se;!le&&L.current&&L.current.firstChild&&(le=L.current.firstChild.clientWidth),!le&&L.current&&(le=L.current.clientWidth/oe);const je=(le||0)/3;if(L.current){const Me=window.getComputedStyle(L.current),pt=new DOMMatrixReadOnly(Me.transform).e-he;L.current.style.transition="",Math.abs(pt)>je?pt<0?Q():ye():te(M)}B(null),l&&!U.current&&(F.current=setTimeout(()=>Q(),H))},[K,W,ne,Se,oe,Q,ye,M,l,H,he,te]),me=Math.floor(M/oe),Ae=le=>te(le*oe);a.useEffect(()=>{if(!l||ne||U.current||K){G();return}const le=(M+1)%$.length,je=Math.min(le,Ce);return F.current=setTimeout(()=>te(je),H),G},[M,l,H,te,G,ne,$.length,Ce,K]),a.useEffect(()=>{if(!At()){if(de){const le=$.length+u;if(T(le),L.current){const je=xl(le,oe,Te,Se);L.current.style.transform=`translateX(${je})`,L.current.style.transition="none",requestAnimationFrame(()=>{L.current&&(L.current.style.transition="")})}}te(u)}},[k,u,de,$.length,oe,Te,Se]),a.useEffect(()=>()=>{F.current&&clearTimeout(F.current),Y.current&&clearTimeout(Y.current)},[]);const Fe=()=>{K&&L.current&&Qe(),_e()};return d.jsxs(I,{fw:!0,overflow:"hidden",onMouseEnter:ce,onMouseLeave:Fe,onTouchStart:le=>ze(le.touches[0].clientX),onTouchMove:le=>Be(le.touches[0].clientX),onTouchEnd:Qe,onMouseDown:le=>{le.button===0&&ze(le.clientX)},onMouseMove:le=>{le.buttons===1&&K&&Be(le.clientX)},onMouseUp:le=>{le.button===0&&K&&Qe()},display:"flex",flexDirection:"column",alignItems:"center",...v,children:[d.jsxs(I,{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",fw:!0,children:[d.jsx(d3,{itemsWrapperRef:L,itemSpacing:g,activeIndex:M,virtualActiveIndex:C,items:$,renderItem:n,keyExtractor:p,autoScroll:c,itemsPerView:oe,itemWidth:Se,infiniteLoop:x}),V&&e.length>oe&&d.jsx(I,{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",children:d.jsx(of,{isLeft:!0,onPrev:ye,onNext:Q})}),V&&e.length>oe&&d.jsx(I,{position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",children:d.jsx(of,{isLeft:!1,onPrev:ye,onNext:Q})})]}),ke&&Ee>1&&d.jsx(p3,{itemsCount:Ee,activeIndex:me,onDotClick:Ae})]})}const m3=a.forwardRef(g3);function y3({renderContent:e,isExpanded:n}){const s=Re().__hd__.accordion,l=s.animation,c=a.useRef(null),[u,f]=a.useState(0),[p,g]=a.useState(!1);a.useEffect(()=>{n&&c.current?p||f(c.current.scrollHeight):n||(p&&c.current&&f(c.current.scrollHeight),g(!1))},[n,e,p]);const b=a.useCallback(m=>{n&&m.propertyName==="height"&&g(!0)},[n]);return d.jsx(I,{overflow:p?"visible":"hidden",transition:`height ${l.duration}ms ${l.easing},
|
|
299
|
+
opacity ${l.duration}ms ${l.easing}`,height:n?p?"auto":u:0,opacity:n?1:0,onTransitionEnd:b,children:d.jsx(I,{ref:c,pt:s.gap,children:e()})})}const b3=pe(Lr)`
|
|
296
300
|
transition: transform ${({$duration:e,$easing:n})=>`${e}ms ${n}`};
|
|
297
301
|
transform: rotate(${({$isExpanded:e})=>e?"90deg":"0deg"});
|
|
298
302
|
flex-shrink: 0; /* Prevent icon from shrinking */
|
|
299
|
-
`;function
|
|
303
|
+
`;function x3({renderHeader:e,isExpanded:n,onToggle:r,disabled:s,iconPosition:l="left"}){const c=Re(),u=c.__hd__.accordion,f=u.header,p=u.animation,g=xt(c,f.iconSize),b=c.colors[f.iconColor]||f.iconColor,m=d.jsx(at,{onClick:s?void 0:r,cursor:s?"not-allowed":"pointer",opacity:s?f.disabledOpacity:1,children:d.jsx(b3,{size:g,color:b,weight:"bold",$isExpanded:n,$duration:p.duration,$easing:p.easing})});return d.jsx(at,{onClick:s?void 0:r,cursor:s?"not-allowed":"pointer",opacity:s?f.disabledOpacity:1,useScaleAnimation:!1,children:d.jsxs(I,{display:"flex",alignItems:"center",gap:l==="none"?void 0:f.gap,children:[l==="left"&&m,d.jsx(I,{flex:1,children:e(n)}),l==="right"&&m]})})}function gh({renderHeader:e,renderContent:n,initialExpanded:r=!1,expanded:s,onExpandedChange:l,disabled:c=!1,iconPosition:u="left",...f}){const g=Re().__hd__.accordion,b=s!==void 0,[m,x]=a.useState(r),v=b?s:m;a.useEffect(()=>{b&&x(s)},[b,s]);const _=a.useCallback(()=>{if(c)return;const j=!v;b||x(j),l==null||l(j)},[c,v,b,l]);return d.jsxs(I,{p:g.paddingVertical,px:g.paddingHorizontal,r:g.borderRadius,b:g.borderWidth,borderColor:g.borderColor,bgColor:g.backgroundColor,...f,children:[d.jsx(x3,{renderHeader:e,isExpanded:v,onToggle:_,disabled:c,iconPosition:u}),d.jsx(y3,{renderContent:n,isExpanded:v})]})}const mh=(e,n,r,s)=>r?e.colors[r]:s==="solid"?n==="white"?e.colors.grey900:e.colors.white:e.colors[n],v3=pe(I)`
|
|
300
304
|
display: inline-flex; /* Use inline-flex to allow tags to flow like text */
|
|
301
305
|
align-items: center;
|
|
302
306
|
justify-content: center;
|
|
@@ -304,106 +308,115 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
304
308
|
border-width: ${({theme:e})=>e.borderWidths.thin}px; /* Use thin border for outlined */
|
|
305
309
|
border-style: solid;
|
|
306
310
|
gap: ${({theme:e,$gap:n})=>e.spaces[n]}px;
|
|
307
|
-
padding: ${({theme:e,$paddingVertical:n,$paddingHorizontal:
|
|
311
|
+
padding: ${({theme:e,$paddingVertical:n,$paddingHorizontal:r})=>`${e.spaces[n]}px ${e.spaces[r]}px`};
|
|
308
312
|
|
|
309
|
-
border-radius: ${({theme:e,$radius:n})=>
|
|
313
|
+
border-radius: ${({theme:e,$radius:n})=>jf(n)?`${e.radii[n]}px`:n};
|
|
310
314
|
|
|
311
|
-
background-color: ${({theme:e,$variant:n,$color:
|
|
315
|
+
background-color: ${({theme:e,$variant:n,$color:r})=>n==="solid"?e.colors[r]:e.colors.transparent};
|
|
312
316
|
|
|
313
|
-
border-color: ${({theme:e,$variant:n,$color:
|
|
314
|
-
`,
|
|
315
|
-
color: ${({theme:e,$color:n,$textColor:
|
|
317
|
+
border-color: ${({theme:e,$variant:n,$color:r})=>n==="outlined"?e.colors[r]:e.colors.transparent};
|
|
318
|
+
`,w3=pe(Oe)`
|
|
319
|
+
color: ${({theme:e,$color:n,$textColor:r,$variant:s})=>mh(e,n,r,s)};
|
|
316
320
|
font-size: ${({theme:e,$fontSize:n})=>e.__hd__.text.fontSizes[n]}px;
|
|
317
321
|
/* Use medium weight for tags by default, can be customized via theme if needed */
|
|
318
322
|
font-weight: ${({theme:e})=>e.__hd__.text.fontWeights.medium};
|
|
319
323
|
line-height: 1; /* Ensure tight line height for tags */
|
|
320
|
-
`,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
width: auto; /* Explicit width auto */
|
|
326
|
-
`;else if(e==="grow")s+=`
|
|
327
|
-
flex-basis: 0; /* Basis 0 allows grow */
|
|
328
|
-
flex-grow: 1;
|
|
329
|
-
max-width: 100%; /* Can grow up to 100% */
|
|
330
|
-
width: auto; /* Let flexbox handle width */
|
|
331
|
-
`;else if(typeof e=="number"){const a=Hw(e,i);s+=`
|
|
332
|
-
flex-basis: ${a};
|
|
333
|
-
flex-grow: 0;
|
|
334
|
-
flex-shrink: 0; /* Prevent shrinking when space is tight */
|
|
335
|
-
`}return n==="auto"?s+="margin-left: auto;":typeof n=="number"?s+=`margin-left: ${Zw(n,i)};`:s+="margin-left: 0;",s},Nw=({size:e,offset:n,columnsContext:i})=>{let s="";const a=typeof i=="object"?i:{xs:i},l=typeof e=="object"?e:{xs:e},d=typeof n=="object"?n:{xs:n},f=Array.from(new Set([...Object.keys(Bo),...Ne.isObject(l)?Object.keys(l):[],...Ne.isObject(d)?Object.keys(d):[],...Ne.isObject(a)?Object.keys(a):[]]));f.sort((p,x)=>Bo[p]-Bo[x]);let h=typeof(a==null?void 0:a.xs)=="number"?a.xs:12;for(const p of f){a[p]!==void 0&&(h=a[p]);const x=l[p],w=d[p];if(x!==void 0||w!==void 0||p==="xs"||a[p]!==void 0){const _=Vw({sizeValue:x??l.xs,offsetValue:w??d.xs,currentTotalColumns:h});if(_){const v=p==="xs"?"":`@media (min-width: ${Bo[p]}px)`;v?s+=`${v} { ${_} }
|
|
336
|
-
`:s+=_+`
|
|
337
|
-
`}}}return tr.css`${s}`},Uw=ue(L)`
|
|
338
|
-
box-sizing: border-box;
|
|
339
|
-
margin: 0; // Reset margin by default
|
|
324
|
+
`,Ll=({variant:e,color:n,textColor:r,size:s,radius:l,icon:c,rightIcon:u,children:f,style:p,"data-testid":g,...b})=>{const m=Re(),x=m.__hd__.tag,v=e??x.defaultVariant,_=n??x.defaultColor,j=s??x.defaultSize,k=l??x.defaultRadius,A=mh(m,_,r,v),$=a.useMemo(()=>x.sizes[j],[x.sizes,j]);return d.jsxs(v3,{$variant:v,$color:_,$textColor:r,$size:j,$radius:k,$paddingVertical:$.paddingVertical,$paddingHorizontal:$.paddingHorizontal,$fontSize:$.fontSize,$gap:$.gap,$iconSize:$.iconSize,style:p,"data-testid":g,...b,children:[c&&d.jsx(yt,{type:"icon",art:c,size:$.iconSize,color:A,weight:"regular"}),d.jsx(w3,{$color:_,$textColor:r,$variant:v,$fontSize:$.fontSize,as:"span",children:f}),u&&d.jsx(yt,{type:"icon",art:u,size:$.iconSize,color:A,weight:"regular"})]})},dc=({label:e,checked:n,onChange:r,disabled:s=!1,color:l,size:c,style:u,"data-testid":f})=>{const p=Re(),g=p.__hd__.checkbox,[b,m]=a.useState(n);a.useEffect(()=>{m(n)},[n]);const x=l??g.defaultColor,v=c??g.defaultSize,_=g.sizes[v],j=g.animation,k=xt(p,_.iconSize),A=b?x:"white",$=b?x:g.uncheckedBorderColor,M=s?g.disabledColor:A,E=s?g.disabledColor:$,C=()=>{if(s)return;const T=!b;m(T),r(T)};return d.jsxs(at,{onClick:s?void 0:C,style:u,"data-testid":f,useScaleAnimation:!1,useOpacityAnimation:!1,display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",children:[d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:_.borderRadius,borderWidth:_.borderWidth,borderColor:E,backgroundColor:M,filter:s?"opacity(0.5)":"none",transition:`background-color ${j.duration}ms ${j.easing}, border-color ${j.duration}ms ${j.easing}`,children:d.jsx(yt,{type:"icon",art:I1,size:k,color:p.colors[g.iconColor],weight:"bold",opacity:b?1:0,transition:`opacity ${j.duration}ms ${j.easing}`,margin:_.iconMargin})}),e&&d.jsx(I,{pl:_.labelPaddingLeft,children:d.jsx(Oe,{fontSize:_.labelFontSize,color:s?g.disabledTextColor:g.textColor,as:"span",children:e})})]})},yh=a.createContext(null),bh=()=>a.useContext(yh),xh=({value:e,checked:n,disabled:r=!1,onChange:s,children:l,color:c,size:u,style:f,"data-testid":p})=>{const g=Re(),b=g.__hd__.radio,m=bh(),x=m!==null,v=x?m.value===e:n??!1,_=x&&m.disabled||r,j=c??(m==null?void 0:m.color)??b.defaultColor,k=u??(m==null?void 0:m.size)??b.defaultSize,A=b.sizes[k],$=b.animation,M=xt(g,A.indicatorSize),E=xt(g,A.indicatorInnerSize),C=v?j:b.uncheckedBorderColor,T=_?b.disabledColor:C,L=()=>{_||(x&&m.onChange?m.onChange(e):s&&s(!0))};return d.jsxs(at,{onClick:_?void 0:L,style:f,"data-testid":p,useScaleAnimation:!1,useOpacityAnimation:!1,display:"inline-flex",alignItems:"center",cursor:_?"not-allowed":"pointer",children:[d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",width:M,height:M,borderRadius:A.borderRadius,borderWidth:A.borderWidth,borderColor:T,backgroundColor:"white",filter:_?"opacity(0.5)":"none",transition:`border-color ${$.duration}ms ${$.easing}`,children:d.jsx(I,{width:E,height:E,borderRadius:"full",backgroundColor:_?b.disabledColor:j,opacity:v?1:0,transform:v?"scale(1)":"scale(0)",transition:`opacity ${$.duration}ms ${$.easing}, transform ${$.duration}ms ${$.easing}`})}),l&&d.jsx(I,{pl:A.labelPaddingLeft,children:d.jsx(Oe,{fontSize:A.labelFontSize,color:_?b.disabledTextColor:b.textColor,as:"span",children:l})})]})},_3=pe.div`
|
|
325
|
+
position: relative;
|
|
326
|
+
z-index: ${e=>e.$checked?1:0};
|
|
327
|
+
margin-left: -1px;
|
|
328
|
+
${e=>e.$block&&"flex: 1;"}
|
|
340
329
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
flex-wrap: wrap;
|
|
345
|
-
width: 100%; // Default container width
|
|
346
|
-
|
|
347
|
-
// Apply spacing using gap properties (more modern)
|
|
348
|
-
// Use helper to resolve responsive values
|
|
349
|
-
${i&<`gap: ${Nr(n,i)};`}
|
|
350
|
-
${s&<`
|
|
351
|
-
row-gap: ${Nr(n,s)};
|
|
352
|
-
--grid-row-gap: ${Nr(n,s)};
|
|
353
|
-
`}
|
|
354
|
-
${a&<`
|
|
355
|
-
column-gap: ${Nr(n,a)};
|
|
356
|
-
/* Expose for child items so they can calc width incl. gap */
|
|
357
|
-
--grid-column-gap: ${Nr(n,a)};
|
|
358
|
-
`}
|
|
330
|
+
&:first-child {
|
|
331
|
+
margin-left: 0;
|
|
332
|
+
}
|
|
359
333
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
334
|
+
${e=>e.$block&&`
|
|
335
|
+
& > * {
|
|
336
|
+
width: 100%;
|
|
337
|
+
}
|
|
338
|
+
& > * > * {
|
|
339
|
+
width: 100%;
|
|
340
|
+
}
|
|
341
|
+
`}
|
|
342
|
+
|
|
343
|
+
& > * > * {
|
|
344
|
+
border-radius: 0;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&:first-child > * > * {
|
|
348
|
+
border-top-left-radius: ${e=>e.$borderRadius};
|
|
349
|
+
border-bottom-left-radius: ${e=>e.$borderRadius};
|
|
350
|
+
}
|
|
364
351
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
352
|
+
&:last-child > * > * {
|
|
353
|
+
border-top-right-radius: ${e=>e.$borderRadius};
|
|
354
|
+
border-bottom-right-radius: ${e=>e.$borderRadius};
|
|
355
|
+
}
|
|
368
356
|
|
|
369
|
-
|
|
370
|
-
|
|
357
|
+
&:only-child > * > * {
|
|
358
|
+
border-radius: ${e=>e.$borderRadius};
|
|
359
|
+
}
|
|
360
|
+
`,fc=({value:e,checked:n,disabled:r=!1,onChange:s,children:l,color:c,size:u,buttonStyle:f,style:p,"data-testid":g})=>{const b=Re(),m=b.__hd__.radio,x=bh(),v=x!==null,_=v?x.value===e:n??!1,j=v&&x.disabled||r,k=c??(x==null?void 0:x.color)??m.defaultColor,A=u??(x==null?void 0:x.size)??m.defaultSize,$=f??(x==null?void 0:x.buttonStyle)??"outline",M=(x==null?void 0:x.block)??!1,E=m.button,C=E.sizes[A],T=m.animation,L=()=>j?E.disabledBackground:_&&$==="solid"?k:"transparent",F=()=>j?m.disabledColor:_?k:E.borderColor,Y=()=>j?m.disabledTextColor:_&&$==="solid"?E.solidTextColor:_?k:E.outlineTextColor,U=()=>{j||(v&&x.onChange?x.onChange(e):s&&s(!0))},K=b.radii[C.borderRadius]?`${b.radii[C.borderRadius]}px`:C.borderRadius;return d.jsx(_3,{$checked:_,$borderRadius:K,$block:M,children:d.jsx(at,{onClick:j?void 0:U,style:p,"data-testid":g,useScaleAnimation:!1,useOpacityAnimation:!1,display:"inline-flex",cursor:j?"not-allowed":"pointer",children:d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",px:C.paddingHorizontal,py:C.paddingVertical,borderWidth:"thin",borderColor:F(),backgroundColor:L(),filter:j?"opacity(0.6)":"none",transition:`
|
|
361
|
+
background-color ${T.duration}ms ${T.easing},
|
|
362
|
+
border-color ${T.duration}ms ${T.easing}
|
|
363
|
+
`,children:d.jsx(Oe,{fontSize:C.fontSize,color:Y(),as:"span",children:l})})})})},vh=({value:e,defaultValue:n,onChange:r,disabled:s=!1,options:l,optionType:c="default",buttonStyle:u="outline",direction:f="horizontal",block:p=!1,size:g,color:b,children:m,style:x,"data-testid":v})=>{const j=Re().__hd__.radio,k=e!==void 0,[A,$]=a.useState(n),M=k?e:A;a.useEffect(()=>{k&&$(e)},[k,e]);const E=a.useCallback(U=>{k||$(U),r==null||r(U)},[k,r]),C=a.useMemo(()=>({value:M,onChange:E,disabled:s,size:g??j.defaultSize,color:b??j.defaultColor,optionType:c,buttonStyle:u,block:p}),[M,E,s,g,b,c,u,p,j.defaultSize,j.defaultColor]),T=g??j.defaultSize,L=j.sizes[T],F=()=>{if(!l)return null;const U=c==="button"?fc:xh;return l.map(K=>d.jsx(U,{value:K.value,disabled:K.disabled,buttonStyle:u,children:K.label},String(K.value)))},Y=c==="button"?void 0:f==="vertical"?L.verticalGap:L.horizontalGap;return d.jsx(yh.Provider,{value:C,children:d.jsx(I,{display:p?"flex":"inline-flex",flexDirection:f==="vertical"?"column":"row",flexWrap:f==="horizontal"&&!p?"wrap":void 0,gap:Y,width:p?"100%":void 0,style:x,"data-testid":v,children:l?F():m})})},Fs=xh;Fs.Group=vh;Fs.Button=fc;function wh({value:e,onChange:n,disabled:r=!1}){const[s,l]=a.useState(!1),[c,u]=a.useState(!1),[f,p]=a.useState(e),g=a.useRef(null);a.useEffect(()=>{p(e)},[e]);const b=a.useCallback(()=>{r||l(v=>!v)},[r]),m=a.useCallback(v=>{v.disabled||(p(v.value),n==null||n(v.value),l(!1))},[n]),x=a.useCallback(()=>{l(!1)},[]);return{isOpen:s,setIsOpen:l,isHovering:c,setIsHovering:u,selectedValue:f,selectRef:g,handleToggle:b,handleSelect:m,handleClose:x}}function _h({option:e,isSelected:n,isDisabled:r,onSelect:s,sizeConfig:l,themeSelect:c,animation:u}){const f=a.useRef(null),p=Ts(f),g=c.dropdown;let b=g.backgroundColor;n?b=g.itemSelectedBackgroundColor:p&&!r&&(b=g.itemHoverBackgroundColor);const m=r?c.disabledContentColor:n?g.itemSelectedTextColor:g.itemTextColor;return d.jsx(at,{ref:f,onClick:()=>!r&&s(e),useScaleAnimation:!1,useOpacityAnimation:!1,cursor:r?"not-allowed":"pointer",fw:!0,children:d.jsx(I,{p:l.dropdownPaddingVertical,px:l.dropdownPaddingHorizontal,bgColor:b,transition:`background-color ${u.duration}ms ${u.easing}`,opacity:r?c.disabledOpacity:1,display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:d.jsx(Oe,{fontSize:l.fontSize,color:m,fontWeight:n?"semibold":"regular",as:"span",children:e.label})})},e.value)}function S3({anchorRef:e,isOpen:n,options:r,onSelect:s,selectedValue:l,onClose:c,size:u,borderRadius:f}){const p=Re(),g=p.__hd__.select,b=g.dropdown,m=a.useRef(null),x=g.sizes[u],v=g.animation,_=p.spaces[b.offset];return a.useEffect(()=>{const j=k=>{m.current&&!m.current.contains(k.target)&&e.current&&!e.current.contains(k.target)&&c()};return n&&document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[n,c,e]),a.useEffect(()=>{if(!n)return;const j=k=>{k.key==="Escape"&&c()};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[n,c]),At()||!n?null:d.jsx(I,{ref:m,bgColor:b.backgroundColor,b:b.borderColor!=="transparent"?x.borderWidth:"none",borderColor:b.borderColor,boxShadow:b.shadow,position:"absolute",top:`calc(100% + ${_}px)`,left:0,right:0,zIndex:p.zIndex.getZIndex("AIC_Kits_Dropdown"),maxHeight:b.maxHeight,overflowY:"auto",transition:`opacity ${v.duration}ms ${v.easing},max-height ${v.duration}ms ${v.easing}`,onClick:j=>j.stopPropagation(),onMouseDown:j=>j.stopPropagation(),style:{borderRadius:f},children:r.length>0?r.map(j=>{const k=j.value===l,A=!!j.disabled;return d.jsx(_h,{option:j,isSelected:k,isDisabled:A,onSelect:s,sizeConfig:x,themeSelect:g,animation:v},j.value)}):d.jsx(I,{p:x.dropdownPaddingVertical,px:x.dropdownPaddingHorizontal,children:d.jsx(Oe,{fontSize:x.fontSize,color:b.emptyTextColor,as:"span",children:"No options available"})})})}const C3=({fontSize:e,color:n,...r})=>{const s=Re(),l={border:"none",backgroundColor:"transparent",outline:"none",width:"100%",fontFamily:"inherit",padding:0,fontSize:s.__hd__.text.fontSizes[e],color:s.colors[n]};return d.jsx("input",{style:l,...r})},Sh=({placeholder:e,selectedOptionLabel:n,isOpen:r,isDisabled:s,handleToggle:l,iconSizePx:c,inputBorderRadius:u,sizeConfig:f,animation:p,currentBgColor:g,currentBorderColor:b,baseBorderWidthKey:m,insetBoxShadow:x,textColor:v,iconColor:_,testId:j,setIsHovering:k,searchable:A,searchTerm:$,onSearchChange:M})=>{const E=r&&A;return d.jsx(at,{onClick:l,cursor:s?"not-allowed":"pointer",useScaleAnimation:!1,useOpacityAnimation:!1,"data-testid":j,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",p:f.paddingVertical,px:f.paddingHorizontal,b:m,borderColor:b,bgColor:g,opacity:1,transition:`background-color ${p.duration}ms ${p.easing}, border-color ${p.duration}ms ${p.easing}, box-shadow ${p.duration}ms ${p.easing}`,gap:f.gap,style:{borderRadius:u,boxShadow:x},children:[d.jsx(I,{flex:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:E?d.jsx(C3,{value:$,onChange:C=>M(C.target.value),placeholder:e,onClick:C=>C.stopPropagation(),autoFocus:!0,fontSize:f.fontSize,color:v}):d.jsx(Oe,{fontSize:f.fontSize,color:v,as:"span",children:n||e})}),d.jsx(yt,{type:"icon",art:tc,size:c,color:_,weight:"bold",transition:`transform ${p.duration}ms ${p.easing}`,transform:r?"rotate(180deg)":"rotate(0deg)"})]})})};function Ch({theme:e,themeSelect:n,variant:r,isDisabled:s,isErrored:l,isOpen:c,isHovering:u,focusColor:f}){const p=n.variants[r],g="thin",b=e.borderWidths[g];let m;s?m=p.disabled:l?m=p.errored:c?m={...p.focused,borderColor:f}:u?m=p.hover:m=p.default;let x="none";if(!s&&!l&&c){const v=p.focused.borderWidth,_=e.borderWidths[v],j=Math.max(0,_-b);if(j>0){const k=e.colors[f];x=`inset 0 0 0 ${j}px ${k}`}}return{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:g,insetBoxShadow:x}}const Gn=({options:e,value:n,onChange:r,placeholder:s="Select an option",label:l,helperText:c,error:u,disabled:f=!1,variant:p="outlined",color:g,size:b,corner:m,borderRadius:x,bgColor:v,style:_,"data-testid":j,searchable:k=!1})=>{var G;const A=Re(),$=A.__hd__.select,[M,E]=a.useState(""),{isOpen:C,isHovering:T,selectedValue:L,selectRef:F,handleToggle:Y,handleSelect:U,handleClose:K,setIsHovering:O}=wh({value:n,onChange:r,disabled:f});a.useEffect(()=>{C&&E("")},[C]);const W=a.useMemo(()=>M?e.filter(ce=>ce.label.toLowerCase().includes(M.toLowerCase())):e,[e,M]),B=g??$.defaultColor,he=b??$.defaultSize,N=m??$.defaultCorner,ne=$.sizes[he],oe=$.animation,Se=x?`${A.radii[x]}px`:$.squircleBorderRadii[N],Te=x??(N==="circle"?$.dropdown.borderRadiusForCircle:$.dropdown.borderRadiusForRounded),ke=A.radii[Te],V=!!u,de=f,{backgroundColor:Ce,borderColor:Ee,borderWidth:H,insetBoxShadow:be}=Ch({theme:A,themeSelect:$,variant:p,isDisabled:de,isErrored:V,isOpen:C,isHovering:T,focusColor:B}),ie=v??Ce,xe=de?$.disabledContentColor:$.iconColor,we=de?$.disabledContentColor:L!=null?$.valueColor:$.placeholderColor,te=de?$.disabledLabelColor:$.labelColor,Q=(G=e.find(ce=>ce.value===L))==null?void 0:G.label,ye=xt(A,ne.iconSize);return d.jsxs(I,{fw:!0,style:_,position:"relative",ref:F,children:[l&&d.jsx(I,{mb:"xs",children:d.jsx(Oe,{fontWeight:"medium",color:te,children:l})}),d.jsx(Sh,{placeholder:s,selectedOptionLabel:Q,isOpen:C,isDisabled:de,handleToggle:Y,iconSizePx:ye,inputBorderRadius:Se,sizeConfig:ne,animation:oe,currentBgColor:ie,currentBorderColor:Ee,baseBorderWidthKey:H,insetBoxShadow:be,textColor:we,iconColor:xe,testId:j,setIsHovering:O,searchable:k,searchTerm:M,onSearchChange:E}),(u||c)&&d.jsx(I,{children:d.jsx(Oe,{fontSize:"xs",color:u?$.errorColor:$.helperTextColor,as:"span",children:u||c})}),d.jsx(S3,{anchorRef:F,isOpen:C,options:W,onSelect:U,selectedValue:L,onClose:K,size:he,borderRadius:`${ke}px`})]})},E3=pe.div`
|
|
364
|
+
position: absolute;
|
|
365
|
+
width: ${e=>e.$size}px;
|
|
366
|
+
height: ${e=>e.$size}px;
|
|
367
|
+
border-radius: ${e=>e.theme.radii.full}px;
|
|
368
|
+
background-color: ${e=>e.theme.colors[e.theme.__hd__.switch.handleColor]};
|
|
369
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
370
|
+
left: ${e=>e.$position}px;
|
|
371
|
+
transition: left ${e=>e.$duration}ms ${e=>e.$easing};
|
|
372
|
+
`,Eh=({label:e,checked:n,onChange:r,disabled:s=!1,color:l,size:c,style:u,"data-testid":f,"aria-label":p})=>{const b=Re().__hd__.switch,[m,x]=a.useState(n);a.useEffect(()=>{x(n)},[n]);const v=l??b.defaultColor,_=c??b.defaultSize,j=b.sizes[_],k=b.animation,A=m?v:b.inactiveColor,$=a.useCallback(()=>{if(s)return;const C=!m;x(C),r(C)},[s,m,r]),M=a.useCallback(C=>{s||(C.key===" "||C.key==="Enter")&&(C.preventDefault(),$())},[s,$]),E=m?j.trackWidth-j.handleSize-j.handleMargin:j.handleMargin;return d.jsxs(at,{onClick:s?void 0:$,style:u,"data-testid":f,useScaleAnimation:!1,useOpacityAnimation:!1,display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",role:"switch","aria-checked":m,"aria-disabled":s,tabIndex:s?-1:0,onKeyDown:M,"aria-label":p,children:[d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",width:`${j.trackWidth}px`,height:`${j.trackHeight}px`,borderRadius:"full",backgroundColor:A,opacity:s?b.disabledOpacity:1,transition:`background-color ${k.duration}ms ${k.easing}`,children:d.jsx(E3,{$size:j.handleSize,$position:E,$duration:k.duration,$easing:k.easing})}),e&&d.jsx(I,{pl:j.labelPaddingLeft,children:d.jsx(Oe,{fontSize:j.labelFontSize,color:s?b.disabledTextColor:b.textColor,as:"span",children:e})})]})},Mn={xs:0,sm:600,md:900,lg:1200,xl:1536},hc=12,sf=a.createContext({columns:hc}),af=(e,n)=>Xe.isNumber(n)?`${n}px`:If(n)?`${e.spaces[n]??0}px`:n,$3=e=>{const n=e??hc;if(typeof n=="number")return wn.css`grid-template-columns: repeat(${n}, 1fr);`;const r=Object.keys(n);r.sort((l,c)=>Mn[l]-Mn[c]);let s="";for(const l of r){const c=n[l];if(c!==void 0){const u=`grid-template-columns: repeat(${c}, 1fr);`;l==="xs"?s+=u:s+=`@media (min-width: ${Mn[l]}px) { ${u} }`}}return wn.css`${s}`},k3=(e,n,r,s)=>{let l="";const c=(u,f)=>{if(u===void 0)return"";const p=A3(e,u);if(p===void 0)return"";if(typeof p=="string"||typeof p=="number")return`${f}: ${p};`;let g="";const b=Object.keys(p);b.sort((m,x)=>Mn[m]-Mn[x]);for(const m of b){const x=p[m];if(x!==void 0){const v=`${f}: ${x};`;m==="xs"?g+=v:g+=`@media (min-width: ${Mn[m]}px) { ${v} }`}}return g};return l+=c(n,"gap"),l+=c(r,"row-gap"),l+=c(s,"column-gap"),wn.css`${l}`},A3=(e,n)=>{if(n!==void 0)if(Xe.isObject(n)){const r={};for(const s in n){const l=s,c=n[l];c!==void 0&&(r[l]=af(e,c))}return r}else return af(e,n)},j3=({sizeValue:e,offsetValue:n})=>typeof n=="number"&&typeof e=="number"?`grid-column: ${n+1} / span ${e};`:typeof n=="number"?`grid-column-start: ${n+1};`:n==="auto"?typeof e=="number"?`grid-column: span ${e}; margin-left: auto;`:"margin-left: auto;":e==="auto"?"grid-column: auto;":typeof e=="number"?`grid-column: span ${e};`:"",T3=({size:e,offset:n,columnsContext:r})=>{let s="";const l=typeof r=="object"?r:{xs:r},c=typeof e=="object"?e:{xs:e},u=typeof n=="object"?n:{xs:n},f=Array.from(new Set([...Object.keys(Mn),...Xe.isObject(c)?Object.keys(c):[],...Xe.isObject(u)?Object.keys(u):[],...Xe.isObject(l)?Object.keys(l):[]]));f.sort((p,g)=>Mn[p]-Mn[g]);for(const p of f){const g=c[p],b=u[p];if(g!==void 0||b!==void 0||p==="xs"||l[p]!==void 0){const m=j3({sizeValue:g??c.xs,offsetValue:b??u.xs});if(m){const x=p==="xs"?"":`@media (min-width: ${Mn[p]}px)`;x?s+=`${x} { ${m} }
|
|
373
|
+
`:s+=m+`
|
|
374
|
+
`}}}return wn.css`
|
|
375
|
+
${s}
|
|
376
|
+
`},R3=pe(I)`
|
|
377
|
+
box-sizing: border-box;
|
|
378
|
+
margin: 0;
|
|
379
|
+
|
|
380
|
+
// --- Container Styles ---
|
|
381
|
+
${({$container:e,theme:n,$spacing:r,$rowSpacing:s,$columnSpacing:l,$columns:c})=>e&&Ct`
|
|
382
|
+
display: grid;
|
|
383
|
+
${$3(c)}
|
|
384
|
+
width: 100%;
|
|
385
|
+
${k3(n,r,s,l)}
|
|
371
386
|
`}
|
|
372
387
|
|
|
373
388
|
// --- Item Styles ---
|
|
374
|
-
${({container:e
|
|
375
|
-
|
|
376
|
-
/* margin: 0; */
|
|
377
|
-
${Nw({size:n,offset:i,columnsContext:a})}
|
|
389
|
+
${({$container:e,$size:n,$offset:r,$columnsContext:s})=>!e&&(n!==void 0||r!==void 0)&&Ct`
|
|
390
|
+
${T3({size:n,offset:r,columnsContext:s})}
|
|
378
391
|
`}
|
|
379
|
-
`,
|
|
392
|
+
`,Kn=a.forwardRef(({container:e=!1,spacing:n,rowSpacing:r,columnSpacing:s,columns:l,size:c,offset:u,children:f,...p},g)=>{const b=a.useContext(sf),m=l??b.columns??hc;return d.jsx(sf.Provider,{value:{columns:m},children:d.jsx(R3,{ref:g,$container:e,$spacing:e?n:void 0,$rowSpacing:e?r:void 0,$columnSpacing:e?s:void 0,$size:c,$offset:u,$columns:l,$columnsContext:m,...p,children:f})})});Kn.displayName="Grid";const Cs=pe(at)`
|
|
380
393
|
border-radius: ${({theme:e,$borderRadius:n})=>e.radii[n]}px;
|
|
381
394
|
width: ${({theme:e,$size:n})=>e.sizes[n]}px;
|
|
382
395
|
height: ${({theme:e,$size:n})=>e.sizes[n]}px;
|
|
383
396
|
display: flex;
|
|
384
397
|
align-items: center;
|
|
385
398
|
justify-content: center;
|
|
386
|
-
background-color: ${({theme:e,$color:n,$selected:
|
|
399
|
+
background-color: ${({theme:e,$color:n,$selected:r})=>r?e.colors[n]:e.colors.white};
|
|
387
400
|
&:hover {
|
|
388
|
-
background-color: ${({theme:e,$color:n,$selected:
|
|
401
|
+
background-color: ${({theme:e,$color:n,$selected:r})=>r?void 0:e.colors[n]};
|
|
389
402
|
}
|
|
390
403
|
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
391
|
-
`,
|
|
392
|
-
color: ${({theme:e,$selected:n,$defaultColor:
|
|
404
|
+
`,lf=pe(Oe)`
|
|
405
|
+
color: ${({theme:e,$selected:n,$defaultColor:r})=>n?e.colors.white:e.colors[r]};
|
|
393
406
|
font-size: ${({theme:e,$fontSize:n})=>e.__hd__.text.fontSizes[n]}px;
|
|
394
|
-
${
|
|
407
|
+
${Cs}:hover & {
|
|
395
408
|
color: ${({theme:e,$selected:n})=>n?void 0:e.colors.white};
|
|
396
409
|
}
|
|
397
410
|
transition: color 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
398
|
-
`,
|
|
399
|
-
color: ${({theme:e,$color:n,$selected:
|
|
400
|
-
${
|
|
401
|
-
color: ${({theme:e,$color:n,$selected:
|
|
411
|
+
`,M3=pe(yt)`
|
|
412
|
+
color: ${({theme:e,$color:n,$selected:r})=>r?e.colors.white:e.colors[n]};
|
|
413
|
+
${Cs}:hover & {
|
|
414
|
+
color: ${({theme:e,$color:n,$selected:r})=>r?e.colors[n]:e.colors.white};
|
|
402
415
|
}
|
|
403
416
|
transition: color 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
404
417
|
width: ${({theme:e,$size:n})=>e.sizes[n]}px;
|
|
405
418
|
height: ${({theme:e,$size:n})=>e.sizes[n]}px;
|
|
406
|
-
|
|
419
|
+
`,$h=({type:e="page",page:n,currentPage:r,selected:s=!1,disabled:l=!1,onClick:c,shape:u="circular",size:f="medium",color:p="primary",count:g})=>{const x=Re().__hd__.pagination.item,v=x.sizes[f],_=x.shapes[u],j=A=>{if(console.log("type",e,"page",n,"currentPage",r,"count",g),l){A.stopPropagation();return}e==="first"&&(c==null||c(g&&g>=1?1:null,A)),e==="last"&&(c==null||c(g&&g>=1?g:null,A)),e==="previous"&&(c==null||c(r>=2?r-1:null,A)),e==="next"&&(c==null||c(r<=g-1?r+1:null,A)),e==="page"&&(c==null||c(n??null,A))},k=a.useMemo(()=>{switch(e){case"previous":return Qi;case"next":return Lr;case"first":return Jl;case"last":return ec;default:return null}},[e]);return e==="page"?d.jsx(Cs,{onClick:s?void 0:j,useScaleAnimation:!s,useOpacityAnimation:!s,$borderRadius:_.container.borderRadius,$size:v.container.size,$selected:s,$color:p,children:d.jsx(lf,{color:l?x.text.disabledColor:x.text.color,$defaultColor:x.defaultColor,$fontSize:v.text.fontSize,$selected:s,$color:p,children:String(n)})}):e==="end-ellipsis"||e==="start-ellipsis"?d.jsx(lf,{color:l?x.text.disabledColor:x.text.color,$defaultColor:x.defaultColor,$fontSize:v.text.fontSize,$selected:s,$color:p,children:"..."}):d.jsx(Cs,{onClick:j,$borderRadius:_.container.borderRadius,$size:v.container.size,$selected:s,$color:p,children:k&&d.jsx(M3,{type:"icon",art:k,$color:p,$selected:s,$size:v.icon.size,weight:v.icon.weight})})},I3=({count:e,page:n,boundaryCount:r=1,siblingCount:s=1,showFirstButton:l=!1,showLastButton:c=!1,showPrevNextButtons:u=!0})=>{const f=(k,A)=>{const $=A-k+1;return Array.from({length:$},(M,E)=>k+E)},p=f(1,Math.min(r,e)),g=f(Math.max(e-r+1,r+1),e),b=Math.max(Math.min(n-s,e-r-s*2-1),r+2),m=Math.min(Math.max(n+s,r+s*2+2),g.length>0?g[0]-2:e-1),x=[];l&&x.push("first"),u&&x.push("previous"),x.push(...p);const v=p.length>0?p[p.length-1]:0;b===v+2?x.push(v+1):b>v+2&&x.push("start-ellipsis"),b<=m&&x.push(...f(b,m));const _=g.length>0?g[0]:e+1;return m===_-2?x.push(_-1):m<_-2&&x.push("end-ellipsis"),x.push(...g),u&&x.push("next"),c&&x.push("last"),{items:x.filter((k,A,$)=>typeof k=="number"?k>=1&&k<=e&&$.indexOf(k)===A:$.indexOf(k)===A).map(k=>{let A,$;return typeof k=="number"?(A="page",$=k):A=k,{type:A,page:$,selected:$===n,disabled:(A==="previous"||A==="first")&&n<=1||(A==="next"||A==="last")&&n>=e}})}},O3=({count:e=1,page:n=1,onChange:r,boundaryCount:s=1,siblingCount:l=1,showFirstButton:c=!1,showLastButton:u=!1,showPrevNextButtons:f=!0,shape:p="circular",size:g="medium",color:b="primary"})=>{const x=Re().__hd__.pagination,{items:v}=I3({count:e,page:n,boundaryCount:s,siblingCount:l,showFirstButton:c,showLastButton:u,showPrevNextButtons:f}),_=a.useCallback((j,k)=>{r&&j!==null&&r(j,k)},[r]);return d.jsx(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:x.container.sizes[g].gap,children:v.map((j,k)=>d.jsx($h,{count:e,type:j.type,page:j.page,currentPage:n,selected:j.selected,disabled:j.disabled,onClick:_,shape:p,size:g,color:b},`${j.type}-${j.page||k}`))})},z3=On`
|
|
407
420
|
0% {
|
|
408
421
|
left: 0%;
|
|
409
422
|
width: 0%;
|
|
@@ -419,7 +432,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419
432
|
width: 0%; /* Smallest at the right end */
|
|
420
433
|
transform: translateX(0%); /* Ensure it exits cleanly if it was translateX(100%) it would go off screen too fast */
|
|
421
434
|
}
|
|
422
|
-
`,
|
|
435
|
+
`,F3=pe(I)`
|
|
423
436
|
position: relative;
|
|
424
437
|
overflow: hidden;
|
|
425
438
|
height: ${({theme:e,$heightKey:n})=>e.sizes[n]}px;
|
|
@@ -428,11 +441,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
428
441
|
border-width: ${({theme:e,$borderWidthKey:n})=>n?e.borderWidths[n]:0}px;
|
|
429
442
|
border-style: ${({$borderWidthKey:e})=>e?"solid":"none"};
|
|
430
443
|
border-color: ${({theme:e,$borderColorKey:n})=>n?e.colors[n]||n:"transparent"};
|
|
431
|
-
`,
|
|
444
|
+
`,L3=pe(I)`
|
|
432
445
|
width: 100%;
|
|
433
446
|
height: 100%;
|
|
434
447
|
position: relative; /* For absolute positioning of the indicator */
|
|
435
|
-
`,
|
|
448
|
+
`,D3=pe(I)`
|
|
436
449
|
position: absolute;
|
|
437
450
|
top: 0;
|
|
438
451
|
bottom: 0;
|
|
@@ -441,15 +454,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
441
454
|
background-color: ${({theme:e,$progressColorKey:n})=>e.colors[n]};
|
|
442
455
|
border-radius: ${({theme:e,$borderRadiusKey:n})=>e.radii[n]}px;
|
|
443
456
|
|
|
444
|
-
${({$progressValue:e})=>e!==void 0?
|
|
457
|
+
${({$progressValue:e})=>e!==void 0?Ct`
|
|
445
458
|
width: ${e}%;
|
|
446
459
|
left: 0; // Explicitly set left for determinate state
|
|
447
460
|
transition: width 0.3s ease-in-out;
|
|
448
|
-
`:
|
|
461
|
+
`:Ct`
|
|
449
462
|
/* Indeterminate: animation controls width and position */
|
|
450
|
-
animation: ${
|
|
463
|
+
animation: ${z3} 2s infinite linear alternate;
|
|
451
464
|
`}
|
|
452
|
-
`,
|
|
465
|
+
`,P3=({value:e,color:n,size:r,variant:s,testID:l="progress",...c})=>{const f=Re().__hd__.progress,p=s||f.defaultVariant,g=r||f.defaultSize,{height:b,borderRadius:m}=f.sizes[g],{containerBackgroundColor:x,containerBorderColor:v,containerBorderWidth:_,defaultProgressColor:j}=f.variants[p],k=n||j;let A=v;p==="outlined"&&(A=k);const $=e!==void 0?Math.max(0,Math.min(e,100)):void 0;return d.jsx(F3,{$heightKey:b,$borderRadiusKey:m,$backgroundColorKey:x,$borderColorKey:A,$borderWidthKey:_,"data-testid":`${l}-container`,...c,children:d.jsx(L3,{"data-testid":`${l}-bar`,children:d.jsx(D3,{$progressColorKey:k,$progressValue:$,$borderRadiusKey:m,"data-testid":`${l}-indicator`})})})},W3=pe(I)`
|
|
453
466
|
position: fixed;
|
|
454
467
|
top: 0;
|
|
455
468
|
left: 0;
|
|
@@ -460,45 +473,297 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
460
473
|
display: flex;
|
|
461
474
|
align-items: center;
|
|
462
475
|
justify-content: center;
|
|
463
|
-
`;let
|
|
476
|
+
`;let ss=0,cf;const Ls=({open:e,onClose:n,children:r,"data-testid":s,...l})=>{const c=Re();if(a.useEffect(()=>{if(!(typeof document>"u"))return e&&(ss===0&&(cf=document.body.style.overflow,document.body.style.overflow="hidden"),ss++),()=>{e&&(ss--,ss===0&&(document.body.style.overflow=cf))}},[e]),!e)return null;const u=f=>{f.target===f.currentTarget&&(n==null||n())};return d.jsx(W3,{zIndex:c.zIndex.getZIndex("AIC_Kits_Modal"),onClick:u,"data-testid":s?`${s}-backdrop`:void 0,children:d.jsx(I,{maxHeight:"100vh",overflowY:"auto",...l,"data-testid":s?`${s}-container`:void 0,children:r})})},H3="md",B3="24h",V3=1,Z3=Array.from({length:24},(e,n)=>n.toString().padStart(2,"0")),N3=Array.from({length:12},(e,n)=>(n+1).toString().padStart(2,"0")),U3=["AM","PM"],G3=pe.div`
|
|
477
|
+
display: flex;
|
|
478
|
+
align-items: center;
|
|
479
|
+
justify-content: center;
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
|
|
482
|
+
user-select: none;
|
|
483
|
+
|
|
484
|
+
${({theme:e,$size:n,$isSelected:r,$offset:s})=>{const l=e.__hd__.timepicker,c=l.sizes[n],u=e.__hd__.text,f=r?e.colors.primary:"transparent",p=r?e.colors.white:e.colors[l.colors.wheelText],g=r?1:Math.max(.3,1-Math.abs(s)*.25),b=r?u.fontWeights.semibold:u.fontWeights.regular;return`
|
|
485
|
+
height: ${c.wheelItemHeight}px;
|
|
486
|
+
font-size: ${u.fontSizes[c.wheelFontSize]}px;
|
|
487
|
+
font-weight: ${b};
|
|
488
|
+
color: ${p};
|
|
489
|
+
background-color: ${f};
|
|
490
|
+
opacity: ${g};
|
|
491
|
+
border-radius: ${e.radii.sm}px;
|
|
492
|
+
|
|
493
|
+
&:hover {
|
|
494
|
+
${r?"":`
|
|
495
|
+
background-color: ${e.colors.primary100};
|
|
496
|
+
opacity: 1;
|
|
497
|
+
`}
|
|
498
|
+
}
|
|
499
|
+
`}}
|
|
500
|
+
`,q3=pe.div`
|
|
501
|
+
display: flex;
|
|
502
|
+
flex-direction: row;
|
|
503
|
+
align-items: center;
|
|
504
|
+
overflow: hidden;
|
|
505
|
+
|
|
506
|
+
${({theme:e,$isFocused:n,$isDisabled:r,$error:s})=>{const l=e.__hd__.input;let c=e.colors[l.states.default.borderColor],u=l.states.default.boxShadow;s?(c=e.colors[l.states.error.borderColor],u=l.states.error.boxShadow):r?c=e.colors[l.states.disabled.borderColor]:n&&(c=e.colors[l.states.focused.borderColor],u=l.states.focused.boxShadow);const f=e.spaces[l.padding.vertical],p=e.spaces[l.padding.horizontal],g=e.radii[l.borderRadius],b=e.borderWidths[l.borderWidth];return`
|
|
507
|
+
padding: ${f}px ${p}px;
|
|
508
|
+
border-radius: ${g}px;
|
|
509
|
+
border: ${b}px solid ${c};
|
|
510
|
+
box-shadow: ${u};
|
|
511
|
+
background-color: ${r?e.colors[l.states.disabled.backgroundColor]:e.colors[l.states.default.backgroundColor]};
|
|
512
|
+
opacity: ${r?.7:1};
|
|
513
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
514
|
+
`}}
|
|
515
|
+
`,uf=pe.input`
|
|
516
|
+
flex: 1;
|
|
517
|
+
min-width: 0;
|
|
518
|
+
border: none;
|
|
519
|
+
background: transparent;
|
|
520
|
+
outline: none;
|
|
521
|
+
text-align: center;
|
|
522
|
+
font-size: ${({theme:e})=>`${e.__hd__.text.fontSizes[e.__hd__.input.fontSize||"medium"]}px`};
|
|
523
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.textColor||"grey900"]};
|
|
524
|
+
|
|
525
|
+
&::placeholder {
|
|
526
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.placeholderColor||"grey500"]};
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
&:disabled {
|
|
530
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.disabledTextColor||"grey500"]};
|
|
531
|
+
cursor: not-allowed;
|
|
532
|
+
}
|
|
533
|
+
`,as=({items:e,selectedValue:n,onSelect:r,size:s})=>{const c=Re().__hd__.timepicker,u=c.sizes[s],f=c.wheel.visibleItems,p=u.wheelItemHeight,g=a.useRef(null),b=a.useRef(null),[m,x]=a.useState(!1),[v,_]=a.useState(0),[j,k]=a.useState(0),[A,$]=a.useState(0);a.useEffect(()=>{const U=e.indexOf(n);U!==-1&&($(U),k(0))},[n,e]);const M=a.useCallback(()=>{const U=f*p,K=A*p;return U-K+j},[A,j,f,p]),E=a.useCallback(U=>{U.preventDefault(),x(!0),_(U.clientY),U.target.setPointerCapture(U.pointerId)},[]),C=a.useCallback(U=>{if(!m)return;const K=U.clientY-v;k(K)},[m,v]),T=a.useCallback(U=>{if(!m)return;x(!1),U.target.releasePointerCapture(U.pointerId);const K=Math.round(-j/p);let O=A+K;O=Math.max(0,Math.min(e.length-1,O)),$(O),k(0),r(e[O])},[m,j,p,A,e,r]);a.useEffect(()=>{const U=g.current;if(!U)return;const K=O=>{O.preventDefault(),O.stopPropagation();const W=O.deltaY>0?1:-1;let B=A+W;B=Math.max(0,Math.min(e.length-1,B)),B!==A&&($(B),r(e[B]))};return U.addEventListener("wheel",K,{passive:!1}),()=>U.removeEventListener("wheel",K)},[A,e,r]);const L=a.useCallback(U=>{U!==A&&($(U),r(e[U]))},[A,e,r]),F=()=>e.map((U,K)=>{const O=K-A;return d.jsx(G3,{$size:s,$isSelected:K===A,$offset:O,onClick:()=>L(K),children:U},U)}),Y=p*(2*f+1);return d.jsxs(I,{ref:g,position:"relative",overflow:"hidden",width:u.wheelWidth,height:Y,onPointerDown:E,onPointerMove:C,onPointerUp:T,onPointerCancel:T,children:[d.jsx(I,{position:"absolute",left:0,right:0,top:f*p,height:p,bgColor:c.colors.wheelSelectedBg,r:"sm",zIndex:0,pointerEvents:"none"}),d.jsx(I,{ref:b,position:"absolute",top:0,left:0,right:0,zIndex:1,transform:`translateY(${M()}px)`,transition:`${m?"none":"transform 0.2s ease-out"}`,children:F()})]})};function K3(e){const n=[];for(let r=0;r<60;r+=e)n.push(r.toString().padStart(2,"0"));return n}function Vi(e){const n=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),{hours:r,period:n}}function ys(e,n){return n==="AM"?e===12?0:e:e===12?12:e+12}function en(e,n){if(!e)return"";const{hours:r,minutes:s}=e;if(n==="24h")return`${r.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`;const{hours:l,period:c}=Vi(r);return`${l.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")} ${c}`}function vl(e,n){if(!e||e.trim()==="")return null;if(n==="24h"){const u=e.match(/^(\d{1,2}):(\d{2})$/);if(!u)return null;const f=parseInt(u[1],10),p=parseInt(u[2],10);return f<0||f>23||p<0||p>59?null:{hours:f,minutes:p}}const r=e.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i);if(!r)return null;const s=parseInt(r[1],10),l=parseInt(r[2],10),c=r[3].toUpperCase();return s<1||s>12||l<0||l>59?null:{hours:ys(s,c),minutes:l}}function Y3(e,n){return Math.round(e/n)*n}function df(e,n){return en(e,n)}function pc(e,n){return!e||!n?e===n:e.hours===n.hours&&e.minutes===n.minutes}function ff(e){return e.hours*60+e.minutes}function X3(e,n){if(!e||!n)return null;const r=ff(e),s=ff(n);return r<s?-1:r>s?1:0}function Q3(e,n){if(!n)return 0;const r=e.findIndex(s=>pc(s,n));return r>=0?r:0}const Zi=({value:e,onChange:n,format:r,minuteStep:s,size:l,slots:c,markerValue:u,markerLabel:f})=>{const g=Re().__hd__.timepicker,b=g.sizes[l],m=a.useMemo(()=>!c||c.length===0?null:c.map(L=>df(L,r)),[c,r]),x=a.useCallback(()=>{if(!c||c.length===0)return"";const L=Q3(c,e);return df(c[L],r)},[c,e,r]),v=a.useCallback(L=>{if(!c||!m)return;const F=m.indexOf(L);F>=0&&F<c.length&&n(c[F])},[c,m,n]),_=r==="24h"?Z3:N3,j=a.useMemo(()=>K3(s),[s]),k=a.useCallback(()=>{if(!e)return _[0];if(r==="24h")return e.hours.toString().padStart(2,"0");const{hours:L}=Vi(e.hours);return L.toString().padStart(2,"0")},[e,r,_]),A=a.useCallback(()=>e?e.minutes.toString().padStart(2,"0"):j[0],[e,j]),$=a.useCallback(()=>{if(!e)return"AM";const{period:L}=Vi(e.hours);return L},[e]),M=a.useCallback(L=>{const F=parseInt(L,10),Y=(e==null?void 0:e.minutes)??0;if(r==="24h")n({hours:F,minutes:Y});else{const U=e?Vi(e.hours).period:"AM",K=ys(F,U);n({hours:K,minutes:Y})}},[e,r,n]),E=a.useCallback(L=>{const F=parseInt(L,10),Y=(e==null?void 0:e.hours)??0;n({hours:Y,minutes:F})},[e,n]),C=a.useCallback(L=>{if(!e){const U=ys(12,L);n({hours:U,minutes:0});return}const{hours:F}=Vi(e.hours),Y=ys(F,L);n({hours:Y,minutes:e.minutes})},[e,n]),T=()=>!u||!f?null:d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"2xs",mb:"xs",py:"2xs",px:"xs",bgColor:"primary100",r:"sm",children:[d.jsx(Oe,{fontSize:"xs",color:"grey600",children:f}),d.jsx(Oe,{fontSize:"xs",fontWeight:"semibold",color:"primary",children:en(u,r)})]});return m&&m.length>0?d.jsxs(I,{display:"flex",flexDirection:"column",alignItems:"center",children:[T(),d.jsx(I,{display:"flex",flexDirection:"row",alignItems:"center",children:d.jsx(as,{items:m,selectedValue:x(),onSelect:v,size:l})})]}):d.jsxs(I,{display:"flex",flexDirection:"column",alignItems:"center",children:[T(),d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",children:[d.jsx(as,{items:_,selectedValue:k(),onSelect:M,size:l}),d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",px:"2xs",children:d.jsx(Oe,{fontSize:b.wheelFontSize,fontWeight:"semibold",color:g.colors.separatorColor,children:":"})}),d.jsx(as,{items:j,selectedValue:A(),onSelect:E,size:l}),r==="12h"&&d.jsxs(d.Fragment,{children:[d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",px:"2xs"}),d.jsx(as,{items:U3,selectedValue:$(),onSelect:C,size:l})]})]})]})};function Dl(e){return new Date(e.getFullYear(),e.getMonth(),1)}function J3(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Es(e,n){const r=new Date(e),s=r.getMonth()+n;r.setMonth(s);const l=(s%12+12)%12;return r.getMonth()!==l&&r.setDate(0),r}function gc(e,n){const r=new Date(e);return r.setDate(r.getDate()+n),r}function zr(e,n){return!e||!n?!1:e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()}function e5(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()}function t5(e){return zr(e,new Date)}function kh(e,n){const r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return r<s}function Ah(e,n){const r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return r>s}function n5(e,n){const r=Dl(e),l=(r.getDay()-n+7)%7;return gc(r,-l)}function r5(e,n){const r=n5(e,n),s=[];for(let l=0;l<42;l++)s.push(gc(r,l));return s}function i5(e,n,r="short"){const s=new Intl.DateTimeFormat(e,{weekday:r}),l=[],c=new Date(1970,0,4);for(let u=0;u<7;u++){const f=(n+u)%7,p=gc(c,f);l.push(s.format(p).toUpperCase())}return l}function jh(e,n){var r,s,l;return n?!!(n.minDate&&kh(e,n.minDate)||n.maxDate&&Ah(e,n.maxDate)||(r=n.disabledDaysOfWeek)!=null&&r.includes(e.getDay())||(s=n.disabledDates)!=null&&s.some(c=>zr(c,e))||(l=n.isDateDisabled)!=null&&l.call(n,e)):!1}function hf(e,n,r){if(!r)return!1;if(n==="prev"&&r.minDate){const s=Dl(e),l=Es(s,-1),c=J3(l);return kh(c,r.minDate)}if(n==="next"&&r.maxDate){const s=Dl(e),l=Es(s,1);return Ah(l,r.maxDate)}return!1}function pf(e,n){return new Intl.DateTimeFormat(n,{month:"long"}).format(e)}function ls(e){return e.getFullYear().toString()}function o5(e){const n=new Intl.DateTimeFormat(e,{month:"short"}),r=[];for(let s=0;s<12;s++){const l=new Date(2024,s,1);r.push(n.format(l))}return r}function bs(e){const n=Math.floor(e/12)*12,r=[];for(let s=0;s<12;s++)r.push(n+s);return r}function cs(e,n){const r=new Date(e);return r.setFullYear(r.getFullYear()+n),r}function s5(e,n){return e?new Intl.DateTimeFormat(n,{month:"short",day:"numeric",year:"numeric"}).format(e):""}function a5(e,n="24h"){if(!e)return"";const{hours:r,minutes:s}=e;if(n==="24h")return`${r.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`;const l=r>=12?"PM":"AM";return`${r%12||12}:${s.toString().padStart(2,"0")} ${l}`}function Ot(e,n,r,s,l="24h"){if(!e)return"";const c=e.getDate().toString().padStart(2,"0"),u=(e.getMonth()+1).toString().padStart(2,"0"),f=e.getFullYear(),p=`${c}/${u}/${f}`;if(s&&r){const g=a5(r,l);return`${p} ${g}`}return p}function us(e,n){if(!e||e.trim()==="")return null;const r=e.trim(),s=r.match(/^(.+?)\s+(\d{1,2}):(\d{2})$/);if(s){const[,u,f,p]=s,g=parseInt(f,10),b=parseInt(p,10);if(g>=0&&g<24&&b>=0&&b<60){const m=wl(u);if(m)return{date:m,time:{hours:g,minutes:b}}}}const l=r.match(/^(.+?)\s+(\d{1,2}):(\d{2})\s*(AM|PM|am|pm)$/i);if(l){const[,u,f,p,g]=l;let b=parseInt(f,10);const m=parseInt(p,10),x=g.toUpperCase()==="PM";if(x&&b!==12?b+=12:!x&&b===12&&(b=0),b>=0&&b<24&&m>=0&&m<60){const v=wl(u);if(v)return{date:v,time:{hours:b,minutes:m}}}}const c=wl(r);return c?{date:c,time:null}:null}function wl(e,n){const r=e.trim();if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)){const[l,c,u]=r.split("-").map(Number),f=new Date(l,c-1,u);if(gf(f,l,c-1,u))return f}const s=r.match(/^(\d{1,2})[/\-.](\d{1,2})[/\-.](\d{2,4})$/);if(s){const[,l,c,u]=s,f=parseInt(l,10),p=parseInt(c,10)-1;let g=parseInt(u,10);g<100&&(g+=g<50?2e3:1900);const b=new Date(g,p,f);if(gf(b,g,p,f))return b}return null}function gf(e,n,r,s){return e instanceof Date&&!isNaN(e.getTime())&&e.getFullYear()===n&&e.getMonth()===r&&e.getDate()===s}function l5(e){try{const n=new Date,l=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(n).find(c=>c.type==="timeZoneName");return(l==null?void 0:l.value)??""}catch{return""}}function c5(e){const n=e.split("/");if(n.length===1)return n[0].replace(/_/g," ");const r=n[0],s=n.slice(1).join(" - ").replace(/_/g," ");return`${r} - ${s}`}function u5(e){try{const n=new Date,r=new Date(n.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(n.toLocaleString("en-US",{timeZone:e})).getTime()-r.getTime())/6e4}catch{return 0}}function d5(){var e;try{const n=(e=Intl.supportedValuesOf)==null?void 0:e.call(Intl,"timeZone");return n?n.map(r=>{const s=l5(r),l=u5(r);return{value:r,label:`${c5(r)} (${s})`,offset:s,abbreviation:s,_offsetMinutes:l}}).sort((r,s)=>r._offsetMinutes-s._offsetMinutes).map(({_offsetMinutes:r,...s})=>s):[]}catch{return[]}}function f5(e,n,r,s){if(!r||!s||r===s)return{date:e,time:n};try{const l=e.getFullYear(),c=e.getMonth(),u=e.getDate(),f=new Date(Date.UTC(l,c,u,n.hours,n.minutes,0)),p=new Intl.DateTimeFormat("en-CA",{timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}),g=(F,Y)=>{var U;return parseInt(((U=F.find(K=>K.type===Y))==null?void 0:U.value)??"0",10)},b=p.formatToParts(f),m=g(b,"hour"),x=g(b,"minute"),v=n.hours*60+n.minutes,_=m*60+x,j=v-_,k=new Date(f.getTime()+j*60*1e3),$=new Intl.DateTimeFormat("en-CA",{timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(k),M=g($,"year"),E=g($,"month")-1,C=g($,"day"),T=g($,"hour"),L=g($,"minute");return{date:new Date(M,E,C),time:{hours:T,minutes:L}}}catch{return{date:e,time:n}}}function h5(e,n){if(!e.date||!e.time||!n)return e;const r=f5(e.date,e.time,e.timezone,n);return{date:r.date,time:r.time,timezone:n}}function p5(e,n){return n?e.map(r=>h5(r,n)):e}function g5(e){const n=new Map;for(const r of e)if(r.date){const s=`${r.date.getFullYear()}-${r.date.getMonth()}-${r.date.getDate()}`;n.has(s)||n.set(s,r.date)}return Array.from(n.values())}function Pl(e,n){if(!n)return[];const r=[];for(const s of e)s.date&&s.time&&zr(s.date,n)&&r.push(s.time);return r.sort((s,l)=>{const c=s.hours*60+s.minutes,u=l.hours*60+l.minutes;return c-u})}function Th(e,n){return e.some(r=>r.date&&zr(r.date,n))}function m5(e){const n=new Map;for(const r of e)if(r.time){const s=`${r.time.hours}:${r.time.minutes}`;n.has(s)||n.set(s,r.time)}return Array.from(n.values()).sort((r,s)=>{const l=r.hours*60+r.minutes,c=s.hours*60+s.minutes;return l-c})}function Rh(e,n){return{...n,isDateDisabled:r=>{var s;return(s=n==null?void 0:n.isDateDisabled)!=null&&s.call(n,r)?!0:!Th(e,r)}}}function mf(e){if(!e.date)return 0;const n=e.date,r=e.time??{hours:0,minutes:0};return new Date(n.getFullYear(),n.getMonth(),n.getDate(),r.hours,r.minutes).getTime()}function y5(e,n){if(!(e!=null&&e.date)||!(n!=null&&n.date))return null;const r=mf(e),s=mf(n);return r<s?-1:r>s?1:0}let _l=null;const b5=()=>(_l||(_l=d5()),_l);b5();const x5="en-US",v5=1,w5=pe.div`
|
|
534
|
+
display: flex;
|
|
535
|
+
align-items: center;
|
|
536
|
+
justify-content: center;
|
|
537
|
+
user-select: none;
|
|
538
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
539
|
+
|
|
540
|
+
${({theme:e,$isSelected:n,$isToday:r,$isDisabled:s,$isOutsideMonth:l,$isRangeMarker:c,$size:u,$fontSize:f})=>{const p=e.__hd__.text;let g="transparent",b=e.colors.grey900,m=p.fontWeights.medium,x="none";s||l?b=e.colors.grey400:n?(g=e.colors.primary,b=e.colors.white,m=p.fontWeights.semibold):c?(g=e.colors.primary100,b=e.colors.primary,m=p.fontWeights.semibold):r&&(x=`1px solid ${e.colors.primary}`);const v=s||l?"default":"pointer",_=s?.5:1;return`
|
|
541
|
+
width: ${u}px;
|
|
542
|
+
height: ${u}px;
|
|
543
|
+
border-radius: ${e.radii.sm}px;
|
|
544
|
+
background-color: ${g};
|
|
545
|
+
color: ${b};
|
|
546
|
+
cursor: ${v};
|
|
547
|
+
opacity: ${_};
|
|
548
|
+
font-weight: ${m};
|
|
549
|
+
font-size: ${f}px;
|
|
550
|
+
border: ${x};
|
|
551
|
+
|
|
552
|
+
&:hover {
|
|
553
|
+
${!n&&!s&&!l?`
|
|
554
|
+
background-color: ${e.colors.primary100};
|
|
555
|
+
`:""}
|
|
556
|
+
}
|
|
557
|
+
`}}
|
|
558
|
+
`,Mh=pe.div`
|
|
559
|
+
display: flex;
|
|
560
|
+
align-items: center;
|
|
561
|
+
justify-content: center;
|
|
562
|
+
width: 100%;
|
|
563
|
+
user-select: none;
|
|
564
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
565
|
+
|
|
566
|
+
${({theme:e,$isSelected:n,$isDisabled:r,$isCurrent:s,$height:l,$fontSize:c})=>{const u=e.__hd__.text;let f="transparent",p=e.colors.grey900,g=u.fontWeights.medium,b="none";r?p=e.colors.grey400:n?(f=e.colors.primary,p=e.colors.white,g=u.fontWeights.semibold):s&&(b=`1px solid ${e.colors.primary}`);const m=r?"default":"pointer",x=r?.4:1;return`
|
|
567
|
+
height: ${l}px;
|
|
568
|
+
border-radius: ${e.radii.sm}px;
|
|
569
|
+
background-color: ${f};
|
|
570
|
+
color: ${p};
|
|
571
|
+
cursor: ${m};
|
|
572
|
+
opacity: ${x};
|
|
573
|
+
font-weight: ${g};
|
|
574
|
+
font-size: ${c}px;
|
|
575
|
+
border: ${b};
|
|
576
|
+
|
|
577
|
+
&:hover {
|
|
578
|
+
${!n&&!r?`
|
|
579
|
+
background-color: ${e.colors.primary100};
|
|
580
|
+
`:""}
|
|
581
|
+
}
|
|
582
|
+
`}}
|
|
583
|
+
`,_5=pe.div`
|
|
584
|
+
display: flex;
|
|
585
|
+
flex-direction: row;
|
|
586
|
+
align-items: center;
|
|
587
|
+
overflow: hidden;
|
|
588
|
+
|
|
589
|
+
${({theme:e,$isFocused:n,$isDisabled:r,$error:s})=>{const l=e.__hd__.input;let c=e.colors[l.states.default.borderColor],u=l.states.default.boxShadow;s?(c=e.colors[l.states.error.borderColor],u=l.states.error.boxShadow):r?c=e.colors[l.states.disabled.borderColor]:n&&(c=e.colors[l.states.focused.borderColor],u=l.states.focused.boxShadow);const f=e.spaces[l.padding.vertical],p=e.spaces[l.padding.horizontal],g=e.radii[l.borderRadius],b=e.borderWidths[l.borderWidth];return`
|
|
590
|
+
padding: ${f}px ${p}px;
|
|
591
|
+
border-radius: ${g}px;
|
|
592
|
+
border: ${b}px solid ${c};
|
|
593
|
+
box-shadow: ${u};
|
|
594
|
+
background-color: ${r?e.colors[l.states.disabled.backgroundColor]:e.colors[l.states.default.backgroundColor]};
|
|
595
|
+
opacity: ${r?.7:1};
|
|
596
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
597
|
+
`}}
|
|
598
|
+
`,yf=pe.input`
|
|
599
|
+
flex: 1;
|
|
600
|
+
min-width: 0;
|
|
601
|
+
border: none;
|
|
602
|
+
background: transparent;
|
|
603
|
+
outline: none;
|
|
604
|
+
text-align: center;
|
|
605
|
+
font-size: ${({theme:e})=>`${e.__hd__.text.fontSizes[e.__hd__.input.fontSize||"medium"]}px`};
|
|
606
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.textColor||"grey900"]};
|
|
607
|
+
|
|
608
|
+
&::placeholder {
|
|
609
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.placeholderColor||"grey500"]};
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
&:disabled {
|
|
613
|
+
color: ${({theme:e})=>e.colors[e.__hd__.input.disabledTextColor||"grey500"]};
|
|
614
|
+
cursor: not-allowed;
|
|
615
|
+
}
|
|
616
|
+
`,S5=({date:e,currentMonth:n,selectedDate:r,rangeMarkerDate:s,disabled:l,dateConfig:c,sizeConfig:u,locale:f,onDateClick:p})=>{const g=Re(),b=!e5(e,n),m=zr(e,r),x=!m&&zr(e,s??null),v=t5(e),_=jh(e,c)||l,j=!_&&!b,k=()=>{j&&p(e)};return d.jsx(w5,{$isSelected:m,$isToday:v&&!m&&!x,$isDisabled:_||!!l,$isOutsideMonth:b,$isRangeMarker:x,$size:g.spaces[u.dateCellSize],$fontSize:g.__hd__.text.fontSizes[u.dateFontSize],onClick:k,role:"gridcell","aria-label":new Intl.DateTimeFormat(f,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e),"aria-selected":m,"aria-disabled":!j,children:e.getDate()})},C5=({currentMonth:e,selectedDate:n,onDateClick:r,dateConfig:s,weekStartDay:l,locale:c,size:u,disabled:f,rangeMarkerDate:p})=>{const g=i5(c,l,"short"),b=r5(e,l),m=Re(),x=m.__hd__.datepicker,v=x.sizes[u];return d.jsxs(d.Fragment,{children:[d.jsx(Kn,{container:!0,columns:7,spacing:v.cellGap,mb:"xs",children:g.map((_,j)=>d.jsx(Kn,{children:d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",height:m.spaces[v.dateCellSize],children:d.jsx(Oe,{fontSize:v.weekdayFontSize,fontWeight:"medium",color:x.colors.weekdayText,children:_})})},`weekday-${j}`))}),d.jsx(Kn,{container:!0,columns:7,spacing:v.cellGap,children:b.map((_,j)=>d.jsx(S5,{date:_,currentMonth:e,selectedDate:n,rangeMarkerDate:p,disabled:f,dateConfig:s,sizeConfig:v,locale:c,onDateClick:r},`date-${j}`))})]})},E5=pe.div`
|
|
617
|
+
&:hover > * > * {
|
|
618
|
+
color: ${({theme:e})=>e.colors.primary} !important;
|
|
619
|
+
}
|
|
620
|
+
`,Sl=({onClick:e,text:n,ariaLabel:r,fontSize:s,fontWeight:l,color:c})=>d.jsx(E5,{children:d.jsx(at,{onClick:e,cursor:"pointer","aria-label":r,children:d.jsx(Oe,{fontSize:s,fontWeight:l,color:c,children:n})})}),$5=On`
|
|
621
|
+
from {
|
|
622
|
+
transform: translateX(-100%);
|
|
623
|
+
opacity: 0;
|
|
624
|
+
}
|
|
625
|
+
to {
|
|
626
|
+
transform: translateX(0);
|
|
627
|
+
opacity: 1;
|
|
628
|
+
}
|
|
629
|
+
`,k5=On`
|
|
464
630
|
from {
|
|
631
|
+
transform: translateX(100%);
|
|
465
632
|
opacity: 0;
|
|
466
633
|
}
|
|
467
634
|
to {
|
|
635
|
+
transform: translateX(0);
|
|
468
636
|
opacity: 1;
|
|
469
637
|
}
|
|
470
|
-
`,
|
|
638
|
+
`,A5=pe(I)`
|
|
639
|
+
${({$direction:e,$duration:n,$easing:r})=>e==="prev"?Ct`animation: ${$5} ${n}ms ${r};`:e==="next"?Ct`animation: ${k5} ${n}ms ${r};`:""}
|
|
640
|
+
will-change: transform, opacity;
|
|
641
|
+
`,j5=({currentMonth:e,onPrevMonth:n,onNextMonth:r,locale:s,size:l,disabled:c,dateConfig:u,viewMode:f,onMonthClick:p,onYearClick:g})=>{const b=Re(),m=b.__hd__.datepicker,x=m.sizes[l],[v,_]=a.useState(null),[j,k]=a.useState(0),A=()=>{_("prev"),k(T=>T+1),n()},$=()=>{_("next"),k(T=>T+1),r()},M=c||(f==="days"?hf(e,"prev",u):f==="months"?u!=null&&u.minDate?e.getFullYear()-1<u.minDate.getFullYear():!1:f==="years"&&u!=null&&u.minDate?bs(e.getFullYear())[0]-12<u.minDate.getFullYear():!1),E=c||(f==="days"?hf(e,"next",u):f==="months"?u!=null&&u.maxDate?e.getFullYear()+1>u.maxDate.getFullYear():!1:f==="years"&&u!=null&&u.maxDate?bs(e.getFullYear())[11]+1>u.maxDate.getFullYear():!1),C=()=>{if(f==="days")return d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",children:[d.jsx(Sl,{onClick:p,text:pf(e,s),ariaLabel:`Select month, currently ${pf(e,s)}`,fontSize:x.headerFontSize,fontWeight:x.headerFontWeight,color:"grey900"}),d.jsx(Sl,{onClick:g,text:ls(e),ariaLabel:`Select year, currently ${ls(e)}`,fontSize:x.headerFontSize,fontWeight:x.headerFontWeight,color:"grey900"})]});if(f==="months")return d.jsx(Sl,{onClick:g,text:ls(e),ariaLabel:`Select year, currently ${ls(e)}`,fontSize:x.headerFontSize,fontWeight:x.headerFontWeight,color:"grey900"});if(f==="years"){const T=bs(e.getFullYear());return d.jsxs(Oe,{as:"span",fontSize:x.headerFontSize,fontWeight:x.headerFontWeight,color:m.colors.headerText,children:[T[0]," - ",T[11]]})}return null};return d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:b.spaces[x.headerHeight],children:[d.jsx(ot,{onClick:M?void 0:A,variant:"text",size:l,color:"grey900",icon:Qi,disabled:M,"aria-label":f==="days"?"Previous month":f==="months"?"Previous year":"Previous decade"}),d.jsx(A5,{$direction:v,$duration:m.animation.duration,$easing:m.animation.easing,display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",onAnimationEnd:()=>_(null),children:C()},j),d.jsx(ot,{onClick:E?void 0:$,variant:"text",size:l,color:"grey900",icon:Lr,disabled:E,"aria-label":f==="days"?"Next month":f==="months"?"Next year":"Next decade"})]})},T5=({currentYear:e,selectedMonth:n,selectedYear:r,onSelect:s,locale:l,size:c,dateConfig:u,disabled:f})=>{const p=o5(l),g=k=>{if(f)return!0;if(!u)return!1;const A=new Date(e,k,1),$=new Date(e,k+1,0);return!!(u.minDate&&$<u.minDate||u.maxDate&&A>u.maxDate)},b=k=>n===k&&r===e,m=k=>{const A=new Date;return e===A.getFullYear()&&k===A.getMonth()},x=Re(),v=x.__hd__.datepicker,_=x.__hd__.text,j=v.sizes[c];return d.jsx(I,{display:"grid",gap:j.cellGap,width:j.viewWidth,minHeight:j.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:p.map((k,A)=>{const $=b(A),M=g(A),E=m(A)&&!$;return d.jsx(Mh,{$isSelected:$,$isDisabled:M,$isCurrent:E,$height:x.spaces[j.dateCellSize],$fontSize:_.fontSizes[j.dateFontSize],onClick:M?void 0:()=>s(A),role:"option","aria-label":`Select ${k}`,"aria-selected":$,"aria-disabled":M,children:k},A)})})},R5=({currentYear:e,selectedYear:n,onSelect:r,size:s,dateConfig:l,disabled:c})=>{const u=Re(),f=u.__hd__.datepicker,p=u.__hd__.text,g=f.sizes[s],b=bs(e),m=new Date().getFullYear(),x=v=>{if(c)return!0;if(!l)return!1;const _=new Date(v,0,1),j=new Date(v,11,31);return!!(l.minDate&&j<l.minDate||l.maxDate&&_>l.maxDate)};return d.jsx(I,{display:"grid",gap:g.cellGap,width:g.viewWidth,minHeight:g.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:b.map(v=>{const _=n===v,j=x(v),k=v===m&&!_;return d.jsx(Mh,{$isSelected:_,$isDisabled:j,$isCurrent:k,$height:u.spaces[g.dateCellSize],$fontSize:p.fontSizes[g.dateFontSize],onClick:j?void 0:()=>r(v),role:"option","aria-label":`Select ${v}`,"aria-selected":_,"aria-disabled":j,children:v},v)})})},bf=({currentMonth:e,selectedDate:n,onDateSelect:r,onMonthChange:s,dateConfig:l,weekStartDay:c,locale:u,size:f,disabled:p,rangeMarkerDate:g})=>{const[b,m]=a.useState("days"),x=a.useCallback(()=>{b==="days"?s(Es(e,-1)):b==="months"?s(cs(e,-1)):b==="years"&&s(cs(e,-12))},[e,s,b]),v=a.useCallback(()=>{b==="days"?s(Es(e,1)):b==="months"?s(cs(e,1)):b==="years"&&s(cs(e,12))},[e,s,b]),_=a.useCallback(()=>{m("months")},[]),j=a.useCallback(()=>{m("years")},[]),k=a.useCallback(F=>{const Y=new Date(e.getFullYear(),F,1);s(Y),m("days")},[e,s]),A=a.useCallback(F=>{const Y=new Date(F,e.getMonth(),1);s(Y),m("months")},[e,s]),$=a.useCallback(()=>{const F=new Date;s(F),r(F)},[s,r]),M=a.useMemo(()=>p||jh(new Date,l),[l,p]),E=()=>b==="months"?d.jsx(T5,{currentYear:e.getFullYear(),selectedMonth:(n==null?void 0:n.getMonth())??null,selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:k,locale:u,size:f,dateConfig:l,disabled:p}):b==="years"?d.jsx(R5,{currentYear:e.getFullYear(),selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:A,size:f,dateConfig:l,disabled:p}):d.jsxs(I,{width:L.viewWidth,minHeight:L.viewHeight,children:[d.jsx(C5,{currentMonth:e,selectedDate:n,onDateClick:r,dateConfig:l,weekStartDay:c,locale:u,size:f,disabled:p,rangeMarkerDate:g}),d.jsx(I,{display:"flex",justifyContent:"center",pt:"md",bt:"thin",borderTopColor:"grey200",children:d.jsx(ot,{variant:"text",color:"primary",size:f,text:"Today",disabled:M,onClick:$})})]}),T=Re().__hd__.datepicker,L=T.sizes[f];return d.jsxs(I,{display:"flex",flexDirection:"column",gap:"md",minWidth:T.calendar.panelMinWidth,children:[d.jsx(j5,{currentMonth:e,onPrevMonth:x,onNextMonth:v,locale:u,size:f,disabled:p,dateConfig:l,viewMode:b,onMonthClick:_,onYearClick:j}),E()]})},Wl=a.forwardRef(({value:e,onChange:n,onFocus:r,onBlur:s,onEnterPress:l,onClear:c,placeholder:u="Select a date",label:f,helperText:p,error:g,disabled:b,hasValue:m},x)=>{const v=a.useRef(null);a.useEffect(()=>{typeof x=="function"?x(v.current):x&&(x.current=v.current)},[x]);const _=a.useCallback($=>{var M;$.key==="Enter"&&(l==null||l(),(M=v.current)==null||M.blur())},[l]),j=a.useCallback($=>{n($)},[n]),k=a.useCallback(()=>{r()},[r]),A=a.useCallback(()=>{c==null||c()},[c]);return d.jsx(In,{ref:v,value:e,onChange:j,onBlur:s,onKeyDown:_,onFocus:k,placeholder:u,disabled:b,label:f,helperText:p,error:g,rightIcon:m?void 0:Ql,clearable:m,onClear:A})});Wl.displayName="DatePickerInput";const Cl=({isOpen:e,anchorRef:n,onClose:r,children:s,size:l,isFixedPosition:c=!1})=>{const u=Re(),f=u.__hd__.datepicker,p=a.useRef(null),g=u.spaces[f.popup.offset];ac({anchorRef:n,popupRef:p,offsetValue:g,isOpen:e,useFixedPosition:c});const b=a.useCallback(v=>{v.target===v.currentTarget&&r()},[r]),m=a.useCallback(v=>{v.preventDefault()},[]);if(a.useEffect(()=>{if(!e)return;const v=_=>{(_.key==="Escape"||_.key==="Tab")&&r()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,r]),!e||typeof document>"u")return null;const x=d.jsxs(d.Fragment,{children:[d.jsx(I,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:b}),d.jsx(I,{ref:p,position:"absolute",zIndex:f.popup.zIndex,role:"dialog","aria-modal":"true",onMouseDown:m,children:s})]});return c?Ni.createPortal(x,document.body):x},Ih=a.forwardRef(({startValue:e,endValue:n,onStartChange:r,onEndChange:s,onStartFocus:l,onEndFocus:c,onStartBlur:u,onEndBlur:f,onStartEnterPress:p,onEndEnterPress:g,onClear:b,hasValue:m,disabled:x,error:v,startPlaceholder:_="Start date",endPlaceholder:j="End date"},k)=>{const A=a.useRef(null),$=a.useRef(null),[M,E]=a.useState(!1),C=Re(),T=C.__hd__.input,L=xt(C,T.iconSize),F=x?T.disabledTextColor:T.iconColor;a.useImperativeHandle(k,()=>({focusStart:()=>{var N;return(N=A.current)==null?void 0:N.focus()},focusEnd:()=>{var N;return(N=$.current)==null?void 0:N.focus()},blurStart:()=>{var N;return(N=A.current)==null?void 0:N.blur()},blurEnd:()=>{var N;return(N=$.current)==null?void 0:N.blur()}}));const Y=a.useCallback(()=>{E(!0),l()},[l]),U=a.useCallback(()=>{E(!0),c()},[c]),K=a.useCallback(()=>{E(!1),u==null||u()},[u]),O=a.useCallback(()=>{E(!1),f==null||f()},[f]),W=a.useCallback(N=>{var ne;N.key==="Enter"&&(p==null||p(),(ne=A.current)==null||ne.blur())},[p]),B=a.useCallback(N=>{var ne;N.key==="Enter"&&(g==null||g(),(ne=$.current)==null||ne.blur())},[g]),he=a.useCallback(N=>{N.stopPropagation(),b==null||b()},[b]);return d.jsxs(_5,{$isFocused:M,$isDisabled:!!x,$error:!!v,children:[d.jsx(yf,{ref:A,value:e,onChange:N=>r(N.target.value),onFocus:Y,onBlur:K,onKeyDown:W,disabled:x,placeholder:_}),d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:d.jsx(yt,{type:"icon",art:Xl,size:16,color:"grey400"})}),d.jsx(yf,{ref:$,value:n,onChange:N=>s(N.target.value),onFocus:U,onBlur:O,onKeyDown:B,disabled:x,placeholder:j}),d.jsx(I,{ml:"xs",pl:"xs",children:m?d.jsx(at,{onClick:he,children:d.jsx(I,{ml:T.iconSpacing,children:d.jsx(yt,{type:"icon",art:Rn,size:L,color:F})})}):d.jsx(I,{ml:T.iconSpacing,children:d.jsx(yt,{type:"icon",art:Ql,size:L,color:F})})})]})});Ih.displayName="DatePickerRangeInput";function El({value:e,onChange:n,onClose:r,open:s,onOpenChange:l,defaultMonth:c,defaultTimezone:u,disabled:f,showTime:p}){var ie,xe,we;const[g,b]=a.useState(!1),m=s??g,[x,v]=a.useState((e==null?void 0:e.date)??null),[_,j]=a.useState((e==null?void 0:e.time)??null),[k,A]=a.useState((e==null?void 0:e.timezone)??u??null),[$,M]=a.useState((e==null?void 0:e.date)??c??new Date),E=a.useRef(null),C=a.useRef(null),T=a.useRef(!1),L=a.useRef(x),F=a.useRef(_),Y=a.useRef(k);L.current=x,F.current=_,Y.current=k;const U=a.useRef(e);U.current=e;const K=((ie=e==null?void 0:e.date)==null?void 0:ie.getTime())??null,O=((xe=e==null?void 0:e.time)==null?void 0:xe.hours)??null,W=((we=e==null?void 0:e.time)==null?void 0:we.minutes)??null,B=(e==null?void 0:e.timezone)??null;a.useEffect(()=>{if(T.current){T.current=!1;return}const te=U.current;te&&(te.date!==void 0&&(v(te.date),te.date&&M(te.date)),te.time!==void 0&&j(te.time),te.timezone&&A(te.timezone))},[K,O,W,B]);const he=a.useCallback(()=>{if(!f){if(!x){const te=new Date;te.setHours(0,0,0,0),v(te),M(te)}if(p&&!_){const te=new Date;j({hours:te.getHours(),minutes:te.getMinutes()})}b(!0),l==null||l(!0)}},[f,l,x,_,p]),N=a.useCallback(()=>{b(!1),l==null||l(!1);const te=L.current,Q=F.current,ye=Y.current;if(te){const G={date:te,time:p?Q:void 0,timezone:ye};n==null||n(G)}r==null||r()},[l,r,n,p]),ne=a.useCallback(()=>{f||(m?N():he())},[f,m,N,he]),oe=a.useCallback(te=>{T.current=!0,v(te),te&&M(te)},[]),Se=a.useCallback(te=>{T.current=!0,j(te)},[]),Te=a.useCallback((te,Q)=>{T.current=!0,v(te);const ye={date:te,time:p?Q||_:void 0,timezone:k};n==null||n(ye)},[k,_,p,n]),ke=a.useCallback(te=>{T.current=!0,j(te);const Q={date:x,time:te,timezone:k};n==null||n(Q)},[x,k,n]),V=a.useCallback(te=>{A(te);const Q={date:x,time:p?_:void 0,timezone:te};n==null||n(Q)},[x,_,p,n]),de=a.useCallback(te=>{M(te)},[]),Ce=a.useCallback(()=>{v((e==null?void 0:e.date)??null),j((e==null?void 0:e.time)??null),A((e==null?void 0:e.timezone)??u??null),M((e==null?void 0:e.date)??c??new Date)},[e,u,c]),Ee=a.useCallback(()=>({date:x,time:p?_:void 0,timezone:k}),[x,_,k,p]),H=a.useCallback(()=>{var te;(te=C.current)==null||te.focus()},[]),be=a.useCallback(te=>{b(te),te||(l==null||l(!1),r==null||r())},[l,r]);return{isOpen:m,selectedDate:x,selectedTime:_,selectedTimezone:k,currentMonth:$,containerRef:E,inputRef:C,handleOpen:he,handleClose:N,setIsOpen:be,handleToggle:ne,handleDateSelect:Te,setSelectedDatePreview:oe,handleTimeSelect:ke,setSelectedTimePreview:Se,handleTimezoneChange:V,handleMonthChange:de,reset:Ce,getValue:Ee,focus:H}}const Ds=a.forwardRef(({value:e,onChange:n,onClose:r,range:s=!1,startValue:l,endValue:c,onStartChange:u,onEndChange:f,mode:p="inline",showInlineInput:g=!1,open:b,onOpenChange:m,dateConfig:x,disablePastDates:v=!1,defaultMonth:_,weekStartDay:j=v5,locale:k=x5,showTime:A=!1,timeFormat:$="24h",minuteStep:M=1,timeSlots:E,slots:C,size:T,variant:L,label:F,helperText:Y,error:U,disabled:K=!1,loading:O=!1,isFixedPosition:W=!1,...B},he)=>{var so,ao,lo,yr,co,br,uo,fo,ho;const ne=Re().__hd__.datepicker,oe=T??ne.defaultSize,Se=L??ne.defaultVariant,Te=Intl.DateTimeFormat().resolvedOptions().timeZone,ke=El({value:e,onChange:n,onClose:r,open:b,onOpenChange:m,defaultMonth:_,defaultTimezone:Te,disabled:K,showTime:A}),V=El({value:l,onChange:u,onClose:r,defaultMonth:_,defaultTimezone:Te,disabled:K,showTime:A}),de=El({value:c,onChange:f,onClose:r,defaultMonth:_,defaultTimezone:Te,disabled:K,showTime:A}),{isOpen:Ce,selectedDate:Ee,selectedTime:H,currentMonth:be,containerRef:ie,handleOpen:xe,handleClose:we,handleToggle:te,handleDateSelect:Q,handleTimeSelect:ye,setSelectedDatePreview:G,setSelectedTimePreview:ce,handleMonthChange:_e,reset:ze,getValue:Be,focus:Qe}=ke,me=a.useMemo(()=>!C||C.length===0?C:p5(C,Te),[C,Te]),Ae=a.useMemo(()=>{let ge=x;if(v){const ct=new Date;ct.setHours(0,0,0,0),ge={...ge,minDate:ge!=null&&ge.minDate&&ge.minDate>ct?ge.minDate:ct}}return me&&me.length>0&&(ge=Rh(me,ge)),ge},[v,x,me]),Fe=a.useRef(null),le=a.useRef(null),je=a.useRef(null),Me=a.useRef(null),qe=a.useRef(Q),Je=a.useRef(_e),pt=a.useRef(ce),wt=a.useRef(null);je.current=Ee,Me.current=H,qe.current=Q,Je.current=_e,pt.current=ce;const Sn=a.useRef(!1),[Gt,Ft]=a.useState(()=>Ot(Ee,k,H,A,$)),nt=((so=e==null?void 0:e.date)==null?void 0:so.getTime())??null,nn=((ao=e==null?void 0:e.time)==null?void 0:ao.hours)??null,Qn=((lo=e==null?void 0:e.time)==null?void 0:lo.minutes)??null,pr=a.useRef(e);pr.current=e,a.useEffect(()=>{if(Sn.current)return;if(wt.current==="input"){wt.current=null;return}const ge=pr.current,ct=(ge==null?void 0:ge.date)??null,Dt=(ge==null?void 0:ge.time)??null,rn=Ot(ct,k,Dt,A,$);Ft(rn),wt.current="calendar"},[nt,nn,Qn,k,A,$]),a.useEffect(()=>{if(wt.current==="calendar"){wt.current=null;return}const ge=us(Gt);if(ge&&((!je.current||!zr(ge.date,je.current))&&(qe.current(ge.date),Je.current(ge.date)),A&&ge.time)){const Dt=Me.current;(!Dt||Dt.hours!==ge.time.hours||Dt.minutes!==ge.time.minutes)&&pt.current(ge.time)}},[Gt,k,A]);const Jn=a.useCallback(ge=>{Sn.current=!0,wt.current="input",Ft(ge)},[]),Dr=a.useCallback(()=>{if(Sn.current=!1,wt.current=null,Ce)return;if(!Gt.trim()){Q(null),Ft("");return}const ge=us(Gt);ge?(Q(ge.date),_e(ge.date),ge.time&&A&&ce(ge.time),Ft(Ot(ge.date,k,ge.time??H,A,$))):Ft(Ee?Ot(Ee,k,H,A,$):"")},[Gt,k,Ee,H,Ce,A,$,Q,_e,ce]),Ps=a.useCallback(()=>{te()},[te]),to=a.useCallback(()=>{G(null),Ft(""),n==null||n({date:null,timezone:Te})},[G,n,Te]),no=a.useCallback(ge=>{let ct=H;if(ge&&me&&me.length>0){const Dt=Pl(me,ge);Dt.length>0&&(H&&Dt.some(po=>po.hours===H.hours&&po.minutes===H.minutes)||(ct=Dt[0],ce(ct)))}p==="inline"?Q(ge,ct):G(ge),Ft(ge?Ot(ge,k,ct,A,$):"")},[G,ce,Q,p,k,H,A,$,me]);a.useImperativeHandle(he,()=>({open:xe,close:we,reset:ze,getValue:Be,focus:Qe}),[xe,we,ze,Be,Qe]);const hi=a.useMemo(()=>me&&me.length>0?Ee?Pl(me,Ee):void 0:E,[me,Ee,E]),Ws=A&&(!me||me.length===0||Ee!==null),Hs=a.useCallback(ge=>{p==="inline"?ye(ge):ce(ge),Ee&&Ft(Ot(Ee,k,ge,A,$))},[ce,ye,p,Ee,k,A,$]),ro=()=>d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[oe].panelGap,children:[d.jsx(bf,{currentMonth:be,selectedDate:Ee,onDateSelect:no,onMonthChange:_e,dateConfig:Ae,weekStartDay:j,locale:k,size:oe,disabled:K||O}),Ws&&d.jsx(Zi,{value:H,onChange:Hs,format:$,minuteStep:M,size:oe,slots:hi})]}),Lt=ne.sizes[oe],gn=ne.variants[Se],Bs=a.useRef(null),pi=a.useRef(null),[gr,Cn]=a.useState(()=>Ot((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,A,$)),[mr,En]=a.useState(()=>Ot((c==null?void 0:c.date)??null,k,(c==null?void 0:c.time)??null,A,$)),io=a.useRef(l);io.current=l;const oo=a.useRef(c);oo.current=c;const Vs=((yr=l==null?void 0:l.date)==null?void 0:yr.getTime())??null,Zs=((co=l==null?void 0:l.time)==null?void 0:co.hours)??null,Ns=((br=l==null?void 0:l.time)==null?void 0:br.minutes)??null,Us=((uo=c==null?void 0:c.date)==null?void 0:uo.getTime())??null,Gs=((fo=c==null?void 0:c.time)==null?void 0:fo.hours)??null,qs=((ho=c==null?void 0:c.time)==null?void 0:ho.minutes)??null;a.useEffect(()=>{if(!s)return;const ge=io.current;Cn(Ot((ge==null?void 0:ge.date)??null,k,(ge==null?void 0:ge.time)??null,A,$))},[s,Vs,Zs,Ns,k,A,$]),a.useEffect(()=>{if(!s)return;const ge=oo.current;En(Ot((ge==null?void 0:ge.date)??null,k,(ge==null?void 0:ge.time)??null,A,$))},[s,Us,Gs,qs,k,A,$]);const gi=(ge,ct,Dt)=>d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[oe].panelGap,children:[d.jsx(bf,{currentMonth:ge.currentMonth,selectedDate:ge.selectedDate,onDateSelect:rn=>{ge.setSelectedDatePreview(rn),ct(rn?Ot(rn,k,ge.selectedTime,A,$):"")},onMonthChange:ge.handleMonthChange,dateConfig:Ae,weekStartDay:j,locale:k,size:oe,disabled:K||O,rangeMarkerDate:Dt}),A&&ge.selectedDate&&d.jsx(Zi,{value:ge.selectedTime,onChange:rn=>{ge.setSelectedTimePreview(rn),ge.selectedDate&&ct(Ot(ge.selectedDate,k,rn,A,$))},format:$,minuteStep:M,size:oe,slots:hi})]}),mi=a.useRef(!1);a.useEffect(()=>{if(!s||V.isOpen||de.isOpen)return;if(mi.current){mi.current=!1;return}if(y5(l,c)===1){mi.current=!0,u==null||u(c),f==null||f(l);const ct=gr;Cn(mr),En(ct)}},[s,l,c,V.isOpen,de.isOpen,u,f,gr,mr]);const Ks=a.useCallback(()=>{const ge=gr.trim();if(!ge){l!=null&&l.date&&V.handleDateSelect(null),V.setIsOpen(!1);return}const ct=us(ge);ct?(V.handleDateSelect(ct.date),V.setIsOpen(!1)):(Cn(Ot(V.selectedDate,k,V.selectedTime,A,$)),V.handleClose())},[gr,l==null?void 0:l.date,V,k,A,$]),Ys=a.useCallback(()=>{const ge=mr.trim();if(!ge){c!=null&&c.date&&de.handleDateSelect(null),de.setIsOpen(!1);return}const ct=us(ge);ct?(de.handleDateSelect(ct.date),de.setIsOpen(!1)):(En(Ot(de.selectedDate,k,de.selectedTime,A,$)),de.handleClose())},[mr,c==null?void 0:c.date,de,k,A,$]);return s?d.jsxs(I,{position:"relative",...B,children:[F&&d.jsx(I,{mb:"xs",children:d.jsx(Oe,{fontWeight:"medium",children:F})}),d.jsx(I,{ref:pi,children:d.jsx(Ih,{ref:Bs,startValue:gr,endValue:mr,onStartChange:Cn,onEndChange:En,onStartFocus:()=>{V.handleOpen(),de.setIsOpen(!1)},onEndFocus:()=>{de.handleOpen(),V.setIsOpen(!1)},onStartBlur:()=>{},onEndBlur:()=>{},onClear:()=>{V.handleDateSelect(null),de.handleDateSelect(null),Cn(""),En("")},hasValue:!!(l!=null&&l.date)||!!(c!=null&&c.date),disabled:K||O,error:!!U})}),(U||Y)&&d.jsx(I,{mt:"xs",children:d.jsx(Oe,{fontSize:"xs",color:U?"danger":"grey600",children:U||Y})}),d.jsx(Cl,{isOpen:V.isOpen,anchorRef:pi,onClose:Ks,size:oe,isFixedPosition:W,children:d.jsx(I,{display:"flex",flexDirection:"column",p:Lt.containerPadding,gap:Lt.panelGap,bgColor:gn.container.backgroundColor,b:Lt.borderWidth,borderColor:gn.container.borderColor,r:ne.borderRadii.container,children:gi(V,Cn,c==null?void 0:c.date)})}),d.jsx(Cl,{isOpen:de.isOpen,anchorRef:pi,onClose:Ys,size:oe,isFixedPosition:W,children:d.jsx(I,{display:"flex",flexDirection:"column",p:Lt.containerPadding,gap:Lt.panelGap,bgColor:gn.container.backgroundColor,b:Lt.borderWidth,borderColor:gn.container.borderColor,r:ne.borderRadii.container,children:gi(de,En,l==null?void 0:l.date)})})]}):p==="inline"?d.jsx(I,{ref:ie,position:"relative",...B,children:d.jsxs(I,{display:"flex",flexDirection:"column",p:Lt.containerPadding,gap:Lt.panelGap,bgColor:gn.container.backgroundColor,b:Lt.borderWidth,borderColor:gn.container.borderColor,r:ne.borderRadii.container,children:[g&&d.jsx(Wl,{ref:Fe,value:Gt,onChange:Jn,onFocus:()=>{},onBlur:Dr,onEnterPress:Dr,disabled:K||O,hasValue:!!Ee,onClear:to}),ro()]})}):d.jsxs(I,{ref:ie,position:"relative",...B,children:[d.jsx(I,{ref:le,position:"relative",children:d.jsx(Wl,{ref:Fe,value:Gt,onChange:Jn,onFocus:Ps,onBlur:Dr,onEnterPress:Dr,onClear:to,label:F,helperText:Y,error:U,disabled:K||O,hasValue:!!Ee})}),d.jsx(Cl,{isOpen:Ce,anchorRef:le,onClose:we,size:oe,isFixedPosition:W,children:d.jsx(I,{display:"flex",flexDirection:"column",p:Lt.containerPadding,gap:Lt.panelGap,bgColor:gn.container.backgroundColor,b:Lt.borderWidth,borderColor:gn.container.borderColor,r:ne.borderRadii.container,children:ro()})})]})});Ds.displayName="DatePicker";const Oh=({options:e,groupOptions:n,value:r,onChange:s,placeholder:l="Type to search...",max:c,limit:u=1/0})=>{const[f,p]=a.useState(""),[g,b]=a.useState(!1),[m,x]=a.useState(0),[v,_]=a.useState(!1),[j,k]=a.useState(r.length),[A,$]=a.useState({top:0,left:0,width:0}),[M,E]=a.useState({top:0,left:0,width:0}),C=a.useRef(null),T=a.useRef(null),L=a.useRef(null),F=a.useRef(null),Y=a.useRef(null),U=a.useRef(null),K=a.useRef(null),O=a.useMemo(()=>new Set(r.map(String)),[r]),W=a.useMemo(()=>{const H=f.trim().toLowerCase(),be=e;return H?be.filter(ie=>ie.label.toLowerCase().includes(H)||ie.value.toLowerCase().includes(H)).slice(0,u):be.slice(0,u)},[e,f,u]),B=a.useMemo(()=>{const H=f.trim().toLowerCase(),be=n||[];return H?be.filter(ie=>ie.label.toLowerCase().includes(H)).slice(0,u):be.slice(0,u)},[n,f,u]),he=a.useMemo(()=>(n||[]).filter(H=>H.values.every(be=>O.has(be))),[n,O]),N=a.useMemo(()=>{const H=new Set;for(const be of he)for(const ie of be.values)H.add(ie);return H},[he]),ne=a.useMemo(()=>r.filter(H=>!N.has(H)),[r,N]),oe=a.useMemo(()=>{const H=[];for(const be of he)H.push({kind:"group",id:`group:${be.label}`,label:be.label,values:be.values});for(const be of ne){const ie=e.find(we=>we.value===be),xe=(ie==null?void 0:ie.label)??be;H.push({kind:"value",id:`value:${be}`,label:xe,value:be})}return H},[he,ne,e]);a.useEffect(()=>{if(typeof document>"u")return;const H=be=>{var xe;if(!C.current)return;const ie=be.target;C.current.contains(ie)||U.current&&U.current.contains(ie)||(xe=K.current)!=null&&xe.contains(ie)||(b(!1),_(!1))};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[]),a.useEffect(()=>{if(g&&T.current){const H=T.current.getBoundingClientRect();$({top:H.bottom,left:H.left,width:H.width})}},[g]),a.useEffect(()=>{if(v&&F.current){const H=F.current.getBoundingClientRect();E({top:H.bottom,left:H.left,width:H.width})}},[v]);const Se=H=>{var be,ie,xe,we;if(!g&&(H.key==="ArrowDown"||H.key==="Enter")){b(!0);return}if(g)if(H.key==="ArrowDown")H.preventDefault(),x(te=>Math.min(te+1,Math.max(W.length-1,0))),(ie=(be=L.current)==null?void 0:be.children[m+1])==null||ie.scrollIntoView({block:"nearest"});else if(H.key==="ArrowUp")H.preventDefault(),x(te=>Math.max(te-1,0)),(we=(xe=L.current)==null?void 0:xe.children[Math.max(m-1,0)])==null||we.scrollIntoView({block:"nearest"});else if(H.key==="Enter"){H.preventDefault();const te=W[m];te&&Te(te)}else H.key==="Escape"&&b(!1)},Te=a.useCallback(H=>{if(O.has(H.value)){s(r.filter(be=>be!==H.value)),x(0);return}typeof c=="number"&&r.length>=c||(s([...r,H.value]),x(0))},[O,s,r,c]),ke=a.useCallback(H=>{const be=H.values.filter(we=>!O.has(we));if(be.length===0){b(!1);return}let ie=be;if(typeof c=="number"){const we=Math.max(c-r.length,0);if(we<=0)return;ie=be.slice(0,we)}const xe=[...r,...ie];s(xe),x(0)},[O,s,r,c]),V=a.useCallback(H=>{O.has(H)&&(s(r.filter(be=>be!==H)),r.length<=1&&_(!1))},[O,s,r]),de=a.useCallback(H=>{const be=new Set(H),ie=r.filter(xe=>!be.has(xe));s(ie),ie.length===0&&_(!1)},[s,r]),Ce=a.useCallback(()=>{if(typeof window>"u")return;const H=F.current,be=Y.current;if(!H||!be)return;const ie=H.clientWidth;if(ie<=0){k(0);return}const xe=window.getComputedStyle(H),we=parseFloat(xe.getPropertyValue("column-gap")||xe.getPropertyValue("gap")||"0")||0,Q=Array.from(be.querySelectorAll('span[data-chip="1"]')).map(ce=>ce.offsetWidth);let ye=0,G=0;for(let ce=0;ce<Q.length;ce+=1){const _e=Q[ce]+(ce>0?we:0);if(ye+_e>ie)break;ye+=_e,G=ce+1}if(G<Q.length){const ce=Q.length-G,ze=30+String(ce).length*10;for(;G>0&&ye+(G>0?we:0)+ze>ie;){const Be=Q[G-1];ye-=Be+(G-1>0?we:0),G-=1}}k(G)},[]);a.useEffect(()=>{if(typeof window>"u")return;k(oe.length);const H=window.setTimeout(Ce,0);return()=>window.clearTimeout(H)},[oe,Ce]),a.useEffect(()=>{if(typeof window>"u"||typeof ResizeObserver>"u"||!F.current)return;const H=new ResizeObserver(()=>Ce());return H.observe(F.current),()=>H.disconnect()},[Ce]),a.useEffect(()=>{r.length===0&&_(!1)},[r.length]);const Ee=(H,be)=>{const ie=H.kind==="group"?`${H.label} (${H.values.length})`:H.label;return d.jsx(ot,{text:ie,rightIcon:Rn,variant:"outlined",size:"sm",onClick:xe=>{xe.stopPropagation(),be()},title:ie,"aria-label":`Remove ${ie}`,overflow:"hidden",textOverflow:"ellipsis",maxWidth:"140px"},H.id)};return d.jsxs(I,{ref:C,position:"relative",fw:!0,children:[d.jsxs(I,{display:"flex",alignItems:"center",gap:"sm",fw:!0,children:[d.jsx(I,{ref:T,flex:1,minWidth:"0",position:"relative",children:d.jsx(In,{value:f,onChange:H=>{p(H),b(!0),x(0)},onFocus:()=>b(!0),onKeyDown:Se,placeholder:l})}),g&&(W.length>0||B.length>0)&&typeof document<"u"&&Ni.createPortal(d.jsxs(I,{ref:U,position:"fixed",bgColor:"white",borderRadius:"md",borderWidth:"thin",borderColor:"grey300",maxHeight:"240px",overflowY:"auto",zIndex:1001,top:A.top+4,left:A.left,width:A.width,children:[B.length>0&&d.jsx(I,{as:"ul",role:"listbox","aria-label":"Groups",py:"xs",px:"none",m:"none",children:B.map(H=>{const be=H.values.filter(xe=>!O.has(xe)).length,ie=be===0;return d.jsx("li",{role:"option","aria-disabled":!1,children:d.jsx(at,{onClick:()=>ie?de(H.values):ke(H),useScaleAnimation:!1,children:d.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",px:"sm",py:"xs",children:[d.jsx(Oe,{fontSize:"small",children:H.label}),ie?d.jsx(Rn,{size:12}):d.jsxs(Oe,{fontSize:"xs",color:"grey500",children:["+ ",be]})]})})},`group-${H.label}`)})}),W.length>0&&d.jsx(I,{as:"ul",ref:L,role:"listbox","aria-label":"Options",py:"xs",px:"none",m:"none",children:W.map((H,be)=>d.jsx("li",{role:"option","aria-selected":be===m,children:d.jsx(at,{onClick:()=>Te(H),onMouseEnter:()=>x(be),useScaleAnimation:!1,children:d.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",px:"sm",py:"xs",bgColor:be===m?"grey100":void 0,children:[d.jsx(Oe,{fontSize:"small",children:H.label}),O.has(H.value)&&d.jsx(Rn,{size:12})]})})},H.value))})]}),document.body),d.jsxs(I,{ref:F,flex:1,minWidth:"0",overflow:"hidden",display:"flex",alignItems:"center",gap:"xs",pr:"xs",cursor:"pointer",onClick:()=>oe.length>0&&_(!0),children:[oe.slice(0,j).map(H=>H.kind==="group"?Ee(H,()=>de(H.values)):Ee(H,()=>V(H.value))),oe.length-j>0&&d.jsx(ot,{text:`+ ${oe.length-j}`,variant:"outlined",size:"sm",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"140px"}),d.jsx(I,{ref:Y,position:"absolute",left:"-9999px",top:"0","aria-hidden":!0,children:d.jsx(I,{display:"flex",alignItems:"center",gap:"xs",children:oe.map(H=>d.jsxs(I,{as:"span","data-chip":"1",display:"inline-flex",alignItems:"center",gap:"xs",borderRadius:"sm",borderWidth:"thin",borderColor:"grey300",px:"sm",py:"xs",children:[d.jsx(I,{as:"span",maxWidth:"140px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:d.jsx(Oe,{fontSize:"small",children:H.label})}),d.jsx(I,{as:"span",width:"12px",height:"12px"})]},`m-${H.id}`))})})]})]}),v&&typeof document<"u"&&Ni.createPortal(d.jsx(I,{ref:K,position:"fixed",bgColor:"white",borderRadius:"md",borderWidth:"thin",borderColor:"grey300",padding:"sm",maxHeight:"300px",overflowY:"auto",zIndex:1001,top:M.top+4,left:M.left,width:M.width,children:d.jsx(I,{display:"flex",flexWrap:"wrap",gap:"xs",children:oe.map(H=>H.kind==="group"?d.jsx(ot,{text:`${H.label} (${H.values.length})`,rightIcon:Rn,variant:"outlined",size:"sm",onClick:()=>de(H.values),title:H.label,"aria-label":`Remove ${H.label}`,overflow:"hidden",textOverflow:"ellipsis",maxWidth:"140px"},`p-${H.id}`):d.jsx(ot,{text:H.label,rightIcon:Rn,variant:"outlined",size:"sm",onClick:()=>V(H.value),title:H.label,"aria-label":`Remove ${H.label}`,overflow:"hidden",textOverflow:"ellipsis",maxWidth:"140px"},`p-${H.id}`))})}),document.body)]})},xf=e=>e.map(n=>({value:n.value,label:n.label})),zh=({primaryOptions:e,secondaryOptions:n,value:r,onChange:s,primaryLabel:l,secondaryLabel:c,primaryPlaceholder:u="Select...",secondaryPlaceholder:f="Select...",valueKeys:p,disabled:g=!1,borderRadius:b="md"})=>{const m=(p==null?void 0:p.primary)??"primary",x=(p==null?void 0:p.secondary)??"secondary",v=a.useMemo(()=>Array.isArray(r)?r.map(V=>({...V})):[],[r]),_=a.useMemo(()=>v.map(V=>{const de=V[m];if(de==null)return null;const Ce=V[x];return{primary:String(de),secondary:Ce==null?"":String(Ce)}}).filter(V=>V!==null),[v,m,x]),j=a.useMemo(()=>new Map(e.map(V=>[V.value,V])),[e]),k=a.useMemo(()=>new Map(n.map(V=>[V.value,V])),[n]),A=a.useMemo(()=>xf(n),[n]),$=a.useMemo(()=>xf(e),[e]),[M,E]=a.useState(()=>{var V;return((V=_[0])==null?void 0:V.primary)??""}),[C,T]=a.useState(()=>{var V;return((V=_[0])==null?void 0:V.secondary)??""}),[L,F]=a.useState(!1),[Y,U]=a.useState(_.length),[K,O]=a.useState({top:0,left:0,width:0}),W=a.useRef(M),B=a.useRef(null),he=a.useRef(null),N=a.useRef(null),ne=a.useRef(null);a.useEffect(()=>{M||_.length!==0&&(E(_[0].primary),T(_[0].secondary))},[_,M]),a.useEffect(()=>{if(!M)return;e.some(de=>de.value===M)||(E(""),T(""))},[e,M]),a.useEffect(()=>{if(!M)return;const V=_.find(de=>de.primary===M);if(V){T(V.secondary);return}C&&!n.some(de=>de.value===C)&&T("")},[_,M,n,C]),a.useEffect(()=>{W.current=M},[M]);const oe=a.useCallback(V=>{if(g)return;const de=v.filter(Ce=>String(Ce[m])!==V);s(de),M===V&&(E(""),T(""))},[g,v,m,s,M]),Se=a.useMemo(()=>_.map(V=>{const de=j.get(V.primary),Ce=k.get(V.secondary),Ee=(de==null?void 0:de.label)??V.primary,H=(Ce==null?void 0:Ce.label)??V.secondary;return{id:`pair:${V.primary}`,label:`${Ee} - ${H}`,primary:V.primary}}),[_,j,k]),Te=a.useCallback(()=>{if(typeof window>"u")return;const V=he.current,de=N.current;if(!V||!de)return;const Ce=V.clientWidth;if(Ce<=0){U(0);return}const Ee=window.getComputedStyle(V),H=parseFloat(Ee.getPropertyValue("column-gap")||Ee.getPropertyValue("gap")||"0")||0,ie=Array.from(de.querySelectorAll('span[data-chip="1"]')).map(te=>te.offsetWidth);let xe=0,we=0;for(let te=0;te<ie.length;te+=1){const Q=ie[te]+(te>0?H:0);if(xe+Q>Ce)break;xe+=Q,we=te+1}if(we<ie.length){const te=ie.length-we,ye=30+String(te).length*10;for(;we>0&&xe+(we>0?H:0)+ye>Ce;){const G=ie[we-1];xe-=G+(we-1>0?H:0),we-=1}}U(we)},[]);a.useEffect(()=>{if(typeof window>"u")return;U(Se.length);const V=window.setTimeout(Te,0);return()=>window.clearTimeout(V)},[Se,Te]),a.useEffect(()=>{if(typeof window>"u"||typeof ResizeObserver>"u"||!he.current)return;const V=new ResizeObserver(()=>Te());return V.observe(he.current),()=>V.disconnect()},[Te]),a.useEffect(()=>{_.length===0&&F(!1)},[_.length]),a.useEffect(()=>{if(typeof document>"u")return;const V=de=>{var Ee;if(!B.current)return;const Ce=de.target;B.current.contains(Ce)||(Ee=ne.current)!=null&&Ee.contains(Ce)||F(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]),a.useEffect(()=>{if(L&&he.current){const V=he.current.getBoundingClientRect();O({top:V.bottom,left:V.left,width:V.width})}},[L]);const ke=V=>d.jsx(ot,{text:V.label,rightIcon:g?void 0:Rn,variant:"outlined",size:"sm",onClick:g?void 0:de=>{de.stopPropagation(),oe(V.primary)},title:V.label,"aria-label":`Remove ${V.label}`,overflow:"hidden",textOverflow:"ellipsis",maxWidth:"200px"},V.id);return d.jsxs(I,{ref:B,fw:!0,children:[d.jsxs(I,{display:"flex",alignItems:"center",gap:"sm",children:[d.jsx(I,{flex:1,children:d.jsx(Gn,{borderRadius:b,bgColor:"white",value:M||void 0,onChange:V=>{const de=V==null?"":String(V);if(E(de),W.current=de,!de){T("");return}const Ce=_.find(Ee=>Ee.primary===de);T(Ce?Ce.secondary:"")},options:$,placeholder:l||u,disabled:g})}),d.jsx(I,{flex:1,children:d.jsx(Gn,{borderRadius:b,bgColor:"white",value:C||void 0,onChange:V=>{const de=V==null?"":String(V);T(de);const Ce=W.current;if(!Ce||!de)return;const Ee=v.findIndex(H=>String(H[m])===Ce);if(Ee>=0){const H=[...v];H[Ee]={...H[Ee],[x]:de},s(H)}else{const H={[m]:Ce,[x]:de};s([...v,H])}},options:A,placeholder:c||f,disabled:g||!M})}),d.jsxs(I,{ref:he,flex:1,minWidth:"0",overflow:"hidden",display:"flex",alignItems:"center",gap:"xs",pr:"xs",cursor:"pointer",onClick:()=>Se.length>0&&F(!0),children:[Se.slice(0,Y).map(V=>ke(V)),Se.length-Y>0&&d.jsx(ot,{text:`+ ${Se.length-Y}`,variant:"outlined",size:"sm",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"140px"}),d.jsx(I,{ref:N,position:"absolute",left:"-9999px",top:"0","aria-hidden":!0,children:d.jsx(I,{display:"flex",alignItems:"center",gap:"xs",children:Se.map(V=>d.jsxs(I,{as:"span","data-chip":"1",display:"inline-flex",alignItems:"center",gap:"xs",borderRadius:"sm",borderWidth:"thin",borderColor:"grey300",px:"sm",py:"xs",children:[d.jsx(I,{as:"span",maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:d.jsx(Oe,{fontSize:"small",children:V.label})}),d.jsx(I,{as:"span",width:"12px",height:"12px"})]},`m-${V.id}`))})})]})]}),L&&typeof document<"u"&&Ni.createPortal(d.jsx(I,{ref:ne,position:"fixed",bgColor:"white",borderRadius:"md",borderWidth:"thin",borderColor:"grey300",padding:"sm",maxHeight:"300px",overflowY:"auto",zIndex:1001,top:K.top+4,left:K.left,width:K.width,children:d.jsx(I,{display:"flex",flexWrap:"wrap",gap:"xs",children:Se.map(V=>ke(V))})}),document.body)]})};function M5(e){if(!e)return"";const n=e instanceof Date?e:new Date(String(e));return isNaN(n.getTime())?String(e):Ot(n)}function mc(e,n){var r,s;if(n.type==="date")return M5(e);if(n.type==="inlinepairselect"&&Array.isArray(e)&&n.pairOptions){const l=((r=n.pairOptions.valueKeys)==null?void 0:r.primary)??"primary",c=((s=n.pairOptions.valueKeys)==null?void 0:s.secondary)??"secondary",u=new Map(n.pairOptions.primaryOptions.map(p=>[p.value,p.label])),f=new Map(n.pairOptions.secondaryOptions.map(p=>[p.value,p.label]));return e.map(p=>{const g=u.get(p[l])??p[l]??"",b=f.get(p[c])??p[c]??"";return b?`${g}: ${b}`:g}).join(", ")}if((n.type==="inlinemultiselect"||n.type==="checkboxes")&&Array.isArray(e)&&n.options){const l=new Map(n.options.map(c=>[c.value,c.label]));return e.map(c=>l.get(String(c))??String(c)).join(", ")}if(n.type==="select"&&n.options){const l=n.options.find(c=>c.value===String(e??""));if(l)return l.label}return n.type==="boolean"?e===!0||e==="true"?"Yes":"No":String(e??"")}const Fh=new Set(["page","pageSize","sortBy","sortDirection"]);function I5(...e){return new Set([...Fh,...e])}function O5(e,n,r,s="page",l){const c=new URLSearchParams(e);return n.some(f=>{const p=f.value!=null&&String(f.value).trim()!=="",g=f.valueEnd!=null&&String(f.valueEnd).trim()!=="";return p||g})&&c.delete(s),Array.from(c.keys()).forEach(f=>{r.has(f)||(l?f.startsWith(`${l}_`)&&c.delete(f):c.delete(f))}),n.forEach(f=>{const p=String(f.column),g=l?`${l}_${p}`:p,b=f.value!=null&&String(f.value).trim()!=="",m=f.valueEnd!=null&&String(f.valueEnd).trim()!=="";if(b||m){const x=f.operator==="greater_equal"||f.operator==="greater_than"||f.operator==="less_equal"||f.operator==="less_than";b&&m&&!x?(c.set(g,String(f.value)),c.set(`${g}_end`,String(f.valueEnd))):b&&m?(c.set(`${g}_min`,String(f.value)),c.set(`${g}_max`,String(f.valueEnd))):m?c.set(`${g}_max`,String(f.valueEnd)):x?c.set(`${g}_min`,String(f.value)):c.set(g,String(f.value))}}),c}function z5(e,n,r,s){const l=[];return e.forEach((c,u)=>{if(n.has(u)||u.endsWith("_reload")||r&&!u.startsWith(`${r}_`))return;const f=r?u.replace(`${r}_`,""):u;if(!f.endsWith("_end"))if(f.endsWith("_min")){const p=f.replace("_min",""),g=r?`${r}_${String(p)}_max`:`${String(p)}_max`,b=e.get(g);l.find(x=>x.column===p)||l.push({id:`filter-${String(p)}`,column:p,operator:"greater_equal",value:c,valueEnd:b||void 0})}else if(f.endsWith("_max")){const p=f.replace("_max",""),g=r?`${r}_${String(p)}_min`:`${String(p)}_min`;e.get(g)||l.push({id:`filter-${String(p)}`,column:p,operator:"greater_equal",value:"",valueEnd:c})}else{const p=s==null?void 0:s[f];let g="contains";p==="boolean"||p==="select"||p==="inlinepairselect"?g="equals":(p==="number"||p==="date")&&(g="greater_equal");const b=r?`${r}_${f}_end`:`${f}_end`,m=e.get(b);l.push({id:`filter-${f}`,column:f,operator:g,value:c,valueEnd:m||void 0})}}),l}function F5(e,n){return n.length===0?e:e.filter(r=>n.every(s=>{const l=r[s.column],c=s.value;switch(s.operator){case"contains":return Array.isArray(l)?l.some(u=>String(u).toLowerCase().includes(String(c).toLowerCase())):String(l).toLowerCase().includes(String(c).toLowerCase());case"equals":return Array.isArray(l)?l.some(u=>typeof u=="string"?u===c:JSON.stringify(u).includes(c)):typeof l=="boolean"?l===(c==="true"):String(l)===String(c);case"not_equals":return Array.isArray(l)?!l.some(u=>typeof u=="string"?u===c:JSON.stringify(u).includes(c)):typeof l=="boolean"?l!==(c==="true"):String(l)!==String(c);case"starts_with":return String(l).toLowerCase().startsWith(String(c).toLowerCase());case"ends_with":return String(l).toLowerCase().endsWith(String(c).toLowerCase());case"greater_than":return Number(l)>Number(c);case"less_than":return Number(l)<Number(c);case"greater_equal":return!c&&s.valueEnd?Number(l)<=Number(s.valueEnd):c&&s.valueEnd?Number(l)>=Number(c)&&Number(l)<=Number(s.valueEnd):Number(l)>=Number(c);case"less_equal":return Number(l)<=Number(c);case"is_empty":return Array.isArray(l)?l.length===0:l===""||l===null||l===void 0;case"is_not_empty":return Array.isArray(l)?l.length>0:l!==""&&l!==null&&l!==void 0;default:return!0}}))}function yc({columns:e,getValue:n,onChange:r,disabled:s=!1,formData:l,filterColumn:c,showNonEditable:u=!1,borderRadius:f="md"}){const g=c??(m=>m.editable!==!1&&m.key!=="id"&&m.key!=="select"&&!m.hiddenInContent),b=(m,x)=>{if(!(m.editable!==!1&&m.key!=="select"))return null;if(m.type==="inlinemultiselect"&&m.options&&m.groupOptions){const k=Array.isArray(x)?x.map(String):[];return d.jsx(Oh,{options:m.options,groupOptions:m.groupOptions,value:k,onChange:A=>{s||r(m,A)}})}if(m.type==="inlinepairselect"&&m.pairOptions){const k=Array.isArray(x)?x:[];return d.jsx(zh,{primaryOptions:m.pairOptions.primaryOptions,secondaryOptions:m.pairOptions.secondaryOptions,value:k,onChange:A=>{s||r(m,A)},primaryLabel:m.pairOptions.primaryLabel,secondaryLabel:m.pairOptions.secondaryLabel,primaryPlaceholder:m.pairOptions.primaryPlaceholder,secondaryPlaceholder:m.pairOptions.secondaryPlaceholder,valueKeys:m.pairOptions.valueKeys,disabled:s,borderRadius:f})}if(m.type==="boolean")return d.jsx(I,{pt:"sm",children:d.jsx(Eh,{checked:x===!0||x==="true",onChange:k=>{s||r(m,k)},label:x===!0||x==="true"?"Yes":"No"})});if(m.type==="checkboxes"&&m.options){const k=Array.isArray(x)?x.map(String):[];return d.jsx(I,{display:"flex",alignItems:"center",gap:"md",px:"sm",height:"100%",borderRadius:f,borderWidth:"thin",borderColor:"grey300",bgColor:"white",children:m.options.map(A=>{const $=k.includes(A.value);return d.jsx(dc,{size:"sm",checked:$,onChange:M=>{if(!s){const E=[...k];if(M)E.includes(A.value)||E.push(A.value);else{const C=E.indexOf(A.value);C>-1&&E.splice(C,1)}r(m,E)}},disabled:s,label:A.label},A.value)})})}if(m.renderEditField)return m.renderEditField(x,l,k=>{s||r(m,k)});if(m.type==="select"&&m.options)return d.jsx(Gn,{borderRadius:f,bgColor:"white",value:String(x??""),onChange:k=>{s||r(m,k)},options:[{value:"",label:"Select..."},...m.options.map(k=>({value:k.value,label:k.label}))],disabled:s});if(m.type==="date"){const k=x?(()=>{const A=new Date(String(x));return isNaN(A.getTime())?void 0:{date:A,timezone:null}})():void 0;return d.jsx(Ds,{mode:"popup",isFixedPosition:!0,value:k,onChange:A=>{s||r(m,A!=null&&A.date?A.date.toISOString():"")},disabled:s})}const _=String(x??""),j=m.multiline||_.includes(`
|
|
642
|
+
`);return d.jsx(In,{borderRadius:f,bgColor:"white",value:_,onChange:s?void 0:k=>r(m,k),disabled:s,type:m.type==="number"?"number":void 0,multiline:j,placeholder:s?void 0:m.type==="link"?"https://...":void 0})};return d.jsx(Kn,{container:!0,columns:{xs:1,sm:2,md:3},spacing:"md",children:e.filter(g).map(m=>{const x=m.editable!==!1&&m.key!=="select",v=n(m);return d.jsx(Kn,{size:{xs:1,sm:1,md:1},children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:"xs",height:"100%",children:[d.jsxs(I,{display:"flex",alignItems:"center",gap:"xs",children:[d.jsx(Oe,{fontWeight:"medium",children:m.header}),m.required&&d.jsx(Oe,{color:"danger",children:"*"})]}),x?b(m,v):u?d.jsx(In,{value:mc(v,m),disabled:!0,borderRadius:f,bgColor:"white"}):null]})},String(m.key))})})}function L5({item:e,allColumns:n,editFormData:r,loadingDetails:s,isFormLoading:l,isEditable:c,hasChanges:u,onEditFormChange:f,onSave:p,onToggleExpanded:g,onDelete:b}){return d.jsx(I,{p:"md",mt:"-md",borderTopWidth:"thin",borderColor:"grey300",bgColor:"grey100",children:s.has(e.id)?d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",children:d.jsx(eo,{loading:!0,size:"small",color:"grey500",children:d.jsx(Oe,{color:"grey500",children:"Loading details..."})})}):d.jsxs(d.Fragment,{children:[d.jsx(yc,{columns:n,getValue:m=>{var x;return((x=r[e.id])==null?void 0:x[m.key])??e[m.key]},onChange:(m,x)=>f(e.id,m.key,x),disabled:!c,formData:{...e,...r[e.id]},filterColumn:m=>!m.hiddenInContent&&m.key!=="select",showNonEditable:!0}),c&&d.jsxs(I,{display:"flex",justifyContent:"space-between",pt:"md",mt:"md",borderTopWidth:"thin",borderColor:"grey300",children:[b&&d.jsx(I,{display:"flex",justifyContent:"flex-start",gap:"sm",children:d.jsx(ot,{text:"Delete",variant:"outlined",color:"danger",icon:W1,onClick:()=>b(e),size:"md"})}),d.jsxs(I,{display:"flex",justifyContent:"flex-end",gap:"sm",children:[d.jsx(ot,{text:"Cancel",variant:"outlined",onClick:()=>g(e),disabled:l,size:"md"}),d.jsx(ot,{text:"Save Changes",onClick:()=>p(e),disabled:l||!u,loading:l,size:"md"})]})]})]})})}const D5=pe.table`
|
|
643
|
+
width: 100%;
|
|
644
|
+
border-collapse: collapse;
|
|
645
|
+
caption-side: bottom;
|
|
646
|
+
table-layout: fixed;
|
|
647
|
+
font-size: ${({theme:e})=>e.__hd__.text.fontSizes.small}px;
|
|
648
|
+
`,P5=pe.thead`
|
|
649
|
+
& tr {
|
|
650
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.grey300};
|
|
651
|
+
}
|
|
652
|
+
`,W5=pe.tbody`
|
|
653
|
+
& tr:last-child {
|
|
654
|
+
border-bottom: none;
|
|
655
|
+
}
|
|
656
|
+
`;pe.tfoot`
|
|
657
|
+
border-top: 1px solid ${({theme:e})=>e.colors.grey300};
|
|
658
|
+
background-color: ${({theme:e})=>e.colors.grey100};
|
|
659
|
+
font-weight: ${({theme:e})=>e.__hd__.text.fontWeights.medium};
|
|
660
|
+
|
|
661
|
+
& > tr:last-child {
|
|
662
|
+
border-bottom: none;
|
|
663
|
+
}
|
|
664
|
+
`;const $s=pe.tr`
|
|
665
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.grey300};
|
|
666
|
+
transition: background-color 0.15s ease;
|
|
667
|
+
background-color: ${({theme:e,$isSelected:n})=>n?e.colors.orange100:e.colors.grey100};
|
|
668
|
+
cursor: ${({$isClickable:e})=>e?"pointer":"default"};
|
|
669
|
+
|
|
670
|
+
&:hover {
|
|
671
|
+
background-color: ${({theme:e,$isSelected:n})=>n?e.colors.orange100:e.colors.grey200};
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
&[data-state='selected'] {
|
|
675
|
+
background-color: ${({theme:e})=>e.colors.grey200};
|
|
676
|
+
}
|
|
677
|
+
`,H5=pe.th`
|
|
678
|
+
height: 48px;
|
|
679
|
+
padding: 0 ${({theme:e})=>e.spaces.md}px;
|
|
680
|
+
text-align: left;
|
|
681
|
+
vertical-align: middle;
|
|
682
|
+
font-weight: ${({theme:e})=>e.__hd__.text.fontWeights.bold};
|
|
683
|
+
color: ${({theme:e})=>e.colors.grey600};
|
|
684
|
+
cursor: ${({$sortable:e})=>e?"pointer":"default"};
|
|
685
|
+
user-select: ${({$sortable:e})=>e?"none":"auto"};
|
|
686
|
+
width: ${({$width:e})=>e||"auto"};
|
|
687
|
+
|
|
688
|
+
&:has([role='checkbox']) {
|
|
689
|
+
padding-right: 0;
|
|
690
|
+
}
|
|
691
|
+
`,Lh=pe.td`
|
|
692
|
+
padding: ${({theme:e})=>e.spaces.md}px;
|
|
693
|
+
vertical-align: middle;
|
|
694
|
+
width: ${({$width:e})=>e||"auto"};
|
|
695
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
696
|
+
|
|
697
|
+
&:has([role='checkbox']) {
|
|
698
|
+
padding-right: 0;
|
|
699
|
+
}
|
|
700
|
+
`,B5=pe(Lh)`
|
|
701
|
+
padding: 0;
|
|
702
|
+
`;pe.caption`
|
|
703
|
+
margin-top: ${({theme:e})=>e.spaces.md}px;
|
|
704
|
+
font-size: ${({theme:e})=>e.__hd__.text.fontSizes.small}px;
|
|
705
|
+
color: ${({theme:e})=>e.colors.grey500};
|
|
706
|
+
`;const V5=pe.table`
|
|
707
|
+
width: 100%;
|
|
708
|
+
table-layout: fixed;
|
|
709
|
+
`,Z5=pe.td`
|
|
710
|
+
padding: ${({theme:e})=>e.spaces.md}px;
|
|
711
|
+
height: 40px;
|
|
712
|
+
vertical-align: middle;
|
|
713
|
+
color: ${({theme:e})=>e.colors.grey900};
|
|
714
|
+
width: ${({$width:e})=>e||"auto"};
|
|
715
|
+
max-width: ${({$width:e})=>e||"auto"};
|
|
716
|
+
overflow: ${({$isEditing:e})=>e?"visible":"hidden"};
|
|
717
|
+
position: ${({$isEditing:e})=>e?"relative":"static"};
|
|
718
|
+
`,vf=pe.pre`
|
|
719
|
+
white-space: pre-wrap;
|
|
720
|
+
font-family: inherit;
|
|
721
|
+
word-break: break-all;
|
|
722
|
+
margin: 0;
|
|
723
|
+
`,N5=pe.td`
|
|
724
|
+
text-align: center;
|
|
725
|
+
padding: ${({theme:e})=>e.spaces.lg}px;
|
|
726
|
+
color: ${({theme:e})=>e.colors.grey500};
|
|
727
|
+
`;function U5({item:e,columns:n,isSelected:r,isEditable:s,onEditFormChange:l,onSave:c,onQuickEdit:u}){const[f,p]=a.useState(null),g=a.useRef(null);a.useEffect(()=>{if(typeof document>"u"||!f)return;const m=x=>{g.current&&x.target instanceof Node&&(g.current.contains(x.target)||p(null))};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[f]);const b=n.reduce((m,x)=>m+Number(x.flex||1),0);return d.jsx(I,{bgColor:r?"orange100":"white",children:d.jsx(V5,{children:d.jsx("tbody",{children:d.jsx("tr",{children:n.map(m=>{const x=e[m.key],v=m.render?m.render(x,e):mc(x,m),_=typeof x=="string"&&x.includes(`
|
|
728
|
+
`),j=Number(m.flex||1)/b*100,k=!!(m.headerEditable&&f===m.key);return d.jsx(Z5,{$width:`${j}%`,$isEditing:k,children:d.jsx(I,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:m.headerEditable&&s?f===m.key?m.type==="select"&&m.options?d.jsx(I,{ref:g,onClick:A=>A.stopPropagation(),position:"absolute",zIndex:50,left:0,top:"100%",marginTop:"xs",width:"176px",borderRadius:"md",borderWidth:"thin",borderColor:"grey300",bgColor:"white",children:m.options.map(A=>d.jsx(at,{onMouseDown:$=>$.preventDefault(),onClick:()=>{u?u(e,m.key,A.value):(l(e.id,m.key,A.value),c(e)),p(null)},useScaleAnimation:!1,useOpacityAnimation:!1,display:"block",width:"100%",py:"sm",px:"md",children:d.jsx(Oe,{fontSize:"small",children:A.label})},A.value))}):d.jsx(In,{value:String(e[m.key]??""),onChange:A=>{l(e.id,m.key,A)},onBlur:()=>{p(null),c(e)}}):d.jsx(at,{onClick:A=>{A.stopPropagation(),p(m.key)},useScaleAnimation:!1,children:m.href||m.type==="link"&&x?d.jsx(at,{href:m.href?m.href(e):String(x),target:"_blank",rel:"noopener noreferrer",onClick:A=>A.stopPropagation(),useScaleAnimation:!1,useOpacityAnimation:!1,display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:d.jsx(Oe,{color:"primary",children:v})}):_?d.jsx(vf,{children:v}):m.tagColor?d.jsx(Ll,{color:m.tagColor,children:v}):d.jsx("span",{children:v})}):m.href||m.type==="link"&&x?d.jsx(at,{href:m.href?m.href(e):String(x),target:"_blank",rel:"noopener noreferrer",onClick:A=>A.stopPropagation(),useScaleAnimation:!1,useOpacityAnimation:!1,display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:d.jsx(Oe,{color:"primary",children:v})}):_?d.jsx(vf,{children:v}):m.tagColor?d.jsx(Ll,{color:m.tagColor,size:"sm",children:v}):d.jsx("span",{children:v})})},String(m.key))})})})})})}function Dh({item:e,columns:n,allColumns:r,expandedRows:s,editFormData:l,loadingDetails:c,isFormLoading:u,isEditable:f=!0,isExpandAccordion:p=!0,isSelected:g=!1,onToggleExpanded:b,onEditFormChange:m,onSave:x,onDelete:v,onQuickEdit:_}){const j=a.useMemo(()=>{const $=l[e.id];return $?Object.keys($).some(M=>{const E=$[M],C=e[M];return Array.isArray(E)&&Array.isArray(C)?JSON.stringify(E)!==JSON.stringify(C):E!==C}):!1},[l,e]),k=()=>d.jsx(U5,{item:e,columns:n,isSelected:g,isEditable:f,onEditFormChange:m,onSave:x,onQuickEdit:_}),A=()=>d.jsx(L5,{item:e,allColumns:r,editFormData:l,loadingDetails:c,isFormLoading:u,isEditable:f,hasChanges:j,onEditFormChange:m,onSave:x,onToggleExpanded:b,onDelete:v});return d.jsx($s,{$isSelected:g,children:d.jsx(B5,{colSpan:n.length,children:p?d.jsx(gh,{expanded:s.has(e.id),onExpandedChange:()=>b(e),iconPosition:"none",renderHeader:k,renderContent:A,borderRadius:"none",borderWidth:"none",padding:"none",paddingInline:"none"}):d.jsx(at,{onClick:()=>b(e),useScaleAnimation:!1,children:k()})})})}function Ph({columns:e,formData:n,isLoading:r,onInputChange:s,onSubmit:l,onCancel:c}){return d.jsxs(d.Fragment,{children:[d.jsx(yc,{columns:e,getValue:u=>n[u.key],onChange:(u,f)=>s(u.key,f),disabled:!1,formData:n,filterColumn:u=>u.editable!==!1&&u.key!=="id"}),d.jsxs(I,{display:"flex",justifyContent:"flex-end",gap:"sm",pt:"md",mt:"md",borderTopWidth:"thin",borderColor:"grey300",children:[d.jsx(ot,{text:r?"Adding...":"Add Item",onClick:l,disabled:r,loading:r}),d.jsx(ot,{text:"Cancel",variant:"outlined",onClick:c,disabled:r})]})]})}const G5="Are you sure you want to delete this item?",q5="Delete",Wh=({open:e,onOpenChange:n,onConfirm:r,isLoading:s=!1,message:l=G5,deleteButtonText:c=q5})=>{const u=()=>{s||n(!1)},f=()=>{r()};return d.jsx(Ls,{open:e,onClose:u,bgColor:"white",borderRadius:"lg",padding:"lg",maxWidth:"480px",width:"90%",children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:"md",children:[d.jsx(Oe,{fontSize:"large",fontWeight:"semibold",children:"Confirm Delete"}),d.jsx(Oe,{fontSize:"small",color:"grey600",children:l}),d.jsxs(I,{display:"flex",justifyContent:"flex-end",gap:"sm",mt:"md",children:[d.jsx(ot,{text:"Cancel",variant:"outlined",onClick:u,disabled:s}),d.jsx(ot,{text:s?"Deleting...":c,color:"danger",onClick:f,disabled:s,loading:s})]})]})})};function Hh({columns:e,filters:n,onFiltersChange:r,borderRadius:s="md"}){const[l,c]=a.useState({}),u=a.useRef(new Set),f=a.useRef(new Set),p=a.useRef(!1),g=a.useRef(null),b=a.useRef(r),m=a.useRef(n),x=a.useRef(e);a.useEffect(()=>{b.current=r,m.current=n,x.current=e},[r,n,e]);const v=a.useCallback(E=>{switch(E.filterType||E.type){case"select":case"boolean":case"inlinepairselect":return"equals";case"checkboxes":case"inlinemultiselect":return"contains";case"number":case"date":return"greater_equal";case"text":case"email":default:return"contains"}},[]),_=a.useCallback(E=>{const C=[],T=x.current;return Object.entries(E).forEach(([L,F])=>{const Y=F.value!=null&&String(F.value).trim()!=="",U=F.valueEnd!=null&&String(F.valueEnd).trim()!=="";if(Y||U){const K=T.find(O=>String(O.key)===L);if(K){if((K.filterType||K.type)==="inlinepairselect"&&!(Y&&U))return;const W=K.filterKey||K.key;C.push({id:`filter-${L}`,column:W,operator:v(K),value:F.value||"",valueEnd:F.valueEnd||void 0,relation:K.filterRelation})}}}),C},[v]);a.useEffect(()=>{if(p.current){n.length===0&&(p.current=!1);return}const E={},C=x.current;n.forEach(T=>{const L=String(T.column),F=C.find(O=>(O.filterKey||String(O.key))===L),Y=F?String(F.key):L,U=T.value!=null&&String(T.value).trim()!=="",K=T.valueEnd!=null&&String(T.valueEnd).trim()!=="";(U||K)&&(E[Y]={value:T.value,valueEnd:T.valueEnd})}),c(T=>{const L={...E};return u.current.forEach(F=>{F in T&&(T[F]?L[F]=T[F]:delete L[F])}),f.current.forEach(F=>{F in T&&(T[F]?L[F]=T[F]:delete L[F])}),L})},[n]),a.useEffect(()=>{g.current&&clearTimeout(g.current);const E=setTimeout(()=>{if(g.current=null,u.current.size>0)return;const C=_(l),T=m.current;(()=>{if(C.length!==T.length)return!0;const F=[...C].sort((U,K)=>String(U.column).localeCompare(String(K.column))),Y=[...T].sort((U,K)=>String(U.column).localeCompare(String(K.column)));return!F.every((U,K)=>{const O=Y[K];return String(U.column)===String(O.column)&&U.value===O.value&&U.valueEnd===O.valueEnd})})()?b.current(C):f.current.clear()},500);return g.current=E,()=>{clearTimeout(E),g.current=null}},[l,_]);const j=a.useCallback((E,C,T=!1,L=!1)=>{f.current.add(E),L&&(u.current.add(E),g.current&&(clearTimeout(g.current),g.current=null)),c(F=>{const Y=F[E]||{value:""},U={...F,[E]:T?{...Y,valueEnd:C}:{...Y,value:C}};return L&&setTimeout(()=>{const K=_(U);b.current(K),u.current.delete(E)},0),U})},[_]),k=a.useCallback((E,C=!1)=>{c(T=>{var Y,U;const L=T[E];if(!((Y=L==null?void 0:L.value)!=null&&Y.trim())&&!((U=L==null?void 0:L.valueEnd)!=null&&U.trim()))return T;f.current.add(E),C&&(u.current.add(E),g.current&&(clearTimeout(g.current),g.current=null));const F={...T,[E]:{value:""}};return C&&setTimeout(()=>{const K=_(F);b.current(K),u.current.delete(E)},0),F})},[_]),A=a.useCallback(()=>{p.current=!0,g.current&&(clearTimeout(g.current),g.current=null),c({}),b.current([]),f.current.clear(),u.current.clear()},[]),$=a.useCallback(E=>{if(!E)return;const C=new Date(E);if(!isNaN(C.getTime()))return{date:C,timezone:null}},[]),M=a.useCallback((E,C,T)=>{if(!(C!=null&&C.date)){k(E,!0);return}const L=C.date,F=L.getFullYear(),Y=String(L.getMonth()+1).padStart(2,"0"),U=String(L.getDate()).padStart(2,"0");j(E,`${F}-${Y}-${U}`,T,!0)},[j,k]);return d.jsxs(d.Fragment,{children:[d.jsx(Kn,{container:!0,columns:{xs:3,sm:6,lg:9},spacing:"md",children:e.filter(E=>E.key!=="id").filter(E=>E.key!=="select").filter(E=>E.key!=="actions").map(E=>{var U,K;const C=String(E.key),T=((U=l[C])==null?void 0:U.value)??"",L=((K=l[C])==null?void 0:K.valueEnd)??"",F=E.filterType||E.type;if(F==="none")return null;const Y=F==="date";return d.jsx(Kn,{size:3,children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:"xs",height:"100%",children:[d.jsx(Oe,{fontSize:"small",fontWeight:"medium",color:"grey700",children:E.header||C}),d.jsxs(I,{display:"flex",alignItems:"center",gap:"xs",flex:"1",children:[Y&&d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(Ds,{range:!0,isFixedPosition:!0,startValue:$(T),endValue:$(L),onStartChange:O=>M(C,O,!1),onEndChange:O=>M(C,O,!0)})}),F==="number"&&d.jsxs(I,{display:"flex",flexDirection:"row",alignItems:"center",gap:"sm",flex:"2",minWidth:"0",children:[d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(In,{type:"number",borderRadius:s,bgColor:"white",value:T,onChange:O=>j(C,O),placeholder:"Min"})}),d.jsx(Oe,{color:"grey500",children:"-"}),d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(In,{type:"number",borderRadius:s,bgColor:"white",value:L,onChange:O=>j(C,O,!0),placeholder:"Max"})})]}),F==="select"&&d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(Gn,{borderRadius:s,bgColor:"white",value:T||void 0,onChange:O=>{const W=O==null?"":String(O);W===""?k(C,!0):j(C,W,!1,!0)},options:[{value:"",label:"All"},...(E.filterOptions||E.options||[]).map(O=>({value:O.value,label:O.label}))],placeholder:"All"})}),F==="boolean"&&d.jsx(I,{flex:"1",minWidth:"0",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"sm",px:"sm",py:"sm",height:"100%",borderRadius:s,borderWidth:"thin",borderColor:"grey300",bgColor:"white",children:d.jsx(Fs.Group,{value:T||"",onChange:O=>{const W=String(O);W===""?k(C,!0):j(C,W,!1,!0)},options:[{value:"",label:"All"},{value:"true",label:"Yes"},{value:"false",label:"No"}]})}),F==="checkboxes"&&(E.filterOptions||E.options)&&d.jsx(I,{flex:"1",minWidth:"0",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"sm",px:"sm",py:"sm",height:"100%",borderRadius:s,borderWidth:"thin",borderColor:"grey300",bgColor:"white",children:(E.filterOptions||E.options).map(O=>{const W=T?T.split(","):[],B=W.includes(O.value);return d.jsx(dc,{checked:B,onChange:he=>{const N=[...W];if(he)N.includes(O.value)||N.push(O.value);else{const oe=N.indexOf(O.value);oe>-1&&N.splice(oe,1)}const ne=N.join(",");ne===""?k(C,!0):j(C,ne,!1,!0)},label:O.label,size:"sm"},O.value)})}),F==="inlinemultiselect"&&d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(Gn,{borderRadius:s,bgColor:"white",value:T||void 0,onChange:O=>{const W=O==null?"":String(O);W===""?k(C,!0):j(C,W,!1,!0)},options:[{value:"",label:"All"},...E.filterBy==="group"&&E.groupOptions?E.groupOptions.map(O=>({value:O.values.join(","),label:O.label})):(E.filterOptions||E.options||[]).map(O=>({value:O.value,label:O.label}))],placeholder:"All"})}),F==="inlinepairselect"&&E.pairOptions&&d.jsxs(I,{display:"flex",alignItems:"center",gap:"sm",flex:"1",minWidth:"0",children:[d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(Gn,{borderRadius:s,bgColor:"white",value:T||void 0,onChange:O=>{const W=O==null?"":String(O);W===""?k(C,!0):L?j(C,W,!1,!0):(f.current.add(C),c(B=>({...B,[C]:{...B[C],value:W}})))},options:[{value:"",label:"All"},...E.pairOptions.primaryOptions.map(O=>({value:O.value,label:O.label}))],placeholder:E.pairOptions.primaryPlaceholder||"Primary"})}),d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(Gn,{borderRadius:s,bgColor:"white",disabled:!T,value:L||void 0,onChange:O=>{const W=O==null?"":String(O);W===""?k(C,!0):T?j(C,W,!0,!0):(f.current.add(C),c(B=>({...B,[C]:{...B[C],valueEnd:W}})))},options:[{value:"",label:"All"},...E.pairOptions.secondaryOptions.map(O=>({value:O.value,label:O.label}))],placeholder:E.pairOptions.secondaryPlaceholder||"Secondary"})})]}),(!F||F==="text"||F==="email")&&d.jsx(I,{flex:"1",minWidth:"0",children:d.jsx(In,{borderRadius:s,bgColor:"white",value:T,onChange:O=>j(C,O),placeholder:"Contains..."})}),d.jsx(at,{onClick:()=>k(C,!0),useScaleAnimation:!0,useOpacityAnimation:!0,cursor:"pointer",alignItems:"center",flexShrink:0,ml:"xs",children:d.jsx(yt,{type:"icon",art:H1,color:"primary",weight:"regular",size:"sm"})})]})]})},C)})}),d.jsx(I,{display:"flex",justifyContent:"flex-end",mt:"md",children:d.jsx(ot,{text:"Clear All",variant:"outlined",onClick:A,disabled:!Object.values(l).some(E=>{var C,T;return((C=E.value)==null?void 0:C.trim())||((T=E.valueEnd)==null?void 0:T.trim())})})})]})}function K5(e){const n=e.getCurrentPage(),r=e.getPageSize(),s=e.getSortBy(),l=e.getSortDirection(),c=e.getFilters(),u=a.useCallback(p=>{e.setPagination(p)},[e]),f=a.useCallback(p=>{e.setFilters(p)},[e]);return{currentPage:n,pageSize:r,sortBy:s,sortDirection:l,filters:c,onPaginationChange:u,onFiltersChange:f}}function Y5(e){const[n,r]=a.useState(1),[s,l]=a.useState((e==null?void 0:e.defaultPageSize)??10),[c,u]=a.useState((e==null?void 0:e.defaultSortBy)??""),[f,p]=a.useState((e==null?void 0:e.defaultSortDirection)??"asc"),[g,b]=a.useState([]);return a.useMemo(()=>({getCurrentPage:()=>n,getPageSize:()=>s,getSortBy:()=>c,getSortDirection:()=>f,getFilters:()=>g,setPagination:m=>{m.page!==void 0&&r(m.page),m.pageSize!==void 0&&l(m.pageSize),m.sortBy!==void 0&&u(m.sortBy),m.sortDirection!==void 0&&p(m.sortDirection)},setFilters:b}),[n,s,c,f,g])}function X5({data:e,columns:n,currentPage:r,pageSize:s,total:l,sortBy:c,sortDirection:u,onPaginationChange:f,onAdd:p,onEdit:g,onDelete:b,onView:m,onSelectedItemChange:x,onFieldChange:v,renderExpandedRow:_}){const[j,k]=a.useState(!1),[A,$]=a.useState(!1),[M,E]=a.useState([]),[C,T]=a.useState(null),L=a.useMemo(()=>{const me={};for(const Ae of n)if(Ae.key!=="select"&&Ae.defaultValue!==void 0){const Fe=me;Fe[Ae.key]=Ae.defaultValue}return me},[n]),[F,Y]=a.useState(L),[U,K]=a.useState(!1),[O,W]=a.useState(!1),[B,he]=a.useState(new Set),[N,ne]=a.useState({}),[oe,Se]=a.useState(new Set),[Te,ke]=a.useState(new Set),[V,de]=a.useState({}),Ce=n.filter(me=>!me.hiddenInHeader),Ee=Math.ceil(l/s),H=e,be=Ce.reduce((me,Ae)=>me+Number(Ae.flex||1),0),ie=a.useCallback(me=>{const Ae=c===String(me)&&u==="asc"?"desc":"asc";f({page:r,pageSize:s,sortBy:String(me),sortDirection:Ae})},[c,u,r,s,f]),xe=a.useCallback(me=>{const Ae=Math.max(1,Math.min(me,Ee));f({page:Ae,pageSize:s,sortBy:c,sortDirection:u})},[Ee,s,c,u,f]),we=a.useCallback(me=>{f({page:1,pageSize:me,sortBy:c,sortDirection:u})},[c,u,f]),te=a.useCallback((me,Ae)=>{Y(Fe=>{let le={...Fe,[me]:Ae};return v&&(le=v(le,me,Ae)),le})},[v]),Q=a.useCallback(async()=>{if(!p)return;const Ae=n.filter(Fe=>Fe.required===!0).filter(Fe=>{if(Fe.key==="select")return!1;const le=F[Fe.key];return le==null||le===""});if(Ae.length>0){E(Ae.map(Fe=>Fe.header));return}K(!0);try{await p(F),k(!1),Y(L),f({page:r,pageSize:s,sortBy:c,sortDirection:u})}catch(Fe){console.error("Error adding item:",Fe)}finally{K(!1)}},[p,n,F,L,r,s,c,u,f]),ye=a.useCallback(async()=>{if(!(!b||!C)){K(!0);try{await b(C.id),$(!1),T(null),f({page:r,pageSize:s,sortBy:c,sortDirection:u})}catch(me){console.error("Error deleting item:",me)}finally{K(!1)}}},[b,C,r,s,c,u,f]),G=a.useCallback(me=>{T(me),$(!0)},[]),ce=a.useCallback(async me=>{if(_){x&&x(me),(C==null?void 0:C.id)===me.id?T(null):T(me);return}const Ae=me.id,Fe=new Set(B),le=new Set(Te);if(Fe.has(Ae))Fe.delete(Ae),le.delete(Ae),de(je=>{const Me={...je};return delete Me[Ae],Me});else if(Fe.add(Ae),le.add(Ae),de(je=>({...je,[Ae]:{}})),m&&!N[Ae]&&!oe.has(Ae)){Se(je=>{const Me=new Set(je);return Me.add(Ae),Me});try{const je=await m(Ae);ne(Me=>({...Me,[Ae]:je}))}catch(je){console.error("Error fetching detailed data:",je)}finally{Se(je=>{const Me=new Set(je);return Me.delete(Ae),Me})}}he(Fe),ke(le)},[_,x,C,B,Te,m,N,oe]),_e=a.useRef(ce);_e.current=ce;const ze=a.useCallback((me,Ae,Fe)=>{de(le=>{let Me={...le[me]||{},[Ae]:Fe};return v&&(Me=v(Me,Ae,Fe)),{...le,[me]:Me}})},[v]),Be=a.useCallback(me=>{if(g&&V[me.id]){const Ae={...me,...V[me.id]},le=n.filter(je=>je.required===!0).filter(je=>{if(je.key==="select")return!1;const Me=Ae[je.key];return Me==null||Me===""});if(le.length>0){E(le.map(je=>je.header));return}B.has(me.id)&&_e.current(me);try{const je=g(me.id,V[me.id]);je instanceof Promise&&je.catch(Me=>{console.error("Error updating item:",Me)})}catch(je){console.error("Error updating item:",je)}}},[g,V,B,n]),Qe=a.useCallback((me,Ae,Fe)=>{if(g)try{const le=g(me.id,{[Ae]:Fe});le instanceof Promise&&le.catch(je=>{console.error("Error quick editing item:",je)})}catch(le){console.error("Error quick editing item:",le)}},[g]);return{visibleColumns:Ce,displayData:H,totalPages:Ee,totalFlex:be,defaults:L,isAddFormOpen:j,setIsAddFormOpen:k,isDeleteDialogOpen:A,setIsDeleteDialogOpen:$,validationErrors:M,setValidationErrors:E,isFilterBuilderOpen:O,setIsFilterBuilderOpen:W,isFormLoading:U,selectedItem:C,setSelectedItem:T,addFormData:F,setAddFormData:Y,editFormData:V,expandedRows:B,loadingDetails:oe,detailedData:N,handleSort:ie,handlePageChange:xe,handlePageSizeChange:we,handleAddFormInputChange:te,handleAdd:Q,handleDelete:ye,openDeleteDialog:G,toggleExpandedRow:ce,handleInlineEditFormChange:ze,handleInlineSave:Be,handleQuickEdit:Qe}}function Q5({columns:e,totalFlex:n,sortBy:r,sortDirection:s,onSort:l}){const c=Re();return d.jsx($s,{children:e.map(u=>{const f=Number(u.flex||1)/n*100,p=r===String(u.key)?s:!1;return d.jsx(H5,{$sortable:u.sortable,$width:`${f}%`,onClick:()=>u.sortable&&l(u.key),children:d.jsxs(I,{display:"flex",alignItems:"center",gap:"xs",children:[d.jsx(Oe,{color:"grey600",fontSize:"medium",fontWeight:"bold",children:u.header}),u.sortable&&p&&(p==="asc"?d.jsx(M1,{size:12,weight:"bold",color:c.colors.primary}):d.jsx(R1,{size:12,weight:"bold",color:c.colors.primary}))]})},String(u.key))})})}function J5({currentPage:e,pageSize:n,total:r,totalPages:s,pageSizeOptions:l,onPageChange:c,onPageSizeChange:u}){return d.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"md",px:"md",py:"sm",children:[d.jsxs(I,{display:"flex",alignItems:"center",gap:"md",children:[d.jsxs(Oe,{fontSize:"small",color:"grey500",children:["Showing ",(e-1)*n+1," to"," ",Math.min(e*n,r)," of ",r," results"]}),d.jsxs(I,{display:"flex",alignItems:"center",gap:"sm",children:[d.jsx(I,{whiteSpace:"nowrap",children:d.jsx(Oe,{fontSize:"small",color:"grey500",children:"Rows per page:"})}),d.jsx(Gn,{value:String(n),onChange:f=>u(Number(f)),options:l.map(f=>({value:String(f),label:String(f)}))})]})]}),d.jsxs(I,{display:"flex",gap:"xs",alignItems:"center",children:[d.jsx(ot,{variant:"outlined",size:"sm",icon:Jl,onClick:()=>c(1),disabled:e===1}),d.jsx(ot,{variant:"outlined",size:"sm",icon:Qi,onClick:()=>c(e-1),disabled:e===1}),d.jsx(I,{px:"sm",children:d.jsxs(Oe,{fontSize:"small",color:"grey700",children:["Page ",e," of ",s]})}),d.jsx(ot,{variant:"outlined",size:"sm",icon:Lr,onClick:()=>c(e+1),disabled:e===s}),d.jsx(ot,{variant:"outlined",size:"sm",icon:ec,onClick:()=>c(s),disabled:e===s})]})]})}const e_=({errors:e,onClose:n})=>e.length===0?null:d.jsx(Ls,{open:e.length>0,onClose:n,bgColor:"white",borderRadius:"lg",padding:"lg",maxWidth:"480px",width:"90%",children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:"md",children:[d.jsx(Oe,{fontSize:"large",fontWeight:"semibold",children:"Required Fields Missing"}),d.jsx(Oe,{fontSize:"small",color:"grey600",children:"Please fill in the following required fields:"}),d.jsx(I,{display:"flex",flexDirection:"column",gap:"xs",children:e.map(r=>d.jsxs(Oe,{fontSize:"small",color:"danger",children:["• ",r]},r))}),d.jsx(I,{display:"flex",justifyContent:"flex-end",mt:"md",children:d.jsx(ot,{text:"OK",onClick:n})})]})});function t_({data:e,columns:n,onAdd:r,onEdit:s,onDelete:l,onView:c,renderExpandedRow:u,onSelectedItemChange:f,title:p="Data Table",addButtonText:g="Add New",deleteButtonText:b="Delete",confirmDeleteMessage:m="Are you sure you want to delete this item?",noDataMessage:x="No data available",total:v,currentPage:_,pageSize:j=10,pageSizeOptions:k=[5,10,20,50,100],sortBy:A,sortDirection:$="asc",onPaginationChange:M,isLoading:E=!1,filters:C=[],onFiltersChange:T,showFilterBuilder:L=!0,onFieldChange:F,expandable:Y=!0,error:U=null}){const{visibleColumns:K,displayData:O,totalPages:W,totalFlex:B,defaults:he,isAddFormOpen:N,setIsAddFormOpen:ne,isDeleteDialogOpen:oe,setIsDeleteDialogOpen:Se,validationErrors:Te,setValidationErrors:ke,isFilterBuilderOpen:V,setIsFilterBuilderOpen:de,isFormLoading:Ce,selectedItem:Ee,setSelectedItem:H,addFormData:be,setAddFormData:ie,editFormData:xe,expandedRows:we,loadingDetails:te,detailedData:Q,handleSort:ye,handlePageChange:G,handlePageSizeChange:ce,handleAddFormInputChange:_e,handleAdd:ze,handleDelete:Be,openDeleteDialog:Qe,toggleExpandedRow:me,handleInlineEditFormChange:Ae,handleInlineSave:Fe,handleQuickEdit:le}=X5({data:e,columns:n,currentPage:_,pageSize:j,total:v,sortBy:A,sortDirection:$,onPaginationChange:M,onAdd:r,onEdit:s,onDelete:l,onView:c,onSelectedItemChange:f,onFieldChange:F,renderExpandedRow:u}),[je,Me]=a.useState(null),qe=!!U&&U!==je,[Je,pt]=a.useState(!1),[wt,Sn]=a.useState(!1),Gt=a.useCallback(nt=>{V&&nt.propertyName==="max-height"&&pt(!0)},[V]),Ft=a.useCallback(nt=>{N&&nt.propertyName==="max-height"&&Sn(!0)},[N]);return a.useEffect(()=>{!V&&Je&&pt(!1)},[V,Je]),a.useEffect(()=>{!N&&wt&&Sn(!1)},[N,wt]),d.jsxs(I,{fw:!0,display:"flex",flexDirection:"column",gap:"md",children:[d.jsxs(I,{display:"flex",alignItems:"center",justifyContent:"space-between",px:"md",py:"sm",children:[d.jsx(Oe,{fontSize:"large",fontWeight:"bold",children:p}),d.jsxs(I,{display:"flex",gap:"sm",children:[L&&T&&d.jsx(ot,{text:`Filters${C&&C.length>0?` (${C.length})`:""}`,variant:"outlined",icon:F1,onClick:()=>{const nt=!V;de(nt),nt&&ne(!1)},color:C&&C.length>0?"primary":void 0}),r&&d.jsx(ot,{text:N?"Cancel":g,icon:D1,variant:N?"outlined":"solid",onClick:()=>{const nt=!N;ne(nt),nt&&(de(!1),ie(he))}})]})]}),d.jsx(Ls,{open:qe,onClose:()=>Me(U??null),bgColor:"white",borderRadius:"lg",padding:"lg",maxWidth:"480px",width:"90%",children:d.jsxs(I,{display:"flex",flexDirection:"column",gap:"md",children:[d.jsx(Oe,{fontSize:"large",fontWeight:"semibold",color:"danger",children:"Error"}),d.jsx(Oe,{fontSize:"small",color:"grey600",children:U}),d.jsx(I,{display:"flex",justifyContent:"flex-end",mt:"md",children:d.jsx(ot,{text:"OK",onClick:()=>Me(U??null)})})]})}),L&&T&&d.jsx(I,{mx:"md",mb:V?"md":"none",bgColor:"backgroundPurple",borderRadius:"md",padding:V?"md":"none",overflow:Je?"visible":"hidden",maxHeight:V?"1000px":"0",opacity:V?1:0,transition:"all 300ms ease-in-out",onTransitionEnd:Gt,children:d.jsx(Hh,{columns:n,filters:C||[],onFiltersChange:T})}),r&&d.jsx(I,{mx:"md",mb:N?"md":"none",bgColor:"grey100",borderRadius:"md",padding:N?"md":"none",overflow:wt?"visible":"hidden",maxHeight:N?"1000px":"0",opacity:N?1:0,transition:"all 300ms ease-in-out",onTransitionEnd:Ft,children:d.jsx(Ph,{columns:n,formData:be,isLoading:Ce,onInputChange:_e,onSubmit:ze,onCancel:()=>{ne(!1),ie(he)}})}),d.jsx(eo,{loading:E,size:"lg",children:d.jsx(I,{borderRadius:"md",borderWidth:"thin",borderColor:"grey300",overflow:"hidden",fw:!0,children:d.jsxs(D5,{children:[d.jsx(P5,{children:d.jsx(Q5,{columns:K,totalFlex:B,sortBy:A,sortDirection:$,onSort:ye})}),d.jsx(W5,{children:O.length===0?d.jsx($s,{children:d.jsx(N5,{colSpan:K.length,children:x})}):Y===!1?O.map(nt=>d.jsx($s,{$isSelected:(Ee==null?void 0:Ee.id)===nt.id,$isClickable:!!f,onClick:()=>{H(nt),f==null||f(nt)},children:K.map(nn=>{const Qn=nt[nn.key],Jn=`${Number(nn.flex||1)/B*100}%`;return d.jsx(Lh,{width:Jn,children:nn.render?nn.render(Qn,nt):mc(Qn,nn)},String(nn.key))})},String(nt.id))):O.map(nt=>d.jsx(Dh,{item:nt,columns:K,allColumns:n,expandedRows:we,editFormData:xe,loadingDetails:te,isFormLoading:Ce,isEditable:!!s,isExpandAccordion:!u,isSelected:(Ee==null?void 0:Ee.id)===nt.id,onToggleExpanded:me,onEditFormChange:Ae,onSave:Fe,onDelete:l?Qe:void 0,onQuickEdit:s?le:void 0},String(nt.id)))})]})})}),(W>1||k.length>1)&&d.jsx(J5,{currentPage:_,pageSize:j,total:v,totalPages:W,pageSizeOptions:k,onPageChange:G,onPageSizeChange:ce}),d.jsx(Wh,{open:oe,onOpenChange:nt=>{Se(nt),nt||H(null)},onConfirm:Be,isLoading:Ce,message:m,deleteButtonText:b}),d.jsx(e_,{errors:Te,onClose:()=>ke([])}),Ee&&u&&u(Ee,Q[Ee==null?void 0:Ee.id])]})}const n_=({children:e,description:n,placement:r,backgroundColor:s,color:l})=>{const c=Re(),u=c.__hd__.tooltip,f=r??u.defaultPlacement,p=s??u.defaultBackgroundColor,g=l??u.defaultTextColor,b=a.useRef(null),m=Ts(b),x=u.positioning.placements[f];return d.jsxs(I,{display:"inline-block",position:"relative",ref:b,children:[e,m&&d.jsx(I,{position:"absolute",bgColor:p,p:u.container.padding,r:u.container.borderRadius,boxShadow:u.container.shadow,zIndex:c.zIndex.getZIndex("AIC_Kits_Tooltip"),width:"max-content",maxWidth:u.container.maxWidth,...x,children:d.jsx(Oe,{color:g,fontSize:u.text.fontSize,children:n})})]})},r_=On`
|
|
729
|
+
from {
|
|
730
|
+
opacity: 0;
|
|
731
|
+
}
|
|
732
|
+
to {
|
|
733
|
+
opacity: 1;
|
|
734
|
+
}
|
|
735
|
+
`,i_=pe(I)`
|
|
471
736
|
position: relative;
|
|
472
737
|
display: block;
|
|
473
|
-
${({$width:e,$minWidth:n,$maxWidth:
|
|
474
|
-
`,
|
|
738
|
+
${({$width:e,$minWidth:n,$maxWidth:r})=>{const s=e&&typeof e=="object";if(s||n&&typeof n=="object"||r&&typeof r=="object"){const p={};return typeof e=="string"?p.width=e:typeof e=="number"?(p.width="100%",r===void 0&&(p.maxWidth=`${e}px`)):s&&(p.width="100%",r===void 0&&(p.maxWidth=e)),typeof n=="number"?p.minWidth=`${n}px`:(typeof n=="string"||n)&&(p.minWidth=n),r!==void 0&&(typeof r=="string"?r==="auto"?p.maxWidth="none":p.maxWidth=r:typeof r=="number"?p.maxWidth=`${r}px`:p.maxWidth=r),ui(p)}const f={};return typeof e=="string"?e==="auto"||e==="100%"||/^\d+(\.\d+)?(px|%|em|rem|vw|vh)$/.test(e)?f.width=e:f.width="100%":typeof e=="number"&&(f.width="100%",r===void 0&&(f.maxWidth=`${e}px`)),n!==void 0&&(typeof n=="number"?f.minWidth=`${n}px`:typeof n=="string"&&(f.minWidth=n)),r!==void 0&&(typeof r=="string"?r==="auto"?f.maxWidth="none":f.maxWidth=r:typeof r=="number"&&(f.maxWidth=`${r}px`)),Ct(f)}}
|
|
739
|
+
`,o_=pe.svg`
|
|
475
740
|
display: block;
|
|
476
741
|
flex-shrink: 0;
|
|
477
742
|
width: ${({$width:e})=>e===void 0?"100%":typeof e=="number"?`${e}px`:e};
|
|
478
743
|
height: ${({$height:e})=>e?`${e}px`:"auto"};
|
|
479
|
-
`;
|
|
744
|
+
`;pe.rect`
|
|
480
745
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
481
|
-
animation: ${
|
|
746
|
+
animation: ${r_} ${({$animationDuration:e})=>e}ms ease-out;
|
|
482
747
|
transition: opacity 0.3s ease;
|
|
483
748
|
cursor: pointer;
|
|
484
749
|
|
|
485
750
|
&:hover {
|
|
486
751
|
opacity: 0.8;
|
|
487
752
|
}
|
|
488
|
-
`;const
|
|
753
|
+
`;const wf=pe.line`
|
|
489
754
|
stroke: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
490
755
|
stroke-width: 1;
|
|
491
756
|
shape-rendering: crispEdges;
|
|
492
|
-
`,
|
|
757
|
+
`,ds=pe.text`
|
|
493
758
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
494
759
|
font-size: 12px;
|
|
495
760
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
496
|
-
`,
|
|
761
|
+
`,s_=pe.line`
|
|
497
762
|
stroke: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
498
763
|
stroke-width: 1;
|
|
499
764
|
stroke-dasharray: 2, 2;
|
|
500
765
|
opacity: 0.3;
|
|
501
|
-
`,
|
|
766
|
+
`,a_=pe.div`
|
|
502
767
|
position: absolute;
|
|
503
768
|
left: ${({$left:e})=>e}px;
|
|
504
769
|
top: ${({$top:e})=>e}px;
|
|
@@ -513,12 +778,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
513
778
|
pointer-events: none;
|
|
514
779
|
z-index: 1000;
|
|
515
780
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
516
|
-
`,
|
|
781
|
+
`,l_=pe.div`
|
|
517
782
|
font-weight: 600;
|
|
518
783
|
margin-bottom: 4px;
|
|
519
|
-
`,
|
|
784
|
+
`,c_=pe.div`
|
|
520
785
|
font-weight: 400;
|
|
521
|
-
`,
|
|
786
|
+
`,u_=({data:e,width:n=400,minWidth:r=200,maxWidth:s,height:l=300,chartMargin:c,color:u,size:f,variant:p,showGrid:g=!0,showXAxis:b=!0,showYAxis:m=!0,orientation:x="vertical",showTooltip:v=!0,testID:_="bar-chart",...j})=>{var te,Q,ye;const k=Re(),A=(te=k.__hd__)==null?void 0:te.barChart,$=a.useRef(null),[M,E]=a.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const G=n.match(/^(\d+(?:\.\d+)?)px$/);if(G)return parseFloat(G[1])}return 400}),[C,T]=a.useState(40),[L,F]=a.useState(null),[Y,U]=a.useState(null),K=p||(A==null?void 0:A.defaultVariant)||"default",O=f||(A==null?void 0:A.defaultSize)||"md";a.useEffect(()=>{if(!m||x!=="vertical"||(c==null?void 0:c.left)!==void 0)return;const G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.style.position="absolute",G.style.visibility="hidden",G.style.pointerEvents="none",document.body.appendChild(G);const ce=document.createElementNS("http://www.w3.org/2000/svg","text");ce.style.fontSize="12px",ce.style.fontFamily=k.fonts.neutral||"sans-serif",G.appendChild(ce);const _e=e.map(me=>me.value),ze=_e.length>0?Math.max(..._e):100,Be=5;let Qe=0;for(let me=0;me<Be;me++){const Ae=ze/(Be-1)*me;ce.textContent=Math.round(Ae).toString();const Fe=ce.getBBox();Qe=Math.max(Qe,Fe.width)}document.body.removeChild(G),T(Math.ceil(Qe)+15)},[e,k.fonts.neutral,m,x,c==null?void 0:c.left]),a.useEffect(()=>{if(!m||x!=="horizontal"||(c==null?void 0:c.left)!==void 0)return;const G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.style.position="absolute",G.style.visibility="hidden",G.style.pointerEvents="none",document.body.appendChild(G);const ce=document.createElementNS("http://www.w3.org/2000/svg","text");ce.style.fontSize="12px",ce.style.fontFamily=k.fonts.neutral||"sans-serif",G.appendChild(ce);let _e=0;e.forEach(ze=>{ce.textContent=ze.label;const Be=ce.getBBox();_e=Math.max(_e,Be.width)}),document.body.removeChild(G),T(Math.ceil(_e)+15)},[e,k.fonts.neutral,m,x,c==null?void 0:c.left]);const W={top:(c==null?void 0:c.top)??20,right:(c==null?void 0:c.right)??20,bottom:(c==null?void 0:c.bottom)??40,left:(c==null?void 0:c.left)??C};Ir(()=>{const G=$.current;if(!G)return;const ce=()=>{if(typeof n=="number"){E(n);return}if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const Be=n.match(/^(\d+(?:\.\d+)?)px$/);if(Be){E(parseFloat(Be[1]));return}}const ze=G.clientWidth;ze>0&&E(ze)};ce();let _e;return typeof ResizeObserver<"u"?(_e=new ResizeObserver(ce),_e.observe(G)):window.addEventListener("resize",ce),()=>{_e?_e.disconnect():window.removeEventListener("resize",ce)}},[n,r,s]);const B=(()=>{if(typeof l=="number")return l;if(typeof l=="string"){const G=l.match(/^(\d+(?:\.\d+)?)px$/);if(G)return parseFloat(G[1])}return 300})(),{barRadius:he=4,axisColor:N="grey600",gridColor:ne="grey200",labelColor:oe="grey600"}=((Q=A==null?void 0:A.sizes)==null?void 0:Q[O])||{},{defaultBarColor:Se="primary"}=((ye=A==null?void 0:A.variants)==null?void 0:ye[K])||{},Te=u||Se,ke=Math.max(0,M-W.left-W.right),V=Math.max(0,B-W.top-W.bottom),de=e.map(G=>G.value),Ce=de.length>0?Math.max(...de):100,Ee=.6,H=x==="vertical"?ke/Math.max(e.length,1):V/Math.max(e.length,1),be=Math.max(H*Ee,1),ie=G=>{const ce=Ce||100,_e=G||0;return x==="vertical"?_e/ce*V:_e/ce*ke},xe=a.useMemo(()=>Array.from({length:5},(ce,_e)=>{const ze=Ce/4*_e,Be=Ce||100,Qe=ze||0,me=x==="vertical"?V-Qe/Be*V:Qe/Be*ke;return{value:ze,position:me}}),[Ce,V,ke,x]),we=(G,ce)=>{const ze=Math.floor(ce/7);if(G.length<=ze)return G;const Be=Math.max(1,ze-3);return G.substring(0,Be)+"..."};return d.jsxs(i_,{ref:$,"data-testid":`${_}-container`,$width:n,$minWidth:r,$maxWidth:s,...j,children:[d.jsxs(o_,{$width:M,$height:B,viewBox:`0 0 ${M} ${B}`,role:"img","aria-label":"Bar chart","data-testid":`${_}-svg`,children:[d.jsx("title",{children:"Bar chart"}),d.jsxs("g",{transform:`translate(${W.left}, ${W.top})`,children:[g&&xe.map((G,ce)=>d.jsx(s_,{$colorKey:ne,x1:x==="vertical"?0:G.position,y1:x==="vertical"?G.position:0,x2:x==="vertical"?ke:G.position,y2:x==="vertical"?G.position:V,"data-testid":`${_}-grid-line-${ce}`},ce)),e.map((G,ce)=>{const _e=ie(G.value);let ze,Be,Qe,me;if(x==="vertical")ze=ce*H+(H-be)/2,Be=V-_e,Qe=be,me=_e;else{const qe=ce*H;ze=0,Be=qe+(H-be)/2,Qe=_e,me=be}const Ae=2,Fe=Math.max(Qe,Ae),le=Math.max(me,Ae),je=G.color||Te,Me=k.colors[je]||je||"#6949FF";return d.jsx("rect",{x:ze,y:Be,width:Fe,height:le,fill:Me,rx:Math.min(he,le/2,Fe/2),ry:Math.min(he,le/2,Fe/2),opacity:L===ce?1:.9,cursor:"pointer",onMouseEnter:qe=>{var Je;if(F(ce),v){const pt=qe.currentTarget.getBoundingClientRect(),wt=(Je=$.current)==null?void 0:Je.getBoundingClientRect();wt&&U({x:pt.left-wt.left+pt.width/2,y:pt.top-wt.top})}qe.currentTarget.style.filter="brightness(1.1)"},onMouseLeave:qe=>{F(null),U(null),qe.currentTarget.style.filter="brightness(1)"},"data-testid":`${_}-bar-${ce}`},ce)}),b&&d.jsxs(d.Fragment,{children:[d.jsx(wf,{$colorKey:N,x1:0,y1:V,x2:ke,y2:V,"data-testid":`${_}-x-axis`}),x==="vertical"&&e.map((G,ce)=>{const _e=ce*H+H/2,ze=V+20,Be=H*.9,Qe=we(G.label,Be);return d.jsxs(ds,{x:_e,y:ze,$colorKey:oe,textAnchor:"middle","data-testid":`${_}-x-label-${ce}`,children:[G.label!==Qe&&d.jsx("title",{children:G.label}),Qe]},ce)}),x==="horizontal"&&xe.map((G,ce)=>d.jsxs("g",{children:[d.jsx("line",{x1:G.position,y1:V,x2:G.position,y2:V+5,stroke:k.colors[N]||N,strokeWidth:1}),d.jsx(ds,{x:G.position,y:V+20,$colorKey:oe,textAnchor:"middle","data-testid":`${_}-x-value-${ce}`,children:Math.round(G.value)})]},`x-tick-${ce}`))]}),m&&d.jsxs(d.Fragment,{children:[d.jsx(wf,{$colorKey:N,x1:0,y1:0,x2:0,y2:V,"data-testid":`${_}-y-axis`}),x==="vertical"&&xe.map((G,ce)=>d.jsxs("g",{children:[d.jsx("line",{x1:-5,y1:G.position,x2:0,y2:G.position,stroke:k.colors[N]||N,strokeWidth:1}),d.jsx(ds,{x:-10,y:G.position,$colorKey:oe,textAnchor:"end",dominantBaseline:"middle","data-testid":`${_}-y-value-${ce}`,children:Math.round(G.value)})]},`y-tick-${ce}`)),x==="horizontal"&&e.map((G,ce)=>{const _e=ce*H+H/2;return d.jsx(ds,{x:-10,y:_e,$colorKey:oe,textAnchor:"end",dominantBaseline:"middle","data-testid":`${_}-y-label-${ce}`,children:G.label},`y-cat-${ce}`)})]})]})]}),v&&L!==null&&Y&&d.jsxs(a_,{$left:Y.x,$top:Y.y-10,"data-testid":`${_}-tooltip`,children:[d.jsx(l_,{children:e[L].label}),d.jsxs(c_,{children:["Value: ",e[L].value]})]})]})},d_=On`
|
|
522
787
|
from {
|
|
523
788
|
opacity: 0;
|
|
524
789
|
transform: scale(0.8);
|
|
@@ -527,24 +792,24 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
527
792
|
opacity: 1;
|
|
528
793
|
transform: scale(1);
|
|
529
794
|
}
|
|
530
|
-
`,
|
|
795
|
+
`,f_=pe(I)`
|
|
531
796
|
position: relative;
|
|
532
797
|
display: ${({$showLegend:e,$legendPosition:n})=>e?"flex":"inline-flex"};
|
|
533
798
|
flex-direction: ${({$legendPosition:e})=>e==="left"?"row-reverse":e==="right"?"row":"column"};
|
|
534
799
|
align-items: ${({$legendPosition:e})=>"center"};
|
|
535
800
|
justify-content: center;
|
|
536
801
|
gap: 20px;
|
|
537
|
-
${({$width:e,$height:n,$minWidth:
|
|
538
|
-
`,
|
|
802
|
+
${({$width:e,$height:n,$minWidth:r,$maxWidth:s,$minHeight:l,$maxHeight:c})=>{const u=e&&typeof e=="object",f=n&&typeof n=="object";if(u||f||r&&typeof r=="object"||s&&typeof s=="object"||l&&typeof l=="object"||c&&typeof c=="object"){const _={};return typeof e=="string"?_.width=e:typeof e=="number"?(_.width="100%",s===void 0&&(_.maxWidth=`${e}px`)):u&&(_.width="100%",s===void 0&&(_.maxWidth=e)),typeof n=="string"?_.height=n:typeof n=="number"?(_.height="auto",c===void 0&&(_.maxHeight=`${n}px`)):f&&(_.height="auto",c===void 0&&(_.maxHeight=n)),typeof r=="number"?_.minWidth=`${r}px`:(typeof r=="string"||r)&&(_.minWidth=r),s!==void 0&&(typeof s=="string"?s==="auto"?_.maxWidth="none":_.maxWidth=s:typeof s=="number"?_.maxWidth=`${s}px`:_.maxWidth=s),typeof l=="number"?_.minHeight=`${l}px`:(typeof l=="string"||l)&&(_.minHeight=l),c!==void 0&&(typeof c=="string"?c==="auto"?_.maxHeight="none":_.maxHeight=c:typeof c=="number"?_.maxHeight=`${c}px`:_.maxHeight=c),ui(_)}const v={};return typeof e=="string"?e==="auto"||e==="100%"||/^\d+(\.\d+)?(px|%|em|rem|vw|vh)$/.test(e)?v.width=e:v.width="100%":typeof e=="number"&&(v.width="100%",s===void 0&&(v.maxWidth=`${e}px`)),typeof n=="string"?n==="auto"||n==="100%"||/^\d+(\.\d+)?(px|%|em|rem|vw|vh)$/.test(n)?v.height=n:v.height="auto":typeof n=="number"&&(v.height="auto",c===void 0&&(v.maxHeight=`${n}px`)),r!==void 0&&(typeof r=="number"?v.minWidth=`${r}px`:typeof r=="string"&&(v.minWidth=r)),s!==void 0&&(typeof s=="string"?s==="auto"?v.maxWidth="none":v.maxWidth=s:typeof s=="number"&&(v.maxWidth=`${s}px`)),l!==void 0&&(typeof l=="number"?v.minHeight=`${l}px`:typeof l=="string"&&(v.minHeight=l)),c!==void 0&&(typeof c=="string"?c==="auto"?v.maxHeight="none":v.maxHeight=c:typeof c=="number"&&(v.maxHeight=`${c}px`)),Ct(v)}}
|
|
803
|
+
`,h_=pe.svg`
|
|
539
804
|
display: block;
|
|
540
805
|
flex-shrink: 0;
|
|
541
806
|
width: ${({$width:e})=>e===void 0?"100%":typeof e=="number"?`${e}px`:e};
|
|
542
807
|
height: ${({$height:e})=>e?`${e}px`:"auto"};
|
|
543
|
-
`,
|
|
808
|
+
`,p_=pe.path`
|
|
544
809
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
545
810
|
stroke: ${({theme:e,$strokeColorKey:n})=>e.colors[n]||n};
|
|
546
811
|
stroke-width: ${({$strokeWidth:e})=>e}px;
|
|
547
|
-
animation: ${
|
|
812
|
+
animation: ${d_} ${({$animationDuration:e})=>e}ms ease-out;
|
|
548
813
|
transform: translate(0, 0);
|
|
549
814
|
cursor: pointer;
|
|
550
815
|
transition: transform 0.2s ease, filter 0.2s ease;
|
|
@@ -553,7 +818,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
553
818
|
transform: scale(1.1);
|
|
554
819
|
filter: brightness(1.1);
|
|
555
820
|
}
|
|
556
|
-
`,
|
|
821
|
+
`,g_=pe.text`
|
|
557
822
|
fill: white;
|
|
558
823
|
font-size: ${({$fontSize:e})=>e}px;
|
|
559
824
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
@@ -561,14 +826,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
561
826
|
pointer-events: none;
|
|
562
827
|
user-select: none;
|
|
563
828
|
filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5));
|
|
564
|
-
`,
|
|
829
|
+
`,m_=pe(I)`
|
|
565
830
|
display: flex;
|
|
566
831
|
flex-direction: ${({$position:e})=>e==="left"||e==="right"?"column":"row"};
|
|
567
832
|
flex-wrap: ${({$position:e})=>e==="top"||e==="bottom"?"wrap":"nowrap"};
|
|
568
833
|
gap: ${({$spacing:e})=>e}px;
|
|
569
834
|
padding: ${({$spacing:e})=>e}px;
|
|
570
|
-
${({$position:e})=>e==="top"?
|
|
571
|
-
`,
|
|
835
|
+
${({$position:e})=>e==="top"?Ct`margin-bottom: 20px;`:e==="bottom"?Ct`margin-top: 20px;`:e==="left"?Ct`margin-right: 20px;`:e==="right"?Ct`margin-left: 20px;`:""}
|
|
836
|
+
`,y_=pe(I)`
|
|
572
837
|
display: flex;
|
|
573
838
|
align-items: center;
|
|
574
839
|
gap: ${({$spacing:e})=>e/2}px;
|
|
@@ -578,43 +843,43 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
578
843
|
&:hover {
|
|
579
844
|
opacity: 0.8;
|
|
580
845
|
}
|
|
581
|
-
`,
|
|
846
|
+
`,b_=pe(I)`
|
|
582
847
|
width: ${({$size:e})=>e}px;
|
|
583
848
|
height: ${({$size:e})=>e}px;
|
|
584
849
|
background-color: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
585
850
|
border-radius: 2px;
|
|
586
851
|
flex-shrink: 0;
|
|
587
|
-
`,
|
|
852
|
+
`,x_=pe.span`
|
|
588
853
|
font-size: ${({$fontSize:e})=>e}px;
|
|
589
854
|
color: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
590
855
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
591
856
|
white-space: nowrap;
|
|
592
|
-
`,
|
|
593
|
-
M ${
|
|
594
|
-
A ${s} ${s} 0 ${
|
|
595
|
-
L ${v} ${
|
|
596
|
-
A ${
|
|
857
|
+
`,v_=(e,n,r,s)=>{const l=e*Math.PI/180,c=n*Math.PI/180,u=Math.cos(l)*s,f=Math.sin(l)*s,p=Math.cos(c)*s,g=Math.sin(c)*s,b=n-e>180?1:0;if(r>0){const m=Math.cos(l)*r,x=Math.sin(l)*r,v=Math.cos(c)*r,_=Math.sin(c)*r;return`
|
|
858
|
+
M ${u} ${f}
|
|
859
|
+
A ${s} ${s} 0 ${b} 1 ${p} ${g}
|
|
860
|
+
L ${v} ${_}
|
|
861
|
+
A ${r} ${r} 0 ${b} 0 ${m} ${x}
|
|
597
862
|
Z
|
|
598
863
|
`}else return`
|
|
599
864
|
M 0 0
|
|
600
|
-
L ${
|
|
601
|
-
A ${s} ${s} 0 ${
|
|
865
|
+
L ${u} ${f}
|
|
866
|
+
A ${s} ${s} 0 ${b} 1 ${p} ${g}
|
|
602
867
|
Z
|
|
603
|
-
`},
|
|
868
|
+
`},w_=({data:e,width:n=400,height:r=400,minWidth:s=200,maxWidth:l,minHeight:c=200,maxHeight:u,innerRadius:f=0,outerRadius:p,padAngle:g=0,size:b,variant:m,showLabels:x=!1,showLegend:v=!0,legendPosition:_="right",animationDuration:j=300,startAngle:k=-90,testID:A="pie-chart",...$})=>{var H,be;const E=Re().__hd__.pieChart,C=a.useRef(null),[T,L]=a.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ie=n.match(/^(\d+(?:\.\d+)?)px$/);if(ie)return parseFloat(ie[1])}return 400}),[F,Y]=a.useState(()=>{if(typeof r=="number")return r;if(typeof r=="string"){const ie=r.match(/^(\d+(?:\.\d+)?)px$/);if(ie)return parseFloat(ie[1])}return 400}),U=m||(E==null?void 0:E.defaultVariant)||"default",K=b||(E==null?void 0:E.defaultSize)||"md";Ir(()=>{const ie=C.current;if(!ie)return;const xe=()=>{if(typeof n=="number"){L(n);return}if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const Q=n.match(/^(\d+(?:\.\d+)?)px$/);if(Q){L(parseFloat(Q[1]));return}}const te=ie.clientWidth;te>0&&L(te)};xe();let we;return typeof ResizeObserver<"u"?(we=new ResizeObserver(xe),we.observe(ie)):window.addEventListener("resize",xe),()=>{we?we.disconnect():window.removeEventListener("resize",xe)}},[n,s,l]),Ir(()=>{const ie=C.current;if(!ie)return;const xe=()=>{if(typeof r=="number"){Y(r);return}if(typeof r=="string"&&/^\d+(?:\.\d+)?px$/.test(r)){const Q=r.match(/^(\d+(?:\.\d+)?)px$/);if(Q){Y(parseFloat(Q[1]));return}}const te=ie.clientHeight;te>0&&Y(te)};xe();let we;return typeof ResizeObserver<"u"?(we=new ResizeObserver(xe),we.observe(ie)):window.addEventListener("resize",xe),()=>{we?we.disconnect():window.removeEventListener("resize",xe)}},[r,c,u]);const{strokeWidth:O=1,strokeColor:W="white",labelColor:B="grey600",labelFontSize:he=12,legendFontSize:N=14,legendSpacing:ne=8}=((H=E==null?void 0:E.sizes)==null?void 0:H[K])||{},{defaultColors:oe=["primary","secondary","success","warning","danger"]}=((be=E==null?void 0:E.variants)==null?void 0:be[U])||{},Se=Math.min(T,F),Te=Se/2,ke=Se/2,V=p||Se/2-20,de=f*V,Ce=a.useMemo(()=>{const ie=e.reduce((we,te)=>we+te.value,0);let xe=k;return e.map((we,te)=>{const Q=we.value/ie*100,ye=we.value/ie*360-g,G={...we,percentage:Q,startAngle:xe,endAngle:xe+ye,midAngle:xe+ye/2,color:we.color||oe[te%oe.length]};return xe+=ye+g,G})},[e,k,g,oe]),Ee=(ie,xe)=>{const we=ie*Math.PI/180,te=de>0?(de+V)/2:xe*.7;return{x:Math.cos(we)*te,y:Math.sin(we)*te}};return d.jsxs(f_,{ref:C,$legendPosition:_,$showLegend:v,$width:n,$height:r,$minWidth:s,$maxWidth:l||n,$minHeight:c,$maxHeight:u||r,"data-testid":`${A}-container`,...$,children:[d.jsxs(h_,{$width:Se,$height:Se,viewBox:`0 0 ${Se} ${Se}`,role:"img","aria-label":"Pie chart","data-testid":`${A}-svg`,children:[d.jsx("title",{children:"Pie chart"}),d.jsx("g",{transform:`translate(${Te}, ${ke})`,children:Ce.map((ie,xe)=>{const we=v_(ie.startAngle,ie.endAngle,de,V),te=Ee(ie.midAngle,V);return d.jsxs("g",{children:[d.jsx(p_,{d:we,$colorKey:ie.color,$strokeWidth:O,$strokeColorKey:W,$animationDuration:j,$startAngle:ie.startAngle,$endAngle:ie.endAngle,"data-testid":`${A}-slice-${xe}`}),x&&d.jsxs(g_,{x:te.x,y:te.y,$colorKey:B,$fontSize:he,textAnchor:"middle",dominantBaseline:"middle","data-testid":`${A}-label-${xe}`,children:[ie.percentage.toFixed(1),"%"]})]},xe)})})]}),v&&d.jsx(m_,{$position:_,$spacing:ne,"data-testid":`${A}-legend`,children:Ce.map((ie,xe)=>d.jsxs(y_,{$spacing:ne,"data-testid":`${A}-legend-item-${xe}`,children:[d.jsx(b_,{$colorKey:ie.color,$size:N}),d.jsxs(x_,{$fontSize:N,$colorKey:B,children:[ie.label," (",ie.percentage.toFixed(1),"%)"]})]},xe))})]})},__=On`
|
|
604
869
|
from {
|
|
605
870
|
stroke-dashoffset: 1000;
|
|
606
871
|
}
|
|
607
872
|
to {
|
|
608
873
|
stroke-dashoffset: 0;
|
|
609
874
|
}
|
|
610
|
-
`,
|
|
875
|
+
`,S_=On`
|
|
611
876
|
from {
|
|
612
877
|
opacity: 0;
|
|
613
878
|
}
|
|
614
879
|
to {
|
|
615
880
|
opacity: 0.3;
|
|
616
881
|
}
|
|
617
|
-
`,
|
|
882
|
+
`,C_=On`
|
|
618
883
|
0% {
|
|
619
884
|
transform: scale(0);
|
|
620
885
|
opacity: 0;
|
|
@@ -627,16 +892,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
627
892
|
transform: scale(1);
|
|
628
893
|
opacity: 1;
|
|
629
894
|
}
|
|
630
|
-
`,
|
|
895
|
+
`,E_=pe(I)`
|
|
631
896
|
position: relative;
|
|
632
897
|
display: block;
|
|
633
|
-
${({$width:e,$minWidth:n,$maxWidth:
|
|
634
|
-
`,$
|
|
898
|
+
${({$width:e,$minWidth:n,$maxWidth:r,$height:s,$minHeight:l,$maxHeight:c})=>{const u=e&&typeof e=="object",f=n&&typeof n=="object",p=r&&typeof r=="object",g=s&&typeof s=="object";if(u||f||p||g||l&&typeof l=="object"||c&&typeof c=="object"){const _={};return typeof e=="string"?_.width=e:typeof e=="number"?(_.width="100%",r===void 0&&(_.maxWidth=`${e}px`)):u&&(_.width="100%",r===void 0&&(_.maxWidth=e)),typeof n=="number"?_.minWidth=`${n}px`:(typeof n=="string"||n)&&(_.minWidth=n),r!==void 0&&(typeof r=="string"?r==="auto"?_.maxWidth="none":_.maxWidth=r:typeof r=="number"?_.maxWidth=`${r}px`:_.maxWidth=r),typeof s=="string"?_.height=s:typeof s=="number"?(_.height="auto",c===void 0&&(_.maxHeight=`${s}px`)):g&&(_.height="auto",c===void 0&&(_.maxHeight=s)),typeof l=="number"?_.minHeight=`${l}px`:(typeof l=="string"||l)&&(_.minHeight=l),c!==void 0&&(typeof c=="string"?c==="auto"?_.maxHeight="none":_.maxHeight=c:typeof c=="number"?_.maxHeight=`${c}px`:_.maxHeight=c),ui(_)}const v={};return typeof e=="string"?e==="auto"||e==="100%"||/^\d+(\.\d+)?(px|%|em|rem|vw|vh)$/.test(e)?v.width=e:v.width="100%":typeof e=="number"&&(v.width="100%",r===void 0&&(v.maxWidth=`${e}px`)),n!==void 0&&(typeof n=="number"?v.minWidth=`${n}px`:typeof n=="string"&&(v.minWidth=n)),r!==void 0&&(typeof r=="string"?r==="auto"?v.maxWidth="none":v.maxWidth=r:typeof r=="number"&&(v.maxWidth=`${r}px`)),typeof s=="string"?s==="auto"||s==="100%"||/^\d+(\.\d+)?(px|%|em|rem|vw|vh)$/.test(s)?v.height=s:v.height="auto":typeof s=="number"&&(v.height="auto",c===void 0&&(v.maxHeight=`${s}px`)),l!==void 0&&(typeof l=="number"?v.minHeight=`${l}px`:typeof l=="string"&&(v.minHeight=l)),c!==void 0&&(typeof c=="string"?c==="auto"?v.maxHeight="none":v.maxHeight=c:typeof c=="number"&&(v.maxHeight=`${c}px`)),Ct(v)}}
|
|
899
|
+
`,$_=pe.svg`
|
|
635
900
|
display: block;
|
|
636
901
|
flex-shrink: 0;
|
|
637
902
|
width: ${({$width:e})=>e===void 0?"100%":typeof e=="number"?`${e}px`:e};
|
|
638
903
|
height: ${({$height:e})=>e?`${e}px`:"auto"};
|
|
639
|
-
`,
|
|
904
|
+
`,k_=pe.path`
|
|
640
905
|
fill: none;
|
|
641
906
|
stroke: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
642
907
|
stroke-width: ${({$strokeWidth:e})=>e}px;
|
|
@@ -645,7 +910,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
645
910
|
stroke-linejoin: round;
|
|
646
911
|
stroke-dasharray: 1000;
|
|
647
912
|
stroke-dashoffset: 1000;
|
|
648
|
-
animation: ${
|
|
913
|
+
animation: ${__} ${({$animationDuration:e})=>e}ms ease-out forwards;
|
|
649
914
|
transition: stroke 0.3s ease;
|
|
650
915
|
cursor: pointer;
|
|
651
916
|
transition: opacity 0.2s ease, filter 0.2s ease;
|
|
@@ -654,18 +919,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
654
919
|
opacity: 1;
|
|
655
920
|
filter: brightness(1.1);
|
|
656
921
|
}
|
|
657
|
-
`,
|
|
922
|
+
`,A_=pe.path`
|
|
658
923
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
659
924
|
opacity: 0;
|
|
660
|
-
animation: ${
|
|
925
|
+
animation: ${S_} ${({$animationDuration:e})=>e}ms ease-out forwards;
|
|
661
926
|
animation-delay: ${({$animationDuration:e})=>e/2}ms;
|
|
662
|
-
`,
|
|
927
|
+
`,j_=pe.circle`
|
|
663
928
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
664
929
|
stroke: white;
|
|
665
930
|
stroke-width: 2px;
|
|
666
931
|
cursor: pointer;
|
|
667
932
|
transform-origin: center;
|
|
668
|
-
animation: ${
|
|
933
|
+
animation: ${C_} ${({$animationDuration:e})=>e/3}ms ease-out forwards;
|
|
669
934
|
animation-delay: ${({$animationDuration:e})=>e}ms;
|
|
670
935
|
opacity: 0;
|
|
671
936
|
|
|
@@ -673,21 +938,21 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
673
938
|
transform: scale(1.5);
|
|
674
939
|
filter: brightness(1.2);
|
|
675
940
|
}
|
|
676
|
-
`,
|
|
941
|
+
`,_f=pe.line`
|
|
677
942
|
stroke: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
678
943
|
stroke-width: 1;
|
|
679
944
|
shape-rendering: crispEdges;
|
|
680
|
-
`,
|
|
945
|
+
`,Sf=pe.text`
|
|
681
946
|
fill: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
682
947
|
font-size: ${({$fontSize:e})=>e}px;
|
|
683
948
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
684
949
|
user-select: none;
|
|
685
|
-
`,Cf=
|
|
950
|
+
`,Cf=pe.line`
|
|
686
951
|
stroke: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
687
952
|
stroke-width: 1;
|
|
688
953
|
stroke-dasharray: 2, 2;
|
|
689
954
|
opacity: 0.3;
|
|
690
|
-
`,
|
|
955
|
+
`,Ef=pe(I)`
|
|
691
956
|
display: flex;
|
|
692
957
|
flex-direction: row;
|
|
693
958
|
flex-wrap: wrap;
|
|
@@ -696,7 +961,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
696
961
|
justify-content: center;
|
|
697
962
|
margin-bottom: ${({$position:e})=>e==="top"?"10px":"0"};
|
|
698
963
|
margin-top: ${({$position:e})=>e==="bottom"?"10px":"0"};
|
|
699
|
-
|
|
964
|
+
`,$f=pe(I)`
|
|
700
965
|
display: flex;
|
|
701
966
|
align-items: center;
|
|
702
967
|
gap: ${({$spacing:e})=>e/2}px;
|
|
@@ -706,18 +971,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
706
971
|
&:hover {
|
|
707
972
|
opacity: 0.7;
|
|
708
973
|
}
|
|
709
|
-
`,kf=
|
|
974
|
+
`,kf=pe(I)`
|
|
710
975
|
width: 24px;
|
|
711
976
|
height: ${({$strokeWidth:e})=>e}px;
|
|
712
977
|
background-color: ${({theme:e,$colorKey:n})=>e.colors[n]};
|
|
713
978
|
flex-shrink: 0;
|
|
714
979
|
${({$strokeDasharray:e})=>e?`background-image: repeating-linear-gradient(90deg, currentColor 0, currentColor ${e.split(",")[0]}px, transparent ${e.split(",")[0]}px, transparent ${e.split(",")[1]||e.split(",")[0]}px);`:""}
|
|
715
|
-
|
|
980
|
+
`,Af=pe.span`
|
|
716
981
|
font-size: ${({$fontSize:e})=>e}px;
|
|
717
982
|
color: ${({theme:e,$colorKey:n})=>e.colors[n]||n};
|
|
718
983
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
719
984
|
white-space: nowrap;
|
|
720
|
-
`;
|
|
985
|
+
`;pe(I)`
|
|
721
986
|
position: absolute;
|
|
722
987
|
background: white;
|
|
723
988
|
border: 1px solid #ddd;
|
|
@@ -726,172 +991,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
726
991
|
pointer-events: none;
|
|
727
992
|
z-index: 1000;
|
|
728
993
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
729
|
-
`;
|
|
994
|
+
`;pe(I)`
|
|
730
995
|
font-size: 12px;
|
|
731
996
|
font-family: ${({theme:e})=>e.fonts.neutral};
|
|
732
|
-
`;const I3=(e,n)=>{if(e.length===0)return"";if(n==="linear")return e.map((i,s)=>`${s===0?"M":"L"} ${i.x} ${i.y}`).join(" ");if(n==="smooth"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=e[Math.max(0,s-2)],l=e[s-1],d=e[s],f=e[Math.min(e.length-1,s+1)],h=l.x+(d.x-a.x)/6,p=l.y+(d.y-a.y)/6,x=d.x-(f.x-l.x)/6,w=d.y-(f.y-l.y)/6;i+=` C ${h} ${p}, ${x} ${w}, ${d.x} ${d.y}`}return i}if(n==="step"){let i=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const a=(e[s-1].x+e[s].x)/2;i+=` L ${a} ${e[s-1].y} L ${a} ${e[s].y} L ${e[s].x} ${e[s].y}`}return i}return""},M3=({series:e,width:n=600,minWidth:i=300,maxWidth:s,height:a=400,minHeight:l=300,maxHeight:d,chartMargin:f,size:h,variant:p,showGrid:x=!0,showXAxis:w=!0,showYAxis:_=!0,showLegend:v=!0,legendPosition:C="top",curve:R="linear",animationDuration:k=500,xAxisLabels:T,yDomain:E,testID:I="line-chart",...$})=>{const M=be(),z=M.__hd__.lineChart,j=c.useRef(null),[H,se]=c.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const ee=n.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 600}),[te,re]=c.useState(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const ee=a.match(/^(\d+(?:\.\d+)?)px$/);if(ee)return parseFloat(ee[1])}return 400}),B=p||z.defaultVariant,W=h||z.defaultSize;vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]),vr(()=>{const ee=j.current;if(!ee)return;const ge=()=>{if(typeof n=="number")se(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const he=n.match(/^(\d+(?:\.\d+)?)px$/);he&&se(parseFloat(he[1]))}else{const he=ee.clientWidth;he>0&&se(he)}const oe=(()=>{if(typeof a=="number")return a;if(typeof a=="string"){const he=a.match(/^(\d+(?:\.\d+)?)px$/);if(he)return parseFloat(he[1])}return 400})();re(oe)};ge();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ge),G.observe(ee)):window.addEventListener("resize",ge),()=>{G?G.disconnect():window.removeEventListener("resize",ge)}},[n,a]);const{strokeWidth:P,dotRadius:le,axisColor:K,gridColor:ne,labelColor:ie,labelFontSize:we,legendFontSize:pe,legendSpacing:Se}=z.sizes[W],{defaultColors:$e}=z.variants[B],[de,je]=c.useMemo(()=>{if(E)return E;let ee=1/0,ge=-1/0;return e.forEach(G=>{G.data.forEach(oe=>{ee=Math.min(ee,oe.y),ge=Math.max(ge,oe.y)})}),ee===1/0||ge===-1/0?[0,1]:[Math.floor(ee-(ge-ee)*.1),Math.ceil(ge+(ge-ee)*.1)]},[e,E]),Ze=c.useMemo(()=>{const ge=Array.from({length:5},(it,ae)=>(de+(je-de)*(ae/4)).toFixed(1)),G=M.fonts.neutral,oe=`${we}px ${G}`,he=we*.6;let Ae=null;typeof document<"u"&&(Ae=document.createElement("canvas").getContext("2d"),Ae&&(Ae.font=oe));const Be=it=>Ae?Ae.measureText(it).width:it.length*he,Ye=ge.reduce((it,ae)=>Math.max(it,Be(ae)),0),De=Math.ceil(Ye+12),nt=(f==null?void 0:f.left)??50;return Math.max(nt,De)},[de,je,f==null?void 0:f.left,we,M.fonts.neutral]),Ee={top:(f==null?void 0:f.top)??20,right:(f==null?void 0:f.right)??20,bottom:(f==null?void 0:f.bottom)??40,left:Ze},st=Math.max(0,H-Ee.left-Ee.right),ye=Math.max(0,te-Ee.top-Ee.bottom),{processedSeries:Te,xLabels:Fe,yTicks:ke}=c.useMemo(()=>{const ee=new Set,ge=[];let G=1/0,oe=-1/0;e.forEach(Pe=>{Pe.data.forEach(Ge=>{const Je=String(Ge.x);ee.has(Je)||(ee.add(Je),ge.push(Je)),G=Math.min(G,Ge.y),oe=Math.max(oe,Ge.y)})});const[he,Ae]=E||[Math.floor(G-(oe-G)*.1),Math.ceil(oe+(oe-G)*.1)],Be=T||ge,Ye=st/(Be.length-1||1),De=new Map(Be.map((Pe,Ge)=>[String(Pe),Ge*Ye])),nt=Pe=>{const Ge=(Pe-he)/(Ae-he||1);return ye-Ge*ye},it=e.map((Pe,Ge)=>({...Pe,color:Pe.color||$e[Ge%$e.length],points:Pe.data.map(Je=>({x:De.get(String(Je.x))||0,y:nt(Je.y),originalX:Je.x,originalY:Je.y}))})),ae=5,Ue=Array.from({length:ae},(Pe,Ge)=>{const Je=he+(Ae-he)*(Ge/(ae-1));return{value:Je,position:nt(Je),label:Je.toFixed(1)}});return{processedSeries:it,xLabels:Be,yTicks:Ue.reverse()}},[e,st,ye,T,E,$e]);return m.jsxs(k3,{ref:j,"data-testid":`${I}-container`,$width:n,$minWidth:i,$maxWidth:s,$height:a,$minHeight:l,$maxHeight:d,...$,children:[v&&C==="top"&&m.jsx(Sf,{$position:C,$spacing:Se,"data-testid":`${I}-legend`,children:Te.map((ee,ge)=>m.jsxs(Ef,{$spacing:Se,"data-testid":`${I}-legend-item-${ge}`,children:[m.jsx(kf,{$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray}),m.jsx($f,{$fontSize:pe,$colorKey:ie,children:ee.label})]},ee.id))}),m.jsxs($3,{$width:H,$height:te,viewBox:`0 0 ${H} ${te}`,role:"img","aria-label":"Line chart","data-testid":`${I}-svg`,children:[m.jsx("title",{children:"Line chart"}),m.jsxs("g",{transform:`translate(${Ee.left}, ${Ee.top})`,children:[x&&m.jsxs(m.Fragment,{children:[ke.map((ee,ge)=>m.jsx(Cf,{$colorKey:ne,x1:0,y1:ee.position,x2:st,y2:ee.position,"data-testid":`${I}-grid-h-${ge}`},`h-grid-${ge}`)),Fe.map((ee,ge)=>{const G=ge*st/(Fe.length-1||1);return m.jsx(Cf,{$colorKey:ne,x1:G,y1:0,x2:G,y2:ye,"data-testid":`${I}-grid-v-${ge}`},`v-grid-${ge}`)})]}),Te.map((ee,ge)=>{var he,Ae;const G=I3(ee.points,R),oe=ee.showArea?`${G} L ${((he=ee.points[ee.points.length-1])==null?void 0:he.x)||0} ${ye} L ${((Ae=ee.points[0])==null?void 0:Ae.x)||0} ${ye} Z`:"";return m.jsxs("g",{children:[ee.showArea&&m.jsx(T3,{d:oe,$colorKey:ee.color,$animationDuration:k,"data-testid":`${I}-area-${ge}`}),m.jsx(A3,{d:G,$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray,$animationDuration:k,"data-testid":`${I}-line-${ge}`}),ee.showDots!==!1&&ee.points.map((Be,Ye)=>m.jsx(R3,{cx:Be.x,cy:Be.y,r:le,$colorKey:ee.color,$animationDuration:k,"data-testid":`${I}-dot-${ge}-${Ye}`},Ye))]},ee.id)}),w&&m.jsxs(m.Fragment,{children:[m.jsx(wf,{$colorKey:K,x1:0,y1:ye,x2:st,y2:ye,"data-testid":`${I}-x-axis`}),Fe.map((ee,ge)=>{const G=ge*st/(Fe.length-1||1);return m.jsx(_f,{x:G,y:ye+20,$colorKey:ie,$fontSize:we,textAnchor:"middle","data-testid":`${I}-x-label-${ge}`,children:ee},ge)})]}),_&&m.jsxs(m.Fragment,{children:[m.jsx(wf,{$colorKey:K,x1:0,y1:0,x2:0,y2:ye,"data-testid":`${I}-y-axis`}),ke.map((ee,ge)=>m.jsx(_f,{x:-10,y:ee.position,$colorKey:ie,$fontSize:we,textAnchor:"end",dominantBaseline:"middle","data-testid":`${I}-y-label-${ge}`,children:ee.label},ge))]})]})]}),v&&C==="bottom"&&m.jsx(Sf,{$position:C,$spacing:Se,"data-testid":`${I}-legend`,children:Te.map((ee,ge)=>m.jsxs(Ef,{$spacing:Se,"data-testid":`${I}-legend-item-${ge}`,children:[m.jsx(kf,{$colorKey:ee.color,$strokeWidth:ee.strokeWidth||P,$strokeDasharray:ee.strokeDasharray}),m.jsx($f,{$fontSize:pe,$colorKey:ie,children:ee.label})]},ee.id))})]})},F3="md",O3="24h",z3=1,L3=Array.from({length:24},(e,n)=>n.toString().padStart(2,"0")),j3=Array.from({length:12},(e,n)=>(n+1).toString().padStart(2,"0")),D3=["AM","PM"],P3=ue.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
align-items: center;
|
|
735
|
-
justify-content: center;
|
|
736
|
-
cursor: pointer;
|
|
737
|
-
transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
|
|
738
|
-
user-select: none;
|
|
739
|
-
|
|
740
|
-
${({theme:e,$size:n,$isSelected:i,$offset:s})=>{const a=e.__hd__.timepicker,l=a.sizes[n],d=e.__hd__.text,f=i?e.colors.primary:"transparent",h=i?e.colors.white:e.colors[a.colors.wheelText],p=i?1:Math.max(.3,1-Math.abs(s)*.25),x=i?d.fontWeights.semibold:d.fontWeights.regular;return`
|
|
741
|
-
height: ${l.wheelItemHeight}px;
|
|
742
|
-
font-size: ${d.fontSizes[l.wheelFontSize]}px;
|
|
743
|
-
font-weight: ${x};
|
|
744
|
-
color: ${h};
|
|
745
|
-
background-color: ${f};
|
|
746
|
-
opacity: ${p};
|
|
747
|
-
border-radius: ${e.radii.sm}px;
|
|
748
|
-
|
|
749
|
-
&:hover {
|
|
750
|
-
${i?"":`
|
|
751
|
-
background-color: ${e.colors.primary100};
|
|
752
|
-
opacity: 1;
|
|
753
|
-
`}
|
|
754
|
-
}
|
|
755
|
-
`}}
|
|
756
|
-
`,W3=ue.div`
|
|
757
|
-
display: flex;
|
|
758
|
-
flex-direction: row;
|
|
759
|
-
align-items: center;
|
|
760
|
-
overflow: hidden;
|
|
761
|
-
|
|
762
|
-
${({theme:e,$isFocused:n,$isDisabled:i,$error:s})=>{const a=e.__hd__.input;let l=e.colors[a.states.default.borderColor],d=a.states.default.boxShadow;s?(l=e.colors[a.states.error.borderColor],d=a.states.error.boxShadow):i?l=e.colors[a.states.disabled.borderColor]:n&&(l=e.colors[a.states.focused.borderColor],d=a.states.focused.boxShadow);const f=e.spaces[a.padding.vertical],h=e.spaces[a.padding.horizontal],p=e.radii[a.borderRadius],x=e.borderWidths[a.borderWidth];return`
|
|
763
|
-
padding: ${f}px ${h}px;
|
|
764
|
-
border-radius: ${p}px;
|
|
765
|
-
border: ${x}px solid ${l};
|
|
766
|
-
box-shadow: ${d};
|
|
767
|
-
background-color: ${i?e.colors[a.states.disabled.backgroundColor]:e.colors[a.states.default.backgroundColor]};
|
|
768
|
-
opacity: ${i?.7:1};
|
|
769
|
-
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
770
|
-
`}}
|
|
771
|
-
`,Af=ue.input`
|
|
772
|
-
flex: 1;
|
|
773
|
-
min-width: 0;
|
|
774
|
-
border: none;
|
|
775
|
-
background: transparent;
|
|
776
|
-
outline: none;
|
|
777
|
-
text-align: center;
|
|
778
|
-
font-size: ${({theme:e})=>`${e.__hd__.text.fontSizes[e.__hd__.input.fontSize||"medium"]}px`};
|
|
779
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.textColor||"grey900"]};
|
|
780
|
-
|
|
781
|
-
&::placeholder {
|
|
782
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.placeholderColor||"grey500"]};
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
&:disabled {
|
|
786
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.disabledTextColor||"grey500"]};
|
|
787
|
-
cursor: not-allowed;
|
|
788
|
-
}
|
|
789
|
-
`,Vo=({items:e,selectedValue:n,onSelect:i,size:s})=>{const l=be().__hd__.timepicker,d=l.sizes[s],f=l.wheel.visibleItems,h=d.wheelItemHeight,p=c.useRef(null),x=c.useRef(null),[w,_]=c.useState(!1),[v,C]=c.useState(0),[R,k]=c.useState(0),[T,E]=c.useState(0);c.useEffect(()=>{const te=e.indexOf(n);te!==-1&&(E(te),k(0))},[n,e]);const I=c.useCallback(()=>{const te=f*h,re=T*h;return te-re+R},[T,R,f,h]),$=c.useCallback(te=>{te.preventDefault(),_(!0),C(te.clientY),te.target.setPointerCapture(te.pointerId)},[]),M=c.useCallback(te=>{if(!w)return;const re=te.clientY-v;k(re)},[w,v]),z=c.useCallback(te=>{if(!w)return;_(!1),te.target.releasePointerCapture(te.pointerId);const re=Math.round(-R/h);let B=T+re;B=Math.max(0,Math.min(e.length-1,B)),E(B),k(0),i(e[B])},[w,R,h,T,e,i]);c.useEffect(()=>{const te=p.current;if(!te)return;const re=B=>{B.preventDefault(),B.stopPropagation();const W=B.deltaY>0?1:-1;let P=T+W;P=Math.max(0,Math.min(e.length-1,P)),P!==T&&(E(P),i(e[P]))};return te.addEventListener("wheel",re,{passive:!1}),()=>te.removeEventListener("wheel",re)},[T,e,i]);const j=c.useCallback(te=>{te!==T&&(E(te),i(e[te]))},[T,e,i]),H=()=>e.map((te,re)=>{const B=re-T;return m.jsx(P3,{$size:s,$isSelected:re===T,$offset:B,onClick:()=>j(re),children:te},te)}),se=h*(2*f+1);return m.jsxs(L,{ref:p,position:"relative",overflow:"hidden",width:d.wheelWidth,height:se,onPointerDown:$,onPointerMove:M,onPointerUp:z,onPointerCancel:z,children:[m.jsx(L,{position:"absolute",left:0,right:0,top:f*h,height:h,bgColor:l.colors.wheelSelectedBg,r:"sm",zIndex:0,pointerEvents:"none"}),m.jsx(L,{ref:x,position:"absolute",top:0,left:0,right:0,zIndex:1,transform:`translateY(${I()}px)`,transition:`${w?"none":"transform 0.2s ease-out"}`,children:H()})]})};function B3(e){const n=[];for(let i=0;i<60;i+=e)n.push(i.toString().padStart(2,"0"));return n}function zi(e){const n=e>=12?"PM":"AM";let i=e%12;return i===0&&(i=12),{hours:i,period:n}}function Qo(e,n){return n==="AM"?e===12?0:e:e===12?12:e+12}function Kt(e,n){if(!e)return"";const{hours:i,minutes:s}=e;if(n==="24h")return`${i.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`;const{hours:a,period:l}=zi(i);return`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")} ${l}`}function Va(e,n){if(!e||e.trim()==="")return null;if(n==="24h"){const d=e.match(/^(\d{1,2}):(\d{2})$/);if(!d)return null;const f=parseInt(d[1],10),h=parseInt(d[2],10);return f<0||f>23||h<0||h>59?null:{hours:f,minutes:h}}const i=e.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i);if(!i)return null;const s=parseInt(i[1],10),a=parseInt(i[2],10),l=i[3].toUpperCase();return s<1||s>12||a<0||a>59?null:{hours:Qo(s,l),minutes:a}}function H3(e,n){return Math.round(e/n)*n}function Tf(e,n){return Kt(e,n)}function Ol(e,n){return!e||!n?e===n:e.hours===n.hours&&e.minutes===n.minutes}function Rf(e){return e.hours*60+e.minutes}function Z3(e,n){if(!e||!n)return null;const i=Rf(e),s=Rf(n);return i<s?-1:i>s?1:0}function V3(e,n){if(!n)return 0;const i=e.findIndex(s=>Ol(s,n));return i>=0?i:0}const Li=({value:e,onChange:n,format:i,minuteStep:s,size:a,slots:l,markerValue:d,markerLabel:f})=>{const p=be().__hd__.timepicker,x=p.sizes[a],w=c.useMemo(()=>!l||l.length===0?null:l.map(j=>Tf(j,i)),[l,i]),_=c.useCallback(()=>{if(!l||l.length===0)return"";const j=V3(l,e);return Tf(l[j],i)},[l,e,i]),v=c.useCallback(j=>{if(!l||!w)return;const H=w.indexOf(j);H>=0&&H<l.length&&n(l[H])},[l,w,n]),C=i==="24h"?L3:j3,R=c.useMemo(()=>B3(s),[s]),k=c.useCallback(()=>{if(!e)return C[0];if(i==="24h")return e.hours.toString().padStart(2,"0");const{hours:j}=zi(e.hours);return j.toString().padStart(2,"0")},[e,i,C]),T=c.useCallback(()=>e?e.minutes.toString().padStart(2,"0"):R[0],[e,R]),E=c.useCallback(()=>{if(!e)return"AM";const{period:j}=zi(e.hours);return j},[e]),I=c.useCallback(j=>{const H=parseInt(j,10),se=(e==null?void 0:e.minutes)??0;if(i==="24h")n({hours:H,minutes:se});else{const te=e?zi(e.hours).period:"AM",re=Qo(H,te);n({hours:re,minutes:se})}},[e,i,n]),$=c.useCallback(j=>{const H=parseInt(j,10),se=(e==null?void 0:e.hours)??0;n({hours:se,minutes:H})},[e,n]),M=c.useCallback(j=>{if(!e){const te=Qo(12,j);n({hours:te,minutes:0});return}const{hours:H}=zi(e.hours),se=Qo(H,j);n({hours:se,minutes:e.minutes})},[e,n]),z=()=>!d||!f?null:m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"2xs",mb:"xs",py:"2xs",px:"xs",bgColor:"primary100",r:"sm",children:[m.jsx(Qe,{fontSize:"xs",color:"grey600",children:f}),m.jsx(Qe,{fontSize:"xs",fontWeight:"semibold",color:"primary",children:Kt(d,i)})]});return w&&w.length>0?m.jsxs(L,{display:"flex",flexDirection:"column",alignItems:"center",children:[z(),m.jsx(L,{display:"flex",flexDirection:"row",alignItems:"center",children:m.jsx(Vo,{items:w,selectedValue:_(),onSelect:v,size:a})})]}):m.jsxs(L,{display:"flex",flexDirection:"column",alignItems:"center",children:[z(),m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[m.jsx(Vo,{items:C,selectedValue:k(),onSelect:I,size:a}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"2xs",children:m.jsx(Qe,{fontSize:x.wheelFontSize,fontWeight:"semibold",color:p.colors.separatorColor,children:":"})}),m.jsx(Vo,{items:R,selectedValue:T(),onSelect:$,size:a}),i==="12h"&&m.jsxs(m.Fragment,{children:[m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"2xs"}),m.jsx(Vo,{items:D3,selectedValue:E(),onSelect:M,size:a})]})]})]})};function al(e){return new Date(e.getFullYear(),e.getMonth(),1)}function N3(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function ss(e,n){const i=new Date(e),s=i.getMonth()+n;i.setMonth(s);const a=(s%12+12)%12;return i.getMonth()!==a&&i.setDate(0),i}function zl(e,n){const i=new Date(e);return i.setDate(i.getDate()+n),i}function _r(e,n){return!e||!n?!1:e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()}function U3(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()}function G3(e){return _r(e,new Date)}function E1(e,n){const i=new Date(e.getFullYear(),e.getMonth(),e.getDate()),s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return i<s}function k1(e,n){const i=new Date(e.getFullYear(),e.getMonth(),e.getDate()),s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return i>s}function q3(e,n){const i=al(e),a=(i.getDay()-n+7)%7;return zl(i,-a)}function K3(e,n){const i=q3(e,n),s=[];for(let a=0;a<42;a++)s.push(zl(i,a));return s}function Y3(e,n,i="short"){const s=new Intl.DateTimeFormat(e,{weekday:i}),a=[],l=new Date(1970,0,4);for(let d=0;d<7;d++){const f=(n+d)%7,h=zl(l,f);a.push(s.format(h).toUpperCase())}return a}function $1(e,n){var i,s,a;return n?!!(n.minDate&&E1(e,n.minDate)||n.maxDate&&k1(e,n.maxDate)||(i=n.disabledDaysOfWeek)!=null&&i.includes(e.getDay())||(s=n.disabledDates)!=null&&s.some(l=>_r(l,e))||(a=n.isDateDisabled)!=null&&a.call(n,e)):!1}function If(e,n,i){if(!i)return!1;if(n==="prev"&&i.minDate){const s=al(e),a=ss(s,-1),l=N3(a);return E1(l,i.minDate)}if(n==="next"&&i.maxDate){const s=al(e),a=ss(s,1);return k1(a,i.maxDate)}return!1}function Mf(e,n){return new Intl.DateTimeFormat(n,{month:"long"}).format(e)}function No(e){return e.getFullYear().toString()}function X3(e){const n=new Intl.DateTimeFormat(e,{month:"short"}),i=[];for(let s=0;s<12;s++){const a=new Date(2024,s,1);i.push(n.format(a))}return i}function Jo(e){const n=Math.floor(e/12)*12,i=[];for(let s=0;s<12;s++)i.push(n+s);return i}function Uo(e,n){const i=new Date(e);return i.setFullYear(i.getFullYear()+n),i}function Q3(e,n){return e?new Intl.DateTimeFormat(n,{month:"short",day:"numeric",year:"numeric"}).format(e):""}function J3(e,n="24h"){if(!e)return"";const{hours:i,minutes:s}=e;if(n==="24h")return`${i.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`;const a=i>=12?"PM":"AM";return`${i%12||12}:${s.toString().padStart(2,"0")} ${a}`}function ln(e,n,i,s,a="24h"){if(!e)return"";const l=e.getDate().toString().padStart(2,"0"),d=(e.getMonth()+1).toString().padStart(2,"0"),f=e.getFullYear(),h=`${l}/${d}/${f}`;if(s&&i){const p=J3(i,a);return`${h} ${p}`}return h}function Ff(e,n){if(!e||e.trim()==="")return null;const i=e.trim(),s=i.match(/^(.+?)\s+(\d{1,2}):(\d{2})$/);if(s){const[,d,f,h]=s,p=parseInt(f,10),x=parseInt(h,10);if(p>=0&&p<24&&x>=0&&x<60){const w=Na(d);if(w)return{date:w,time:{hours:p,minutes:x}}}}const a=i.match(/^(.+?)\s+(\d{1,2}):(\d{2})\s*(AM|PM|am|pm)$/i);if(a){const[,d,f,h,p]=a;let x=parseInt(f,10);const w=parseInt(h,10),_=p.toUpperCase()==="PM";if(_&&x!==12?x+=12:!_&&x===12&&(x=0),x>=0&&x<24&&w>=0&&w<60){const v=Na(d);if(v)return{date:v,time:{hours:x,minutes:w}}}}const l=Na(i);return l?{date:l,time:null}:null}function Na(e,n){const i=e.trim();if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)){const[a,l,d]=i.split("-").map(Number),f=new Date(a,l-1,d);if(Of(f,a,l-1,d))return f}const s=i.match(/^(\d{1,2})[/\-.](\d{1,2})[/\-.](\d{2,4})$/);if(s){const[,a,l,d]=s,f=parseInt(a,10),h=parseInt(l,10)-1;let p=parseInt(d,10);p<100&&(p+=p<50?2e3:1900);const x=new Date(p,h,f);if(Of(x,p,h,f))return x}return null}function Of(e,n,i,s){return e instanceof Date&&!isNaN(e.getTime())&&e.getFullYear()===n&&e.getMonth()===i&&e.getDate()===s}function e4(e){try{const n=new Date,a=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(n).find(l=>l.type==="timeZoneName");return(a==null?void 0:a.value)??""}catch{return""}}function t4(e){const n=e.split("/");if(n.length===1)return n[0].replace(/_/g," ");const i=n[0],s=n.slice(1).join(" - ").replace(/_/g," ");return`${i} - ${s}`}function n4(e){try{const n=new Date,i=new Date(n.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(n.toLocaleString("en-US",{timeZone:e})).getTime()-i.getTime())/6e4}catch{return 0}}function r4(){var e;try{const n=(e=Intl.supportedValuesOf)==null?void 0:e.call(Intl,"timeZone");return n?n.map(i=>{const s=e4(i),a=n4(i);return{value:i,label:`${t4(i)} (${s})`,offset:s,abbreviation:s,_offsetMinutes:a}}).sort((i,s)=>i._offsetMinutes-s._offsetMinutes).map(({_offsetMinutes:i,...s})=>s):[]}catch{return[]}}function i4(e,n,i,s){if(!i||!s||i===s)return{date:e,time:n};try{const a=e.getFullYear(),l=e.getMonth(),d=e.getDate(),f=new Date(Date.UTC(a,l,d,n.hours,n.minutes,0)),h=new Intl.DateTimeFormat("en-CA",{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}),p=(H,se)=>{var te;return parseInt(((te=H.find(re=>re.type===se))==null?void 0:te.value)??"0",10)},x=h.formatToParts(f),w=p(x,"hour"),_=p(x,"minute"),v=n.hours*60+n.minutes,C=w*60+_,R=v-C,k=new Date(f.getTime()+R*60*1e3),E=new Intl.DateTimeFormat("en-CA",{timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(k),I=p(E,"year"),$=p(E,"month")-1,M=p(E,"day"),z=p(E,"hour"),j=p(E,"minute");return{date:new Date(I,$,M),time:{hours:z,minutes:j}}}catch{return{date:e,time:n}}}function o4(e,n){if(!e.date||!e.time||!n)return e;const i=i4(e.date,e.time,e.timezone,n);return{date:i.date,time:i.time,timezone:n}}function s4(e,n){return n?e.map(i=>o4(i,n)):e}function a4(e){const n=new Map;for(const i of e)if(i.date){const s=`${i.date.getFullYear()}-${i.date.getMonth()}-${i.date.getDate()}`;n.has(s)||n.set(s,i.date)}return Array.from(n.values())}function ll(e,n){if(!n)return[];const i=[];for(const s of e)s.date&&s.time&&_r(s.date,n)&&i.push(s.time);return i.sort((s,a)=>{const l=s.hours*60+s.minutes,d=a.hours*60+a.minutes;return l-d})}function A1(e,n){return e.some(i=>i.date&&_r(i.date,n))}function l4(e){const n=new Map;for(const i of e)if(i.time){const s=`${i.time.hours}:${i.time.minutes}`;n.has(s)||n.set(s,i.time)}return Array.from(n.values()).sort((i,s)=>{const a=i.hours*60+i.minutes,l=s.hours*60+s.minutes;return a-l})}function T1(e,n){return{...n,isDateDisabled:i=>{var s;return(s=n==null?void 0:n.isDateDisabled)!=null&&s.call(n,i)?!0:!A1(e,i)}}}function zf(e){if(!e.date)return 0;const n=e.date,i=e.time??{hours:0,minutes:0};return new Date(n.getFullYear(),n.getMonth(),n.getDate(),i.hours,i.minutes).getTime()}function c4(e,n){if(!(e!=null&&e.date)||!(n!=null&&n.date))return null;const i=zf(e),s=zf(n);return i<s?-1:i>s?1:0}let Ua=null;const u4=()=>(Ua||(Ua=r4()),Ua);u4();const d4="en-US",f4=1,h4=ue.div`
|
|
790
|
-
display: flex;
|
|
791
|
-
align-items: center;
|
|
792
|
-
justify-content: center;
|
|
793
|
-
user-select: none;
|
|
794
|
-
transition: background-color 0.15s ease, color 0.15s ease;
|
|
795
|
-
|
|
796
|
-
${({theme:e,$isSelected:n,$isToday:i,$isDisabled:s,$isOutsideMonth:a,$isRangeMarker:l,$size:d,$fontSize:f})=>{const h=e.__hd__.text;let p="transparent",x=e.colors.grey900,w=h.fontWeights.medium,_="none";s||a?x=e.colors.grey400:n?(p=e.colors.primary,x=e.colors.white,w=h.fontWeights.semibold):l?(p=e.colors.primary100,x=e.colors.primary,w=h.fontWeights.semibold):i&&(_=`1px solid ${e.colors.primary}`);const v=s||a?"default":"pointer",C=s?.5:1;return`
|
|
797
|
-
width: ${d}px;
|
|
798
|
-
height: ${d}px;
|
|
799
|
-
border-radius: ${e.radii.sm}px;
|
|
800
|
-
background-color: ${p};
|
|
801
|
-
color: ${x};
|
|
802
|
-
cursor: ${v};
|
|
803
|
-
opacity: ${C};
|
|
804
|
-
font-weight: ${w};
|
|
805
|
-
font-size: ${f}px;
|
|
806
|
-
border: ${_};
|
|
807
|
-
|
|
808
|
-
&:hover {
|
|
809
|
-
${!n&&!s&&!a?`
|
|
810
|
-
background-color: ${e.colors.primary100};
|
|
811
|
-
`:""}
|
|
812
|
-
}
|
|
813
|
-
`}}
|
|
814
|
-
`,R1=ue.div`
|
|
815
|
-
display: flex;
|
|
816
|
-
align-items: center;
|
|
817
|
-
justify-content: center;
|
|
818
|
-
width: 100%;
|
|
819
|
-
user-select: none;
|
|
820
|
-
transition: background-color 0.15s ease, color 0.15s ease;
|
|
821
|
-
|
|
822
|
-
${({theme:e,$isSelected:n,$isDisabled:i,$isCurrent:s,$height:a,$fontSize:l})=>{const d=e.__hd__.text;let f="transparent",h=e.colors.grey900,p=d.fontWeights.medium,x="none";i?h=e.colors.grey400:n?(f=e.colors.primary,h=e.colors.white,p=d.fontWeights.semibold):s&&(x=`1px solid ${e.colors.primary}`);const w=i?"default":"pointer",_=i?.4:1;return`
|
|
823
|
-
height: ${a}px;
|
|
824
|
-
border-radius: ${e.radii.sm}px;
|
|
825
|
-
background-color: ${f};
|
|
826
|
-
color: ${h};
|
|
827
|
-
cursor: ${w};
|
|
828
|
-
opacity: ${_};
|
|
829
|
-
font-weight: ${p};
|
|
830
|
-
font-size: ${l}px;
|
|
831
|
-
border: ${x};
|
|
832
|
-
|
|
833
|
-
&:hover {
|
|
834
|
-
${!n&&!i?`
|
|
835
|
-
background-color: ${e.colors.primary100};
|
|
836
|
-
`:""}
|
|
837
|
-
}
|
|
838
|
-
`}}
|
|
839
|
-
`,p4=ue.div`
|
|
840
|
-
display: flex;
|
|
841
|
-
flex-direction: row;
|
|
842
|
-
align-items: center;
|
|
843
|
-
overflow: hidden;
|
|
844
|
-
|
|
845
|
-
${({theme:e,$isFocused:n,$isDisabled:i,$error:s})=>{const a=e.__hd__.input;let l=e.colors[a.states.default.borderColor],d=a.states.default.boxShadow;s?(l=e.colors[a.states.error.borderColor],d=a.states.error.boxShadow):i?l=e.colors[a.states.disabled.borderColor]:n&&(l=e.colors[a.states.focused.borderColor],d=a.states.focused.boxShadow);const f=e.spaces[a.padding.vertical],h=e.spaces[a.padding.horizontal],p=e.radii[a.borderRadius],x=e.borderWidths[a.borderWidth];return`
|
|
846
|
-
padding: ${f}px ${h}px;
|
|
847
|
-
border-radius: ${p}px;
|
|
848
|
-
border: ${x}px solid ${l};
|
|
849
|
-
box-shadow: ${d};
|
|
850
|
-
background-color: ${i?e.colors[a.states.disabled.backgroundColor]:e.colors[a.states.default.backgroundColor]};
|
|
851
|
-
opacity: ${i?.7:1};
|
|
852
|
-
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
853
|
-
`}}
|
|
854
|
-
`,Lf=ue.input`
|
|
855
|
-
flex: 1;
|
|
856
|
-
min-width: 0;
|
|
857
|
-
border: none;
|
|
858
|
-
background: transparent;
|
|
859
|
-
outline: none;
|
|
860
|
-
text-align: center;
|
|
861
|
-
font-size: ${({theme:e})=>`${e.__hd__.text.fontSizes[e.__hd__.input.fontSize||"medium"]}px`};
|
|
862
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.textColor||"grey900"]};
|
|
863
|
-
|
|
864
|
-
&::placeholder {
|
|
865
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.placeholderColor||"grey500"]};
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
&:disabled {
|
|
869
|
-
color: ${({theme:e})=>e.colors[e.__hd__.input.disabledTextColor||"grey500"]};
|
|
870
|
-
cursor: not-allowed;
|
|
871
|
-
}
|
|
872
|
-
`,g4=({date:e,currentMonth:n,selectedDate:i,rangeMarkerDate:s,disabled:a,dateConfig:l,sizeConfig:d,locale:f,onDateClick:h})=>{const p=be(),x=!U3(e,n),w=_r(e,i),_=!w&&_r(e,s??null),v=G3(e),C=$1(e,l)||a,R=!C&&!x,k=()=>{R&&h(e)};return m.jsx(h4,{$isSelected:w,$isToday:v&&!w&&!_,$isDisabled:C||!!a,$isOutsideMonth:x,$isRangeMarker:_,$size:p.spaces[d.dateCellSize],$fontSize:p.__hd__.text.fontSizes[d.dateFontSize],onClick:k,role:"gridcell","aria-label":new Intl.DateTimeFormat(f,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e),"aria-selected":w,"aria-disabled":!R,children:e.getDate()})},m4=({currentMonth:e,selectedDate:n,onDateClick:i,dateConfig:s,weekStartDay:a,locale:l,size:d,disabled:f,rangeMarkerDate:h})=>{const p=Y3(l,a,"short"),x=K3(e,a),w=be(),_=w.__hd__.datepicker,v=_.sizes[d];return m.jsxs(m.Fragment,{children:[m.jsx(L,{display:"grid",gap:v.cellGap,mb:"xs",style:{gridTemplateColumns:"repeat(7, 1fr)"},children:p.map((C,R)=>m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",height:w.spaces[v.dateCellSize],children:m.jsx(Qe,{fontSize:v.weekdayFontSize,fontWeight:"medium",color:_.colors.weekdayText,children:C})},`weekday-${R}`))}),m.jsx(L,{display:"grid",gap:v.cellGap,style:{gridTemplateColumns:"repeat(7, 1fr)"},children:x.map((C,R)=>m.jsx(g4,{date:C,currentMonth:e,selectedDate:n,rangeMarkerDate:h,disabled:f,dateConfig:s,sizeConfig:v,locale:l,onDateClick:i},`date-${R}`))})]})},y4=ue.div`
|
|
873
|
-
&:hover > * > * {
|
|
874
|
-
color: ${({theme:e})=>e.colors.primary} !important;
|
|
875
|
-
}
|
|
876
|
-
`,Ga=({onClick:e,text:n,ariaLabel:i,fontSize:s,fontWeight:a,color:l})=>m.jsx(y4,{children:m.jsx(kt,{onClick:e,cursor:"pointer","aria-label":i,children:m.jsx(Qe,{fontSize:s,fontWeight:a,color:l,children:n})})}),b4=Sn`
|
|
877
|
-
from {
|
|
878
|
-
transform: translateX(-100%);
|
|
879
|
-
opacity: 0;
|
|
880
|
-
}
|
|
881
|
-
to {
|
|
882
|
-
transform: translateX(0);
|
|
883
|
-
opacity: 1;
|
|
884
|
-
}
|
|
885
|
-
`,x4=Sn`
|
|
886
|
-
from {
|
|
887
|
-
transform: translateX(100%);
|
|
888
|
-
opacity: 0;
|
|
889
|
-
}
|
|
890
|
-
to {
|
|
891
|
-
transform: translateX(0);
|
|
892
|
-
opacity: 1;
|
|
893
|
-
}
|
|
894
|
-
`,v4=ue(L)`
|
|
895
|
-
${({$direction:e,$duration:n,$easing:i})=>e==="prev"?lt`animation: ${b4} ${n}ms ${i};`:e==="next"?lt`animation: ${x4} ${n}ms ${i};`:""}
|
|
896
|
-
will-change: transform, opacity;
|
|
897
|
-
`,w4=({currentMonth:e,onPrevMonth:n,onNextMonth:i,locale:s,size:a,disabled:l,dateConfig:d,viewMode:f,onMonthClick:h,onYearClick:p})=>{const x=be(),w=x.__hd__.datepicker,_=w.sizes[a],[v,C]=c.useState(null),[R,k]=c.useState(0),T=()=>{C("prev"),k(z=>z+1),n()},E=()=>{C("next"),k(z=>z+1),i()},I=l||(f==="days"?If(e,"prev",d):f==="months"?d!=null&&d.minDate?e.getFullYear()-1<d.minDate.getFullYear():!1:f==="years"&&d!=null&&d.minDate?Jo(e.getFullYear())[0]-12<d.minDate.getFullYear():!1),$=l||(f==="days"?If(e,"next",d):f==="months"?d!=null&&d.maxDate?e.getFullYear()+1>d.maxDate.getFullYear():!1:f==="years"&&d!=null&&d.maxDate?Jo(e.getFullYear())[11]+1>d.maxDate.getFullYear():!1),M=()=>{if(f==="days")return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",children:[m.jsx(Ga,{onClick:h,text:Mf(e,s),ariaLabel:`Select month, currently ${Mf(e,s)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"}),m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"})]});if(f==="months")return m.jsx(Ga,{onClick:p,text:No(e),ariaLabel:`Select year, currently ${No(e)}`,fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:"grey900"});if(f==="years"){const z=Jo(e.getFullYear());return m.jsxs(Qe,{as:"span",fontSize:_.headerFontSize,fontWeight:_.headerFontWeight,color:w.colors.headerText,children:[z[0]," - ",z[11]]})}return null};return m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:x.spaces[_.headerHeight],children:[m.jsx(Qr,{onClick:I?void 0:T,variant:"text",size:a,color:"grey900",icon:us,disabled:I,"aria-label":f==="days"?"Previous month":f==="months"?"Previous year":"Previous decade"}),m.jsx(v4,{$direction:v,$duration:w.animation.duration,$easing:w.animation.easing,display:"flex",flexDirection:"row",alignItems:"center",gap:"xs",onAnimationEnd:()=>C(null),children:M()},R),m.jsx(Qr,{onClick:$?void 0:E,variant:"text",size:a,color:"grey900",icon:ei,disabled:$,"aria-label":f==="days"?"Next month":f==="months"?"Next year":"Next decade"})]})},_4=({currentYear:e,selectedMonth:n,selectedYear:i,onSelect:s,locale:a,size:l,dateConfig:d,disabled:f})=>{const h=X3(a),p=k=>{if(f)return!0;if(!d)return!1;const T=new Date(e,k,1),E=new Date(e,k+1,0);return!!(d.minDate&&E<d.minDate||d.maxDate&&T>d.maxDate)},x=k=>n===k&&i===e,w=k=>{const T=new Date;return e===T.getFullYear()&&k===T.getMonth()},_=be(),v=_.__hd__.datepicker,C=_.__hd__.text,R=v.sizes[l];return m.jsx(L,{display:"grid",gap:R.cellGap,width:R.viewWidth,minHeight:R.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:h.map((k,T)=>{const E=x(T),I=p(T),$=w(T)&&!E;return m.jsx(R1,{$isSelected:E,$isDisabled:I,$isCurrent:$,$height:_.spaces[R.dateCellSize],$fontSize:C.fontSizes[R.dateFontSize],onClick:I?void 0:()=>s(T),role:"option","aria-label":`Select ${k}`,"aria-selected":E,"aria-disabled":I,children:k},T)})})},C4=({currentYear:e,selectedYear:n,onSelect:i,size:s,dateConfig:a,disabled:l})=>{const d=be(),f=d.__hd__.datepicker,h=d.__hd__.text,p=f.sizes[s],x=Jo(e),w=new Date().getFullYear(),_=v=>{if(l)return!0;if(!a)return!1;const C=new Date(v,0,1),R=new Date(v,11,31);return!!(a.minDate&&R<a.minDate||a.maxDate&&C>a.maxDate)};return m.jsx(L,{display:"grid",gap:p.cellGap,width:p.viewWidth,minHeight:p.viewHeight,alignItems:"center",justifyContent:"center",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:x.map(v=>{const C=n===v,R=_(v),k=v===w&&!C;return m.jsx(R1,{$isSelected:C,$isDisabled:R,$isCurrent:k,$height:d.spaces[p.dateCellSize],$fontSize:h.fontSizes[p.dateFontSize],onClick:R?void 0:()=>i(v),role:"option","aria-label":`Select ${v}`,"aria-selected":C,"aria-disabled":R,children:v},v)})})},jf=({currentMonth:e,selectedDate:n,onDateSelect:i,onMonthChange:s,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p})=>{const[x,w]=c.useState("days"),_=c.useCallback(()=>{x==="days"?s(ss(e,-1)):x==="months"?s(Uo(e,-1)):x==="years"&&s(Uo(e,-12))},[e,s,x]),v=c.useCallback(()=>{x==="days"?s(ss(e,1)):x==="months"?s(Uo(e,1)):x==="years"&&s(Uo(e,12))},[e,s,x]),C=c.useCallback(()=>{w("months")},[]),R=c.useCallback(()=>{w("years")},[]),k=c.useCallback(H=>{const se=new Date(e.getFullYear(),H,1);s(se),w("days")},[e,s]),T=c.useCallback(H=>{const se=new Date(H,e.getMonth(),1);s(se),w("months")},[e,s]),E=c.useCallback(()=>{const H=new Date;s(H),i(H)},[s,i]),I=c.useMemo(()=>h||$1(new Date,a),[a,h]),$=()=>x==="months"?m.jsx(_4,{currentYear:e.getFullYear(),selectedMonth:(n==null?void 0:n.getMonth())??null,selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:k,locale:d,size:f,dateConfig:a,disabled:h}):x==="years"?m.jsx(C4,{currentYear:e.getFullYear(),selectedYear:(n==null?void 0:n.getFullYear())??null,onSelect:T,size:f,dateConfig:a,disabled:h}):m.jsxs(L,{width:j.viewWidth,minHeight:j.viewHeight,children:[m.jsx(m4,{currentMonth:e,selectedDate:n,onDateClick:i,dateConfig:a,weekStartDay:l,locale:d,size:f,disabled:h,rangeMarkerDate:p}),m.jsx(L,{display:"flex",justifyContent:"center",pt:"md",bt:"thin",borderTopColor:"grey200",children:m.jsx(Qr,{variant:"text",color:"primary",size:f,text:"Today",disabled:I,onClick:E})})]}),z=be().__hd__.datepicker,j=z.sizes[f];return m.jsxs(L,{display:"flex",flexDirection:"column",gap:"md",minWidth:z.calendar.panelMinWidth,children:[m.jsx(w4,{currentMonth:e,onPrevMonth:_,onNextMonth:v,locale:d,size:f,disabled:h,dateConfig:a,viewMode:x,onMonthClick:C,onYearClick:R}),$()]})},cl=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,placeholder:d="Select a date",label:f,helperText:h,error:p,disabled:x,hasValue:w},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,placeholder:d,disabled:x,label:f,helperText:h,error:p,rightIcon:w?void 0:wl,clearable:w,onClear:T})});cl.displayName="DatePickerInput";const qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.datepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(v=>{v.target===v.currentTarget&&i()},[i]),w=c.useCallback(v=>{v.preventDefault()},[]);if(c.useEffect(()=>{if(!e)return;const v=C=>{(C.key==="Escape"||C.key==="Tab")&&i()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,i]),!e||typeof document>"u")return null;const _=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",zIndex:f.popup.zIndex,role:"dialog","aria-modal":"true",onMouseDown:w,children:s})]});return l?Df.createPortal(_,document.body):_},I1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v,startPlaceholder:C="Start date",endPlaceholder:R="End date"},k)=>{const T=c.useRef(null),E=c.useRef(null),[I,$]=c.useState(!1),M=be(),z=M.__hd__.input,j=vt(M,z.iconSize),H=_?z.disabledTextColor:z.iconColor;c.useImperativeHandle(k,()=>({focusStart:()=>{var K;return(K=T.current)==null?void 0:K.focus()},focusEnd:()=>{var K;return(K=E.current)==null?void 0:K.focus()},blurStart:()=>{var K;return(K=T.current)==null?void 0:K.blur()},blurEnd:()=>{var K;return(K=E.current)==null?void 0:K.blur()}}));const se=c.useCallback(()=>{$(!0),a()},[a]),te=c.useCallback(()=>{$(!0),l()},[l]),re=c.useCallback(()=>{$(!1),d==null||d()},[d]),B=c.useCallback(()=>{$(!1),f==null||f()},[f]),W=c.useCallback(K=>{var ne;K.key==="Enter"&&(h==null||h(),(ne=T.current)==null||ne.blur())},[h]),P=c.useCallback(K=>{var ne;K.key==="Enter"&&(p==null||p(),(ne=E.current)==null||ne.blur())},[p]),le=c.useCallback(K=>{K.stopPropagation(),x==null||x()},[x]);return m.jsxs(p4,{$isFocused:I,$isDisabled:!!_,$error:!!v,children:[m.jsx(Lf,{ref:T,value:e,onChange:K=>i(K.target.value),onFocus:se,onBlur:re,onKeyDown:W,disabled:_,placeholder:C}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(pt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Lf,{ref:E,value:n,onChange:K=>s(K.target.value),onFocus:te,onBlur:B,onKeyDown:P,disabled:_,placeholder:R}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:le,children:m.jsx(L,{ml:z.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:j,color:H})})}):m.jsx(L,{ml:z.iconSpacing,children:m.jsx(pt,{type:"icon",art:wl,size:j,color:H})})})]})});I1.displayName="DatePickerRangeInput";function Ka({value:e,onChange:n,onClose:i,open:s,onOpenChange:a,defaultMonth:l,defaultTimezone:d,disabled:f,showTime:h}){const[p,x]=c.useState(!1),w=s??p,[_,v]=c.useState((e==null?void 0:e.date)??null),[C,R]=c.useState((e==null?void 0:e.time)??null),[k,T]=c.useState((e==null?void 0:e.timezone)??d??null),[E,I]=c.useState((e==null?void 0:e.date)??l??new Date),$=c.useRef(null),M=c.useRef(null),z=c.useRef(!1),j=c.useRef(_),H=c.useRef(C),se=c.useRef(k);j.current=_,H.current=C,se.current=k,c.useEffect(()=>{if(z.current){z.current=!1;return}e&&(e.date!==void 0&&(v(e.date),e.date&&I(e.date)),e.time!==void 0&&R(e.time),e.timezone&&T(e.timezone))},[e]);const te=c.useCallback(()=>{if(!f){if(!_){const de=new Date;de.setHours(0,0,0,0),v(de),I(de)}if(h&&!C){const de=new Date;R({hours:de.getHours(),minutes:de.getMinutes()})}x(!0),a==null||a(!0)}},[f,a,_,C,h]),re=c.useCallback(()=>{x(!1),a==null||a(!1);const de=j.current,je=H.current,Ze=se.current;if(de){const Ee={date:de,time:h?je:void 0,timezone:Ze};n==null||n(Ee)}i==null||i()},[a,i,n,h]),B=c.useCallback(()=>{f||(w?re():te())},[f,w,re,te]),W=c.useCallback(de=>{z.current=!0,v(de),de&&I(de)},[]),P=c.useCallback(de=>{z.current=!0,R(de)},[]),le=c.useCallback(de=>{z.current=!0,v(de);const je={date:de,time:h?C:void 0,timezone:k};n==null||n(je)},[k,C,h,n]),K=c.useCallback(de=>{z.current=!0,R(de);const je={date:_,time:de,timezone:k};n==null||n(je)},[_,k,n]),ne=c.useCallback(de=>{T(de);const je={date:_,time:h?C:void 0,timezone:de};n==null||n(je)},[_,C,h,n]),ie=c.useCallback(de=>{I(de)},[]),we=c.useCallback(()=>{v((e==null?void 0:e.date)??null),R((e==null?void 0:e.time)??null),T((e==null?void 0:e.timezone)??d??null),I((e==null?void 0:e.date)??l??new Date)},[e,d,l]),pe=c.useCallback(()=>({date:_,time:h?C:void 0,timezone:k}),[_,C,k,h]),Se=c.useCallback(()=>{var de;(de=M.current)==null||de.focus()},[]),$e=c.useCallback(de=>{x(de),de||(a==null||a(!1),i==null||i())},[a,i]);return{isOpen:w,selectedDate:_,selectedTime:C,selectedTimezone:k,currentMonth:E,containerRef:$,inputRef:M,handleOpen:te,handleClose:re,setIsOpen:$e,handleToggle:B,handleDateSelect:le,setSelectedDatePreview:W,handleTimeSelect:K,setSelectedTimePreview:P,handleTimezoneChange:ne,handleMonthChange:ie,reset:we,getValue:pe,focus:Se}}const M1=c.forwardRef(({value:e,onChange:n,onClose:i,range:s=!1,startValue:a,endValue:l,onStartChange:d,onEndChange:f,mode:h="inline",showInlineInput:p=!1,open:x,onOpenChange:w,dateConfig:_,disablePastDates:v=!1,defaultMonth:C,weekStartDay:R=f4,locale:k=d4,showTime:T=!1,timeFormat:E="24h",minuteStep:I=1,timeSlots:$,slots:M,size:z,variant:j,label:H,helperText:se,error:te,disabled:re=!1,loading:B=!1,isFixedPosition:W=!1,...P},le)=>{const ne=be().__hd__.datepicker,ie=z??ne.defaultSize,we=j??ne.defaultVariant,pe=Intl.DateTimeFormat().resolvedOptions().timeZone,Se=Ka({value:e,onChange:n,onClose:i,open:x,onOpenChange:w,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),$e=Ka({value:a,onChange:d,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),de=Ka({value:l,onChange:f,onClose:i,defaultMonth:C,defaultTimezone:pe,disabled:re,showTime:T}),{isOpen:je,selectedDate:Ze,selectedTime:Ee,currentMonth:st,containerRef:ye,handleOpen:Te,handleClose:Fe,handleToggle:ke,handleDateSelect:ee,handleTimeSelect:ge,setSelectedDatePreview:G,setSelectedTimePreview:oe,handleMonthChange:he,reset:Ae,getValue:Be,focus:Ye}=Se,De=c.useMemo(()=>!M||M.length===0?M:s4(M,pe),[M,pe]),nt=c.useMemo(()=>{let xe=_;if(v){const gt=new Date;gt.setHours(0,0,0,0),xe={...xe,minDate:xe!=null&&xe.minDate&&xe.minDate>gt?xe.minDate:gt}}return De&&De.length>0&&(xe=T1(De,xe)),xe},[v,_,De]),it=c.useRef(null),ae=c.useRef(null),Ue=c.useRef(null),Pe=c.useRef(null),Ge=c.useRef(ee),Je=c.useRef(he),bt=c.useRef(oe),$t=c.useRef(null);Ue.current=Ze,Pe.current=Ee,Ge.current=ee,Je.current=he,bt.current=oe;const rr=c.useRef(!1),[un,Xt]=c.useState(()=>ln(Ze,k,Ee,T,E));c.useEffect(()=>{if(rr.current)return;if($t.current==="input"){$t.current=null;return}const xe=(e==null?void 0:e.date)??null,gt=(e==null?void 0:e.time)??null,Ht=ln(xe,k,gt,T,E);Xt(Ht),$t.current="calendar"},[e==null?void 0:e.date,e==null?void 0:e.time,k,T,E]),c.useEffect(()=>{if($t.current==="calendar"){$t.current=null;return}const xe=Ff(un);if(xe&&((!Ue.current||!_r(xe.date,Ue.current))&&(Ge.current(xe.date),Je.current(xe.date)),T&&xe.time)){const Ht=Pe.current;(!Ht||Ht.hours!==xe.time.hours||Ht.minutes!==xe.time.minutes)&&bt.current(xe.time)}},[un,k,T]);const Sr=c.useCallback(xe=>{rr.current=!0,$t.current="input",Xt(xe)},[]),Wn=c.useCallback(()=>{if(rr.current=!1,$t.current=null,je)return;if(!un.trim()){ee(null),Xt("");return}const xe=Ff(un);xe?(ee(xe.date),he(xe.date),xe.time&&T&&oe(xe.time),Xt(ln(xe.date,k,xe.time??Ee,T,E))):Xt(Ze?ln(Ze,k,Ee,T,E):"")},[un,k,Ze,Ee,je,T,E,ee,he,oe]),ri=c.useCallback(()=>{ke()},[ke]),Er=c.useCallback(()=>{G(null),Xt(""),n==null||n({date:null,timezone:pe})},[G,n,pe]),ii=c.useCallback(xe=>{let gt=Ee;if(xe&&De&&De.length>0){const Ht=ll(De,xe);Ht.length>0&&(Ee&&Ht.some(Ui=>Ui.hours===Ee.hours&&Ui.minutes===Ee.minutes)||(gt=Ht[0],oe(gt)))}h==="inline"?ee(xe):G(xe),Xt(xe?ln(xe,k,gt,T,E):"")},[G,oe,ee,h,k,Ee,T,E,De]);c.useImperativeHandle(le,()=>({open:Te,close:Fe,reset:Ae,getValue:Be,focus:Ye}),[Te,Fe,Ae,Be,Ye]);const Vi=c.useMemo(()=>De&&De.length>0?Ze?ll(De,Ze):void 0:$,[De,Ze,$]),bs=T&&(!De||De.length===0||Ze!==null),xs=c.useCallback(xe=>{h==="inline"?ge(xe):oe(xe),Ze&&Xt(ln(Ze,k,xe,T,E))},[oe,ge,h,Ze,k,T,E]),oi=()=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:st,selectedDate:Ze,onDateSelect:ii,onMonthChange:he,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B}),bs&&m.jsx(Li,{value:Ee,onChange:xs,format:E,minuteStep:I,size:ie,slots:Vi})]}),At=ne.sizes[ie],yn=ne.variants[we],vs=c.useRef(null),si=c.useRef(null),[ai,Bn]=c.useState(()=>ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E)),[li,ir]=c.useState(()=>ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E));c.useEffect(()=>{s&&Bn(ln((a==null?void 0:a.date)??null,k,(a==null?void 0:a.time)??null,T,E))},[s,a==null?void 0:a.date,a==null?void 0:a.time,k,T,E]),c.useEffect(()=>{s&&ir(ln((l==null?void 0:l.date)??null,k,(l==null?void 0:l.time)??null,T,E))},[s,l==null?void 0:l.date,l==null?void 0:l.time,k,T,E]);const Ni=(xe,gt,Ht)=>m.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",gap:ne.sizes[ie].panelGap,children:[m.jsx(jf,{currentMonth:xe.currentMonth,selectedDate:xe.selectedDate,onDateSelect:bn=>{xe.setSelectedDatePreview(bn),gt(bn?ln(bn,k,xe.selectedTime,T,E):"")},onMonthChange:xe.handleMonthChange,dateConfig:nt,weekStartDay:R,locale:k,size:ie,disabled:re||B,rangeMarkerDate:Ht}),T&&xe.selectedDate&&m.jsx(Li,{value:xe.selectedTime,onChange:bn=>{xe.setSelectedTimePreview(bn),xe.selectedDate&>(ln(xe.selectedDate,k,bn,T,E))},format:E,minuteStep:I,size:ie,slots:Vi})]}),or=c.useRef(!1);return c.useEffect(()=>{if(!s||$e.isOpen||de.isOpen)return;if(or.current){or.current=!1;return}if(c4(a,l)===1){or.current=!0,d==null||d(l),f==null||f(a);const gt=ai;Bn(li),ir(gt)}},[s,a,l,$e.isOpen,de.isOpen,d,f,ai,li]),s?m.jsxs(L,{position:"relative",...P,children:[H&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:H})}),m.jsx(L,{ref:si,children:m.jsx(I1,{ref:vs,startValue:ai,endValue:li,onStartChange:Bn,onEndChange:ir,onStartFocus:()=>{$e.handleOpen(),de.setIsOpen(!1)},onEndFocus:()=>{de.handleOpen(),$e.setIsOpen(!1)},onStartBlur:()=>{},onEndBlur:()=>{},onClear:()=>{$e.reset(),de.reset(),Bn(""),ir("")},hasValue:!!(a!=null&&a.date)||!!(l!=null&&l.date),disabled:re||B,error:!!te})}),(te||se)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:te?"danger":"grey600",children:te||se})}),m.jsx(qa,{isOpen:$e.isOpen,anchorRef:si,onClose:$e.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni($e,Bn,l==null?void 0:l.date)})}),m.jsx(qa,{isOpen:de.isOpen,anchorRef:si,onClose:de.handleClose,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:Ni(de,ir,a==null?void 0:a.date)})})]}):h==="inline"?m.jsx(L,{ref:ye,position:"relative",...P,children:m.jsxs(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:[p&&m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:()=>{},onBlur:Wn,onEnterPress:Wn,disabled:re||B,hasValue:!!Ze,onClear:Er}),oi()]})}):m.jsxs(L,{ref:ye,position:"relative",...P,children:[m.jsx(L,{ref:ae,position:"relative",children:m.jsx(cl,{ref:it,value:un,onChange:Sr,onFocus:ri,onBlur:Wn,onEnterPress:Wn,onClear:Er,label:H,helperText:se,error:te,disabled:re||B,hasValue:!!Ze})}),m.jsx(qa,{isOpen:je,anchorRef:ae,onClose:Fe,size:ie,isFixedPosition:W,children:m.jsx(L,{display:"flex",flexDirection:"column",p:At.containerPadding,gap:At.panelGap,bgColor:yn.container.backgroundColor,b:At.borderWidth,borderColor:yn.container.borderColor,r:ne.borderRadii.container,children:oi()})})]})});M1.displayName="DatePicker";function Go(e,n){return{hours:e.hours,minutes:H3(e.minutes,n)}}function Ya(e,n){if(n.length===0)return null;const i=n.find(d=>Ol(d,e));if(i)return i;const s=e.hours*60+e.minutes;let a=n[0],l=Math.abs(n[0].hours*60+n[0].minutes-s);for(const d of n){const f=d.hours*60+d.minutes,h=Math.abs(f-s);h<l&&(l=h,a=d)}return a}function Xa({value:e,onChange:n,format:i,minuteStep:s=1,slots:a}){const[l,d]=c.useState(!1),[f,h]=c.useState(null),[p,x]=c.useState(()=>e?Kt(e,i):""),w=c.useRef(!1),_=c.useRef(!1);c.useEffect(()=>{w.current||x(e?Kt(e,i):"")},[e,i]),c.useEffect(()=>{const $=l&&!_.current;if(_.current=l,$){if(e)h(e);else{const M=new Date;let z={hours:M.getHours(),minutes:M.getMinutes()};a&&a.length>0?z=Ya(z,a)??a[0]:z=Go(z,s),h(z)}w.current=!0}else l||(w.current=!1)},[l,e,s,a]);const v=c.useCallback(()=>{d(!0)},[]),C=c.useCallback(()=>{d(!1),f?(n==null||n(f),x(Kt(f,i))):x(e?Kt(e,i):"")},[f,n,i,e]),R=c.useCallback(()=>{h(null),x(""),n==null||n(null)},[n]),k=c.useCallback($=>{x($);const M=Va($,i);if(M){let z=M;a&&a.length>0?z=a.find(H=>Ol(H,M))??null:z=Go(M,s),z&&h(z)}},[i,s,a]),T=c.useCallback($=>{h($),x(Kt($,i))},[i]),E=c.useCallback(()=>{if(!l){const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"")}},[l,p,i,n,e,s,a]),I=c.useCallback(()=>{const $=Va(p,i);if($){let M=$;a&&a.length>0?M=Ya($,a):M=Go($,s),M?(h(M),n==null||n(M),x(Kt(M,i))):x(e?Kt(e,i):"")}else x(e?Kt(e,i):"");d(!1)},[p,i,n,e,s,a]);return{isOpen:l,setIsOpen:d,inputValue:p,setInputValue:x,editingValue:f,setEditingValue:h,handleOpen:v,handleClose:C,handleClear:R,handleInputChange:k,handleWheelChange:T,handleInputBlur:E,handleEnterPress:I}}const F1=c.forwardRef(({value:e,onChange:n,onFocus:i,onBlur:s,onEnterPress:a,onClear:l,label:d,helperText:f,error:h,disabled:p,hasValue:x,placeholder:w="Select a time"},_)=>{const v=c.useRef(null);c.useEffect(()=>{typeof _=="function"?_(v.current):_&&(_.current=v.current)},[_]);const C=c.useCallback(E=>{var I;E.key==="Enter"&&(a==null||a(),(I=v.current)==null||I.blur())},[a]),R=c.useCallback(E=>{n(E)},[n]),k=c.useCallback(()=>{i()},[i]),T=c.useCallback(()=>{l==null||l()},[l]);return m.jsx(Il,{ref:v,value:e,onChange:R,onBlur:s,onKeyDown:C,onFocus:k,disabled:p,label:d,helperText:f,error:h,placeholder:w,rightIcon:x?void 0:Cl,clearable:x,onClear:T})});F1.displayName="TimePickerInput";const Qa=({isOpen:e,anchorRef:n,onClose:i,children:s,size:a,isFixedPosition:l=!1})=>{const d=be(),f=d.__hd__.timepicker,h=c.useRef(null),p=d.spaces[f.popup.offset];Al({anchorRef:n,popupRef:h,offsetValue:p,isOpen:e,useFixedPosition:l});const x=c.useCallback(_=>{_.target===_.currentTarget&&i()},[i]);if(c.useEffect(()=>{if(!e)return;const _=v=>{(v.key==="Escape"||v.key==="Tab")&&i()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[e,i]),!e||typeof document>"u")return null;const w=m.jsxs(m.Fragment,{children:[m.jsx(L,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:x}),m.jsx(L,{ref:h,position:"absolute",display:"flex",flexDirection:"row",zIndex:f.popup.zIndex,p:f.sizes[a].popupPadding,bgColor:f.colors.wheelBg,r:f.borderRadii.popup,borderWidth:"thin",borderColor:"grey200",role:"dialog","aria-modal":"true",children:s})]});return l?Df.createPortal(w,document.body):w},O1=c.forwardRef(({startValue:e,endValue:n,onStartChange:i,onEndChange:s,onStartFocus:a,onEndFocus:l,onStartBlur:d,onEndBlur:f,onStartEnterPress:h,onEndEnterPress:p,onClear:x,hasValue:w,disabled:_,error:v},C)=>{const R=c.useRef(null),k=c.useRef(null),[T,E]=c.useState(!1),I=be(),$=I.__hd__.input,M=vt(I,$.iconSize),z=_?$.disabledTextColor:$.iconColor;c.useImperativeHandle(C,()=>({focusStart:()=>{var P;return(P=R.current)==null?void 0:P.focus()},focusEnd:()=>{var P;return(P=k.current)==null?void 0:P.focus()},blurStart:()=>{var P;return(P=R.current)==null?void 0:P.blur()},blurEnd:()=>{var P;return(P=k.current)==null?void 0:P.blur()}}));const j=c.useCallback(()=>{E(!0),a()},[a]),H=c.useCallback(()=>{E(!0),l()},[l]),se=c.useCallback(()=>{E(!1),d==null||d()},[d]),te=c.useCallback(()=>{E(!1),f==null||f()},[f]),re=c.useCallback(P=>{var le;P.key==="Enter"&&(h==null||h(),(le=R.current)==null||le.blur())},[h]),B=c.useCallback(P=>{var le;P.key==="Enter"&&(p==null||p(),(le=k.current)==null||le.blur())},[p]),W=c.useCallback(P=>{P.stopPropagation(),x==null||x()},[x]);return m.jsxs(W3,{$isFocused:T,$isDisabled:!!_,$error:!!v,children:[m.jsx(Af,{ref:R,value:e,onChange:P=>i(P.target.value),onFocus:j,onBlur:se,onKeyDown:re,disabled:_,placeholder:"--:--"}),m.jsx(L,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:m.jsx(pt,{type:"icon",art:vl,size:16,color:"grey400"})}),m.jsx(Af,{ref:k,value:n,onChange:P=>s(P.target.value),onFocus:H,onBlur:te,onKeyDown:B,disabled:_,placeholder:"--:--"}),m.jsx(L,{ml:"xs",pl:"xs",children:w?m.jsx(kt,{onClick:W,children:m.jsx(L,{ml:$.iconSpacing,children:m.jsx(pt,{type:"icon",art:ds,size:M,color:z})})}):m.jsx(L,{ml:$.iconSpacing,children:m.jsx(pt,{type:"icon",art:Cl,size:M,color:z})})})]})});O1.displayName="TimePickerRangeInput";const S4=({value:e,onChange:n,range:i=!1,startValue:s,endValue:a,onStartChange:l,onEndChange:d,format:f=O3,minuteStep:h=z3,slots:p,size:x=F3,disabled:w=!1,label:_,helperText:v,error:C,isFixedPosition:R=!1,...k},T)=>{const E=c.useRef(null),I=c.useRef(null),$=Xa({value:e??null,onChange:n,format:f,minuteStep:h,slots:p}),M=Xa({value:s??null,onChange:l,format:f,minuteStep:h,slots:p}),z=Xa({value:a??null,onChange:d,format:f,minuteStep:h,slots:p});c.useImperativeHandle(T,()=>({open:()=>{i?M.setIsOpen(!0):$.setIsOpen(!0)},close:()=>{i?(M.setIsOpen(!1),z.setIsOpen(!1)):$.setIsOpen(!1)},reset:()=>{i?(M.handleClear(),z.handleClear()):$.handleClear()},getValue:()=>i?s??null:e??null,focus:()=>{var re;(re=E.current)==null||re.focus()}}));const j=c.useCallback(re=>{$.handleWheelChange(re)},[$]),H=c.useCallback(re=>{M.handleWheelChange(re)},[M]),se=c.useCallback(re=>{z.handleWheelChange(re)},[z]),te=c.useRef(!1);return c.useEffect(()=>{if(!i||M.isOpen||z.isOpen)return;if(te.current){te.current=!1;return}Z3(s,a)===1&&(te.current=!0,l==null||l(a),d==null||d(s))},[i,s,a,M.isOpen,z.isOpen,l,d]),i?m.jsxs(L,{...k,position:"relative",children:[_&&m.jsx(L,{mb:"xs",children:m.jsx(Qe,{fontWeight:"medium",children:_})}),m.jsx(L,{ref:I,children:m.jsx(O1,{startValue:M.inputValue,endValue:z.inputValue,onStartChange:M.handleInputChange,onEndChange:z.handleInputChange,onStartFocus:M.handleOpen,onEndFocus:z.handleOpen,onStartBlur:M.handleInputBlur,onEndBlur:z.handleInputBlur,onStartEnterPress:M.handleEnterPress,onEndEnterPress:z.handleEnterPress,onClear:()=>{M.handleClear(),z.handleClear()},hasValue:M.inputValue!==""||z.inputValue!=="",disabled:w,error:!!C})}),(C||v)&&m.jsx(L,{mt:"xs",children:m.jsx(Qe,{fontSize:"xs",color:C?"danger":"grey600",children:C||v})}),m.jsx(Qa,{isOpen:M.isOpen,anchorRef:I,onClose:M.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:M.editingValue,onChange:H,format:f,minuteStep:h,size:x,slots:p,markerValue:a,markerLabel:a?"End:":void 0})}),m.jsx(Qa,{isOpen:z.isOpen,anchorRef:I,onClose:z.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:z.editingValue,onChange:se,format:f,minuteStep:h,size:x,slots:p,markerValue:s,markerLabel:s?"Start:":void 0})})]}):m.jsxs(L,{...k,position:"relative",children:[m.jsx(L,{ref:I,children:m.jsx(F1,{ref:E,value:$.inputValue,onChange:$.handleInputChange,onFocus:$.handleOpen,onBlur:$.handleInputBlur,onEnterPress:$.handleEnterPress,onClear:$.handleClear,label:_,helperText:v,error:C,disabled:w,hasValue:$.inputValue!==""})}),m.jsx(Qa,{isOpen:$.isOpen,anchorRef:I,onClose:$.handleClose,size:x,isFixedPosition:R,children:m.jsx(Li,{value:$.editingValue,onChange:j,format:f,minuteStep:h,size:x,slots:p})})]})},E4=c.forwardRef(S4);exports.AIC_Kits_StackingLayers=mn;exports.Accordion=Ow;exports.Art=pt;exports.Avatar=q0;exports.BarChart=d3;exports.Base=Mv;exports.Box=L;exports.Brand=F0;exports.Button=Qr;exports.Carousel=Rw;exports.Checkbox=Dw;exports.DEFAULT_VIMEO_CONFIG=bw;exports.DatePicker=M1;exports.Divider=n1;exports.Emoji=O0;exports.Grid=C1;exports.Header=l1;exports.HeaderAuth=i1;exports.HeaderLogo=o1;exports.HeaderNav=s1;exports.HeaderSearch=a1;exports.Icon=xl;exports.Image=U0;exports.Input=Il;exports.LineChart=M3;exports.List=Dv;exports.Loading=Tl;exports.Modal=n3;exports.NormalizedBrowserName=e1;exports.NormalizedDeviceType=J0;exports.NormalizedOSName=t1;exports.Pagination=Kw;exports.PaginationItem=S1;exports.PieChart=_3;exports.Progress=e3;exports.RESPONSIVE_BREAKPOINTS=Hi;exports.RESPONSIVE_BREAKPOINT_KEYS=ji;exports.SUPPORTED_RICH_TEXT_TAGS=N0;exports.Select=Bw;exports.SelectDropdownItem=v1;exports.SelectInputDisplay=w1;exports.Skeleton=Zi;exports.StyledBox=A0;exports.Svg=G0;exports.Tag=jw;exports.Text=Qe;exports.ThemeProvider=$b;exports.TimePicker=E4;exports.Tooltip=r3;exports.Touchable=kt;exports.VIMEO_HOST=xw;exports.Vimeo=vw;exports.accordionTheme=Vf;exports.artTheme=Nf;exports.avatarTheme=Uf;exports.barChartTheme=Gf;exports.baseTheme=qf;exports.buttonTheme=Kf;exports.carouselTheme=Yf;exports.checkboxTheme=Xf;exports.configKeys=k0;exports.createSlotsDateConfig=T1;exports.css=lt;exports.cssPropsKey=_0;exports.customBoxPropsConfig=C0;exports.customBoxPropsKey=bl;exports.dateHasSlots=A1;exports.datepickerTheme=Qf;exports.defaultColorPalette=as;exports.defaultGradientColorPalette=Bf;exports.defaultScale=Pn;exports.defaultTheme=qo;exports.dividerTheme=Jf;exports.formatDateTimeForInput=Q3;exports.genBoxStyle=$0;exports.generateResponsiveStyles=Jr;exports.getAllUniqueTimeSlots=l4;exports.getBorderWidths=ul;exports.getComponentsTheme=g0;exports.getDatesFromSlots=a4;exports.getFontSizes=ls;exports.getFontWeights=ml;exports.getFonts=pl;exports.getGlobalTheme=yb;exports.getLineHeights=gl;exports.getPaginationTheme=o0;exports.getRadii=dl;exports.getResponsiveValue=x0;exports.getSelectStyles=_1;exports.getShadows=Hf;exports.getSizeValue=vt;exports.getSizes=fl;exports.getSpaces=hl;exports.getTextColor=gs;exports.getTheme=m0;exports.getThemeValue=S0;exports.getTimeSlotsForDate=ll;exports.headerTheme=e0;exports.inferResponsiveValues=b0;exports.inputTheme=t0;exports.isBorderWidth=ib;exports.isColor=Wf;exports.isEmoji=T0;exports.isFontSize=pb;exports.isFontWeight=gb;exports.isGradientColor=ob;exports.isIcon=R0;exports.isImage=I0;exports.isRadius=Pf;exports.isResponsiveValue=cs;exports.isSSR=Ct;exports.isShadow=hb;exports.isSize=xr;exports.isSpace=Zf;exports.isSvg=M0;exports.keyframes=Sn;exports.lineChartTheme=n0;exports.listTheme=r0;exports.loadingTheme=i0;exports.mapStylePropToThemeValue=E0;exports.parseUserAgent=ol;exports.pieChartTheme=s0;exports.populateResponsiveValue=yl;exports.progressTheme=a0;exports.reduceResponsiveValue=v0;exports.selectTheme=l0;exports.shouldForwardProp=y0;exports.skeletonTheme=c0;exports.styled=ue;exports.tagTheme=u0;exports.timepickerTheme=d0;exports.tooltipTheme=f0;exports.touchableTheme=h0;exports.transformResponsiveValue=Yt;exports.transposeObject=Ja;exports.useEventListener=el;exports.useHover=fs;exports.useInteractionDetector=Sl;exports.useIsomorphicLayoutEffect=vr;exports.useMediaQuery=Q6;exports.usePopupPosition=Al;exports.useResponsiveBreakpoint=ti;exports.useSelectState=x1;exports.useTheme=be;exports.useUserAgent=mv;exports.useWindowDimensions=K0;exports.vimeoTheme=p0;exports.zIndexRegistry=Cr;
|
|
997
|
+
`;const T_=(e,n)=>{if(e.length===0)return"";if(n==="linear")return e.map((r,s)=>`${s===0?"M":"L"} ${r.x} ${r.y}`).join(" ");if(n==="smooth"){let r=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const l=e[Math.max(0,s-2)],c=e[s-1],u=e[s],f=e[Math.min(e.length-1,s+1)],p=c.x+(u.x-l.x)/6,g=c.y+(u.y-l.y)/6,b=u.x-(f.x-c.x)/6,m=u.y-(f.y-c.y)/6;r+=` C ${p} ${g}, ${b} ${m}, ${u.x} ${u.y}`}return r}if(n==="step"){let r=`M ${e[0].x} ${e[0].y}`;for(let s=1;s<e.length;s++){const l=(e[s-1].x+e[s].x)/2;r+=` L ${l} ${e[s-1].y} L ${l} ${e[s].y} L ${e[s].x} ${e[s].y}`}return r}return""},R_=({series:e,width:n=600,minWidth:r=300,maxWidth:s,height:l=400,minHeight:c=300,maxHeight:u,chartMargin:f,size:p,variant:g,showGrid:b=!0,showXAxis:m=!0,showYAxis:x=!0,showLegend:v=!0,legendPosition:_="top",curve:j="linear",animationDuration:k=500,xAxisLabels:A,yDomain:$,testID:M="line-chart",...E})=>{const C=Re(),T=C.__hd__.lineChart,L=a.useRef(null),[F,Y]=a.useState(()=>{if(typeof n=="number")return n;if(typeof n=="string"){const Q=n.match(/^(\d+(?:\.\d+)?)px$/);if(Q)return parseFloat(Q[1])}return 600}),[U,K]=a.useState(()=>{if(typeof l=="number")return l;if(typeof l=="string"){const Q=l.match(/^(\d+(?:\.\d+)?)px$/);if(Q)return parseFloat(Q[1])}return 400}),O=g||T.defaultVariant,W=p||T.defaultSize;Ir(()=>{const Q=L.current;if(!Q)return;const ye=()=>{if(typeof n=="number")Y(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const _e=n.match(/^(\d+(?:\.\d+)?)px$/);_e&&Y(parseFloat(_e[1]))}else{const _e=Q.clientWidth;_e>0&&Y(_e)}const ce=(()=>{if(typeof l=="number")return l;if(typeof l=="string"){const _e=l.match(/^(\d+(?:\.\d+)?)px$/);if(_e)return parseFloat(_e[1])}return 400})();K(ce)};ye();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ye),G.observe(Q)):window.addEventListener("resize",ye),()=>{G?G.disconnect():window.removeEventListener("resize",ye)}},[n,l]),Ir(()=>{const Q=L.current;if(!Q)return;const ye=()=>{if(typeof n=="number")Y(n);else if(typeof n=="string"&&/^\d+(?:\.\d+)?px$/.test(n)){const _e=n.match(/^(\d+(?:\.\d+)?)px$/);_e&&Y(parseFloat(_e[1]))}else{const _e=Q.clientWidth;_e>0&&Y(_e)}const ce=(()=>{if(typeof l=="number")return l;if(typeof l=="string"){const _e=l.match(/^(\d+(?:\.\d+)?)px$/);if(_e)return parseFloat(_e[1])}return 400})();K(ce)};ye();let G;return typeof ResizeObserver<"u"?(G=new ResizeObserver(ye),G.observe(Q)):window.addEventListener("resize",ye),()=>{G?G.disconnect():window.removeEventListener("resize",ye)}},[n,l]);const{strokeWidth:B,dotRadius:he,axisColor:N,gridColor:ne,labelColor:oe,labelFontSize:Se,legendFontSize:Te,legendSpacing:ke}=T.sizes[W],{defaultColors:V}=T.variants[O],[de,Ce]=a.useMemo(()=>{if($)return $;let Q=1/0,ye=-1/0;return e.forEach(G=>{G.data.forEach(ce=>{Q=Math.min(Q,ce.y),ye=Math.max(ye,ce.y)})}),Q===1/0||ye===-1/0?[0,1]:[Math.floor(Q-(ye-Q)*.1),Math.ceil(ye+(ye-Q)*.1)]},[e,$]),Ee=a.useMemo(()=>{const ye=Array.from({length:5},(Fe,le)=>(de+(Ce-de)*(le/4)).toFixed(1)),G=C.fonts.neutral,ce=`${Se}px ${G}`,_e=Se*.6;let ze=null;typeof document<"u"&&(ze=document.createElement("canvas").getContext("2d"),ze&&(ze.font=ce));const Be=Fe=>ze?ze.measureText(Fe).width:Fe.length*_e,Qe=ye.reduce((Fe,le)=>Math.max(Fe,Be(le)),0),me=Math.ceil(Qe+12),Ae=(f==null?void 0:f.left)??50;return Math.max(Ae,me)},[de,Ce,f==null?void 0:f.left,Se,C.fonts.neutral]),H={top:(f==null?void 0:f.top)??20,right:(f==null?void 0:f.right)??20,bottom:(f==null?void 0:f.bottom)??40,left:Ee},be=Math.max(0,F-H.left-H.right),ie=Math.max(0,U-H.top-H.bottom),{processedSeries:xe,xLabels:we,yTicks:te}=a.useMemo(()=>{const Q=new Set,ye=[];let G=1/0,ce=-1/0;e.forEach(Me=>{Me.data.forEach(qe=>{const Je=String(qe.x);Q.has(Je)||(Q.add(Je),ye.push(Je)),G=Math.min(G,qe.y),ce=Math.max(ce,qe.y)})});const[_e,ze]=$||[Math.floor(G-(ce-G)*.1),Math.ceil(ce+(ce-G)*.1)],Be=A||ye,Qe=be/(Be.length-1||1),me=new Map(Be.map((Me,qe)=>[String(Me),qe*Qe])),Ae=Me=>{const qe=(Me-_e)/(ze-_e||1);return ie-qe*ie},Fe=e.map((Me,qe)=>({...Me,color:Me.color||V[qe%V.length],points:Me.data.map(Je=>({x:me.get(String(Je.x))||0,y:Ae(Je.y),originalX:Je.x,originalY:Je.y}))})),le=5,je=Array.from({length:le},(Me,qe)=>{const Je=_e+(ze-_e)*(qe/(le-1));return{value:Je,position:Ae(Je),label:Je.toFixed(1)}});return{processedSeries:Fe,xLabels:Be,yTicks:je.reverse()}},[e,be,ie,A,$,V]);return d.jsxs(E_,{ref:L,"data-testid":`${M}-container`,$width:n,$minWidth:r,$maxWidth:s,$height:l,$minHeight:c,$maxHeight:u,...E,children:[v&&_==="top"&&d.jsx(Ef,{$position:_,$spacing:ke,"data-testid":`${M}-legend`,children:xe.map((Q,ye)=>d.jsxs($f,{$spacing:ke,"data-testid":`${M}-legend-item-${ye}`,children:[d.jsx(kf,{$colorKey:Q.color,$strokeWidth:Q.strokeWidth||B,$strokeDasharray:Q.strokeDasharray}),d.jsx(Af,{$fontSize:Te,$colorKey:oe,children:Q.label})]},Q.id))}),d.jsxs($_,{$width:F,$height:U,viewBox:`0 0 ${F} ${U}`,role:"img","aria-label":"Line chart","data-testid":`${M}-svg`,children:[d.jsx("title",{children:"Line chart"}),d.jsxs("g",{transform:`translate(${H.left}, ${H.top})`,children:[b&&d.jsxs(d.Fragment,{children:[te.map((Q,ye)=>d.jsx(Cf,{$colorKey:ne,x1:0,y1:Q.position,x2:be,y2:Q.position,"data-testid":`${M}-grid-h-${ye}`},`h-grid-${ye}`)),we.map((Q,ye)=>{const G=ye*be/(we.length-1||1);return d.jsx(Cf,{$colorKey:ne,x1:G,y1:0,x2:G,y2:ie,"data-testid":`${M}-grid-v-${ye}`},`v-grid-${ye}`)})]}),xe.map((Q,ye)=>{var _e,ze;const G=T_(Q.points,j),ce=Q.showArea?`${G} L ${((_e=Q.points[Q.points.length-1])==null?void 0:_e.x)||0} ${ie} L ${((ze=Q.points[0])==null?void 0:ze.x)||0} ${ie} Z`:"";return d.jsxs("g",{children:[Q.showArea&&d.jsx(A_,{d:ce,$colorKey:Q.color,$animationDuration:k,"data-testid":`${M}-area-${ye}`}),d.jsx(k_,{d:G,$colorKey:Q.color,$strokeWidth:Q.strokeWidth||B,$strokeDasharray:Q.strokeDasharray,$animationDuration:k,"data-testid":`${M}-line-${ye}`}),Q.showDots!==!1&&Q.points.map((Be,Qe)=>d.jsx(j_,{cx:Be.x,cy:Be.y,r:he,$colorKey:Q.color,$animationDuration:k,"data-testid":`${M}-dot-${ye}-${Qe}`},Qe))]},Q.id)}),m&&d.jsxs(d.Fragment,{children:[d.jsx(_f,{$colorKey:N,x1:0,y1:ie,x2:be,y2:ie,"data-testid":`${M}-x-axis`}),we.map((Q,ye)=>{const G=ye*be/(we.length-1||1);return d.jsx(Sf,{x:G,y:ie+20,$colorKey:oe,$fontSize:Se,textAnchor:"middle","data-testid":`${M}-x-label-${ye}`,children:Q},ye)})]}),x&&d.jsxs(d.Fragment,{children:[d.jsx(_f,{$colorKey:N,x1:0,y1:0,x2:0,y2:ie,"data-testid":`${M}-y-axis`}),te.map((Q,ye)=>d.jsx(Sf,{x:-10,y:Q.position,$colorKey:oe,$fontSize:Se,textAnchor:"end",dominantBaseline:"middle","data-testid":`${M}-y-label-${ye}`,children:Q.label},ye))]})]})]}),v&&_==="bottom"&&d.jsx(Ef,{$position:_,$spacing:ke,"data-testid":`${M}-legend`,children:xe.map((Q,ye)=>d.jsxs($f,{$spacing:ke,"data-testid":`${M}-legend-item-${ye}`,children:[d.jsx(kf,{$colorKey:Q.color,$strokeWidth:Q.strokeWidth||B,$strokeDasharray:Q.strokeDasharray}),d.jsx(Af,{$fontSize:Te,$colorKey:oe,children:Q.label})]},Q.id))})]})};function fs(e,n){return{hours:e.hours,minutes:Y3(e.minutes,n)}}function $l(e,n){if(n.length===0)return null;const r=n.find(u=>pc(u,e));if(r)return r;const s=e.hours*60+e.minutes;let l=n[0],c=Math.abs(n[0].hours*60+n[0].minutes-s);for(const u of n){const f=u.hours*60+u.minutes,p=Math.abs(f-s);p<c&&(c=p,l=u)}return l}function kl({value:e,onChange:n,format:r,minuteStep:s=1,slots:l}){const[c,u]=a.useState(!1),[f,p]=a.useState(null),[g,b]=a.useState(()=>e?en(e,r):""),m=a.useRef(!1),x=a.useRef(!1);a.useEffect(()=>{m.current||b(e?en(e,r):"")},[e,r]),a.useEffect(()=>{const E=c&&!x.current;if(x.current=c,E){if(e)p(e);else{const C=new Date;let T={hours:C.getHours(),minutes:C.getMinutes()};l&&l.length>0?T=$l(T,l)??l[0]:T=fs(T,s),p(T)}m.current=!0}else c||(m.current=!1)},[c,e,s,l]);const v=a.useCallback(()=>{u(!0)},[]),_=a.useCallback(()=>{u(!1),f?(n==null||n(f),b(en(f,r))):b(e?en(e,r):"")},[f,n,r,e]),j=a.useCallback(()=>{p(null),b(""),n==null||n(null)},[n]),k=a.useCallback(E=>{b(E);const C=vl(E,r);if(C){let T=C;l&&l.length>0?T=l.find(F=>pc(F,C))??null:T=fs(C,s),T&&p(T)}},[r,s,l]),A=a.useCallback(E=>{p(E),b(en(E,r))},[r]),$=a.useCallback(()=>{if(!c){const E=vl(g,r);if(E){let C=E;l&&l.length>0?C=$l(E,l):C=fs(E,s),C?(n==null||n(C),b(en(C,r))):b(e?en(e,r):"")}else b(e?en(e,r):"")}},[c,g,r,n,e,s,l]),M=a.useCallback(()=>{const E=vl(g,r);if(E){let C=E;l&&l.length>0?C=$l(E,l):C=fs(E,s),C?(p(C),n==null||n(C),b(en(C,r))):b(e?en(e,r):"")}else b(e?en(e,r):"");u(!1)},[g,r,n,e,s,l]);return{isOpen:c,setIsOpen:u,inputValue:g,setInputValue:b,editingValue:f,setEditingValue:p,handleOpen:v,handleClose:_,handleClear:j,handleInputChange:k,handleWheelChange:A,handleInputBlur:$,handleEnterPress:M}}const Bh=a.forwardRef(({value:e,onChange:n,onFocus:r,onBlur:s,onEnterPress:l,onClear:c,label:u,helperText:f,error:p,disabled:g,hasValue:b,placeholder:m="Select a time"},x)=>{const v=a.useRef(null);a.useEffect(()=>{typeof x=="function"?x(v.current):x&&(x.current=v.current)},[x]);const _=a.useCallback($=>{var M;$.key==="Enter"&&(l==null||l(),(M=v.current)==null||M.blur())},[l]),j=a.useCallback($=>{n($)},[n]),k=a.useCallback(()=>{r()},[r]),A=a.useCallback(()=>{c==null||c()},[c]);return d.jsx(In,{ref:v,value:e,onChange:j,onBlur:s,onKeyDown:_,onFocus:k,disabled:g,label:u,helperText:f,error:p,placeholder:m,rightIcon:b?void 0:nc,clearable:b,onClear:A})});Bh.displayName="TimePickerInput";const Al=({isOpen:e,anchorRef:n,onClose:r,children:s,size:l,isFixedPosition:c=!1})=>{const u=Re(),f=u.__hd__.timepicker,p=a.useRef(null),g=u.spaces[f.popup.offset];ac({anchorRef:n,popupRef:p,offsetValue:g,isOpen:e,useFixedPosition:c});const b=a.useCallback(x=>{x.target===x.currentTarget&&r()},[r]);if(a.useEffect(()=>{if(!e)return;const x=v=>{(v.key==="Escape"||v.key==="Tab")&&r()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[e,r]),!e||typeof document>"u")return null;const m=d.jsxs(d.Fragment,{children:[d.jsx(I,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:f.popup.zIndex-1,onClick:b}),d.jsx(I,{ref:p,position:"absolute",display:"flex",flexDirection:"row",zIndex:f.popup.zIndex,p:f.sizes[l].popupPadding,bgColor:f.colors.wheelBg,r:f.borderRadii.popup,borderWidth:"thin",borderColor:"grey200",role:"dialog","aria-modal":"true",children:s})]});return c?Ni.createPortal(m,document.body):m},Vh=a.forwardRef(({startValue:e,endValue:n,onStartChange:r,onEndChange:s,onStartFocus:l,onEndFocus:c,onStartBlur:u,onEndBlur:f,onStartEnterPress:p,onEndEnterPress:g,onClear:b,hasValue:m,disabled:x,error:v},_)=>{const j=a.useRef(null),k=a.useRef(null),[A,$]=a.useState(!1),M=Re(),E=M.__hd__.input,C=xt(M,E.iconSize),T=x?E.disabledTextColor:E.iconColor;a.useImperativeHandle(_,()=>({focusStart:()=>{var B;return(B=j.current)==null?void 0:B.focus()},focusEnd:()=>{var B;return(B=k.current)==null?void 0:B.focus()},blurStart:()=>{var B;return(B=j.current)==null?void 0:B.blur()},blurEnd:()=>{var B;return(B=k.current)==null?void 0:B.blur()}}));const L=a.useCallback(()=>{$(!0),l()},[l]),F=a.useCallback(()=>{$(!0),c()},[c]),Y=a.useCallback(()=>{$(!1),u==null||u()},[u]),U=a.useCallback(()=>{$(!1),f==null||f()},[f]),K=a.useCallback(B=>{var he;B.key==="Enter"&&(p==null||p(),(he=j.current)==null||he.blur())},[p]),O=a.useCallback(B=>{var he;B.key==="Enter"&&(g==null||g(),(he=k.current)==null||he.blur())},[g]),W=a.useCallback(B=>{B.stopPropagation(),b==null||b()},[b]);return d.jsxs(q3,{$isFocused:A,$isDisabled:!!x,$error:!!v,children:[d.jsx(uf,{ref:j,value:e,onChange:B=>r(B.target.value),onFocus:L,onBlur:Y,onKeyDown:K,disabled:x,placeholder:"--:--"}),d.jsx(I,{display:"flex",alignItems:"center",justifyContent:"center",px:"xs",children:d.jsx(yt,{type:"icon",art:Xl,size:16,color:"grey400"})}),d.jsx(uf,{ref:k,value:n,onChange:B=>s(B.target.value),onFocus:F,onBlur:U,onKeyDown:O,disabled:x,placeholder:"--:--"}),d.jsx(I,{ml:"xs",pl:"xs",children:m?d.jsx(at,{onClick:W,children:d.jsx(I,{ml:E.iconSpacing,children:d.jsx(yt,{type:"icon",art:Rn,size:C,color:T})})}):d.jsx(I,{ml:E.iconSpacing,children:d.jsx(yt,{type:"icon",art:nc,size:C,color:T})})})]})});Vh.displayName="TimePickerRangeInput";const M_=({value:e,onChange:n,range:r=!1,startValue:s,endValue:l,onStartChange:c,onEndChange:u,format:f=B3,minuteStep:p=V3,slots:g,size:b=H3,disabled:m=!1,label:x,helperText:v,error:_,isFixedPosition:j=!1,...k},A)=>{const $=a.useRef(null),M=a.useRef(null),E=kl({value:e??null,onChange:n,format:f,minuteStep:p,slots:g}),C=kl({value:s??null,onChange:c,format:f,minuteStep:p,slots:g}),T=kl({value:l??null,onChange:u,format:f,minuteStep:p,slots:g});a.useImperativeHandle(A,()=>({open:()=>{r?C.setIsOpen(!0):E.setIsOpen(!0)},close:()=>{r?(C.setIsOpen(!1),T.setIsOpen(!1)):E.setIsOpen(!1)},reset:()=>{r?(C.handleClear(),T.handleClear()):E.handleClear()},getValue:()=>r?s??null:e??null,focus:()=>{var K;(K=$.current)==null||K.focus()}}));const L=a.useCallback(K=>{E.handleWheelChange(K)},[E]),F=a.useCallback(K=>{C.handleWheelChange(K)},[C]),Y=a.useCallback(K=>{T.handleWheelChange(K)},[T]),U=a.useRef(!1);return a.useEffect(()=>{if(!r||C.isOpen||T.isOpen)return;if(U.current){U.current=!1;return}X3(s,l)===1&&(U.current=!0,c==null||c(l),u==null||u(s))},[r,s,l,C.isOpen,T.isOpen,c,u]),r?d.jsxs(I,{...k,position:"relative",children:[x&&d.jsx(I,{mb:"xs",children:d.jsx(Oe,{fontWeight:"medium",children:x})}),d.jsx(I,{ref:M,children:d.jsx(Vh,{startValue:C.inputValue,endValue:T.inputValue,onStartChange:C.handleInputChange,onEndChange:T.handleInputChange,onStartFocus:C.handleOpen,onEndFocus:T.handleOpen,onStartBlur:C.handleInputBlur,onEndBlur:T.handleInputBlur,onStartEnterPress:C.handleEnterPress,onEndEnterPress:T.handleEnterPress,onClear:()=>{C.handleClear(),T.handleClear()},hasValue:C.inputValue!==""||T.inputValue!=="",disabled:m,error:!!_})}),(_||v)&&d.jsx(I,{mt:"xs",children:d.jsx(Oe,{fontSize:"xs",color:_?"danger":"grey600",children:_||v})}),d.jsx(Al,{isOpen:C.isOpen,anchorRef:M,onClose:C.handleClose,size:b,isFixedPosition:j,children:d.jsx(Zi,{value:C.editingValue,onChange:F,format:f,minuteStep:p,size:b,slots:g,markerValue:l,markerLabel:l?"End:":void 0})}),d.jsx(Al,{isOpen:T.isOpen,anchorRef:M,onClose:T.handleClose,size:b,isFixedPosition:j,children:d.jsx(Zi,{value:T.editingValue,onChange:Y,format:f,minuteStep:p,size:b,slots:g,markerValue:s,markerLabel:s?"Start:":void 0})})]}):d.jsxs(I,{...k,position:"relative",children:[d.jsx(I,{ref:M,children:d.jsx(Bh,{ref:$,value:E.inputValue,onChange:E.handleInputChange,onFocus:E.handleOpen,onBlur:E.handleInputBlur,onEnterPress:E.handleEnterPress,onClear:E.handleClear,label:x,helperText:v,error:_,disabled:m,hasValue:E.inputValue!==""})}),d.jsx(Al,{isOpen:E.isOpen,anchorRef:M,onClose:E.handleClose,size:b,isFixedPosition:j,children:d.jsx(Zi,{value:E.editingValue,onChange:L,format:f,minuteStep:p,size:b,slots:g})})]})},I_=a.forwardRef(M_);exports.AIC_Kits_StackingLayers=_n;exports.Accordion=gh;exports.AccordionRow=Dh;exports.AddForm=Ph;exports.Art=yt;exports.Avatar=N1;exports.BarChart=u_;exports.Base=b4;exports.Box=I;exports.Brand=$1;exports.Button=ot;exports.Carousel=m3;exports.Checkbox=dc;exports.DEFAULT_VIMEO_CONFIG=i3;exports.DatePicker=Ds;exports.DeleteDialog=Wh;exports.Divider=J1;exports.Emoji=k1;exports.Filters=Hh;exports.FormFields=yc;exports.Grid=Kn;exports.Header=oh;exports.HeaderAuth=th;exports.HeaderLogo=nh;exports.HeaderNav=rh;exports.HeaderSearch=ih;exports.Icon=Yl;exports.Image=V1;exports.InlineMultiSelect=Oh;exports.InlinePairSelect=zh;exports.Input=In;exports.LineChart=R_;exports.List=C4;exports.Loading=eo;exports.Modal=Ls;exports.NormalizedBrowserName=X1;exports.NormalizedDeviceType=Y1;exports.NormalizedOSName=Q1;exports.PAGINATION_PARAMS=Fh;exports.Pagination=O3;exports.PaginationItem=$h;exports.PieChart=w_;exports.Progress=P3;exports.RESPONSIVE_BREAKPOINTS=Xi;exports.RESPONSIVE_BREAKPOINT_KEYS=Ui;exports.Radio=Fs;exports.RadioButton=fc;exports.RadioGroup=vh;exports.SUPPORTED_RICH_TEXT_TAGS=B1;exports.Select=Gn;exports.SelectDropdownItem=_h;exports.SelectInputDisplay=Sh;exports.Skeleton=Ji;exports.StyledBox=w1;exports.Svg=Z1;exports.Switch=Eh;exports.Table=t_;exports.Tag=Ll;exports.Text=Oe;exports.ThemeProvider=xx;exports.TimePicker=I_;exports.Tooltip=n_;exports.Touchable=at;exports.VIMEO_HOST=o3;exports.Vimeo=s3;exports.accordionTheme=Of;exports.applyFilters=F5;exports.artTheme=zf;exports.avatarTheme=Ff;exports.barChartTheme=Lf;exports.baseTheme=Df;exports.buttonTheme=Pf;exports.carouselTheme=Wf;exports.checkboxTheme=Hf;exports.configKeys=x1;exports.createNonFilterParams=I5;exports.createSlotsDateConfig=Rh;exports.css=Ct;exports.cssPropsKey=g1;exports.customBoxPropsConfig=m1;exports.customBoxPropsKey=Kl;exports.dateHasSlots=Th;exports.datepickerTheme=Bf;exports.defaultColorPalette=ks;exports.defaultGradientColorPalette=Rf;exports.defaultScale=Xn;exports.defaultTheme=hs;exports.dividerTheme=Vf;exports.filtersToSearchParams=O5;exports.formatDateTimeForInput=s5;exports.genBoxStyle=v1;exports.generateResponsiveStyles=ui;exports.getAllUniqueTimeSlots=m5;exports.getBorderWidths=Hl;exports.getComponentsTheme=l1;exports.getDatesFromSlots=g5;exports.getFontSizes=As;exports.getFontWeights=Gl;exports.getFonts=Nl;exports.getGlobalTheme=cx;exports.getLineHeights=Ul;exports.getPaginationTheme=Kf;exports.getRadii=Bl;exports.getResponsiveValue=f1;exports.getSelectStyles=Ch;exports.getShadows=Mf;exports.getSizeValue=xt;exports.getSizes=Vl;exports.getSpaces=Zl;exports.getTextColor=Is;exports.getTheme=c1;exports.getThemeValue=y1;exports.getTimeSlotsForDate=Pl;exports.headerTheme=Zf;exports.inferResponsiveValues=d1;exports.inputTheme=Nf;exports.isBorderWidth=Yb;exports.isColor=Tf;exports.isEmoji=_1;exports.isFontSize=sx;exports.isFontWeight=ax;exports.isGradientColor=Xb;exports.isIcon=S1;exports.isImage=C1;exports.isRadius=jf;exports.isResponsiveValue=js;exports.isSSR=At;exports.isShadow=ox;exports.isSize=Mr;exports.isSpace=If;exports.isSvg=E1;exports.keyframes=On;exports.lineChartTheme=Uf;exports.listTheme=Gf;exports.loadingTheme=qf;exports.mapStylePropToThemeValue=b1;exports.parseFiltersFromParams=z5;exports.parseUserAgent=zl;exports.pieChartTheme=Yf;exports.populateResponsiveValue=ql;exports.progressTheme=Xf;exports.radioTheme=Qf;exports.reduceResponsiveValue=h1;exports.selectTheme=Jf;exports.shouldForwardProp=u1;exports.skeletonTheme=e1;exports.styled=pe;exports.switchTheme=t1;exports.tableTheme=n1;exports.tagTheme=r1;exports.timepickerTheme=i1;exports.tooltipTheme=o1;exports.touchableTheme=s1;exports.transformResponsiveValue=tn;exports.transposeObject=jl;exports.useEventListener=Tl;exports.useHover=Ts;exports.useInteractionDetector=rc;exports.useIsomorphicLayoutEffect=Ir;exports.useLocalStateAdapter=Y5;exports.useMediaQuery=Dw;exports.usePopupPosition=ac;exports.useResponsiveBreakpoint=di;exports.useSelectState=wh;exports.useTable=K5;exports.useTheme=Re;exports.useUserAgent=n4;exports.useWindowDimensions=U1;exports.vimeoTheme=a1;exports.zIndexRegistry=Fr;
|