UNPKG

iwelp

Version:
54 lines (52 loc) 76.6 kB
(function(fe,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(fe=typeof globalThis<"u"?globalThis:fe||self,g(fe.iwelp={},fe.React))})(this,function(fe,g){"use strict";function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ve={exports:{}},Pe={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gt;function br(){if(gt)return Pe;gt=1;var e=g,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(s,d,o){var v,m={},y=null,C=null;o!==void 0&&(y=""+o),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(C=d.ref);for(v in d)t.call(d,v)&&!i.hasOwnProperty(v)&&(m[v]=d[v]);if(s&&s.defaultProps)for(v in d=s.defaultProps,d)m[v]===void 0&&(m[v]=d[v]);return{$$typeof:a,type:s,key:y,ref:C,props:m,_owner:l.current}}return Pe.Fragment=r,Pe.jsx=c,Pe.jsxs=c,Pe}var Oe={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bt;function _r(){return bt||(bt=1,process.env.NODE_ENV!=="production"&&function(){var e=g,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),w=Symbol.iterator,_="@@iterator";function $(n){if(n===null||typeof n!="object")return null;var p=w&&n[w]||n[_];return typeof p=="function"?p:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(n){{for(var p=arguments.length,E=new Array(p>1?p-1:0),F=1;F<p;F++)E[F-1]=arguments[F];P("error",n,E)}}function P(n,p,E){{var F=S.ReactDebugCurrentFrame,H=F.getStackAddendum();H!==""&&(p+="%s",E=E.concat([H]));var K=E.map(function(B){return String(B)});K.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,K)}}var N=!1,f=!1,O=!1,Z=!1,Q=!1,U;U=Symbol.for("react.module.reference");function te(n){return!!(typeof n=="string"||typeof n=="function"||n===t||n===i||Q||n===l||n===o||n===v||Z||n===C||N||f||O||typeof n=="object"&&n!==null&&(n.$$typeof===y||n.$$typeof===m||n.$$typeof===c||n.$$typeof===s||n.$$typeof===d||n.$$typeof===U||n.getModuleId!==void 0))}function pe(n,p,E){var F=n.displayName;if(F)return F;var H=p.displayName||p.name||"";return H!==""?E+"("+H+")":E}function ae(n){return n.displayName||"Context"}function L(n){if(n==null)return null;if(typeof n.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case t:return"Fragment";case r:return"Portal";case i:return"Profiler";case l:return"StrictMode";case o:return"Suspense";case v:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case s:var p=n;return ae(p)+".Consumer";case c:var E=n;return ae(E._context)+".Provider";case d:return pe(n,n.render,"ForwardRef");case m:var F=n.displayName||null;return F!==null?F:L(n.type)||"Memo";case y:{var H=n,K=H._payload,B=H._init;try{return L(B(K))}catch{return null}}}return null}var J=Object.assign,X=0,ee,re,oe,he,h,b,I;function R(){}R.__reactDisabledLog=!0;function A(){{if(X===0){ee=console.log,re=console.info,oe=console.warn,he=console.error,h=console.group,b=console.groupCollapsed,I=console.groupEnd;var n={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}X++}}function M(){{if(X--,X===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},n,{value:ee}),info:J({},n,{value:re}),warn:J({},n,{value:oe}),error:J({},n,{value:he}),group:J({},n,{value:h}),groupCollapsed:J({},n,{value:b}),groupEnd:J({},n,{value:I})})}X<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var j=S.ReactCurrentDispatcher,k;function D(n,p,E){{if(k===void 0)try{throw Error()}catch(H){var F=H.stack.trim().match(/\n( *(at )?)/);k=F&&F[1]||""}return` `+k+n}}var q=!1,z;{var le=typeof WeakMap=="function"?WeakMap:Map;z=new le}function x(n,p){if(!n||q)return"";{var E=z.get(n);if(E!==void 0)return E}var F;q=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=j.current,j.current=null,A();try{if(p){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(de){F=de}Reflect.construct(n,[],B)}else{try{B.call()}catch(de){F=de}n.call(B.prototype)}}else{try{throw Error()}catch(de){F=de}n()}}catch(de){if(de&&F&&typeof de.stack=="string"){for(var W=de.stack.split(` `),ue=F.stack.split(` `),ne=W.length-1,se=ue.length-1;ne>=1&&se>=0&&W[ne]!==ue[se];)se--;for(;ne>=1&&se>=0;ne--,se--)if(W[ne]!==ue[se]){if(ne!==1||se!==1)do if(ne--,se--,se<0||W[ne]!==ue[se]){var me=` `+W[ne].replace(" at new "," at ");return n.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",n.displayName)),typeof n=="function"&&z.set(n,me),me}while(ne>=1&&se>=0);break}}}finally{q=!1,j.current=K,M(),Error.prepareStackTrace=H}var ke=n?n.displayName||n.name:"",Te=ke?D(ke):"";return typeof n=="function"&&z.set(n,Te),Te}function ve(n,p,E){return x(n,!1)}function Se(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function Ee(n,p,E){if(n==null)return"";if(typeof n=="function")return x(n,Se(n));if(typeof n=="string")return D(n);switch(n){case o:return D("Suspense");case v:return D("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case d:return ve(n.render);case m:return Ee(n.type,p,E);case y:{var F=n,H=F._payload,K=F._init;try{return Ee(K(H),p,E)}catch{}}}return""}var Ie=Object.prototype.hasOwnProperty,ir={},or=S.ReactDebugCurrentFrame;function Ye(n){if(n){var p=n._owner,E=Ee(n.type,n._source,p?p.type:null);or.setExtraStackFrame(E)}else or.setExtraStackFrame(null)}function oa(n,p,E,F,H){{var K=Function.call.bind(Ie);for(var B in n)if(K(n,B)){var W=void 0;try{if(typeof n[B]!="function"){var ue=Error((F||"React class")+": "+E+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ue.name="Invariant Violation",ue}W=n[B](p,B,F,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ne){W=ne}W&&!(W instanceof Error)&&(Ye(H),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",E,B,typeof W),Ye(null)),W instanceof Error&&!(W.message in ir)&&(ir[W.message]=!0,Ye(H),T("Failed %s type: %s",E,W.message),Ye(null))}}}var la=Array.isArray;function ft(n){return la(n)}function ca(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,E=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return E}}function ua(n){try{return lr(n),!1}catch{return!0}}function lr(n){return""+n}function cr(n){if(ua(n))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ca(n)),lr(n)}var Ne=S.ReactCurrentOwner,fa={key:!0,ref:!0,__self:!0,__source:!0},ur,fr,dt;dt={};function da(n){if(Ie.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function pa(n){if(Ie.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function ha(n,p){if(typeof n.ref=="string"&&Ne.current&&p&&Ne.current.stateNode!==p){var E=L(Ne.current.type);dt[E]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Ne.current.type),n.ref),dt[E]=!0)}}function va(n,p){{var E=function(){ur||(ur=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(n,"key",{get:E,configurable:!0})}}function ma(n,p){{var E=function(){fr||(fr=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(n,"ref",{get:E,configurable:!0})}}var ya=function(n,p,E,F,H,K,B){var W={$$typeof:a,type:n,key:p,ref:E,props:B,_owner:K};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function ga(n,p,E,F,H){{var K,B={},W=null,ue=null;E!==void 0&&(cr(E),W=""+E),pa(p)&&(cr(p.key),W=""+p.key),da(p)&&(ue=p.ref,ha(p,H));for(K in p)Ie.call(p,K)&&!fa.hasOwnProperty(K)&&(B[K]=p[K]);if(n&&n.defaultProps){var ne=n.defaultProps;for(K in ne)B[K]===void 0&&(B[K]=ne[K])}if(W||ue){var se=typeof n=="function"?n.displayName||n.name||"Unknown":n;W&&va(B,se),ue&&ma(B,se)}return ya(n,W,ue,H,F,Ne.current,B)}}var pt=S.ReactCurrentOwner,dr=S.ReactDebugCurrentFrame;function je(n){if(n){var p=n._owner,E=Ee(n.type,n._source,p?p.type:null);dr.setExtraStackFrame(E)}else dr.setExtraStackFrame(null)}var ht;ht=!1;function vt(n){return typeof n=="object"&&n!==null&&n.$$typeof===a}function pr(){{if(pt.current){var n=L(pt.current.type);if(n)return` Check the render method of \``+n+"`."}return""}}function ba(n){return""}var hr={};function _a(n){{var p=pr();if(!p){var E=typeof n=="string"?n:n.displayName||n.name;E&&(p=` Check the top-level render call using <`+E+">.")}return p}}function vr(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var E=_a(p);if(hr[E])return;hr[E]=!0;var F="";n&&n._owner&&n._owner!==pt.current&&(F=" It was passed a child from "+L(n._owner.type)+"."),je(n),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,F),je(null)}}function mr(n,p){{if(typeof n!="object")return;if(ft(n))for(var E=0;E<n.length;E++){var F=n[E];vt(F)&&vr(F,p)}else if(vt(n))n._store&&(n._store.validated=!0);else if(n){var H=$(n);if(typeof H=="function"&&H!==n.entries)for(var K=H.call(n),B;!(B=K.next()).done;)vt(B.value)&&vr(B.value,p)}}}function xa(n){{var p=n.type;if(p==null||typeof p=="string")return;var E;if(typeof p=="function")E=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===d||p.$$typeof===m))E=p.propTypes;else return;if(E){var F=L(p);oa(E,n.props,"prop",F,n)}else if(p.PropTypes!==void 0&&!ht){ht=!0;var H=L(p);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ea(n){{for(var p=Object.keys(n.props),E=0;E<p.length;E++){var F=p[E];if(F!=="children"&&F!=="key"){je(n),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),je(null);break}}n.ref!==null&&(je(n),T("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}}var yr={};function gr(n,p,E,F,H,K){{var B=te(n);if(!B){var W="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ue=ba();ue?W+=ue:W+=pr();var ne;n===null?ne="null":ft(n)?ne="array":n!==void 0&&n.$$typeof===a?(ne="<"+(L(n.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof n,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,W)}var se=ga(n,p,E,H,K);if(se==null)return se;if(B){var me=p.children;if(me!==void 0)if(F)if(ft(me)){for(var ke=0;ke<me.length;ke++)mr(me[ke],n);Object.freeze&&Object.freeze(me)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mr(me,n)}if(Ie.call(p,"key")){var Te=L(n),de=Object.keys(p).filter(function(ja){return ja!=="key"}),mt=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!yr[Te+mt]){var Sa=de.length>0?"{"+de.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,mt,Te,Sa,Te),yr[Te+mt]=!0}}return n===t?Ea(se):xa(se),se}}function Ta(n,p,E){return gr(n,p,E,!0)}function Ca(n,p,E){return gr(n,p,E,!1)}var wa=Ca,$a=Ta;Oe.Fragment=t,Oe.jsx=wa,Oe.jsxs=$a}()),Oe}process.env.NODE_ENV==="production"?Ve.exports=br():Ve.exports=_r();var u=Ve.exports,He={exports:{}},Le={exports:{}},Y={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _t;function xr(){if(_t)return Y;_t=1;var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,o=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function P(f){if(typeof f=="object"&&f!==null){var O=f.$$typeof;switch(O){case a:switch(f=f.type,f){case d:case o:case t:case i:case l:case m:return f;default:switch(f=f&&f.$$typeof,f){case s:case v:case w:case C:case c:return f;default:return O}}case r:return O}}}function N(f){return P(f)===o}return Y.AsyncMode=d,Y.ConcurrentMode=o,Y.ContextConsumer=s,Y.ContextProvider=c,Y.Element=a,Y.ForwardRef=v,Y.Fragment=t,Y.Lazy=w,Y.Memo=C,Y.Portal=r,Y.Profiler=i,Y.StrictMode=l,Y.Suspense=m,Y.isAsyncMode=function(f){return N(f)||P(f)===d},Y.isConcurrentMode=N,Y.isContextConsumer=function(f){return P(f)===s},Y.isContextProvider=function(f){return P(f)===c},Y.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===a},Y.isForwardRef=function(f){return P(f)===v},Y.isFragment=function(f){return P(f)===t},Y.isLazy=function(f){return P(f)===w},Y.isMemo=function(f){return P(f)===C},Y.isPortal=function(f){return P(f)===r},Y.isProfiler=function(f){return P(f)===i},Y.isStrictMode=function(f){return P(f)===l},Y.isSuspense=function(f){return P(f)===m},Y.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===t||f===o||f===i||f===l||f===m||f===y||typeof f=="object"&&f!==null&&(f.$$typeof===w||f.$$typeof===C||f.$$typeof===c||f.$$typeof===s||f.$$typeof===v||f.$$typeof===$||f.$$typeof===S||f.$$typeof===T||f.$$typeof===_)},Y.typeOf=P,Y}var V={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xt;function Er(){return xt||(xt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,o=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function P(x){return typeof x=="string"||typeof x=="function"||x===t||x===o||x===i||x===l||x===m||x===y||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===C||x.$$typeof===c||x.$$typeof===s||x.$$typeof===v||x.$$typeof===$||x.$$typeof===S||x.$$typeof===T||x.$$typeof===_)}function N(x){if(typeof x=="object"&&x!==null){var ve=x.$$typeof;switch(ve){case a:var Se=x.type;switch(Se){case d:case o:case t:case i:case l:case m:return Se;default:var Ee=Se&&Se.$$typeof;switch(Ee){case s:case v:case w:case C:case c:return Ee;default:return ve}}case r:return ve}}}var f=d,O=o,Z=s,Q=c,U=a,te=v,pe=t,ae=w,L=C,J=r,X=i,ee=l,re=m,oe=!1;function he(x){return oe||(oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),h(x)||N(x)===d}function h(x){return N(x)===o}function b(x){return N(x)===s}function I(x){return N(x)===c}function R(x){return typeof x=="object"&&x!==null&&x.$$typeof===a}function A(x){return N(x)===v}function M(x){return N(x)===t}function j(x){return N(x)===w}function k(x){return N(x)===C}function D(x){return N(x)===r}function q(x){return N(x)===i}function z(x){return N(x)===l}function le(x){return N(x)===m}V.AsyncMode=f,V.ConcurrentMode=O,V.ContextConsumer=Z,V.ContextProvider=Q,V.Element=U,V.ForwardRef=te,V.Fragment=pe,V.Lazy=ae,V.Memo=L,V.Portal=J,V.Profiler=X,V.StrictMode=ee,V.Suspense=re,V.isAsyncMode=he,V.isConcurrentMode=h,V.isContextConsumer=b,V.isContextProvider=I,V.isElement=R,V.isForwardRef=A,V.isFragment=M,V.isLazy=j,V.isMemo=k,V.isPortal=D,V.isProfiler=q,V.isStrictMode=z,V.isSuspense=le,V.isValidElementType=P,V.typeOf=N}()),V}var Et;function Tt(){return Et||(Et=1,process.env.NODE_ENV==="production"?Le.exports=xr():Le.exports=Er()),Le.exports}/* object-assign (c) Sindre Sorhus @license MIT */var Ue,Ct;function Tr(){if(Ct)return Ue;Ct=1;var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function t(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function l(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},s=0;s<10;s++)c["_"+String.fromCharCode(s)]=s;var d=Object.getOwnPropertyNames(c).map(function(v){return c[v]});if(d.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(v){o[v]=v}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ue=l()?Object.assign:function(i,c){for(var s,d=t(i),o,v=1;v<arguments.length;v++){s=Object(arguments[v]);for(var m in s)a.call(s,m)&&(d[m]=s[m]);if(e){o=e(s);for(var y=0;y<o.length;y++)r.call(s,o[y])&&(d[o[y]]=s[o[y]])}}return d},Ue}var Ke,wt;function Ge(){if(wt)return Ke;wt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ke=e,Ke}var Je,$t;function St(){return $t||($t=1,Je=Function.call.bind(Object.prototype.hasOwnProperty)),Je}var Xe,jt;function Cr(){if(jt)return Xe;jt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var a=Ge(),r={},t=St();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function l(i,c,s,d,o){if(process.env.NODE_ENV!=="production"){for(var v in i)if(t(i,v)){var m;try{if(typeof i[v]!="function"){var y=Error((d||"React class")+": "+s+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}m=i[v](c,v,d,s,null,a)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+s+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var C=o?o():"";e("Failed "+s+" type: "+m.message+(C??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Xe=l,Xe}var Ze,kt;function wr(){if(kt)return Ze;kt=1;var e=Tt(),a=Tr(),r=Ge(),t=St(),l=Cr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var d="Warning: "+s;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Ze=function(s,d){var o=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function m(h){var b=h&&(o&&h[o]||h[v]);if(typeof b=="function")return b}var y="<<anonymous>>",C={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:T(),arrayOf:P,element:N(),elementType:f(),instanceOf:O,node:te(),objectOf:Q,oneOf:Z,oneOfType:U,shape:ae,exact:L};function w(h,b){return h===b?h!==0||1/h===1/b:h!==h&&b!==b}function _(h,b){this.message=h,this.data=b&&typeof b=="object"?b:{},this.stack=""}_.prototype=Error.prototype;function $(h){if(process.env.NODE_ENV!=="production")var b={},I=0;function R(M,j,k,D,q,z,le){if(D=D||y,z=z||k,le!==r){if(d){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=D+":"+k;!b[ve]&&I<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+D+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),b[ve]=!0,I++)}}return j[k]==null?M?j[k]===null?new _("The "+q+" `"+z+"` is marked as required "+("in `"+D+"`, but its value is `null`.")):new _("The "+q+" `"+z+"` is marked as required in "+("`"+D+"`, but its value is `undefined`.")):null:h(j,k,D,q,z)}var A=R.bind(null,!1);return A.isRequired=R.bind(null,!0),A}function S(h){function b(I,R,A,M,j,k){var D=I[R],q=ee(D);if(q!==h){var z=re(D);return new _("Invalid "+M+" `"+j+"` of type "+("`"+z+"` supplied to `"+A+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return $(b)}function T(){return $(c)}function P(h){function b(I,R,A,M,j){if(typeof h!="function")return new _("Property `"+j+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var k=I[R];if(!Array.isArray(k)){var D=ee(k);return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected an array."))}for(var q=0;q<k.length;q++){var z=h(k,q,A,M,j+"["+q+"]",r);if(z instanceof Error)return z}return null}return $(b)}function N(){function h(b,I,R,A,M){var j=b[I];if(!s(j)){var k=ee(j);return new _("Invalid "+A+" `"+M+"` of type "+("`"+k+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return $(h)}function f(){function h(b,I,R,A,M){var j=b[I];if(!e.isValidElementType(j)){var k=ee(j);return new _("Invalid "+A+" `"+M+"` of type "+("`"+k+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return $(h)}function O(h){function b(I,R,A,M,j){if(!(I[R]instanceof h)){var k=h.name||y,D=he(I[R]);return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected ")+("instance of `"+k+"`."))}return null}return $(b)}function Z(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function b(I,R,A,M,j){for(var k=I[R],D=0;D<h.length;D++)if(w(k,h[D]))return null;var q=JSON.stringify(h,function(le,x){var ve=re(x);return ve==="symbol"?String(x):x});return new _("Invalid "+M+" `"+j+"` of value `"+String(k)+"` "+("supplied to `"+A+"`, expected one of "+q+"."))}return $(b)}function Q(h){function b(I,R,A,M,j){if(typeof h!="function")return new _("Property `"+j+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected an object."));for(var q in k)if(t(k,q)){var z=h(k,q,A,M,j+"."+q,r);if(z instanceof Error)return z}return null}return $(b)}function U(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var b=0;b<h.length;b++){var I=h[b];if(typeof I!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(I)+" at index "+b+"."),c}function R(A,M,j,k,D){for(var q=[],z=0;z<h.length;z++){var le=h[z],x=le(A,M,j,k,D,r);if(x==null)return null;x.data&&t(x.data,"expectedType")&&q.push(x.data.expectedType)}var ve=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new _("Invalid "+k+" `"+D+"` supplied to "+("`"+j+"`"+ve+"."))}return $(R)}function te(){function h(b,I,R,A,M){return J(b[I])?null:new _("Invalid "+A+" `"+M+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return $(h)}function pe(h,b,I,R,A){return new _((h||"React class")+": "+b+" type `"+I+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function ae(h){function b(I,R,A,M,j){var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type `"+D+"` "+("supplied to `"+A+"`, expected `object`."));for(var q in h){var z=h[q];if(typeof z!="function")return pe(A,M,j,q,re(z));var le=z(k,q,A,M,j+"."+q,r);if(le)return le}return null}return $(b)}function L(h){function b(I,R,A,M,j){var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type `"+D+"` "+("supplied to `"+A+"`, expected `object`."));var q=a({},I[R],h);for(var z in q){var le=h[z];if(t(h,z)&&typeof le!="function")return pe(A,M,j,z,re(le));if(!le)return new _("Invalid "+M+" `"+j+"` key `"+z+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[R],null," ")+` Valid keys: `+JSON.stringify(Object.keys(h),null," "));var x=le(k,z,A,M,j+"."+z,r);if(x)return x}return null}return $(b)}function J(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(J);if(h===null||s(h))return!0;var b=m(h);if(b){var I=b.call(h),R;if(b!==h.entries){for(;!(R=I.next()).done;)if(!J(R.value))return!1}else for(;!(R=I.next()).done;){var A=R.value;if(A&&!J(A[1]))return!1}}else return!1;return!0;default:return!1}}function X(h,b){return h==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function ee(h){var b=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":X(b,h)?"symbol":b}function re(h){if(typeof h>"u"||h===null)return""+h;var b=ee(h);if(b==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return b}function oe(h){var b=re(h);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function he(h){return!h.constructor||!h.constructor.name?y:h.constructor.name}return C.checkPropTypes=l,C.resetWarningCache=l.resetWarningCache,C.PropTypes=C,C},Ze}var Qe,Pt;function $r(){if(Pt)return Qe;Pt=1;var e=Ge();function a(){}function r(){}return r.resetWarningCache=a,Qe=function(){function t(c,s,d,o,v,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}t.isRequired=t;function l(){return t}var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:l,element:t,elementType:t,instanceOf:l,node:t,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:a};return i.PropTypes=i,i},Qe}if(process.env.NODE_ENV!=="production"){var Sr=Tt(),jr=!0;He.exports=wr()(Sr.isElement,jr)}else He.exports=$r()();var kr=He.exports;const ce=yt(kr);var Ot={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var a={}.hasOwnProperty;function r(){for(var i="",c=0;c<arguments.length;c++){var s=arguments[c];s&&(i=l(i,t(s)))}return i}function t(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var c="";for(var s in i)a.call(i,s)&&i[s]&&(c=l(c,s));return c}function l(i,c){return c?i?i+" "+c:i+c:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ot);var Pr=Ot.exports;const G=yt(Pr),Or=({prefix:e="",className:a,viewBox:r="0 0 24 24",ariaHidden:t=!0,children:l,...i})=>u.jsx("svg",{viewBox:r,focusable:"false",width:"24",height:"24",...i,"aria-hidden":t,className:`${e}svg-icon${a?` ${a}`:""}`,children:l});var Rr=e=>{const{prefix:a="",viewBox:r="0 0 24 24",paths:t,className:l,modifier:i,ariaHidden:c=!0,...s}=e,d=G(l,i&&`${a}svg-icon--${i}`);return t?u.jsx(Or,{viewBox:r,prefix:a,...s,className:d,ariaHidden:c,children:t().map((o,v)=>g.cloneElement(o,{key:v}))}):null},_e=Rr;const Ar=[{tag:"path",att:{d:"M11.9999 15.0002c-1.3965 0-2.5725-.9551-2.9056-2.2492l-1.9368.4985c.555 2.1563 2.5112 3.7507 4.8424 3.7507 2.3312 0 4.2874-1.5944 4.8424-3.7507l-1.9369-.4985c-.3331 1.2941-1.509 2.2492-2.9055 2.2492zM11 9.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];function Fr(e){return e.replace(/-([a-z])/g,(a,r)=>r.toUpperCase())}function Ir(e){return Object.entries(e).reduce((a,[r,t])=>(a[Fr(r)]=t,a),{})}function ie(e){if(e)return e.map(a=>g.createElement(a.tag,Ir(a.att),ie(a.nds)))}var Rt=()=>ie(Ar);const Me=({position:e="rightCenter",bgcolor:a="#FFD700",style:r,className:t,onClick:l})=>u.jsx(u.Fragment,{children:u.jsx("div",{onClick:l,className:`iwelp-Content iwelp-${e} `+t,style:{...r,"--backgroundColor":a},children:u.jsx("div",{className:"iwelp-Text",children:"Feedback"})})});Me.propTypes={position:ce.oneOf(["leftCenter","rightCenter","topLeft","topRight","bottomLeft","bottomRight"]),bgcolor:ce.string,style:ce.object,className:ce.string,onClick:ce.func.isRequired},Me.displayName="iWelpButton";const Nr="100ms",Lr=[{tag:"path",att:{d:"M11.0036 14.2499h2v-6h-2v6zm1 1.5c-.6904 0-1.25.5596-1.25 1.25 0 .6903.5596 1.25 1.25 1.25.6903 0 1.25-.5597 1.25-1.25 0-.6904-.5597-1.25-1.25-1.25z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m1.1152 20.5341 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853L3.6565 20z"}}];var Mr=()=>ie(Lr);const Dr=["primary","emphasised","secondary","tertiary"],At=g.forwardRef((e,a)=>{const{href:r="",newWindow:t=!1,loadingSrText:l="Loading…",ssrIcon:i,iconOnly:c=!1,prefix:s="",htmlType:d="button",disabled:o=!1,className:v="",onClick:m,text:y="",type:C="secondary",expanding:w=!1,loading:_=!1,iconPosition:$="leading",fluid:S=!1,inverseTheme:T=!1,children:P,expandedOnTouchDevice:N=!1,size:f="medium",staticColour:O=!1,...Z}=e,Q=re=>{if(o||_||re.key!==" ")return;re.target.click()};let U=C||"secondary";c&&i&&(U=`icon-${U}`),T&&C!=="danger"&&C!=="plain"&&C!=="image-overlay"&&Dr.indexOf(C)>-1&&(U=`${U}-inverse`);const te=G(`${s}btn__inner`),pe=`${s}btn__icon`,ae=C==="danger"?Mr:i,L=ae?u.jsx(_e,{className:pe,prefix:s,paths:ae}):null,J=G(`${s}btn`,_&&`${s}btn--loading`,f!=="medium"&&`${s}btn--${f}`,!c&&ae&&$&&`${s}${$}-icon`,C&&`${s}btn--${U}`,S&&!c&&`${s}btn--fluid`,w&&`${s}btn--expanding`,w&&N&&`${s}btn--touch-device-expanded`,O&&`${s}btn--static-colour`,v),X=re=>{if(_||o){re.stopPropagation();return}m&&typeof m=="function"&&m(re)},ee=u.jsxs("span",{className:te,children:[L,y&&u.jsx("span",{className:`${s}btn__label`,children:y})||null,!_&&P||null,_&&u.jsx("span",{className:`${s}btn__loader`,children:l})||null]});return r?u.jsx("a",{ref:a,className:J,"aria-disabled":_?!0:void 0,onClick:X,onKeyUp:Q,href:o?void 0:r,target:t?"_blank":void 0,rel:t?"noreferrer":void 0,...Z,children:ee}):u.jsx("button",{ref:a,className:J,disabled:o,type:d,onClick:X,...Z,children:ee})});At.displayName="Button";var zr=At,Re=zr;const Wr=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12 13.4142 4.9497 4.9497 1.4142-1.4142L13.4142 12l4.9497-4.9498-1.4142-1.4142L12 10.5857 7.0502 5.636 5.636 7.0502 10.5857 12 5.636 16.9497l1.4142 1.4142L12 13.4142z"}}];var Br=()=>ie(Wr);const qr=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m3.999 11.9997 8 8.0011 1.4143-1.4141-5.5859-5.5866H20v-2H7.8273l5.5871-5.5868-1.4142-1.4143-8.0012 8.0007z"}}];var Yr=()=>ie(qr);const Vr=e=>{const{title:a="",titleId:r="",prefix:t="",className:l="",closeBtnClick:i,ariaCloseTxt:c="Close",backBtnClick:s,ariaBackBtnTxt:d="Back",floating:o=!1,children:v,...m}=e,y=G(`${t}modal-header__title-wrapper`,!s&&`${t}modal-header__title-wrapper--padded`),C=G(`${t}modal-header`,o&&`${t}modal-header--floating-header`,l);return u.jsxs("div",{className:C,...m,children:[u.jsx(Re,{prefix:t,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Br,onClick:i,className:`${t}modal-header__close`,"aria-label":c}),!o&&(a||v)&&u.jsxs("div",{className:y,children:[a&&u.jsx("h2",{id:r,className:`${t}modal-header__title`,children:a}),v]}),s&&u.jsx(Re,{prefix:t,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Yr,onClick:s,className:`${t}modal-header__back-button`,"aria-label":d})]})},Hr=e=>{const{prefix:a="",children:r,className:t="",...l}=e;return u.jsx("div",{...l,className:G(`${a}modal-body`,t),children:r})},Ur=e=>e?!!!e.querySelectorAll("*[data-autofocus],*[autofocus]").length:!1;var Kr=()=>{const e=g.useRef(null),[a,r]=g.useState(void 0);return g.useEffect(()=>{if(e.current){const t=e.current;r(Ur(t))}},[]),[a,e]};const Gr=e=>{const{className:a="",fullSize:r=!1,prefix:t="",children:l,open:i=!1,closeBtnClick:c,header:s,alignment:d="right",preserveAlignment:o=!1,footer:v,size:m="small",describedById:y,labelledById:C,ariaLabel:w,..._}=e,$=G(`${t}sheets`,`${t}sheets--${m}`,r&&`${t}sheets--mobile-full-size`,d==="left"&&`${t}sheets--mirrored`,o&&`${t}sheets--preserve-alignment`,i?`${t}sheets--enter`:`${t}sheets--close`,a),S=s?g.cloneElement(s,{closeBtnClick:c,prefix:t}):null,T=v&&g.cloneElement(v,{prefix:t,closeBtnClick:c,stacked:m==="small"?v.props.stacked:!1})||null,P=g.Children.map(l,O=>g.isValidElement(O)?g.cloneElement(O,{prefix:t}):O),[N,f]=Kr();return u.jsxs("div",{"aria-describedby":y,"aria-labelledby":C,"aria-label":w,..._,className:$,"aria-modal":"true",role:"dialog",tabIndex:-1,children:[N!==void 0&&S,u.jsx("div",{className:`${t}sheets__content-wrapper`,role:"document",tabIndex:0,ref:f,"data-autofocus":N,children:P}),T]})},be={Enable:"skapa-focus-lock-enable",Disable:"skapa-focus-lock-disable",Escape:"skapa-focus-lock-escape-hotkey"};class et extends Event{constructor(a,r){super(a),this.SkapaFocusLockReference=r}}const xe=new Set;function Jr(e){if(!e)return;const a=e.getRootNode();if("host"in a)return a.host}function Xr(e){return e.parentElement||e.getRootNode()&&e.getRootNode().host}function Zr(e){const a=[e];let r=e,t;for(;t=Xr(r);)a.push(r=t);return a}function Ce(e,a,r){var t;const l=[...e];a&&l.reverse();const i=typeof window<"u";for(let c=0;c<l.length;c++){const s=l[c];if(!(i&&!rt(s,r))&&!s.matches("[disabled], [hidden], [inert]")){if(s.matches('button, a[href], input:not([type="hidden"]), select, textarea, audio, video, details, [tabindex], [contenteditable]:not([contenteditable="false"])')&&s.matches(':not([tabindex="-1"])')){if(!((t=s.closest("fieldset"))===null||t===void 0)&&t.hasAttribute("disabled"))continue;return s}if(s.shadowRoot){const d=Ce(Array.from(s.shadowRoot.querySelectorAll("*")),a,s);if(d)return d}if(s.tagName==="SLOT"){const d=Ce(Array.from(s.assignedElements({flatten:!0})),a,s);if(d)return d}}}}function Qr(e){const a=e.SkapaFocusLockReference;if(e.type===be.Enable){const r=[...xe.values()].reverse()[0];r&&(r.passive=!0),xe.add(a)}else{xe.delete(a);const r=[...xe.values()].reverse()[0];r&&(r.passive=!1)}}function en(e){xe.forEach(a=>a.handlePointer(e))}function tn(e){e.key,xe.forEach(a=>a.handleKeyboard(e))}const rn=["mousedown","pointerup","touchstart","click"],nn=["keydown","keyup"],an=[be.Enable,be.Disable];let Ft=!1;function It(e=!0){if(Ft===e||!e&&xe.size)return;const a=(e?document.addEventListener:document.removeEventListener).bind(document);rn.forEach(r=>a(r,en,{capture:!0})),nn.forEach(r=>a(r,tn)),an.forEach(r=>a(r,Qr)),Ft=e}let tt=-1;const Nt={cache:new WeakMap};function sn(){tt=-1,Nt.cache=new WeakMap}function rt(e,a){if(!e)return!1;if(e===a)return!0;const r=Nt.cache;if(r.has(e))return!!r.get(e);tt===-1&&(tt=requestAnimationFrame(sn));const{display:t,visibility:l}=window.getComputedStyle(e);if(t==="none"||l==="hidden")return r.set(e,!1),!1;const i=e.parentNode;if(i&&i===a)return r.set(e,!0),!0;if(i&&i.nodeType===1){const c=rt(i,a);return r.set(e,c),c}if(i&&i.nodeType===11&&"host"in i){const c=rt(i.host,a);return r.set(e,c),c}return r.set(e,!0),!0}function Lt(e=document){if(e.activeElement)return e.activeElement.shadowRoot&&Lt(e.activeElement.shadowRoot)||e.activeElement}const Mt="skapa-focus-region-boundary";let ye;function Dt(){return ye||(ye=document.createElement("div"),ye.tabIndex=0,ye.toggleAttribute(Mt,!0),ye.style.position="fixed",ye.style.top="0",ye.style.left="0",ye.style.width="1px"),ye.cloneNode(!0)}const De=new Map;function zt(e,a){e.preventDefault(),e.stopImmediatePropagation(),a.focus()}function on(e){const a=e.container;if(a.isConnected&&a.parentNode){De.has(e)&&Wt(e);const r=Dt(),t=Dt(),l=function(c){const s=Ce([a,...Array.from(a.querySelectorAll("*"))],!0,a);s&&zt(c,s)},i=function(c){const s=Ce([a,...Array.from(a.querySelectorAll("*"))],!1,a);s&&zt(c,s)};r.addEventListener("focusin",l,{capture:!0}),t.addEventListener("focusin",i,{capture:!0}),a.before(r),a.after(t),De.set(e,{nodes:[r,t],listeners:[l,i]})}}function Wt(e){const a=De.get(e);a&&(a.nodes.forEach((r,t)=>{r.removeEventListener("focusin",a.listeners[t],{capture:!0}),r&&r.isConnected&&r.remove()}),De.delete(e))}class ln extends EventTarget{constructor(a){super(),this.autoFocus=!1,this.passive=!1,this.capturePointerEvents=!0,this.autoFocusReturn=!0,this.__active=!1,this.__disableKeyConfig={key:"Escape",shift:!1,ctrl:!1},this.__shiftKeyDown=!1,this.handleKeyboard=r=>{if(!this.passive){if(r.type==="keydown"&&typeof r.key=="string"&&r.key.toLowerCase()===this.__disableKeyConfig.key.toLowerCase()){const{shift:t,ctrl:l}=this.__disableKeyConfig;if(t===r.shiftKey&&l===r.ctrlKey){this.active=!1,this.dispatchEvent(new et(be.Escape,this));return}}r.key==="Shift"&&(this.__shiftKeyDown=r.type==="keydown")}},this.disconnectedLockWrapper=()=>{const r=!(this.container&&this.container.isConnected);return r&&console.warn("Focus lock feature was not disabled before removing the container from the DOM tree."),r},this.handlePointer=r=>{if(this.passive||!this.capturePointerEvents||this.disconnectedLockWrapper())return;const t=r.composedPath();t.includes(this.container)||t.find(l=>Element.prototype.isPrototypeOf(l)&&(l.classList.contains("skapa-focus-portal")||(l.getAttribute("role")||"").includes("dialog")))||this.isElementWithin(t[0])||(r.cancelable&&r.preventDefault(),r.type==="click"&&r.stopImmediatePropagation())},this.enableLock=()=>{this.container.addEventListener("focusout",this.handleFocus),It(!0),on(this),document.dispatchEvent(new et(be.Enable,this)),this.captureFocus()},this.disableLock=()=>{Wt(this),It(!1),this.container.removeEventListener("focusout",this.handleFocus),this.returnFocus(),document.dispatchEvent(new et(be.Disable,this))},this.captureFocus=()=>{document.activeElement&&(this._activeElementBeforeFocusLock=Lt());const r=this.autoFocus&&this.container.querySelector('*[data-autofocus]:not([tabindex="-1"]):not(:disabled)'),t=Ce(r?[r]:[this.container,...Array.from(this.container.querySelectorAll("*"))],!1,this.container);t?qt(t):this.noFocusTargetException()},this.returnFocus=()=>{this.autoFocusReturn&&this._activeElementBeforeFocusLock&&this._activeElementBeforeFocusLock.isConnected&&qt(this._activeElementBeforeFocusLock)},this.handleFocus=r=>{if(this.passive||!this.container.isConnected)return;const t=r.relatedTarget&&"nodeType"in r.relatedTarget&&r.relatedTarget.nodeType===1?r.relatedTarget:null;if(!(!t||t.hasAttribute(Mt))&&!this.isElementWithin(t)){r.preventDefault();const i=r.composedPath()[0]||Ce([this.container,...Array.from(this.container.querySelectorAll("*"))],this.__shiftKeyDown,this.container);i?i.focus():this.noFocusTargetException()}},this.isElementWithin=(r,t=this.container)=>{var l;return!!(r&&(t.contains(r)||t.shadowRoot&&t.shadowRoot.contains(r)||!((l=Jr(t))===null||l===void 0)&&l.contains(r)||Zr(r).includes(t)))},this.noFocusTargetException=()=>{console.warn(`Warning! Skapa Focus-lock found no focusable elements on ${this.container}. Focus lock remains disabled.`),this.disableLock()},this.container=a}get active(){return this.__active}set active(a){this.__active!==a&&(this.__active=a,a?this.enableLock():this.disableLock())}get disableKey(){return this.__disableKeyConfig}setDisableKey(a){this.__disableKeyConfig=Object.assign({key:"Escape",shift:!1,ctrl:!1},a)}}let Bt=-1;function qt(e){clearTimeout(Bt),!(typeof window>"u")&&(Bt=window.setTimeout(()=>{e&&e.isConnected&&e.focus()},50))}var cn=e=>{const{prefix:a="",locked:r=!1,autoFocus:t=!1,escapeHotkey:l,capturePointerEvents:i=!0,onEscaped:c,autoFocusReturn:s=!0,children:d,className:o,...v}=e,m=g.useRef(null),y=g.useRef(),[C,w]=g.useState(!1),_=`${a}skapa-focus-lock`,$=G(_,(!r||C)&&`${_}--disabled`,o),S=function(){c&&c(),w(!0)};return g.useEffect(()=>{if(m.current){y.current||(y.current=new ln(m.current));const T=y.current;l&&T.setDisableKey(l),T.capturePointerEvents=i,T.autoFocus=t,T.autoFocusReturn=s,T.active=r}return()=>{y.current&&(y.current.active=!1,w(!1))}},[]),g.useEffect(()=>{const T=y.current;return T&&T.addEventListener(be.Escape,S),()=>{T&&T.removeEventListener(be.Escape,S)}},[c,y.current]),g.useEffect(()=>{y.current&&(y.current.active=r),w(!1)},[r]),g.useEffect(()=>{y.current&&(y.current.autoFocus=t)},[t]),g.useEffect(()=>{y.current&&(y.current.autoFocusReturn=s)},[s]),g.useEffect(()=>{y.current&&y.current.setDisableKey(l)},[l]),g.useEffect(()=>{y.current&&(y.current.capturePointerEvents=i)},[i]),u.jsx("div",{ref:m,className:$,...v,children:d})},un=cn;const nt=[],fn=e=>{const a=document.body;if(nt.push(!0),a.classList.toString().indexOf(`${e}prevent-scroll-y`)===-1){const r=window.pageYOffset||window.scrollY;a.setAttribute("data-skapa--scroll",r.toString());const t=a.style.paddingRight;a.setAttribute("data-skapa--pad",t);let l=a.clientWidth;a.classList.add(`${e}prevent-scroll-y`),l=a.clientWidth-l,a.style.top=`-${r}px`,l&&(a.style.paddingRight=`calc(${t||"0px"} + ${l}px)`),window.scrollTo(0,0)}},Yt=e=>{const a=document.body;if(nt.pop(),nt.length===0&&a.classList.toString().indexOf(`${e}prevent-scroll-y`)>-1){const r=Number(a.getAttribute("data-skapa--scroll")),t=a.getAttribute("data-skapa--pad");a.classList.remove(`${e}prevent-scroll-y`),a.style.paddingRight=t,window.scrollTo(0,r),a.style.top="",a.removeAttribute("data-skapa--scroll"),a.removeAttribute("data-skapa--pad"),a.style.length||a.removeAttribute("style")}return!0},Vt=(e,a)=>{e(!1),a(!0)},Ht=(e,a,r)=>{e(!0),a&&fn(r)},dn=(e,a,r,t,l,i)=>{(!e.target.closest||e.target.closest(`.${a}`)===e.currentTarget)&&r&&e.key==="Escape"&&(t&&t(e),Vt(l,i))},pn=(e,a,r)=>{a&&e.target===e.currentTarget&&r(e)},hn=(e,a,r,t,l,i,c,s,d)=>{cancelAnimationFrame(a),r?t&&(a=requestAnimationFrame(()=>{t(e)})):c&&(i&&Yt(d),s(!1),l&&(a=requestAnimationFrame(()=>{l(e)})))},vn=(e,a,r,t,l,i)=>{a!==t&&(a?Ht(l,r,e):Vt(l,i))};var mn=e=>{const{className:a,visible:r=!1,prefix:t="",children:l,handleCloseBtn:i,focusLockProps:c={},keepContentMounted:s=!1,escapable:d=!0,onModalClosed:o=()=>{},onModalOpened:v=()=>{},onKeyDown:m=()=>{},scrollLock:y=!0,...C}=e,[w,_]=g.useState(r),[$,S]=g.useState(!1),T=g.useRef(-1),P=`${t}modal-wrapper`;g.useEffect(()=>{vn(t,r,y,w,_,S)},[r]),g.useEffect(()=>(r&&Ht(_,y,t),()=>{y&&Yt(t),cancelAnimationFrame(T.current)}),[]);const N=G(P,w?`${P}--open`:`${P}--close`,a),f=G(`${P}__backdrop`,`${P}__backdrop--dark`),O=g.Children.map(l,te=>g.cloneElement(te,{open:w,closeBtnClick:i,prefix:t})),Z=te=>{m(te),dn(te,P,d,i,_,S)},Q=te=>{pn(te,d,i)},U=te=>{hn(te,T.current,w,v,o,y,$,S,t)};return u.jsxs("div",{...C,onKeyDown:Z,className:N,tabIndex:-1,children:[u.jsx("div",{className:f,onMouseDown:Q,onAnimationEnd:U}),(s||w||$)&&u.jsx(un,{prefix:t,autoFocus:!0,onEscaped:i,locked:w,capturePointerEvents:!1,...c,children:O})]})},yn=mn;const Ut=g.forwardRef((e,a)=>{const{prefix:r="",children:t,text:l="",url:i="#",subtle:c,disabled:s=!1,button:d=!1,colour:o,className:v,onClick:m,newWindow:y=!1,ariaControls:C,...w}=e;function _(T){T.preventDefault()}const $=G(v,`${r}link`,o&&`${r}link--${o}`,c&&`${r}link--subtle`,s&&`${r}link--disabled`);let S=d?"button":void 0;return S=s?"link":S,u.jsxs("a",{ref:a,target:y?"_blank":void 0,...w,href:s?void 0:i,className:$,role:S,"aria-disabled":s&&`${s}`,"aria-controls":C||void 0,onClick:d&&s?_:m,children:[l,l&&t?" ":null,t]})});Ut.displayName="Hyperlink";var gn=Ut,bn=gn;const ze=g.createContext({}),_n=({children:e,shouldValidate:a,setCharacterCount:r,valid:t})=>u.jsx(ze.Provider,{value:{shouldValidate:a,setCharacterCount:r,valid:t},children:e}),xn=[{tag:"path",att:{d:"M17 9c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8z",fill:"rgb(var(--colour-semantic-positive, 10, 138, 0))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m13.7083 7.207-5.7086 5.7062-3.7069-3.707L5.7071 7.792 8 10.085l4.2942-4.2925 1.414 1.4145z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var En=()=>ie(xn);const Tn=[{tag:"path",att:{d:"m1.0154 15.457 7.336-13.9228h1.3041l7.3599 13.9291-.6598 1.0709H1.6671l-.6517-1.0772z",fill:"rgb(var(--colour-semantic-caution, 242, 106, 47))"}},{tag:"path",att:{d:"M10.2485 13.25c0 .6904-.5597 1.25-1.25 1.25-.6904 0-1.25-.5596-1.25-1.25S8.308 12 8.9985 12c.6903 0 1.25.5596 1.25 1.25z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 10.5V6h2v4.5H8z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var Cn=()=>ie(Tn);const wn=[{tag:"path",att:{d:"M17 9c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8z",fill:"rgb(var(--colour-semantic-negative, 224, 7, 81))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 9.5V5h2v4.5H8z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}},{tag:"path",att:{d:"M10.25 12.25c0 .6904-.5596 1.25-1.25 1.25s-1.25-.5596-1.25-1.25S8.3096 11 9 11s1.25.5596 1.25 1.25z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var $n=()=>ie(wn);const Sn=e=>e===!0?"success":e===!1?"error":e==="warning"||e==="success"||e==="error"?e:"",Kt=e=>{const{prefix:a="",children:r,className:t,shouldValidate:l=!1,valid:i=!1,textOnly:c=!1,...s}=e,d=`${a}helper-text`,o=Sn(i),v={success:En,warning:Cn,error:$n},m=G(d,l&&o!==""&&`${d}--${o}`,c&&`${d}--text-only`,t);return u.jsxs("span",{...s,className:m,children:[l&&o!==""&&u.jsx(_e,{viewBox:"0 0 18 18",prefix:a,className:`${d}__icon`,paths:v[o]}),r]})};Kt.displayName="HelperText";var Gt=Kt;const Jt=e=>{const{prefix:a="",targetID:r,limit:t=0,characterCount:l,on