@web-site-utilities/feedback 0.0.6 → 0.0.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.
@@ -1,5 +1,5 @@
1
- var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no(){if(wn)return ct;wn=1;var e=to;return ct.createRoot=e.createRoot,ct.hydrateRoot=e.hydrateRoot,ct}var ro=no(),H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},H.apply(this,arguments)};function ut(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var k="-ms-",Ye="-moz-",C="-webkit-",xn="comm",dt="rule",zt="decl",oo="@import",Cn="@keyframes",io="@layer",An=Math.abs,Bt=String.fromCharCode,Ut=Object.assign;function ao(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function _n(e){return e.trim()}function le(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,n){return e.replace(t,n)}function ft(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function ie(e){return e.length}function In(e){return e.length}function qe(e,t){return t.push(e),e}function so(e,t){return e.map(t).join("")}function kn(e,t){return e.filter(function(n){return!le(n,t)})}var mt=1,ke=1,Pn=0,Z=0,L=0,Pe="";function ht(e,t,n,r,o,a,l,d){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:mt,column:ke,length:l,return:"",siblings:d}}function he(e,t){return Ut(ht("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Oe(e){for(;e.root;)e=he(e.root,{children:[e]});qe(e,e.siblings)}function lo(){return L}function co(){return L=Z>0?z(Pe,--Z):0,ke--,L===10&&(ke=1,mt--),L}function J(){return L=Z<Pn?z(Pe,Z++):0,ke++,L===10&&(ke=1,mt++),L}function ve(){return z(Pe,Z)}function pt(){return Z}function gt(e,t){return Ie(Pe,e,t)}function Wt(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 uo(e){return mt=ke=1,Pn=ie(Pe=e),Z=0,[]}function fo(e){return Pe="",e}function Ht(e){return _n(gt(Z-1,Vt(e===91?e+2:e===40?e+1:e)))}function mo(e){for(;(L=ve())&&L<33;)J();return Wt(e)>2||Wt(L)>3?"":" "}function ho(e,t){for(;--t&&J()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return gt(e,pt()+(t<6&&ve()==32&&J()==32))}function Vt(e){for(;J();)switch(L){case e:return Z;case 34:case 39:e!==34&&e!==39&&Vt(L);break;case 40:e===41&&Vt(e);break;case 92:J();break}return Z}function po(e,t){for(;J()&&e+L!==57;)if(e+L===84&&ve()===47)break;return"/*"+gt(t,Z-1)+"*"+Bt(e===47?e:J())}function go(e){for(;!Wt(ve());)J();return gt(e,Z)}function bo(e){return fo(bt("",null,null,null,[""],e=uo(e),0,[0],e))}function bt(e,t,n,r,o,a,l,d,u){for(var m=0,p=0,T=l,w=0,E=0,A=0,D=1,q=1,M=1,O=0,_="",b=o,P=a,x=r,y=_;q;)switch(A=O,O=J()){case 40:if(A!=108&&z(y,T-1)==58){ft(y+=g(Ht(O),"&","&\f"),"&\f",An(m?d[m-1]:0))!=-1&&(M=-1);break}case 34:case 39:case 91:y+=Ht(O);break;case 9:case 10:case 13:case 32:y+=mo(A);break;case 92:y+=ho(pt()-1,7);continue;case 47:switch(ve()){case 42:case 47:qe(yo(po(J(),pt()),t,n,u),u);break;default:y+="/"}break;case 123*D:d[m++]=ie(y)*M;case 125*D:case 59:case 0:switch(O){case 0:case 125:q=0;case 59+p:M==-1&&(y=g(y,/\f/g,"")),E>0&&ie(y)-T&&qe(E>32?Nn(y+";",r,n,T-1,u):Nn(g(y," ","")+";",r,n,T-2,u),u);break;case 59:y+=";";default:if(qe(x=On(y,t,n,m,p,o,d,_,b=[],P=[],T,a),a),O===123)if(p===0)bt(y,t,x,x,b,a,T,d,P);else switch(w===99&&z(y,3)===110?100:w){case 100:case 108:case 109:case 115:bt(e,x,x,r&&qe(On(e,x,x,0,0,o,d,_,o,b=[],T,P),P),o,P,T,d,r?b:P);break;default:bt(y,x,x,x,[""],P,0,d,P)}}m=p=E=0,D=M=1,_=y="",T=l;break;case 58:T=1+ie(y),E=A;default:if(D<1){if(O==123)--D;else if(O==125&&D++==0&&co()==125)continue}switch(y+=Bt(O),O*D){case 38:M=p>0?1:(y+="\f",-1);break;case 44:d[m++]=(ie(y)-1)*M,M=1;break;case 64:ve()===45&&(y+=Ht(J())),w=ve(),p=T=ie(_=y+=go(pt())),O++;break;case 45:A===45&&ie(y)==2&&(D=0)}}return a}function On(e,t,n,r,o,a,l,d,u,m,p,T){for(var w=o-1,E=o===0?a:[""],A=In(E),D=0,q=0,M=0;D<r;++D)for(var O=0,_=Ie(e,w+1,w=An(q=l[D])),b=e;O<A;++O)(b=_n(q>0?E[O]+" "+_:g(_,/&\f/g,E[O])))&&(u[M++]=b);return ht(e,t,n,o===0?dt:d,u,m,p,T)}function yo(e,t,n,r){return ht(e,t,n,xn,Bt(lo()),Ie(e,2,-2),0,r)}function Nn(e,t,n,r,o){return ht(e,t,n,zt,Ie(e,0,r),Ie(e,r+1,-1),r,o)}function $n(e,t,n){switch(ao(e,t)){case 5103:return C+"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 C+e+e;case 4789:return Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+Ye+e+k+e+e;case 5936:switch(z(e,t+11)){case 114:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+k+e+e;case 6165:return C+e+k+"flex-"+e+e;case 5187:return C+e+g(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return C+e+k+"flex-item-"+g(e,/flex-|-self/g,"")+(le(e,/flex-|baseline/)?"":k+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return C+e+k+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+k+g(e,"shrink","negative")+e;case 5292:return C+e+k+g(e,"basis","preferred-size")+e;case 6060:return C+"box-"+g(e,"-grow","")+C+e+k+g(e,"grow","positive")+e;case 4554:return C+g(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!le(e,/flex-|baseline/))return k+"grid-column-align"+Ie(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,le(r.props,/grid-\w+-end/)})?~ft(e+(n=n[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~ft(n,"span",0)?le(n,/\d+/):+le(n,/\d+/)-+le(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return le(r.props,/grid-\w+-start/)})?e:k+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,C+"$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(ie(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+Ye+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?$n(g(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,l,d,u,m){return k+o+":"+a+m+(l?k+o+"-span:"+(d?u:+u-+a)+m:"")+e});case 4949:if(z(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(z(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+e;case 100:return g(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function yt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function vo(e,t,n,r){switch(e.type){case io:if(e.children.length)break;case oo:case zt:return e.return=e.return||e.value;case xn:return"";case Cn:return e.return=e.value+"{"+yt(e.children,r)+"}";case dt:if(!ie(e.value=e.props.join(",")))return""}return ie(n=yt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Eo(e){var t=In(e);return function(n,r,o,a){for(var l="",d=0;d<t;d++)l+=e[d](n,r,o,a)||"";return l}}function So(e){return function(t){t.root||(t=t.return)&&e(t)}}function To(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zt:e.return=$n(e.value,e.length,n);return;case Cn:return yt([he(e,{value:g(e.value,"@","@"+C)})],r);case dt:if(e.length)return so(n=e.props,function(o){switch(le(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Oe(he(e,{props:[g(o,/:(read-\w+)/,":"+Ye+"$1")]})),Oe(he(e,{props:[o]})),Ut(e,{props:kn(n,r)});break;case"::placeholder":Oe(he(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Oe(he(e,{props:[g(o,/:(plac\w+)/,":"+Ye+"$1")]})),Oe(he(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Oe(he(e,{props:[o]})),Ut(e,{props:kn(n,r)});break}return""})}}var wo={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},Ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dn="active",Mn="data-styled-version",vt="6.1.19",Gt=`/*!sc*/
2
- `,Et=typeof window<"u"&&typeof document<"u",xo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),St=Object.freeze([]),$e=Object.freeze({});function Co(e,t,n){return n===void 0&&(n=$e),e.theme!==n.theme&&e.theme||t||n.theme}var Ln=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ao=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_o=/(^-|-$)/g;function Fn(e){return e.replace(Ao,"-").replace(_o,"")}var Io=/(a)(d)/gi,Tt=52,Rn=function(e){return String.fromCharCode(e+(e>25?39:97))};function jt(e){var t,n="";for(t=Math.abs(e);t>Tt;t=t/Tt|0)n=Rn(t%Tt)+n;return(Rn(t%Tt)+n).replace(Io,"$1-$2")}var Yt,zn=5381,De=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Bn=function(e){return De(zn,e)};function ko(e){return jt(Bn(e)>>>0)}function Po(e){return e.displayName||e.name||"Component"}function qt(e){return typeof e=="string"&&!0}var Un=typeof Symbol=="function"&&Symbol.for,Wn=Un?Symbol.for("react.memo"):60115,Oo=Un?Symbol.for("react.forward_ref"):60112,No={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Do=((Yt={})[Oo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yt[Wn]=Hn,Yt);function Vn(e){return("type"in(t=e)&&t.type.$$typeof)===Wn?Hn:"$$typeof"in e?Do[e.$$typeof]:No;var t}var Mo=Object.defineProperty,Lo=Object.getOwnPropertyNames,Gn=Object.getOwnPropertySymbols,Fo=Object.getOwnPropertyDescriptor,Ro=Object.getPrototypeOf,jn=Object.prototype;function Yn(e,t,n){if(typeof t!="string"){if(jn){var r=Ro(t);r&&r!==jn&&Yn(e,r,n)}var o=Lo(t);Gn&&(o=o.concat(Gn(t)));for(var a=Vn(e),l=Vn(t),d=0;d<o.length;++d){var u=o[d];if(!(u in $o||n&&n[u]||l&&u in l||a&&u in a)){var m=Fo(t,u);try{Mo(e,u,m)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function Kt(e){return typeof e=="object"&&"styledComponentId"in e}function Se(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ke(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xt(e,t,n){if(n===void 0&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Xt(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=Xt(e[r],t[r]);return e}function Zt(e,t){Object.defineProperty(e,"toString",{value:t})}function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var zo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw Te(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=o;l<a;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,n.length);l<u;l++)this.tag.insertRule(d,n[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,l=o;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(Gt);return n},e})(),wt=new Map,xt=new Map,Ct=1,At=function(e){if(wt.has(e))return wt.get(e);for(;xt.has(Ct);)Ct++;var t=Ct++;return wt.set(e,t),xt.set(t,e),t},Bo=function(e,t){Ct=t+1,wt.set(e,t),xt.set(t,e)},Uo="style[".concat(Ne,"][").concat(Mn,'="').concat(vt,'"]'),Wo=new RegExp("^".concat(Ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ho=function(e,t,n){for(var r,o=n.split(","),a=0,l=o.length;a<l;a++)(r=o[a])&&e.registerName(t,r)},Vo=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Gt),o=[],a=0,l=r.length;a<l;a++){var d=r[a].trim();if(d){var u=d.match(Wo);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Bo(p,m),Ho(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kn=function(e){for(var t=document.querySelectorAll(Uo),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ne)!==Dn&&(Vo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Go(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ne,"]")));return u[u.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(Ne,Dn),r.setAttribute(Mn,vt);var l=Go();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},jo=(function(){function e(t){this.element=Xn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var l=r[o];if(l.ownerNode===n)return l}throw Te(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Yo=(function(){function e(t){this.element=Xn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),qo=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Zn=Et,Ko={isServer:!Et,useCSSOMInjection:!xo},Qn=(function(){function e(t,n,r){t===void 0&&(t=$e),n===void 0&&(n={});var o=this;this.options=H(H({},Ko),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Et&&Zn&&(Zn=!1,Kn(this)),Zt(this,function(){return(function(a){for(var l=a.getTag(),d=l.length,u="",m=function(T){var w=(function(M){return xt.get(M)})(T);if(w===void 0)return"continue";var E=a.names.get(w),A=l.getGroup(T);if(E===void 0||!E.size||A.length===0)return"continue";var D="".concat(Ne,".g").concat(T,'[id="').concat(w,'"]'),q="";E!==void 0&&E.forEach(function(M){M.length>0&&(q+="".concat(M,","))}),u+="".concat(A).concat(D,'{content:"').concat(q,'"}').concat(Gt)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return At(t)},e.prototype.rehydrate=function(){!this.server&&Et&&Kn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(H(H({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new qo(o):r?new jo(o):new Yo(o)})(this.options),new zo(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(At(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(At(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(At(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xo=/&/g,Zo=/^\s*\/\/.*$/gm;function Jn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Jn(n.children,t)),n})}function Qo(e){var t,n,r,o=$e,a=o.options,l=a===void 0?$e:a,d=o.plugins,u=d===void 0?St:d,m=function(w,E,A){return A.startsWith(n)&&A.endsWith(n)&&A.replaceAll(n,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===dt&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(Xo,n).replace(r,m))}),l.prefix&&p.push(To),p.push(vo);var T=function(w,E,A,D){E===void 0&&(E=""),A===void 0&&(A=""),D===void 0&&(D="&"),t=D,n=E,r=new RegExp("\\".concat(n,"\\b"),"g");var q=w.replace(Zo,""),M=bo(A||E?"".concat(A," ").concat(E," { ").concat(q," }"):q);l.namespace&&(M=Jn(M,l.namespace));var O=[];return yt(M,Eo(p.concat(So(function(_){return O.push(_)})))),O};return T.hash=u.length?u.reduce(function(w,E){return E.name||Te(15),De(w,E.name)},zn).toString():"",T}var Jo=new Qn,Qt=Qo(),er=s.createContext({shouldForwardProp:void 0,styleSheet:Jo,stylis:Qt});er.Consumer,s.createContext(void 0);function tr(){return s.useContext(er)}var ei=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=Qt);var l=r.name+a.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Zt(this,function(){throw Te(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Qt),this.name+t.hash},e})(),ti=function(e){return e>="A"&&e<="Z"};function nr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ti(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var rr=function(e){return e==null||e===!1||e===""},or=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!rr(a)&&(Array.isArray(a)&&a.isCss||Ee(a)?r.push("".concat(nr(o),":"),a,";"):Ke(a)?r.push.apply(r,ut(ut(["".concat(o," {")],or(a),!1),["}"],!1)):r.push("".concat(nr(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function we(e,t,n,r){if(rr(e))return[];if(Kt(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return we(o,t,n,r)}var a;return e instanceof ei?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?or(e):Array.isArray(e)?Array.prototype.concat.apply(St,e.map(function(l){return we(l,t,n,r)})):[e.toString()]}function ni(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ee(n)&&!Kt(n))return!1}return!0}var ri=Bn(vt),oi=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&ni(t),this.componentId=n,this.baseHash=De(ri,n),this.baseStyle=r,Qn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=Se(o,this.staticRulesId);else{var a=qn(we(this.rules,t,n,r)),l=jt(De(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var d=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,d)}o=Se(o,l),this.staticRulesId=l}else{for(var u=De(this.baseHash,r.hash),m="",p=0;p<this.rules.length;p++){var T=this.rules[p];if(typeof T=="string")m+=T;else if(T){var w=qn(we(T,t,n,r));u=De(u,w+p),m+=w}}if(m){var E=jt(u>>>0);n.hasNameForId(this.componentId,E)||n.insertRules(this.componentId,E,r(m,".".concat(E),void 0,this.componentId)),o=Se(o,E)}}return o},e})(),_t=s.createContext(void 0);_t.Consumer;function ii(e){var t=s.useContext(_t),n=s.useMemo(function(){return(function(r,o){if(!r)throw Te(14);if(Ee(r)){var a=r(o);return a}if(Array.isArray(r)||typeof r!="object")throw Te(8);return o?H(H({},o),r):r})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(_t.Provider,{value:n},e.children):null}var Jt={};function ai(e,t,n){var r=Kt(e),o=e,a=!qt(e),l=t.attrs,d=l===void 0?St:l,u=t.componentId,m=u===void 0?(function(b,P){var x=typeof b!="string"?"sc":Fn(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(ko(vt+x+Jt[x]));return P?"".concat(P,"-").concat(y):y})(t.displayName,t.parentComponentId):u,p=t.displayName,T=p===void 0?(function(b){return qt(b)?"styled.".concat(b):"Styled(".concat(Po(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Fn(t.displayName),"-").concat(t.componentId):t.componentId||m,E=r&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(r&&o.shouldForwardProp){var D=o.shouldForwardProp;if(t.shouldForwardProp){var q=t.shouldForwardProp;A=function(b,P){return D(b,P)&&q(b,P)}}else A=D}var M=new oi(n,w,r?o.componentStyle:void 0);function O(b,P){return(function(x,y,pe){var Re=x.attrs,dn=x.componentStyle,U=x.defaultProps,nt=x.foldedComponentIds,rt=x.styledComponentId,ot=x.target,fn=s.useContext(_t),mn=tr(),it=x.shouldForwardProp||mn.shouldForwardProp,at=Co(y,fn,U)||$e,te=(function(I,re,ge){for(var be,oe=H(H({},re),{className:void 0,theme:ge}),Be=0;Be<I.length;Be+=1){var Ce=Ee(be=I[Be])?be(oe):be;for(var K in Ce)oe[K]=K==="className"?Se(oe[K],Ce[K]):K==="style"?H(H({},oe[K]),Ce[K]):Ce[K]}return re.className&&(oe.className=Se(oe.className,re.className)),oe})(Re,y,at),xe=te.as||ot,N={};for(var ne in te)te[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&te.theme===at||(ne==="forwardedAs"?N.as=te.forwardedAs:it&&!it(ne,xe)||(N[ne]=te[ne]));var F=(function(I,re){var ge=tr(),be=I.generateAndInjectStyles(re,ge.styleSheet,ge.stylis);return be})(dn,te),ze=Se(nt,rt);return F&&(ze+=" "+F),te.className&&(ze+=" "+te.className),N[qt(xe)&&!Ln.has(xe)?"class":"className"]=ze,pe&&(N.ref=pe),s.createElement(xe,N)})(_,b,P)}O.displayName=T;var _=s.forwardRef(O);return _.attrs=E,_.componentStyle=M,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=r?Se(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=r?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?(function(P){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var pe=0,Re=x;pe<Re.length;pe++)Xt(P,Re[pe],!0);return P})({},o.defaultProps,b):b}}),Zt(_,function(){return".".concat(_.styledComponentId)}),a&&Yn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function ir(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ar=function(e){return Object.assign(e,{isCss:!0})};function si(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ee(e)||Ke(e))return ar(we(ir(St,ut([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?we(r):ar(we(ir(r,t)))}function en(e,t,n){if(n===void 0&&(n=$e),!t)throw Te(1,t);var r=function(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,si.apply(void 0,ut([o],a,!1)))};return r.attrs=function(o){return en(e,t,H(H({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return en(e,t,H(H({},n),o))},r}var sr=function(e){return en(ai,e)},S=sr;Ln.forEach(function(e){S[e]=sr(e)});const Me={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},li={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Me},lr=s.createContext({...Me,...li}),ci=S.div`
1
+ var SiteUtilsFeedback=(function(he,s,so){"use strict";var ct={},wr;function lo(){if(wr)return ct;wr=1;var e=so;return ct.createRoot=e.createRoot,ct.hydrateRoot=e.hydrateRoot,ct}var co=lo(),H=function(){return H=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},H.apply(this,arguments)};function ut(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var k="-ms-",Ye="-moz-",C="-webkit-",Tr="comm",dt="rule",zt="decl",uo="@import",xr="@keyframes",fo="@layer",Cr=Math.abs,Bt=String.fromCharCode,Ut=Object.assign;function mo(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Ar(e){return e.trim()}function ce(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function ft(e,t,r){return e.indexOf(t,r)}function z(e,t){return e.charCodeAt(t)|0}function ke(e,t,r){return e.slice(t,r)}function ae(e){return e.length}function _r(e){return e.length}function qe(e,t){return t.push(e),e}function ho(e,t){return e.map(t).join("")}function Ir(e,t){return e.filter(function(r){return!ce(r,t)})}var mt=1,Pe=1,kr=0,Z=0,L=0,Oe="";function ht(e,t,r,n,o,a,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:mt,column:Pe,length:l,return:"",siblings:d}}function pe(e,t){return Ut(ht("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=pe(e.root,{children:[e]});qe(e,e.siblings)}function po(){return L}function go(){return L=Z>0?z(Oe,--Z):0,Pe--,L===10&&(Pe=1,mt--),L}function J(){return L=Z<kr?z(Oe,Z++):0,Pe++,L===10&&(Pe=1,mt++),L}function ve(){return z(Oe,Z)}function pt(){return Z}function gt(e,t){return ke(Oe,e,t)}function Wt(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 bo(e){return mt=Pe=1,kr=ae(Oe=e),Z=0,[]}function yo(e){return Oe="",e}function Ht(e){return Ar(gt(Z-1,Vt(e===91?e+2:e===40?e+1:e)))}function vo(e){for(;(L=ve())&&L<33;)J();return Wt(e)>2||Wt(L)>3?"":" "}function Eo(e,t){for(;--t&&J()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return gt(e,pt()+(t<6&&ve()==32&&J()==32))}function Vt(e){for(;J();)switch(L){case e:return Z;case 34:case 39:e!==34&&e!==39&&Vt(L);break;case 40:e===41&&Vt(e);break;case 92:J();break}return Z}function So(e,t){for(;J()&&e+L!==57;)if(e+L===84&&ve()===47)break;return"/*"+gt(t,Z-1)+"*"+Bt(e===47?e:J())}function wo(e){for(;!Wt(ve());)J();return gt(e,Z)}function To(e){return yo(bt("",null,null,null,[""],e=bo(e),0,[0],e))}function bt(e,t,r,n,o,a,l,d,u){for(var m=0,p=0,w=l,T=0,S=0,A=0,D=1,q=1,M=1,O=0,_="",y=o,P=a,x=n,v=_;q;)switch(A=O,O=J()){case 40:if(A!=108&&z(v,w-1)==58){ft(v+=g(Ht(O),"&","&\f"),"&\f",Cr(m?d[m-1]:0))!=-1&&(M=-1);break}case 34:case 39:case 91:v+=Ht(O);break;case 9:case 10:case 13:case 32:v+=vo(A);break;case 92:v+=Eo(pt()-1,7);continue;case 47:switch(ve()){case 42:case 47:qe(xo(So(J(),pt()),t,r,u),u);break;default:v+="/"}break;case 123*D:d[m++]=ae(v)*M;case 125*D:case 59:case 0:switch(O){case 0:case 125:q=0;case 59+p:M==-1&&(v=g(v,/\f/g,"")),S>0&&ae(v)-w&&qe(S>32?Or(v+";",n,r,w-1,u):Or(g(v," ","")+";",n,r,w-2,u),u);break;case 59:v+=";";default:if(qe(x=Pr(v,t,r,m,p,o,d,_,y=[],P=[],w,a),a),O===123)if(p===0)bt(v,t,x,x,y,a,w,d,P);else switch(T===99&&z(v,3)===110?100:T){case 100:case 108:case 109:case 115:bt(e,x,x,n&&qe(Pr(e,x,x,0,0,o,d,_,o,y=[],w,P),P),o,P,w,d,n?y:P);break;default:bt(v,x,x,x,[""],P,0,d,P)}}m=p=S=0,D=M=1,_=v="",w=l;break;case 58:w=1+ae(v),S=A;default:if(D<1){if(O==123)--D;else if(O==125&&D++==0&&go()==125)continue}switch(v+=Bt(O),O*D){case 38:M=p>0?1:(v+="\f",-1);break;case 44:d[m++]=(ae(v)-1)*M,M=1;break;case 64:ve()===45&&(v+=Ht(J())),T=ve(),p=w=ae(_=v+=wo(pt())),O++;break;case 45:A===45&&ae(v)==2&&(D=0)}}return a}function Pr(e,t,r,n,o,a,l,d,u,m,p,w){for(var T=o-1,S=o===0?a:[""],A=_r(S),D=0,q=0,M=0;D<n;++D)for(var O=0,_=ke(e,T+1,T=Cr(q=l[D])),y=e;O<A;++O)(y=Ar(q>0?S[O]+" "+_:g(_,/&\f/g,S[O])))&&(u[M++]=y);return ht(e,t,r,o===0?dt:d,u,m,p,w)}function xo(e,t,r,n){return ht(e,t,r,Tr,Bt(po()),ke(e,2,-2),0,n)}function Or(e,t,r,n,o){return ht(e,t,r,zt,ke(e,0,n),ke(e,n+1,-1),n,o)}function Nr(e,t,r){switch(mo(e,t)){case 5103:return C+"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 C+e+e;case 4789:return Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+Ye+e+k+e+e;case 5936:switch(z(e,t+11)){case 114:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+k+e+e;case 6165:return C+e+k+"flex-"+e+e;case 5187:return C+e+g(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return C+e+k+"flex-item-"+g(e,/flex-|-self/g,"")+(ce(e,/flex-|baseline/)?"":k+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return C+e+k+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+k+g(e,"shrink","negative")+e;case 5292:return C+e+k+g(e,"basis","preferred-size")+e;case 6060:return C+"box-"+g(e,"-grow","")+C+e+k+g(e,"grow","positive")+e;case 4554:return C+g(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!ce(e,/flex-|baseline/))return k+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,ce(n.props,/grid-\w+-end/)})?~ft(e+(r=r[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~ft(r,"span",0)?ce(r,/\d+/):+ce(r,/\d+/)-+ce(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return ce(n.props,/grid-\w+-start/)})?e:k+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,C+"$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(ae(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+Ye+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch",0)?Nr(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,l,d,u,m){return k+o+":"+a+m+(l?k+o+"-span:"+(d?u:+u-+a)+m:"")+e});case 4949:if(z(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(z(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+e;case 100:return g(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function yt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Co(e,t,r,n){switch(e.type){case fo:if(e.children.length)break;case uo:case zt:return e.return=e.return||e.value;case Tr:return"";case xr:return e.return=e.value+"{"+yt(e.children,n)+"}";case dt:if(!ae(e.value=e.props.join(",")))return""}return ae(r=yt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ao(e){var t=_r(e);return function(r,n,o,a){for(var l="",d=0;d<t;d++)l+=e[d](r,n,o,a)||"";return l}}function _o(e){return function(t){t.root||(t=t.return)&&e(t)}}function Io(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case zt:e.return=Nr(e.value,e.length,r);return;case xr:return yt([pe(e,{value:g(e.value,"@","@"+C)})],n);case dt:if(e.length)return ho(r=e.props,function(o){switch(ce(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(pe(e,{props:[g(o,/:(read-\w+)/,":"+Ye+"$1")]})),Ne(pe(e,{props:[o]})),Ut(e,{props:Ir(r,n)});break;case"::placeholder":Ne(pe(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Ne(pe(e,{props:[g(o,/:(plac\w+)/,":"+Ye+"$1")]})),Ne(pe(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Ne(pe(e,{props:[o]})),Ut(e,{props:Ir(r,n)});break}return""})}}var ko={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},$e=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$r="active",Dr="data-styled-version",vt="6.1.19",Gt=`/*!sc*/
2
+ `,Et=typeof window<"u"&&typeof document<"u",Po=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),St=Object.freeze([]),De=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=De),e.theme!==r.theme&&e.theme||t||r.theme}var Mr=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),No=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$o=/(^-|-$)/g;function Lr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,wt=52,Fr=function(e){return String.fromCharCode(e+(e>25?39:97))};function jt(e){var t,r="";for(t=Math.abs(e);t>wt;t=t/wt|0)r=Fr(t%wt)+r;return(Fr(t%wt)+r).replace(Do,"$1-$2")}var Yt,Rr=5381,Me=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},zr=function(e){return Me(Rr,e)};function Mo(e){return jt(zr(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function qt(e){return typeof e=="string"&&!0}var Br=typeof Symbol=="function"&&Symbol.for,Ur=Br?Symbol.for("react.memo"):60115,Fo=Br?Symbol.for("react.forward_ref"):60112,Ro={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bo=((Yt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yt[Ur]=Wr,Yt);function Hr(e){return("type"in(t=e)&&t.type.$$typeof)===Ur?Wr:"$$typeof"in e?Bo[e.$$typeof]:Ro;var t}var Uo=Object.defineProperty,Wo=Object.getOwnPropertyNames,Vr=Object.getOwnPropertySymbols,Ho=Object.getOwnPropertyDescriptor,Vo=Object.getPrototypeOf,Gr=Object.prototype;function jr(e,t,r){if(typeof t!="string"){if(Gr){var n=Vo(t);n&&n!==Gr&&jr(e,n,r)}var o=Wo(t);Vr&&(o=o.concat(Vr(t)));for(var a=Hr(e),l=Hr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in zo||r&&r[u]||l&&u in l||a&&u in a)){var m=Ho(t,u);try{Uo(e,u,m)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function Kt(e){return typeof e=="object"&&"styledComponentId"in e}function Se(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Yr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ke(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xt(e,t,r){if(r===void 0&&(r=!1),!r&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Xt(e[n],t[n]);else if(Ke(t))for(var n in t)e[n]=Xt(e[n],t[n]);return e}function Zt(e,t){Object.defineProperty(e,"toString",{value:t})}function we(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Go=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw we(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var l=o;l<a;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,r.length);l<u;l++)this.tag.insertRule(d,r[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,l=o;l<a;l++)r+="".concat(this.tag.getRule(l)).concat(Gt);return r},e})(),Tt=new Map,xt=new Map,Ct=1,At=function(e){if(Tt.has(e))return Tt.get(e);for(;xt.has(Ct);)Ct++;var t=Ct++;return Tt.set(e,t),xt.set(t,e),t},jo=function(e,t){Ct=t+1,Tt.set(e,t),xt.set(t,e)},Yo="style[".concat($e,"][").concat(Dr,'="').concat(vt,'"]'),qo=new RegExp("^".concat($e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ko=function(e,t,r){for(var n,o=r.split(","),a=0,l=o.length;a<l;a++)(n=o[a])&&e.registerName(t,n)},Xo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Gt),o=[],a=0,l=n.length;a<l;a++){var d=n[a].trim();if(d){var u=d.match(qo);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(jo(p,m),Ko(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},qr=function(e){for(var t=document.querySelectorAll(Yo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute($e)!==$r&&(Xo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Zo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Kr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat($e,"]")));return u[u.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute($e,$r),n.setAttribute(Dr,vt);var l=Zo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,a),n},Qo=(function(){function e(t){this.element=Kr(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var l=n[o];if(l.ownerNode===r)return l}throw we(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),Jo=(function(){function e(t){this.element=Kr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),ei=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Xr=Et,ti={isServer:!Et,useCSSOMInjection:!Po},Zr=(function(){function e(t,r,n){t===void 0&&(t=De),r===void 0&&(r={});var o=this;this.options=H(H({},ti),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Et&&Xr&&(Xr=!1,qr(this)),Zt(this,function(){return(function(a){for(var l=a.getTag(),d=l.length,u="",m=function(w){var T=(function(M){return xt.get(M)})(w);if(T===void 0)return"continue";var S=a.names.get(T),A=l.getGroup(w);if(S===void 0||!S.size||A.length===0)return"continue";var D="".concat($e,".g").concat(w,'[id="').concat(T,'"]'),q="";S!==void 0&&S.forEach(function(M){M.length>0&&(q+="".concat(M,","))}),u+="".concat(A).concat(D,'{content:"').concat(q,'"}').concat(Gt)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return At(t)},e.prototype.rehydrate=function(){!this.server&&Et&&qr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(H(H({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new ei(o):n?new Qo(o):new Jo(o)})(this.options),new Go(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(At(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(At(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(At(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),ri=/&/g,ni=/^\s*\/\/.*$/gm;function Qr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Qr(r.children,t)),r})}function oi(e){var t,r,n,o=De,a=o.options,l=a===void 0?De:a,d=o.plugins,u=d===void 0?St:d,m=function(T,S,A){return A.startsWith(r)&&A.endsWith(r)&&A.replaceAll(r,"").length>0?".".concat(t):T},p=u.slice();p.push(function(T){T.type===dt&&T.value.includes("&")&&(T.props[0]=T.props[0].replace(ri,r).replace(n,m))}),l.prefix&&p.push(Io),p.push(Co);var w=function(T,S,A,D){S===void 0&&(S=""),A===void 0&&(A=""),D===void 0&&(D="&"),t=D,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var q=T.replace(ni,""),M=To(A||S?"".concat(A," ").concat(S," { ").concat(q," }"):q);l.namespace&&(M=Qr(M,l.namespace));var O=[];return yt(M,Ao(p.concat(_o(function(_){return O.push(_)})))),O};return w.hash=u.length?u.reduce(function(T,S){return S.name||we(15),Me(T,S.name)},Rr).toString():"",w}var ii=new Zr,Qt=oi(),Jr=s.createContext({shouldForwardProp:void 0,styleSheet:ii,stylis:Qt});Jr.Consumer,s.createContext(void 0);function en(){return s.useContext(Jr)}var ai=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Qt);var l=n.name+a.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,a(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Zt(this,function(){throw we(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Qt),this.name+t.hash},e})(),si=function(e){return e>="A"&&e<="Z"};function tn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;si(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var rn=function(e){return e==null||e===!1||e===""},nn=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!rn(a)&&(Array.isArray(a)&&a.isCss||Ee(a)?n.push("".concat(tn(o),":"),a,";"):Ke(a)?n.push.apply(n,ut(ut(["".concat(o," {")],nn(a),!1),["}"],!1)):n.push("".concat(tn(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ko||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Te(e,t,r,n){if(rn(e))return[];if(Kt(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return Te(o,t,r,n)}var a;return e instanceof ai?r?(e.inject(r,n),[e.getName(n)]):[e]:Ke(e)?nn(e):Array.isArray(e)?Array.prototype.concat.apply(St,e.map(function(l){return Te(l,t,r,n)})):[e.toString()]}function li(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ee(r)&&!Kt(r))return!1}return!0}var ci=zr(vt),ui=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&li(t),this.componentId=r,this.baseHash=Me(ci,r),this.baseStyle=n,Zr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Se(o,this.staticRulesId);else{var a=Yr(Te(this.rules,t,r,n)),l=jt(Me(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(a,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=Se(o,l),this.staticRulesId=l}else{for(var u=Me(this.baseHash,n.hash),m="",p=0;p<this.rules.length;p++){var w=this.rules[p];if(typeof w=="string")m+=w;else if(w){var T=Yr(Te(w,t,r,n));u=Me(u,T+p),m+=T}}if(m){var S=jt(u>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(m,".".concat(S),void 0,this.componentId)),o=Se(o,S)}}return o},e})(),_t=s.createContext(void 0);_t.Consumer;function di(e){var t=s.useContext(_t),r=s.useMemo(function(){return(function(n,o){if(!n)throw we(14);if(Ee(n)){var a=n(o);return a}if(Array.isArray(n)||typeof n!="object")throw we(8);return o?H(H({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(_t.Provider,{value:r},e.children):null}var Jt={};function fi(e,t,r){var n=Kt(e),o=e,a=!qt(e),l=t.attrs,d=l===void 0?St:l,u=t.componentId,m=u===void 0?(function(y,P){var x=typeof y!="string"?"sc":Lr(y);Jt[x]=(Jt[x]||0)+1;var v="".concat(x,"-").concat(Mo(vt+x+Jt[x]));return P?"".concat(P,"-").concat(v):v})(t.displayName,t.parentComponentId):u,p=t.displayName,w=p===void 0?(function(y){return qt(y)?"styled.".concat(y):"Styled(".concat(Lo(y),")")})(e):p,T=t.displayName&&t.componentId?"".concat(Lr(t.displayName),"-").concat(t.componentId):t.componentId||m,S=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var D=o.shouldForwardProp;if(t.shouldForwardProp){var q=t.shouldForwardProp;A=function(y,P){return D(y,P)&&q(y,P)}}else A=D}var M=new ui(r,T,n?o.componentStyle:void 0);function O(y,P){return(function(x,v,ge){var Re=x.attrs,ur=x.componentStyle,U=x.defaultProps,rt=x.foldedComponentIds,nt=x.styledComponentId,ot=x.target,dr=s.useContext(_t),fr=en(),it=x.shouldForwardProp||fr.shouldForwardProp,at=Oo(v,dr,U)||De,re=(function(I,oe,be){for(var ye,ie=H(H({},oe),{className:void 0,theme:be}),Be=0;Be<I.length;Be+=1){var Ae=Ee(ye=I[Be])?ye(ie):ye;for(var K in Ae)ie[K]=K==="className"?Se(ie[K],Ae[K]):K==="style"?H(H({},ie[K]),Ae[K]):Ae[K]}return oe.className&&(ie.className=Se(ie.className,oe.className)),ie})(Re,v,at),Ce=re.as||ot,N={};for(var ne in re)re[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&re.theme===at||(ne==="forwardedAs"?N.as=re.forwardedAs:it&&!it(ne,Ce)||(N[ne]=re[ne]));var F=(function(I,oe){var be=en(),ye=I.generateAndInjectStyles(oe,be.styleSheet,be.stylis);return ye})(ur,re),ze=Se(rt,nt);return F&&(ze+=" "+F),re.className&&(ze+=" "+re.className),N[qt(Ce)&&!Mr.has(Ce)?"class":"className"]=ze,ge&&(N.ref=ge),s.createElement(Ce,N)})(_,y,P)}O.displayName=w;var _=s.forwardRef(O);return _.attrs=S,_.componentStyle=M,_.displayName=w,_.shouldForwardProp=A,_.foldedComponentIds=n?Se(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=T,_.target=n?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=n?(function(P){for(var x=[],v=1;v<arguments.length;v++)x[v-1]=arguments[v];for(var ge=0,Re=x;ge<Re.length;ge++)Xt(P,Re[ge],!0);return P})({},o.defaultProps,y):y}}),Zt(_,function(){return".".concat(_.styledComponentId)}),a&&jr(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function on(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var an=function(e){return Object.assign(e,{isCss:!0})};function mi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ee(e)||Ke(e))return an(Te(on(St,ut([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Te(n):an(Te(on(n,t)))}function er(e,t,r){if(r===void 0&&(r=De),!t)throw we(1,t);var n=function(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,r,mi.apply(void 0,ut([o],a,!1)))};return n.attrs=function(o){return er(e,t,H(H({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return er(e,t,H(H({},r),o))},n}var sn=function(e){return er(fi,e)},b=sn;Mr.forEach(function(e){b[e]=sn(e)});const Le={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},hi={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Le},ln=s.createContext({...Le,...hi}),pi=b.div`
3
3
  font-family:
4
4
  ui-sans-serif,
5
5
  system-ui,
@@ -50,7 +50,7 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
50
50
  --depth: ${e=>e.$theme.depth};
51
51
  --spacing: ${e=>e.$theme.spacing};
52
52
  --all-fields-size: ${e=>e.$theme.allFieldsSize};
53
- `,tn=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??Me),s.createElement(ii,{theme:e.theme??Me,children:s.createElement(ci,{$theme:e.theme??Me,children:s.createElement(lr.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??Me},children:e.children})})})},cr=()=>s.useContext(lr),ce=e=>{const{getDefaultVariantOrSelected:t,...n}=cr(),r=t();return n[e??r]},ur=e=>{const{getDefaultVariantOrSelected:t,...n}=cr(),r=t(),o=e?`${e}Content`:`${r}Content`;return n[o]},ui=()=>{const e="http://localhost:4000/external",t=async n=>{const r=await n;if(!r.ok)switch(r.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await n).json()};return{post:async(n,r,o)=>{var a;try{return t(fetch(`${e}${n}`,{method:"POST",body:JSON.stringify(r),signal:((a=o==null?void 0:o.abortController)==null?void 0:a.signal)??null,headers:{"Content-Type":"application/json",...(o==null?void 0:o.headers)??{}}}))}catch(l){throw console.log(l),l}},get:async(n,r)=>{var o;try{return t(fetch(`${e}${n}`,{method:"GET",signal:((o=r==null?void 0:r.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(r==null?void 0:r.headers)??{}}}))}catch(a){throw console.log(a),a}}}},dr={meta:{name:"asd"},steps:[{title:"Overall altitude",meta:{name:"overall"},fields:[{type:"matrix",meta:{name:"asd",fieldKey:"recommendationChance"},validations:{required:!0},label:{default:"How likely are you to recommend this company to a friend or colleague?"},max:10},{type:"radio-group",meta:{name:"asd",fieldKey:"satisfactionLevel"},label:{default:"Overall, how satisfied or dissatisfied are you with our company?"},validations:{required:!0},options:[{label:"Very satisfied",id:"1"},{label:"Somewhat satisfied",id:"2"},{label:"Neither satisfied nor dissatisfied",id:"3"},{label:"Somewhat dissatisfied",id:"4"},{label:"Very dissatisfied",id:"5"}]},{type:"rating",icon:"star2",max:5,meta:{name:"asd",fieldKey:"satisfactionRating"},label:{default:"What is your general satisfaction?"},validations:{required:!0}}]},{meta:{name:"products"},title:"Product questions",fields:[{type:"checkbox-group",meta:{name:"asd",fieldKey:"productDescribeWords"},label:{default:"Which of the following words best describes your experience with our products?"},validations:{required:!0},options:[{label:"Reliable",id:"1"},{label:"High quality",id:"2"},{label:"Useful",id:"3"},{label:"Unique",id:"4"},{label:"Value for money",id:"5"},{label:"Overpriced",id:"6"},{label:"Ineffective",id:"7"},{label:"Poor quality",id:"8"},{label:"Unreliable",id:"9"}]},{type:"radio-group",meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"How well products meet your expectations?"},validations:{required:!0},options:[{label:"Extremely well",id:"1"},{label:"Well",id:"2"},{label:"Somewhat well",id:"3"},{label:"Not well",id:"4"},{label:"Not at all well",id:"5"}]},{type:"matrix",meta:{name:"asd",fieldKey:"productQuality"},label:{default:"How would you rate the quality of our products?"},validations:{required:!0},max:10,minText:"Poor quality",maxText:"Good quality"}]},{meta:{name:"final-questions"},title:"Final questions",fields:[{type:"range-slide",defaultValue:77,meta:{name:"asd",fieldKey:"productsImpressionLevel"},label:{default:"What is your overall impression level of our products?"}},{type:"rating",icon:"heart",max:5,meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"Do you like our service and products?"},validations:{required:!0}},{type:"select",meta:{name:"asd",fieldKey:"fromWhereDidYouHearAboutUs"},label:{default:"From where did you hear about us?"},validations:{required:!0},options:[{label:"Facebook",id:"1"},{label:"Instagram",id:"2"},{label:"Google search",id:"3"},{label:"AD",id:"4"},{label:"Other",id:"5"}]},{type:"textarea",meta:{name:"asd",fieldKey:"lastComments"},validations:{required:!1},label:{values:[{conditions:[{fieldName:"satisfactionRating",lessThan:4}],value:"How can we improve our service? (optional)"}],default:"What you would like to tell us about your experience with this company? (optional)?"}}]}]},di=(e,t)=>new Promise(n=>{n({id:"",domainId:"",attributes:{theme:{},useSystemTheme:!0,variant:"primary"},popupForm:{meta:{name:"popupForm"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!",buttonText:"Feedback"},styles:{left:null,top:0,bottom:-20,right:0},form:dr},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:dr}})}),fi=e=>{const[t,n]=s.useState(),[r,o]=s.useState(!0),[a,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(n).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:r,error:a}},Le=S.button(e=>{const t=ce(),n=ur(),o=!e.$outlined?t:"#fff",a=e.$outlined?t:n,l=e.$outlined?a:o,d=`calc(${e.theme.sizeField} * 10)`;return{borderRadius:e.theme.radiusField,borderColor:e.disabled?"#cfcfcf":l,borderStyle:e.$dashed?"dashed":"solid",cursor:"pointer",boxShadow:"inset 0 0 20px 20px transparent",height:d,fontWeight:"600",opacity:e.disabled?.5:1,paddingInline:"1.2rem",transition:"all 0.2s ease-in-out",background:e.disabled?"#cfcfcf":o,borderWidth:e.theme.borderWidth,userSelect:e.disabled?"none":void 0,color:e.disabled?"#888888":a,"&:active":{transform:e.disabled?void 0:"scale(0.97)"},"&:hover":{opacity:e.disabled?void 0:.8,cursor:e.disabled?"auto":"pointer",boxShadow:e.disabled?void 0:"inset 0 0 20px 20px #00000017"},"@media (max-width: 900px)":{paddingInline:"0.5rem"},"@media (max-width: 700px)":{paddingInline:"0.7rem"},"@media (max-width: 400px)":{paddingInline:"0.7rem"}}}),mi=S.div`
53
+ `,tr=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??Le),s.createElement(di,{theme:e.theme??Le,children:s.createElement(pi,{$theme:e.theme??Le,children:s.createElement(ln.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??Le},children:e.children})})})},cn=()=>s.useContext(ln),se=e=>{const{getDefaultVariantOrSelected:t,...r}=cn(),n=t();return r[e??n]},un=e=>{const{getDefaultVariantOrSelected:t,...r}=cn(),n=t(),o=e?`${e}Content`:`${n}Content`;return r[o]},gi=()=>{const e="http://localhost:4000/external",t=async r=>{const n=await r;if(!n.ok)switch(n.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await r).json()};return{post:async(r,n,o)=>{var a;try{return t(fetch(`${e}${r}`,{method:"POST",body:JSON.stringify(n),signal:((a=o==null?void 0:o.abortController)==null?void 0:a.signal)??null,headers:{"Content-Type":"application/json",...(o==null?void 0:o.headers)??{}}}))}catch(l){throw console.log(l),l}},get:async(r,n)=>{var o;try{return t(fetch(`${e}${r}`,{method:"GET",signal:((o=n==null?void 0:n.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}}))}catch(a){throw console.log(a),a}}}},dn={meta:{name:"asd"},steps:[{title:"Overall altitude",meta:{name:"overall"},fields:[{type:"matrix",meta:{name:"asd",fieldKey:"recommendationChance"},validations:{required:!0},label:{default:"How likely are you to recommend this company to a friend or colleague?"},max:10},{type:"radio-group",meta:{name:"asd",fieldKey:"satisfactionLevel"},label:{default:"Overall, how satisfied or dissatisfied are you with our company?"},validations:{required:!0},options:[{label:"Very satisfied",id:"1"},{label:"Somewhat satisfied",id:"2"},{label:"Neither satisfied nor dissatisfied",id:"3"},{label:"Somewhat dissatisfied",id:"4"},{label:"Very dissatisfied",id:"5"}]},{type:"rating",icon:"star2",max:5,meta:{name:"asd",fieldKey:"satisfactionRating"},label:{default:"What is your general satisfaction?"},validations:{required:!0}}]},{meta:{name:"products"},title:"Product questions",fields:[{type:"checkbox-group",meta:{name:"asd",fieldKey:"productDescribeWords"},label:{default:"Which of the following words best describes your experience with our products?"},validations:{required:!0},options:[{label:"Reliable",id:"1"},{label:"High quality",id:"2"},{label:"Useful",id:"3"},{label:"Unique",id:"4"},{label:"Value for money",id:"5"},{label:"Overpriced",id:"6"},{label:"Ineffective",id:"7"},{label:"Poor quality",id:"8"},{label:"Unreliable",id:"9"}]},{type:"radio-group",meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"How well products meet your expectations?"},validations:{required:!0},options:[{label:"Extremely well",id:"1"},{label:"Well",id:"2"},{label:"Somewhat well",id:"3"},{label:"Not well",id:"4"},{label:"Not at all well",id:"5"}]},{type:"matrix",meta:{name:"asd",fieldKey:"productQuality"},label:{default:"How would you rate the quality of our products?"},validations:{required:!0},max:10,minText:"Poor quality",maxText:"Good quality"}]},{meta:{name:"final-questions"},title:"Final questions",fields:[{type:"range-slide",defaultValue:77,meta:{name:"asd",fieldKey:"productsImpressionLevel"},label:{default:"What is your overall impression level of our products?"}},{type:"rating",icon:"heart",max:5,meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"Do you like our service and products?"},validations:{required:!0}},{type:"select",meta:{name:"asd",fieldKey:"fromWhereDidYouHearAboutUs"},label:{default:"From where did you hear about us?"},validations:{required:!0},options:[{label:"Facebook",id:"1"},{label:"Instagram",id:"2"},{label:"Google search",id:"3"},{label:"AD",id:"4"},{label:"Other",id:"5"}]},{type:"textarea",meta:{name:"asd",fieldKey:"lastComments"},validations:{required:!1},label:{values:[{conditions:[{fieldName:"satisfactionRating",lessThan:4}],value:"How can we improve our service? (optional)"}],default:"What you would like to tell us about your experience with this company? (optional)?"}}]}]},bi=(e,t)=>new Promise(r=>{r({id:"",domainId:"",attributes:{theme:{},useSystemTheme:!0,variant:"primary"},popupForm:{meta:{name:"popupForm"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!",buttonText:"Feedback"},styles:{left:null,top:0,bottom:-20,right:0},form:dn},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:dn}})}),yi=e=>{const[t,r]=s.useState(),[n,o]=s.useState(!0),[a,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(r).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:n,error:a}},Fe=b.button(e=>{const t=se(),r=un(),o=!e.$outlined?t:"#fff",a=e.$outlined?t:r,l=e.$outlined?a:o,d=`calc(${e.theme.sizeField} * 10)`;return{borderRadius:e.theme.radiusField,borderColor:e.disabled?"#cfcfcf":l,borderStyle:e.$dashed?"dashed":"solid",cursor:"pointer",boxShadow:"inset 0 0 20px 20px transparent",height:d,fontWeight:"600",opacity:e.disabled?.5:1,paddingInline:"1.2rem",transition:"all 0.2s ease-in-out",background:e.disabled?"#cfcfcf":o,borderWidth:e.theme.borderWidth,userSelect:e.disabled?"none":void 0,color:e.disabled?"#888888":a,"&:active":{transform:e.disabled?void 0:"scale(0.97)"},"&:hover":{opacity:e.disabled?void 0:.8,cursor:e.disabled?"auto":"pointer",boxShadow:e.disabled?void 0:"inset 0 0 20px 20px #00000017"},"@media (max-width: 900px)":{paddingInline:"0.5rem"},"@media (max-width: 700px)":{paddingInline:"0.7rem"},"@media (max-width: 400px)":{paddingInline:"0.7rem"}}}),vi=b.div`
54
54
  visibility: ${e=>e.$isVisible&&e.$height?"visible":"hidden"};
55
55
  opacity: ${e=>e.$isVisible?1:0};
56
56
  display: flex;
@@ -69,7 +69,7 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
69
69
  height: ${e=>e.$isVisible?"auto":"0"};
70
70
  width: ${e=>e.$isVisible?"auto":"0"};
71
71
  }
72
- `,fr=e=>{const t=s.useRef(null);return s.useEffect(()=>{t.current&&e.onSetMaxHeight(t.current.clientHeight)},[t]),s.createElement(mi,{ref:t,$height:e.height,$isVisible:e.isVisible,children:e.children})},hi=S.ul`
72
+ `,fn=e=>{const t=s.useRef(null);return s.useEffect(()=>{t.current&&e.onSetMaxHeight(t.current.clientHeight)},[t]),s.createElement(vi,{ref:t,$height:e.height,$isVisible:e.isVisible,children:e.children})},Ei=b.ul`
73
73
  counter-reset: step;
74
74
  grid-auto-columns: 1fr;
75
75
  grid-auto-flow: column;
@@ -78,8 +78,8 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
78
78
  @media (max-width: 900px) {
79
79
  display: none;
80
80
  }
81
- `,pi=S.li(e=>{const t=ce(e.colorVariant),n=ur(e.colorVariant),r=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?n:"var(--color-base-content)";return{textAlign:"center","--step-bg":r,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),mr=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(hi,{children:[e.steps.map((t,n)=>s.createElement(pi,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=n,children:t.title}))]})),gi={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},bi=S.div(e=>({...gi[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),ae=e=>s.createElement(bi,{$variant:e.variant,$linear:e.linear,children:e.children}),yi=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},hr=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(m=>{const p=m.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:m.type,validations:m.validations},l.state={...l.state,[p]:yi(m.type)},{dataField:p,...m}):{...m,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[n,r]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&r(u=>({...u,[l]:d}))},[r]),a=s.useCallback(l=>l?n[l]:null,[n]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:n,setStateByKey:o,getStateByKey:a}},vi=ui(),Ei=(e,t)=>vi.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:pr,setPrototypeOf:gr,isFrozen:Si,getPrototypeOf:Ti,getOwnPropertyDescriptor:wi}=Object;let{freeze:G,seal:Q,create:br}=Object,{apply:nn,construct:rn}=typeof Reflect<"u"&&Reflect;G||(G=function(t){return t}),Q||(Q=function(t){return t}),nn||(nn=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return t.apply(n,o)}),rn||(rn=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const It=Y(Array.prototype.forEach),xi=Y(Array.prototype.lastIndexOf),yr=Y(Array.prototype.pop),Xe=Y(Array.prototype.push),Ci=Y(Array.prototype.splice),kt=Y(String.prototype.toLowerCase),on=Y(String.prototype.toString),an=Y(String.prototype.match),Ze=Y(String.prototype.replace),Ai=Y(String.prototype.indexOf),_i=Y(String.prototype.trim),ee=Y(Object.prototype.hasOwnProperty),j=Y(RegExp.prototype.test),Qe=Ii(TypeError);function Y(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return nn(e,t,r)}}function Ii(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rn(e,n)}}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;gr&&gr(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const a=n(o);a!==o&&(Si(t)||(t[r]=a),o=a)}e[o]=!0}return e}function ki(e){for(let t=0;t<e.length;t++)ee(e,t)||(e[t]=null);return e}function ue(e){const t=br(null);for(const[n,r]of pr(e))ee(e,n)&&(Array.isArray(r)?t[n]=ki(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=ue(r):t[n]=r);return t}function Je(e,t){for(;e!==null;){const r=wi(e,t);if(r){if(r.get)return Y(r.get);if(typeof r.value=="function")return Y(r.value)}e=Ti(e)}function n(){return null}return n}const vr=G(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sn=G(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ln=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pi=G(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),cn=G(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Oi=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Er=G(["#text"]),Sr=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),un=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tr=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ni=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$i=Q(/<%[\w\W]*|[\w\W]*%>/gm),Di=Q(/\$\{[\w\W]*/gm),Mi=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Li=Q(/^aria-[\-\w]+$/),wr=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fi=Q(/^(?:\w+script|data):/i),Ri=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xr=Q(/^html$/i),zi=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cr=Object.freeze({__proto__:null,ARIA_ATTR:Li,ATTR_WHITESPACE:Ri,CUSTOM_ELEMENT:zi,DATA_ATTR:Mi,DOCTYPE_NAME:xr,ERB_EXPR:$i,IS_ALLOWED_URI:wr,IS_SCRIPT_OR_DATA:Fi,MUSTACHE_EXPR:Ni,TMPLIT_EXPR:Di});const et={element:1,text:3,progressingInstruction:7,comment:8,document:9},Bi=function(){return typeof window>"u"?null:window},Ui=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ar=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _r(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bi();const t=h=>_r(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==et.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:E}=e,A=u.prototype,D=Je(A,"cloneNode"),q=Je(A,"remove"),M=Je(A,"nextSibling"),O=Je(A,"childNodes"),_=Je(A,"parentNode");if(typeof l=="function"){const h=n.createElement("template");h.content&&h.content.ownerDocument&&(n=h.content.ownerDocument)}let b,P="";const{implementation:x,createNodeIterator:y,createDocumentFragment:pe,getElementsByTagName:Re}=n,{importNode:dn}=r;let U=Ar();t.isSupported=typeof pr=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nt,ERB_EXPR:rt,TMPLIT_EXPR:ot,DATA_ATTR:fn,ARIA_ATTR:mn,IS_SCRIPT_OR_DATA:it,ATTR_WHITESPACE:at,CUSTOM_ELEMENT:te}=Cr;let{IS_ALLOWED_URI:xe}=Cr,N=null;const ne=v({},[...vr,...sn,...ln,...cn,...Er]);let F=null;const ze=v({},[...Sr,...un,...Tr,...Pt]);let I=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,ge=null,be=!0,oe=!0,Be=!1,Ce=!0,K=!1,Nt=!0,Ae=!1,hn=!1,pn=!1,Ue=!1,$t=!1,Dt=!1,Fr=!0,Rr=!1;const Ma="user-content-";let gn=!0,st=!1,We={},He=null;const zr=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Br=null;const Ur=v({},["audio","video","img","source","image","track"]);let bn=null;const Wr=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Ve=de,yn=!1,vn=null;const La=v({},[Mt,Lt,de],on);let Ft=v({},["mi","mo","mn","ms","mtext"]),Rt=v({},["annotation-xml"]);const Fa=v({},["title","style","font","a","script"]);let lt=null;const Ra=["application/xhtml+xml","text/html"],za="text/html";let B=null,Ge=null;const Ba=n.createElement("form"),Hr=function(i){return i instanceof RegExp||i instanceof Function},En=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===i)){if((!i||typeof i!="object")&&(i={}),i=ue(i),lt=Ra.indexOf(i.PARSER_MEDIA_TYPE)===-1?za:i.PARSER_MEDIA_TYPE,B=lt==="application/xhtml+xml"?on:kt,N=ee(i,"ALLOWED_TAGS")?v({},i.ALLOWED_TAGS,B):ne,F=ee(i,"ALLOWED_ATTR")?v({},i.ALLOWED_ATTR,B):ze,vn=ee(i,"ALLOWED_NAMESPACES")?v({},i.ALLOWED_NAMESPACES,on):La,bn=ee(i,"ADD_URI_SAFE_ATTR")?v(ue(Wr),i.ADD_URI_SAFE_ATTR,B):Wr,Br=ee(i,"ADD_DATA_URI_TAGS")?v(ue(Ur),i.ADD_DATA_URI_TAGS,B):Ur,He=ee(i,"FORBID_CONTENTS")?v({},i.FORBID_CONTENTS,B):zr,re=ee(i,"FORBID_TAGS")?v({},i.FORBID_TAGS,B):ue({}),ge=ee(i,"FORBID_ATTR")?v({},i.FORBID_ATTR,B):ue({}),We=ee(i,"USE_PROFILES")?i.USE_PROFILES:!1,be=i.ALLOW_ARIA_ATTR!==!1,oe=i.ALLOW_DATA_ATTR!==!1,Be=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,Nt=i.SAFE_FOR_XML!==!1,Ae=i.WHOLE_DOCUMENT||!1,Ue=i.RETURN_DOM||!1,$t=i.RETURN_DOM_FRAGMENT||!1,Dt=i.RETURN_TRUSTED_TYPE||!1,pn=i.FORCE_BODY||!1,Fr=i.SANITIZE_DOM!==!1,Rr=i.SANITIZE_NAMED_PROPS||!1,gn=i.KEEP_CONTENT!==!1,st=i.IN_PLACE||!1,xe=i.ALLOWED_URI_REGEXP||wr,Ve=i.NAMESPACE||de,Ft=i.MATHML_TEXT_INTEGRATION_POINTS||Ft,Rt=i.HTML_INTEGRATION_POINTS||Rt,I=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Hr(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Hr(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(oe=!1),$t&&(Ue=!0),We&&(N=v({},Er),F=[],We.html===!0&&(v(N,vr),v(F,Sr)),We.svg===!0&&(v(N,sn),v(F,un),v(F,Pt)),We.svgFilters===!0&&(v(N,ln),v(F,un),v(F,Pt)),We.mathMl===!0&&(v(N,cn),v(F,Tr),v(F,Pt))),i.ADD_TAGS&&(N===ne&&(N=ue(N)),v(N,i.ADD_TAGS,B)),i.ADD_ATTR&&(F===ze&&(F=ue(F)),v(F,i.ADD_ATTR,B)),i.ADD_URI_SAFE_ATTR&&v(bn,i.ADD_URI_SAFE_ATTR,B),i.FORBID_CONTENTS&&(He===zr&&(He=ue(He)),v(He,i.FORBID_CONTENTS,B)),gn&&(N["#text"]=!0),Ae&&v(N,["html","head","body"]),N.table&&(v(N,["tbody"]),delete re.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=i.TRUSTED_TYPES_POLICY,P=b.createHTML("")}else b===void 0&&(b=Ui(E,o)),b!==null&&typeof P=="string"&&(P=b.createHTML(""));G&&G(i),Ge=i}},Vr=v({},[...sn,...ln,...Pi]),Gr=v({},[...cn,...Oi]),Ua=function(i){let c=_(i);(!c||!c.tagName)&&(c={namespaceURI:Ve,tagName:"template"});const f=kt(i.tagName),$=kt(c.tagName);return vn[i.namespaceURI]?i.namespaceURI===Lt?c.namespaceURI===de?f==="svg":c.namespaceURI===Mt?f==="svg"&&($==="annotation-xml"||Ft[$]):!!Vr[f]:i.namespaceURI===Mt?c.namespaceURI===de?f==="math":c.namespaceURI===Lt?f==="math"&&Rt[$]:!!Gr[f]:i.namespaceURI===de?c.namespaceURI===Lt&&!Rt[$]||c.namespaceURI===Mt&&!Ft[$]?!1:!Gr[f]&&(Fa[f]||!Vr[f]):!!(lt==="application/xhtml+xml"&&vn[i.namespaceURI]):!1},se=function(i){Xe(t.removed,{element:i});try{_(i).removeChild(i)}catch{q(i)}},_e=function(i,c){try{Xe(t.removed,{attribute:c.getAttributeNode(i),from:c})}catch{Xe(t.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(Ue||$t)try{se(c)}catch{}else try{c.setAttribute(i,"")}catch{}},jr=function(i){let c=null,f=null;if(pn)i="<remove></remove>"+i;else{const R=an(i,/^[\r\n\t ]+/);f=R&&R[0]}lt==="application/xhtml+xml"&&Ve===de&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const $=b?b.createHTML(i):i;if(Ve===de)try{c=new w().parseFromString($,lt)}catch{}if(!c||!c.documentElement){c=x.createDocument(Ve,"template",null);try{c.documentElement.innerHTML=yn?P:$}catch{}}const V=c.body||c.documentElement;return i&&f&&V.insertBefore(n.createTextNode(f),V.childNodes[0]||null),Ve===de?Re.call(c,Ae?"html":"body")[0]:Ae?c.documentElement:V},Yr=function(i){return y.call(i.ownerDocument||i,i,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Sn=function(i){return i instanceof T&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},qr=function(i){return typeof d=="function"&&i instanceof d};function fe(h,i,c){It(h,f=>{f.call(t,i,c,Ge)})}const Kr=function(i){let c=null;if(fe(U.beforeSanitizeElements,i,null),Sn(i))return se(i),!0;const f=B(i.nodeName);if(fe(U.uponSanitizeElement,i,{tagName:f,allowedTags:N}),Nt&&i.hasChildNodes()&&!qr(i.firstElementChild)&&j(/<[/\w!]/g,i.innerHTML)&&j(/<[/\w!]/g,i.textContent)||i.nodeType===et.progressingInstruction||Nt&&i.nodeType===et.comment&&j(/<[/\w]/g,i.data))return se(i),!0;if(!N[f]||re[f]){if(!re[f]&&Zr(f)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(gn&&!He[f]){const $=_(i)||i.parentNode,V=O(i)||i.childNodes;if(V&&$){const R=V.length;for(let X=R-1;X>=0;--X){const me=D(V[X],!0);me.__removalCount=(i.__removalCount||0)+1,$.insertBefore(me,M(i))}}}return se(i),!0}return i instanceof u&&!Ua(i)||(f==="noscript"||f==="noembed"||f==="noframes")&&j(/<\/no(script|embed|frames)/i,i.innerHTML)?(se(i),!0):(K&&i.nodeType===et.text&&(c=i.textContent,It([nt,rt,ot],$=>{c=Ze(c,$," ")}),i.textContent!==c&&(Xe(t.removed,{element:i.cloneNode()}),i.textContent=c)),fe(U.afterSanitizeElements,i,null),!1)},Xr=function(i,c,f){if(Fr&&(c==="id"||c==="name")&&(f in n||f in Ba))return!1;if(!(oe&&!ge[c]&&j(fn,c))){if(!(be&&j(mn,c))){if(!F[c]||ge[c]){if(!(Zr(i)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,i))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!bn[c]){if(!j(xe,Ze(f,at,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&Ai(f,"data:")===0&&Br[i])){if(!(Be&&!j(it,Ze(f,at,"")))){if(f)return!1}}}}}}return!0},Zr=function(i){return i!=="annotation-xml"&&an(i,te)},Qr=function(i){fe(U.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||Sn(i))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let $=c.length;for(;$--;){const V=c[$],{name:R,namespaceURI:X,value:me}=V,je=B(R),Tn=me;let W=R==="value"?Tn:_i(Tn);if(f.attrName=je,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,fe(U.uponSanitizeAttribute,i,f),W=f.attrValue,Rr&&(je==="id"||je==="name")&&(_e(R,i),W=Ma+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){_e(R,i);continue}if(je==="attributename"&&an(W,"href")){_e(R,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){_e(R,i);continue}if(!Ce&&j(/\/>/i,W)){_e(R,i);continue}K&&It([nt,rt,ot],eo=>{W=Ze(W,eo," ")});const Jr=B(i.nodeName);if(!Xr(Jr,je,W)){_e(R,i);continue}if(b&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!X)switch(E.getAttributeType(Jr,je)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Tn)try{X?i.setAttributeNS(X,R,W):i.setAttribute(R,W),Sn(i)?se(i):yr(t.removed)}catch{_e(R,i)}}fe(U.afterSanitizeAttributes,i,null)},Wa=function h(i){let c=null;const f=Yr(i);for(fe(U.beforeSanitizeShadowDOM,i,null);c=f.nextNode();)fe(U.uponSanitizeShadowNode,c,null),Kr(c),Qr(c),c.content instanceof a&&h(c.content);fe(U.afterSanitizeShadowDOM,i,null)};return t.sanitize=function(h){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,$=null,V=null;if(yn=!h,yn&&(h="<!-->"),typeof h!="string"&&!qr(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!t.isSupported)return h;if(hn||En(i),t.removed=[],typeof h=="string"&&(st=!1),st){if(h.nodeName){const me=B(h.nodeName);if(!N[me]||re[me])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=jr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===et.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Ue&&!K&&!Ae&&h.indexOf("<")===-1)return b&&Dt?b.createHTML(h):h;if(c=jr(h),!c)return Ue?null:Dt?P:""}c&&pn&&se(c.firstChild);const R=Yr(st?h:c);for(;$=R.nextNode();)Kr($),Qr($),$.content instanceof a&&Wa($.content);if(st)return h;if(Ue){if($t)for(V=pe.call(c.ownerDocument);c.firstChild;)V.appendChild(c.firstChild);else V=c;return(F.shadowroot||F.shadowrootmode)&&(V=dn.call(r,V,!0)),V}let X=Ae?c.outerHTML:c.innerHTML;return Ae&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xr,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
82
- `+X),K&&It([nt,rt,ot],me=>{X=Ze(X,me," ")}),b&&Dt?b.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En(h),hn=!0},t.clearConfig=function(){Ge=null,hn=!1},t.isValidAttribute=function(h,i,c){Ge||En({});const f=B(h),$=B(i);return Xr(f,$,c)},t.addHook=function(h,i){typeof i=="function"&&Xe(U[h],i)},t.removeHook=function(h,i){if(i!==void 0){const c=xi(U[h],i);return c===-1?void 0:Ci(U[h],c,1)[0]}return yr(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=Ar()},t}var Wi=_r();const Hi=e=>e==null,tt=e=>!Hi(e),Vi=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,Ir=(e,t)=>t?Object.keys(t).map(o=>{const a=Vi(e[o],t[o].validations);return a?{field:o,error:a}:null},{}).filter(tt):[],kr=e=>{const[t,n]=s.useState(0),[r,o]=s.useState([]),a=s.useCallback(async()=>{try{await Ei({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:Wi.sanitize(document.getElementsByTagName("html")[0]??""),domainId:e.domainId,data:e.state,formType:e.formType,viewport:{first:document.body.clientWidth,second:document.body.clientHeight},browser:{productSub:navigator.productSub,vendor:navigator.vendor,pdfViewerEnabled:navigator.pdfViewerEnabled,maxTouchPoints:navigator.maxTouchPoints,hardwareConcurrency:navigator.hardwareConcurrency,cookieEnabled:navigator.cookieEnabled,appVersion:navigator.appVersion,platform:navigator.platform,userAgent:navigator.userAgent,language:navigator.language,onLine:navigator.onLine,webdriver:navigator.webdriver,deviceMemory:navigator.deviceMemory}})}catch(u){console.log(u)}},[e.state,e.formType]),l=s.useCallback(()=>{const u=Ir(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?n(m=>m+1):a())},[e.state,e.validationsPerStep,t,a]),d=s.useCallback(()=>{t!==0&&(o([]),n(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=Ir(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[r,e.state,t]),{step:t,errors:r,onContinue:l,onBack:d}},Gi=S.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Fe=({errors:e})=>{var t;return s.createElement(Gi,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},ji=S.input(({theme:e,colorVariant:t,selected:n})=>{const r=`calc(${e.sizeSelector} * 6);`,o=ce(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:r,border:`1px solid ${o}`,height:r,flexShrink:"0",padding:".25rem",transition:"background-color .2s,box-shadow .2s",display:"inline-block",position:"relative","&::before":{content:'""',opacity:"0",clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%)",width:"100%",height:"100%",boxShadow:"0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",backgroundColor:`${o}`,fontSize:"1rem",lineHeight:".75",transition:"clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",display:"block",rotate:"45deg",...n?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),Yi=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),qi=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),n=o=>{e.onSelect(e.value.includes(o)?e.value.filter(a=>a!==o):[...e.value,o])},r=e.value.includes(t);return s.createElement(Yi,{selected:r,children:[s.createElement(ji,{id:t,type:"checkbox",selected:r,colorVariant:e.colorVariant,onChange:()=>n(t),name:e.name}),s.createElement(ae,{children:e.label,linear:!0})]})},Ki=S.div`
81
+ `,Si=b.li(e=>{const t=se(e.colorVariant),r=un(e.colorVariant),n=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?r:"var(--color-base-content)";return{textAlign:"center","--step-bg":n,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),mn=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Ei,{children:[e.steps.map((t,r)=>s.createElement(Si,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),wi={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},Ti=b.div(e=>({...wi[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),ee=e=>s.createElement(Ti,{$variant:e.variant,$linear:e.linear,children:e.children}),xi=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},hn=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(m=>{const p=m.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:m.type,validations:m.validations},l.state={...l.state,[p]:xi(m.type)},{dataField:p,...m}):{...m,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[r,n]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&n(u=>({...u,[l]:d}))},[n]),a=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:a}},Ci=gi(),Ai=(e,t)=>Ci.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:pn,setPrototypeOf:gn,isFrozen:_i,getPrototypeOf:Ii,getOwnPropertyDescriptor:ki}=Object;let{freeze:G,seal:Q,create:bn}=Object,{apply:rr,construct:nr}=typeof Reflect<"u"&&Reflect;G||(G=function(t){return t}),Q||(Q=function(t){return t}),rr||(rr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return t.apply(r,o)}),nr||(nr=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const It=Y(Array.prototype.forEach),Pi=Y(Array.prototype.lastIndexOf),yn=Y(Array.prototype.pop),Xe=Y(Array.prototype.push),Oi=Y(Array.prototype.splice),kt=Y(String.prototype.toLowerCase),or=Y(String.prototype.toString),ir=Y(String.prototype.match),Ze=Y(String.prototype.replace),Ni=Y(String.prototype.indexOf),$i=Y(String.prototype.trim),te=Y(Object.prototype.hasOwnProperty),j=Y(RegExp.prototype.test),Qe=Di(TypeError);function Y(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return rr(e,t,n)}}function Di(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;gn&&gn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const a=r(o);a!==o&&(_i(t)||(t[n]=a),o=a)}e[o]=!0}return e}function Mi(e){for(let t=0;t<e.length;t++)te(e,t)||(e[t]=null);return e}function ue(e){const t=bn(null);for(const[r,n]of pn(e))te(e,r)&&(Array.isArray(n)?t[r]=Mi(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=ue(n):t[r]=n);return t}function Je(e,t){for(;e!==null;){const n=ki(e,t);if(n){if(n.get)return Y(n.get);if(typeof n.value=="function")return Y(n.value)}e=Ii(e)}function r(){return null}return r}const vn=G(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ar=G(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sr=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Li=G(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lr=G(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fi=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),En=G(["#text"]),Sn=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cr=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wn=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ri=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zi=Q(/<%[\w\W]*|[\w\W]*%>/gm),Bi=Q(/\$\{[\w\W]*/gm),Ui=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wi=Q(/^aria-[\-\w]+$/),Tn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hi=Q(/^(?:\w+script|data):/i),Vi=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xn=Q(/^html$/i),Gi=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cn=Object.freeze({__proto__:null,ARIA_ATTR:Wi,ATTR_WHITESPACE:Vi,CUSTOM_ELEMENT:Gi,DATA_ATTR:Ui,DOCTYPE_NAME:xn,ERB_EXPR:zi,IS_ALLOWED_URI:Tn,IS_SCRIPT_OR_DATA:Hi,MUSTACHE_EXPR:Ri,TMPLIT_EXPR:Bi});const et={element:1,text:3,progressingInstruction:7,comment:8,document:9},ji=function(){return typeof window>"u"?null:window},Yi=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},An=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ji();const t=h=>_n(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==et.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:w,DOMParser:T,trustedTypes:S}=e,A=u.prototype,D=Je(A,"cloneNode"),q=Je(A,"remove"),M=Je(A,"nextSibling"),O=Je(A,"childNodes"),_=Je(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let y,P="";const{implementation:x,createNodeIterator:v,createDocumentFragment:ge,getElementsByTagName:Re}=r,{importNode:ur}=n;let U=An();t.isSupported=typeof pn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:rt,ERB_EXPR:nt,TMPLIT_EXPR:ot,DATA_ATTR:dr,ARIA_ATTR:fr,IS_SCRIPT_OR_DATA:it,ATTR_WHITESPACE:at,CUSTOM_ELEMENT:re}=Cn;let{IS_ALLOWED_URI:Ce}=Cn,N=null;const ne=E({},[...vn,...ar,...sr,...lr,...En]);let F=null;const ze=E({},[...Sn,...cr,...wn,...Pt]);let I=Object.seal(bn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,be=null,ye=!0,ie=!0,Be=!1,Ae=!0,K=!1,Nt=!0,_e=!1,mr=!1,hr=!1,Ue=!1,$t=!1,Dt=!1,Hn=!0,Vn=!1;const za="user-content-";let pr=!0,st=!1,We={},He=null;const Gn=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jn=null;const Yn=E({},["audio","video","img","source","image","track"]);let gr=null;const qn=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Ve=de,br=!1,yr=null;const Ba=E({},[Mt,Lt,de],or);let Ft=E({},["mi","mo","mn","ms","mtext"]),Rt=E({},["annotation-xml"]);const Ua=E({},["title","style","font","a","script"]);let lt=null;const Wa=["application/xhtml+xml","text/html"],Ha="text/html";let B=null,Ge=null;const Va=r.createElement("form"),Kn=function(i){return i instanceof RegExp||i instanceof Function},vr=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===i)){if((!i||typeof i!="object")&&(i={}),i=ue(i),lt=Wa.indexOf(i.PARSER_MEDIA_TYPE)===-1?Ha:i.PARSER_MEDIA_TYPE,B=lt==="application/xhtml+xml"?or:kt,N=te(i,"ALLOWED_TAGS")?E({},i.ALLOWED_TAGS,B):ne,F=te(i,"ALLOWED_ATTR")?E({},i.ALLOWED_ATTR,B):ze,yr=te(i,"ALLOWED_NAMESPACES")?E({},i.ALLOWED_NAMESPACES,or):Ba,gr=te(i,"ADD_URI_SAFE_ATTR")?E(ue(qn),i.ADD_URI_SAFE_ATTR,B):qn,jn=te(i,"ADD_DATA_URI_TAGS")?E(ue(Yn),i.ADD_DATA_URI_TAGS,B):Yn,He=te(i,"FORBID_CONTENTS")?E({},i.FORBID_CONTENTS,B):Gn,oe=te(i,"FORBID_TAGS")?E({},i.FORBID_TAGS,B):ue({}),be=te(i,"FORBID_ATTR")?E({},i.FORBID_ATTR,B):ue({}),We=te(i,"USE_PROFILES")?i.USE_PROFILES:!1,ye=i.ALLOW_ARIA_ATTR!==!1,ie=i.ALLOW_DATA_ATTR!==!1,Be=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=i.SAFE_FOR_TEMPLATES||!1,Nt=i.SAFE_FOR_XML!==!1,_e=i.WHOLE_DOCUMENT||!1,Ue=i.RETURN_DOM||!1,$t=i.RETURN_DOM_FRAGMENT||!1,Dt=i.RETURN_TRUSTED_TYPE||!1,hr=i.FORCE_BODY||!1,Hn=i.SANITIZE_DOM!==!1,Vn=i.SANITIZE_NAMED_PROPS||!1,pr=i.KEEP_CONTENT!==!1,st=i.IN_PLACE||!1,Ce=i.ALLOWED_URI_REGEXP||Tn,Ve=i.NAMESPACE||de,Ft=i.MATHML_TEXT_INTEGRATION_POINTS||Ft,Rt=i.HTML_INTEGRATION_POINTS||Rt,I=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Kn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Kn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(ie=!1),$t&&(Ue=!0),We&&(N=E({},En),F=[],We.html===!0&&(E(N,vn),E(F,Sn)),We.svg===!0&&(E(N,ar),E(F,cr),E(F,Pt)),We.svgFilters===!0&&(E(N,sr),E(F,cr),E(F,Pt)),We.mathMl===!0&&(E(N,lr),E(F,wn),E(F,Pt))),i.ADD_TAGS&&(N===ne&&(N=ue(N)),E(N,i.ADD_TAGS,B)),i.ADD_ATTR&&(F===ze&&(F=ue(F)),E(F,i.ADD_ATTR,B)),i.ADD_URI_SAFE_ATTR&&E(gr,i.ADD_URI_SAFE_ATTR,B),i.FORBID_CONTENTS&&(He===Gn&&(He=ue(He)),E(He,i.FORBID_CONTENTS,B)),pr&&(N["#text"]=!0),_e&&E(N,["html","head","body"]),N.table&&(E(N,["tbody"]),delete oe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=i.TRUSTED_TYPES_POLICY,P=y.createHTML("")}else y===void 0&&(y=Yi(S,o)),y!==null&&typeof P=="string"&&(P=y.createHTML(""));G&&G(i),Ge=i}},Xn=E({},[...ar,...sr,...Li]),Zn=E({},[...lr,...Fi]),Ga=function(i){let c=_(i);(!c||!c.tagName)&&(c={namespaceURI:Ve,tagName:"template"});const f=kt(i.tagName),$=kt(c.tagName);return yr[i.namespaceURI]?i.namespaceURI===Lt?c.namespaceURI===de?f==="svg":c.namespaceURI===Mt?f==="svg"&&($==="annotation-xml"||Ft[$]):!!Xn[f]:i.namespaceURI===Mt?c.namespaceURI===de?f==="math":c.namespaceURI===Lt?f==="math"&&Rt[$]:!!Zn[f]:i.namespaceURI===de?c.namespaceURI===Lt&&!Rt[$]||c.namespaceURI===Mt&&!Ft[$]?!1:!Zn[f]&&(Ua[f]||!Xn[f]):!!(lt==="application/xhtml+xml"&&yr[i.namespaceURI]):!1},le=function(i){Xe(t.removed,{element:i});try{_(i).removeChild(i)}catch{q(i)}},Ie=function(i,c){try{Xe(t.removed,{attribute:c.getAttributeNode(i),from:c})}catch{Xe(t.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(Ue||$t)try{le(c)}catch{}else try{c.setAttribute(i,"")}catch{}},Qn=function(i){let c=null,f=null;if(hr)i="<remove></remove>"+i;else{const R=ir(i,/^[\r\n\t ]+/);f=R&&R[0]}lt==="application/xhtml+xml"&&Ve===de&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const $=y?y.createHTML(i):i;if(Ve===de)try{c=new T().parseFromString($,lt)}catch{}if(!c||!c.documentElement){c=x.createDocument(Ve,"template",null);try{c.documentElement.innerHTML=br?P:$}catch{}}const V=c.body||c.documentElement;return i&&f&&V.insertBefore(r.createTextNode(f),V.childNodes[0]||null),Ve===de?Re.call(c,_e?"html":"body")[0]:_e?c.documentElement:V},Jn=function(i){return v.call(i.ownerDocument||i,i,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Er=function(i){return i instanceof w&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},eo=function(i){return typeof d=="function"&&i instanceof d};function fe(h,i,c){It(h,f=>{f.call(t,i,c,Ge)})}const to=function(i){let c=null;if(fe(U.beforeSanitizeElements,i,null),Er(i))return le(i),!0;const f=B(i.nodeName);if(fe(U.uponSanitizeElement,i,{tagName:f,allowedTags:N}),Nt&&i.hasChildNodes()&&!eo(i.firstElementChild)&&j(/<[/\w!]/g,i.innerHTML)&&j(/<[/\w!]/g,i.textContent)||i.nodeType===et.progressingInstruction||Nt&&i.nodeType===et.comment&&j(/<[/\w]/g,i.data))return le(i),!0;if(!N[f]||oe[f]){if(!oe[f]&&no(f)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(pr&&!He[f]){const $=_(i)||i.parentNode,V=O(i)||i.childNodes;if(V&&$){const R=V.length;for(let X=R-1;X>=0;--X){const me=D(V[X],!0);me.__removalCount=(i.__removalCount||0)+1,$.insertBefore(me,M(i))}}}return le(i),!0}return i instanceof u&&!Ga(i)||(f==="noscript"||f==="noembed"||f==="noframes")&&j(/<\/no(script|embed|frames)/i,i.innerHTML)?(le(i),!0):(K&&i.nodeType===et.text&&(c=i.textContent,It([rt,nt,ot],$=>{c=Ze(c,$," ")}),i.textContent!==c&&(Xe(t.removed,{element:i.cloneNode()}),i.textContent=c)),fe(U.afterSanitizeElements,i,null),!1)},ro=function(i,c,f){if(Hn&&(c==="id"||c==="name")&&(f in r||f in Va))return!1;if(!(ie&&!be[c]&&j(dr,c))){if(!(ye&&j(fr,c))){if(!F[c]||be[c]){if(!(no(i)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,i))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!gr[c]){if(!j(Ce,Ze(f,at,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&Ni(f,"data:")===0&&jn[i])){if(!(Be&&!j(it,Ze(f,at,"")))){if(f)return!1}}}}}}return!0},no=function(i){return i!=="annotation-xml"&&ir(i,re)},oo=function(i){fe(U.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||Er(i))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let $=c.length;for(;$--;){const V=c[$],{name:R,namespaceURI:X,value:me}=V,je=B(R),Sr=me;let W=R==="value"?Sr:$i(Sr);if(f.attrName=je,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,fe(U.uponSanitizeAttribute,i,f),W=f.attrValue,Vn&&(je==="id"||je==="name")&&(Ie(R,i),W=za+W),Nt&&j(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Ie(R,i);continue}if(je==="attributename"&&ir(W,"href")){Ie(R,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Ie(R,i);continue}if(!Ae&&j(/\/>/i,W)){Ie(R,i);continue}K&&It([rt,nt,ot],ao=>{W=Ze(W,ao," ")});const io=B(i.nodeName);if(!ro(io,je,W)){Ie(R,i);continue}if(y&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!X)switch(S.getAttributeType(io,je)){case"TrustedHTML":{W=y.createHTML(W);break}case"TrustedScriptURL":{W=y.createScriptURL(W);break}}if(W!==Sr)try{X?i.setAttributeNS(X,R,W):i.setAttribute(R,W),Er(i)?le(i):yn(t.removed)}catch{Ie(R,i)}}fe(U.afterSanitizeAttributes,i,null)},ja=function h(i){let c=null;const f=Jn(i);for(fe(U.beforeSanitizeShadowDOM,i,null);c=f.nextNode();)fe(U.uponSanitizeShadowNode,c,null),to(c),oo(c),c.content instanceof a&&h(c.content);fe(U.afterSanitizeShadowDOM,i,null)};return t.sanitize=function(h){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,$=null,V=null;if(br=!h,br&&(h="<!-->"),typeof h!="string"&&!eo(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!t.isSupported)return h;if(mr||vr(i),t.removed=[],typeof h=="string"&&(st=!1),st){if(h.nodeName){const me=B(h.nodeName);if(!N[me]||oe[me])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=Qn("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===et.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Ue&&!K&&!_e&&h.indexOf("<")===-1)return y&&Dt?y.createHTML(h):h;if(c=Qn(h),!c)return Ue?null:Dt?P:""}c&&hr&&le(c.firstChild);const R=Jn(st?h:c);for(;$=R.nextNode();)to($),oo($),$.content instanceof a&&ja($.content);if(st)return h;if(Ue){if($t)for(V=ge.call(c.ownerDocument);c.firstChild;)V.appendChild(c.firstChild);else V=c;return(F.shadowroot||F.shadowrootmode)&&(V=ur.call(n,V,!0)),V}let X=_e?c.outerHTML:c.innerHTML;return _e&&N["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(xn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
82
+ `+X),K&&It([rt,nt,ot],me=>{X=Ze(X,me," ")}),y&&Dt?y.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vr(h),mr=!0},t.clearConfig=function(){Ge=null,mr=!1},t.isValidAttribute=function(h,i,c){Ge||vr({});const f=B(h),$=B(i);return ro(f,$,c)},t.addHook=function(h,i){typeof i=="function"&&Xe(U[h],i)},t.removeHook=function(h,i){if(i!==void 0){const c=Pi(U[h],i);return c===-1?void 0:Oi(U[h],c,1)[0]}return yn(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=An()},t}var qi=_n();const Ki=e=>e==null,tt=e=>!Ki(e),Xi=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,In=(e,t)=>t?Object.keys(t).map(o=>{const a=Xi(e[o],t[o].validations);return a?{field:o,error:a}:null},{}).filter(tt):[],kn=e=>{const[t,r]=s.useState(0),[n,o]=s.useState([]),a=s.useCallback(async()=>{try{await Ai({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:qi.sanitize(document.getElementsByTagName("html")[0]??""),domainId:e.domainId,data:e.state,formType:e.formType,viewport:{first:document.body.clientWidth,second:document.body.clientHeight},browser:{productSub:navigator.productSub,vendor:navigator.vendor,pdfViewerEnabled:navigator.pdfViewerEnabled,maxTouchPoints:navigator.maxTouchPoints,hardwareConcurrency:navigator.hardwareConcurrency,cookieEnabled:navigator.cookieEnabled,appVersion:navigator.appVersion,platform:navigator.platform,userAgent:navigator.userAgent,language:navigator.language,onLine:navigator.onLine,webdriver:navigator.webdriver,deviceMemory:navigator.deviceMemory}})}catch(u){console.log(u)}},[e.state,e.formType]),l=s.useCallback(()=>{const u=In(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?r(m=>m+1):a())},[e.state,e.validationsPerStep,t,a]),d=s.useCallback(()=>{t!==0&&(o([]),r(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=In(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[n,e.state,t]),{step:t,errors:n,onContinue:l,onBack:d}},Zi=b.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),xe=({errors:e})=>{var t;return s.createElement(Zi,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},Qi=b.input(({theme:e,colorVariant:t,selected:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=se(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:n,border:`1px solid ${o}`,height:n,flexShrink:"0",padding:".25rem",transition:"background-color .2s,box-shadow .2s",display:"inline-block",position:"relative","&::before":{content:'""',opacity:"0",clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%)",width:"100%",height:"100%",boxShadow:"0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",backgroundColor:`${o}`,fontSize:"1rem",lineHeight:".75",transition:"clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",display:"block",rotate:"45deg",...r?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),Ji=b.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),ea=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),r=o=>{e.onSelect(e.value.includes(o)?e.value.filter(a=>a!==o):[...e.value,o])},n=e.value.includes(t);return s.createElement(Ji,{selected:n,children:[s.createElement(Qi,{id:t,type:"checkbox",selected:n,colorVariant:e.colorVariant,onChange:()=>r(t),name:e.name}),s.createElement(ee,{children:e.label,linear:!0})]})},ta=b.div`
83
83
  display: flex;
84
84
  flex-direction: column;
85
85
  width: var(--all-fields-size);
@@ -87,14 +87,14 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
87
87
  @media (max-width: 900px) {
88
88
  width: 100%;
89
89
  }
90
- `,Xi=S.div`
90
+ `,ra=b.div`
91
91
  display: flex;
92
92
  gap: calc(var(--spacing) * 10);
93
93
  @media (max-width: 900px) {
94
94
  gap: var(--spacing);
95
95
  flex-direction: column;
96
96
  }
97
- `,Zi=e=>{const t=e.label.replace(/\s/g,"-").toLowerCase(),n=e.elementsPerCol||4,r=s.useMemo(()=>e.options.reduce((o,a,l)=>{var u;return(l%n===0||l===0)&&o.push([]),(u=o[o.length-1])==null||u.push(a),o},[]),[n,e.options]);return s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(Xi,{children:r.map((o,a)=>s.createElement(Ki,{key:a,children:o.map(l=>s.createElement(qi,{onSelect:e.onChange,colorVariant:e.colorVariant,value:e.value,id:e.formClientId,name:t,label:l.label}))}))}),s.createElement(Fe,{errors:e.errors})]})},Qi=S(Le)(()=>({"&:not(:last-of-type):not(:first-of-type)":{borderRadius:"0",marginRight:"-1px",marginLeft:"-1px"},"&:first-of-type":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},"&:last-of-type":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},"@media (max-width: 900px)":{}})),Ji=e=>s.createElement(Qi,{onClick:e.onChange,$outlined:!e.selected,children:e.label}),Pr=S("span")(({min:e,variant:t})=>{const n=t||ce();return{position:"absolute",left:e?"0":void 0,right:e?void 0:"0",bottom:"-2px",opacity:"0.5",fontWeight:"300",transform:"translateY(100%)",textTransform:"uppercase",color:n}}),ea=S.div(e=>({verticalAlign:"middle",display:"inline-flex",position:"relative",marginBottom:e.withText?"calc(var(--spacing) * 6)":"0"})),ta=e=>s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(ea,{withText:e.maxText||e.minText,children:[e.maxText?s.createElement(Pr,{min:!1,children:e.maxText}):null,e.minText?s.createElement(Pr,{min:!0,children:e.minText}):null,Array(e.max).fill(1).map((t,n)=>s.createElement(Ji,{onChange:()=>e.onChange(n+1),selected:n+1===e.value,key:`${n}`,label:`${n+1}`}))]}),s.createElement(Fe,{errors:e.errors})]}),na=S.input(({theme:e,selected:t,colorVariant:n})=>{const r=`calc(${e.sizeSelector} * 6);`,o=ce(n);return{width:r,height:r,color:e.neutral,margin:"0",cursor:"pointer",appearance:"none",verticalAlign:"middle",borderRadius:"3.40282e38px",border:`1px solid ${o}`,flexShrink:"0",padding:t?".25rem":"0.4rem",transition:".2s ease-in-out",display:"inline-block",position:"relative",boxSizing:"border-box","&::before":{content:'""',borderRadius:"3.40282e38px",background:t?o:"transparent",width:"100%",height:"100%",display:"block"}}}),ra=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),oa=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[e.id]),n=o=>{e.onSelect(o)},r=e.value===t;return s.createElement(ra,{selected:r,htmlFor:t,children:[s.createElement(na,{id:t,type:"radio",variant:e.colorVariant,selected:r,onChange:()=>n(t),name:e.name}),s.createElement(ae,{children:e.label,linear:!0})]})},ia=S.div`
97
+ `,Pn=e=>{const t=e.label.replace(/\s/g,"-").toLowerCase(),r=e.elementsPerCol||4,n=s.useMemo(()=>e.options.reduce((o,a,l)=>{var u;return(l%r===0||l===0)&&o.push([]),(u=o[o.length-1])==null||u.push(a),o},[]),[r,e.options]);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ra,{children:n.map((o,a)=>s.createElement(ta,{key:a,children:o.map(l=>s.createElement(ea,{onSelect:e.onChange,colorVariant:e.colorVariant,value:e.value,id:e.formClientId,name:t,label:l.label}))}))}),s.createElement(xe,{errors:e.errors})]})},na=b(Fe)(()=>({"&:not(:last-of-type):not(:first-of-type)":{borderRadius:"0",marginRight:"-1px",marginLeft:"-1px"},"&:first-of-type":{borderTopRightRadius:"0",borderBottomRightRadius:"0"},"&:last-of-type":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},"@media (max-width: 900px)":{}})),oa=e=>s.createElement(na,{onClick:e.onChange,$outlined:!e.selected,children:e.label}),On=b("span")(({min:e,variant:t})=>{const r=t||se();return{position:"absolute",left:e?"0":void 0,right:e?void 0:"0",bottom:"-2px",opacity:"0.5",fontWeight:"300",transform:"translateY(100%)",textTransform:"uppercase",color:r}}),ia=b.div(e=>({verticalAlign:"middle",display:"inline-flex",position:"relative",marginBottom:e.withText?"calc(var(--spacing) * 6)":"0"})),Nn=e=>s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ia,{withText:e.maxText||e.minText,children:[e.maxText?s.createElement(On,{min:!1,children:e.maxText}):null,e.minText?s.createElement(On,{min:!0,children:e.minText}):null,Array(e.max).fill(1).map((t,r)=>s.createElement(oa,{onChange:()=>e.onChange(r+1),selected:r+1===e.value,key:`${r}`,label:`${r+1}`}))]}),s.createElement(xe,{errors:e.errors})]}),aa=b.input(({theme:e,selected:t,colorVariant:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=se(r);return{width:n,height:n,color:e.neutral,margin:"0",cursor:"pointer",appearance:"none",verticalAlign:"middle",borderRadius:"3.40282e38px",border:`1px solid ${o}`,flexShrink:"0",padding:t?".25rem":"0.4rem",transition:".2s ease-in-out",display:"inline-block",position:"relative",boxSizing:"border-box","&::before":{content:'""',borderRadius:"3.40282e38px",background:t?o:"transparent",width:"100%",height:"100%",display:"block"}}}),sa=b.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),la=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[e.id]),r=o=>{e.onSelect(o)},n=e.value===t;return s.createElement(sa,{selected:n,htmlFor:t,children:[s.createElement(aa,{id:t,type:"radio",variant:e.colorVariant,selected:n,onChange:()=>r(t),name:e.name}),s.createElement(ee,{children:e.label,linear:!0})]})},ca=b.div`
98
98
  display: flex;
99
99
  flex-direction: column;
100
100
  width: var(--all-fields-size);
@@ -102,36 +102,36 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
102
102
  @media (max-width: 900px) {
103
103
  width: 100%;
104
104
  }
105
- `,aa=S.div`
105
+ `,ua=b.div`
106
106
  display: flex;
107
107
  gap: calc(var(--spacing) * 10);
108
108
  @media (max-width: 900px) {
109
109
  gap: var(--spacing);
110
110
  flex-direction: column;
111
111
  }
112
- `,sa=e=>{const t=e.elementsPerCol||4,n=s.useMemo(()=>e.options.reduce((r,o,a)=>{var d;return(a%t===0||a===0)&&r.push([]),(d=r[r.length-1])==null||d.push(o),r},[]),[t,e.options]);return s.createElement("div",{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(aa,{children:n.map(r=>s.createElement(ia,{children:r.map(o=>s.createElement(oa,{colorVariant:e.colorVariant,onSelect:e.onChange,value:e.value,id:e.formClientId,name:`${o.id}-${e.formClientId}`,label:o.label}))}))}),s.createElement(Fe,{errors:e.errors})]})},la=S.input(e=>{const t=ce(e.colorVariant);return{cursor:"text",border:`var(--border-width)solid ${t}`,appearance:"none",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",whiteSpace:"nowrap",width:"clamp(3rem,30rem,100%)",height:"calc(var(--size-field, .25rem) * 10)",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,borderStartStartRadius:"var(--join-ss,var(--radius-field))",borderStartEndRadius:"var(--join-se,var(--radius-field))",borderEndEndRadius:"var(--join-ee,var(--radius-field))",borderEndStartRadius:"var(--join-es,var(--radius-field))",alignItems:"center",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),ca=S.input(e=>{const n=ce(e.colorVariant);return{cursor:"pointer",flex:"1",verticalAlign:"middle","--radius-selector-max":"calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector))",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",backgroundColor:"#0000",border:"none",overflow:"hidden",appearance:"none",webkitAppearance:"none",margin:"0","--range-thumb":"var(--color-base-100)","--range-thumb-size":"calc(var(--size-selector,.25rem)*6)","--range-progress":n,"--range-fill":"1","--range-p":".25rem","--range-bg":n,font:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",letterSpacing:"inherit",color:"inherit",opacity:"1","&::-webkit-slider-runnable-track":{backgroundColor:"var(--range-bg)",borderRadius:"var(--radius-selector)",width:"100%",height:"calc(var(--range-thumb-size)*.5)","--range-bg":"color-mix(in oklab,currentColor 10%,#0000)"},"&::-webkit-slider-thumb":{boxSizing:"border-box",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",width:"var(--range-thumb-size)",border:"var(--range-p)solid",appearance:"none",webkitAppearance:"none",color:"var(--range-progress)",boxShadow:"0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 0 1px 1px currentColor, 0 0 0 2rem var(--range-thumb) inset, calc((var(--range-dir, 1) * -100rem) - (var(--range-dir, 1) * var(--range-thumb-size) / 2)) 0 0 calc(100rem * var(--range-fill))",backgroundColor:n,position:"relative",top:"50%",transform:"translateY(-50%)"}}}),ua=S.div`
112
+ `,$n=e=>{const t=e.elementsPerCol||4,r=s.useMemo(()=>e.options.reduce((n,o,a)=>{var d;return(a%t===0||a===0)&&n.push([]),(d=n[n.length-1])==null||d.push(o),n},[]),[t,e.options]);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(ua,{children:r.map(n=>s.createElement(ca,{children:n.map(o=>s.createElement(la,{colorVariant:e.colorVariant,onSelect:e.onChange,value:e.value,id:e.formClientId,name:`${o.id}-${e.formClientId}`,label:o.label}))}))}),s.createElement(xe,{errors:e.errors})]})},da=b.input(e=>{const t=se(e.colorVariant);return{cursor:"text",border:`var(--border-width)solid ${t}`,appearance:"none",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",whiteSpace:"nowrap",width:"clamp(3rem,30rem,100%)",height:"calc(var(--size-field, .25rem) * 10)",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,borderStartStartRadius:"var(--join-ss,var(--radius-field))",borderStartEndRadius:"var(--join-se,var(--radius-field))",borderEndEndRadius:"var(--join-ee,var(--radius-field))",borderEndStartRadius:"var(--join-es,var(--radius-field))",alignItems:"center",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),fa=b.input(e=>{const r=se(e.colorVariant);return{cursor:"pointer",flex:"1",verticalAlign:"middle","--radius-selector-max":"calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector))",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",backgroundColor:"#0000",border:"none",overflow:"hidden",appearance:"none",webkitAppearance:"none",margin:"0","--range-thumb":"var(--color-base-100)","--range-thumb-size":"calc(var(--size-selector,.25rem)*6)","--range-progress":r,"--range-fill":"1","--range-p":".25rem","--range-bg":r,font:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",letterSpacing:"inherit",color:"inherit",opacity:"1","&::-webkit-slider-runnable-track":{backgroundColor:"var(--range-bg)",borderRadius:"var(--radius-selector)",width:"100%",height:"calc(var(--range-thumb-size)*.5)","--range-bg":"color-mix(in oklab,currentColor 10%,#0000)"},"&::-webkit-slider-thumb":{boxSizing:"border-box",borderRadius:"calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)))",height:"var(--range-thumb-size)",width:"var(--range-thumb-size)",border:"var(--range-p)solid",appearance:"none",webkitAppearance:"none",color:"var(--range-progress)",boxShadow:"0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 0 1px 1px currentColor, 0 0 0 2rem var(--range-thumb) inset, calc((var(--range-dir, 1) * -100rem) - (var(--range-dir, 1) * var(--range-thumb-size) / 2)) 0 0 calc(100rem * var(--range-fill))",backgroundColor:r,position:"relative",top:"50%",transform:"translateY(-50%)"}}}),ma=b.div`
113
113
  width: clamp(3rem, 30rem, 100%);
114
- `,da=S(la)`
114
+ `,ha=b(da)`
115
115
  width: calc(var(--size-field) * 15);
116
- `,fa=S.div`
116
+ `,pa=b.div`
117
117
  display: flex;
118
118
  align-items: center;
119
119
  gap: calc(var(--spacing) * 2);
120
- `,ma=e=>{var o;const t=e.min||0,n=e.max||100,r=a=>{const l=Number.parseInt(a.target.value);Number.isNaN(l)?console.error("RangeSlide must be a number"):e.onChange(l)};return s.useEffect(()=>{e.onChange(e.value||e.initialValue||0)},[]),s.createElement(ua,{children:[s.createElement(ae,{children:e.label,variant:"section"}),s.createElement(fa,{children:[s.createElement(ca,{type:"range",min:t,max:n,useThemeColors:e.colorVariant,value:e.value,onChange:r}),s.createElement(da,{type:"number",value:((o=e.value)==null?void 0:o.toString())??"",max:n,min:t,colorVariant:e.colorVariant,onChange:a=>e.onChange(+a.target.value)})]}),s.createElement(Fe,{errors:e.errors})]})},ha={heart:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>'),star:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>'),star2:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>')},Or={small:"1rem",medium:"1.5rem",large:"2rem"},pa=S.input(e=>{const t=ha[e.icon??"star2"],n=ce(e.colorVariant);return{maskImage:`url(data:image/svg+xml,${t})`,backgroundColor:n,appearance:"none",transform:e.selected?"scale(1.1)":"scale(1)",transition:"transform 0.3s",border:"none",opacity:e.selected?"1":.2,verticalAlign:"middle",display:"inline-block",WebkitMaskPosition:"50%",maskPosition:"50%",cursor:"pointer",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",borderRadius:"0",width:Or[e.size??"medium"],height:Or[e.size??"medium"]}}),ga=S.div(()=>({verticalAlign:"middle",position:"relative"})),ba=({value:e,max:t,errors:n,label:r,onChange:o})=>s.createElement(ga,{value:1,max:5,children:[s.createElement(ae,{variant:"section",children:r}),Array(t).fill(1).map((a,l)=>s.createElement(pa,{selected:l<e,name:`rating-${l+1}`,key:`${l}`,onChange:()=>{o(l+1)},type:"radio"})),s.createElement(Fe,{errors:n})]}),ya=S.div`
120
+ `,ga=e=>{var o;const t=e.min||0,r=e.max||100,n=a=>{const l=Number.parseInt(a.target.value);Number.isNaN(l)?console.error("RangeSlide must be a number"):e.onChange(l)};return s.useEffect(()=>{e.onChange(e.value||e.initialValue||0)},[]),s.createElement(ma,{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(pa,{children:[s.createElement(fa,{type:"range",min:t,max:r,useThemeColors:e.colorVariant,value:e.value,onChange:n}),s.createElement(ha,{type:"number",value:((o=e.value)==null?void 0:o.toString())??"",max:r,min:t,colorVariant:e.colorVariant,onChange:a=>e.onChange(+a.target.value)})]}),s.createElement(xe,{errors:e.errors})]})},ba={heart:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>'),star:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>'),star2:encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>')},Dn={small:"1rem",medium:"1.5rem",large:"2rem"},ya=b.input(e=>{const t=ba[e.icon??"star2"],r=se(e.colorVariant);return{maskImage:`url(data:image/svg+xml,${t})`,backgroundColor:r,appearance:"none",transform:e.selected?"scale(1.1)":"scale(1)",transition:"transform 0.3s",border:"none",opacity:e.selected?"1":.2,verticalAlign:"middle",display:"inline-block",WebkitMaskPosition:"50%",maskPosition:"50%",cursor:"pointer",WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",borderRadius:"0",width:Dn[e.size??"medium"],height:Dn[e.size??"medium"]}}),va=b.div(()=>({verticalAlign:"middle",position:"relative"})),Mn=({value:e,max:t,errors:r,label:n,onChange:o})=>s.createElement(va,{value:1,max:5,children:[s.createElement(ee,{variant:"section",children:n}),Array(t).fill(1).map((a,l)=>s.createElement(ya,{selected:l<e,name:`rating-${l+1}`,key:`${l}`,onChange:()=>{o(l+1)},type:"radio"})),s.createElement(xe,{errors:r})]}),Ea=b.div`
121
121
  width: 100%;
122
- `,va=S.textarea(e=>{const t=ce(e.colorVariant);return{border:"var(--border-width)solid #0000",appearance:"none",borderRadius:"var(--radius-field)",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",maxWidth:"100%",minWidth:"3rem",minHeight:"5rem",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,flexShrink:"1",paddingBlock:".5rem",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),Ea=e=>{const t=n=>e.onChange(n.target.value);return s.createElement(ya,{children:[s.createElement(ae,{variant:"section",children:e.label}),s.createElement(va,{value:e.value??"",useThemeColors:e.colorVariant,rows:e.rows??3,onChange:t}),s.createElement(Fe,{errors:e.errors})]})},Sa=S.div`
122
+ `,Sa=b.textarea(e=>{const t=se(e.colorVariant);return{border:"var(--border-width)solid #0000",appearance:"none",borderRadius:"var(--radius-field)",backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",maxWidth:"100%",minWidth:"3rem",minHeight:"5rem",fontSize:"max(var(--font-size,.875rem),.875rem)",touchAction:"manipulation",borderColor:t,flexShrink:"1",paddingBlock:".5rem",boxSizing:"border-box",paddingInline:".75rem","&:focus":{outline:`2px solid ${t}`,outlineOffset:"3px",isolation:"isolate"}}}),Ln=e=>{const t=r=>e.onChange(r.target.value);return s.createElement(Ea,{children:[s.createElement(ee,{variant:"section",children:e.label}),s.createElement(Sa,{value:e.value??"",useThemeColors:e.colorVariant,rows:e.rows??3,onChange:t}),s.createElement(xe,{errors:e.errors})]})},wa=b.div`
123
123
  width: 100%;
124
- `,Ot=e=>e!=null,Ta=(e,t)=>(r=>{if(!r)return e.default;const o=r.find(a=>a.conditions.every(l=>{const d=t(l.fieldName);if(!Ot(d))return!1;const u=[];return Ot(l.eq)?l.eq===d?u.push(!0):u.push(!1):Ot(l.lessThan)?l.lessThan>d?u.push(!0):u.push(!1):Ot(l.moreThan)&&(l.moreThan<d?u.push(!0):u.push(!1)),u.every(Boolean)}));return(o==null?void 0:o.value)??e.default})(e.values),Nr=e=>{const t=()=>{const n=a=>e.setStateByKey(e.dataField,a),r=Ta(e.fieldProps.label,e.getStateByKey),o={formClientId:e.formClientId,label:r,errors:e.errors,onChange:n,value:e.getStateByKey(e.dataField),key:`${e.type}-${e.fieldProps.label}-${e.fieldProps.meta.name}`};switch(e.type){case"matrix":{const a=e.fieldProps;return s.createElement(ta,{...a,...o,max:10})}case"radio-group":{const a=e.fieldProps;return s.createElement(sa,{...a,...o})}case"checkbox-group":{const a=e.fieldProps;return s.createElement(Zi,{...a,...o})}case"range-slide":{const a=e.fieldProps;return s.createElement(ma,{...a,...o})}case"rating":{const a=e.fieldProps;return s.createElement(ba,{...a,...o})}case"textarea":{const a=e.fieldProps;return s.createElement(Ea,{...a,...o})}default:return null}};return s.createElement(Sa,{children:t()})},wa=S.div({position:"relative",fontSize:"var(--font-size)"}),xa=S.div`
124
+ `,Ot=e=>e!=null,Ta=(e,t)=>(n=>{if(!n)return e.default;const o=n.find(a=>a.conditions.every(l=>{const d=t(l.fieldName);if(!Ot(d))return!1;const u=[];return Ot(l.eq)?l.eq===d?u.push(!0):u.push(!1):Ot(l.lessThan)?l.lessThan>d?u.push(!0):u.push(!1):Ot(l.moreThan)&&(l.moreThan<d?u.push(!0):u.push(!1)),u.every(Boolean)}));return(o==null?void 0:o.value)??e.default})(e.values),Fn=e=>{const t=()=>{const r=a=>e.setStateByKey(e.dataField,a),n=Ta(e.fieldProps.label,e.getStateByKey),o={formClientId:e.formClientId,label:n,errors:e.errors,onChange:r,value:e.getStateByKey(e.dataField),key:`${e.type}-${e.fieldProps.label}-${e.fieldProps.meta.name}`};switch(e.type){case"matrix":{const a=e.fieldProps;return s.createElement(Nn,{...a,...o,max:10})}case"radio-group":{const a=e.fieldProps;return s.createElement($n,{...a,...o})}case"checkbox-group":{const a=e.fieldProps;return s.createElement(Pn,{...a,...o})}case"range-slide":{const a=e.fieldProps;return s.createElement(ga,{...a,...o})}case"rating":{const a=e.fieldProps;return s.createElement(Mn,{...a,...o})}case"textarea":{const a=e.fieldProps;return s.createElement(Ln,{...a,...o})}default:return null}};return s.createElement(wa,{children:t()})},xa=b.div({position:"relative",fontSize:"var(--font-size)"}),Ca=b.div`
125
125
  display: flex;
126
126
  align-items: center;
127
127
  justify-content: space-between;
128
128
  margin-top: calc(var(--spacing) * 10);
129
- `,$r=e=>{const t=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),[n,r]=s.useState(null),o=d=>{r(u=>!u||u<d?d:u)},a=hr({form:e.inlineForm.form,formId:e.formId,domainId:e.domainId}),l=kr({domainId:e.domainId,formType:"inlineForm",stepsCount:a.steps.length,validationsPerStep:a.validationsPerStep,formId:e.formId,state:a.state});return s.createElement(wa,{children:[e.inlineForm.config.formTitle&&s.createElement(ae,{variant:"title",children:e.inlineForm.config.formTitle}),a.steps.map((d,u)=>{var m;return s.createElement(fr,{key:u+`${(m=d.meta)==null?void 0:m.name}`,height:n,onSetMaxHeight:o,isVisible:u===l.step,children:d.fields.map(p=>s.createElement(Nr,{type:p.type,fieldProps:p,dataField:p.dataField,formClientId:t,onContinue:l.onContinue,errors:l.errors.filter(T=>T.field===p.dataField),getStateByKey:a.getStateByKey,setStateByKey:a.setStateByKey}))})}),s.createElement(xa,{children:[s.createElement(Le,{children:"Back",disabled:l.step===0,onClick:l.onBack}),s.createElement(mr,{steps:a.steps,currentStepIndex:l.step}),s.createElement(Le,{children:"Continue",onClick:l.onContinue})]})]})},Ca=S.div(e=>({backgroundColor:"var(--color-base-100)",borderTopLeftRadius:"var(--modal-tl,var(--radius-box))",borderTopRightRadius:"var(--modal-tr,var(--radius-box))",borderBottomLeftRadius:"var(--modal-bl,var(--radius-box))",borderBottomRightRadius:"var(--modal-br,var(--radius-box))",opacity:e.$visible?"1":"0",overscrollBehavior:"contain",gridRowStart:"1",gridColumnStart:"1",width:"91.6667%",maxWidth:"1080px",margin:"auto",maxHeight:"100vh",padding:"1.5rem",transition:"translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out",overflowY:"auto",scale:"95%",boxShadow:"0 25px 50px -12px #00000040","@media (max-width: 900px)":{maxWidth:"initial",width:"auto"}})),Aa=S.div(()=>({})),_a=S.dialog(({$visible:e})=>({pointerEvents:e?"auto":"none",visibility:e?"visible":"hidden",width:"100%",maxWidth:"none",height:"100%",maxHeight:"none",color:"inherit",transition:"visibility .3s allow-discrete,background-color .3s ease-out,opacity .1s ease-out",overscrollBehavior:"contain",zIndex:"99",scrollbarGutter:"auto",backgroundColor:e?"#0006":"#0000",placeItems:"center",margin:"0",padding:"0",display:"grid",position:"fixed",overflow:"clip",top:0,border:0,outline:0})),Ia=e=>{const t=s.useRef(null),n=Math.random().toString(36).substring(2,16),r=s.useCallback(a=>{a.target===t.current&&e.onClose(),a.preventDefault(),a.stopPropagation()},[e]),o=s.useCallback(a=>{a.key==="Escape"&&e.onClose(),a.preventDefault()},[]);return s.useEffect(()=>{t.current&&e.isOpen?t.current.show():t.current&&!e.isOpen&&t.current.close()},[t,e.isOpen]),s.useEffect(()=>(document.addEventListener("keyup",o),()=>{document.removeEventListener("keyup",o)}),[]),s.createElement(_a,{$visible:e.isOpen,onClick:r,ref:t,id:n,children:s.createElement(Ca,{$visible:e.isOpen,children:[s.createElement(ae,{children:e.heading,variant:"title"}),e.children,s.createElement(Aa,{children:e.footer})]})})},ka=S.div`
129
+ `,Rn=e=>{const t=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),[r,n]=s.useState(null),o=d=>{n(u=>!u||u<d?d:u)},a=hn({form:e.inlineForm.form,formId:e.formId,domainId:e.domainId}),l=kn({domainId:e.domainId,formType:"inlineForm",stepsCount:a.steps.length,validationsPerStep:a.validationsPerStep,formId:e.formId,state:a.state});return s.createElement(xa,{children:[e.inlineForm.config.formTitle&&s.createElement(ee,{variant:"title",children:e.inlineForm.config.formTitle}),a.steps.map((d,u)=>{var m;return s.createElement(fn,{key:u+`${(m=d.meta)==null?void 0:m.name}`,height:r,onSetMaxHeight:o,isVisible:u===l.step,children:d.fields.map(p=>s.createElement(Fn,{type:p.type,fieldProps:p,dataField:p.dataField,formClientId:t,onContinue:l.onContinue,errors:l.errors.filter(w=>w.field===p.dataField),getStateByKey:a.getStateByKey,setStateByKey:a.setStateByKey}))})}),s.createElement(Ca,{children:[s.createElement(Fe,{children:"Back",disabled:l.step===0,onClick:l.onBack}),s.createElement(mn,{steps:a.steps,currentStepIndex:l.step}),s.createElement(Fe,{children:"Continue",onClick:l.onContinue})]})]})},Aa=b.div(e=>({backgroundColor:"var(--color-base-100)",borderTopLeftRadius:"var(--modal-tl,var(--radius-box))",borderTopRightRadius:"var(--modal-tr,var(--radius-box))",borderBottomLeftRadius:"var(--modal-bl,var(--radius-box))",borderBottomRightRadius:"var(--modal-br,var(--radius-box))",opacity:e.$visible?"1":"0",overscrollBehavior:"contain",gridRowStart:"1",gridColumnStart:"1",width:"91.6667%",maxWidth:"1080px",margin:"auto",maxHeight:"100vh",padding:"1.5rem",transition:"translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out",overflowY:"auto",scale:"95%",boxShadow:"0 25px 50px -12px #00000040","@media (max-width: 900px)":{maxWidth:"initial",width:"auto"}})),_a=b.div(()=>({})),Ia=b.dialog(({$visible:e})=>({pointerEvents:e?"auto":"none",visibility:e?"visible":"hidden",width:"100%",maxWidth:"none",height:"100%",maxHeight:"none",color:"inherit",transition:"visibility .3s allow-discrete,background-color .3s ease-out,opacity .1s ease-out",overscrollBehavior:"contain",zIndex:"99",scrollbarGutter:"auto",backgroundColor:e?"#0006":"#0000",placeItems:"center",margin:"0",padding:"0",display:"grid",position:"fixed",overflow:"clip",top:0,border:0,outline:0})),ka=e=>{const t=s.useRef(null),r=Math.random().toString(36).substring(2,16),n=s.useCallback(a=>{a.target===t.current&&e.onClose(),a.preventDefault(),a.stopPropagation()},[e]),o=s.useCallback(a=>{a.key==="Escape"&&e.onClose(),a.preventDefault()},[]);return s.useEffect(()=>{t.current&&e.isOpen?t.current.show():t.current&&!e.isOpen&&t.current.close()},[t,e.isOpen]),s.useEffect(()=>(document.addEventListener("keyup",o),()=>{document.removeEventListener("keyup",o)}),[]),s.createElement(Ia,{$visible:e.isOpen,onClick:n,ref:t,id:r,children:s.createElement(Aa,{$visible:e.isOpen,children:[s.createElement(ee,{children:e.heading,variant:"title"}),e.children,s.createElement(_a,{children:e.footer})]})})},Pa=b.div`
130
130
  display: flex;
131
131
  align-items: center;
132
132
  justify-content: space-between;
133
133
  margin-top: calc(var(--spacing) * 10);
134
- `,Pa=S(Le)`
134
+ `,Oa=b(Fe)`
135
135
  position: fixed;
136
136
  width: fit-content;
137
137
  height: fit-content;
@@ -145,4 +145,4 @@ var SiteUtilsFeedback=(function(ye,s,to){"use strict";var ct={},wn;function no()
145
145
  &:active {
146
146
  transform: rotate(-90deg) translateY(calc(100% - 18px));
147
147
  }
148
- `,Dr=e=>{const[t,n]=s.useState(!1),[r,o]=s.useState(null),a=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),l=m=>{o(p=>!p||p<m?m:p)},d=hr({form:e.popupForm.form,formId:e.formId,domainId:e.domainId}),u=kr({domainId:e.domainId,formType:"inlineForm",stepsCount:d.steps.length,validationsPerStep:d.validationsPerStep,formId:e.formId,state:d.state});return s.createElement(s.Fragment,{children:[s.createElement(Pa,{children:e.popupForm.config.buttonText,onClick:()=>n(!0),$left:e.popupForm.styles.left??null,$right:e.popupForm.styles.right??null,$top:e.popupForm.styles.top??null,$bottom:e.popupForm.styles.bottom??null}),s.createElement(Ia,{onClose:()=>n(!1),heading:e.popupForm.config.formTitle,isOpen:t,footer:s.createElement(ka,{children:[s.createElement(Le,{children:"Back",disabled:u.step===0,onClick:u.onBack}),s.createElement(mr,{steps:d.steps,currentStepIndex:u.step}),s.createElement(Le,{children:"Continue",onClick:u.onContinue})]}),children:d.steps.map((m,p)=>{var T;return s.createElement(fr,{key:p+`${(T=m.meta)==null?void 0:T.name}`,height:r,onSetMaxHeight:l,isVisible:p===u.step,children:m.fields.map(w=>s.createElement(Nr,{type:w.type,fieldProps:w,formClientId:a,dataField:w.dataField,onContinue:u.onContinue,errors:u.errors.filter(E=>E.field===w.dataField),getStateByKey:d.getStateByKey,setStateByKey:d.setStateByKey}))})})})]})},Mr=e=>{e.locale;let{data:t,loading:n,error:r}=fi(()=>di({formId:e.formId}));const o=s.useMemo(()=>t!=null&&t.inlineForm?s.createElement($r,{key:`inline-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,inlineForm:t.inlineForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]),a=s.useMemo(()=>t!=null&&t.popupForm?s.createElement(Dr,{key:`popup-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,popupForm:t.popupForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]);return!t&&n?"Loading...":!t||r?r?r.message:"Unknown error":s.createElement(tn,{theme:t.attributes.theme,selectedVariant:t.attributes.variant,children:[o,a]})},Oa=e=>{if(!e){console.error("options must be provided. Feedback module deactivated");return}if(!e.formId){console.error("formId must be provided. Feedback module deactivated");return}const t=ro.createRoot(e.container||document);typeof window<"u"&&t.render(s.createElement(Mr,{formId:e.formId}))},Lr=e=>e?e.formId?typeof window>"u"?null:s.createElement(Mr,{formId:e.formId}):(console.error("formId must be provided. Feedback module deactivated"),null):(console.error("options must be provided. Feedback module deactivated"),null),Na=e=>Lr(e),$a=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement($r,e)]}),Da=e=>s.createElement(tn,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(Dr,e)]});return ye.FeedbackModule=Na,ye.PreviewInPlaceForm=$a,ye.PreviewPopupForm=Da,ye.initiateFeedbackModule=Oa,ye.renderFeedbackModule=Lr,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"}),ye})({},React,require$$0);
148
+ `,zn=e=>{const[t,r]=s.useState(!1),[n,o]=s.useState(null),a=s.useMemo(()=>Math.random().toString(36).substring(2,10),[]),l=m=>{o(p=>!p||p<m?m:p)},d=hn({form:e.popupForm.form,formId:e.formId,domainId:e.domainId}),u=kn({domainId:e.domainId,formType:"inlineForm",stepsCount:d.steps.length,validationsPerStep:d.validationsPerStep,formId:e.formId,state:d.state});return s.createElement(s.Fragment,{children:[s.createElement(Oa,{children:e.popupForm.config.buttonText,onClick:()=>r(!0),$left:e.popupForm.styles.left??null,$right:e.popupForm.styles.right??null,$top:e.popupForm.styles.top??null,$bottom:e.popupForm.styles.bottom??null}),s.createElement(ka,{onClose:()=>r(!1),heading:e.popupForm.config.formTitle,isOpen:t,footer:s.createElement(Pa,{children:[s.createElement(Fe,{children:"Back",disabled:u.step===0,onClick:u.onBack}),s.createElement(mn,{steps:d.steps,currentStepIndex:u.step}),s.createElement(Fe,{children:"Continue",onClick:u.onContinue})]}),children:d.steps.map((m,p)=>{var w;return s.createElement(fn,{key:p+`${(w=m.meta)==null?void 0:w.name}`,height:n,onSetMaxHeight:l,isVisible:p===u.step,children:m.fields.map(T=>s.createElement(Fn,{type:T.type,fieldProps:T,formClientId:a,dataField:T.dataField,onContinue:u.onContinue,errors:u.errors.filter(S=>S.field===T.dataField),getStateByKey:d.getStateByKey,setStateByKey:d.setStateByKey}))})})})]})},Bn=e=>{e.locale;let{data:t,loading:r,error:n}=yi(()=>bi({formId:e.formId}));const o=s.useMemo(()=>t!=null&&t.inlineForm?s.createElement(Rn,{key:`inline-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,inlineForm:t.inlineForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]),a=s.useMemo(()=>t!=null&&t.popupForm?s.createElement(zn,{key:`popup-form-${e.formId}`,formId:e.formId,domainId:t.domainId,formTheme:t.attributes.theme,popupForm:t.popupForm}):null,[t==null?void 0:t.attributes.theme,t==null?void 0:t.domainId,t==null?void 0:t.inlineForm,e.formId]);return!t&&r?"Loading...":!t||n?n?n.message:"Unknown error":s.createElement(tr,{theme:t.attributes.theme,selectedVariant:t.attributes.variant,children:[o,a]})},Un=b.option(()=>({borderRadius:"var(--radius-field)",whiteSpace:"normal",paddingBlock:".375rem",paddingInline:".75rem",transitionProperty:"color,background-color",transitionDuration:".2s",transitionTimingFunction:"cubic-bezier(0,0,.2,1)"})),Na=b.select(e=>({border:`var(--border-width)solid ${se(e.colorVariant)}`,backgroundColor:"var(--color-base-100)",verticalAlign:"middle",width:"clamp(3rem,30rem,100%)",height:"calc(var(--size-field,.25rem)*10)",touchAction:"manipulation",whiteSpace:"nowrap",textOverflow:"ellipsis",borderStartStartRadius:"var(--radius-field)",borderStartEndRadius:"var(--radius-field)",borderEndEndRadius:"var(--radius-field)",borderEndStartRadius:"var(--radius-field)",flexShrink:"1",alignItems:"center",gap:".375rem",paddingInline:".75rem 1.75rem",fontSize:".875rem",display:"inline-flex",position:"relative",overflow:"hidden"})),$a=e=>{const t=r=>e.onChange(r.target.value);return s.createElement("div",{children:[s.createElement(ee,{children:e.label,variant:"section"}),s.createElement(Na,{colorVariant:e.colorVariant,value:e.value??null,defaultChecked:!1,defaultValue:null,onChange:t,children:[s.createElement(Un,{value:"",selected:!e.value,children:"Select an option",key:""}),e.options.map(r=>s.createElement(Un,{value:r.id,selected:r.id===e.value,children:r.label,key:r.id}))]}),s.createElement(xe,{errors:e.errors})]})},Da=e=>{if(!e){console.error("options must be provided. Feedback module deactivated");return}if(!e.formId){console.error("formId must be provided. Feedback module deactivated");return}const t=co.createRoot(e.container||document);typeof window<"u"&&t.render(s.createElement(Bn,{formId:e.formId}))},Wn=e=>e?e.formId?typeof window>"u"?null:s.createElement(Bn,{formId:e.formId}):(console.error("formId must be provided. Feedback module deactivated"),null):(console.error("options must be provided. Feedback module deactivated"),null),Ma=e=>Wn(e),La=e=>s.createElement(tr,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(Rn,e)]}),Fa=e=>s.createElement(tr,{theme:e.formTheme,selectedVariant:e.variant,children:[s.createElement(zn,e)]}),Ra={Checkbox:Pn,QuestionMatrix:Nn,Radio:$n,Rating:Mn,Select:$a,Textarea:Ln};return he.FeedbackModule=Ma,he.PreviewInPlaceForm=La,he.PreviewPopupForm=Fa,he.SurveyFormComponents=Ra,he.initiateFeedbackModule=Da,he.renderFeedbackModule=Wn,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),he})({},React,require$$0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-site-utilities/feedback",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "workspaces": [
5
5
  "src/**",
6
6
  "examples/**"