@telia-ace/widget-components-ace-widget 1.2.7

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.
@@ -0,0 +1,621 @@
1
+ "use strict";var us=Object.defineProperty;var ls=(e,t,n)=>t in e?us(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var H=(e,t,n)=>(ls(e,typeof t!="symbol"?t+"":t,n),n);const p=require("react/jsx-runtime"),m=require("react"),Xe=require("react-dom");function fs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const re=fs(m);function ds(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ps(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hs=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ps(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
2
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!s}if(this.isSpeedy){var i=ds(o);try{i.insertRule(r,i.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),fe="-ms-",Ct="-moz-",F="-webkit-",Nn="comm",kn="rule",Tn="decl",ms="@import",co="@keyframes",vs="@layer",gs=Math.abs,Rt=String.fromCharCode,ys=Object.assign;function bs(e,t){return le(e,0)^45?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}function uo(e){return e.trim()}function xs(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,n){return e.replace(t,n)}function fn(e,t){return e.indexOf(t)}function le(e,t){return e.charCodeAt(t)|0}function nt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function Rn(e){return e.length}function lt(e,t){return t.push(e),e}function ws(e,t){return e.map(t).join("")}var jt=1,ze=1,lo=0,me=0,ie=0,Ye="";function Pt(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:jt,column:ze,length:i,return:""}}function Ge(e,t){return ys(Pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Es(){return ie}function Cs(){return ie=me>0?le(Ye,--me):0,ze--,ie===10&&(ze=1,jt--),ie}function ye(){return ie=me<lo?le(Ye,me++):0,ze++,ie===10&&(ze=1,jt++),ie}function Se(){return le(Ye,me)}function yt(){return me}function it(e,t){return nt(Ye,e,t)}function rt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fo(e){return jt=ze=1,lo=Oe(Ye=e),me=0,[]}function po(e){return Ye="",e}function bt(e){return uo(it(me-1,dn(e===91?e+2:e===40?e+1:e)))}function Os(e){for(;(ie=Se())&&ie<33;)ye();return rt(e)>2||rt(ie)>3?"":" "}function Ss(e,t){for(;--t&&ye()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return it(e,yt()+(t<6&&Se()==32&&ye()==32))}function dn(e){for(;ye();)switch(ie){case e:return me;case 34:case 39:e!==34&&e!==39&&dn(ie);break;case 40:e===41&&dn(e);break;case 92:ye();break}return me}function Ns(e,t){for(;ye()&&e+ie!==47+10;)if(e+ie===42+42&&Se()===47)break;return"/*"+it(t,me-1)+"*"+Rt(e===47?e:ye())}function ks(e){for(;!rt(Se());)ye();return it(e,me)}function Ts(e){return po(xt("",null,null,null,[""],e=fo(e),0,[0],e))}function xt(e,t,n,r,o,s,i,a,u){for(var l=0,c=0,f=i,d=0,h=0,g=0,v=1,y=1,S=1,R=0,j="",T=o,x=s,D=r,k=j;y;)switch(g=R,R=ye()){case 40:if(g!=108&&le(k,f-1)==58){fn(k+=Y(bt(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:k+=bt(R);break;case 9:case 10:case 13:case 32:k+=Os(g);break;case 92:k+=Ss(yt()-1,7);continue;case 47:switch(Se()){case 42:case 47:lt(Rs(Ns(ye(),yt()),t,n),u);break;default:k+="/"}break;case 123*v:a[l++]=Oe(k)*S;case 125*v:case 59:case 0:switch(R){case 0:case 125:y=0;case 59+c:S==-1&&(k=Y(k,/\f/g,"")),h>0&&Oe(k)-f&&lt(h>32?ur(k+";",r,n,f-1):ur(Y(k," ","")+";",r,n,f-2),u);break;case 59:k+=";";default:if(lt(D=cr(k,t,n,l,c,o,a,j,T=[],x=[],f),s),R===123)if(c===0)xt(k,t,D,D,T,s,f,a,x);else switch(d===99&&le(k,3)===110?100:d){case 100:case 108:case 109:case 115:xt(e,D,D,r&&lt(cr(e,D,D,0,0,o,a,j,o,T=[],f),x),o,x,f,a,r?T:x);break;default:xt(k,D,D,D,[""],x,0,a,x)}}l=c=h=0,v=S=1,j=k="",f=i;break;case 58:f=1+Oe(k),h=g;default:if(v<1){if(R==123)--v;else if(R==125&&v++==0&&Cs()==125)continue}switch(k+=Rt(R),R*v){case 38:S=c>0?1:(k+="\f",-1);break;case 44:a[l++]=(Oe(k)-1)*S,S=1;break;case 64:Se()===45&&(k+=bt(ye())),d=Se(),c=f=Oe(j=k+=ks(yt())),R++;break;case 45:g===45&&Oe(k)==2&&(v=0)}}return s}function cr(e,t,n,r,o,s,i,a,u,l,c){for(var f=o-1,d=o===0?s:[""],h=Rn(d),g=0,v=0,y=0;g<r;++g)for(var S=0,R=nt(e,f+1,f=gs(v=i[g])),j=e;S<h;++S)(j=uo(v>0?d[S]+" "+R:Y(R,/&\f/g,d[S])))&&(u[y++]=j);return Pt(e,t,n,o===0?kn:a,u,l,c)}function Rs(e,t,n){return Pt(e,t,n,Nn,Rt(Es()),nt(e,2,-2),0)}function ur(e,t,n,r){return Pt(e,t,n,Tn,nt(e,0,r),nt(e,r+1,-1),r)}function Ie(e,t){for(var n="",r=Rn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function js(e,t,n,r){switch(e.type){case vs:if(e.children.length)break;case ms:case Tn:return e.return=e.return||e.value;case Nn:return"";case co:return e.return=e.value+"{"+Ie(e.children,r)+"}";case kn:e.value=e.props.join(",")}return Oe(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ps(e){var t=Rn(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function _s(e){return function(t){t.root||(t=t.return)&&e(t)}}function ho(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $s=function(t,n,r){for(var o=0,s=0;o=s,s=Se(),o===38&&s===12&&(n[r]=1),!rt(s);)ye();return it(t,me)},As=function(t,n){var r=-1,o=44;do switch(rt(o)){case 0:o===38&&Se()===12&&(n[r]=1),t[r]+=$s(me-1,n,r);break;case 2:t[r]+=bt(o);break;case 4:if(o===44){t[++r]=Se()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Rt(o)}while(o=ye());return t},Ls=function(t,n){return po(As(fo(t),n))},lr=new WeakMap,Ds=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!lr.get(r))&&!o){lr.set(t,!0);for(var s=[],i=Ls(n,s),a=r.props,u=0,l=0;u<i.length;u++)for(var c=0;c<a.length;c++,l++)t.props[l]=s[u]?i[u].replace(/&\f/g,a[c]):a[c]+" "+i[u]}}},Ms=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Is="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Vs=function(t){return t.type==="comm"&&t.children.indexOf(Is)>-1},Hs=function(t){return function(n,r,o){if(!(n.type!=="rule"||t.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var i=!!n.parent,a=i?n.parent.children:o,u=a.length-1;u>=0;u--){var l=a[u];if(l.line<n.line)break;if(l.column<n.column){if(Vs(l))return;break}}s.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},mo=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},zs=function(t,n){for(var r=t-1;r>=0;r--)if(!mo(n[r]))return!0;return!1},fr=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Bs=function(t,n,r){mo(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),fr(t)):zs(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),fr(t)))};function vo(e,t){switch(bs(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Ct+e+fe+e+e;case 6828:case 4268:return F+e+fe+e+e;case 6165:return F+e+fe+"flex-"+e+e;case 5187:return F+e+Y(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return F+e+fe+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return F+e+fe+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+fe+Y(e,"shrink","negative")+e;case 5292:return F+e+fe+Y(e,"basis","preferred-size")+e;case 6060:return F+"box-"+Y(e,"-grow","")+F+e+fe+Y(e,"grow","positive")+e;case 4554:return F+Y(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oe(e)-1-t>6)switch(le(e,t+1)){case 109:if(le(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+Ct+(le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch")?vo(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(le(e,t+1)!==115)break;case 6444:switch(le(e,Oe(e)-3-(~fn(e,"!important")&&10))){case 107:return Y(e,":",":"+F)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(le(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+fe+"$2box$3")+e}break;case 5936:switch(le(e,t+11)){case 114:return F+e+fe+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+fe+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+fe+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+fe+e+e}return e}var Ws=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Tn:t.return=vo(t.value,t.length);break;case co:return Ie([Ge(t,{value:Y(t.value,"@","@"+F)})],o);case kn:if(t.length)return ws(t.props,function(s){switch(xs(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ie([Ge(t,{props:[Y(s,/:(read-\w+)/,":"+Ct+"$1")]})],o);case"::placeholder":return Ie([Ge(t,{props:[Y(s,/:(plac\w+)/,":"+F+"input-$1")]}),Ge(t,{props:[Y(s,/:(plac\w+)/,":"+Ct+"$1")]}),Ge(t,{props:[Y(s,/:(plac\w+)/,fe+"input-$1")]})],o)}return""})}},Us=[Ws],Fs=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
3
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Us;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)s[y[S]]=!0;a.push(v)});var u,l=[Ds,Ms];process.env.NODE_ENV!=="production"&&l.push(Hs({get compat(){return g.compat}}),Bs);{var c,f=[js,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?c.insert(v.return):v.value&&v.type!==Nn&&c.insert(v.value+"{}"))}:_s(function(v){c.insert(v)})],d=Ps(l.concat(o,f)),h=function(y){return Ie(Ts(y),d)};u=function(y,S,R,j){c=R,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(c={insert:function(x){R.insert(x+S.map)}}),h(y?y+"{"+S.styles+"}":S.styles),j&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new hs({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(a),g};function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var s=Function.bind.apply(t,o);return new s}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var pn={exports:{}},Z={};/** @license React v16.13.1
4
+ * react-is.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var dr;function qs(){if(dr)return Z;dr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function j(x){if(typeof x=="object"&&x!==null){var D=x.$$typeof;switch(D){case t:switch(x=x.type,x){case u:case l:case r:case s:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case a:case c:case g:case h:case i:return x;default:return D}}case n:return D}}}function T(x){return j(x)===l}return Z.AsyncMode=u,Z.ConcurrentMode=l,Z.ContextConsumer=a,Z.ContextProvider=i,Z.Element=t,Z.ForwardRef=c,Z.Fragment=r,Z.Lazy=g,Z.Memo=h,Z.Portal=n,Z.Profiler=s,Z.StrictMode=o,Z.Suspense=f,Z.isAsyncMode=function(x){return T(x)||j(x)===u},Z.isConcurrentMode=T,Z.isContextConsumer=function(x){return j(x)===a},Z.isContextProvider=function(x){return j(x)===i},Z.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Z.isForwardRef=function(x){return j(x)===c},Z.isFragment=function(x){return j(x)===r},Z.isLazy=function(x){return j(x)===g},Z.isMemo=function(x){return j(x)===h},Z.isPortal=function(x){return j(x)===n},Z.isProfiler=function(x){return j(x)===s},Z.isStrictMode=function(x){return j(x)===o},Z.isSuspense=function(x){return j(x)===f},Z.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===l||x===s||x===o||x===f||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===h||x.$$typeof===i||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.$$typeof===S||x.$$typeof===R||x.$$typeof===v)},Z.typeOf=j,Z}var K={};/** @license React v16.13.1
11
+ * react-is.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var pr;function Zs(){return pr||(pr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function j(P){return typeof P=="string"||typeof P=="function"||P===r||P===l||P===s||P===o||P===f||P===d||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===h||P.$$typeof===i||P.$$typeof===a||P.$$typeof===c||P.$$typeof===y||P.$$typeof===S||P.$$typeof===R||P.$$typeof===v)}function T(P){if(typeof P=="object"&&P!==null){var Ce=P.$$typeof;switch(Ce){case t:var ut=P.type;switch(ut){case u:case l:case r:case s:case o:case f:return ut;default:var ar=ut&&ut.$$typeof;switch(ar){case a:case c:case g:case h:case i:return ar;default:return Ce}}case n:return Ce}}}var x=u,D=l,k=a,_=i,z=t,B=c,G=r,q=g,ne=h,Q=n,te=s,ee=o,ae=f,X=!1;function I(P){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(P)||T(P)===u}function b(P){return T(P)===l}function w(P){return T(P)===a}function C(P){return T(P)===i}function O(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function N(P){return T(P)===c}function L(P){return T(P)===r}function $(P){return T(P)===g}function A(P){return T(P)===h}function V(P){return T(P)===n}function U(P){return T(P)===s}function W(P){return T(P)===o}function pe(P){return T(P)===f}K.AsyncMode=x,K.ConcurrentMode=D,K.ContextConsumer=k,K.ContextProvider=_,K.Element=z,K.ForwardRef=B,K.Fragment=G,K.Lazy=q,K.Memo=ne,K.Portal=Q,K.Profiler=te,K.StrictMode=ee,K.Suspense=ae,K.isAsyncMode=I,K.isConcurrentMode=b,K.isContextConsumer=w,K.isContextProvider=C,K.isElement=O,K.isForwardRef=N,K.isFragment=L,K.isLazy=$,K.isMemo=A,K.isPortal=V,K.isProfiler=U,K.isStrictMode=W,K.isSuspense=pe,K.isValidElementType=j,K.typeOf=T}()),K}process.env.NODE_ENV==="production"?pn.exports=qs():pn.exports=Zs();var _t=pn.exports,yo=_t,Ks={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bo={};bo[yo.ForwardRef]=Ks;bo[yo.Memo]=Gs;var Js=!0;function Pn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var $t=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Js===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},At=function(t,n,r){$t(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Xs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
18
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
19
+ You can read more about this here:
20
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ei="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ti=/[A-Z]|^ms/g,xo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_n=function(t){return t.charCodeAt(1)===45},mr=function(t){return t!=null&&typeof t!="boolean"},Wt=ho(function(e){return _n(e)?e:e.replace(ti,"-$&").toLowerCase()}),Ot=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(xo,function(r,o,s){return we={name:o,styles:s,next:we},o})}return Qs[t]!==1&&!_n(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var ni=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ri=["normal","none","initial","inherit","unset"],oi=Ot,si=/^-ms-/,ii=/-(.)/g,vr={};Ot=function(t,n){if(t==="content"&&(typeof n!="string"||ri.indexOf(n)===-1&&!ni.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=oi(t,n);return r!==""&&!_n(t)&&t.indexOf("-")!==-1&&vr[t]===void 0&&(vr[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(si,"ms-").replace(ii,function(o,s){return s.toUpperCase()})+"?")),r}}var wo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ot(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(wo);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return we={name:n.name,styles:n.styles,next:we},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)we={name:r.name,styles:r.styles,next:we},r=r.next;var o=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(o+=n.map),o}return ai(e,t,n)}case"function":{if(e!==void 0){var s=we,i=n(e);return we=s,ot(e,t,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],u=n.replace(xo,function(c,f,d){var h="animation"+a.length;return a.push("const "+h+" = keyframes`"+d.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+u+"`"]).join(`
21
+ `)+`
22
+
23
+ You should wrap it with \`css\` like this:
24
+
25
+ `+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function ai(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ot(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":mr(i)&&(r+=Wt(s)+":"+Ot(s,i)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(wo);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var a=0;a<i.length;a++)mr(i[a])&&(r+=Wt(s)+":"+Ot(s,i[a])+";");else{var u=ot(e,t,i);switch(s){case"animation":case"animationName":{r+=Wt(s)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(ei),r+=s+"{"+u+"}"}}}}return r}var gr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Eo;process.env.NODE_ENV!=="production"&&(Eo=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var we,Be=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";we=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=ot(r,n,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(hr),s+=i[0]);for(var a=1;a<t.length;a++)s+=ot(r,n,t[a]),o&&(process.env.NODE_ENV!=="production"&&i[a]===void 0&&console.error(hr),s+=i[a]);var u;process.env.NODE_ENV!=="production"&&(s=s.replace(Eo,function(d){return u=d,""})),gr.lastIndex=0;for(var l="",c;(c=gr.exec(s))!==null;)l+="-"+c[1];var f=Xs(s)+l;return process.env.NODE_ENV!=="production"?{name:f,styles:s,map:u,next:we,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:f,styles:s,next:we}},ci=function(t){return t()},Co=re["useInsertionEffect"]?re["useInsertionEffect"]:!1,$n=Co||ci,yr=Co||re.useLayoutEffect,ui={}.hasOwnProperty,An=re.createContext(typeof HTMLElement<"u"?Fs({key:"css"}):null);process.env.NODE_ENV!=="production"&&(An.displayName="EmotionCacheContext");An.Provider;var Lt=function(t){return m.forwardRef(function(n,r){var o=m.useContext(An);return t(n,o,r)})},at=re.createContext({});process.env.NODE_ENV!=="production"&&(at.displayName="EmotionThemeContext");var br="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",li=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return $t(n,r,o),$n(function(){return At(n,r,o)}),null},fi=Lt(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[br],s=[r],i="";typeof e.className=="string"?i=Pn(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var a=Be(s,void 0,re.useContext(at));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var u=e[xr];u&&(a=Be([a,"label:"+u+";"]))}i+=t.key+"-"+a.name;var l={};for(var c in e)ui.call(e,c)&&c!=="css"&&c!==br&&(process.env.NODE_ENV==="production"||c!==xr)&&(l[c]=e[c]);return l.ref=n,l.className=i,re.createElement(re.Fragment,null,re.createElement(li,{cache:t,serialized:a,isStringTag:typeof o=="string"}),re.createElement(o,l))});process.env.NODE_ENV!=="production"&&(fi.displayName="EmotionCssPropInternal");var di={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},wr=!1,pi=Lt(function(e,t){process.env.NODE_ENV!=="production"&&!wr&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),wr=!0);var n=e.styles,r=Be([n],void 0,re.useContext(at)),o=re.useRef();return yr(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,u=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(a=!0,u.setAttribute("data-emotion",s),i.hydrate([u])),o.current=[i,a],function(){i.flush()}},[t]),yr(function(){var s=o.current,i=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&At(t,r.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(pi.displayName="EmotionGlobal");function de(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Be(t)}var Oo=function(){var t=de.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},hi=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var s=t[r];if(s!=null){var i=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))i=e(s);else{process.env.NODE_ENV!=="production"&&s.styles!==void 0&&s.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var a in s)s[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=s}i&&(o&&(o+=" "),o+=i)}}return o};function mi(e,t,n){var r=[],o=Pn(e,r,n);return r.length<2?n:o+t(r)}var gi=function(t){var n=t.cache,r=t.serializedArr;return $n(function(){for(var o=0;o<r.length;o++)At(n,r[o],!1)}),null},yi=Lt(function(e,t){var n=!1,r=[],o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var d=Be(c,t.registered);return r.push(d),$t(t,d,!1),t.key+"-"+d.name},s=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return mi(t.registered,o,hi(c))},i={css:o,cx:s,theme:re.useContext(at)},a=e.children(i);return n=!0,re.createElement(re.Fragment,null,re.createElement(gi,{cache:t,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(yi.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Er=!0,bi=typeof jest<"u"||typeof vi<"u";if(Er&&!bi){var Cr=typeof globalThis<"u"?globalThis:Er?window:global,Or="__EMOTION_REACT_"+di.version.split(".")[0]+"__";Cr[Or]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Cr[Or]=!0}}var hn=(e=>(e.Opera="opera",e.Chrome="chrome",e.Firefox="firefox",e.Safari="safari",e.Edge="edge",e.EdgeChromium="edge-chromium",e.Blink="blink",e.IE="internet-explorer",e))(hn||{});const Sr=()=>{const{opr:e,opera:t,InstallTrigger:n,HTMLElement:r,safari:o,documentMode:s,StyleMedia:i,chrome:a,CSS:u}=window,l=!!e&&!!e.addons||!!t||navigator.userAgent.indexOf(" OPR/")>=0;if(l)return"opera";if(n)return"firefox";const c=(h=>h.toString()==="[object SafariRemoteNotification]")(!o||typeof o<"u"&&o.pushNotification);if(/constructor/i.test(r)||c)return"safari";const f=!!s;if(f)return"internet-explorer";if(!f&&i)return"edge";const d=!!a&&(!!a.webstore||!!a.runtime);if(d)return"chrome";if(d&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((d||l)&&u)return"blink"},ft=(e,t,...n)=>typeof t=="string"?e(`[humany] ${t}`,...n):e(t,...n),Me=class{constructor(){H(this,"keys",[]);H(this,"log",(t,...n)=>this.lookup(t,()=>Me.log(...n)));H(this,"warn",(t,...n)=>this.lookup(t,()=>Me.warn(...n)));H(this,"error",(t,...n)=>this.lookup(t,()=>Me.error(...n)));H(this,"info",(t,...n)=>this.lookup(t,()=>Me.info(...n)))}lookup(t,n){this.keys.indexOf(t)===-1&&(this.keys.push(t),n())}};let ue=Me;H(ue,"log",(...t)=>ft(console.log,...t)),H(ue,"warn",(...t)=>ft(console.warn,...t)),H(ue,"error",(...t)=>ft(console.error,...t)),H(ue,"info",(...t)=>ft(console.info,...t));const So=e=>{let t={},n,r;if(typeof e!="object"||e===null)return e;t=Array.isArray(e)?[]:{};for(r in e)n=e[r],t[r]=typeof n=="object"&&n!==null?So(n):n;return t};function Nr(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return t.toString()}function xi(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class wi{constructor(t,n){H(this,"tasks",[]);H(this,"current",Promise.resolve());this.lockWarningTime=t,this.lockErrorTime=n,this.next=this.next.bind(this)}add(t,n,r,o){this.tasks.push({task:t,resolve:n,reject:r,done:o}),this.next()}next(){this.current=this.current.then(()=>{const t=this.tasks.shift();if(t){let n;const r=setTimeout(()=>{process.env.NODE_ENV!=="production"&&ue.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,t),n=setTimeout(()=>{t.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),o=Promise.resolve(t.task()).then(s=>(clearTimeout(r),clearTimeout(n),s));return Promise.resolve(o).then(this.next).then(()=>o.then(s=>{t.done(),t.resolve(s)})).catch(s=>(t.done(),t.reject(s),this.next()))}return Promise.resolve()})}}const dt=new WeakMap;function Dt(e,t=5e3,n=1e3){return dt.has(e)||dt.set(e,new wi(t,n)),r=>new Promise((o,s)=>{const i=dt.get(e);i.add(r,o,s,()=>{i.tasks.length||dt.delete(e)})})}const Re=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function ct(){return Re()+Re()+"-"+Re()+"-"+Re()+"-"+Re()+"-"+Re()+Re()+Re()}function Ei(e){const t=[];return e.forEach(n=>{t.indexOf(n)===-1&&t.push(n)}),t}function mn(e="",t=""){const n=e.split(" ").concat(t.split(" "));return Ei(n).join(" ").trim()}function Ci(e,t){if(e){if(typeof t=="string")return t;if(Array.isArray(t)){let n="";return t.forEach(r=>n=mn(n,r)),n}}}function oe(...e){let t="";return e.length&&e.forEach(n=>{typeof n=="string"?t=mn(t,n):Array.isArray(n)?t=mn(t,Ci(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&ue.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...e)}),t}const Oi=["string","number"],Ee=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]>"u"?"":e[n],o=typeof r;if(Oi.indexOf(o)>-1){const s=n.substring(0,5);s==="data-"||s==="aria-"?t[xi(n)]=r.toString():n.substring(0,4)!=="css-"&&(t[n]=r.toString())}else t[n]=r;return t},{}),Si=e=>new RegExp("^#","i").test(e),Ni=e=>({children:t,...n})=>{const{implementation:r,name:o}=e.get("$widget"),{href:s=""}=n;if(Si(s))return p.jsx($i,{smooth:!0,to:s,children:t});const i=r.bindings.map(l=>l.replace(/\./g,"\\.")).join("|"),u=new RegExp(`^((http[s]?:)?//)?(${i})/([^\\s]+)`).exec(s);if(u&&u.length>=4){const l=u[4];if(r.widgets.get(l)&&!l.startsWith("blob?")&&!l.startsWith(o))return p.jsx(Ru,{widgetName:l,children:t})}return p.jsx("a",{...n,children:t})},No=e=>{const t={};return Object.keys(e).forEach(n=>{n.indexOf("css-")>-1&&(t[n]=e[n])}),t},ki=e=>{let t="";return Object.keys(No(e)).forEach(n=>{n.indexOf("css-")>-1&&(t+=`${n.replace("css-","")}:${e[n]};`)}),de`
26
+ ${t}
27
+ `},Ti=(e,t)=>{let n="";const r=()=>{n=""},o=c=>{const f=document.getElementById(n);return f!==null?(c(f),r(),!0):!1},s=c=>(c.preventDefault(),r(),e.onClick&&e.onClick(c),typeof e.to=="string"&&(n=e.to.split("#").slice(1).join("#")),n!==""&&o(e.scroll||(f=>e.smooth?f.scrollIntoView({behavior:"smooth"}):f.scrollIntoView())),!1),{scroll:i,smooth:a,to:u,...l}=e;return t==="a"&&(l.href="javascript:;"),p.jsx(t,{...l,onClick:s,children:e.children})},ko=e=>(t,n)=>{let r=t,o="";if(["h1","h2","h3","h4","h5","h6"].includes(t))r=t;else{const a=t.match(/h1|h2|h3|h4|h5|h6/);if(a!=null&&a[0]){r=a[0];const[u]=t.split(r);o=u}}const i=((a,u,l)=>l[a]?`${u}${l[a]}`:`${u}${a}`)(r,o,e.theme.typographyVariantMapping||{});return de`
28
+ ${i} {
29
+ ${n}
30
+ }
31
+ `};var To={exports:{}};(function(e,t){(function(n,r){e.exports=r(m)})(Ys,function(n){function r(f,d,h,g){return d===void 0&&(d={}),Object.keys(d).reduce(function(v,y){if(/^on.*/.test(y))return v;var S=y;/^(data|aria)-/.test(y)||h.filter(function(k){return k instanceof RegExp?k.test(y):k===y}).length===0&&(S=o(y));var R,j,T=g(f,S);if(T.name==="style")v[T.name]=(R=d.style,j={},R.split(";").filter(function(k){return k.trim()!==""}).forEach(function(k){var _,z=k.split(":");if(z.length>1){var B=function(q){return/^-ms-/.test(q)&&(q=q.substr(1)),q.startsWith("--")?q:o(q)}(z[0].trim()),G=(_=z.slice(1).join(":").trim(),/^\d+$/.test(_)?Number(_):_.replace(/'/g,'"'));j[B]=G}}),j);else{var x=d[y],D=x===""||String(x).toLowerCase()===S.toLowerCase();v[T.name]=T.isBoolean?D:x}return v},{})}function o(f){return f.replace(/(-|:)(.)/g,function(d,h,g){return g.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var s=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function a(f,d){var h=i[d],g=document.createElement(f);if(h)return{name:Array.isArray(h)?h[0]:h,isBoolean:u(g,Array.isArray(h)?h[1]||d:h)};for(var v in g)if(v.toLowerCase()===d.toLowerCase())return{name:v,isBoolean:u(g,v)};return{name:d,isBoolean:u(g,d)}}function u(f,d){return f.setAttribute(d,""),f[d]===!0||l.indexOf(d)>-1}var l=["itemScope"];function c(f,d,h,g){g===void 0&&(g=null);var v=h[f],y=h._;return v?n.createElement(v,d,g):y?y(f,d,g):n.createElement(f,d,g)}return function(f,d){if(d===void 0&&(d={}),typeof f!="string")throw new TypeError("Expected HTML string");var h=document.createElement("div");h.innerHTML=f.trim();var g=Array.from(h.childNodes).map(function(v,y){return function S(R,j,T){var x=T.transform||{},D=T.preserveAttributes||[],k=T.dangerouslySetChildren||["style"],_=x._;if(R.nodeType===8)return null;if(R.nodeType===3){var z=R.textContent;return _?_(z):z}for(var B={},G=R.attributes,q=0;q<G.length;q++)B[G[q].name]=G[q].value;B.key=j.toString();var ne=R.tagName.toLowerCase(),Q=r(ne,B,D,a),te=Array.from(R.childNodes).map(function(X,I){return s.indexOf(ne)>-1&&X.nodeType===3&&(X.textContent=X.textContent.trim(),X.textContent==="")?null:S(X,j+"."+I,T)}).filter(Boolean);if(k.indexOf(ne)>-1){var ee=R.innerHTML;return ee&&(ne!=="style"&&ne!=="script"&&(ee=ee.replace(/"/g,"&quot;")),Q.dangerouslySetInnerHTML={__html:ee.trim()}),c(ne,Q,x)}var ae=te.length===0?null:te;return c(ne,Q,x,ae)}(v,String(y),d)}).filter(Boolean);return g.length===1?g[0]:g}})})(To);var Ri=To.exports;const kr=jn(Ri);function ji(e,t){return t?kr(e,t):kr(e)}const Pi=e=>t=>p.jsx(hu,{attrs:t,htmlBody:e}),_i=(e,t)=>({transform:{a:Ni(e),img:Pi(t)}}),$i=e=>Ti(e,"a");var Ai=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Li=ho(function(e){return Ai.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Di=Li,Mi=function(t){return t!=="theme"},Tr=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Di:Mi},Rr=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},jr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
32
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
33
+ You can read more about this here:
34
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Ii=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return $t(n,r,o),$n(function(){return At(n,r,o)}),null},Vi=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
35
+ You may have forgotten to import it.`);var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var a=Rr(t,n,r),u=a||Tr(o),l=!u("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(jr),f.push(c[0][0]);for(var d=c.length,h=1;h<d;h++)process.env.NODE_ENV!=="production"&&c[0][h]===void 0&&console.error(jr),f.push(c[h],c[0][h])}var g=Lt(function(v,y,S){var R=l&&v.as||o,j="",T=[],x=v;if(v.theme==null){x={};for(var D in v)x[D]=v[D];x.theme=re.useContext(at)}typeof v.className=="string"?j=Pn(y.registered,T,v.className):v.className!=null&&(j=v.className+" ");var k=Be(f.concat(T),y.registered,x);j+=y.key+"-"+k.name,i!==void 0&&(j+=" "+i);var _=l&&a===void 0?Tr(R):u,z={};for(var B in v)l&&B==="as"||_(B)&&(z[B]=v[B]);return z.className=j,z.ref=S,re.createElement(re.Fragment,null,re.createElement(Ii,{cache:y,serialized:k,isStringTag:typeof R=="string"}),re.createElement(R,z))});return g.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=f,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return i===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+i}}),g.withComponent=function(v,y){return e(v,ce({},n,y,{shouldForwardProp:Rr(g,y,!0)})).apply(void 0,f)},g}},Hi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],M=Vi.bind();Hi.forEach(function(e){M[e]=M(e)});const Mt=m.forwardRef(({className:e,children:t,...n},r)=>p.jsx(zi,{type:"button",className:oe(e,"humany-button"),...Ee(n),ref:r,children:t})),zi=M.button`
36
+ -webkit-appearance: button;
37
+ text-transform: none;
38
+ overflow: visible;
39
+ outline: none;
40
+ border: none;
41
+ background-color: transparent;
42
+ cursor: pointer;
43
+ font-family: inherit;
44
+ font-size: inherit;
45
+ line-height: normal;
46
+ margin: 0;
47
+ padding: 0;
48
+ `;function qe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vn(e,t){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vn(e,t)}function xe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vn(e,t)}var gn={exports:{}};/*
49
+ object-assign
50
+ (c) Sindre Sorhus
51
+ @license MIT
52
+ */var Ut,Pr;function Bi(){if(Pr)return Ut;Pr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(i).map(function(c){return i[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ut=o()?Object.assign:function(s,i){for(var a,u=r(s),l,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var f in a)t.call(a,f)&&(u[f]=a[f]);if(e){l=e(a);for(var d=0;d<l.length;d++)n.call(a,l[d])&&(u[l[d]]=a[l[d]])}}return u},Ut}var Ft,_r;function Ln(){if(_r)return Ft;_r=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ft=e,Ft}var Yt,$r;function Ro(){return $r||($r=1,Yt=Function.call.bind(Object.prototype.hasOwnProperty)),Yt}var qt,Ar;function Wi(){if(Ar)return qt;Ar=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ln(),n={},r=Ro();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,u,l){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var f;try{if(typeof s[c]!="function"){var d=Error((u||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=s[c](i,c,u,a,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=l?l():"";e("Failed "+a+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qt=o,qt}var Zt,Lr;function Ui(){if(Lr)return Zt;Lr=1;var e=_t,t=Bi(),n=Ln(),r=Ro(),o=Wi(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Zt=function(a,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(b){var w=b&&(l&&b[l]||b[c]);if(typeof w=="function")return w}var d="<<anonymous>>",h={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:R(),arrayOf:j,element:T(),elementType:x(),instanceOf:D,node:B(),objectOf:_,oneOf:k,oneOfType:z,shape:q,exact:ne};function g(b,w){return b===w?b!==0||1/b===1/w:b!==b&&w!==w}function v(b,w){this.message=b,this.data=w&&typeof w=="object"?w:{},this.stack=""}v.prototype=Error.prototype;function y(b){if(process.env.NODE_ENV!=="production")var w={},C=0;function O(L,$,A,V,U,W,pe){if(V=V||d,W=W||A,pe!==n){if(u){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=V+":"+A;!w[Ce]&&C<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),w[Ce]=!0,C++)}}return $[A]==null?L?$[A]===null?new v("The "+U+" `"+W+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new v("The "+U+" `"+W+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:b($,A,V,U,W)}var N=O.bind(null,!1);return N.isRequired=O.bind(null,!0),N}function S(b){function w(C,O,N,L,$,A){var V=C[O],U=ee(V);if(U!==b){var W=ae(V);return new v("Invalid "+L+" `"+$+"` of type "+("`"+W+"` supplied to `"+N+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return y(w)}function R(){return y(i)}function j(b){function w(C,O,N,L,$){if(typeof b!="function")return new v("Property `"+$+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var A=C[O];if(!Array.isArray(A)){var V=ee(A);return new v("Invalid "+L+" `"+$+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an array."))}for(var U=0;U<A.length;U++){var W=b(A,U,N,L,$+"["+U+"]",n);if(W instanceof Error)return W}return null}return y(w)}function T(){function b(w,C,O,N,L){var $=w[C];if(!a($)){var A=ee($);return new v("Invalid "+N+" `"+L+"` of type "+("`"+A+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return y(b)}function x(){function b(w,C,O,N,L){var $=w[C];if(!e.isValidElementType($)){var A=ee($);return new v("Invalid "+N+" `"+L+"` of type "+("`"+A+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return y(b)}function D(b){function w(C,O,N,L,$){if(!(C[O]instanceof b)){var A=b.name||d,V=I(C[O]);return new v("Invalid "+L+" `"+$+"` of type "+("`"+V+"` supplied to `"+N+"`, expected ")+("instance of `"+A+"`."))}return null}return y(w)}function k(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function w(C,O,N,L,$){for(var A=C[O],V=0;V<b.length;V++)if(g(A,b[V]))return null;var U=JSON.stringify(b,function(pe,P){var Ce=ae(P);return Ce==="symbol"?String(P):P});return new v("Invalid "+L+" `"+$+"` of value `"+String(A)+"` "+("supplied to `"+N+"`, expected one of "+U+"."))}return y(w)}function _(b){function w(C,O,N,L,$){if(typeof b!="function")return new v("Property `"+$+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var A=C[O],V=ee(A);if(V!=="object")return new v("Invalid "+L+" `"+$+"` of type "+("`"+V+"` supplied to `"+N+"`, expected an object."));for(var U in A)if(r(A,U)){var W=b(A,U,N,L,$+"."+U,n);if(W instanceof Error)return W}return null}return y(w)}function z(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var w=0;w<b.length;w++){var C=b[w];if(typeof C!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(C)+" at index "+w+"."),i}function O(N,L,$,A,V){for(var U=[],W=0;W<b.length;W++){var pe=b[W],P=pe(N,L,$,A,V,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&U.push(P.data.expectedType)}var Ce=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new v("Invalid "+A+" `"+V+"` supplied to "+("`"+$+"`"+Ce+"."))}return y(O)}function B(){function b(w,C,O,N,L){return Q(w[C])?null:new v("Invalid "+N+" `"+L+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return y(b)}function G(b,w,C,O,N){return new v((b||"React class")+": "+w+" type `"+C+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function q(b){function w(C,O,N,L,$){var A=C[O],V=ee(A);if(V!=="object")return new v("Invalid "+L+" `"+$+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));for(var U in b){var W=b[U];if(typeof W!="function")return G(N,L,$,U,ae(W));var pe=W(A,U,N,L,$+"."+U,n);if(pe)return pe}return null}return y(w)}function ne(b){function w(C,O,N,L,$){var A=C[O],V=ee(A);if(V!=="object")return new v("Invalid "+L+" `"+$+"` of type `"+V+"` "+("supplied to `"+N+"`, expected `object`."));var U=t({},C[O],b);for(var W in U){var pe=b[W];if(r(b,W)&&typeof pe!="function")return G(N,L,$,W,ae(pe));if(!pe)return new v("Invalid "+L+" `"+$+"` key `"+W+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(C[O],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var P=pe(A,W,N,L,$+"."+W,n);if(P)return P}return null}return y(w)}function Q(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(Q);if(b===null||a(b))return!0;var w=f(b);if(w){var C=w.call(b),O;if(w!==b.entries){for(;!(O=C.next()).done;)if(!Q(O.value))return!1}else for(;!(O=C.next()).done;){var N=O.value;if(N&&!Q(N[1]))return!1}}else return!1;return!0;default:return!1}}function te(b,w){return b==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function ee(b){var w=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":te(w,b)?"symbol":w}function ae(b){if(typeof b>"u"||b===null)return""+b;var w=ee(b);if(w==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return w}function X(b){var w=ae(b);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function I(b){return!b.constructor||!b.constructor.name?d:b.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Zt}var Kt,Dr;function Fi(){if(Dr)return Kt;Dr=1;var e=Ln();function t(){}function n(){}return n.resetWarningCache=t,Kt=function(){function r(i,a,u,l,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Kt}if(process.env.NODE_ENV!=="production"){var Yi=_t,qi=!0;gn.exports=Ui()(Yi.isElement,qi)}else gn.exports=Fi()();var Zi=gn.exports;const E=jn(Zi);function Ki(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Gi(e,t){e.classList?e.classList.add(t):Ki(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Mr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ji(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Mr(e.className,t):e.setAttribute("class",Mr(e.className&&e.className.baseVal||"",t))}const Ir={disabled:!1};var Xi=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,Qi=process.env.NODE_ENV!=="production"?E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]):null;const jo=m.createContext(null);var Po=function(t){return t.scrollTop},Qe="unmounted",je="exited",Pe="entering",Le="entered",yn="exiting",Te=function(e){xe(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,u;return s.appearStatus=null,r.in?a?(u=je,s.appearStatus=Pe):u=Le:r.unmountOnExit||r.mountOnEnter?u=Qe:u=je,s.state={status:u},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===Qe?{status:je}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Pe&&i!==Le&&(s=Pe):(i===Pe||i===Le)&&(s=yn)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Xe.findDOMNode(this);i&&Po(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===je&&this.setState({status:Qe})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,u=this.props.nodeRef?[a]:[Xe.findDOMNode(this),a],l=u[0],c=u[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!i||Ir.disabled){this.safeSetState({status:Le},function(){s.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Pe},function(){s.props.onEntering(l,c),s.onTransitionEnd(d,function(){s.safeSetState({status:Le},function(){s.props.onEntered(l,c)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Xe.findDOMNode(this);if(!s||Ir.disabled){this.safeSetState({status:je},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:yn},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:je},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Xe.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qe)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=qe(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(jo.Provider,{value:null},typeof i=="function"?i(o,a):m.cloneElement(m.Children.only(i),a))},t}(m.Component);Te.contextType=jo;Te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(e,t,n,r,o,s){var i=e[t];return E.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(t){var n=Xi;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}:{};function Ae(){}Te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ae,onEntering:Ae,onEntered:Ae,onExit:Ae,onExiting:Ae,onExited:Ae};Te.UNMOUNTED=Qe;Te.EXITED=je;Te.ENTERING=Pe;Te.ENTERED=Le;Te.EXITING=yn;const _o=Te;var ea=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Gi(t,r)})},Gt=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Ji(t,r)})},Dn=function(e){xe(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,u){var l=r.resolveArguments(a,u),c=l[0],f=l[1];r.removeClasses(c,"exit"),r.addClass(c,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,u)},r.onEntering=function(a,u){var l=r.resolveArguments(a,u),c=l[0],f=l[1],d=f?"appear":"enter";r.addClass(c,d,"active"),r.props.onEntering&&r.props.onEntering(a,u)},r.onEntered=function(a,u){var l=r.resolveArguments(a,u),c=l[0],f=l[1],d=f?"appear":"enter";r.removeClasses(c,d),r.addClass(c,d,"done"),r.props.onEntered&&r.props.onEntered(a,u)},r.onExit=function(a){var u=r.resolveArguments(a),l=u[0];r.removeClasses(l,"appear"),r.removeClasses(l,"enter"),r.addClass(l,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var u=r.resolveArguments(a),l=u[0];r.addClass(l,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var u=r.resolveArguments(a),l=u[0];r.removeClasses(l,"exit"),r.addClass(l,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,u){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,u]},r.getClassNames=function(a){var u=r.props.classNames,l=typeof u=="string",c=l&&u?u+"-":"",f=l?""+c+a:u[a],d=l?f+"-active":u[a+"Active"],h=l?f+"-done":u[a+"Done"];return{baseClassName:f,activeClassName:d,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;s==="appear"&&i==="done"&&l&&(a+=" "+l),i==="active"&&o&&Po(o),a&&(this.appliedClasses[s][i]=a,ea(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,u=i.active,l=i.done;this.appliedClasses[s]={},a&&Gt(o,a),u&&Gt(o,u),l&&Gt(o,l)},n.render=function(){var o=this.props;o.classNames;var s=qe(o,["classNames"]);return m.createElement(_o,ce({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(m.Component);Dn.defaultProps={classNames:""};Dn.propTypes=process.env.NODE_ENV!=="production"?ce({},_o.propTypes,{classNames:Qi,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const ta=Dn,Jt=new WeakMap;function na(){return e=>(Jt.has(e)||Jt.set(e,{}),Jt.get(e))}const Xt=(e,t,n,...r)=>{const o=`[${e.get("$environment").name||"webprovisions"}] ${n}`;switch(t){case"info":console.info(o,...r);break;case"warning":console.warn(o,...r);break;case"error":console.error(o,...r);break}},De=e=>{const t=e.container||e;return{info:(n,...r)=>Xt(t,"info",n,...r),warn:(n,...r)=>Xt(t,"warning",n,...r),error:(n,...r)=>Xt(t,"error",n,...r)}},se=na(),Mn=(()=>{let e=0;return()=>++e})(),In=(e,t,n)=>{const r=se(e).touchQueue.get(t);r&&r.forEach(o=>{o(n,e)})};class ra{constructor(t,n,r,o){this.key=t,this.factory=n,this.parent=r,this.container=o,this.id=Mn(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const t=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(t).then(n=>(this.resolved=!0,In(this.container,this.key,n),n))}return this.value}}class oa{constructor(t,n,r,o){this.key=t,this.value=n,this.parent=r,this.container=o,this.id=Mn(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,In(this.container,this.key,this.value),this.value)}}class sa{constructor(t,n,r,o){this.key=t,this.value=n,this.parent=r,this.container=o,this.id=Mn(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const s=this.value(this.parent,this.container);return In(this.container,this.key,this.value),s}}}class Vn{constructor(t,n,r){this.owner=t,this.name=n,this.parent=r,se(this).resolvers=new Map,se(this).touchQueue=new Map,se(this).children=[]}delete(t){const n=se(this).resolvers,r=Array.from(n.values()).find(o=>o.id===t);return r?(se(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(t):Promise.resolve(!1)}clear(){const t=se(this).resolvers,n=Array.from(t.values());return Promise.all(n.map(r=>{if(r.constructed)return Promise.resolve(r.resolve()).then(o=>{if(o!==null&&typeof o=="object"&&typeof o.dispose=="function")return o.dispose.call(o,this,r)})})).then(()=>{n.forEach(r=>this.delete(r.id)),se(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const t=se(this.parent).children,n=t.indexOf(this);n>-1&&(t.splice(n,1),delete this.parent)}}touch(t,n){const r=se(this).resolvers.get(t);if(r&&r.constructed)Promise.resolve(r.resolve()).then(o=>{n(o,this)});else{const o=se(this).touchQueue;let s=o.get(t);s||(s=[],o.set(t,s)),s.push(n)}return this.parent&&!r?this.parent.touch(t,n):Promise.resolve()}registerAsync(t,n){const r=se(this).resolvers.get(t);r&&!r.async&&process.env.NODE_ENV!=="production"&&De(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);const o=new ra(t,n,r,this);return se(this).resolvers.set(t,o),o.id}registerFactory(t,n){const r=se(this).resolvers.get(t);r&&r.async&&process.env.NODE_ENV!=="production"&&De(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const o=new sa(t,n,r,this);return se(this).resolvers.set(t,o),o.id}register(t,n){const r=se(this).resolvers.get(t);r&&r.async&&process.env.NODE_ENV!=="production"&&De(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);const o=new oa(t,n,r,this);return se(this).resolvers.set(t,o),o.id}get(t){const n=se(this).resolvers.get(t);if(n)return n.async&&process.env.NODE_ENV!=="production"&&De(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(t)}getAsync(t){const n=se(this).resolvers.get(t);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&De(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(t):Promise.resolve(void 0)}getMany(...t){const n={};return t.forEach(r=>n[r]=this.get(r)),n}getManyAsync(...t){const n={};return Promise.all(t.map(r=>this.getAsync(r).then(o=>n[r]=o))).then(()=>n)}createChild(t,n){const r=new Vn(t,n,this);return se(this).children.push(r),r}}var St=(e=>(e.Implementation="implementation",e.Widget="widget",e))(St||{}),_e=(e=>(e.Pre="pre",e.Post="post",e))(_e||{});const ia=(e,t,n,r)=>{try{const o=new t(n,r);return{name:e,invoke:(s,i)=>{let a;return o[s]&&(a=o[s].call(o,i)),Promise.resolve(a)},getInstance:()=>o}}catch(o){if(o.message&&o.message.indexOf("is not a constructor")>=0)return{name:e,invoke:s=>{let i;return s==="initialize"&&(i=t(n,r)),Promise.resolve(i)},getInstance:()=>t};throw o}};function Vr(e,t){return typeof e>"u"?t:e}class aa{constructor(t={}){this.part=t}createCommand(t,n,r){let o;typeof n=="function"?o={scope:St.Widget,stage:_e.Post,defaultArgs:void 0,handlerResolver:n}:o={scope:Vr(n.scope,St.Widget),stage:Vr(n.stage,_e.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let s=this.part;const i=t.split(".");return i.forEach((a,u)=>{u===i.length-1?s[a]||(s[a]=()=>o):s=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const It=e=>{const t=new aa({});return e(t),t.get()};It(e=>{e.createCommand("types.register",{scope:St.Implementation,stage:_e.Pre},t=>(n,r)=>{t.container.get("$types")[n]=r}).createCommand("type",{stage:_e.Pre},t=>n=>{t.container.register("$type",n)}).createCommand("settings",{stage:_e.Pre,defaultArgs:[null]},t=>n=>{t.events.dispatch("settings:change",n,{bubbles:!0}),t.container.register("$settings",n)}).createCommand("plugin",{stage:_e.Pre},t=>(n,r,o)=>{const{container:s}=t;let i=null,a=n,u=r;typeof n=="string"&&(i=n,a=r,u=o);const l=c=>{const{transformPluginSettings:f}=t.container.get("$environmentOptions"),d=f?f(u||{},i,t.container,a):r;try{const h=ia(i,a,s,d);s.get("$plugins").push(h),c&&h.invoke("initialize",null)}catch(h){De(t).warn("Error when initializing plugin",h)}};t.container.get("$instance")?l(!0):t.events.subscribeOnce("widget:instance-created",()=>l(!1))}).createCommand("container.register",t=>(n,r)=>{t.container.register(n,r)}).createCommand("container.registerAsync",t=>(n,r)=>{t.container.registerAsync(n,r)}).createCommand("container.registerFactory",t=>(n,r)=>{t.container.registerFactory(n,r)}).createCommand("container.touch",t=>(n,r)=>{t.container.touch(n,r)}).createCommand("csp",{},t=>n=>{t.container.register("csp",n)})});var $o=(e=>(e.Activating="activating",e.Loading="loading",e.Activated="activated",e.Deactivating="deactivating",e.Deactivated="deactivated",e))($o||{});const ca=m.createContext(new Vn);m.createContext(1);const ua=m.createContext({id:"",type:"",name:"",branch:""}),la=m.createContext({}),fa=m.createContext(null);m.createContext(null);const Ze=()=>m.useContext(ca),da=e=>{const t=[];return[(r,o)=>{t.push(e.subscribe(r,o))},()=>{t.forEach(r=>{r()})}]};class Hn{constructor(t,n=[]){this.platform=t,this.rules=n}match(t){return this.rules.every(n=>!(n.id&&n.id!==t.id||n.type&&n.type!==t.type))}ofType(t){return this.rules.push({type:t}),this}withId(t){return this.rules.push({id:t}),this}select(){return new pa(this.platform,this)}}class Ao{constructor(t,n,r){H(this,"actions");H(this,"subscribe");H(this,"unsubscribe");this.platform=t,this.node=n,this.actions=new zn(t,new Hn(t).withId(n.id),r);const[o,s]=da(this.platform.events);this.subscribe=o,this.unsubscribe=s}properties(t){return t&&this.node.touchProperties(n=>t(n)),this.node.attributes.properties}context(t){return t&&this.subscribe("components:context-changed",(n,{node:r})=>{r===this.node&&t(this.node.attributes.context)}),this.node.attributes.context}layout(t){return t&&this.subscribe("components:layout-changed",(n,{node:r})=>{r===this.node&&t(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(t,n){this.node.writeProperties(t,n)}writeContext(t,n){this.node.writeProperties(t,n)}writeLayout(t,n){this.node.writeLayout(t,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class pa{constructor(t,n,r=!0){H(this,"actions");H(this,"removes",[]);this.platform=t,this.target=n,this.clearOnDispose=r,this.actions=new zn(this.platform,this.target)}writeProperties(t,n){this.removes.push(this.platform.write({options:n,attributes:{properties:t},target:this.target,removable:this.clearOnDispose}))}writeContext(t,n){this.removes.push(this.platform.write({options:n,attributes:{context:t},target:this.target,removable:this.clearOnDispose}))}writeLayout(t,n){this.removes.push(this.platform.write({options:n,attributes:{layout:t},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(t=>{t()}),this.actions.dispose()}}const ha=(e,t,n)=>{const r=e.concat(),o=(s,i,a)=>{let u=!0;if(r.length){const l=r.shift(),c=(f,d)=>(u=!1,o(f,Object.assign({},i,d),a));return Promise.resolve(l(s,c,a)).then(f=>({...f,cancelled:u}))}return Promise.resolve({data:s,cancelled:!1,options:i})};return o(t,{},n)};class zn{constructor(t,n,r){H(this,"subscriptions",[]);this.platform=t,this.target=n,this.ns=r,this.create=this.create.bind(this)}create(t,n=()=>{}){const r={key:t,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(r);const o=()=>{const s=this.platform.actionsState.handlers.indexOf(r);s>-1&&this.platform.actionsState.handlers.splice(s,1)};return this.subscriptions.push(o),o}dispatch(t,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),o={},s=this.platform.actionsState.handlers.filter(i=>i.key===t&&(!i.ns||!this.ns||i.ns===this.ns));return Promise.all(s.map(i=>{const a=r.filter(l=>i.target.match(l)&&this.target.match(l)),u=this.platform.actionsState.watchers.filter(l=>l.key===t&&(!l.ns||!this.ns||l.ns===this.ns)&&a.some(c=>l.target.match(c))).map(l=>l.fn);return Promise.all(a.map(l=>{const c=new Ao(this.platform,l,this.ns);return ha(u,n,c).then(f=>{const{data:d={},options:h,cancelled:g}=f;return Promise.resolve(g?{}:i.fn(d,h,c)).then(v=>{o[l.id]=v})})}))})).then(()=>o)}watch(t,n){let r=t,o=this.ns;const s=t.split(".");s.length>1&&(o=s[0],r=s.splice(1).join("."));const i={fn:n,target:this.target,key:r,ns:o};this.platform.actionsState.watchers.push(i);const a=()=>{const u=this.platform.actionsState.watchers.indexOf(i);u>-1&&this.platform.actionsState.watchers.splice(u,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(t=>t())}}It(e=>{e.createCommand("components",t=>n=>{t.events.subscribeOnce("components:platform-created",(r,{platform:o})=>{n.handlers&&n.handlers.forEach(([s,i])=>{o.addComponentHandler(s,i)})})})});class Hr{constructor(t,n){H(this,"id");H(this,"type");H(this,"name");H(this,"parent");H(this,"tags",[]);H(this,"children",{});H(this,"changesets",[]);H(this,"attributes");H(this,"mountCount",0);this.events=t,this.id=ct(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(t,n){let r=t.get("mounted-nodes");return r||(r=new Map,t.register("mounted-nodes",r)),r.has(this)?(process.env.NODE_ENV!=="production"&&ue.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{r.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(t,n="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(t),this.events.dispatch("components:node-appended",{node:t})}prependChild(t,n="default"){if(t.parent){if(t.parent===this)return;t.parent.removeChild(t)}t.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(t),this.events.dispatch("components:node-appended",{node:t})}touchProperties(t,n={},r){const s=[{properties:t},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(t,n={},r){const s=[{properties:t},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(t,n={},r){const s=[{layout:t},n];return this.changesets.push(s),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(t,n={},r){const s=[{context:t},n];return this.changesets.push(s),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const i=this.changesets.indexOf(s);i>-1&&(this.changesets.splice(i,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(t="default"){const n=this.children[t]||[];return n.reduce((r,o,s)=>{const{order:i=s}=o.attributes.layout;return r[i]?r.splice(i,0,o):r[i]=o,r},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(t){Object.keys(this.children).forEach(n=>{const r=this.children[n],o=r.indexOf(t);o>-1&&(r.splice(o,1),this.events.dispatch("components:node-removed",{node:t,parentNode:this}))}),delete t.parent}}const Lo=(e,t,n)=>{for(let r=0,o=e.length;r<o&&n(e[r])!==!0;r++){const s=t[e[r].id]||"default",i=e[r].getChildren(s);Lo(i,t,n)}},Bn=(e,t,n)=>{if(n(e)!==!0){const r=t[e.id]||"default",o=e.children[r];Lo(o,t,n)}},Qt=(e,t)=>{const n=[];return Bn(e,t,r=>{n.push(r)}),n},ma=(e,t,n)=>{let r;return Bn(e,t,o=>{if(n(o))return r=o,!0}),r};class va{constructor(t,n,r){H(this,"all",[]);H(this,"visible",[]);H(this,"detached",[]);this.root=t,this.switches=n,r.subscribe("components:node-appended",(o,s)=>{this.all.push(s.node),this.visible=Qt(t,n)}),r.subscribe("components:node-removed",(o,s)=>{let i=this.all.indexOf(s.node);i>-1&&this.all.splice(i,1),i=this.visible.indexOf(s.node),i>-1&&this.visible.splice(i,1),this.visible=Qt(t,n)}),r.subscribe("components:node-switched",(o,s)=>{this.visible=Qt(t,n)})}query(t={}){const n=[];return Bn(this.root,this.switches,r=>{Object.keys(t).every(s=>t[s]===r[s])&&n.push(r)}),n}get(t){return ma(this.root,this.switches,n=>n.id===t)||this.detached.find(n=>n.id===t)}}class ga{constructor(){H(this,"handlers",new Map)}add(t,n){this.handlers.set(t,n)}get(t){return this.handlers.get(t)}}const ya=e=>{let t=e,n=0;for(;t.parent;)n=n+1,t=t.parent;return n},ba=e=>e.map(([n,r])=>[ya(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),en=e=>e instanceof Date?!1:e&&typeof e=="object"&&!Array.isArray(e),Ne=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(en(e)&&en(n))for(const r in n)en(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Ne(e[r],n[r])):Object.assign(e,{[r]:n[r]});return Ne(e,...t)},xa=(e,t)=>!e||e==="all"?!0:e.some(n=>t.indexOf(n)>-1),wa=(e,t)=>{let n=[],r=[],o;const s=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,u=ba(n.map((c,f)=>[c,r[f]])),l=(c,f)=>{var j;const d=a.get(c)||{},h=f.context&&!d.context,g=f.properties&&!d.properties,v=f.layout&&!d.layout;a.set(c,{context:d.context||h,properties:d.properties||g,layout:d.layout||v}),g&&(c.attributes.properties={}),v&&(c.attributes.layout={}),h&&(c.attributes.context=Ne({},(j=c.parent)==null?void 0:j.attributes.context));const y=[],S=[],R=[];if(c.changesets.forEach(T=>{const[x,D]=T;xa(D.breakpoints,e.breakpoints)&&(g&&(typeof x.properties=="function"?y.push(x.properties):Ne(c.attributes.properties,x.properties)),v&&(typeof x.layout=="function"?S.push(x.layout):Ne(c.attributes.layout,x.layout)),h&&(typeof x.context=="function"?R.push(x.context):Ne(c.attributes.context,x.context)))}),y.forEach(T=>{Ne(c.attributes.properties,T(c.attributes.properties))}),S.forEach(T=>{Ne(c.attributes.layout,T(c.attributes.layout))}),R.forEach(T=>{Ne(c.attributes.context,T(c.attributes.context))}),h||f.recursive){const T=e.getBranch(c),x=f.recursive?f:{context:!!h};c.getChildren(T).forEach(D=>{l(D,x)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),u.forEach(([c,f])=>{l(c,f)}),n=[],r=[],t(a)},i=()=>{clearTimeout(o),o=setTimeout(s,0)};return(a,u)=>{const l=n.indexOf(a);if(l>-1){const c=r[l];return u.context&&(c.context=!0),u.properties&&(c.properties=!0),u.layout&&(c.layout=!0),u.recursive&&(c.recursive=!0),i()}return n.push(a),r.push(u),i()}};class Do{constructor(t,n={}){H(this,"events");H(this,"breakpoints",[]);H(this,"nodes");H(this,"actionsState",{handlers:[],watchers:[]});H(this,"switches",{});H(this,"changesets",[]);H(this,"subscriptions",[]);H(this,"processNode");H(this,"customComponentHandler",new ga);this.providers=n,this.events=t.events.createChild(this);const r=new Hr(this.events,"root");r.name=`root-${t.name}`,this.nodes=new va(r,this.switches,this.events);const o=this.processNode=wa(this,s=>{const i=Array.from(s.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
54
+ ${i.map(a=>`${a.name||"<no name>"} (${a.id})
55
+ `)}`),i.forEach(a=>{const u=s.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),u!=null&&u.context&&this.events.dispatch("components:context-changed",{node:a}),u!=null&&u.properties&&this.events.dispatch("components:properties-changed",{node:a}),u!=null&&u.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(s=>n[s].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,i)=>{const{node:a}=i;this.changesets.forEach(u=>{const{changeset:l,target:c,removes:f}=u,[d,h]=l;c.match(i.node)&&(d.properties&&f.push(a.writeProperties(d.properties,h)),d.context&&f.push(a.writeContext(d.context,h)),d.layout&&f.push(a.writeLayout(d.layout,h)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,i)=>{o(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(s,i)=>{o(i.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(s,i)=>{o(i.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(s,i)=>{o(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(s,i)=>{o(i.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(s,{node:i,branch:a})=>{o(i,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(s,{parentNode:i})=>{o(i,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(t){return t.getAsync("components")}addBreakpoint(t){this.breakpoints.indexOf(t)===-1&&(this.breakpoints.push(t),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(t){const n=this.breakpoints.indexOf(t);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(t,n){this.switches[t.id]=n,this.events.dispatch("components:node-switched",{node:t,branch:n})}getBranch(t){return this.switches[t.id]}createNode(t,n={}){const r=new Hr(this.events,t);return n.detached&&this.nodes.detached.push(r),r}components(){return new Hn(this)}actions(t,n){return new zn(this,t,n)}write(t){const{provider:n,target:r,attributes:o,options:s={},removable:i}=t,a=t.key||ct(),l={changeset:[o,s],target:r,removes:[]};if(n){const c=this.providers[n];c.write(a,r,o,s),l.removes.push(()=>{c.remove(a)})}return this.changesets.push(l),this.nodes.all.forEach(c=>{if(r.match(c)){let f=()=>{};o.properties&&(f=c.writeProperties(o.properties,s,i)),o.context&&(f=c.writeContext(o.context,s,i)),o.layout&&(f=c.writeContext(o.layout,s,i)),l.removes.push(f)}}),()=>{if(i){l.removes.forEach(f=>f());const c=this.changesets.indexOf(l);c>-1&&this.changesets.splice(c,1)}}}addComponentHandler(t,n){this.customComponentHandler.add(t,n)}getComponentHandler(t){return this.customComponentHandler.get(t)}dispose(){this.subscriptions.forEach(t=>t())}}const Ea=(e,t,n,r=ct(),o={})=>e.getAsync("components").then(s=>{let i;if(typeof t=="string"){const l=new Hn(s);l.ofType(t),i=l}else i=t;const a={},u=l=>{const c=a[l.id];return c?Promise.resolve(c.controller):Do.getInstance(e).then(f=>new Ao(f,l,r))};s.events.subscribe("components:node-enter",(l,{node:c})=>{i.match(c)&&u(c).then(f=>{Promise.resolve(n(f)).then(d=>{a[c.id]={dispose:d,controller:f}})})}),s.events.subscribe("components:node-exit",(l,{node:c})=>{const f=a[c.id];f&&(f.dispose&&f.dispose(),o.reuseController||(f.controller.dispose(),delete a[c.id]))})});var Mo=(e=>(e.open="open",e.closed="closed",e.hidden="hidden",e))(Mo||{});const Ca=e=>{const t=m.useContext(ua),n=Vo(),[r,o]=m.useState();return m.useEffect(()=>{if((e||t.id)&&n){const s=n.nodes.get(e||t.id);o(s)}},[e,t.id,n]),r},Io=()=>{const e=m.useRef(!1);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e},Vo=e=>{const t=Ze(),[n,r]=m.useState(null),o=Io();return m.useEffect(()=>{Do.getInstance(e||t).then(s=>{o.current&&r(s)})},[o]),n},Oa=e=>{const t=Ca(e),n=Vo(),[r,o]=m.useState({}),s=Io();return m.useEffect(()=>{t&&s.current&&o(t.attributes.context)},[s,t]),m.useEffect(()=>{if(n){const i=n.events.subscribe("components:context-changed",(a,u)=>{t===u.node&&s.current&&o(u.node.attributes.context)});return()=>{i()}}},[s,n,t]),r},Ve=(e,t,n=window,r=()=>!0)=>{const o=m.useRef(()=>{});m.useEffect(()=>{o.current=t},[t]),m.useEffect(()=>{if(!(n&&r()))return;const i=a=>o.current(a);return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}},[e,n])},Sa=e=>{const t=Ze(),{events:n}=(e||t).get("$widget");return n},et=(e,t)=>{const[n,r]=m.useState(!1),o=m.useCallback(i=>{const{key:a}=i;a===e&&(r(!0),t&&t(i))},[r,t]),s=m.useCallback(({key:i})=>{i===e&&r(!1)},[r]);return Ve("keydown",o,window),Ve("keyup",s,window),n},Na=e=>{const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current},ka=()=>m.useContext(fa),Ta=e=>{const t=m.useRef(),n=m.useRef(0);let r;const o=m.useCallback(()=>{var l;(l=t.current)==null||l.classList.add("humany-scrolling"),clearTimeout(r),r=setTimeout(()=>{var c;(c=t.current)==null||c.classList.remove("humany-scrolling")},500)},[t]),s=m.useCallback(l=>{n.current=l.touches[0].clientY},[t]),i=l=>a(l)?l===t.current?l:null:l.parentElement?i(l.parentElement):null,a=l=>l.scrollWidth>l.clientWidth||l.scrollHeight>l.clientHeight,u=m.useCallback(l=>{if(!l.cancelable)return;const c=l.touches[0].clientY,f=i(l.target);if(!f)return;const d=f.scrollTop,h=n.current-c<0?"up":"down",g=d<=0&&h==="up",v=d>=f.scrollHeight-f.offsetHeight&&h==="down";(g||v)&&l.preventDefault(),n.current=c},[t,n]);return Ve("scroll",o,t.current,()=>t.current&&e),Ve("touchstart",s,t.current,()=>t.current&&e),Ve("touchmove",u,t.current,()=>t.current&&e),e?[Ra,t]:["",t]},Ra=`
56
+ overflow-y: ${Sr()===hn.Chrome||Sr()===hn.EdgeChromium?"overlay":"auto"};
57
+ overflow-x: hidden;
58
+ -ms-overflow-style: none; /* IE 10+ */
59
+ scrollbar-width: thin; /* Firefox */
60
+ scrollbar-color: transparent transparent; /* Firefox */
61
+
62
+ ::-webkit-scrollbar {
63
+ width: 3px !important;
64
+ background-color: transparent;
65
+ border-left: none;
66
+ }
67
+ ::-webkit-scrollbar-thumb {
68
+ background-color: transparent;
69
+ }
70
+ ::-webkit-scrollbar-track {
71
+ -webkit-box-shadow: none !important;
72
+ background-color: transparent;
73
+ }
74
+ &.humany-scrolling {
75
+ scrollbar-color: #7F7F7F transparent;
76
+ scrollbar-width: thin; /* Firefox */
77
+ -ms-overflow-style: none; /* IE 10+ */
78
+
79
+ ::-webkit-scrollbar-thumb {
80
+ background-color: #7F7F7F;
81
+ }
82
+ }
83
+ `,ja=(e=!1)=>{const[t,n]=m.useState(e),r=m.useCallback(o=>{n(typeof o=="boolean"?o:s=>!s)},[]);return[t,r]},Wn=(e,t,n=[],r)=>{const o=Sa(r);return m.useEffect(()=>{if(o){const s=o.subscribe(e,t);return()=>{s()}}},[o].concat(n)),s=>o==null?void 0:o.dispatch(e,s)},Ho=(e,t)=>{const n=Wn("widget:menu-toggled",(r,o)=>{o!==e&&t()});return()=>n(e)},Un=m.forwardRef(({className:e,children:t,...n},r)=>p.jsx("span",{ref:r,className:oe(e,"humany-text"),...Ee(n),children:t})),zo=e=>de`
84
+ display: flex;
85
+ justify-content: center;
86
+ flex-direction: column;
87
+ background: #ffffff;
88
+ border-radius: ${e.theme.borderRadius};
89
+ border: ${e.theme.border};
90
+ box-shadow: ${e.theme.boxShadow||"none"};
91
+ ${e["data-loading"]&&"min-height: 150px;"}
92
+ `,st=e=>{var t,n,r;return de`
93
+ outline: ${(t=e.theme.accessibility)==null?void 0:t.border};
94
+ color: ${(r=(n=e.theme.accessibility)==null?void 0:n.colors)==null?void 0:r.inactiveText};
95
+ border-color: transparent;
96
+ `},Bo=M(Mt)`
97
+ position: absolute;
98
+ top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
99
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
100
+ z-index: 1;
101
+
102
+ svg {
103
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
104
+ }
105
+
106
+ &:focus-visible {
107
+ ${st}
108
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
109
+ height: 15px;
110
+ box-sizing: content-box;
111
+ }
112
+ `;M(Un)`
113
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
114
+ font-weight: normal;
115
+ line-height: 1.2em;
116
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
117
+ `;const Fn=({elementId:e="humany-portal-elements",parent:t=document.body,children:n})=>{const[r]=m.useState(()=>{const o=document.getElementById(e)||document.createElement("div");return o.id=e,o});return m.useEffect(()=>(t.appendChild(r),()=>{r.childElementCount<=1&&r.remove()}),[r]),Xe.createPortal(n,r)},Vt=({text:e="",backgroundSize:t="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:o={},className:s,...i})=>{const{type:a,content:u}=r,l={"aria-label":e,role:"presentation"};switch(a){case"Uri":{const c={backgroundSize:t,backgroundImage:`url('${u}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return p.jsx("i",{className:oe(s,"humany-icon","humany-custom-icon"),title:e,style:{...c,...o},...l,...i})}case"Svg":{const c={className:oe(s,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,ref:null},f={minWidth:`${n}`};switch(u){case"search":return p.jsxs("svg",{viewBox:"0 0 32 30",...c,children:[p.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),p.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return p.jsxs("svg",{viewBox:"0 0 27 27",...c,children:[p.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),p.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),p.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return p.jsxs("svg",{viewBox:"0 0 13 13",...c,children:[p.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),p.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return p.jsxs("svg",{viewBox:"0 0 14 14",style:f,...c,children:[p.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),p.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return p.jsxs("svg",{viewBox:"0 0 14 14",style:f,...c,children:[p.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),p.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return p.jsxs(Pa,{viewBox:"0 0 14 14",style:f,...c,children:[p.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),p.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return p.jsxs("svg",{viewBox:"0 0 14 14",style:f,...c,children:[p.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),p.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return p.jsxs("svg",{viewBox:"0 0 18 18",...c,children:[p.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),p.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return p.jsxs("svg",{viewBox:"0 0 19 19",...c,children:[p.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),p.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return p.jsx("svg",{viewBox:"0 0 20 17",...c,children:p.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return p.jsxs("svg",{viewBox:"-2 -3 40 40",...c,children:[p.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),p.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),p.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),p.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return p.jsxs("svg",{viewBox:"0 0 26 24",...c,children:[p.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),p.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return p.jsxs("svg",{viewBox:"0 0 36 30",...c,children:[p.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),p.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),p.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),p.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),p.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return p.jsx("svg",{viewBox:"0 -10 22 22",...c,children:p.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return p.jsx("svg",{viewBox:"0 0 18 14",...c,children:p.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return p.jsxs("svg",{viewBox:"0 0 19 17",...c,children:[p.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),p.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return p.jsxs("svg",{viewBox:"0 0 16 17",...c,children:[p.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),p.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),p.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),p.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),p.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),p.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return p.jsx("svg",{viewBox:"0 0 19 19",...c,children:p.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return p.jsxs("svg",{viewBox:"0 0 17 17",...c,children:[p.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),p.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return p.jsxs("svg",{viewBox:"0 0 16 2",...c,children:[p.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),p.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),p.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return p.jsxs("svg",{viewBox:"0 0 24 24",...c,children:[p.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return f.minWidth&&typeof f.minWidth=="number"&&(f.minWidth=`${f.minWidth}px`),p.jsxs("svg",{viewBox:"0 0 25 25",...c,style:f,children:[p.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return p.jsx("svg",{viewBox:"0 0 13 12",...c,children:p.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return p.jsx("svg",{viewBox:"0 0 13 12",...c,children:p.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return p.jsx("svg",{viewBox:"0 0 24 24",...c,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return p.jsxs("svg",{viewBox:"0 0 24 24",...c,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return p.jsxs("svg",{viewBox:"0 0 24 24",...c,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return p.jsx("svg",{viewBox:"0 0 24 24",...c,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return p.jsx("svg",{viewBox:"0 0 24 24",...c,children:p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return p.jsx("svg",{viewBox:"0 0 24 24",...c,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return p.jsx("svg",{viewBox:"0 0 24 24",...c,children:p.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return p.jsx(Ma,{className:s,faIcon:u,title:e,...i});default:case"Text":return e?p.jsx("i",{className:oe(s,"humany-letter-symbol"),title:e,...l,...i,children:e.substring(0,2)}):null}},Pa=M.svg`
118
+ transform: rotate(180deg);
119
+ `,_a={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},Yn=({variant:e,component:t,className:n,children:r})=>{const{typographyVariantMapping:o={}}=Oa(),s={..._a,...o},i=t||s[e]||"span";return p.jsx($a,{className:n,as:i,children:r})},$a=M.span``,Ht=M.div`
120
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
121
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
122
+ position: fixed;
123
+ bottom: 0;
124
+ left: 0;
125
+ border: ${e=>e.theme.border};
126
+ width: 100%;
127
+ box-shadow: ${e=>e.theme.boxShadow};
128
+ background: #ffffff;
129
+ ${e=>e.css&&e.css}
130
+ `;M(Yn)`
131
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
132
+ margin: 0;
133
+ text-align: center;
134
+ border-bottom: #eeeeee 1px solid;
135
+ background: #ffffff;
136
+ position: relative;
137
+ display: flex;
138
+ justify-content: center;
139
+ align-items: center;
140
+ font-weight: bold;
141
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
142
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
143
+ line-height: 1.2em;
144
+ `;const zt=e=>de`
145
+ transition: ${e.duration}ms;
146
+ `;M(Ht)`
147
+ max-height: 0;
148
+ ${zt}
149
+
150
+ &.humany-drawer-transition-enter {
151
+ max-height: 0;
152
+ }
153
+ &.humany-drawer-transition-enter-active,
154
+ &.humany-drawer-transition-enter-done,
155
+ &.humany-drawer-transition-exit {
156
+ max-height: ${e=>e.fullScreen?"100%":"400px"};
157
+ }
158
+
159
+ &.humany-drawer-transition-exit-active,
160
+ &.humany-drawer-transition-exit-done {
161
+ max-height: 0;
162
+ }
163
+ `;M(Ht)`
164
+ ${zt}
165
+ transform: translateX(100%);
166
+ height: ${e=>e.fullScreen?"100%":"auto"};
167
+
168
+ &.humany-drawer-transition-enter {
169
+ transform: translateX(100%);
170
+ }
171
+ &.humany-drawer-transition-enter-active,
172
+ &.humany-drawer-transition-enter-done,
173
+ &.humany-drawer-transition-exit {
174
+ transform: translateX(0);
175
+ }
176
+
177
+ &.humany-drawer-transition-exit-active,
178
+ &.humany-drawer-transition-exit-done {
179
+ transform: translateX(100%);
180
+ }
181
+ `;M(Ht)`
182
+ ${zt}
183
+ transform: translateX(-100%);
184
+ height: ${e=>e.fullScreen?"100%":"auto"};
185
+
186
+ &.humany-drawer-transition-enter {
187
+ transform: translateX(-100%);
188
+ }
189
+ &.humany-drawer-transition-enter-active,
190
+ &.humany-drawer-transition-enter-done,
191
+ &.humany-drawer-transition-exit {
192
+ transform: translateX(0);
193
+ }
194
+
195
+ &.humany-drawer-transition-exit-active,
196
+ &.humany-drawer-transition-exit-done {
197
+ transform: translateX(-100%);
198
+ }
199
+ `;M(Ht)`
200
+ ${zt}
201
+ bottom: unset;
202
+ top: 0;
203
+ height: 0;
204
+
205
+ &.humany-drawer-transition-enter {
206
+ height: 0;
207
+ }
208
+ &.humany-drawer-transition-enter-active,
209
+ &.humany-drawer-transition-enter-done,
210
+ &.humany-drawer-transition-exit {
211
+ height: ${e=>e.clientHeight}px;
212
+ }
213
+
214
+ &.humany-drawer-transition-exit-active,
215
+ &.humany-drawer-transition-exit-done {
216
+ height: 0;
217
+ }
218
+ `;const Aa=(e,t,n)=>{const[r,o]=m.useState(0),[s,i]=m.useState(0),a=m.useCallback((u,l)=>{if(u.preventDefault(),l){const c=l.getBoundingClientRect();o(Math.max(document.body.clientWidth-c.right,1)),i(c.bottom+window.scrollY)}},[r,s,o,i]);return m.useEffect(()=>{if(!n||!e)return;const u=n.getBoundingClientRect(),l={x:r,y:s};u.left<0&&(l.x=0),u.bottom>window.innerHeight&&(l.y=0),l.x!==r&&o(l.x),l.y!==s&&i(l.y)},[n,e,t]),[{x:r,y:s},a]};m.forwardRef(({className:e="",children:t=null,trigger:n,closeButtonAriaLabel:r,...o},s)=>{const i=m.useRef(),a=m.useRef(),u=m.useRef();m.useImperativeHandle(s,()=>u.current,[u.current]);const l=m.useRef(ct()),[c,f]=m.useState(!1),d=Na(c),[{x:h,y:g},v]=Aa(c,l.current,u.current),y=et("Escape");m.useEffect(()=>{y&&f(!1)},[y]),m.useEffect(()=>{c&&i.current?i.current.focus():!c&&a.current&&d&&a.current.focus()},[c,i.current,a.current]),Ve("click",j=>{const{target:T}=j;!u.current||!T||u.current!==T&&!u.current.contains(T)&&f(!1)},window),Wn("router:changed",()=>{f(!1)});const S=Ho(l.current,()=>{f(!1)}),R=m.useCallback(j=>{j.stopPropagation(),v(j,a.current),f(!c),S()},[S,v,f]);return p.jsxs(p.Fragment,{children:[c&&p.jsx(Fn,{children:p.jsxs(La,{className:oe("humany-dropdown",`humany-dropdown-${l.current}`,e),...o,x:h,y:g,ref:u,children:[p.jsx(Bo,{onClick:()=>f(!1),tabIndex:0,ref:i,"aria-label":r,children:p.jsx(Vt,{symbol:{type:"Svg",content:"close"}})}),t]})}),m.cloneElement(n,{onClick:R,ref:a,"aria-label":n.props.title,"aria-expanded":c})]})});const La=M.div`
219
+ ${zo}
220
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
221
+ min-width: 150px;
222
+ position: absolute;
223
+ box-shadow: ${e=>e.theme.boxShadow};
224
+
225
+ ${e=>{var n,r,o;let t="";return e.y>0?t+=`top: calc(${((n=e.theme.sizes)==null?void 0:n.small)||"0px"} + ${e.y||"0"}px);`:t+=`bottom: ${((r=e.theme.sizes)==null?void 0:r.normal)||"0px"};`,e.x>0?t+=`right: ${e.x||"0"}px;`:t+=`left: ${((o=e.theme.sizes)==null?void 0:o.normal)||"0px"};`,t}};
226
+ `;M.div`
227
+ display: none;
228
+ `;m.forwardRef(({children:e,columns:t,gap:n,className:r,...o},s)=>p.jsx(Da,{className:oe(r,"humany-grid"),"data-columns":t,"data-gap":n,...No(o),...Ee(o),ref:s,children:e}));const Da=M.div`
229
+ display: grid;
230
+ grid-template-columns: repeat(${e=>e["data-columns"]}, 1fr);
231
+ grid-gap: ${e=>e["data-gap"]};
232
+ justify-content: center;
233
+ grid-auto-rows: max-content;
234
+ ${ki}
235
+ `,Wo=m.forwardRef(({htmlParseInstruction:e=null,className:t,html:n,...r},o)=>{const s=Ze(),[i,a]=m.useState();return m.useEffect(()=>{const u=_i(s,n),l={...u,...e,transform:{...u.transform,...e==null?void 0:e.transform}},c=ji(n,l);a(c)},[n,e]),p.jsx("div",{className:oe(t,"humany-html"),...Ee(r),ref:o,children:i})}),Ma=({faIcon:e,title:t,className:n="",role:r="presentation",...o})=>p.jsx("i",{className:oe(n,`fa fa-${e}`),title:t,role:r,...Ee(o)});m.forwardRef(({className:e="",autoFocus:t=!1,onFocusChange:n=()=>{},onEnter:r=()=>{},onEscape:o=()=>{},selectAllOnFocus:s,onChange:i=()=>{},disabled:a=!1,type:u,...l},c)=>{const[f,d]=m.useState(t),h=m.useRef();m.useImperativeHandle(c,()=>h.current),m.useEffect(()=>{var y;t&&((y=h==null?void 0:h.current)==null||y.focus())},[t,c,h]);const g=(y,S)=>{d(y),n&&n(y),s&&y&&S.target.select()},v={...Ee(l),disabled:a,autoFocus:t,type:u,onKeyDown:y=>{y.key==="Enter"&&f&&r(y),y.key==="Escape"&&f&&o(y)},onFocus:y=>g(!0,y),onBlur:y=>g(!1,y),onChange:y=>i(y.target.value||""),className:oe(e,"humany-input"),"data-type":u};return u!=="textarea"?p.jsx("input",{...v,ref:h}):p.jsx("textarea",{...v,ref:h})});const Ia=m.forwardRef(({className:e,items:t,renderItem:n,renderLi:r=!1,...o},s)=>p.jsx("ul",{role:"none","aria-live":"polite",className:oe(e,"humany-list"),"data-item-count":t.length,...Ee(o),ref:s,children:t.map((i,a,u)=>r?p.jsx("li",{className:"humany-list-item",children:n(i,a,u)},i.id||a):n(i,a,u))})),Va=m.forwardRef(({text:e,html:t,header:n,className:r,htmlParseInstruction:o,symbol:s,...i},a)=>p.jsxs("div",{className:oe(r,"humany-paragraph"),...Ee(i),ref:a,children:[n?p.jsxs(Yn,{variant:"h1",children:[s?p.jsx(Vt,{symbol:s}):null,n]}):null,t?p.jsx(Wo,{html:t,htmlParseInstruction:o}):null,e?p.jsx(Un,{children:e}):null]}));m.forwardRef(({header:e,customHeader:t,text:n,html:r,className:o,children:s,symbol:i,items:a,renderItem:u,renderLi:l,ulProps:c,...f},d)=>p.jsxs("div",{className:oe(o,"humany-item-list"),"data-item-count":a.length,...Ee(f),ref:d,children:[t||(e||n||r?p.jsx(Va,{symbol:i,header:e,text:n,html:r}):null),a.length?p.jsx(Ia,{items:a,renderItem:u,renderLi:l,...c}):null,s]}));var Uo=function(){};process.env.NODE_ENV!=="production"&&(Uo=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var s=0,i="Warning: "+t.replace(/%s/g,function(){return n[s++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}});var Ha=Uo,za=Ha;Ba(za);function Ba(e){return e&&e.__esModule?e:{default:e}}function pt(e){return e.charAt(0)==="/"}function tn(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&pt(e),s=t&&pt(t),i=o||s;if(e&&pt(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a=void 0;if(r.length){var u=r[r.length-1];a=u==="."||u===".."||u===""}else a=!1;for(var l=0,c=r.length;c>=0;c--){var f=r[c];f==="."?tn(r,c):f===".."?(tn(r,c),l++):l&&(tn(r,c),l--)}if(!i)for(;l--;l)r.unshift("..");i&&r[0]!==""&&(!r[0]||!pt(r[0]))&&r.unshift("");var d=r.join("/");return a&&d.substr(-1)!=="/"&&(d+="/"),d}const Ua=Object.freeze(Object.defineProperty({__proto__:null,default:Wa},Symbol.toStringTag,{value:"Module"})),Fa=go(Ua);var zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function wt(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(u,l){return wt(u,t[l])});var n=typeof e>"u"?"undefined":zr(e),r=typeof t>"u"?"undefined":zr(t);if(n!==r)return!1;if(n==="object"){var o=e.valueOf(),s=t.valueOf();if(o!==e||s!==t)return wt(o,s);var i=Object.keys(e),a=Object.keys(t);return i.length!==a.length?!1:i.every(function(u){return wt(e[u],t[u])})}return!1}const Ya=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"})),qa=go(Ya);var Za=Fa;Fo(Za);var Ka=qa;Fo(Ka);function Fo(e){return e&&e.__esModule?e:{default:e}}var bn=(e=>(e.scopedHash="scopedHash",e.hash="hash",e.browser="browser",e.memory="memory",e))(bn||{});const Ga=(e,t)=>{const n=`humany-${t}=([^&?]+)&?`,r=new RegExp(n,"i"),o=e.match(r);return o&&o[1]||"/"};It(e=>{e.createCommand("routing",t=>n=>{const r={mode:n.mode};n.basePath&&(r.basePath=n.basePath),t.container.register("routingSettings",r)})});var ke=(e=>(e.Cookie="cookie",e.Local="local",e.Session="session",e))(ke||{}),qn=(e=>(e.Tenant="tenant",e.Implementation="implementation",e.Widget="widget",e))(qn||{}),be=(e=>(e.Necessary="necessary",e.Functional="functional",e.Analytical="analytical",e.Marketing="marketing",e))(be||{});const Ja=(e,t,n,r={})=>Br(e,n).then(o=>(process.env.NODE_ENV!=="production"&&o&&ue.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
236
+ Key: ${t}
237
+ Category: ${JSON.stringify(n)}
238
+ Options: ${JSON.stringify(r)}`),s=>(Kn(e),Br(e,n).then(i=>{if(i){process.env.NODE_ENV!=="production"&&ue.warn(`storageWriter: Attempted to write to storage using unallowed category.
239
+ Key: ${t}
240
+ Category: ${JSON.stringify(n)}
241
+ Value: ${JSON.stringify(s)}
242
+ Options: ${JSON.stringify(r)}`);return}const{scope:a=qn.Widget,medium:u=ke.Session,duration:l}=r,c=ec();return c[a][t]=Zo(s,n,l),u===ke.Cookie?sc(e,c):ac(e,u,c)})))),Xa=(e,t,n=ke.Session)=>(Kn(e),typeof t>"u"?(process.env.NODE_ENV!=="production"&&ue.warn("readStorage: Undefined key passed when reading storage. ",t,n),Promise.resolve(void 0)):n===ke.Cookie?oc(e).then(r=>wn(r,t)):ic(e,n).then(r=>wn(r,t))),He=e=>!!Object.entries(e).filter(([t,n])=>typeof n<"u").length,nn=e=>Object.entries(e).filter(([t,n])=>typeof n<"u").forEach(([t,{value:n}])=>{typeof n>"u"&&delete e[t]}),Yo=(e,t)=>{const n={tenant:{...e.tenant,...t.tenant},implementation:{...e.implementation,...t.implementation},widget:{...e.widget,...t.widget}};return nn(n.tenant),nn(n.implementation),nn(n.widget),n},Qa=e=>Object.entries(e).reduce((n,r)=>{const[o,s]=r;return Object.entries(s).forEach(i=>{const[a,{expiration:u}]=i;u&&n.push(u)}),n},[]).slice().sort((n,r)=>new Date(r).valueOf()-new Date(n).valueOf()).shift()||Gn(),Bt=e=>{const{name:t,implementation:{name:n,tenant:r}}=e.get("$widget");return[`humany_${r}`,`humany_${Nr(r+n)}`,`humany_${Nr(r+n+t)}`]},rn=e=>{const t=new RegExp(`(?:^|;)\\s?${e}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(t);return n&&n[1]&&JSON.parse(n[1])||void 0},on=(e,t,n)=>{const r=`${e}=${JSON.stringify(t).trim()}`,o=`expires=${new Date(n).toUTCString()}`,s="path=/",i="SameSite=None;Secure";return document.cookie=`${r}; ${o}; ${s}; ${i}`},Zn=e=>{const[t,n,r]=Bt(e),o=rn(t)||{},s=rn(n)||{},i=rn(r)||{};return{tenant:o,implementation:s,widget:i}},qo=(e,t)=>{const n=Zn(e),r=Yo(n,t),[o,s,i]=Bt(e),{tenant:a,implementation:u,widget:l}=r,c=Qa(t),f=Gn({days:-1});on(o,a,He(a)?c:f),on(s,u,He(u)?c:f),on(i,l,He(l)?c:f)},Nt=(e,t)=>{const[n,r,o]=Bt(e),s=t.getItem(n)||"{}",i=t.getItem(r)||"{}",a=t.getItem(o)||"{}";return{tenant:JSON.parse(s),implementation:JSON.parse(i),widget:JSON.parse(a)}},xn=(e,t,n)=>{const r=Nt(e,t),o=Yo(r,n),[s,i,a]=Bt(e),{tenant:u,implementation:l,widget:c}=o;He(u)?t.setItem(s,JSON.stringify(u)):t.removeItem(s),He(l)?t.setItem(i,JSON.stringify(l)):t.removeItem(i),He(c)?t.setItem(a,JSON.stringify(c)):t.removeItem(a)},ec=()=>({tenant:{},implementation:{},widget:{}}),tc=e=>e?!!e&&new Date>new Date(e):!1,wn=(e,t)=>{const n=e.widget[t]||e.implementation[t]||e.tenant[t];return n==null?void 0:n.value},Zo=(e,t,n)=>n?{value:e,category:t,expiration:typeof n=="object"?Gn(n):n}:{value:e,category:t},nc=(e,t)=>{const n=So(e);return Object.entries(n).forEach(([r,o])=>{Object.entries(o).forEach(([s,i])=>{const{expiration:a,category:u}=i;(tc(a)||rc(t,u))&&(o[s]=Zo(void 0,u,a))})}),n},Br=(e,t)=>Xa(e,"storagePolicy",ke.Cookie).then((n=[be.Necessary])=>!!t&&n.indexOf(t)===-1),rc=(e=[be.Necessary],t)=>!!t&&e.indexOf(t)===-1,Kn=e=>{const t=Zn(e),n=Nt(e,window.localStorage),r=Nt(e,sessionStorage),o=wn(t,"storagePolicy"),[s,i,a]=[t,n,r].map(u=>nc(u,o));qo(e,s),xn(e,window.localStorage,i),xn(e,window.sessionStorage,a)},Gn=(e={days:30})=>{const{days:t=0,hours:n=0,minutes:r=0,seconds:o=0}=e,s=new Date;return s.setTime(s.getTime()+n*60*60*1e3),s.setTime(s.getTime()+t*24*60*60*1e3),s.setTime(s.getTime()+r*60*1e3),s.setTime(s.getTime()+o*1e3),s.toISOString()},oc=e=>Dt(document)(()=>Zn(e)),sc=(e,t)=>Dt(document)(()=>qo(e,t)),ic=(e,t)=>{const n=t===ke.Local?window.localStorage:window.sessionStorage;return Dt(n)(()=>Nt(e,n))},ac=(e,t,n)=>{const r=t===ke.Local?window.localStorage:window.sessionStorage;return Dt(r)(()=>xn(e,r,n))};It(e=>{e.createCommand("storage",t=>(n={})=>{const{consent:r}=n;if(typeof r<"u"){if(typeof r!="number"&&typeof r!="string"&&!Array.isArray(r)){process.env.NODE_ENV!=="production"&&ue.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
243
+ Passed consent: ${JSON.stringify(r)}`);return}if(Array.isArray(r)&&!r.every(s=>typeof s=="number"||typeof s=="string")){process.env.NODE_ENV!=="production"&&ue.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
244
+ Passed consent: ${JSON.stringify(r)}`);return}const o=[be.Necessary,be.Functional,be.Analytical,be.Marketing].filter((s,i,a)=>typeof r=="number"?r>i:typeof r=="string"?a.indexOf(r)+1>i:Array.isArray(r)?r.findIndex(u=>u===i+1||u===s)>-1:!0);return o.indexOf(be.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&ue.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${be.Necessary}'. Consent has to atleast include the '${be.Necessary}' category.
245
+ Passed consent: ${JSON.stringify(r)}`),o.unshift(be.Necessary)),Ja(t.container,"storagePolicy",be.Necessary,{medium:ke.Cookie,scope:qn.Tenant,duration:{days:365}}).then(s=>s(o)).then(()=>{Kn(t.container),t.events.dispatch("storage:policy-changed",o)})}})});function ht(e){return e.charAt(0)==="/"}function sn(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function cc(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&ht(e),s=t&&ht(t),i=o||s;if(e&&ht(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var u=r[r.length-1];a=u==="."||u===".."||u===""}else a=!1;for(var l=0,c=r.length;c>=0;c--){var f=r[c];f==="."?sn(r,c):f===".."?(sn(r,c),l++):l&&(sn(r,c),l--)}if(!i)for(;l--;l)r.unshift("..");i&&r[0]!==""&&(!r[0]||!ht(r[0]))&&r.unshift("");var d=r.join("/");return a&&d.substr(-1)!=="/"&&(d+="/"),d}var uc=process.env.NODE_ENV==="production";function J(e,t){if(!uc){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var lc=process.env.NODE_ENV==="production",an="Invariant failed";function ve(e,t){if(!e){if(lc)throw new Error(an);var n=typeof t=="function"?t():t,r=n?"".concat(an,": ").concat(n):an;throw new Error(r)}}function tt(e){return e.charAt(0)==="/"?e:"/"+e}function Wr(e){return e.charAt(0)==="/"?e.substr(1):e}function Jn(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Ko(e,t){return Jn(e,t)?e.substr(t.length):e}function Go(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function fc(e){var t=e||"/",n="",r="",o=t.indexOf("#");o!==-1&&(r=t.substr(o),t=t.substr(0,o));var s=t.indexOf("?");return s!==-1&&(n=t.substr(s),t=t.substr(0,s)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function he(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(o+=r.charAt(0)==="#"?r:"#"+r),o}function ge(e,t,n,r){var o;typeof e=="string"?(o=fc(e),o.state=t):(o=ce({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),r?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=cc(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Xn(){var e=null;function t(i){return process.env.NODE_ENV!=="production"&&J(e==null,"A history supports only one prompt at a time"),e=i,function(){e===i&&(e=null)}}function n(i,a,u,l){if(e!=null){var c=typeof e=="function"?e(i,a):e;typeof c=="string"?typeof u=="function"?u(c,l):(process.env.NODE_ENV!=="production"&&J(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),l(!0)):l(c!==!1)}else l(!0)}var r=[];function o(i){var a=!0;function u(){a&&i.apply(void 0,arguments)}return r.push(u),function(){a=!1,r=r.filter(function(l){return l!==u})}}function s(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];r.forEach(function(l){return l.apply(void 0,a)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:o,notifyListeners:s}}var Jo=!!(typeof window<"u"&&window.document&&window.document.createElement);function Xo(e,t){t(window.confirm(e))}function dc(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function pc(){return window.navigator.userAgent.indexOf("Trident")===-1}function hc(){return window.navigator.userAgent.indexOf("Firefox")===-1}function mc(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var Ur="popstate",Fr="hashchange";function Yr(){try{return window.history.state||{}}catch{return{}}}function vc(e){e===void 0&&(e={}),Jo||(process.env.NODE_ENV!=="production"?ve(!1,"Browser history needs a DOM"):ve(!1));var t=window.history,n=dc(),r=!pc(),o=e,s=o.forceRefresh,i=s===void 0?!1:s,a=o.getUserConfirmation,u=a===void 0?Xo:a,l=o.keyLength,c=l===void 0?6:l,f=e.basename?Go(tt(e.basename)):"";function d(I){var b=I||{},w=b.key,C=b.state,O=window.location,N=O.pathname,L=O.search,$=O.hash,A=N+L+$;return process.env.NODE_ENV!=="production"&&J(!f||Jn(A,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+A+'" to begin with "'+f+'".'),f&&(A=Ko(A,f)),ge(A,C,w)}function h(){return Math.random().toString(36).substr(2,c)}var g=Xn();function v(I){ce(X,I),X.length=t.length,g.notifyListeners(X.location,X.action)}function y(I){mc(I)||j(d(I.state))}function S(){j(d(Yr()))}var R=!1;function j(I){if(R)R=!1,v();else{var b="POP";g.confirmTransitionTo(I,b,u,function(w){w?v({action:b,location:I}):T(I)})}}function T(I){var b=X.location,w=D.indexOf(b.key);w===-1&&(w=0);var C=D.indexOf(I.key);C===-1&&(C=0);var O=w-C;O&&(R=!0,B(O))}var x=d(Yr()),D=[x.key];function k(I){return f+he(I)}function _(I,b){process.env.NODE_ENV!=="production"&&J(!(typeof I=="object"&&I.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var w="PUSH",C=ge(I,b,h(),X.location);g.confirmTransitionTo(C,w,u,function(O){if(O){var N=k(C),L=C.key,$=C.state;if(n)if(t.pushState({key:L,state:$},null,N),i)window.location.href=N;else{var A=D.indexOf(X.location.key),V=D.slice(0,A+1);V.push(C.key),D=V,v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&J($===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=N}})}function z(I,b){process.env.NODE_ENV!=="production"&&J(!(typeof I=="object"&&I.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var w="REPLACE",C=ge(I,b,h(),X.location);g.confirmTransitionTo(C,w,u,function(O){if(O){var N=k(C),L=C.key,$=C.state;if(n)if(t.replaceState({key:L,state:$},null,N),i)window.location.replace(N);else{var A=D.indexOf(X.location.key);A!==-1&&(D[A]=C.key),v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&J($===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(N)}})}function B(I){t.go(I)}function G(){B(-1)}function q(){B(1)}var ne=0;function Q(I){ne+=I,ne===1&&I===1?(window.addEventListener(Ur,y),r&&window.addEventListener(Fr,S)):ne===0&&(window.removeEventListener(Ur,y),r&&window.removeEventListener(Fr,S))}var te=!1;function ee(I){I===void 0&&(I=!1);var b=g.setPrompt(I);return te||(Q(1),te=!0),function(){return te&&(te=!1,Q(-1)),b()}}function ae(I){var b=g.appendListener(I);return Q(1),function(){Q(-1),b()}}var X={length:t.length,action:"POP",location:x,createHref:k,push:_,replace:z,go:B,goBack:G,goForward:q,block:ee,listen:ae};return X}var qr="hashchange",gc={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+Wr(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:Wr,decodePath:tt},slash:{encodePath:tt,decodePath:tt}};function Qo(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Je(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function yc(e){window.location.hash=e}function cn(e){window.location.replace(Qo(window.location.href)+"#"+e)}function bc(e){e===void 0&&(e={}),Jo||(process.env.NODE_ENV!=="production"?ve(!1,"Hash history needs a DOM"):ve(!1));var t=window.history,n=hc(),r=e,o=r.getUserConfirmation,s=o===void 0?Xo:o,i=r.hashType,a=i===void 0?"slash":i,u=e.basename?Go(tt(e.basename)):"",l=gc[a],c=l.encodePath,f=l.decodePath;function d(){var w=f(Je());return process.env.NODE_ENV!=="production"&&J(!u||Jn(w,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+w+'" to begin with "'+u+'".'),u&&(w=Ko(w,u)),ge(w)}var h=Xn();function g(w){ce(b,w),b.length=t.length,h.notifyListeners(b.location,b.action)}var v=!1,y=null;function S(w,C){return w.pathname===C.pathname&&w.search===C.search&&w.hash===C.hash}function R(){var w=Je(),C=c(w);if(w!==C)cn(C);else{var O=d(),N=b.location;if(!v&&S(N,O)||y===he(O))return;y=null,j(O)}}function j(w){if(v)v=!1,g();else{var C="POP";h.confirmTransitionTo(w,C,s,function(O){O?g({action:C,location:w}):T(w)})}}function T(w){var C=b.location,O=_.lastIndexOf(he(C));O===-1&&(O=0);var N=_.lastIndexOf(he(w));N===-1&&(N=0);var L=O-N;L&&(v=!0,q(L))}var x=Je(),D=c(x);x!==D&&cn(D);var k=d(),_=[he(k)];function z(w){var C=document.querySelector("base"),O="";return C&&C.getAttribute("href")&&(O=Qo(window.location.href)),O+"#"+c(u+he(w))}function B(w,C){process.env.NODE_ENV!=="production"&&J(C===void 0,"Hash history cannot push state; it is ignored");var O="PUSH",N=ge(w,void 0,void 0,b.location);h.confirmTransitionTo(N,O,s,function(L){if(L){var $=he(N),A=c(u+$),V=Je()!==A;if(V){y=$,yc(A);var U=_.lastIndexOf(he(b.location)),W=_.slice(0,U+1);W.push($),_=W,g({action:O,location:N})}else process.env.NODE_ENV!=="production"&&J(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}})}function G(w,C){process.env.NODE_ENV!=="production"&&J(C===void 0,"Hash history cannot replace state; it is ignored");var O="REPLACE",N=ge(w,void 0,void 0,b.location);h.confirmTransitionTo(N,O,s,function(L){if(L){var $=he(N),A=c(u+$),V=Je()!==A;V&&(y=$,cn(A));var U=_.indexOf(he(b.location));U!==-1&&(_[U]=$),g({action:O,location:N})}})}function q(w){process.env.NODE_ENV!=="production"&&J(n,"Hash history go(n) causes a full page reload in this browser"),t.go(w)}function ne(){q(-1)}function Q(){q(1)}var te=0;function ee(w){te+=w,te===1&&w===1?window.addEventListener(qr,R):te===0&&window.removeEventListener(qr,R)}var ae=!1;function X(w){w===void 0&&(w=!1);var C=h.setPrompt(w);return ae||(ee(1),ae=!0),function(){return ae&&(ae=!1,ee(-1)),C()}}function I(w){var C=h.appendListener(w);return ee(1),function(){ee(-1),C()}}var b={length:t.length,action:"POP",location:k,createHref:z,push:B,replace:G,go:q,goBack:ne,goForward:Q,block:X,listen:I};return b}function Zr(e,t,n){return Math.min(Math.max(e,t),n)}function xc(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=r===void 0?["/"]:r,s=t.initialIndex,i=s===void 0?0:s,a=t.keyLength,u=a===void 0?6:a,l=Xn();function c(_){ce(k,_),k.length=k.entries.length,l.notifyListeners(k.location,k.action)}function f(){return Math.random().toString(36).substr(2,u)}var d=Zr(i,0,o.length-1),h=o.map(function(_){return typeof _=="string"?ge(_,void 0,f()):ge(_,void 0,_.key||f())}),g=he;function v(_,z){process.env.NODE_ENV!=="production"&&J(!(typeof _=="object"&&_.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var B="PUSH",G=ge(_,z,f(),k.location);l.confirmTransitionTo(G,B,n,function(q){if(q){var ne=k.index,Q=ne+1,te=k.entries.slice(0);te.length>Q?te.splice(Q,te.length-Q,G):te.push(G),c({action:B,location:G,index:Q,entries:te})}})}function y(_,z){process.env.NODE_ENV!=="production"&&J(!(typeof _=="object"&&_.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var B="REPLACE",G=ge(_,z,f(),k.location);l.confirmTransitionTo(G,B,n,function(q){q&&(k.entries[k.index]=G,c({action:B,location:G}))})}function S(_){var z=Zr(k.index+_,0,k.entries.length-1),B="POP",G=k.entries[z];l.confirmTransitionTo(G,B,n,function(q){q?c({action:B,location:G,index:z}):c()})}function R(){S(-1)}function j(){S(1)}function T(_){var z=k.index+_;return z>=0&&z<k.entries.length}function x(_){return _===void 0&&(_=!1),l.setPrompt(_)}function D(_){return l.appendListener(_)}var k={length:h.length,action:"POP",location:h[d],index:d,entries:h,createHref:g,push:v,replace:y,go:S,goBack:R,goForward:j,canGo:T,block:x,listen:D};return k}var Ke={exports:{}},wc=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},kt=wc;Ke.exports=ns;Ke.exports.parse=Qn;Ke.exports.compile=Cc;Ke.exports.tokensToFunction=es;Ke.exports.tokensToRegExp=ts;var Ec=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Qn(e,t){for(var n=[],r=0,o=0,s="",i=t&&t.delimiter||"/",a;(a=Ec.exec(e))!=null;){var u=a[0],l=a[1],c=a.index;if(s+=e.slice(o,c),o=c+u.length,l){s+=l[1];continue}var f=e[o],d=a[2],h=a[3],g=a[4],v=a[5],y=a[6],S=a[7];s&&(n.push(s),s="");var R=d!=null&&f!=null&&f!==d,j=y==="+"||y==="*",T=y==="?"||y==="*",x=a[2]||i,D=g||v;n.push({name:h||r++,prefix:d||"",delimiter:x,optional:T,repeat:j,partial:R,asterisk:!!S,pattern:D?Nc(D):S?".*":"[^"+Et(x)+"]+?"})}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function Cc(e,t){return es(Qn(e,t),t)}function Oc(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Sc(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function es(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",tr(t)));return function(o,s){for(var i="",a=o||{},u=s||{},l=u.pretty?Oc:encodeURIComponent,c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){i+=f;continue}var d=a[f.name],h;if(d==null)if(f.optional){f.partial&&(i+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(kt(d)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(d.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var g=0;g<d.length;g++){if(h=l(d[g]),!n[c].test(h))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(h)+"`");i+=(g===0?f.prefix:f.delimiter)+h}continue}if(h=f.asterisk?Sc(d):l(d),!n[c].test(h))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+h+'"');i+=f.prefix+h}return i}}function Et(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Nc(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function er(e,t){return e.keys=t,e}function tr(e){return e&&e.sensitive?"":"i"}function kc(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return er(e,t)}function Tc(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(ns(e[o],t,n).source);var s=new RegExp("(?:"+r.join("|")+")",tr(n));return er(s,t)}function Rc(e,t,n){return ts(Qn(e,n),t,n)}function ts(e,t,n){kt(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,s="",i=0;i<e.length;i++){var a=e[i];if(typeof a=="string")s+=Et(a);else{var u=Et(a.prefix),l="(?:"+a.pattern+")";t.push(a),a.repeat&&(l+="(?:"+u+l+")*"),a.optional?a.partial?l=u+"("+l+")?":l="(?:"+u+"("+l+"))?":l=u+"("+l+")",s+=l}}var c=Et(n.delimiter||"/"),f=s.slice(-c.length)===c;return r||(s=(f?s.slice(0,-c.length):s)+"(?:"+c+"(?=$))?"),o?s+="$":s+=r&&f?"":"(?="+c+"|$)",er(new RegExp("^"+s,tr(n)),t)}function ns(e,t,n){return kt(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?kc(e,t):kt(e)?Tc(e,t,n):Rc(e,t,n)}var jc=Ke.exports;const Pc=jn(jc);var mt=1073741823,Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function _c(){var e="__global_unique_id__";return Kr[e]=(Kr[e]||0)+1}function $c(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ac(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(o){return o!==r})},get:function(){return e},set:function(r,o){e=r,t.forEach(function(s){return s(e,o)})}}}function Lc(e){return Array.isArray(e)?e[0]:e}function Dc(e,t){var n,r,o="__create-react-context-"+_c()+"__",s=function(a){xe(u,a);function u(){for(var c,f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];return c=a.call.apply(a,[this].concat(d))||this,c.emitter=Ac(c.props.value),c}var l=u.prototype;return l.getChildContext=function(){var f;return f={},f[o]=this.emitter,f},l.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var d=this.props.value,h=f.value,g;$c(d,h)?g=0:(g=typeof t=="function"?t(d,h):mt,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&J((g&mt)===g,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+g),g|=0,g!==0&&this.emitter.set(f.value,g))}},l.render=function(){return this.props.children},u}(m.Component);s.childContextTypes=(n={},n[o]=E.object.isRequired,n);var i=function(a){xe(u,a);function u(){for(var c,f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];return c=a.call.apply(a,[this].concat(d))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(g,v){var y=c.observedBits|0;y&v&&c.setState({value:c.getValue()})},c}var l=u.prototype;return l.componentWillReceiveProps=function(f){var d=f.observedBits;this.observedBits=d??mt},l.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f??mt},l.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},l.getValue=function(){return this.context[o]?this.context[o].get():e},l.render=function(){return Lc(this.props.children)(this.state.value)},u}(m.Component);return i.contextTypes=(r={},r[o]=E.object,r),{Provider:s,Consumer:i}}var Mc=m.createContext||Dc,rs=function(t){var n=Mc();return n.displayName=t,n},Ic=rs("Router-History"),We=rs("Router"),Ue=function(e){xe(t,e),t.computeRootMatch=function(o){return{path:"/",url:"/",params:{},isExact:o==="/"}};function t(r){var o;return o=e.call(this,r)||this,o.state={location:r.history.location},o._isMounted=!1,o._pendingLocation=null,r.staticContext||(o.unlisten=r.history.listen(function(s){o._pendingLocation=s})),o}var n=t.prototype;return n.componentDidMount=function(){var o=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(s){o._isMounted&&o.setState({location:s})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return m.createElement(We.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(Ic.Provider,{children:this.props.children||null,value:this.props.history}))},t}(m.Component);process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},Ue.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&J(e.history===this.props.history,"You cannot change <Router history>")});var Gr=function(e){xe(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=xc(r.props),r}var n=t.prototype;return n.render=function(){return m.createElement(Ue,{history:this.history,children:this.props.children})},t}(m.Component);process.env.NODE_ENV!=="production"&&(Gr.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},Gr.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")});m.Component;if(process.env.NODE_ENV!=="production"){var Vc=E.oneOfType([E.func,E.string]);E.bool,Vc.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var Jr={},Hc=1e4,Xr=0;function zc(e,t){var n=""+t.end+t.strict+t.sensitive,r=Jr[n]||(Jr[n]={});if(r[e])return r[e];var o=[],s=Pc(e,o,t),i={regexp:s,keys:o};return Xr<Hc&&(r[e]=i,Xr++),i}function nr(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,s=o===void 0?!1:o,i=n.strict,a=i===void 0?!1:i,u=n.sensitive,l=u===void 0?!1:u,c=[].concat(r);return c.reduce(function(f,d){if(!d&&d!=="")return null;if(f)return f;var h=zc(d,{end:s,strict:a,sensitive:l}),g=h.regexp,v=h.keys,y=g.exec(e);if(!y)return null;var S=y[0],R=y.slice(1),j=e===S;return s&&!j?null:{path:d,url:d==="/"&&S===""?"/":S,isExact:j,params:v.reduce(function(T,x,D){return T[x.name]=R[D],T},{})}},null)}function En(e){return m.Children.count(e)===0}function Qr(e,t,n){var r=e(t);return process.env.NODE_ENV!=="production"&&J(r!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(n?' path="'+n+'"':"")+">, but you ")+"should have returned a React element or `null`"),r||null}var un=function(e){xe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return m.createElement(We.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Route> outside a <Router>"):ve(!1));var i=o.props.location||s.location,a=o.props.computedMatch?o.props.computedMatch:o.props.path?nr(i.pathname,o.props):s.match,u=ce({},s,{location:i,match:a}),l=o.props,c=l.children,f=l.component,d=l.render;return Array.isArray(c)&&En(c)&&(c=null),m.createElement(We.Provider,{value:u},u.match?c?typeof c=="function"?process.env.NODE_ENV!=="production"?Qr(c,u,o.props.path):c(u):c:f?m.createElement(f,u):d?d(u):null:typeof c=="function"?process.env.NODE_ENV!=="production"?Qr(c,u,o.props.path):c(u):null)})},t}(m.Component);process.env.NODE_ENV!=="production"&&(un.propTypes={children:E.oneOfType([E.func,E.node]),component:function(t,n){if(t[n]&&!_t.isValidElementType(t[n]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:E.bool,location:E.object,path:E.oneOfType([E.string,E.arrayOf(E.string)]),render:E.func,sensitive:E.bool,strict:E.bool},un.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!(this.props.children&&!En(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&J(!(this.props.children&&!En(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&J(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},un.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&J(!(this.props.location&&!e.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&J(!(!this.props.location&&e.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function rr(e){return e.charAt(0)==="/"?e:"/"+e}function Bc(e,t){return e?ce({},t,{pathname:rr(e)+t.pathname}):t}function Wc(e,t){if(!e)return t;var n=rr(e);return t.pathname.indexOf(n)!==0?t:ce({},t,{pathname:t.pathname.substr(n.length)})}function eo(e){return typeof e=="string"?e:he(e)}function ln(e){return function(){process.env.NODE_ENV!=="production"?ve(!1,"You cannot %s with <StaticRouter>"):ve(!1)}}function to(){}var no=function(e){xe(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return to},r.handleBlock=function(){return to},r}var n=t.prototype;return n.navigateTo=function(o,s){var i=this.props,a=i.basename,u=a===void 0?"":a,l=i.context,c=l===void 0?{}:l;c.action=s,c.location=Bc(u,ge(o)),c.url=eo(c.location)},n.render=function(){var o=this.props,s=o.basename,i=s===void 0?"":s,a=o.context,u=a===void 0?{}:a,l=o.location,c=l===void 0?"/":l,f=qe(o,["basename","context","location"]),d={createHref:function(g){return rr(i+eo(g))},action:"POP",location:Wc(i,ge(c)),push:this.handlePush,replace:this.handleReplace,go:ln(),goBack:ln(),goForward:ln(),listen:this.handleListen,block:this.handleBlock};return m.createElement(Ue,ce({},f,{history:d,staticContext:u}))},t}(m.Component);process.env.NODE_ENV!=="production"&&(no.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},no.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var ro=function(e){xe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return m.createElement(We.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Switch> outside a <Router>"):ve(!1));var i=o.props.location||s.location,a,u;return m.Children.forEach(o.props.children,function(l){if(u==null&&m.isValidElement(l)){a=l;var c=l.props.path||l.props.from;u=c?nr(i.pathname,ce({},l.props,{path:c})):s.match}}),u?m.cloneElement(a,{location:i,computedMatch:u}):null})},t}(m.Component);process.env.NODE_ENV!=="production"&&(ro.propTypes={children:E.node,location:E.object},ro.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&J(!(this.props.location&&!e.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&J(!(!this.props.location&&e.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});m.useContext;if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var vt=window,gt="__react_router_build__",oo={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(vt[gt]&&vt[gt]!=="esm"){var Uc=oo[vt[gt]],Fc=oo.esm;throw new Error("You are loading the "+Fc+" build of React Router "+("on a page that is already running the "+Uc+" ")+"build, so things won't work right.")}vt[gt]="esm"}var so=function(e){xe(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=vc(r.props),r}var n=t.prototype;return n.render=function(){return m.createElement(Ue,{history:this.history,children:this.props.children})},t}(m.Component);process.env.NODE_ENV!=="production"&&(so.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},so.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var io=function(e){xe(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=bc(r.props),r}var n=t.prototype;return n.render=function(){return m.createElement(Ue,{history:this.history,children:this.props.children})},t}(m.Component);process.env.NODE_ENV!=="production"&&(io.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},io.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Cn=function(t,n){return typeof t=="function"?t(n):t},On=function(t,n){return typeof t=="string"?ge(t,null,null,n):t},or=function(t){return t},Fe=m.forwardRef;typeof Fe>"u"&&(Fe=or);function Yc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var os=Fe(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,s=qe(e,["innerRef","navigate","onClick"]),i=s.target,a=ce({},s,{onClick:function(l){try{o&&o(l)}catch(c){throw l.preventDefault(),c}!l.defaultPrevented&&l.button===0&&(!i||i==="_self")&&!Yc(l)&&(l.preventDefault(),r())}});return or!==Fe?a.ref=t||n:a.ref=n,m.createElement("a",a)});process.env.NODE_ENV!=="production"&&(os.displayName="LinkAnchor");var $e=Fe(function(e,t){var n=e.component,r=n===void 0?os:n,o=e.replace,s=e.to,i=e.innerRef,a=qe(e,["component","replace","to","innerRef"]);return m.createElement(We.Consumer,null,function(u){u||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <Link> outside a <Router>"):ve(!1));var l=u.history,c=On(Cn(s,u.location),u.location),f=c?l.createHref(c):"",d=ce({},a,{href:f,navigate:function(){var g=Cn(s,u.location),v=he(u.location)===he(On(g)),y=o||v?l.replace:l.push;y(g)}});return or!==Fe?d.ref=t||i:d.innerRef=i,m.createElement(r,d)})});if(process.env.NODE_ENV!=="production"){var qc=E.oneOfType([E.string,E.object,E.func]),Zc=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);$e.displayName="Link",$e.propTypes={innerRef:Zc,onClick:E.func,replace:E.bool,target:E.string,to:qc.isRequired}}var ss=function(t){return t},Tt=m.forwardRef;typeof Tt>"u"&&(Tt=ss);function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r}).join(" ")}var ao=Tt(function(e,t){var n=e["aria-current"],r=n===void 0?"page":n,o=e.activeClassName,s=o===void 0?"active":o,i=e.activeStyle,a=e.className,u=e.exact,l=e.isActive,c=e.location,f=e.sensitive,d=e.strict,h=e.style,g=e.to,v=e.innerRef,y=qe(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.createElement(We.Consumer,null,function(S){S||(process.env.NODE_ENV!=="production"?ve(!1,"You should not use <NavLink> outside a <Router>"):ve(!1));var R=c||S.location,j=On(Cn(g,R),R),T=j.pathname,x=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),D=x?nr(R.pathname,{path:x,exact:u,sensitive:f,strict:d}):null,k=!!(l?l(D,R):D),_=typeof a=="function"?a(k):a,z=typeof h=="function"?h(k):h;k&&(_=Kc(_,s),z=ce({},z,i));var B=ce({"aria-current":k&&r||null,className:_,style:z,to:j},y);return ss!==Tt?B.ref=t||v:B.innerRef=v,m.createElement($e,B)})});if(process.env.NODE_ENV!=="production"){ao.displayName="NavLink";var Gc=E.oneOf(["page","step","location","date","time","true","false"]);ao.propTypes=ce({},$e.propTypes,{"aria-current":Gc,activeClassName:E.string,activeStyle:E.object,className:E.oneOfType([E.string,E.func]),exact:E.bool,isActive:E.func,location:E.object,sensitive:E.bool,strict:E.bool,style:E.oneOfType([E.object,E.func])})}const Jc=m.forwardRef(({className:e,onClick:t=()=>{},name:n="",to:r="",params:o={},children:s,...i},a)=>{const u=ka(),l=Ze();if(!u)return null;let c="";const f={onClick:t,className:oe(e,"humany-route-link"),to:c,innerRef:a,...i,ref:null};if(n){if(!(u.routes||[]).find(v=>v.name===n))return process.env.NODE_ENV!=="production"&&ue.warn(`Unable to create route. No route named "${n}" exist.`),p.jsx($e,{...f,onClick:v=>{t(v),v.preventDefault(),process.env.NODE_ENV!=="production"&&ue.warn(`Unable to navigate. No route named "${n}" exist.`)},children:s});const g=Object.keys(o).reduce((v,y)=>{const S=o[y];if(Array.isArray(S)){if(S.length===0)return v;v[y]=S.map(R=>typeof R=="string"?encodeURIComponent(R):R).join(",")}else v[y]=typeof S=="string"?encodeURIComponent(S):S;return v},{});try{c=u.generate(n,g||{})}catch{return p.jsx($e,{...f,ref:f.innerRef,children:s})}c&&u.settings.mode&&u.settings.mode===bn.browser&&c[0]!=="/"&&(c=`/${c}`)}else if(r&&u.history)c=u.history.createHref({hash:"",pathname:r,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&ue.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(u.settings&&u.settings.mode===bn.scopedHash){const d=l.get("$widget").name;c=Ga(c,d)}return f.as?p.jsx(Xc,{...f,as:f.as,children:s}):p.jsx($e,{...f,to:c,children:s})}),Xc=M.span``,sr=m.forwardRef(({className:e,disabled:t=!1,role:n="link",tabIndex:r=0,onClick:o=()=>{},onKeyDown:s=()=>{},title:i,as:a,href:u,children:l,target:c,routeName:f,params:d,...h},g)=>{const v={title:i,disabled:t,role:n,as:a,tabIndex:r,className:oe(e,"humany-link",[!!t,"humany-disabled"]),onClick:y=>{if(y.persist(),t){y.preventDefault();return}o(y)},onKeyDown:y=>{if(y.persist(),t){y.key!=="Tab"&&y.preventDefault();return}s(y)}};return f?p.jsx(Qc,{name:f,params:d,...v,...Ee(h),ref:g,children:l}):p.jsx(eu,{href:u,target:c,...v,...Ee(h),ref:g,children:l})}),Qc=M(Jc)`
246
+ ${e=>e.disabled?`
247
+ pointer-events: none;
248
+ opacity: .7;
249
+ `:"cursor: pointer;"}
250
+ `,eu=M.a`
251
+ ${e=>e.disabled?`
252
+ pointer-events: none;
253
+ opacity: .7;
254
+ `:"cursor: pointer;"}
255
+ `,is=({visible:e,duration:t=500,children:n,onClick:r=()=>{},...o})=>{const s=m.useRef(),i=m.useCallback(a=>{a.target===s.current&&r(a)},[r]);return p.jsx(ta,{in:e,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:t,children:p.jsx(Fn,{children:p.jsx(tu,{className:"humany-overlay",duration:t,ref:s,onClick:i,...o,children:n})})})},tu=M.div`
256
+ background: rgba(0, 0, 0, 0.6);
257
+ min-width: 100%;
258
+ min-height: 100%;
259
+ position: fixed;
260
+ top: 0;
261
+ bottom: 0;
262
+ right: 0;
263
+ left: 0;
264
+ display: flex;
265
+ justify-content: center;
266
+ align-items: center;
267
+ z-index: 7;
268
+
269
+ transition: ${e=>e.duration}ms;
270
+ opacity: 0;
271
+
272
+ &.humany-overlay-transition-enter {
273
+ opacity: 0.1;
274
+ }
275
+ &.humany-overlay-transition-enter-active,
276
+ &.humany-overlay-transition-enter-done,
277
+ &.humany-overlay-transition-exit {
278
+ opacity: 1;
279
+ }
280
+
281
+ &.humany-overlay-transition-exit-active,
282
+ &.humany-overlay-transition-exit-done {
283
+ opacity: 0;
284
+ }
285
+ `,nu=Oo`
286
+ 100% {
287
+ transform: rotate(360deg);
288
+ }
289
+ `,ru=Oo`
290
+ 0% {
291
+ stroke-dasharray: 1, 200;
292
+ stroke-dashoffset: 0;
293
+ }
294
+ 50% {
295
+ stroke-dasharray: 89, 200;
296
+ stroke-dashoffset: -35px;
297
+ }
298
+ 100% {
299
+ stroke-dasharray: 89, 200;
300
+ stroke-dashoffset: -124px;
301
+ }
302
+ `,ou=M.svg`
303
+ animation: ${nu} 2s linear infinite;
304
+ height: 100%;
305
+ transform-origin: center center;
306
+ width: 100%;
307
+ position: absolute;
308
+ top: 0;
309
+ bottom: 0;
310
+ left: 0;
311
+ right: 0;
312
+ margin: auto;
313
+ transition: 200ms ease-out opacity;
314
+ `,su=M.div`
315
+ position: absolute;
316
+ top: 0;
317
+ bottom: 0;
318
+ left: 0;
319
+ right: 0;
320
+ height: 100%;
321
+ width: 100%;
322
+ pointer-events: ${e=>e["data-loading"]?"all":"none"};
323
+ display: flex;
324
+ flex-direction: column;
325
+ justify-content: center;
326
+ transition: 200ms ease-out opacity;
327
+ box-sizing: border-box;
328
+ overflow: hidden;
329
+ svg {
330
+ opacity: ${e=>e["data-loading"]?"1":"0"};
331
+ }
332
+ `,iu=M.div`
333
+ position: relative;
334
+ margin: 0 auto;
335
+ width: 100px;
336
+ &:before {
337
+ content: '';
338
+ display: block;
339
+ padding-top: 100%;
340
+ }
341
+ `,au=M.circle`
342
+ stroke-dasharray: 1, 200;
343
+ stroke-dashoffset: 0;
344
+ animation: ${ru} 1.5s ease-in-out infinite;
345
+ stroke-linecap: round;
346
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
347
+ stroke-width: 2px;
348
+ `,cu=({className:e,loading:t=!1})=>p.jsx(su,{className:oe("humany-loader",e),"data-loading":t,children:p.jsx(iu,{className:"humany-spinner",children:p.jsx(ou,{viewBox:"25 25 50 50",children:p.jsx(au,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),uu=({zoomState:e,image:t,changeZoom:n,...r})=>{var g;const o=m.useRef(null),[s,i]=m.useState(!1),[a,u]=m.useState(!1),{width:l,height:c,...f}=r.style||{},d=m.useCallback(()=>{const v=o.current;if(v){const y=window.innerWidth/v.naturalWidth,S=window.innerHeight/v.naturalHeight,R=Math.min(y,S);return S>=1&&y>=1?1:R}return 1},[s,t.src]),h=m.useMemo(()=>{const v=o.current;if(v&&s){if(!a){u(!0);const y=d();n(y)}return v.naturalWidth>=v.naturalHeight?[`${e*v.naturalWidth}px`,"auto"]:["auto",`${e*v.naturalHeight}px`]}return null},[e,o,s,t.src]);return m.useEffect(()=>(i(!1),function(){u(!1)}),[t.src]),p.jsxs(p.Fragment,{children:[p.jsx(lu,{loading:!s}),p.jsx(fu,{onLoad:()=>{i(!0)},ref:o,imageSize:h,draggable:"false",...r,alt:((g=r.alt)==null?void 0:g.toString())||"",style:f,src:t.src,loaded:s}),p.jsx(du,{})]})},lu=M(cu)`
349
+ svg circle {
350
+ stroke: #ffffff;
351
+ }
352
+ `,fu=M.img`
353
+ transform: none;
354
+
355
+ ${e=>e.imageSize&&de`
356
+ width: ${e.imageSize[0]};
357
+ height: ${e.imageSize[1]};
358
+ display: inline-block;
359
+ `}
360
+ vertical-align: middle;
361
+ position: relative;
362
+ ${e=>!e.loaded&&"display:none;"}
363
+ `,du=M.div`
364
+ height: 100%;
365
+ display: inline-block;
366
+ vertical-align: middle;
367
+ `,pu=()=>{const e=m.useRef(),[t,n]=m.useState(!0),r=m.useCallback(()=>(t||n(!0),e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(!1)},3e3),()=>{e.current&&clearTimeout(e.current)}),[t,e]);return[t,r]},hu=({attrs:e,htmlBody:t})=>{var w;const n=et("Escape"),r=et("ArrowLeft"),o=et("ArrowRight"),[s,i]=m.useState(1),[a,u]=m.useState({top:0,left:0,x:0,y:0}),[l,c]=m.useState(!1),[f,d]=pu(),[h,g]=m.useState(null),[v,y]=m.useState(null),S=m.useRef(null),R=m.useRef(null),j=m.useRef(null),T=m.useRef(null),x=m.useRef(null),[D,k]=m.useState(null);m.useEffect(()=>{n&&g(null)},[n]),m.useEffect(()=>{i(1)},[h]),m.useEffect(()=>{var L,$;if(h===null||R.current===null)return;const C=R.current.firstElementChild,O=(L=j.current)==null?void 0:L.querySelector(".nav-left"),N=($=j.current)==null?void 0:$.querySelector(".nav-right");if(v==="Right")b&&N?N.focus():I&&O&&O.focus();else if(v==="Left")I&&O?O.focus():b&&N&&N.focus();else{if(!C)return;C.focus()}},[h,R,j,v]),m.useEffect(()=>{if(r){if(I)return ae()}else if(o&&b)return X()},[r,o]),m.useEffect(()=>{var O,N;const C=((N=(O=x.current)==null?void 0:O.style)==null?void 0:N.float)||"";(C==="left"||C==="right")&&k(C)},[]);const _=m.useMemo(()=>{const C=document.createElement("div");C.innerHTML=t||"";const O=C.getElementsByTagName("img");return Array.from(O).reduce((L,$)=>{const A=$.getAttribute("src");if(A){const V={src:A};L.push(V)}return L},[])},[t]),z=m.useCallback(()=>{const{src:C}=e;if(C){const O=_.findIndex((N,L)=>N.src===C);g(O)}},[_,e]),B=m.useCallback(C=>{g(null)},[]),G=m.useCallback(C=>{i(C?s+s*.25:s-s*.25)},[i,s]),q=m.useCallback(()=>{if(h!==null){const{src:C}=_[h];C&&window.open(C,"_self")}},[_,h]),ne=m.useCallback(C=>{const O=T.current;O&&(u({top:O.scrollTop,left:O.scrollLeft,x:C.clientX,y:C.clientY}),c(!0))},[T]),Q=m.useCallback(C=>{const O=T.current;if(O&&l){const N=C.clientX-a.x,L=C.clientY-a.y;O.scrollTop=a.top-L,O.scrollLeft=a.left-N}},[l,a]),te=C=>{C.preventDefault(),c(!1)},ee=m.useMemo(()=>{if(T.current){const C=T.current.getElementsByTagName("img");if(C&&C.length){const O=C[0];return O.width>window.innerWidth||O.height>window.innerHeight}}return!1},[T,s]),ae=()=>{h!==null&&(y("Left"),g(h-1))},X=()=>{h!==null&&(y("Right"),g(h+1))},I=h!==null&&h>0&&_.length>1,b=h!==null&&_.length-1>h;return p.jsxs(p.Fragment,{children:[p.jsx(is,{visible:h!==null,onClick:B,children:p.jsxs(Eu,{onMouseDown:()=>d(),onMouseMove:()=>d(),onTouchStart:()=>d(),onKeyDown:()=>d(),children:[p.jsx(Cu,{show:f.toString(),children:p.jsx(yu,{ref:R,buttons:[{id:"download",onClick:q,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),p.jsx(Su,{scrolling:l.toString(),isDraggable:ee.toString(),ref:T,onMouseMove:Q,onMouseDown:ne,onMouseUp:te,children:h!==null&&p.jsx(uu,{changeZoom:C=>{i(C)},zoomState:s,...e,style:{...e.style||{},float:"none"},image:_[h]})}),p.jsx(xu,{ref:j,show:f.toString(),buttons:[{id:"previous",onClick:ae,icon:"caret-left",circle:!0,show:I,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:X,icon:"caret-right",circle:!0,show:b,className:"nav-right",ariaLabel:"Navigate to next image"}]}),p.jsxs(Ou,{show:f.toString(),children:[p.jsx(bu,{buttons:[{id:"zoom-out",onClick:()=>G(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>G(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),p.jsxs(wu,{variant:"span",children:[Math.trunc(s*100),"%"]})]})]})}),p.jsx(mu,{ref:S,onClick:z,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),z())},alignment:D,tabIndex:0,children:p.jsx(Nu,{...e,alt:((w=e.alt)==null?void 0:w.toString())||"",ref:x})})]})},ir=m.forwardRef(({show:e="true",buttons:t,className:n},r)=>p.jsx(vu,{ref:r,show:e,className:oe("humany-button-set",n),children:t.map(({id:o,circle:s=!1,show:i=!0,ariaLabel:a,onClick:u,icon:l,className:c},f)=>p.jsx(gu,{circle:s.toString(),onClick:u,tabIndex:i?void 0:-1,show:i.toString(),icon:l,className:c,"aria-label":a,children:p.jsx(Vt,{size:24,symbol:{type:"Svg",content:l}})},o+f.toString()))})),as=M.div`
368
+ transition: opacity 0.3s ease 0s;
369
+ z-index: 5;
370
+ ${e=>e.show==="true"?"opacity: 1;":de`
371
+ opacity: 0;
372
+ pointer-events: none;
373
+ `}
374
+ `,mu=M(sr)`
375
+ display: inline-block !important;
376
+
377
+ ${e=>(e.alignment==="right"||e.alignment==="left")&&de`
378
+ float: ${e.alignment};
379
+ `}
380
+ `,vu=M(as)`
381
+ position: fixed;
382
+ display: flex;
383
+ gap: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
384
+ `,Sn="39px",gu=M(Mt)`
385
+ width: ${Sn};
386
+ height: ${Sn};
387
+ display: flex;
388
+ justify-content: center;
389
+ align-items: center;
390
+
391
+ ${e=>e.icon==="caret-left"&&de`
392
+ svg {
393
+ position: relative;
394
+ left: -2px;
395
+ }
396
+ `}
397
+
398
+ ${e=>{var t;return e.circle==="true"?de`
399
+ background-color: #ffffff;
400
+ border-radius: 50%;
401
+
402
+ svg {
403
+ path,
404
+ line {
405
+ stroke: ${(t=e.theme.colors)==null?void 0:t.text};
406
+ }
407
+ }
408
+
409
+ &:focus-visible {
410
+ ${st(e)}
411
+ outline-color: #ffffff;
412
+ background-color: transparent;
413
+
414
+ svg {
415
+ path,
416
+ line {
417
+ stroke: #ffffff;
418
+ }
419
+ }
420
+ }
421
+ `:de`
422
+ svg {
423
+ path,
424
+ line {
425
+ stroke: #ffffff;
426
+ }
427
+ }
428
+ &:focus {
429
+ outline-color: #ffffff;
430
+ }
431
+ &:focus-visible {
432
+ ${st(e)}
433
+ }
434
+ `}}
435
+
436
+ ${e=>e.show==="true"?de`
437
+ opacity: 0.8;
438
+ transition: opacity 0.3s ease 0s;
439
+ &:hover {
440
+ opacity: 1;
441
+ }
442
+ `:de`
443
+ opacity: 0;
444
+ pointer-events: none;
445
+ `}
446
+ `,yu=M(ir)`
447
+ top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
448
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
449
+ `,bu=M(ir)`
450
+ bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
451
+ width: 100%;
452
+ align-items: center;
453
+ justify-content: center;
454
+ `,xu=M(ir)`
455
+ display: block;
456
+ button {
457
+ position: fixed;
458
+ top: calc(50% - calc(${Sn} / 2));
459
+ &:first-child {
460
+ left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
461
+ }
462
+ &:last-child {
463
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
464
+ }
465
+ }
466
+ `,wu=M(Yn)`
467
+ position: fixed;
468
+ bottom: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
469
+ right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
470
+ color: #ffffff;
471
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
472
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
473
+ `,cs=M(as)`
474
+ position: absolute;
475
+ width: 100vw;
476
+ height: 88px;
477
+ left: 0px;
478
+ z-index: 5;
479
+ `,Eu=M.div`
480
+ width: 100%;
481
+ `,Cu=M(cs)`
482
+ top: 0px;
483
+ background-image: linear-gradient(
484
+ to bottom,
485
+ rgb(34, 34, 34, 0.8),
486
+ rgba(34, 34, 34, 0)
487
+ );
488
+ `,Ou=M(cs)`
489
+ bottom: 0px;
490
+ background-image: linear-gradient(
491
+ to top,
492
+ rgb(34, 34, 34, 0.8),
493
+ rgba(34, 34, 34, 0)
494
+ );
495
+ `,Su=M.div`
496
+ width: 100%;
497
+ height: 100vh;
498
+ overflow: auto;
499
+ text-align: center;
500
+ vertical-align: middle;
501
+ white-space: nowrap;
502
+ justify-content: center;
503
+ cursor: ${e=>e.isDraggable==="true"?e.scrolling==="true"?"grabbing":"grab":"auto"};
504
+ `,Nu=M.img`
505
+ cursor: pointer;
506
+ `,ku=m.forwardRef(({className:e,children:t,trigger:n,onOverlayClick:r=()=>{},close:o=!1,...s},i)=>{const[a,u]=ja(),[l,c]=Ta(!0),f=m.useRef(),d=m.useRef(ct()),h=et("Escape");m.useEffect(()=>{(h||o)&&u(!1)},[h,o]),m.useEffect(()=>{a&&f.current&&f.current.focus()},[a,f.current]),Wn("router:changed",()=>{u(!1)});const g=m.useCallback(y=>{u(!1),r(y)},[r,u]);m.useImperativeHandle(i,()=>({close(){u(!1)}}));const v=m.useCallback(()=>Ho(d.current,()=>{u(!1)}),[d.current]);return p.jsxs(p.Fragment,{children:[p.jsx(is,{visible:a,onClick:g,children:p.jsxs(Tu,{className:oe(e,"humany-modal",`humany-modal-${d.current}`),css:l,tabIndex:-1,...s,ref:c,children:[p.jsx(Bo,{onClick:()=>u(!1),tabIndex:0,ref:f,children:p.jsx(Vt,{symbol:{type:"Svg",content:"close"}})}),t]})}),m.cloneElement(n,{onClick:y=>{u(),v()}})]})}),Tu=M.div`
507
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
508
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
509
+ position: relative;
510
+ max-width: 50%;
511
+ min-width: 200px;
512
+ padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
513
+ ${e=>zo(e)}
514
+ ${e=>e.css&&e.css}
515
+ outline: none;
516
+ `;M(ku)`
517
+ display: block;
518
+
519
+ span {
520
+ display: block;
521
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
522
+
523
+ &:first-of-type:not(:only-of-type) {
524
+ font-weight: 700;
525
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
526
+ }
527
+ }
528
+ `;M(Mt)`
529
+ display: inline-block;
530
+ min-width: 50px;
531
+ ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
532
+ ${e=>e.theme.borderRadius&&`border-radius: ${e.theme.borderRadius};`}
533
+ color: #FFFFFF;
534
+ background-color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
535
+ border: 1px solid ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
536
+
537
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
538
+
539
+ &:focus {
540
+ background-color: transparent;
541
+ }
542
+
543
+ &:focus-visible {
544
+ ${st}
545
+ }
546
+ `;M(Mt)`
547
+ display: inline-block;
548
+ min-width: 50px;
549
+ ${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.small} ${(n=e.theme.sizes)==null?void 0:n.normal};`}}
550
+ ${e=>e.theme.borderRadius&&`border-radius: ${e.theme.borderRadius};`}
551
+ background-color: transparent;
552
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
553
+ border: 1px solid ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
554
+
555
+ &:focus-visible {
556
+ ${st};
557
+ }
558
+ `;M.div`
559
+ display: flex;
560
+ flex-wrap: wrap;
561
+ `;M.div`
562
+ ${e=>ko(e)("h2",de`
563
+ padding: 0;
564
+ margin: 0;
565
+ color: gray;
566
+ font-size: 7em;
567
+ `)}
568
+ `;M.div`
569
+ margin-left: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
570
+
571
+ ${e=>{var t;return ko(e)("h3",de`
572
+ text-transform: uppercase;
573
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.normal};
574
+ `)}}
575
+
576
+ a {
577
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.link}};
578
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
579
+ }
580
+ `;M.div`
581
+ margin-top: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
582
+ min-width: 100%;
583
+
584
+ span {
585
+ font-weight: bold;
586
+ }
587
+ `;m.forwardRef(({className:e,description:t,text:n,children:r,...o},s)=>p.jsxs(sr,{className:oe(e,"humany-text-link"),...o,ref:s,children:[r,p.jsx(Un,{children:n}),t?p.jsx(Wo,{html:t,className:"humany-description"}):null]}));M.div`
588
+ display: flex;
589
+ align-items: center;
590
+ `;M.div`
591
+ color: #ffffff;
592
+ background: #161616;
593
+ border-radius: ${e=>e.theme.borderRadius};
594
+ padding: calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2);
595
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
596
+ font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
597
+ position: absolute;
598
+ z-index: 10;
599
+
600
+ a {
601
+ color: ${e=>e.color?e.color:"inherit"};
602
+ text-decoration: none;
603
+ }
604
+
605
+ i,
606
+ svg {
607
+ margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
608
+ }
609
+
610
+ ${e=>{let t="";return e.y>0?t+=`top: calc(2px + ${e.y||"0"}px);`:t+="bottom: 2px;",e.x>0?t+=`right: calc(2px + ${e.x||"0"}px);`:t+="left: 2px;",t}};
611
+ `;const Ru=m.forwardRef(({className:e,children:t,onClick:n=()=>{},widgetName:r,activationOptions:o,...s},i)=>{const a=Ze(),u=()=>{const{implementation:f}=a.get("$widget");return f.widgets.get(r)};m.useEffect(()=>{const f=u();return f==null||f.activate(o).then(()=>f.invoke("attach")),()=>{f==null||f.deactivate()}},[r]);const l=f=>{const d=u(),h=f.currentTarget;if(d){const g=()=>{d.invoke("renderState").then(v=>v===Mo.open?d.invoke("close"):d.invoke("open")).then(()=>{d.events.subscribeOnce("widget:area-rendered",(v,y)=>{a.get("widgetDOMElement")&&d.events.dispatch("widget:modal-opened",{name:d.name,ref:h})})})};d.state===$o.Deactivated?d.activate(o).then(()=>d.invoke("attach")).then(g):g()}},c=f=>{f.key==="Enter"&&(f.preventDefault(),l(f))};return p.jsx(sr,{className:oe(e,"humany-widget-link"),onKeyDown:c,onClick:f=>{n(f),l(f)},...s,ref:i,children:t})});m.forwardRef(({portalId:e="humany-widget-overlay-portal",className:t,children:n},r)=>{const o=Ze(),s=m.useMemo(()=>{if(!o)return null;const i=o.get("widgetDOMElement");return!i||!i.childElementCount?null:i.children[0]},[o]);return s?p.jsx(Fn,{elementId:e,parent:s,children:p.jsx(ju,{className:oe("humany-widget-overlay-outlet",t),ref:r,children:n})}):null});const ju=M.div`
612
+ background-color: #ffffff;
613
+ position: absolute;
614
+ top: 0;
615
+ left: 0;
616
+ bottom: 0;
617
+ right: 0;
618
+ z-index: 10;
619
+ width: 100%;
620
+ height: 100%;
621
+ `,Pu=(e,t,n,r,o)=>e.getAsync("componentResolver").then(s=>(s.registerComponent(t,m.lazy(()=>n)),Ea(e,t,r||(()=>{}),t,o))),_u=e=>Pu(e,"ace-widget",Promise.resolve().then(()=>require("./ace-widget-d371acf6.js")));exports.AceWidgetComponent=_u;exports.ComponentPropertyContext=la;