Plugin Directory

Changeset 3809549


Ignore:
Timestamp:
11/18/2026 02:51:59 PM (less than one hour ago)
Author:
jotform
Message:

Version: 1.3.1

Location:
jotform-review-widgets-for-google
Files:
190 added
2 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • jotform-review-widgets-for-google/trunk/jotform-review-widgets-for-google.php

    r3798436 r3809549  
    88 * License: GPLv2 or later
    99 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    10  * Version: 1.3.0
     10 * Version: 1.3.1
    1111 * Author URI: https://www.jotform.com/
    1212 * Text Domain: jotform-review-widgets-for-google
    … …  
    1818}
    1919
    20 define('JFRWG_PLUGIN_VERSION', '1.3.0');
     20define('JFRWG_PLUGIN_VERSION', '1.3.1');
    2121define('JFRWG_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2222define('JFRWG_PLUGIN_URL', plugin_dir_url(__FILE__));
  • jotform-review-widgets-for-google/trunk/lib/app/app.js

    r3798436 r3809549  
    1 (()=>{let e,t,r,n,a,o,i,l,s,u,c,d,f,p,h,m,g,v,b,y,w,E,x,_,S,C,O,k,R,j,T,F,A,N;function P(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var M,I,L,D,z,B,H,U,$,W,V,q,G,K,X,Z,J,Y,Q,ee,et,er,en,ea,eo,ei,el,es=globalThis;function eu(e){return e&&e.__esModule?e.default:e}function ec(e){if(e=eh.i?.[e]||e,!ea)try{throw Error()}catch(r){var t=(""+r.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(!t)return ed+e;ea=t[0]}return new URL(ed+e,ea).toString()}var ed="./",ef={},ep={},eh=es.parcelRequire9497;null==eh&&((eh=function(e){if(e in ef)return ef[e].exports;if(e in ep){var t=ep[e];delete ep[e];var r={id:e,exports:{}};return ef[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){ep[e]=t},es.parcelRequire9497=eh);var em=eh.register;em("aFOxS",function(e,t){"use strict";var r=eh("e4OqD");function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return o.PropTypes=o,o}}),em("e4OqD",function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}),em("dsA22",function(e,t){P(e.exports,"useSyncExternalStoreWithSelector",()=>r,e=>r=e);"use strict";var r,n=eh("j89Fe"),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,l=n.useEffect,s=n.useMemo,u=n.useDebugValue;r=function(e,t,r,n,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=s(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,a(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(o=e,t):(o=e,i=r)}var o,i,l=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,c]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}}),em("j89Fe",function(e,t){e.exports=React}),em("gDKMC",function(e,t){var r=eh("dGOyA"),n=eh("he8xn"),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?r.Buffer:void 0;e.exports=(i?i.isBuffer:void 0)||n}),em("dGOyA",function(e,t){var r=eh("ekSwk"),n="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||n||Function("return this")()}),em("ekSwk",function(e,t){e.exports="object"==typeof es&&es&&es.Object===Object&&es}),em("he8xn",function(e,t){e.exports=function(){return!1}}),em("esndt",function(e,t){var r=eh("ekSwk"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n&&r.process;e.exports=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()}),em("3BlhU",function(e,t){var r=eh("dGOyA"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n?r.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}),em("jrilK",function(e,t){P(e.exports,"default",()=>l);var r=eh("bItha"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n?r.default.Buffer:void 0,i=o?o.allocUnsafe:void 0,l=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}),em("bItha",function(e,t){P(e.exports,"default",()=>a);var r=eh("a3WZ3"),n="object"==typeof self&&self&&self.Object===Object&&self,a=r.default||n||Function("return this")()}),em("a3WZ3",function(e,t){P(e.exports,"default",()=>r);var r="object"==typeof es&&es&&es.Object===Object&&es}),em("aMh1P",function(e,t){P(e.exports,"default",()=>l);var r=eh("bItha"),n=eh("8C397"),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?r.default.Buffer:void 0,l=(i?i.isBuffer:void 0)||n.default}),em("8C397",function(e,t){P(e.exports,"default",()=>r);var r=function(){return!1}}),em("2BT6i",function(e,t){P(e.exports,"default",()=>i);var r=eh("a3WZ3"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n&&r.default.process,i=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()}),em("eK6Iq",function(e,t){P(e.exports,"handleFocus",()=>i);var r=eh("j89Fe"),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",i=eu(r).Component;if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function, not "+typeof i);function l(){if(!(this instanceof l))throw TypeError("Cannot call a class as a function");for(var e,t,r,n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=r=o(this,(e=l.__proto__||Object.getPrototypeOf(l)).call.apply(e,[this].concat(a))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},o(r,t)}return l.prototype=Object.create(i&&i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(l,i):l.__proto__=i),a(l,[{key:"render",value:function(){return eu(r).createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},eu(r).createElement(e,n({},this.props,this.state)))}}]),l}}),Object.assign(eh.i??={},{"5phuL":"google-reviews.681f296c.svg",djIaI:"no-widget-poster.a2fcb758.png",dE8lj:"google-reviews.f90c2ecd.png",hLjTP:"review-star-filled.c002ead6.svg"});var eg=eh("j89Fe"),ev={};"use strict";ev=wp.element;var eg=(eh("j89Fe"),eh("j89Fe"));function eb(e,t){return function(){return e.apply(t,arguments)}}"use strict";let{toString:ey}=Object.prototype,{getPrototypeOf:ew}=Object,{iterator:eE,toStringTag:ex}=Symbol,e_=(r=Object.create(null),e=>{let t=ey.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),eS=e=>(e=e.toLowerCase(),t=>e_(t)===e),eC=e=>t=>typeof t===e,{isArray:eO}=Array,ek=eC("undefined");function eR(e){return null!==e&&!ek(e)&&null!==e.constructor&&!ek(e.constructor)&&eF(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let ej=eS("ArrayBuffer"),eT=eC("string"),eF=eC("function"),eA=eC("number"),eN=e=>null!==e&&"object"==typeof e,eP=e=>{if("object"!==e_(e))return!1;let t=ew(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(ex in e)&&!(eE in e)},eM=eS("Date"),eI=eS("File"),eL=eS("Blob"),eD=eS("FileList"),ez="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==es?es:{},eB=void 0!==ez.FormData?ez.FormData:void 0,eH=eS("URLSearchParams"),[eU,e$,eW,eV]=["ReadableStream","Request","Response","Headers"].map(eS);function eq(e,t,{allOwnKeys:r=!1}={}){let n,a;if(null!=e)if("object"!=typeof e&&(e=[e]),eO(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{let a;if(eR(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function eG(e,t){let r;if(eR(e))return null;t=t.toLowerCase();let n=Object.keys(e),a=n.length;for(;a-- >0;)if(t===(r=n[a]).toLowerCase())return r;return null}let eK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:es,eX=e=>!ek(e)&&e!==eK,eZ=(n="u">typeof Uint8Array&&ew(Uint8Array),e=>n&&e instanceof n),eJ=eS("HTMLFormElement"),eY=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),eQ=eS("RegExp"),e0=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eq(r,(r,a)=>{let o;!1!==(o=t(r,a,e))&&(n[a]=o||r)}),Object.defineProperties(e,n)},e1=eS("AsyncFunction"),e2=(M="function"==typeof setImmediate,I=eF(eK.postMessage),M?setImmediate:I?(L=`axios@${Math.random()}`,D=[],eK.addEventListener("message",({source:e,data:t})=>{e===eK&&t===L&&D.length&&D.shift()()},!1),e=>{D.push(e),eK.postMessage(L,"*")}):e=>setTimeout(e)),e4="u">typeof queueMicrotask?queueMicrotask.bind(eK):e2;"use strict";var e5={isArray:eO,isArrayBuffer:ej,isBuffer:eR,isFormData:e=>{let t;return e&&(eB&&e instanceof eB||eF(e.append)&&("formdata"===(t=e_(e))||"object"===t&&eF(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ej(e.buffer)},isString:eT,isNumber:eA,isBoolean:e=>!0===e||!1===e,isObject:eN,isPlainObject:eP,isEmptyObject:e=>{if(!eN(e)||eR(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:eU,isRequest:e$,isResponse:eW,isHeaders:eV,isUndefined:ek,isDate:eM,isFile:eI,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:eL,isRegExp:eQ,isFunction:eF,isStream:e=>eN(e)&&eF(e.pipe),isURLSearchParams:eH,isTypedArray:eZ,isFileList:eD,forEach:eq,merge:function e(){let{caseless:t,skipUndefined:r}=eX(this)&&this||{},n={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=t&&eG(n,o)||o;eP(n[i])&&eP(a)?n[i]=e(n[i],a):eP(a)?n[i]=e({},a):eO(a)?n[i]=a.slice():r&&ek(a)||(n[i]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&eq(arguments[e],a);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(eq(t,(t,n)=>{r&&eF(t)?Object.defineProperty(e,n,{value:eb(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,o,i,l={};if(t=t||{},null==e)return t;do{for(o=(a=Object.getOwnPropertyNames(e)).length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=!1!==r&&ew(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:e_,kindOfTest:eS,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(eO(e))return e;let t=e.length;if(!eA(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[eE]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eJ,hasOwnProperty:eY,hasOwnProp:eY,reduceDescriptors:e0,freezeMethods:e=>{e0(e,(t,r)=>{if(eF(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eF(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(eO(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:eG,global:eK,isContextDefined:eX,isSpecCompliantForm:function(e){return!!(e&&eF(e.append)&&"FormData"===e[ex]&&e[eE])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(eN(e)){if(t.indexOf(e)>=0)return;if(eR(e))return e;if(!("toJSON"in e)){t[n]=e;let a=eO(e)?[]:{};return eq(e,(e,t)=>{let o=r(e,n+1);ek(o)||(a[t]=o)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:e1,isThenable:e=>e&&(eN(e)||eF(e))&&eF(e.then)&&eF(e.catch),setImmediate:e2,asap:e4,isIterable:e=>null!=e&&eF(e[eE])};class e8 extends Error{static from(e,t,r,n,a,o){let i=new e8(e.message,t||e.code,r,n,a);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),o&&Object.assign(i,o),i}constructor(e,t,r,n,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:e5.toJSONObject(this.config),code:this.code,status:this.status}}}"use strict";"use strict";e8.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e8.ERR_BAD_OPTION="ERR_BAD_OPTION",e8.ECONNABORTED="ECONNABORTED",e8.ETIMEDOUT="ETIMEDOUT",e8.ERR_NETWORK="ERR_NETWORK",e8.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e8.ERR_DEPRECATED="ERR_DEPRECATED",e8.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e8.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e8.ERR_CANCELED="ERR_CANCELED",e8.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e8.ERR_INVALID_URL="ERR_INVALID_URL";var e3=e8,e9=void 0;function e6(e){return e5.isPlainObject(e)||e5.isArray(e)}function e7(e){return e5.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,r){return e?e.concat(t).map(function(e,t){return e=e7(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let tt=e5.toFlatObject(e5,{},null,function(e){return/^is[A-Z]/.test(e)});"use strict";var tr=function(e,t,r){if(!e5.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=e5.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!e5.isUndefined(t[e])})).metaTokens,a=r.visitor||u,o=r.dots,i=r.indexes,l=(r.Blob||"u">typeof Blob&&Blob)&&e5.isSpecCompliantForm(t);if(!e5.isFunction(a))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(e5.isDate(e))return e.toISOString();if(e5.isBoolean(e))return e.toString();if(!l&&e5.isBlob(e))throw new e3("Blob is not supported. Use a Buffer instead.");return e5.isArrayBuffer(e)||e5.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):e9.from(e):e}function u(e,r,a){let l=e;if(e5.isReactNative(t)&&e5.isReactNativeBlob(e))return t.append(te(a,r,o),s(e)),!1;if(e&&!a&&"object"==typeof e)if(e5.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(e5.isArray(e)&&(u=e,e5.isArray(u)&&!u.some(e6))||(e5.isFileList(e)||e5.endsWith(r,"[]"))&&(l=e5.toArray(e)))return r=e7(r),l.forEach(function(e,n){e5.isUndefined(e)||null===e||t.append(!0===i?te([r],n,o):null===i?r:r+"[]",s(e))}),!1}return!!e6(e)||(t.append(te(a,r,o),s(e)),!1)}let c=[],d=Object.assign(tt,{defaultVisitor:u,convertValue:s,isVisitable:e6});if(!e5.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!e5.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),e5.forEach(r,function(r,o){!0===(!(e5.isUndefined(r)||null===r)&&a.call(t,r,e5.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])}),c.pop()}}(e),t};function tn(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ta(e,t){this._pairs=[],e&&tr(e,this,t)}let to=ta.prototype;"use strict";function ti(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tl(e,t,r){let n;if(!t)return e;let a=r&&r.encode||ti,o=e5.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;if(n=i?i(t,o):e5.isURLSearchParams(t)?t.toString():new ta(t,o).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}"use strict";"use strict";"use strict";"use strict";"use strict";to.append=function(e,t){this._pairs.push([e,t])},to.toString=function(e){let t=e?function(t){return e.call(this,t,tn)}:tn;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ts=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){e5.forEach(this.handlers,function(t){null!==t&&e(t)})}},tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},tc="u">typeof URLSearchParams?URLSearchParams:ta,td="u">typeof FormData?FormData:null,tf="u">typeof Blob?Blob:null,tp={};P(tp,"hasBrowserEnv",()=>th),P(tp,"navigator",()=>tm),P(tp,"hasStandardBrowserEnv",()=>tg),P(tp,"hasStandardBrowserWebWorkerEnv",()=>tv),P(tp,"origin",()=>tb);let th="u">typeof window&&"u">typeof document,tm="object"==typeof navigator&&navigator||void 0,tg=th&&(!tm||0>["ReactNative","NativeScript","NS"].indexOf(tm.product)),tv="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tb=th&&window.location.href||"http://localhost";"use strict";"use strict";"use strict";var ty={...tp,isBrowser:!0,classes:{URLSearchParams:tc,FormData:td,Blob:tf},protocols:["http","https","file","blob","url","data"]},tw=function(e){if(e5.isFormData(e)&&e5.isFunction(e.entries)){let t={};return e5.forEachEntry(e,(e,r)=>{!function e(t,r,n,a){let o=t[a++];if("__proto__"===o)return!0;let i=Number.isFinite(+o),l=a>=t.length;return(o=!o&&e5.isArray(n)?n.length:o,l)?e5.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&e5.isObject(n[o])||(n[o]=[]),e(t,r,n[o],a)&&e5.isArray(n[o])&&(n[o]=function(e){let t,r,n={},a=Object.keys(e),o=a.length;for(t=0;t<o;t++)n[r=a[t]]=e[r];return n}(n[o]))),!i}(e5.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let tE={transitional:tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=e5.isObject(e);if(o&&e5.isHTMLForm(e)&&(e=new FormData(e)),e5.isFormData(e))return a?JSON.stringify(tw(e)):e;if(e5.isArrayBuffer(e)||e5.isBuffer(e)||e5.isStream(e)||e5.isFile(e)||e5.isBlob(e)||e5.isReadableStream(e))return e;if(e5.isArrayBufferView(e))return e.buffer;if(e5.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var i,l;return(i=e,l=this.formSerializer,tr(i,new ty.classes.URLSearchParams,{visitor:function(e,t,r,n){return ty.isNode&&e5.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...l})).toString()}if((r=e5.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return tr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||a){t.setContentType("application/json",!1);var s=e;if(e5.isString(s))try{return(0,JSON.parse)(s),e5.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=this.transitional||tE.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e5.isResponse(e)||e5.isReadableStream(e))return e;if(e&&e5.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw e3.from(e,e3.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ty.classes.FormData,Blob:ty.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};"use strict";"use strict";e5.forEach(["delete","get","head","post","put","patch"],e=>{tE.headers[e]={}});let tx=e5.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t_=Symbol("internals");function tS(e){return e&&String(e).trim().toLowerCase()}function tC(e){return!1===e||null==e?e:e5.isArray(e)?e.map(tC):String(e)}function tO(e,t,r,n,a){if(e5.isFunction(n))return n.call(this,t,r);if(a&&(t=r),e5.isString(t)){if(e5.isString(n))return -1!==t.indexOf(n);if(e5.isRegExp(n))return n.test(t)}}class tk{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function a(e,t,r){let a=tS(t);if(!a)throw Error("header name must be a non-empty string");let o=e5.findKey(n,a);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=tC(e))}let o=(e,t)=>e5.forEach(e,(e,r)=>a(e,r,t));if(e5.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(e5.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var i;let r,n,a,l;o((l={},(i=e)&&i.split("\n").forEach(function(e){a=e.indexOf(":"),r=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!r||l[r]&&tx[r]||("set-cookie"===r?l[r]?l[r].push(n):l[r]=[n]:l[r]=l[r]?l[r]+", "+n:n)}),l),t)}else if(e5.isObject(e)&&e5.isIterable(e)){let r={},n,a;for(let t of e){if(!e5.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[a=t[0]]=(n=r[a])?e5.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&a(t,e,r)}return this}get(e,t){if(e=tS(e)){let r=e5.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(e5.isFunction(t))return t.call(this,e,r);if(e5.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tS(e)){let r=e5.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||tO(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function a(e){if(e=tS(e)){let a=e5.findKey(r,e);a&&(!t||tO(r,r[a],a,t))&&(delete r[a],n=!0)}}return e5.isArray(e)?e.forEach(a):a(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let a=t[r];(!e||tO(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){let t=this,r={};return e5.forEach(this,(n,a)=>{let o=e5.findKey(r,a);if(o){t[o]=tC(n),delete t[a];return}let i=e?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(a).trim();i!==a&&delete t[a],t[i]=tC(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return e5.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&e5.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[t_]=this[t_]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=tS(e);if(!t[n]){let a;a=e5.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+a,{value:function(r,n,a){return this[t].call(this,e,r,n,a)},configurable:!0})}),t[n]=!0}}return e5.isArray(e)?e.forEach(n):n(e),this}}"use strict";function tR(e,t){let r=this||tE,n=t||r,a=tk.from(n.headers),o=n.data;return e5.forEach(e,function(e){o=e.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}"use strict";function tj(e){return!!(e&&e.__CANCEL__)}"use strict";"use strict";tk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),e5.reduceDescriptors(tk.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),e5.freezeMethods(tk);var tT=class extends e3{constructor(e,t,r){super(null==e?"canceled":e,e3.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function tF(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new e3("Request failed with status code "+r.status,[e3.ERR_BAD_REQUEST,e3.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}"use strict";"use strict";var tA=function(e,t){let r,n=Array(e=e||10),a=Array(e),o=0,i=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),u=a[i];r||(r=s),n[o]=l,a[o]=s;let c=i,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===i&&(i=(i+1)%e),s-r<t)return;let f=u&&s-u;return f?Math.round(1e3*d/f):void 0}},tN=function(e,t){let r,n,a=0,o=1e3/t,i=(t,o=Date.now())=>{a=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),l=t-a;l>=o?i(e,t):(r=e,n||(n=setTimeout(()=>{n=null,i(r)},o-l)))},()=>r&&i(r)]};let tP=(e,t,r=3)=>{let n=0,a=tA(50,250);return tN(r=>{let o=r.loaded,i=r.lengthComputable?r.total:void 0,l=o-n,s=a(l);n=o,e({loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&o<=i?(i-o)/s:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})},r)},tM=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tI=e=>(...t)=>e5.asap(()=>e(...t));"use strict";"use strict";"use strict";var tL=ty.hasStandardBrowserEnv?(a=new URL(ty.origin),o=ty.navigator&&/(msie|trident)/i.test(ty.navigator.userAgent),e=>(e=new URL(e,ty.origin),a.protocol===e.protocol&&a.host===e.host&&(o||a.port===e.port))):()=>!0,tD=ty.hasStandardBrowserEnv?{write(e,t,r,n,a,o,i){if("u"<typeof document)return;let l=[`${e}=${encodeURIComponent(t)}`];e5.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),e5.isString(n)&&l.push(`path=${n}`),e5.isString(a)&&l.push(`domain=${a}`),!0===o&&l.push("secure"),e5.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tz(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}"use strict";let tB=e=>e instanceof tk?{...e}:e;function tH(e,t){t=t||{};let r={};function n(e,t,r,n){return e5.isPlainObject(e)&&e5.isPlainObject(t)?e5.merge.call({caseless:n},e,t):e5.isPlainObject(t)?e5.merge({},t):e5.isArray(t)?t.slice():t}function a(e,t,r,a){return e5.isUndefined(t)?e5.isUndefined(e)?void 0:n(void 0,e,r,a):n(e,t,r,a)}function o(e,t){if(!e5.isUndefined(t))return n(void 0,t)}function i(e,t){return e5.isUndefined(t)?e5.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,a,o){return o in t?n(r,a):o in e?n(void 0,r):void 0}let s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,r)=>a(tB(e),tB(t),r,!0)};return e5.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=e5.hasOwnProp(s,n)?s[n]:a,i=o(e[n],t[n],n);e5.isUndefined(i)&&o!==l||(r[n]=i)}),r}var tU=e=>{let t=tH({},e),{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=tk.from(i),t.url=tl(tz(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),e5.isFormData(r)){if(ty.hasStandardBrowserEnv||ty.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(e5.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)})}}if(ty.hasStandardBrowserEnv&&(n&&e5.isFunction(n)&&(n=n(t)),n||!1!==n&&tL(t.url))){let e=a&&o&&tD.read(o);e&&i.set(a,e)}return t},t$="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let a,o,i,l,s,u,c=tU(e),d=c.data,f=tk.from(c.headers).normalize(),{responseType:p,onUploadProgress:h,onDownloadProgress:m}=c;function g(){l&&l(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(a),c.signal&&c.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;function b(){if(!v)return;let n=tk.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());tF(function(e){t(e),g()},function(e){r(e),g()},{data:p&&"text"!==p&&"json"!==p?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v}),v=null}v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(b)},v.onabort=function(){v&&(r(new e3("Request aborted",e3.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){let n=new e3(t&&t.message?t.message:"Network Error",e3.ERR_NETWORK,e,v);n.event=t||null,r(n),v=null},v.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||tu;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new e3(t,n.clarifyTimeoutError?e3.ETIMEDOUT:e3.ECONNABORTED,e,v)),v=null},void 0===d&&f.setContentType(null),"setRequestHeader"in v&&e5.forEach(f.toJSON(),function(e,t){v.setRequestHeader(t,e)}),e5.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),p&&"json"!==p&&(v.responseType=c.responseType),m&&([i,s]=tP(m,!0),v.addEventListener("progress",i)),h&&v.upload&&([o,l]=tP(h),v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",l)),(c.cancelToken||c.signal)&&(a=t=>{v&&(r(!t||t.type?new tT(null,e,v):t),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(a),c.signal&&(c.signal.aborted?a():c.signal.addEventListener("abort",a)));let y=(n=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&u[1]||"");y&&-1===ty.protocols.indexOf(y)?r(new e3("Unsupported protocol "+y+":",e3.ERR_BAD_REQUEST,e)):v.send(d||null)})};let tW=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},tV=async function*(e,t){for await(let r of tq(e))yield*tW(r,t)},tq=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tG=(e,t,r,n)=>{let a,o=tV(e,t),i=0,l=e=>{!a&&(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){l(),e.close();return}let a=n.byteLength;if(r){let e=i+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},{isFunction:tK}=e5,tX=(({Request:e,Response:t})=>({Request:e,Response:t}))(e5.global),{ReadableStream:tZ,TextEncoder:tJ}=e5.global,tY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tQ=e=>{let t,{fetch:r,Request:n,Response:a}=e=e5.merge.call({skipUndefined:!0},tX,e),o=r?tK(r):"function"==typeof fetch,i=tK(n),l=tK(a);if(!o)return!1;let s=o&&tK(tZ),u=o&&("function"==typeof tJ?(t=new tJ,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&tY(()=>{let e=!1,t=new n(ty.origin,{body:new tZ,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=l&&s&&tY(()=>e5.isReadableStream(new a("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new e3(`Response type '${e}' is not supported`,e3.ERR_NOT_SUPPORT,r)})});let p=async e=>{if(null==e)return 0;if(e5.isBlob(e))return e.size;if(e5.isSpecCompliantForm(e)){let t=new n(ty.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return e5.isArrayBufferView(e)||e5.isArrayBuffer(e)?e.byteLength:(e5.isURLSearchParams(e)&&(e+=""),e5.isString(e))?(await u(e)).byteLength:void 0},h=async(e,t)=>{let r=e5.toFiniteNumber(e.getContentLength());return null==r?p(t):r};return async e=>{let t,{url:o,method:l,data:s,signal:u,cancelToken:p,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:E}=tU(e),x=r||fetch;b=b?(b+"").toLowerCase():"text";let _=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,a=function(e){if(!r){r=!0,i();let t=e instanceof Error?e:this.reason;n.abort(t instanceof e3?t:new tT(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,a(new e3(`timeout of ${t}ms exceeded`,e3.ETIMEDOUT))},t),i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));let{signal:l}=n;return l.unsubscribe=()=>e5.asap(i),l}})([u,p&&p.toAbortSignal()],m),S=null,C=_&&_.unsubscribe&&(()=>{_.unsubscribe()});try{if(v&&c&&"get"!==l&&"head"!==l&&0!==(t=await h(y,s))){let e,r=new n(o,{method:"POST",body:s,duplex:"half"});if(e5.isFormData(s)&&(e=r.headers.get("content-type"))&&y.setContentType(e),r.body){let[e,n]=tM(t,tP(tI(v)));s=tG(r.body,65536,e,n)}}e5.isString(w)||(w=w?"include":"omit");let r=i&&"credentials"in n.prototype,u={...E,signal:_,method:l.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:r?w:void 0};S=i&&new n(o,u);let p=await (i?x(S,E):x(o,u)),m=d&&("stream"===b||"response"===b);if(d&&(g||m&&C)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=e5.toFiniteNumber(p.headers.get("content-length")),[r,n]=g&&tM(t,tP(tI(g),!0))||[];p=new a(tG(p.body,65536,r,()=>{n&&n(),C&&C()}),e)}b=b||"text";let O=await f[e5.findKey(f,b)||"text"](p,e);return!m&&C&&C(),await new Promise((t,r)=>{tF(t,r,{data:O,headers:tk.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(t){if(C&&C(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new e3("Network Error",e3.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw e3.from(t,t&&t.code,e,S,t&&t.response)}}},t0=new Map,t1=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:a}=t,o=[n,a,r],i=o.length,l,s,u=t0;for(;i--;)l=o[i],void 0===(s=u.get(l))&&u.set(l,s=i?new Map:tQ(t)),u=s;return s};t1();let t2={http:null,xhr:t$,fetch:{get:t1}};e5.forEach(t2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let t4=e=>`- ${e}`,t5=e=>e5.isFunction(e)||null===e||!1===e;"use strict";var t8=function(e,t){let r,n,{length:a}=e=e5.isArray(e)?e:[e],o={};for(let i=0;i<a;i++){let a;if(n=r=e[i],!t5(r)&&void 0===(n=t2[(a=String(r)).toLowerCase()]))throw new e3(`Unknown adapter '${a}'`);if(n&&(e5.isFunction(n)||(n=n.get(t))))break;o[a||"#"+i]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new e3("There is no suitable adapter to dispatch the request "+(a?e.length>1?"since :\n"+e.map(t4).join("\n"):" "+t4(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function t3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tT(null,e)}function t9(e){return t3(e),e.headers=tk.from(e.headers),e.data=tR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t8(e.adapter||tE.adapter,e)(e).then(function(t){return t3(e),t.data=tR.call(e,e.transformResponse,t),t.headers=tk.from(t.headers),t},function(t){return!tj(t)&&(t3(e),t&&t.response&&(t.response.data=tR.call(e,e.transformResponse,t.response),t.response.headers=tk.from(t.response.headers))),Promise.reject(t)})}"use strict";let t6="1.13.6",t7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t7[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let re={};"use strict";t7.transitional=function(e,t,r){function n(e,t){return"[Axios v"+t6+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,o)=>{if(!1===e)throw new e3(n(a," has been removed"+(t?" in "+t:"")),e3.ERR_DEPRECATED);return t&&!re[a]&&(re[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,o)}},t7.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var rt=function(e,t,r){if("object"!=typeof e)throw new e3("options must be an object",e3.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let o=n[a],i=t[o];if(i){let t=e[o],r=void 0===t||i(t,o,e);if(!0!==r)throw new e3("option "+o+" must be "+r,e3.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new e3("Unknown option "+o,e3.ERR_BAD_OPTION)}};class rr{constructor(e){this.defaults=e||{},this.interceptors={request:new ts,response:new ts}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:a,paramsSerializer:o,headers:i}=t=tH(this.defaults,t);void 0!==a&&rt(a,{silentJSONParsing:t7.transitional(t7.boolean),forcedJSONParsing:t7.transitional(t7.boolean),clarifyTimeoutError:t7.transitional(t7.boolean),legacyInterceptorReqResOrdering:t7.transitional(t7.boolean)},!1),null!=o&&(e5.isFunction(o)?t.paramsSerializer={serialize:o}:rt(o,{encode:t7.function,serialize:t7.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rt(t,{baseUrl:t7.spelling("baseURL"),withXsrfToken:t7.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=i&&e5.merge(i.common,i[t.method]);i&&e5.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=tk.concat(l,i);let s=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||tu;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[t9.bind(this),void 0];for(e.unshift(...s),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=s.length;let f=t;for(;d<n;){let e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=t9.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return tl(tz((e=tH(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}"use strict";e5.forEach(["delete","get","head","options"],function(e){rr.prototype[e]=function(t,r){return this.request(tH(r||{},{method:e,url:t,data:(r||{}).data}))}}),e5.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,a){return this.request(tH(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}rr.prototype[e]=t(),rr.prototype[e+"Form"]=t(!0)});class rn{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new tT(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new rn(function(t){e=t}),cancel:e}}}"use strict";"use strict";let ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};"use strict";Object.entries(ra).forEach(([e,t])=>{ra[t]=e});let ro=function e(t){let r=new rr(t),n=eb(rr.prototype.request,r);return e5.extend(n,rr.prototype,r,{allOwnKeys:!0}),e5.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tH(t,r))},n}(tE);ro.Axios=rr,ro.CanceledError=tT,ro.CancelToken=rn,ro.isCancel=tj,ro.VERSION=t6,ro.toFormData=tr,ro.AxiosError=e3,ro.Cancel=ro.CanceledError,ro.all=function(e){return Promise.all(e)},ro.spread=function(e){return function(t){return e.apply(null,t)}},ro.isAxiosError=function(e){return e5.isObject(e)&&!0===e.isAxiosError},ro.mergeConfig=tH,ro.AxiosHeaders=tk,ro.formToJSON=e=>tw(e5.isHTMLForm(e)?new FormData(e):e),ro.getAdapter=t8,ro.HttpStatusCode=ra,ro.default=ro;let{Axios:ri,AxiosError:rl,CanceledError:rs,isCancel:ru,CancelToken:rc,VERSION:rd,all:rf,Cancel:rp,isAxiosError:rh,spread:rm,toFormData:rg,AxiosHeaders:rv,HttpStatusCode:rb,formToJSON:ry,getAdapter:rw,mergeConfig:rE}=ro,rx=null,r_={PLATFORM_NONCE:null,PLATFORM_REFERER:null},rS=e=>{let t,r=(t=new FormData,Object.entries(e).forEach(([e,r])=>{t.append(e,r)}),t);return r=(e=>{let{PLATFORM_NONCE:t,PLATFORM_REFERER:r}=r_;return t&&r&&(e.append("_nonce",t),e.append("_wp_http_referer",r)),e})(r),(()=>{if(!rx)throw Error("PlatformLayer is not initialized. Call initializePlatformLayer first.");return rx})().post("",r)},rC=(0,eg.createContext)(null),rO=()=>{let e=(0,eg.useContext)(rC);if(!e)throw Error("useAuth must be used within AuthProvider");return e},rk=({children:e})=>{let[t,r]=(0,eg.useState)(null),[n,a]=(0,eg.useState)(!0),[o,i]=(0,eg.useState)(!1),l=(0,eg.useCallback)(()=>{let e=document.getElementById("platform_api_url")?.value,t=document.getElementById("_nonce"),r=document.getElementsByName("_wp_http_referer")[0];!e||(Object.assign(r_,{PLATFORM_NONCE:t?.value||"",PLATFORM_REFERER:r?.value||""}),rx||(rx=function(e,t=!0){let r=ro.create({baseURL:e,withCredentials:t});return r.interceptors.response.use(e=>{if(e.config?.interceptorConfig?.disableResponseNormalizer)return e;let{data:t}=e;return t&&"number"==typeof t.responseCode&&(t.responseCode<200||t.responseCode>299)?Promise.reject(e):t?.content||t},e=>Promise.reject(e)),r}(e)))},[]),s=(0,eg.useCallback)(async()=>{try{let e=await rS({action:"createSettings"}),t=e?.data||e;t?.PROVIDER_API_KEY&&r(t.PROVIDER_API_KEY)}catch(e){r(null)}finally{a(!1)}},[]),u=(0,eg.useCallback)(async()=>{try{await rS({action:"update",key:"logout",value:"1"}),r(null)}catch(e){r(null)}},[]);return(0,eg.useEffect)(()=>{l()},[l]),(0,eg.useEffect)(()=>{(async()=>{let e=new URLSearchParams(window.location.search),t=e.get("code");if("0"===t){i(!0),a(!1);return}if(!t)return await s();try{let r,n={action:"update",key:"apiKey",value:t},a=e.get("domain");if(a){let e=new URL(a).hostname;n={action:"update",key:"apiKey|enterpriseDomain",value:`${t}|${e}`}}await rS(n),r=new URL(window.location.href),["code","domain"].forEach(e=>r.searchParams.delete(e)),window.history.replaceState({},document.title,r.pathname+r.search),await s()}catch(e){a(!1)}})()},[s]),eu(eg).createElement(rC.Provider,{value:{apiKey:t,loading:n,unauthorized:o,handleLogout:u}},e)};"use strict";"use strict";var eg=(eh("j89Fe"),eh("j89Fe")),rR={},rj=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,rT=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,rF=/^(?:(min|max)-)?(.+)/,rA=/(em|rem|px|cm|mm|in|pt|pc)?$/,rN=/(dpi|dpcm|dppx)?$/;function rP(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function rM(e){var t=parseFloat(e);switch(String(e).match(rN)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function rI(e){var t=parseFloat(e);switch(String(e).match(rA)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}var rL="u">typeof window?window.matchMedia:null;function rD(e,t,r){var n,a,o,i=this;function l(e){i.matches=e.matches,i.media=e.media}rL&&!r&&(o=rL.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(l)):(this.matches=(n=e,a=t,(function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(rj),r=t[1],n=t[2],a=t[3]||"",o={};return o.inverse=!!r&&"not"===r.toLowerCase(),o.type=n?n.toLowerCase():"all",o.expressions=(a=a.match(/\([^\)]+\)/g)||[]).map(function(e){var t=e.match(rT),r=t[1].toLowerCase().match(rF);return{modifier:r[1],feature:r[2],value:t[2]}}),o})})(n).some(function(e){var t=e.inverse,r="all"===e.type||a.type===e.type;if(r&&t||!(r||t))return!1;var n=e.expressions.every(function(e){var t=e.feature,r=e.modifier,n=e.value,o=a[t];if(!o)return!1;switch(t){case"orientation":case"scan":return o.toLowerCase()===n.toLowerCase();case"width":case"height":case"device-width":case"device-height":n=rI(n),o=rI(o);break;case"resolution":n=rM(n),o=rM(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":n=rP(n),o=rP(o);break;case"grid":case"color":case"color-index":case"monochrome":n=parseInt(n,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=n;case"max":return o<=n;default:return o===n}});return n&&!t||!n&&t})),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(l)}}rR=function(e,t,r){return new rD(e,t,r)};var rz=/[A-Z]/g,rB=/^ms-/,rH={};function rU(e){return"-"+e.toLowerCase()}var r$=function(e){if(rH.hasOwnProperty(e))return rH[e];var t=e.replace(rz,rU);return rH[e]=rB.test(t)?"-"+t:t},rW={};let rV=eu(rW=eh("aFOxS")()).oneOfType([eu(rW).string,eu(rW).number]),rq={all:eu(rW).bool,grid:eu(rW).bool,aural:eu(rW).bool,braille:eu(rW).bool,handheld:eu(rW).bool,print:eu(rW).bool,projection:eu(rW).bool,screen:eu(rW).bool,tty:eu(rW).bool,tv:eu(rW).bool,embossed:eu(rW).bool},{type:rG,...rK}={orientation:eu(rW).oneOf(["portrait","landscape"]),scan:eu(rW).oneOf(["progressive","interlace"]),aspectRatio:eu(rW).string,deviceAspectRatio:eu(rW).string,height:rV,deviceHeight:rV,width:rV,deviceWidth:rV,color:eu(rW).bool,colorIndex:eu(rW).bool,monochrome:eu(rW).bool,resolution:rV,type:Object.keys(rq)},rX={minAspectRatio:eu(rW).string,maxAspectRatio:eu(rW).string,minDeviceAspectRatio:eu(rW).string,maxDeviceAspectRatio:eu(rW).string,minHeight:rV,maxHeight:rV,minDeviceHeight:rV,maxDeviceHeight:rV,minWidth:rV,maxWidth:rV,minDeviceWidth:rV,maxDeviceWidth:rV,minColor:eu(rW).number,maxColor:eu(rW).number,minColorIndex:eu(rW).number,maxColorIndex:eu(rW).number,minMonochrome:eu(rW).number,maxMonochrome:eu(rW).number,minResolution:rV,maxResolution:rV,...rK};var rZ={...rq,...rX};let rJ=(0,eg.createContext)(void 0),rY=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[r$(r)]=e[r],t),{})},rQ=()=>{let e=(0,eg.useRef)(!1);return(0,eg.useEffect)(()=>{e.current=!0},[]),e.current};var eg=eh("j89Fe"),r0={};!function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(n=r(n,function(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var o in n)e.call(n,o)&&n[o]&&(a=r(a,o));return a}(o)))}return n}function r(e,t){return t?e?e+" "+t:e+t:e}r0?(t.default=t,r0=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}();var eg=eh("j89Fe");let r1=({className:e,size:t="medium",theme:r="current",...n})=>{let a=eu(r0)("magnet-loader",`magnet-loader--${t}`,`magnet-loader--${r}`,e);return eu(eg).createElement("div",{className:a,...n},eu(eg).createElement("span",{className:"magnet-loader__spinner"}),eu(eg).createElement("div",{className:"magnet-loader__track"}))};r1.propTypes={className:rW.string,size:(0,rW.oneOf)(["small","medium","large","xlarge"]),theme:(0,rW.oneOf)(["current","dark","light"])},r1.defaultProps={size:"medium",theme:"current"};var eg=eh("j89Fe");let r2=({className:e,children:t,colorStyle:r="primary",invert:n=!1,outline:a=!1,size:o="medium",text:i,theme:l="light",icon:s,...u})=>{let c=eu(eg).Children.count(t)>0||!!i,d=eu(r0)("magnet-indicator",`magnet-indicator--${o}`,`magnet-indicator--${r}`,`magnet-indicator--${l}`,{"magnet-indicator--invert":n},{"magnet-indicator--outline":a},{"magnet-indicator--has-children":c},{"magnet-indicator--has-icon":!!s},e);return eu(eg).createElement("span",{className:d,...u},s&&eu(eg).createElement(s,{className:"magnet-indicator__icon"}),i,t)};r2.propTypes={className:rW.string,children:rW.node,colorStyle:(0,rW.oneOf)(["primary","secondary","success","error","warning"]),invert:rW.bool,outline:rW.bool,size:(0,rW.oneOf)(["x-small","small","medium","large"]),text:rW.string,theme:(0,rW.oneOf)(["light","dark"]),icon:rW.node},r2.defaultProps={colorStyle:"primary",invert:!1,outline:!1,size:"medium",theme:"light"};var eg=eh("j89Fe");let r4=(0,eg.createContext)(null),r5=(0,eg.createContext)(null),r8=(e,t)=>{let r={};return t.forEach(t=>{e&&t in e&&(r[t]=e[t])}),r},r3=(e,t,r,n)=>{let a=(0,eg.useContext)(r5);return(0,eg.useMemo)(()=>{let o={...t};return a&&Object.assign(o,r8(a,r.filter(e=>e in a))),n&&Object.assign(o,r8(n,r)),Object.assign(o,e),o},[n,a,e,t,r])},r9=["colorStyle","disabled","readOnly","required","size","theme","id","compact","rounded"],r6=(e,t,r=r9)=>r3(e,t,r,(0,eg.useContext)(r4)),r7=(0,eg.forwardRef)((e,t)=>{let{children:r,className:n,colorStyle:a="primary",disabled:o=!1,endIcon:i,fullWidth:l=!1,href:s,srOnlyText:u,loader:c=!1,loaderText:d,indicatorText:f,invert:p=!1,rounded:h=!1,showTextOnHover:m=!1,size:g="medium",startIcon:v,showTextOnly:b,theme:y="light",type:w="button",variant:E="filled",onClick:x,..._}=((e,t,r=["theme","size"])=>r3(e,t,r,(0,eg.useContext)(r5)))(e,{colorStyle:"primary",disabled:!1,fullWidth:!1,invert:!1,loader:!1,rounded:!1,showTextOnHover:!1,showTextOnly:null,size:"medium",theme:"light",type:"button",variant:"filled"},["theme","size"]),S=!!f,C=!!r,O=!!d,k=!o&&c,R=O&&k?d:r,j=C||O&&k,T=eu(r0)("jfButton",`jfButton--${E}`,`jfButton--${a}`,`jfButton--${g}`,`jfButton--${y}`,{"jfButton--loading":k,"jfButton--rounded":h,"jfButton--full-width":l,"jfButton--show-text-on-hover":m,"jfButton--invert":p},n),F=eu(eg).createElement(r1,{className:"jfButton--loader-icon",size:g}),A=O?F:eu(eg).createElement("span",{className:"jfButton--loader-overlay"},F),N=(e,t={})=>"function"==typeof e?eu(eg).createElement(e,{className:"jfButton--icon",...t}):eu(eg).createElement("span",{className:"jfButton--icon","aria-hidden":"true"},e),P=eu(eg).createElement(eu(eg).Fragment,null,v&&!k&&N(v),k&&A,j&&eu(eg).createElement("span",{className:eu(r0)("jfButton--text",{"jfButton--text-hidden":m&&!k},{"jfButton--text-opacity-0":k&&!O&&C})},R),S&&!O&&!k&&eu(eg).createElement(r2,{colorStyle:["primary","success","error","secondary"].includes(a)?a:void 0,invert:"filled"===E,size:g,className:eu(r0)("jfButton--indicator",{"jfButton--indicator-hidden":k})},f),i&&!S&&!k&&N(i),u&&!j&&eu(eg).createElement("span",{className:"sr-only"},u));return eu(eg).createElement(s?"a":"button",{..._,href:s||void 0,type:!s&&w?w:void 0,disabled:o||k,className:T,ref:t,onClick:x},P)});r7.displayName="Button",r7.propTypes={children:rW.node,className:rW.string,colorStyle:(0,rW.oneOf)(["primary","secondary","success","error","neutral","analytics","pages","teams","sign","pdf","apps","reports","forms","tables","inbox","approvals","ai","boards"]),disabled:rW.bool,endIcon:rW.node,fullWidth:rW.bool,href:rW.string,indicatorText:rW.string,invert:rW.bool,loader:rW.bool,loaderText:rW.string,onClick:rW.func,rounded:rW.bool,showTextOnHover:rW.bool,showTextOnly:(0,rW.oneOf)(["xs","sm","md","lg","xl","xxl"]),size:(0,rW.oneOf)(["small","medium","large"]),startIcon:rW.node,srOnlyText:rW.string,theme:(0,rW.oneOf)(["light","dark"]),type:(0,rW.oneOf)(["button","submit","reset"]),variant:(0,rW.oneOf)(["filled","outline","ghost"])},r7.defaultProps={colorStyle:"primary",disabled:!1,fullWidth:!1,invert:!1,loader:!1,rounded:!1,showTextOnHover:!1,showTextOnly:null,size:"medium",theme:"light",type:"button",variant:"filled"};var eg=(eh("j89Fe"),eh("j89Fe"));let ne=({children:e,...t})=>eu(eg).createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",...t},e),nt=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M5 11a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Z",clipRule:"evenodd"})),nr=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M18.707 7.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L10 14.586l7.293-7.293a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nn=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293Z",clipRule:"evenodd"})),na=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4C9.277 4 7.031 5.239 5.33 6.698c-1.7 1.458-2.89 3.164-3.512 4.174-.43.697-.43 1.56 0 2.256.623 1.01 1.812 2.716 3.512 4.174C7.032 18.762 9.278 20 12 20c2.72 0 4.967-1.239 6.668-2.698 1.7-1.458 2.89-3.164 3.513-4.174a2.138 2.138 0 0 0 0-2.256c-.623-1.01-1.812-2.716-3.513-4.174C16.968 5.238 14.721 4 12 4Zm0 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm2-4a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),no=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M15.763 17.175a8.5 8.5 0 1 1 1.413-1.413l.031.03 4.5 4.5a1 1 0 0 1-1.414 1.415l-4.5-4.5a.903.903 0 0 1-.03-.032ZM17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z",clipRule:"evenodd"})),ni=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15v-2h-2v2h2Zm0-4V7h-2v6h2Z",clipRule:"evenodd"})),nl=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm0-15a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2.5a1 1 0 0 0-1-1h-1.5a1 1 0 1 0 0 2h.5V17a1 1 0 1 0 2 0v-6.5Z","clip-rule":"evenodd"})),ns=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M14.707 5.293a1 1 0 0 1 0 1.414L9.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nu=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M11.707 8.293a1 1 0 0 1 1.414 0l-6 6a1 1 0 0 1-1.414-1.414l6-6Z",clipRule:"evenodd"})),nc=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12.293 15.707a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 1.414-1.414l6 6a1 1 0 0 1 0 1.414Z",clipRule:"evenodd"})),nd=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z",clipRule:"evenodd"})),nf=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M17.467 2.293a1 1 0 0 0-1.414 0L11.81 6.536a1 1 0 0 0 0 1.414l4.243 4.242a1 1 0 0 0 1.414 0L21.71 7.95a1 1 0 0 0 0-1.414l-4.243-4.243ZM3 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H3Zm0 10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H3Zm9 1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-6Z","clip-rule":"evenodd"})),np=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4a1 1 0 0 1 1 1v4.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L11 9.586V5a1 1 0 0 1 1-1Z",clipRule:"evenodd"})),nh=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 20a1 1 0 0 1-1-1v-4.586l-2.293 2.293a1 1 0 1 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 1 1-1.414 1.414L13 14.414V19a1 1 0 0 1-1 1Z",clipRule:"evenodd"})),nm=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2a4 4 0 0 1 4 4v2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2V6a4 4 0 0 1 4-4Zm0 2a2 2 0 0 0-2 2v2h4V6a2 2 0 0 0-2-2Z",clipRule:"evenodd"})),ng=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 0 0-1.414 1.414l16 16a1 1 0 0 0 1.414-1.414l-16-16ZM12 6c-2.52 0-4.8 1.12-6.36 2.92L2.92 4.36C4.72 2.8 6 2 8 2c4.97 0 9 4.03 9 9 0 2-.8 3.28-2.36 4.64L17.08 18.4C18.88 16.8 20 14.52 20 12c0-4.97-4.03-9-9-9Z",clipRule:"evenodd"})),nv=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M16.707 3.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-.414.263l-3 1a1 1 0 0 1-1.263-1.263l1-3a1 1 0 0 1 .263-.414l10-10a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nb=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z",clipRule:"evenodd"})),ny=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M8 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-3V3a1 1 0 0 0-1-1H8Zm2 2h4v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V4Z",clipRule:"evenodd"})),nw=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M8 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-3V3a1 1 0 0 0-1-1H8Zm2 2h4v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V4Z",clipRule:"evenodd"})),nE=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1Z",clipRule:"evenodd"})),nx=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M4 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4Zm0 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2Zm0 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2Z",clipRule:"evenodd"})),n_=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M4 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"})),nS=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M1 6a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v9a4 4 0 0 1-4 4H5a4 4 0 0 1-4-4V6Zm2 9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2H3Zm18-2H3V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7ZM7 21a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z","clip-rule":"evenodd"})),nC=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V4Zm3-1a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-1v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V3H7Zm3 0h4v1h-4V3Zm0 15a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Z","clip-rule":"evenodd"})),nO=(0,eg.forwardRef)(({value:e,defaultValue:t,onChange:r=e=>e,maxLength:n,prefix:a=null,suffix:o=null,type:i="text",readOnly:l,disabled:s,showLockIconInReadOnly:u=!1,useDefaultStyleInReadOnly:c,ghost:d,inputClassName:f,required:p,rounded:h,size:m,theme:g,...v},b)=>{let y=null!=e;(0,eg.useRef)(y);let[w,E]=(0,eg.useState)(t??""),[x,_]=(0,eg.useState)(!1),S=y?e??"":w,C=(0,eg.useMemo)(()=>n?S?.length??0:0,[S,n]),O="password"===i,k=i;O&&(k=x?"text":"password");let R=null;O?R=eu(eg).createElement(na,null):o?.icon&&(R=o.icon);let j=O?()=>_(e=>!e):o?.onClick,T=l||s,F=T&&u,A=R;F?A=eu(eg).createElement(nm,null):O&&(A=eu(eg).createElement(na,null));let N=a?.as||null,P=o?.as||(O||F?"button":null),M=a?.icon?"function"==typeof a.icon?eu(eg).createElement(a.icon,{className:a.className}):a.icon:null;return eu(eg).createElement("div",{className:`jfInput${d?" jfInput--ghost":""} ${c&&T?" jfInput--readonly-default":""}`},N&&eu(eg).createElement(N,{className:`jfInput--prefix ${a?.className||""}`,htmlFor:a?.htmlFor},M,a?.text&&eu(eg).createElement("span",{className:"jfInput--prefix-text"},a.text)),eu(eg).createElement("input",{ref:b,...v,...y?{value:S}:{defaultValue:S},type:k,maxLength:n,onChange:e=>{y||E(e.target.value),r?.(e)},readOnly:l,disabled:s,required:p,className:f}),n&&eu(eg).createElement("div",{className:"jfInput--counter"},`${C} / ${n}`),P&&eu(eg).createElement(P,{className:"jfInput--suffix",onClick:T?void 0:j,type:"button",...O?{"aria-label":x?"Hide password":"Show password"}:{}},A&&eu(eg).createElement("span",{className:"jfInput--suffix-icon","aria-hidden":"true"},A)))});nO.defaultProps={prefix:null,suffix:null,defaultValue:""},nO.propTypes={value:rW.string,defaultValue:rW.string,onChange:rW.func,maxLength:rW.number,type:rW.string,prefix:(0,rW.shape)({as:rW.elementType,icon:rW.node,text:rW.node,className:rW.string,htmlFor:rW.string}),suffix:(0,rW.shape)({as:rW.elementType,icon:rW.node,onClick:rW.func})};var eg=eh("j89Fe");let nk=(0,eg.forwardRef)((e,t)=>eu(eg).createElement(nO,{ref:t,...e}));nk.displayName="InputText";var eg=eh("j89Fe");let nR=({checked:e,onChange:t,onClick:r,ariaLabel:n,readOnly:a,error:o,loader:i,type:l="checkbox",size:s,disabled:u,...c})=>eu(eg).createElement("label",{className:`widgets-toggle ${o?"widgets-toggle--error":""} ${i?"widgets-toggle--loader":""}`,"aria-label":n,"aria-checked":"checkbox"===l?!!e:void 0,"aria-pressed":"button"===l?!!e:void 0,onClick:e=>{a||i||u?e.preventDefault():r&&r(e)}},i&&eu(eg).createElement("span",{className:"widgets-toggle--loader-spinner"}),eu(eg).createElement("input",{className:"widgets-toggle--input",type:l,checked:"checkbox"===l?e:void 0,onChange:a||i?void 0:t,disabled:a||i||u,...c}),eu(eg).createElement("span",{className:"widgets-toggle--slider"}));nR.propTypes={checked:rW.bool.isRequired,onChange:rW.func,onClick:rW.func,ariaLabel:rW.string,readOnly:rW.bool,error:rW.bool,loader:rW.bool,type:rW.string,size:rW.string,disabled:rW.bool};var eg=(eh("j89Fe"),eh("j89Fe"));let nj=({style:e={},className:t,description:r,disabled:n,id:a,input:o,label:i,size:l="medium",theme:s="light",truncate:u,compact:c=!1,variant:d="ghost"})=>{let f=r?.length>0,p=i?.length>0,h=eu(r0)("magnet-choice-label",`magnet-choice-label--${l}`,`magnet-choice-label--${s}`,`magnet-choice-label--${d}`,{"magnet-choice-label--compact":c},{"magnet-choice-label--disabled":n},u&&`magnet-choice-label--truncate-${u}`,t);return eu(eg).createElement("label",{className:h,htmlFor:a,style:e},o,eu(eg).createElement("span",{className:"magnet-choice-label__container"},p&&eu(eg).createElement("span",{className:"magnet-choice-label__text"},i),f&&eu(eg).createElement("span",{className:"magnet-choice-label__description"},r)))};nj.propTypes={className:rW.string,description:rW.string,disabled:rW.bool,id:rW.string,input:rW.node.isRequired,label:rW.string,size:(0,rW.oneOf)(["small","medium","large"]),theme:(0,rW.oneOf)(["light","dark"]),truncate:(0,rW.oneOf)(["both","description","label"]),compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"])},nj.defaultProps={description:"",label:"",disabled:!1,size:"medium",theme:"light",compact:!1,variant:"ghost"};let nT=(0,eg.forwardRef)((e,t)=>{let{checked:r,label:n,description:a,onChange:o,onClick:i,size:l="medium",theme:s="light",indeterminate:u,error:c,compact:d,variant:f="ghost",id:p,truncate:h,style:m,...g}=r6(e,{size:"medium",theme:"light",disabled:!1},["disabled","size","theme"]),v=n&&n.length>0,b=a&&a.length>0,y=eu(r0)("jfCheckbox--checkmark",`jfCheckbox--${l}`,{"jfCheckbox--error":c}),w=eu(eg).useRef(null);eu(eg).useEffect(()=>{w.current&&(w.current.indeterminate=!!u)},[u]);let E=eu(eg).createElement("span",{className:y},eu(eg).createElement("input",{type:"checkbox",id:p,checked:r,ref:e=>{w.current=e,"function"==typeof t?t(e):t&&(t.current=e)},onChange:o,onClick:i,disabled:g.disabled,...g}),r&&!u&&eu(eg).createElement(nr,{className:"jfCheckbox__icon"}),u&&eu(eg).createElement(nt,{className:"jfCheckbox__icon"}));return v||b?eu(eg).createElement(nj,{style:m,id:p,input:E,description:a,label:n,size:l,disabled:g.disabled,theme:s,truncate:h,compact:d,variant:f}):E});nT.displayName="Checkbox",nT.propTypes={checked:rW.bool.isRequired,label:rW.string,description:rW.string,onChange:rW.func,onClick:rW.func,size:(0,rW.oneOf)(["small","medium","large"]),indeterminate:rW.bool,error:rW.bool,compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"]),id:rW.string,truncate:(0,rW.oneOf)(["both","description","label"])};var eg=eh("j89Fe");let nF=(0,eg.forwardRef)((e,t)=>{let{checked:r,label:n,description:a,onChange:o,size:i="medium",theme:l="light",error:s,compact:u,variant:c="ghost",id:d,value:f,truncate:p,...h}=r6(e,{disabled:!1},["disabled"]),m=n&&n.length>0,g=a&&a.length>0,v=eu(r0)("jfRadio--checkmark",`jfRadio--${i}`,{"jfRadio--error":s}),b=eu(eg).createElement("span",{className:v},eu(eg).createElement("input",{type:"radio",id:d,checked:!!r,value:f,ref:t,onChange:o,disabled:h.disabled,...h}),!!r&&eu(eg).createElement("span",{className:"jfRadio--checkmark-inner"}));return m||g?eu(eg).createElement(nj,{id:d,input:b,description:a,label:n,size:i,disabled:h.disabled,theme:l,truncate:p,compact:u,variant:c}):b});nF.displayName="Radio",nF.propTypes={checked:rW.bool.isRequired,label:rW.string,description:rW.string,onChange:rW.func.isRequired,size:(0,rW.oneOf)(["small","medium","large"]),theme:(0,rW.oneOf)(["light","dark"]),error:rW.bool,compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"]),id:rW.string,value:rW.string,truncate:(0,rW.oneOf)(["both","description","label"])};var eg=eh("j89Fe");rW.node.isRequired,rW.string,rW.func;var eg=eh("j89Fe");let nA=(0,eg.forwardRef)((e,t)=>{let{children:r,value:n,onChange:a,size:o="medium",disabled:i,readOnly:l,required:s,rounded:u,colorStyle:c,showLockIconInReadOnly:d=!1,id:f,theme:p,className:h,...m}=r6(e,{size:"medium",theme:"light",rounded:"both"}),g=!!l,v=!!i||g,b=g&&d,y=eu(r0)("jfSelect",`jfSelect--${o}`,`jfSelect--${p}`,{"jfSelect--readonly":g},{"jfSelect--with-lock":b},h);return eu(eg).createElement("div",{className:y},eu(eg).createElement("select",{ref:t,id:f,value:n??"",onChange:a,disabled:v,required:s,...m},r),b&&eu(eg).createElement("span",{className:"jfSelect--lock","aria-hidden":!0},eu(eg).createElement(nm,null)))});nA.displayName="Select",nA.propTypes={children:rW.node,value:rW.string,onChange:rW.func,size:rW.string,disabled:rW.bool,readOnly:rW.bool,required:rW.bool,rounded:rW.string,colorStyle:rW.string,showLockIconInReadOnly:rW.bool,id:rW.string,theme:rW.string};var eg=eh("j89Fe"),nN=({children:e,value:t})=>eu(eg).createElement("option",{value:t},e),eg=(eh("j89Fe"),eh("j89Fe"));let nP="u">typeof document?eu(eg).useLayoutEffect:()=>{},nM=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},nI=e=>e&&"window"in e&&e.window===e?e:nM(e).defaultView||window;function nL(e,t){return!!t&&!!e&&e.contains(t)}function nD(e){return e.target}"u">typeof Element&&Element.prototype;let nz=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];nz.join(":not([hidden]),"),nz.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),nz.join(':not([hidden]):not([tabindex="-1"]),');let nB=null;var eg=eh("j89Fe");function nH(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function nU(e){let t=(0,eg.useRef)({isFocused:!1,observer:null});return nP(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,eg.useCallback)(r=>{let n=nD(r);(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&(t.current.isFocused=!0,n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=nH(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null==(e=t.current.observer)||e.disconnect();let r=n===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function n$(e){var t;if("u"<typeof window||null==window.navigator)return!1;let r=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function nW(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function nV(e){let t=null;return()=>(null==t&&(t=e()),t)}let nq=nV(function(){return nW(/^Mac/i)}),nG=nV(function(){return nW(/^iPhone/i)}),nK=nV(function(){return nW(/^iPad/i)||nq()&&navigator.maxTouchPoints>1}),nX=nV(function(){return nG()||nK()});nV(function(){return nq()||nX()});let nZ=nV(function(){return n$(/AppleWebKit/i)&&!nJ()}),nJ=nV(function(){return n$(/Chrome/i)}),nY=nV(function(){return n$(/Android/i)}),nQ=nV(function(){return n$(/Firefox/i)});var eg=eh("j89Fe");function n0(e,t,r=!0){var n,a;let{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}=t;nQ()&&(null==(a=window.event)||null==(n=a.type)?void 0:n.startsWith("key"))&&"_blank"===e.target&&(nq()?o=!0:i=!0);let u=nZ()&&nq()&&!nK()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});if(n0.isOpening=r,function(){if(null==nB){nB=!1;try{document.createElement("div").focus({get preventScroll(){return nB=!0,!0}})}catch{}}return nB}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}e.dispatchEvent(u),n0.isOpening=!1}(0,eg.createContext)({isNative:!0,open:function(e,t){if(e instanceof HTMLAnchorElement)n0(e,t);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),n0(r,t),e.removeChild(r)}},useHref:e=>e}),n0.isOpening=!1;var eg=(eh("j89Fe"),eh("j89Fe"));let n1={prefix:String(Math.round(1e10*Math.random())),current:0};eu(eg).createContext(n1),eu(eg).createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;eu(eg).useId;let n2=null,n4=new Set,n5=new Map,n8=!1,n3=!1,n9={Tab:!0,Escape:!0};function n6(e,t){for(let r of n4)r(e,t)}function n7(e){n8=!0,n0.isOpening||e.metaKey||!nq()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(n2="keyboard",n6("keyboard",e))}function ae(e){n2="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(n8=!0,n6("pointer",e))}function at(e){n0.isOpening||(""!==e.pointerType||!e.isTrusted)&&(nY()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(n8=!0,n2="virtual")}function ar(e){nD(e)!==window&&nD(e)!==document&&e.isTrusted&&(n8||n3||(n2="virtual",n6("virtual",e)),n8=!1,n3=!1)}function an(){n8=!1,n3=!0}function aa(e){if("u"<typeof window||"u"<typeof document||n5.get(nI(e)))return;let t=nI(e),r=nM(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){n8=!0,n.apply(this,arguments)},r.addEventListener("keydown",n7,!0),r.addEventListener("keyup",n7,!0),r.addEventListener("click",at,!0),t.addEventListener("focus",ar,!0),t.addEventListener("blur",an,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",ae,!0),r.addEventListener("pointermove",ae,!0),r.addEventListener("pointerup",ae,!0)),t.addEventListener("beforeunload",()=>{ao(e)},{once:!0}),n5.set(t,{focus:n})}let ao=(e,t)=>{let r=nI(e),n=nM(e);t&&n.removeEventListener("DOMContentLoaded",t),n5.has(r)&&(r.HTMLElement.prototype.focus=n5.get(r).focus,n.removeEventListener("keydown",n7,!0),n.removeEventListener("keyup",n7,!0),n.removeEventListener("click",at,!0),r.removeEventListener("focus",ar,!0),r.removeEventListener("blur",an,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",ae,!0),n.removeEventListener("pointermove",ae,!0),n.removeEventListener("pointerup",ae,!0)),n5.delete(r))};function ai(){return"pointer"!==n2}"u">typeof document&&("loading"!==(i=nM(void 0)).readyState?aa(void 0):i.addEventListener("DOMContentLoaded",()=>{aa(void 0)}));let al=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function as(){let e=(0,eg.useRef)(new Map),t=(0,eg.useCallback)((t,r,n,a)=>{let o=(null==a?void 0:a.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:a}),t.addEventListener(r,o,a)},[]),r=(0,eg.useCallback)((t,r,n,a)=>{var o;let i=(null==(o=e.current.get(n))?void 0:o.fn)||n;t.removeEventListener(r,i,a),e.current.delete(n)},[]),n=(0,eg.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,eg.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function au(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:a}=e,o=(0,eg.useRef)({isFocused:!1,isFocusVisible:r||ai()}),[i,l]=(0,eg.useState)(!1),[s,u]=(0,eg.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,eg.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,eg.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=ai(),l(e),c()},[c]);t={enabled:i,isTextInput:n},aa(),(0,eg.useEffect)(()=>{if((null==t?void 0:t.enabled)===!1)return;let e=(e,r)=>{var n;let a,i,l,s,u,d,f;n=!!(null==t?void 0:t.isTextInput),a=nM(r?nD(r):void 0),i=r?nD(r):void 0,l="u">typeof window?nI(i).HTMLInputElement:HTMLInputElement,s="u">typeof window?nI(i).HTMLTextAreaElement:HTMLTextAreaElement,u="u">typeof window?nI(i).HTMLElement:HTMLElement,d="u">typeof window?nI(i).KeyboardEvent:KeyboardEvent,f=((e=document)=>e.activeElement)(a),(n=n||f instanceof l&&!al.has(f.type)||f instanceof s||f instanceof u&&f.isContentEditable)&&"keyboard"===e&&r instanceof d&&!n9[r.key]||(e=>{o.current.isFocusVisible=e,c()})(ai())};return n4.add(e),()=>{n4.delete(e)}},[n,i]);let{focusProps:f}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e,o=(0,eg.useCallback)(e=>{if(nD(e)===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),i=nU(o),l=(0,eg.useCallback)(e=>{let t=nD(e),n=nM(t),o=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(r&&r(e),a&&a(!0),i(e))},[a,r,i]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:!t&&(n||a)?o:void 0}}}({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=(0,eg.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=as(),s=(0,eg.useCallback)(e=>{nL(e.currentTarget,nD(e))&&o.current.isFocusWithin&&!nL(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(e),a&&a(!1))},[r,a,o,l]),u=nU(s),c=(0,eg.useCallback)(e=>{if(!nL(e.currentTarget,nD(e)))return;let t=nD(e),r=nM(t),l=((e=document)=>e.activeElement)(r);if(!o.current.isFocusWithin&&l===t){n&&n(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(r,"focus",e=>{let n=nD(e);if(o.current.isFocusWithin&&!nL(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),s(nH(e))}},{capture:!0})}},[n,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:a?p:f}}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let ac=!1,ad=0;function af(e){"touch"===e.pointerType&&(ac=!0,setTimeout(()=>{ac=!1},50))}function ap(){if("u">typeof document)return 0===ad&&"u">typeof PointerEvent&&document.addEventListener("pointerup",af),ad++,()=>{!(--ad>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",af)}}function ah(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,i]=(0,eg.useState)(!1),l=(0,eg.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,eg.useEffect)(ap,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=as(),{hoverProps:c,triggerHoverEnd:d}=(0,eg.useMemo)(()=>{let e=(e,t)=>{let a=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&a&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:a,pointerType:t}),r&&r(!1),i(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=n=>{ac&&"mouse"===n.pointerType||((n,o)=>{if(l.pointerType=o,a||"touch"===o||l.isHovered||!nL(n.currentTarget,nD(n)))return;l.isHovered=!0;let u=n.currentTarget;l.target=u,s(nM(nD(n)),"pointerover",t=>{l.isHovered&&l.target&&!nL(l.target,nD(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),r&&r(!0),i(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!a&&nL(t.currentTarget,nD(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,a,l,s,u]);return(0,eg.useEffect)(()=>{a&&d({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:c,isHovered:o}}var eg=(eh("j89Fe"),eh("j89Fe")),am=Object.defineProperty,ag=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?am(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};let av=new class{constructor(){ag(this,"current",this.detect()),ag(this,"handoffState","pending"),ag(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function ab(e){var t;return av.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ay(e){var t,r;return av.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function aw(e){var t,r;return null!=(r=null==(t=ay(e))?void 0:t.activeElement)?r:null}function aE(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function ax(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add(()=>e.removeEventListener(r,n,a))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return aE(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=ax();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function a_(){let[e]=(0,eg.useState)(ax);return(0,eg.useEffect)(()=>()=>e.dispose(),[e]),e}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let aS=(e,t)=>{av.isServer?(0,eg.useEffect)(e,t):(0,eg.useLayoutEffect)(e,t)};function aC(e){let t=(0,eg.useRef)(e);return aS(()=>{t.current=e},[e]),t}let aO=function(e){let t=aC(e);return eu(eg).useCallback((...e)=>t.current(...e),[t])};function ak({disabled:e=!1}={}){let t=(0,eg.useRef)(null),[r,n]=(0,eg.useState)(!1),a=a_(),o=aO(()=>{t.current=null,n(!1),a.dispose()}),i=aO(e=>{if(a.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=ab(e.currentTarget);a.addEventListener(r,"pointerup",o,!1),a.addEventListener(r,"pointermove",e=>{if(t.current){var r,a;let o,i;n((o=e.width/2,i=e.height/2,r={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},a=t.current.getBoundingClientRect(),!(!r||!a||r.right<a.left||r.left>a.right||r.bottom<a.top||r.top>a.bottom)))}},!1),a.addEventListener(r,"pointercancel",o,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:i,onPointerUp:o,onClick:o}}}function aR(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function aj(e,t,r=!1){let[n,a]=(0,eg.useState)(()=>aR(t));return aS(()=>{if(!t||!e)return;let r=ax();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),a(e=>{let r=aR(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}function aT(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}function aF(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function aA(e){return aF(e)&&"tagName"in e}function aN(e){return aA(e)&&"accessKey"in e}function aP(e){return aA(e)&&"tabIndex"in e}function aM(e){return aN(e)&&"INPUT"===e.nodeName}function aI(e){return aN(e)&&"LABEL"===e.nodeName}function aL(e){return aN(e)&&"LEGEND"===e.nodeName}function aD(e,t,r){let n=aC(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()});(0,eg.useEffect)(()=>{if(!e)return;let r=null===t?null:aN(t)?t:t.current;if(!r)return;let a=ax();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>n.current(r));e.observe(r),a.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>n.current(r));e.observe(r),a.add(()=>e.disconnect())}return()=>a.dispose()},[t,n,e])}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function az(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,az),n}let aB=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),aH=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var aU=((l=aU||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l[l.AutoFocus=64]="AutoFocus",l),a$=((s=a$||{})[s.Error=0]="Error",s[s.Overflow=1]="Overflow",s[s.Success=2]="Success",s[s.Underflow=3]="Underflow",s),aW=((u=aW||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u);function aV(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(aB)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var aq=((c=aq||{})[c.Strict=0]="Strict",c[c.Loose=1]="Loose",c);function aG(e,t=0){var r;return e!==(null==(r=ab(e))?void 0:r.body)&&az(t,{0:()=>e.matches(aB),1(){let t=e;for(;null!==t;){if(t.matches(aB))return!0;t=t.parentElement}return!1}})}function aK(e){ax().nextFrame(()=>{let t=aw(e);t&&aP(t)&&!aG(t,0)&&aZ(e)})}var aX=((d=aX||{})[d.Keyboard=0]="Keyboard",d[d.Mouse=1]="Mouse",d);function aZ(e){null==e||e.focus({preventScroll:!0})}function aJ(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function aY(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){var o,i,l;let s=Array.isArray(e)?e.length>0?ay(e[0]):document:ay(e),u=Array.isArray(e)?r?aJ(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(aH)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):aV(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),n=null!=n?n:null==s?void 0:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(n))-1;if(4&t)return Math.max(0,u.indexOf(n))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,m;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=u[e])||m.focus(f),p+=c}while(m!==aw(m))return 6&t&&null!=(l=null==(i=null==(o=m)?void 0:o.matches)?void 0:i.call(o,"textarea,input"))&&l&&m.select(),2}function aQ(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function a0(){return aQ()||/Android/gi.test(window.navigator.userAgent)}function a1(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}},[e,t,n])}function a2(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}},[e,t,n])}function a4(e,t,r){let n=aC(r),a=(0,eg.useCallback)(function(e,r){if(e.defaultPrevented)return;let a=r(e);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let r of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==r&&(r.contains(a)||e.composed&&e.composedPath().includes(r)))return;return aG(a,aq.Loose)||-1===a.tabIndex||e.preventDefault(),n.current(e,a)}},[n,t]),o=(0,eg.useRef)(null);a1(e,"pointerdown",e=>{var t,r;a0()||(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),a1(e,"pointerup",e=>{if(a0()||!o.current)return;let t=o.current;return o.current=null,a(e,()=>t)},!0);let i=(0,eg.useRef)({x:0,y:0});a1(e,"touchstart",e=>{i.current.x=e.touches[0].clientX,i.current.y=e.touches[0].clientY},!0),a1(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-i.current.x)>=30||Math.abs(t.y-i.current.y)>=30))return a(e,()=>aP(e.target)?e.target:null)},!0),a2(e,"blur",e=>a(e,()=>{var e;return aN(e=window.document.activeElement)&&"IFRAME"===e.nodeName?window.document.activeElement:null}),!0)}function a5(...e){return(0,eg.useMemo)(()=>ab(...e),[...e])}function a8(e,t){return(0,eg.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function a3(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var a9=((f=a9||{})[f.None=0]="None",f[f.RenderStrategy=1]="RenderStrategy",f[f.Static=2]="Static",f),a6=((p=a6||{})[p.Unmount=0]="Unmount",p[p.Hidden=1]="Hidden",p);function a7(){let e,t,r=(e=(0,eg.useRef)([]),t=(0,eg.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),(...r)=>{if(!r.every(e=>null==e))return e.current=r,t});return(0,eg.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:i,mergeRefs:l}){l=null!=l?l:ot;let s=or(t,e);if(o)return oe(s,r,n,i,l);let u=null!=a?a:0;if(2&u){let{static:e=!1,...t}=s;if(e)return oe(t,r,n,i,l)}if(1&u){let{unmount:e=!0,...t}=s;return az(+!e,{0:()=>null,1:()=>oe({...t,hidden:!0,style:{display:"none"}},r,n,i,l)})}return oe(s,r,n,i,l)})({mergeRefs:r,...e}),[r])}function oe(e,t={},r,n,a){let{as:o=r,children:i,refName:l="ref",...s}=oi(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},c="function"==typeof i?i(t):i;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d[`data-${e}`]=""}if(ol(o)&&(Object.keys(oo(s)).length>0||Object.keys(oo(d)).length>0))if(!(0,eg.isValidElement)(c)||Array.isArray(c)&&c.length>1||ol(c.type)){if(Object.keys(oo(s)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(oo(s)).concat(Object.keys(oo(d))).map(e=>`  - ${e}`).join(`
     1(()=>{let e,t,r,n,a,o,i,l,s,u,c,d,f,p,h,m,g,v,b,y,w,E,x,_,S,C,O,k,R,j,T,F,A,N;function P(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var M,I,L,D,z,B,H,U,$,W,V,q,G,K,Z,X,J,Y,Q,ee,et,er,en,ea,eo,ei,el,es=globalThis;function eu(e){return e&&e.__esModule?e.default:e}function ec(e){if(e=eh.i?.[e]||e,!ea)try{throw Error()}catch(r){var t=(""+r.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(!t)return ed+e;ea=t[0]}return new URL(ed+e,ea).toString()}var ed="./",ef={},ep={},eh=es.parcelRequiree263;null==eh&&((eh=function(e){if(e in ef)return ef[e].exports;if(e in ep){var t=ep[e];delete ep[e];var r={id:e,exports:{}};return ef[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){ep[e]=t},es.parcelRequiree263=eh);var em=eh.register;em("aFOxS",function(e,t){"use strict";var r=eh("e4OqD");function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return o.PropTypes=o,o}}),em("e4OqD",function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}),em("dsA22",function(e,t){P(e.exports,"useSyncExternalStoreWithSelector",()=>r,e=>r=e);"use strict";var r,n=eh("j89Fe"),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,l=n.useEffect,s=n.useMemo,u=n.useDebugValue;r=function(e,t,r,n,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=s(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,a(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(o=e,t):(o=e,i=r)}var o,i,l=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,c]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}}),em("j89Fe",function(e,t){e.exports=React}),em("gDKMC",function(e,t){var r=eh("dGOyA"),n=eh("he8xn"),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?r.Buffer:void 0;e.exports=(i?i.isBuffer:void 0)||n}),em("dGOyA",function(e,t){var r=eh("ekSwk"),n="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||n||Function("return this")()}),em("ekSwk",function(e,t){e.exports="object"==typeof es&&es&&es.Object===Object&&es}),em("he8xn",function(e,t){e.exports=function(){return!1}}),em("esndt",function(e,t){var r=eh("ekSwk"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n&&r.process;e.exports=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()}),em("3BlhU",function(e,t){var r=eh("dGOyA"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n?r.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}),em("jrilK",function(e,t){P(e.exports,"default",()=>l);var r=eh("bItha"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n?r.default.Buffer:void 0,i=o?o.allocUnsafe:void 0,l=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}),em("bItha",function(e,t){P(e.exports,"default",()=>a);var r=eh("a3WZ3"),n="object"==typeof self&&self&&self.Object===Object&&self,a=r.default||n||Function("return this")()}),em("a3WZ3",function(e,t){P(e.exports,"default",()=>r);var r="object"==typeof es&&es&&es.Object===Object&&es}),em("aMh1P",function(e,t){P(e.exports,"default",()=>l);var r=eh("bItha"),n=eh("8C397"),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,i=o&&o.exports===a?r.default.Buffer:void 0,l=(i?i.isBuffer:void 0)||n.default}),em("8C397",function(e,t){P(e.exports,"default",()=>r);var r=function(){return!1}}),em("2BT6i",function(e,t){P(e.exports,"default",()=>i);var r=eh("a3WZ3"),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,o=a&&a.exports===n&&r.default.process,i=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()}),em("eK6Iq",function(e,t){P(e.exports,"handleFocus",()=>i);var r=eh("j89Fe"),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",i=eu(r).Component;if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function, not "+typeof i);function l(){if(!(this instanceof l))throw TypeError("Cannot call a class as a function");for(var e,t,r,n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return t=r=o(this,(e=l.__proto__||Object.getPrototypeOf(l)).call.apply(e,[this].concat(a))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},o(r,t)}return l.prototype=Object.create(i&&i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(l,i):l.__proto__=i),a(l,[{key:"render",value:function(){return eu(r).createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},eu(r).createElement(e,n({},this.props,this.state)))}}]),l}}),Object.assign(eh.i??={},{f11hd:"google-reviews.681f296c.svg",hFZaV:"review-star-filled.c002ead6.svg",IfOcH:"no-widget-poster.a2fcb758.png","5rBug":"google-reviews.f90c2ecd.png"});"use strict";var eg=eh("j89Fe"),ev={};ev=wp.element;var eg=(eh("j89Fe"),eh("j89Fe"));function eb(e,t){return function(){return e.apply(t,arguments)}}"use strict";let{toString:ey}=Object.prototype,{getPrototypeOf:ew}=Object,{iterator:eE,toStringTag:ex}=Symbol,e_=(r=Object.create(null),e=>{let t=ey.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),eS=e=>(e=e.toLowerCase(),t=>e_(t)===e),eC=e=>t=>typeof t===e,{isArray:eO}=Array,ek=eC("undefined");function eR(e){return null!==e&&!ek(e)&&null!==e.constructor&&!ek(e.constructor)&&eF(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let ej=eS("ArrayBuffer"),eT=eC("string"),eF=eC("function"),eA=eC("number"),eN=e=>null!==e&&"object"==typeof e,eP=e=>{if("object"!==e_(e))return!1;let t=ew(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(ex in e)&&!(eE in e)},eM=eS("Date"),eI=eS("File"),eL=eS("Blob"),eD=eS("FileList"),ez="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==es?es:{},eB=void 0!==ez.FormData?ez.FormData:void 0,eH=eS("URLSearchParams"),[eU,e$,eW,eV]=["ReadableStream","Request","Response","Headers"].map(eS);function eq(e,t,{allOwnKeys:r=!1}={}){let n,a;if(null!=e)if("object"!=typeof e&&(e=[e]),eO(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{let a;if(eR(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function eG(e,t){let r;if(eR(e))return null;t=t.toLowerCase();let n=Object.keys(e),a=n.length;for(;a-- >0;)if(t===(r=n[a]).toLowerCase())return r;return null}"use strict";let eK="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:es,eZ=e=>!ek(e)&&e!==eK,eX=(n="u">typeof Uint8Array&&ew(Uint8Array),e=>n&&e instanceof n),eJ=eS("HTMLFormElement"),eY=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),eQ=eS("RegExp"),e0=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eq(r,(r,a)=>{let o;!1!==(o=t(r,a,e))&&(n[a]=o||r)}),Object.defineProperties(e,n)},e1=eS("AsyncFunction"),e2=(M="function"==typeof setImmediate,I=eF(eK.postMessage),M?setImmediate:I?(L=`axios@${Math.random()}`,D=[],eK.addEventListener("message",({source:e,data:t})=>{e===eK&&t===L&&D.length&&D.shift()()},!1),e=>{D.push(e),eK.postMessage(L,"*")}):e=>setTimeout(e)),e4="u">typeof queueMicrotask?queueMicrotask.bind(eK):e2;var e5={isArray:eO,isArrayBuffer:ej,isBuffer:eR,isFormData:e=>{let t;return e&&(eB&&e instanceof eB||eF(e.append)&&("formdata"===(t=e_(e))||"object"===t&&eF(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ej(e.buffer)},isString:eT,isNumber:eA,isBoolean:e=>!0===e||!1===e,isObject:eN,isPlainObject:eP,isEmptyObject:e=>{if(!eN(e)||eR(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:eU,isRequest:e$,isResponse:eW,isHeaders:eV,isUndefined:ek,isDate:eM,isFile:eI,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:eL,isRegExp:eQ,isFunction:eF,isStream:e=>eN(e)&&eF(e.pipe),isURLSearchParams:eH,isTypedArray:eX,isFileList:eD,forEach:eq,merge:function e(){let{caseless:t,skipUndefined:r}=eZ(this)&&this||{},n={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=t&&eG(n,o)||o;eP(n[i])&&eP(a)?n[i]=e(n[i],a):eP(a)?n[i]=e({},a):eO(a)?n[i]=a.slice():r&&ek(a)||(n[i]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&eq(arguments[e],a);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(eq(t,(t,n)=>{r&&eF(t)?Object.defineProperty(e,n,{value:eb(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,o,i,l={};if(t=t||{},null==e)return t;do{for(o=(a=Object.getOwnPropertyNames(e)).length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=!1!==r&&ew(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:e_,kindOfTest:eS,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(eO(e))return e;let t=e.length;if(!eA(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[eE]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eJ,hasOwnProperty:eY,hasOwnProp:eY,reduceDescriptors:e0,freezeMethods:e=>{e0(e,(t,r)=>{if(eF(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eF(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(eO(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:eG,global:eK,isContextDefined:eZ,isSpecCompliantForm:function(e){return!!(e&&eF(e.append)&&"FormData"===e[ex]&&e[eE])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(eN(e)){if(t.indexOf(e)>=0)return;if(eR(e))return e;if(!("toJSON"in e)){t[n]=e;let a=eO(e)?[]:{};return eq(e,(e,t)=>{let o=r(e,n+1);ek(o)||(a[t]=o)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:e1,isThenable:e=>e&&(eN(e)||eF(e))&&eF(e.then)&&eF(e.catch),setImmediate:e2,asap:e4,isIterable:e=>null!=e&&eF(e[eE])};class e8 extends Error{static from(e,t,r,n,a,o){let i=new e8(e.message,t||e.code,r,n,a);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),o&&Object.assign(i,o),i}constructor(e,t,r,n,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:e5.toJSONObject(this.config),code:this.code,status:this.status}}}"use strict";"use strict";e8.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e8.ERR_BAD_OPTION="ERR_BAD_OPTION",e8.ECONNABORTED="ECONNABORTED",e8.ETIMEDOUT="ETIMEDOUT",e8.ERR_NETWORK="ERR_NETWORK",e8.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e8.ERR_DEPRECATED="ERR_DEPRECATED",e8.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e8.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e8.ERR_CANCELED="ERR_CANCELED",e8.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e8.ERR_INVALID_URL="ERR_INVALID_URL";var e3=e8,e9=void 0;function e6(e){return e5.isPlainObject(e)||e5.isArray(e)}function e7(e){return e5.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,r){return e?e.concat(t).map(function(e,t){return e=e7(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}"use strict";let tt=e5.toFlatObject(e5,{},null,function(e){return/^is[A-Z]/.test(e)});var tr=function(e,t,r){if(!e5.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=e5.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!e5.isUndefined(t[e])})).metaTokens,a=r.visitor||u,o=r.dots,i=r.indexes,l=(r.Blob||"u">typeof Blob&&Blob)&&e5.isSpecCompliantForm(t);if(!e5.isFunction(a))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(e5.isDate(e))return e.toISOString();if(e5.isBoolean(e))return e.toString();if(!l&&e5.isBlob(e))throw new e3("Blob is not supported. Use a Buffer instead.");return e5.isArrayBuffer(e)||e5.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):e9.from(e):e}function u(e,r,a){let l=e;if(e5.isReactNative(t)&&e5.isReactNativeBlob(e))return t.append(te(a,r,o),s(e)),!1;if(e&&!a&&"object"==typeof e)if(e5.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(e5.isArray(e)&&(u=e,e5.isArray(u)&&!u.some(e6))||(e5.isFileList(e)||e5.endsWith(r,"[]"))&&(l=e5.toArray(e)))return r=e7(r),l.forEach(function(e,n){e5.isUndefined(e)||null===e||t.append(!0===i?te([r],n,o):null===i?r:r+"[]",s(e))}),!1}return!!e6(e)||(t.append(te(a,r,o),s(e)),!1)}let c=[],d=Object.assign(tt,{defaultVisitor:u,convertValue:s,isVisitable:e6});if(!e5.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!e5.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),e5.forEach(r,function(r,o){!0===(!(e5.isUndefined(r)||null===r)&&a.call(t,r,e5.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])}),c.pop()}}(e),t};function tn(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ta(e,t){this._pairs=[],e&&tr(e,this,t)}"use strict";let to=ta.prototype;function ti(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tl(e,t,r){let n;if(!t)return e;let a=r&&r.encode||ti,o=e5.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;if(n=i?i(t,o):e5.isURLSearchParams(t)?t.toString():new ta(t,o).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}"use strict";"use strict";"use strict";"use strict";"use strict";to.append=function(e,t){this._pairs.push([e,t])},to.toString=function(e){let t=e?function(t){return e.call(this,t,tn)}:tn;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ts=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){e5.forEach(this.handlers,function(t){null!==t&&e(t)})}},tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},tc="u">typeof URLSearchParams?URLSearchParams:ta,td="u">typeof FormData?FormData:null,tf="u">typeof Blob?Blob:null,tp={};P(tp,"hasBrowserEnv",()=>th),P(tp,"navigator",()=>tm),P(tp,"hasStandardBrowserEnv",()=>tg),P(tp,"hasStandardBrowserWebWorkerEnv",()=>tv),P(tp,"origin",()=>tb);"use strict";"use strict";"use strict";let th="u">typeof window&&"u">typeof document,tm="object"==typeof navigator&&navigator||void 0,tg=th&&(!tm||0>["ReactNative","NativeScript","NS"].indexOf(tm.product)),tv="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tb=th&&window.location.href||"http://localhost";var ty={...tp,isBrowser:!0,classes:{URLSearchParams:tc,FormData:td,Blob:tf},protocols:["http","https","file","blob","url","data"]},tw=function(e){if(e5.isFormData(e)&&e5.isFunction(e.entries)){let t={};return e5.forEachEntry(e,(e,r)=>{!function e(t,r,n,a){let o=t[a++];if("__proto__"===o)return!0;let i=Number.isFinite(+o),l=a>=t.length;return(o=!o&&e5.isArray(n)?n.length:o,l)?e5.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&e5.isObject(n[o])||(n[o]=[]),e(t,r,n[o],a)&&e5.isArray(n[o])&&(n[o]=function(e){let t,r,n={},a=Object.keys(e),o=a.length;for(t=0;t<o;t++)n[r=a[t]]=e[r];return n}(n[o]))),!i}(e5.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};"use strict";"use strict";let tE={transitional:tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",a=n.indexOf("application/json")>-1,o=e5.isObject(e);if(o&&e5.isHTMLForm(e)&&(e=new FormData(e)),e5.isFormData(e))return a?JSON.stringify(tw(e)):e;if(e5.isArrayBuffer(e)||e5.isBuffer(e)||e5.isStream(e)||e5.isFile(e)||e5.isBlob(e)||e5.isReadableStream(e))return e;if(e5.isArrayBufferView(e))return e.buffer;if(e5.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var i,l;return(i=e,l=this.formSerializer,tr(i,new ty.classes.URLSearchParams,{visitor:function(e,t,r,n){return ty.isNode&&e5.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...l})).toString()}if((r=e5.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return tr(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||a){t.setContentType("application/json",!1);var s=e;if(e5.isString(s))try{return(0,JSON.parse)(s),e5.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=this.transitional||tE.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e5.isResponse(e)||e5.isReadableStream(e))return e;if(e&&e5.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw e3.from(e,e3.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ty.classes.FormData,Blob:ty.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};e5.forEach(["delete","get","head","post","put","patch"],e=>{tE.headers[e]={}});let tx=e5.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t_=Symbol("internals");function tS(e){return e&&String(e).trim().toLowerCase()}function tC(e){return!1===e||null==e?e:e5.isArray(e)?e.map(tC):String(e)}function tO(e,t,r,n,a){if(e5.isFunction(n))return n.call(this,t,r);if(a&&(t=r),e5.isString(t)){if(e5.isString(n))return -1!==t.indexOf(n);if(e5.isRegExp(n))return n.test(t)}}class tk{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function a(e,t,r){let a=tS(t);if(!a)throw Error("header name must be a non-empty string");let o=e5.findKey(n,a);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=tC(e))}let o=(e,t)=>e5.forEach(e,(e,r)=>a(e,r,t));if(e5.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(e5.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var i;let r,n,a,l;o((l={},(i=e)&&i.split("\n").forEach(function(e){a=e.indexOf(":"),r=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!r||l[r]&&tx[r]||("set-cookie"===r?l[r]?l[r].push(n):l[r]=[n]:l[r]=l[r]?l[r]+", "+n:n)}),l),t)}else if(e5.isObject(e)&&e5.isIterable(e)){let r={},n,a;for(let t of e){if(!e5.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[a=t[0]]=(n=r[a])?e5.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&a(t,e,r)}return this}get(e,t){if(e=tS(e)){let r=e5.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(e5.isFunction(t))return t.call(this,e,r);if(e5.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tS(e)){let r=e5.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||tO(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function a(e){if(e=tS(e)){let a=e5.findKey(r,e);a&&(!t||tO(r,r[a],a,t))&&(delete r[a],n=!0)}}return e5.isArray(e)?e.forEach(a):a(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let a=t[r];(!e||tO(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){let t=this,r={};return e5.forEach(this,(n,a)=>{let o=e5.findKey(r,a);if(o){t[o]=tC(n),delete t[a];return}let i=e?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(a).trim();i!==a&&delete t[a],t[i]=tC(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return e5.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&e5.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[t_]=this[t_]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=tS(e);if(!t[n]){let a;a=e5.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+a,{value:function(r,n,a){return this[t].call(this,e,r,n,a)},configurable:!0})}),t[n]=!0}}return e5.isArray(e)?e.forEach(n):n(e),this}}"use strict";function tR(e,t){let r=this||tE,n=t||r,a=tk.from(n.headers),o=n.data;return e5.forEach(e,function(e){o=e.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}"use strict";function tj(e){return!!(e&&e.__CANCEL__)}"use strict";"use strict";tk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),e5.reduceDescriptors(tk.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),e5.freezeMethods(tk);var tT=class extends e3{constructor(e,t,r){super(null==e?"canceled":e,e3.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function tF(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new e3("Request failed with status code "+r.status,[e3.ERR_BAD_REQUEST,e3.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}"use strict";"use strict";var tA=function(e,t){let r,n=Array(e=e||10),a=Array(e),o=0,i=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),u=a[i];r||(r=s),n[o]=l,a[o]=s;let c=i,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===i&&(i=(i+1)%e),s-r<t)return;let f=u&&s-u;return f?Math.round(1e3*d/f):void 0}},tN=function(e,t){let r,n,a=0,o=1e3/t,i=(t,o=Date.now())=>{a=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),l=t-a;l>=o?i(e,t):(r=e,n||(n=setTimeout(()=>{n=null,i(r)},o-l)))},()=>r&&i(r)]};"use strict";"use strict";"use strict";let tP=(e,t,r=3)=>{let n=0,a=tA(50,250);return tN(r=>{let o=r.loaded,i=r.lengthComputable?r.total:void 0,l=o-n,s=a(l);n=o,e({loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&o<=i?(i-o)/s:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})},r)},tM=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tI=e=>(...t)=>e5.asap(()=>e(...t));var tL=ty.hasStandardBrowserEnv?(a=new URL(ty.origin),o=ty.navigator&&/(msie|trident)/i.test(ty.navigator.userAgent),e=>(e=new URL(e,ty.origin),a.protocol===e.protocol&&a.host===e.host&&(o||a.port===e.port))):()=>!0,tD=ty.hasStandardBrowserEnv?{write(e,t,r,n,a,o,i){if("u"<typeof document)return;let l=[`${e}=${encodeURIComponent(t)}`];e5.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),e5.isString(n)&&l.push(`path=${n}`),e5.isString(a)&&l.push(`domain=${a}`),!0===o&&l.push("secure"),e5.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tz(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}"use strict";let tB=e=>e instanceof tk?{...e}:e;function tH(e,t){t=t||{};let r={};function n(e,t,r,n){return e5.isPlainObject(e)&&e5.isPlainObject(t)?e5.merge.call({caseless:n},e,t):e5.isPlainObject(t)?e5.merge({},t):e5.isArray(t)?t.slice():t}function a(e,t,r,a){return e5.isUndefined(t)?e5.isUndefined(e)?void 0:n(void 0,e,r,a):n(e,t,r,a)}function o(e,t){if(!e5.isUndefined(t))return n(void 0,t)}function i(e,t){return e5.isUndefined(t)?e5.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,a,o){return o in t?n(r,a):o in e?n(void 0,r):void 0}let s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,r)=>a(tB(e),tB(t),r,!0)};return e5.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=e5.hasOwnProp(s,n)?s[n]:a,i=o(e[n],t[n],n);e5.isUndefined(i)&&o!==l||(r[n]=i)}),r}var tU=e=>{let t=tH({},e),{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=tk.from(i),t.url=tl(tz(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),e5.isFormData(r)){if(ty.hasStandardBrowserEnv||ty.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(e5.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)})}}if(ty.hasStandardBrowserEnv&&(n&&e5.isFunction(n)&&(n=n(t)),n||!1!==n&&tL(t.url))){let e=a&&o&&tD.read(o);e&&i.set(a,e)}return t},t$="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let a,o,i,l,s,u,c=tU(e),d=c.data,f=tk.from(c.headers).normalize(),{responseType:p,onUploadProgress:h,onDownloadProgress:m}=c;function g(){l&&l(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(a),c.signal&&c.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;function b(){if(!v)return;let n=tk.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());tF(function(e){t(e),g()},function(e){r(e),g()},{data:p&&"text"!==p&&"json"!==p?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v}),v=null}v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(b)},v.onabort=function(){v&&(r(new e3("Request aborted",e3.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){let n=new e3(t&&t.message?t.message:"Network Error",e3.ERR_NETWORK,e,v);n.event=t||null,r(n),v=null},v.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||tu;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new e3(t,n.clarifyTimeoutError?e3.ETIMEDOUT:e3.ECONNABORTED,e,v)),v=null},void 0===d&&f.setContentType(null),"setRequestHeader"in v&&e5.forEach(f.toJSON(),function(e,t){v.setRequestHeader(t,e)}),e5.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),p&&"json"!==p&&(v.responseType=c.responseType),m&&([i,s]=tP(m,!0),v.addEventListener("progress",i)),h&&v.upload&&([o,l]=tP(h),v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",l)),(c.cancelToken||c.signal)&&(a=t=>{v&&(r(!t||t.type?new tT(null,e,v):t),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(a),c.signal&&(c.signal.aborted?a():c.signal.addEventListener("abort",a)));let y=(n=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&u[1]||"");y&&-1===ty.protocols.indexOf(y)?r(new e3("Unsupported protocol "+y+":",e3.ERR_BAD_REQUEST,e)):v.send(d||null)})};let tW=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},tV=async function*(e,t){for await(let r of tq(e))yield*tW(r,t)},tq=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tG=(e,t,r,n)=>{let a,o=tV(e,t),i=0,l=e=>{!a&&(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){l(),e.close();return}let a=n.byteLength;if(r){let e=i+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},{isFunction:tK}=e5,tZ=(({Request:e,Response:t})=>({Request:e,Response:t}))(e5.global),{ReadableStream:tX,TextEncoder:tJ}=e5.global,tY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tQ=e=>{let t,{fetch:r,Request:n,Response:a}=e=e5.merge.call({skipUndefined:!0},tZ,e),o=r?tK(r):"function"==typeof fetch,i=tK(n),l=tK(a);if(!o)return!1;let s=o&&tK(tX),u=o&&("function"==typeof tJ?(t=new tJ,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&tY(()=>{let e=!1,t=new n(ty.origin,{body:new tX,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=l&&s&&tY(()=>e5.isReadableStream(new a("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new e3(`Response type '${e}' is not supported`,e3.ERR_NOT_SUPPORT,r)})});let p=async e=>{if(null==e)return 0;if(e5.isBlob(e))return e.size;if(e5.isSpecCompliantForm(e)){let t=new n(ty.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return e5.isArrayBufferView(e)||e5.isArrayBuffer(e)?e.byteLength:(e5.isURLSearchParams(e)&&(e+=""),e5.isString(e))?(await u(e)).byteLength:void 0},h=async(e,t)=>{let r=e5.toFiniteNumber(e.getContentLength());return null==r?p(t):r};return async e=>{let t,{url:o,method:l,data:s,signal:u,cancelToken:p,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:E}=tU(e),x=r||fetch;b=b?(b+"").toLowerCase():"text";let _=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,a=function(e){if(!r){r=!0,i();let t=e instanceof Error?e:this.reason;n.abort(t instanceof e3?t:new tT(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,a(new e3(`timeout of ${t}ms exceeded`,e3.ETIMEDOUT))},t),i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));let{signal:l}=n;return l.unsubscribe=()=>e5.asap(i),l}})([u,p&&p.toAbortSignal()],m),S=null,C=_&&_.unsubscribe&&(()=>{_.unsubscribe()});try{if(v&&c&&"get"!==l&&"head"!==l&&0!==(t=await h(y,s))){let e,r=new n(o,{method:"POST",body:s,duplex:"half"});if(e5.isFormData(s)&&(e=r.headers.get("content-type"))&&y.setContentType(e),r.body){let[e,n]=tM(t,tP(tI(v)));s=tG(r.body,65536,e,n)}}e5.isString(w)||(w=w?"include":"omit");let r=i&&"credentials"in n.prototype,u={...E,signal:_,method:l.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:r?w:void 0};S=i&&new n(o,u);let p=await (i?x(S,E):x(o,u)),m=d&&("stream"===b||"response"===b);if(d&&(g||m&&C)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=e5.toFiniteNumber(p.headers.get("content-length")),[r,n]=g&&tM(t,tP(tI(g),!0))||[];p=new a(tG(p.body,65536,r,()=>{n&&n(),C&&C()}),e)}b=b||"text";let O=await f[e5.findKey(f,b)||"text"](p,e);return!m&&C&&C(),await new Promise((t,r)=>{tF(t,r,{data:O,headers:tk.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(t){if(C&&C(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new e3("Network Error",e3.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw e3.from(t,t&&t.code,e,S,t&&t.response)}}},t0=new Map,t1=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:a}=t,o=[n,a,r],i=o.length,l,s,u=t0;for(;i--;)l=o[i],void 0===(s=u.get(l))&&u.set(l,s=i?new Map:tQ(t)),u=s;return s};t1();let t2={http:null,xhr:t$,fetch:{get:t1}};e5.forEach(t2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});"use strict";let t4=e=>`- ${e}`,t5=e=>e5.isFunction(e)||null===e||!1===e;var t8=function(e,t){let r,n,{length:a}=e=e5.isArray(e)?e:[e],o={};for(let i=0;i<a;i++){let a;if(n=r=e[i],!t5(r)&&void 0===(n=t2[(a=String(r)).toLowerCase()]))throw new e3(`Unknown adapter '${a}'`);if(n&&(e5.isFunction(n)||(n=n.get(t))))break;o[a||"#"+i]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new e3("There is no suitable adapter to dispatch the request "+(a?e.length>1?"since :\n"+e.map(t4).join("\n"):" "+t4(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function t3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tT(null,e)}function t9(e){return t3(e),e.headers=tk.from(e.headers),e.data=tR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t8(e.adapter||tE.adapter,e)(e).then(function(t){return t3(e),t.data=tR.call(e,e.transformResponse,t),t.headers=tk.from(t.headers),t},function(t){return!tj(t)&&(t3(e),t&&t.response&&(t.response.data=tR.call(e,e.transformResponse,t.response),t.response.headers=tk.from(t.response.headers))),Promise.reject(t)})}"use strict";let t6="1.13.6",t7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t7[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});"use strict";let re={};t7.transitional=function(e,t,r){function n(e,t){return"[Axios v"+t6+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,o)=>{if(!1===e)throw new e3(n(a," has been removed"+(t?" in "+t:"")),e3.ERR_DEPRECATED);return t&&!re[a]&&(re[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,o)}},t7.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var rt=function(e,t,r){if("object"!=typeof e)throw new e3("options must be an object",e3.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let o=n[a],i=t[o];if(i){let t=e[o],r=void 0===t||i(t,o,e);if(!0!==r)throw new e3("option "+o+" must be "+r,e3.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new e3("Unknown option "+o,e3.ERR_BAD_OPTION)}};class rr{constructor(e){this.defaults=e||{},this.interceptors={request:new ts,response:new ts}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:a,paramsSerializer:o,headers:i}=t=tH(this.defaults,t);void 0!==a&&rt(a,{silentJSONParsing:t7.transitional(t7.boolean),forcedJSONParsing:t7.transitional(t7.boolean),clarifyTimeoutError:t7.transitional(t7.boolean),legacyInterceptorReqResOrdering:t7.transitional(t7.boolean)},!1),null!=o&&(e5.isFunction(o)?t.paramsSerializer={serialize:o}:rt(o,{encode:t7.function,serialize:t7.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),rt(t,{baseUrl:t7.spelling("baseURL"),withXsrfToken:t7.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=i&&e5.merge(i.common,i[t.method]);i&&e5.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=tk.concat(l,i);let s=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||tu;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[t9.bind(this),void 0];for(e.unshift(...s),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=s.length;let f=t;for(;d<n;){let e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=t9.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return tl(tz((e=tH(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}"use strict";e5.forEach(["delete","get","head","options"],function(e){rr.prototype[e]=function(t,r){return this.request(tH(r||{},{method:e,url:t,data:(r||{}).data}))}}),e5.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,a){return this.request(tH(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}rr.prototype[e]=t(),rr.prototype[e+"Form"]=t(!0)});class rn{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new tT(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new rn(function(t){e=t}),cancel:e}}}"use strict";"use strict";"use strict";let ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ra).forEach(([e,t])=>{ra[t]=e});let ro=function e(t){let r=new rr(t),n=eb(rr.prototype.request,r);return e5.extend(n,rr.prototype,r,{allOwnKeys:!0}),e5.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tH(t,r))},n}(tE);ro.Axios=rr,ro.CanceledError=tT,ro.CancelToken=rn,ro.isCancel=tj,ro.VERSION=t6,ro.toFormData=tr,ro.AxiosError=e3,ro.Cancel=ro.CanceledError,ro.all=function(e){return Promise.all(e)},ro.spread=function(e){return function(t){return e.apply(null,t)}},ro.isAxiosError=function(e){return e5.isObject(e)&&!0===e.isAxiosError},ro.mergeConfig=tH,ro.AxiosHeaders=tk,ro.formToJSON=e=>tw(e5.isHTMLForm(e)?new FormData(e):e),ro.getAdapter=t8,ro.HttpStatusCode=ra,ro.default=ro;"use strict";"use strict";let{Axios:ri,AxiosError:rl,CanceledError:rs,isCancel:ru,CancelToken:rc,VERSION:rd,all:rf,Cancel:rp,isAxiosError:rh,spread:rm,toFormData:rg,AxiosHeaders:rv,HttpStatusCode:rb,formToJSON:ry,getAdapter:rw,mergeConfig:rE}=ro,rx=null,r_={PLATFORM_NONCE:null,PLATFORM_REFERER:null},rS=e=>{let t,r=(t=new FormData,Object.entries(e).forEach(([e,r])=>{t.append(e,r)}),t);return r=(e=>{let{PLATFORM_NONCE:t,PLATFORM_REFERER:r}=r_;return t&&r&&(e.append("_nonce",t),e.append("_wp_http_referer",r)),e})(r),(()=>{if(!rx)throw Error("PlatformLayer is not initialized. Call initializePlatformLayer first.");return rx})().post("",r)},rC=(0,eg.createContext)(null),rO=()=>{let e=(0,eg.useContext)(rC);if(!e)throw Error("useAuth must be used within AuthProvider");return e},rk=({children:e})=>{let[t,r]=(0,eg.useState)(null),[n,a]=(0,eg.useState)(!0),[o,i]=(0,eg.useState)(!1),l=(0,eg.useCallback)(()=>{let e=document.getElementById("platform_api_url")?.value,t=document.getElementById("_nonce"),r=document.getElementsByName("_wp_http_referer")[0];!e||(Object.assign(r_,{PLATFORM_NONCE:t?.value||"",PLATFORM_REFERER:r?.value||""}),rx||(rx=function(e,t=!0){let r=ro.create({baseURL:e,withCredentials:t});return r.interceptors.response.use(e=>{if(e.config?.interceptorConfig?.disableResponseNormalizer)return e;let{data:t}=e;return t&&"number"==typeof t.responseCode&&(t.responseCode<200||t.responseCode>299)?Promise.reject(e):t?.content||t},e=>Promise.reject(e)),r}(e)))},[]),s=(0,eg.useCallback)(async()=>{try{let e=await rS({action:"createSettings"}),t=e?.data||e;t?.PROVIDER_API_KEY&&r(t.PROVIDER_API_KEY)}catch(e){r(null)}finally{a(!1)}},[]),u=(0,eg.useCallback)(async()=>{try{await rS({action:"update",key:"logout",value:"1"}),r(null)}catch(e){r(null)}},[]);return(0,eg.useEffect)(()=>{l()},[l]),(0,eg.useEffect)(()=>{(async()=>{let e=new URLSearchParams(window.location.search),t=e.get("code");if("0"===t){i(!0),a(!1);return}if(!t)return await s();try{let r,n={action:"update",key:"apiKey",value:t},a=e.get("domain");if(a){let e=new URL(a).hostname;n={action:"update",key:"apiKey|enterpriseDomain",value:`${t}|${e}`}}await rS(n),r=new URL(window.location.href),["code","domain"].forEach(e=>r.searchParams.delete(e)),window.history.replaceState({},document.title,r.pathname+r.search),await s()}catch(e){a(!1)}})()},[s]),eu(eg).createElement(rC.Provider,{value:{apiKey:t,loading:n,unauthorized:o,handleLogout:u}},e)};var eg=(eh("j89Fe"),eh("j89Fe")),rR={},rj=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,rT=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,rF=/^(?:(min|max)-)?(.+)/,rA=/(em|rem|px|cm|mm|in|pt|pc)?$/,rN=/(dpi|dpcm|dppx)?$/;function rP(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function rM(e){var t=parseFloat(e);switch(String(e).match(rN)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function rI(e){var t=parseFloat(e);switch(String(e).match(rA)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}var rL="u">typeof window?window.matchMedia:null;function rD(e,t,r){var n,a,o,i=this;function l(e){i.matches=e.matches,i.media=e.media}rL&&!r&&(o=rL.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(l)):(this.matches=(n=e,a=t,(function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(rj),r=t[1],n=t[2],a=t[3]||"",o={};return o.inverse=!!r&&"not"===r.toLowerCase(),o.type=n?n.toLowerCase():"all",o.expressions=(a=a.match(/\([^\)]+\)/g)||[]).map(function(e){var t=e.match(rT),r=t[1].toLowerCase().match(rF);return{modifier:r[1],feature:r[2],value:t[2]}}),o})})(n).some(function(e){var t=e.inverse,r="all"===e.type||a.type===e.type;if(r&&t||!(r||t))return!1;var n=e.expressions.every(function(e){var t=e.feature,r=e.modifier,n=e.value,o=a[t];if(!o)return!1;switch(t){case"orientation":case"scan":return o.toLowerCase()===n.toLowerCase();case"width":case"height":case"device-width":case"device-height":n=rI(n),o=rI(o);break;case"resolution":n=rM(n),o=rM(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":n=rP(n),o=rP(o);break;case"grid":case"color":case"color-index":case"monochrome":n=parseInt(n,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=n;case"max":return o<=n;default:return o===n}});return n&&!t||!n&&t})),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(l)}}rR=function(e,t,r){return new rD(e,t,r)};var rz=/[A-Z]/g,rB=/^ms-/,rH={};function rU(e){return"-"+e.toLowerCase()}var r$=function(e){if(rH.hasOwnProperty(e))return rH[e];var t=e.replace(rz,rU);return rH[e]=rB.test(t)?"-"+t:t},rW={};let rV=eu(rW=eh("aFOxS")()).oneOfType([eu(rW).string,eu(rW).number]),rq={all:eu(rW).bool,grid:eu(rW).bool,aural:eu(rW).bool,braille:eu(rW).bool,handheld:eu(rW).bool,print:eu(rW).bool,projection:eu(rW).bool,screen:eu(rW).bool,tty:eu(rW).bool,tv:eu(rW).bool,embossed:eu(rW).bool},{type:rG,...rK}={orientation:eu(rW).oneOf(["portrait","landscape"]),scan:eu(rW).oneOf(["progressive","interlace"]),aspectRatio:eu(rW).string,deviceAspectRatio:eu(rW).string,height:rV,deviceHeight:rV,width:rV,deviceWidth:rV,color:eu(rW).bool,colorIndex:eu(rW).bool,monochrome:eu(rW).bool,resolution:rV,type:Object.keys(rq)},rZ={minAspectRatio:eu(rW).string,maxAspectRatio:eu(rW).string,minDeviceAspectRatio:eu(rW).string,maxDeviceAspectRatio:eu(rW).string,minHeight:rV,maxHeight:rV,minDeviceHeight:rV,maxDeviceHeight:rV,minWidth:rV,maxWidth:rV,minDeviceWidth:rV,maxDeviceWidth:rV,minColor:eu(rW).number,maxColor:eu(rW).number,minColorIndex:eu(rW).number,maxColorIndex:eu(rW).number,minMonochrome:eu(rW).number,maxMonochrome:eu(rW).number,minResolution:rV,maxResolution:rV,...rK};var rX={...rq,...rZ};let rJ=(0,eg.createContext)(void 0),rY=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[r$(r)]=e[r],t),{})},rQ=()=>{let e=(0,eg.useRef)(!1);return(0,eg.useEffect)(()=>{e.current=!0},[]),e.current};var eg=eh("j89Fe"),r0={};!function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(n=r(n,function(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var o in n)e.call(n,o)&&n[o]&&(a=r(a,o));return a}(o)))}return n}function r(e,t){return t?e?e+" "+t:e+t:e}r0?(t.default=t,r0=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}();var eg=eh("j89Fe");let r1=({className:e,size:t="medium",theme:r="current",...n})=>{let a=eu(r0)("magnet-loader",`magnet-loader--${t}`,`magnet-loader--${r}`,e);return eu(eg).createElement("div",{className:a,...n},eu(eg).createElement("span",{className:"magnet-loader__spinner"}),eu(eg).createElement("div",{className:"magnet-loader__track"}))};r1.propTypes={className:rW.string,size:(0,rW.oneOf)(["small","medium","large","xlarge"]),theme:(0,rW.oneOf)(["current","dark","light"])},r1.defaultProps={size:"medium",theme:"current"};var eg=eh("j89Fe");let r2=({className:e,children:t,colorStyle:r="primary",invert:n=!1,outline:a=!1,size:o="medium",text:i,theme:l="light",icon:s,...u})=>{let c=eu(eg).Children.count(t)>0||!!i,d=eu(r0)("magnet-indicator",`magnet-indicator--${o}`,`magnet-indicator--${r}`,`magnet-indicator--${l}`,{"magnet-indicator--invert":n},{"magnet-indicator--outline":a},{"magnet-indicator--has-children":c},{"magnet-indicator--has-icon":!!s},e);return eu(eg).createElement("span",{className:d,...u},s&&eu(eg).createElement(s,{className:"magnet-indicator__icon"}),i,t)};r2.propTypes={className:rW.string,children:rW.node,colorStyle:(0,rW.oneOf)(["primary","secondary","success","error","warning"]),invert:rW.bool,outline:rW.bool,size:(0,rW.oneOf)(["x-small","small","medium","large"]),text:rW.string,theme:(0,rW.oneOf)(["light","dark"]),icon:rW.node},r2.defaultProps={colorStyle:"primary",invert:!1,outline:!1,size:"medium",theme:"light"};var eg=eh("j89Fe");let r4=(0,eg.createContext)(null),r5=(0,eg.createContext)(null),r8=(e,t)=>{let r={};return t.forEach(t=>{e&&t in e&&(r[t]=e[t])}),r},r3=(e,t,r,n)=>{let a=(0,eg.useContext)(r5);return(0,eg.useMemo)(()=>{let o={...t};return a&&Object.assign(o,r8(a,r.filter(e=>e in a))),n&&Object.assign(o,r8(n,r)),Object.assign(o,e),o},[n,a,e,t,r])},r9=["colorStyle","disabled","readOnly","required","size","theme","id","compact","rounded"],r6=(e,t,r=r9)=>r3(e,t,r,(0,eg.useContext)(r4)),r7=(0,eg.forwardRef)((e,t)=>{let{children:r,className:n,colorStyle:a="primary",disabled:o=!1,endIcon:i,fullWidth:l=!1,href:s,srOnlyText:u,loader:c=!1,loaderText:d,indicatorText:f,invert:p=!1,rounded:h=!1,showTextOnHover:m=!1,size:g="medium",startIcon:v,showTextOnly:b,theme:y="light",type:w="button",variant:E="filled",onClick:x,..._}=((e,t,r=["theme","size"])=>r3(e,t,r,(0,eg.useContext)(r5)))(e,{colorStyle:"primary",disabled:!1,fullWidth:!1,invert:!1,loader:!1,rounded:!1,showTextOnHover:!1,showTextOnly:null,size:"medium",theme:"light",type:"button",variant:"filled"},["theme","size"]),S=!!f,C=!!r,O=!!d,k=!o&&c,R=O&&k?d:r,j=C||O&&k,T=eu(r0)("jfButton",`jfButton--${E}`,`jfButton--${a}`,`jfButton--${g}`,`jfButton--${y}`,{"jfButton--loading":k,"jfButton--rounded":h,"jfButton--full-width":l,"jfButton--show-text-on-hover":m,"jfButton--invert":p},n),F=eu(eg).createElement(r1,{className:"jfButton--loader-icon",size:g}),A=O?F:eu(eg).createElement("span",{className:"jfButton--loader-overlay"},F),N=(e,t={})=>"function"==typeof e?eu(eg).createElement(e,{className:"jfButton--icon",...t}):eu(eg).createElement("span",{className:"jfButton--icon","aria-hidden":"true"},e),P=eu(eg).createElement(eu(eg).Fragment,null,v&&!k&&N(v),k&&A,j&&eu(eg).createElement("span",{className:eu(r0)("jfButton--text",{"jfButton--text-hidden":m&&!k},{"jfButton--text-opacity-0":k&&!O&&C})},R),S&&!O&&!k&&eu(eg).createElement(r2,{colorStyle:["primary","success","error","secondary"].includes(a)?a:void 0,invert:"filled"===E,size:g,className:eu(r0)("jfButton--indicator",{"jfButton--indicator-hidden":k})},f),i&&!S&&!k&&N(i),u&&!j&&eu(eg).createElement("span",{className:"sr-only"},u));return eu(eg).createElement(s?"a":"button",{..._,href:s||void 0,type:!s&&w?w:void 0,disabled:o||k,className:T,ref:t,onClick:x},P)});r7.displayName="Button",r7.propTypes={children:rW.node,className:rW.string,colorStyle:(0,rW.oneOf)(["primary","secondary","success","error","neutral","analytics","pages","teams","sign","pdf","apps","reports","forms","tables","inbox","approvals","ai","boards"]),disabled:rW.bool,endIcon:rW.node,fullWidth:rW.bool,href:rW.string,indicatorText:rW.string,invert:rW.bool,loader:rW.bool,loaderText:rW.string,onClick:rW.func,rounded:rW.bool,showTextOnHover:rW.bool,showTextOnly:(0,rW.oneOf)(["xs","sm","md","lg","xl","xxl"]),size:(0,rW.oneOf)(["small","medium","large"]),startIcon:rW.node,srOnlyText:rW.string,theme:(0,rW.oneOf)(["light","dark"]),type:(0,rW.oneOf)(["button","submit","reset"]),variant:(0,rW.oneOf)(["filled","outline","ghost"])},r7.defaultProps={colorStyle:"primary",disabled:!1,fullWidth:!1,invert:!1,loader:!1,rounded:!1,showTextOnHover:!1,showTextOnly:null,size:"medium",theme:"light",type:"button",variant:"filled"};var eg=(eh("j89Fe"),eh("j89Fe"));let ne=({children:e,...t})=>eu(eg).createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",...t},e),nt=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M5 11a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Z",clipRule:"evenodd"})),nr=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M18.707 7.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L10 14.586l7.293-7.293a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nn=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293Z",clipRule:"evenodd"})),na=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4C9.277 4 7.031 5.239 5.33 6.698c-1.7 1.458-2.89 3.164-3.512 4.174-.43.697-.43 1.56 0 2.256.623 1.01 1.812 2.716 3.512 4.174C7.032 18.762 9.278 20 12 20c2.72 0 4.967-1.239 6.668-2.698 1.7-1.458 2.89-3.164 3.513-4.174a2.138 2.138 0 0 0 0-2.256c-.623-1.01-1.812-2.716-3.513-4.174C16.968 5.238 14.721 4 12 4Zm0 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm2-4a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),no=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M15.763 17.175a8.5 8.5 0 1 1 1.413-1.413l.031.03 4.5 4.5a1 1 0 0 1-1.414 1.415l-4.5-4.5a.903.903 0 0 1-.03-.032ZM17 10.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z",clipRule:"evenodd"})),ni=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15v-2h-2v2h2Zm0-4V7h-2v6h2Z",clipRule:"evenodd"})),nl=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm0-15a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2.5a1 1 0 0 0-1-1h-1.5a1 1 0 1 0 0 2h.5V17a1 1 0 1 0 2 0v-6.5Z","clip-rule":"evenodd"})),ns=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M14.707 5.293a1 1 0 0 1 0 1.414L9.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nu=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M11.707 8.293a1 1 0 0 1 1.414 0l-6 6a1 1 0 0 1-1.414-1.414l6-6Z",clipRule:"evenodd"})),nc=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12.293 15.707a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 1.414-1.414l6 6a1 1 0 0 1 0 1.414Z",clipRule:"evenodd"})),nd=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z",clipRule:"evenodd"})),nf=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M17.467 2.293a1 1 0 0 0-1.414 0L11.81 6.536a1 1 0 0 0 0 1.414l4.243 4.242a1 1 0 0 0 1.414 0L21.71 7.95a1 1 0 0 0 0-1.414l-4.243-4.243ZM3 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H3Zm0 10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H3Zm9 1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-6Z","clip-rule":"evenodd"})),np=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4a1 1 0 0 1 1 1v4.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L11 9.586V5a1 1 0 0 1 1-1Z",clipRule:"evenodd"})),nh=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 20a1 1 0 0 1-1-1v-4.586l-2.293 2.293a1 1 0 1 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 1 1-1.414 1.414L13 14.414V19a1 1 0 0 1-1 1Z",clipRule:"evenodd"})),nm=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 2a4 4 0 0 1 4 4v2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2V6a4 4 0 0 1 4-4Zm0 2a2 2 0 0 0-2 2v2h4V6a2 2 0 0 0-2-2Z",clipRule:"evenodd"})),ng=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 0 0-1.414 1.414l16 16a1 1 0 0 0 1.414-1.414l-16-16ZM12 6c-2.52 0-4.8 1.12-6.36 2.92L2.92 4.36C4.72 2.8 6 2 8 2c4.97 0 9 4.03 9 9 0 2-.8 3.28-2.36 4.64L17.08 18.4C18.88 16.8 20 14.52 20 12c0-4.97-4.03-9-9-9Z",clipRule:"evenodd"})),nv=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M16.707 3.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-.414.263l-3 1a1 1 0 0 1-1.263-1.263l1-3a1 1 0 0 1 .263-.414l10-10a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})),nb=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z",clipRule:"evenodd"})),ny=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M8 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-3V3a1 1 0 0 0-1-1H8Zm2 2h4v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V4Z",clipRule:"evenodd"})),nw=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M8 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-3V3a1 1 0 0 0-1-1H8Zm2 2h4v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V4Z",clipRule:"evenodd"})),nE=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1Z",clipRule:"evenodd"})),nx=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M4 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4Zm0 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2Zm0 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-2Z",clipRule:"evenodd"})),n_=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{fillRule:"evenodd",d:"M4 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"})),nS=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M1 6a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v9a4 4 0 0 1-4 4H5a4 4 0 0 1-4-4V6Zm2 9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2H3Zm18-2H3V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7ZM7 21a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z","clip-rule":"evenodd"})),nC=e=>eu(eg).createElement(ne,e,eu(eg).createElement("path",{"fill-rule":"evenodd",d:"M4 4a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V4Zm3-1a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-1v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V3H7Zm3 0h4v1h-4V3Zm0 15a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Z","clip-rule":"evenodd"})),nO=(0,eg.forwardRef)(({value:e,defaultValue:t,onChange:r=e=>e,maxLength:n,prefix:a=null,suffix:o=null,type:i="text",readOnly:l,disabled:s,showLockIconInReadOnly:u=!1,useDefaultStyleInReadOnly:c,ghost:d,inputClassName:f,required:p,rounded:h,size:m,theme:g,...v},b)=>{let y=null!=e;(0,eg.useRef)(y);let[w,E]=(0,eg.useState)(t??""),[x,_]=(0,eg.useState)(!1),S=y?e??"":w,C=(0,eg.useMemo)(()=>n?S?.length??0:0,[S,n]),O="password"===i,k=i;O&&(k=x?"text":"password");let R=null;O?R=eu(eg).createElement(na,null):o?.icon&&(R=o.icon);let j=O?()=>_(e=>!e):o?.onClick,T=l||s,F=T&&u,A=R;F?A=eu(eg).createElement(nm,null):O&&(A=eu(eg).createElement(na,null));let N=a?.as||null,P=o?.as||(O||F?"button":null),M=a?.icon?"function"==typeof a.icon?eu(eg).createElement(a.icon,{className:a.className}):a.icon:null;return eu(eg).createElement("div",{className:`jfInput${d?" jfInput--ghost":""} ${c&&T?" jfInput--readonly-default":""}`},N&&eu(eg).createElement(N,{className:`jfInput--prefix ${a?.className||""}`,htmlFor:a?.htmlFor},M,a?.text&&eu(eg).createElement("span",{className:"jfInput--prefix-text"},a.text)),eu(eg).createElement("input",{ref:b,...v,...y?{value:S}:{defaultValue:S},type:k,maxLength:n,onChange:e=>{y||E(e.target.value),r?.(e)},readOnly:l,disabled:s,required:p,className:f}),n&&eu(eg).createElement("div",{className:"jfInput--counter"},`${C} / ${n}`),P&&eu(eg).createElement(P,{className:"jfInput--suffix",onClick:T?void 0:j,type:"button",...O?{"aria-label":x?"Hide password":"Show password"}:{}},A&&eu(eg).createElement("span",{className:"jfInput--suffix-icon","aria-hidden":"true"},A)))});nO.defaultProps={prefix:null,suffix:null,defaultValue:""},nO.propTypes={value:rW.string,defaultValue:rW.string,onChange:rW.func,maxLength:rW.number,type:rW.string,prefix:(0,rW.shape)({as:rW.elementType,icon:rW.node,text:rW.node,className:rW.string,htmlFor:rW.string}),suffix:(0,rW.shape)({as:rW.elementType,icon:rW.node,onClick:rW.func})};var eg=eh("j89Fe");let nk=(0,eg.forwardRef)((e,t)=>eu(eg).createElement(nO,{ref:t,...e}));nk.displayName="InputText";var eg=eh("j89Fe");let nR=({checked:e,onChange:t,onClick:r,ariaLabel:n,readOnly:a,error:o,loader:i,type:l="checkbox",size:s,disabled:u,...c})=>eu(eg).createElement("label",{className:`widgets-toggle ${o?"widgets-toggle--error":""} ${i?"widgets-toggle--loader":""}`,"aria-label":n,"aria-checked":"checkbox"===l?!!e:void 0,"aria-pressed":"button"===l?!!e:void 0,onClick:e=>{a||i||u?e.preventDefault():r&&r(e)}},i&&eu(eg).createElement("span",{className:"widgets-toggle--loader-spinner"}),eu(eg).createElement("input",{className:"widgets-toggle--input",type:l,checked:"checkbox"===l?e:void 0,onChange:a||i?void 0:t,disabled:a||i||u,...c}),eu(eg).createElement("span",{className:"widgets-toggle--slider"}));nR.propTypes={checked:rW.bool.isRequired,onChange:rW.func,onClick:rW.func,ariaLabel:rW.string,readOnly:rW.bool,error:rW.bool,loader:rW.bool,type:rW.string,size:rW.string,disabled:rW.bool};var eg=(eh("j89Fe"),eh("j89Fe"));let nj=({style:e={},className:t,description:r,disabled:n,id:a,input:o,label:i,size:l="medium",theme:s="light",truncate:u,compact:c=!1,variant:d="ghost"})=>{let f=r?.length>0,p=i?.length>0,h=eu(r0)("magnet-choice-label",`magnet-choice-label--${l}`,`magnet-choice-label--${s}`,`magnet-choice-label--${d}`,{"magnet-choice-label--compact":c},{"magnet-choice-label--disabled":n},u&&`magnet-choice-label--truncate-${u}`,t);return eu(eg).createElement("label",{className:h,htmlFor:a,style:e},o,eu(eg).createElement("span",{className:"magnet-choice-label__container"},p&&eu(eg).createElement("span",{className:"magnet-choice-label__text"},i),f&&eu(eg).createElement("span",{className:"magnet-choice-label__description"},r)))};nj.propTypes={className:rW.string,description:rW.string,disabled:rW.bool,id:rW.string,input:rW.node.isRequired,label:rW.string,size:(0,rW.oneOf)(["small","medium","large"]),theme:(0,rW.oneOf)(["light","dark"]),truncate:(0,rW.oneOf)(["both","description","label"]),compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"])},nj.defaultProps={description:"",label:"",disabled:!1,size:"medium",theme:"light",compact:!1,variant:"ghost"};let nT=(0,eg.forwardRef)((e,t)=>{let{checked:r,label:n,description:a,onChange:o,onClick:i,size:l="medium",theme:s="light",indeterminate:u,error:c,compact:d,variant:f="ghost",id:p,truncate:h,style:m,...g}=r6(e,{size:"medium",theme:"light",disabled:!1},["disabled","size","theme"]),v=n&&n.length>0,b=a&&a.length>0,y=eu(r0)("jfCheckbox--checkmark",`jfCheckbox--${l}`,{"jfCheckbox--error":c}),w=eu(eg).useRef(null);eu(eg).useEffect(()=>{w.current&&(w.current.indeterminate=!!u)},[u]);let E=eu(eg).createElement("span",{className:y},eu(eg).createElement("input",{type:"checkbox",id:p,checked:r,ref:e=>{w.current=e,"function"==typeof t?t(e):t&&(t.current=e)},onChange:o,onClick:i,disabled:g.disabled,...g}),r&&!u&&eu(eg).createElement(nr,{className:"jfCheckbox__icon"}),u&&eu(eg).createElement(nt,{className:"jfCheckbox__icon"}));return v||b?eu(eg).createElement(nj,{style:m,id:p,input:E,description:a,label:n,size:l,disabled:g.disabled,theme:s,truncate:h,compact:d,variant:f}):E});nT.displayName="Checkbox",nT.propTypes={checked:rW.bool.isRequired,label:rW.string,description:rW.string,onChange:rW.func,onClick:rW.func,size:(0,rW.oneOf)(["small","medium","large"]),indeterminate:rW.bool,error:rW.bool,compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"]),id:rW.string,truncate:(0,rW.oneOf)(["both","description","label"])};var eg=eh("j89Fe");let nF=(0,eg.forwardRef)((e,t)=>{let{checked:r,label:n,description:a,onChange:o,size:i="medium",theme:l="light",error:s,compact:u,variant:c="ghost",id:d,value:f,truncate:p,...h}=r6(e,{disabled:!1},["disabled"]),m=n&&n.length>0,g=a&&a.length>0,v=eu(r0)("jfRadio--checkmark",`jfRadio--${i}`,{"jfRadio--error":s}),b=eu(eg).createElement("span",{className:v},eu(eg).createElement("input",{type:"radio",id:d,checked:!!r,value:f,ref:t,onChange:o,disabled:h.disabled,...h}),!!r&&eu(eg).createElement("span",{className:"jfRadio--checkmark-inner"}));return m||g?eu(eg).createElement(nj,{id:d,input:b,description:a,label:n,size:i,disabled:h.disabled,theme:l,truncate:p,compact:u,variant:c}):b});nF.displayName="Radio",nF.propTypes={checked:rW.bool.isRequired,label:rW.string,description:rW.string,onChange:rW.func.isRequired,size:(0,rW.oneOf)(["small","medium","large"]),theme:(0,rW.oneOf)(["light","dark"]),error:rW.bool,compact:rW.bool,variant:(0,rW.oneOf)(["ghost","filled"]),id:rW.string,value:rW.string,truncate:(0,rW.oneOf)(["both","description","label"])};var eg=eh("j89Fe");rW.node.isRequired,rW.string,rW.func;var eg=eh("j89Fe");let nA=(0,eg.forwardRef)((e,t)=>{let{children:r,value:n,onChange:a,size:o="medium",disabled:i,readOnly:l,required:s,rounded:u,colorStyle:c,showLockIconInReadOnly:d=!1,id:f,theme:p,className:h,...m}=r6(e,{size:"medium",theme:"light",rounded:"both"}),g=!!l,v=!!i||g,b=g&&d,y=eu(r0)("jfSelect",`jfSelect--${o}`,`jfSelect--${p}`,{"jfSelect--readonly":g},{"jfSelect--with-lock":b},h);return eu(eg).createElement("div",{className:y},eu(eg).createElement("select",{ref:t,id:f,value:n??"",onChange:a,disabled:v,required:s,...m},r),b&&eu(eg).createElement("span",{className:"jfSelect--lock","aria-hidden":!0},eu(eg).createElement(nm,null)))});nA.displayName="Select",nA.propTypes={children:rW.node,value:rW.string,onChange:rW.func,size:rW.string,disabled:rW.bool,readOnly:rW.bool,required:rW.bool,rounded:rW.string,colorStyle:rW.string,showLockIconInReadOnly:rW.bool,id:rW.string,theme:rW.string};var eg=eh("j89Fe"),nN=({children:e,value:t})=>eu(eg).createElement("option",{value:t},e),eg=eh("j89Fe");let nP=null,nM=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},nI=e=>e&&"window"in e&&e.window===e?e:nM(e).defaultView||window;function nL(e,t){return!!t&&!!e&&e.contains(t)}function nD(e){return e.target}"u">typeof Element&&Element.prototype;let nz=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];nz.join(":not([hidden]),"),nz.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),nz.join(':not([hidden]):not([tabindex="-1"]),');var eg=eh("j89Fe");let nB="u">typeof document?eu(eg).useLayoutEffect:()=>{};var eg=eh("j89Fe");function nH(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function nU(e){let t=(0,eg.useRef)({isFocused:!1,observer:null});return nB(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,eg.useCallback)(r=>{let n=nD(r);(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&(t.current.isFocused=!0,n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=nH(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null==(e=t.current.observer)||e.disconnect();let r=n===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function n$(e){var t;if("u"<typeof window||null==window.navigator)return!1;let r=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function nW(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function nV(e){let t=null;return()=>(null==t&&(t=e()),t)}let nq=nV(function(){return nW(/^Mac/i)}),nG=nV(function(){return nW(/^iPhone/i)}),nK=nV(function(){return nW(/^iPad/i)||nq()&&navigator.maxTouchPoints>1}),nZ=nV(function(){return nG()||nK()});nV(function(){return nq()||nZ()});let nX=nV(function(){return n$(/AppleWebKit/i)&&!nJ()}),nJ=nV(function(){return n$(/Chrome/i)}),nY=nV(function(){return n$(/Android/i)}),nQ=nV(function(){return n$(/Firefox/i)});var eg=eh("j89Fe");function n0(e,t,r=!0){var n,a;let{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}=t;nQ()&&(null==(a=window.event)||null==(n=a.type)?void 0:n.startsWith("key"))&&"_blank"===e.target&&(nq()?o=!0:i=!0);let u=nX()&&nq()&&!nK()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});if(n0.isOpening=r,function(){if(null==nP){nP=!1;try{document.createElement("div").focus({get preventScroll(){return nP=!0,!0}})}catch{}}return nP}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}e.dispatchEvent(u),n0.isOpening=!1}(0,eg.createContext)({isNative:!0,open:function(e,t){if(e instanceof HTMLAnchorElement)n0(e,t);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),n0(r,t),e.removeChild(r)}},useHref:e=>e}),n0.isOpening=!1;var eg=(eh("j89Fe"),eh("j89Fe"));let n1={prefix:String(Math.round(1e10*Math.random())),current:0};eu(eg).createContext(n1),eu(eg).createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;eu(eg).useId;let n2=null,n4=new Set,n5=new Map,n8=!1,n3=!1,n9={Tab:!0,Escape:!0};function n6(e,t){for(let r of n4)r(e,t)}function n7(e){n8=!0,n0.isOpening||e.metaKey||!nq()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(n2="keyboard",n6("keyboard",e))}function ae(e){n2="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(n8=!0,n6("pointer",e))}function at(e){n0.isOpening||(""!==e.pointerType||!e.isTrusted)&&(nY()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(n8=!0,n2="virtual")}function ar(e){nD(e)!==window&&nD(e)!==document&&e.isTrusted&&(n8||n3||(n2="virtual",n6("virtual",e)),n8=!1,n3=!1)}function an(){n8=!1,n3=!0}function aa(e){if("u"<typeof window||"u"<typeof document||n5.get(nI(e)))return;let t=nI(e),r=nM(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){n8=!0,n.apply(this,arguments)},r.addEventListener("keydown",n7,!0),r.addEventListener("keyup",n7,!0),r.addEventListener("click",at,!0),t.addEventListener("focus",ar,!0),t.addEventListener("blur",an,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",ae,!0),r.addEventListener("pointermove",ae,!0),r.addEventListener("pointerup",ae,!0)),t.addEventListener("beforeunload",()=>{ao(e)},{once:!0}),n5.set(t,{focus:n})}let ao=(e,t)=>{let r=nI(e),n=nM(e);t&&n.removeEventListener("DOMContentLoaded",t),n5.has(r)&&(r.HTMLElement.prototype.focus=n5.get(r).focus,n.removeEventListener("keydown",n7,!0),n.removeEventListener("keyup",n7,!0),n.removeEventListener("click",at,!0),r.removeEventListener("focus",ar,!0),r.removeEventListener("blur",an,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",ae,!0),n.removeEventListener("pointermove",ae,!0),n.removeEventListener("pointerup",ae,!0)),n5.delete(r))};function ai(){return"pointer"!==n2}"u">typeof document&&("loading"!==(i=nM(void 0)).readyState?aa(void 0):i.addEventListener("DOMContentLoaded",()=>{aa(void 0)}));let al=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function as(){let e=(0,eg.useRef)(new Map),t=(0,eg.useCallback)((t,r,n,a)=>{let o=(null==a?void 0:a.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:a}),t.addEventListener(r,o,a)},[]),r=(0,eg.useCallback)((t,r,n,a)=>{var o;let i=(null==(o=e.current.get(n))?void 0:o.fn)||n;t.removeEventListener(r,i,a),e.current.delete(n)},[]),n=(0,eg.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,eg.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function au(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:a}=e,o=(0,eg.useRef)({isFocused:!1,isFocusVisible:r||ai()}),[i,l]=(0,eg.useState)(!1),[s,u]=(0,eg.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,eg.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,eg.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=ai(),l(e),c()},[c]);t={enabled:i,isTextInput:n},aa(),(0,eg.useEffect)(()=>{if((null==t?void 0:t.enabled)===!1)return;let e=(e,r)=>{var n;let a,i,l,s,u,d,f;n=!!(null==t?void 0:t.isTextInput),a=nM(r?nD(r):void 0),i=r?nD(r):void 0,l="u">typeof window?nI(i).HTMLInputElement:HTMLInputElement,s="u">typeof window?nI(i).HTMLTextAreaElement:HTMLTextAreaElement,u="u">typeof window?nI(i).HTMLElement:HTMLElement,d="u">typeof window?nI(i).KeyboardEvent:KeyboardEvent,f=((e=document)=>e.activeElement)(a),(n=n||f instanceof l&&!al.has(f.type)||f instanceof s||f instanceof u&&f.isContentEditable)&&"keyboard"===e&&r instanceof d&&!n9[r.key]||(e=>{o.current.isFocusVisible=e,c()})(ai())};return n4.add(e),()=>{n4.delete(e)}},[n,i]);let{focusProps:f}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e,o=(0,eg.useCallback)(e=>{if(nD(e)===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),i=nU(o),l=(0,eg.useCallback)(e=>{let t=nD(e),n=nM(t),o=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(r&&r(e),a&&a(!0),i(e))},[a,r,i]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:!t&&(n||a)?o:void 0}}}({isDisabled:a,onFocusChange:d}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=(0,eg.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=as(),s=(0,eg.useCallback)(e=>{nL(e.currentTarget,nD(e))&&o.current.isFocusWithin&&!nL(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(e),a&&a(!1))},[r,a,o,l]),u=nU(s),c=(0,eg.useCallback)(e=>{if(!nL(e.currentTarget,nD(e)))return;let t=nD(e),r=nM(t),l=((e=document)=>e.activeElement)(r);if(!o.current.isFocusWithin&&l===t){n&&n(e),a&&a(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(r,"focus",e=>{let n=nD(e);if(o.current.isFocusWithin&&!nL(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),s(nH(e))}},{capture:!0})}},[n,a,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}({isDisabled:!a,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:a?p:f}}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let ac=!1,ad=0;function af(e){"touch"===e.pointerType&&(ac=!0,setTimeout(()=>{ac=!1},50))}function ap(){if("u">typeof document)return 0===ad&&"u">typeof PointerEvent&&document.addEventListener("pointerup",af),ad++,()=>{!(--ad>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",af)}}function ah(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,i]=(0,eg.useState)(!1),l=(0,eg.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,eg.useEffect)(ap,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=as(),{hoverProps:c,triggerHoverEnd:d}=(0,eg.useMemo)(()=>{let e=(e,t)=>{let a=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&a&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:a,pointerType:t}),r&&r(!1),i(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=n=>{ac&&"mouse"===n.pointerType||((n,o)=>{if(l.pointerType=o,a||"touch"===o||l.isHovered||!nL(n.currentTarget,nD(n)))return;l.isHovered=!0;let u=n.currentTarget;l.target=u,s(nM(nD(n)),"pointerover",t=>{l.isHovered&&l.target&&!nL(l.target,nD(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),r&&r(!0),i(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!a&&nL(t.currentTarget,nD(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,a,l,s,u]);return(0,eg.useEffect)(()=>{a&&d({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:c,isHovered:o}}var eg=(eh("j89Fe"),eh("j89Fe")),am=Object.defineProperty,ag=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?am(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};let av=new class{constructor(){ag(this,"current",this.detect()),ag(this,"handoffState","pending"),ag(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function ab(e){var t;return av.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ay(e){var t,r;return av.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function aw(e){var t,r;return null!=(r=null==(t=ay(e))?void 0:t.activeElement)?r:null}function aE(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function ax(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add(()=>e.removeEventListener(r,n,a))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return aE(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=ax();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function a_(){let[e]=(0,eg.useState)(ax);return(0,eg.useEffect)(()=>()=>e.dispose(),[e]),e}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let aS=(e,t)=>{av.isServer?(0,eg.useEffect)(e,t):(0,eg.useLayoutEffect)(e,t)};function aC(e){let t=(0,eg.useRef)(e);return aS(()=>{t.current=e},[e]),t}let aO=function(e){let t=aC(e);return eu(eg).useCallback((...e)=>t.current(...e),[t])};function ak({disabled:e=!1}={}){let t=(0,eg.useRef)(null),[r,n]=(0,eg.useState)(!1),a=a_(),o=aO(()=>{t.current=null,n(!1),a.dispose()}),i=aO(e=>{if(a.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=ab(e.currentTarget);a.addEventListener(r,"pointerup",o,!1),a.addEventListener(r,"pointermove",e=>{if(t.current){var r,a;let o,i;n((o=e.width/2,i=e.height/2,r={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},a=t.current.getBoundingClientRect(),!(!r||!a||r.right<a.left||r.left>a.right||r.bottom<a.top||r.top>a.bottom)))}},!1),a.addEventListener(r,"pointercancel",o,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:i,onPointerUp:o,onClick:o}}}function aR(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function aj(e,t,r=!1){let[n,a]=(0,eg.useState)(()=>aR(t));return aS(()=>{if(!t||!e)return;let r=ax();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),a(e=>{let r=aR(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}function aT(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}function aF(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function aA(e){return aF(e)&&"tagName"in e}function aN(e){return aA(e)&&"accessKey"in e}function aP(e){return aA(e)&&"tabIndex"in e}function aM(e){return aN(e)&&"INPUT"===e.nodeName}function aI(e){return aN(e)&&"LABEL"===e.nodeName}function aL(e){return aN(e)&&"LEGEND"===e.nodeName}function aD(e,t,r){let n=aC(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()});(0,eg.useEffect)(()=>{if(!e)return;let r=null===t?null:aN(t)?t:t.current;if(!r)return;let a=ax();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>n.current(r));e.observe(r),a.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>n.current(r));e.observe(r),a.add(()=>e.disconnect())}return()=>a.dispose()},[t,n,e])}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function az(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,az),n}let aB=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),aH=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var aU=((l=aU||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l[l.AutoFocus=64]="AutoFocus",l),a$=((s=a$||{})[s.Error=0]="Error",s[s.Overflow=1]="Overflow",s[s.Success=2]="Success",s[s.Underflow=3]="Underflow",s),aW=((u=aW||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u);function aV(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(aB)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var aq=((c=aq||{})[c.Strict=0]="Strict",c[c.Loose=1]="Loose",c);function aG(e,t=0){var r;return e!==(null==(r=ab(e))?void 0:r.body)&&az(t,{0:()=>e.matches(aB),1(){let t=e;for(;null!==t;){if(t.matches(aB))return!0;t=t.parentElement}return!1}})}function aK(e){ax().nextFrame(()=>{let t=aw(e);t&&aP(t)&&!aG(t,0)&&aX(e)})}var aZ=((d=aZ||{})[d.Keyboard=0]="Keyboard",d[d.Mouse=1]="Mouse",d);function aX(e){null==e||e.focus({preventScroll:!0})}function aJ(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let o=n.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function aY(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){var o,i,l;let s=Array.isArray(e)?e.length>0?ay(e[0]):document:ay(e),u=Array.isArray(e)?r?aJ(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(aH)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):aV(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),n=null!=n?n:null==s?void 0:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(n))-1;if(4&t)return Math.max(0,u.indexOf(n))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,m;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=u[e])||m.focus(f),p+=c}while(m!==aw(m))return 6&t&&null!=(l=null==(i=null==(o=m)?void 0:o.matches)?void 0:i.call(o,"textarea,input"))&&l&&m.select(),2}function aQ(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function a0(){return aQ()||/Android/gi.test(window.navigator.userAgent)}function a1(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}},[e,t,n])}function a2(e,t,r,n){let a=aC(r);(0,eg.useEffect)(()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}},[e,t,n])}function a4(e,t,r){let n=aC(r),a=(0,eg.useCallback)(function(e,r){if(e.defaultPrevented)return;let a=r(e);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let r of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==r&&(r.contains(a)||e.composed&&e.composedPath().includes(r)))return;return aG(a,aq.Loose)||-1===a.tabIndex||e.preventDefault(),n.current(e,a)}},[n,t]),o=(0,eg.useRef)(null);a1(e,"pointerdown",e=>{var t,r;a0()||(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),a1(e,"pointerup",e=>{if(a0()||!o.current)return;let t=o.current;return o.current=null,a(e,()=>t)},!0);let i=(0,eg.useRef)({x:0,y:0});a1(e,"touchstart",e=>{i.current.x=e.touches[0].clientX,i.current.y=e.touches[0].clientY},!0),a1(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-i.current.x)>=30||Math.abs(t.y-i.current.y)>=30))return a(e,()=>aP(e.target)?e.target:null)},!0),a2(e,"blur",e=>a(e,()=>{var e;return aN(e=window.document.activeElement)&&"IFRAME"===e.nodeName?window.document.activeElement:null}),!0)}function a5(...e){return(0,eg.useMemo)(()=>ab(...e),[...e])}function a8(e,t){return(0,eg.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function a3(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var a9=((f=a9||{})[f.None=0]="None",f[f.RenderStrategy=1]="RenderStrategy",f[f.Static=2]="Static",f),a6=((p=a6||{})[p.Unmount=0]="Unmount",p[p.Hidden=1]="Hidden",p);function a7(){let e,t,r=(e=(0,eg.useRef)([]),t=(0,eg.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),(...r)=>{if(!r.every(e=>null==e))return e.current=r,t});return(0,eg.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:o=!0,name:i,mergeRefs:l}){l=null!=l?l:ot;let s=or(t,e);if(o)return oe(s,r,n,i,l);let u=null!=a?a:0;if(2&u){let{static:e=!1,...t}=s;if(e)return oe(t,r,n,i,l)}if(1&u){let{unmount:e=!0,...t}=s;return az(+!e,{0:()=>null,1:()=>oe({...t,hidden:!0,style:{display:"none"}},r,n,i,l)})}return oe(s,r,n,i,l)})({mergeRefs:r,...e}),[r])}function oe(e,t={},r,n,a){let{as:o=r,children:i,refName:l="ref",...s}=oi(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},c="function"==typeof i?i(t):i;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d[`data-${e}`]=""}if(ol(o)&&(Object.keys(oo(s)).length>0||Object.keys(oo(d)).length>0))if(!(0,eg.isValidElement)(c)||Array.isArray(c)&&c.length>1||ol(c.type)){if(Object.keys(oo(s)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(oo(s)).concat(Object.keys(oo(d))).map(e=>`  - ${e}`).join(`
    22`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
    33`)].join(`
    4 `))}else{var f;let e=c.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>a3(t(...e),s.className):a3(t,s.className),n=or(c.props,oo(oi(s,["ref"])));for(let e in d)e in n&&delete d[e];return(0,eg.cloneElement)(c,Object.assign({},n,d,u,{ref:a((f=c,eu(eg).version.split(".")[0]>="19"?f.props.ref:f.ref),u.ref)},r?{className:r}:{}))}return(0,eg.createElement)(o,Object.assign({},oi(s,["ref"]),!ol(o)&&u,!ol(o)&&d),c)}function ot(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function or(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){for(let a of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;a(t,...n)}}});return t}function on(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){for(let n of r[e])null==n||n(...t)}});return t}function oa(e){var t;return Object.assign((0,eg.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function oo(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function oi(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function ol(e){return e===eg.Fragment||e===Symbol.for("react.fragment")}var os=((h=os||{})[h.None=1]="None",h[h.Focusable=2]="Focusable",h[h.Hidden=4]="Hidden",h);let ou=oa(function(e,t){var r;let{features:n=1,...a}=e,o={ref:t,"aria-hidden":(2&n)==2||(null!=(r=a["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return a7()({ourProps:o,theirProps:a,slot:{},defaultTag:"span",name:"Hidden"})});function oc({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=aO(()=>{var n,a;let o=ab(r),i=[];for(let t of e)null!==t&&(aA(t)?i.push(t):"current"in t&&aA(t.current)&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&aA(e)&&"headlessui-portal-root"!==e.id&&(r&&(e.contains(r)||e.contains(null==(a=null==r?void 0:r.getRootNode())?void 0:a.host))||i.some(t=>e.contains(t))||i.push(e));return i});return{resolveContainers:n,contains:aO(e=>n().some(t=>t.contains(e)))}}let od=(0,eg.createContext)(null);function of({children:e,node:t}){let[r,n]=(0,eg.useState)(null),a=op(null!=t?t:r);return eu(eg).createElement(od.Provider,{value:a},e,null===a&&eu(eg).createElement(ou,{features:os.Hidden,ref:e=>{var t,r;if(e){for(let a of null!=(r=null==(t=ab(e))?void 0:t.querySelectorAll("html > *, body > *"))?r:[])if(a!==document.body&&a!==document.head&&aA(a)&&null!=a&&a.contains(e)){n(a);break}}}}))}function op(e=null){var t;return null!=(t=(0,eg.useContext)(od))?t:e}var eg=eh("j89Fe");function oh(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let om=(G=()=>new Map,K={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:ax(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=oh(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=oh(r.meta)),this},SCROLL_PREVENT(e){let t,r={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[aQ()?{before({doc:e,d:t,meta:r}){function n(e){for(let t of r().containers)for(let r of t())if(r.contains(e))return!0;return!1}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=ax();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(aP(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),i=e.querySelector(a);aP(i)&&!n(i)&&(o=i)}catch{}},!0),t.group(r=>{t.addEventListener(e,"touchstart",e=>{var t;if(r.dispose(),aP(e.target)&&aA(t=e.target)&&"style"in t)if(n(e.target)){let t=e.target;for(;t.parentElement&&n(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(aP(e.target)&&!aM(e.target))if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;a!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var r;let n=e.documentElement;t=Math.max(0,(null!=(r=e.defaultView)?r:window).innerWidth-n.clientWidth)},after({doc:e,d:r}){let n=e.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,t-a);r.style(n,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(r)),n.forEach(({after:e})=>null==e?void 0:e(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},m=G(),g=new Set,{getSnapshot:()=>m,subscribe:e=>(g.add(e),()=>g.delete(e)),dispatch(e,...t){let r=K[e].call(m,...t);r&&(m=r,g.forEach(e=>e()))}});om.subscribe(()=>{let e=om.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&om.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&om.dispatch("TEARDOWN",r)}});var eg=eh("j89Fe");class og extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var ov=Object.defineProperty,ob=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},oy=(e,t,r)=>(ob(e,t,"read from private field"),r?r.call(e):t.get(e)),ow=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},oE=(e,t,r,n)=>(ob(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);class ox{constructor(e){ow(this,eo,{}),ow(this,ei,new og(()=>new Set)),ow(this,el,new Set),((e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ov(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r})(this,"disposables",ax()),oE(this,eo,e),av.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return oy(this,eo)}subscribe(e,t){if(av.isServer)return()=>{};let r={selector:e,callback:t,current:e(oy(this,eo))};return oy(this,el).add(r),this.disposables.add(()=>{oy(this,el).delete(r)})}on(e,t){return av.isServer?()=>{}:(oy(this,ei).get(e).add(t),this.disposables.add(()=>{oy(this,ei).get(e).delete(t)}))}send(e){let t=this.reduce(oy(this,eo),e);if(t!==oy(this,eo)){for(let e of(oE(this,eo,t),oy(this,el))){let t=e.selector(oy(this,eo));o_(e.current,t)||(e.current=t,e.callback(t))}for(let t of oy(this,ei).get(e.type))t(oy(this,eo),e)}}}function o_(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&oS(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&oS(e.entries(),t.entries()):!!(oC(e)&&oC(t))&&oS(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function oS(e,t){for(;;){let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}}function oC(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function oO(e){let[t,r]=e(),n=ax();return(...e)=>{t(...e),n.dispose(),n.microTask(r)}}eo=new WeakMap,ei=new WeakMap,el=new WeakMap;var ok=Object.defineProperty,oR=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ok(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},oj=((v=oj||{})[v.Push=0]="Push",v[v.Pop=1]="Pop",v);let oT={0(e,t){let r=t.id,n=e.stack,a=e.stack.indexOf(r);if(-1!==a){let t=e.stack.slice();return t.splice(a,1),t.push(r),n=t,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(-1===n)return e;let a=e.stack.slice();return a.splice(n,1),{...e,stack:a}}};class oF extends ox{constructor(){super(...arguments),oR(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),oR(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new oF({stack:[]})}reduce(e,t){return az(t.type,oT,e,t)}}let oA=new og(()=>oF.new());"use strict";var oN={};function oP(e,t,r=o_){return(0,oN.useSyncExternalStoreWithSelector)(aO(t=>e.subscribe(oM,t)),aO(()=>e.state),aO(()=>e.state),aO(t),r)}function oM(e){return e}function oI(e,t){let r=(0,eg.useId)(),n=oA.get(t),[a,o]=oP(n,(0,eg.useCallback)(e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)],[n,r]));return aS(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),!!e&&(!o||a)}function oL(e,t,r=()=>[document.body]){!function(e,t,r=()=>({containers:[]})){let n=(0,eg.useSyncExternalStore)(om.subscribe,om.getSnapshot,om.getSnapshot),a=t?n.get(t):void 0;a&&a.count,aS(()=>{if(!(!t||!e))return om.dispatch("PUSH",t,r),()=>om.dispatch("POP",t,r)},[e,t])}(oI(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}function oD(e){return(0,eg.useMemo)(()=>e,Object.values(e))}oN=eh("dsA22");var eg=(eh("j89Fe"),eh("j89Fe"));let oz=Symbol();function oB(e,t=!0){return Object.assign(e,{[oz]:t})}function oH(...e){let t=(0,eg.useRef)(e);(0,eg.useEffect)(()=>{t.current=e},[e]);let r=aO(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[oz]))?void 0:r}var eg=eh("j89Fe"),oU=((b=oU||{})[b.Forwards=0]="Forwards",b[b.Backwards=1]="Backwards",b);function o$(){let e=(0,eg.useRef)(0);return a2(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}var eg=(eh("j89Fe"),eh("j89Fe")),oW=((y=oW||{})[y.None=0]="None",y[y.Closed=1]="Closed",y[y.Enter=2]="Enter",y[y.Leave=4]="Leave",y);function oV(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function oq(e,t,r,n){let[a,o]=(0,eg.useState)(r),{hasFlag:i,addFlag:l,removeFlag:s}=function(e=0){let[t,r]=(0,eg.useState)(e),n=(0,eg.useCallback)(e=>r(e),[]),a=(0,eg.useCallback)(e=>r(t=>t|e),[]),o=(0,eg.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:a,hasFlag:o,removeFlag:(0,eg.useCallback)(e=>r(t=>t&~e),[]),toggleFlag:(0,eg.useCallback)(e=>r(t=>t^e),[])}}(e&&a?3:0),u=(0,eg.useRef)(!1),c=(0,eg.useRef)(!1);return aS(()=>{var a;if(e){if(r&&o(!0),!t){r&&l(3);return}return null==(a=null==n?void 0:n.start)||a.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:a}){let o=ax();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:a}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let a=ax();if(!e)return a.dispose;let o=!1;a.add(()=>{o=!0});let i=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===i.length?t():Promise.allSettled(i.map(e=>e.finished)).then(()=>{o||t()}),a.dispose}(e,n))})}),o.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,c.current||(r?(l(3),s(4)):(l(4),s(2)))},run(){c.current?r?(s(3),l(4)):(s(4),l(3)):r?s(1):l(1)},done(){var e,a,i,l;c.current&&(null!=(l=null==(i=(a=t).getAnimations)?void 0:i.call(a))?l:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(u.current=!1,s(7),r||o(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})}},[e,r,t,a_()]),e?[a,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}var eg=eh("j89Fe");let oG=(0,eg.createContext)(()=>{});function oK({value:e,children:t}){return eu(eg).createElement(oG.Provider,{value:e},t)}var eg=eh("j89Fe");function oX(){return"u">typeof window}function oZ(e){return oQ(e)?(e.nodeName||"").toLowerCase():"#document"}function oJ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function oY(e){var t;return null==(t=(oQ(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function oQ(e){return!!oX()&&(e instanceof Node||e instanceof oJ(e).Node)}function o0(e){return!!oX()&&(e instanceof Element||e instanceof oJ(e).Element)}function o1(e){return!!oX()&&(e instanceof HTMLElement||e instanceof oJ(e).HTMLElement)}function o2(e){return!(!oX()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof oJ(e).ShadowRoot)}function o4(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function o5(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let o8=/transform|translate|scale|rotate|perspective|filter/,o3=/paint|layout|strict|content/,o9=e=>!!e&&"none"!==e;function o6(e){let t=o0(e)?it(e):e;return o9(t.transform)||o9(t.translate)||o9(t.scale)||o9(t.rotate)||o9(t.perspective)||!o7()&&(o9(t.backdropFilter)||o9(t.filter))||o8.test(t.willChange||"")||o3.test(t.contain||"")}function o7(){return null==e&&(e="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e}function ie(e){return/^(html|body|#document)$/.test(oZ(e))}function it(e){return oJ(e).getComputedStyle(e)}function ir(e){return o0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ia(e){if("html"===oZ(e))return e;let t=e.assignedSlot||e.parentNode||o2(e)&&e.host||oY(e);return o2(t)?t.host:t}function io(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=ia(t);return ie(r)?t.ownerDocument?t.ownerDocument.body:t.body:o1(r)&&o4(r)?r:e(r)}(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=oJ(a);if(!o)return t.concat(a,io(a,[],r));{let e=ii(i);return t.concat(i,i.visualViewport||[],o4(a)?a:[],e&&r?io(e):[])}}function ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let il=Math.min,is=Math.max,iu=Math.round,ic=Math.floor,id=e=>({x:e,y:e}),ip={left:"right",right:"left",bottom:"top",top:"bottom"};function ih(e,t){return"function"==typeof e?e(t):e}function im(e){return e.split("-")[0]}function ig(e){return e.split("-")[1]}function iv(e){return"x"===e?"y":"x"}function ib(e){return"y"===e?"height":"width"}function iy(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function iw(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let iE=["left","right"],ix=["right","left"],i_=["top","bottom"],iS=["bottom","top"];function iC(e){let t=im(e);return ip[t]+e.slice(t.length)}function iO(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}var ik="u"<typeof Element;ik||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ik||Element.prototype.getRootNode;var iR={};function ij(e,t,r){let n,{reference:a,floating:o}=e,i=iy(t),l=iv(iy(t)),s=ib(l),u=im(t),c="y"===i,d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[s]/2-o[s]/2;switch(u){case"top":n={x:d,y:a.y-o.height};break;case"bottom":n={x:d,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:f};break;case"left":n={x:a.x-o.width,y:f};break;default:n={x:a.x,y:a.y}}switch(ig(t)){case"start":n[l]-=p*(r&&c?-1:1);break;case"end":n[l]+=p*(r&&c?-1:1)}return n}async function iT(e,t){var r,n;void 0===t&&(t={});let{x:a,y:o,platform:i,rects:l,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=ih(t,e),m="number"!=typeof(n=h)?{top:0,right:0,bottom:0,left:0,...n}:{top:n,right:n,bottom:n,left:n},g=s[p?"floating"===f?"reference":"floating":f],v=iO(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{x:a,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},E=iO(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:u}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}iR=ReactDOM;let iF=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=i.detectOverflow?i:{...i,detectOverflow:iT},s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=ij(u,n,s),f=n,p=0,h={};for(let r=0;r<o.length;r++){let m=o[r];if(!m)continue;let{name:g,fn:v}=m,{x:b,y:y,data:w,reset:E}=await v({x:c,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=b?b:c,d=null!=y?y:d,h[g]={...h[g],...w},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(f=E.placement),E.rects&&(u=!0===E.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):E.rects),{x:c,y:d}=ij(u,f,s)),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}},iA=new Set(["left","top"]);async function iN(e,t){let{placement:r,platform:n,elements:a}=e,o=await (null==n.isRTL?void 0:n.isRTL(a.floating)),i=im(r),l=ig(r),s="y"===iy(r),u=iA.has(i)?-1:1,c=o&&s?-1:1,d=ih(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function iP(e){let t=it(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=o1(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=iu(r)!==o||iu(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function iM(e){return o0(e)?e:e.contextElement}function iI(e){let t=iM(e);if(!o1(t))return id(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:o}=iP(t),i=(o?iu(r.width):r.width)/n,l=(o?iu(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let iL=id(0);function iD(e){let t=oJ(e);return o7()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:iL}function iz(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=iM(e),l=id(1);t&&(n?o0(n)&&(l=iI(n)):l=iI(e));let s=(void 0===(a=r)&&(a=!1),n&&(!a||n===oJ(i))&&a)?iD(i):id(0),u=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,d=o.width/l.x,f=o.height/l.y;if(i){let e=oJ(i),t=n&&o0(n)?oJ(n):n,r=e,a=ii(r);for(;a&&n&&t!==r;){let e=iI(a),t=a.getBoundingClientRect(),n=it(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=i,a=ii(r=oJ(a))}}return iO({width:d,height:f,x:u,y:c})}function iB(e,t){let r=ir(e).scrollLeft;return t?t.left+r:iz(oY(e)).left+r}function iH(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-iB(e,r),y:r.top+t.scrollTop}}function iU(e,t,r){var n;let a;if("viewport"===t)a=function(e,t){let r=oJ(e),n=oY(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;let e=o7();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}let u=iB(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else u<=25&&(o+=u);return{width:o,height:i,x:l,y:s}}(e,r);else if("document"===t){let t,r,o,i,l,s,u;n=oY(e),t=oY(n),r=ir(n),o=n.ownerDocument.body,i=is(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=is(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+iB(n),u=-r.scrollTop,"rtl"===it(o).direction&&(s+=is(t.clientWidth,o.clientWidth)-i),a={width:i,height:l,x:s,y:u}}else if(o0(t)){let e,n,o,i,l,s;n=(e=iz(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,i=o1(t)?iI(t):id(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a={width:l,height:s,x:o*i.x,y:n*i.y}}else{let r=iD(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return iO(a)}function i$(e){return"static"===it(e).position}function iW(e,t){if(!o1(e)||"fixed"===it(e).position)return null;if(t)return t(e);let r=e.offsetParent;return oY(e)===r&&(r=r.ownerDocument.body),r}function iV(e,t){var r;let n=oJ(e);if(o5(e))return n;if(!o1(e)){let t=ia(e);for(;t&&!ie(t);){if(o0(t)&&!i$(t))return t;t=ia(t)}return n}let a=iW(e,t);for(;a&&(r=a,/^(table|td|th)$/.test(oZ(r)))&&i$(a);)a=iW(a,t);return a&&ie(a)&&i$(a)&&!o6(a)?n:a||function(e){let t=ia(e);for(;o1(t)&&!ie(t);){if(o6(t))return t;if(o5(t))break;t=ia(t)}return null}(e)||n}let iq=async function(e){let t=this.getOffsetParent||iV,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=o1(t),a=oY(t),o="fixed"===r,i=iz(e,!0,o,t),l={scrollLeft:0,scrollTop:0},s=id(0);if(n||!n&&!o)if(("body"!==oZ(t)||o4(a))&&(l=ir(t)),n){let e=iz(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=iB(a));o&&!n&&a&&(s.x=iB(a));let u=!a||n||o?id(0):iH(a,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},iG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,o="fixed"===a,i=oY(n),l=!!t&&o5(t.floating);if(n===i||l&&o)return r;let s={scrollLeft:0,scrollTop:0},u=id(1),c=id(0),d=o1(n);if((d||!d&&!o)&&(("body"!==oZ(n)||o4(i))&&(s=ir(n)),d)){let e=iz(n);u=iI(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!i||d||o?id(0):iH(i,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:oY,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,o=[..."clippingAncestors"===r?o5(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=io(e,[],!1).filter(e=>o0(e)&&"body"!==oZ(e)),a=null,o="fixed"===it(e).position,i=o?ia(e):e;for(;o0(i)&&!ie(i);){let t=it(i),r=o6(i);r||"fixed"!==t.position||(a=null),(o?r||a:!(!r&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||o4(i)&&!r&&function e(t,r){let n=ia(t);return!(n===r||!o0(n)||ie(n))&&("fixed"===it(n).position||e(n,r))}(e,i)))?a=t:n=n.filter(e=>e!==i),i=ia(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=iU(t,o[0],a),l=i.top,s=i.right,u=i.bottom,c=i.left;for(let e=1;e<o.length;e++){let r=iU(t,o[e],a);l=is(r.top,l),s=il(r.right,s),u=il(r.bottom,u),c=is(r.left,c)}return{width:s-c,height:u-l,x:c,y:l}},getOffsetParent:iV,getElementRects:iq,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=iP(e);return{width:t,height:r}},getScale:iI,isElement:o0,isRTL:function(e){return"rtl"===it(e).direction}};function iK(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iX(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=iM(e),d=o||i?[...c?io(c):[],...t?io(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let f=c&&s?function(e,t){let r,n=null,a=oY(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;let h={rootMargin:-ic(d)+"px "+-ic(a.clientWidth-(c+f))+"px "+-ic(a.clientHeight-(d+p))+"px "+-ic(c)+"px",threshold:is(0,il(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||iK(u,e.getBoundingClientRect())||i(),m=!1}try{n=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),o}(c,r):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?iz(e):null;return u&&function t(){let n=iz(e);m&&!iK(m,n)&&r(),m=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(a)}}var eg=eh("j89Fe"),iZ="u">typeof document?eg.useLayoutEffect:function(){};function iJ(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!iJ(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!iJ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function iY(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iQ(e,t){let r=iY(e);return Math.round(t*r)/r}function i0(e){let t=eg.useRef(e);return iZ(()=>{t.current=e}),t}let i1=(e,t)=>{var r;let n=(void 0===(r=e)&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:a,y:o,placement:i,middlewareData:l}=e,s=await iN(e,r);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:i}}}});return{name:n.name,fn:n.fn,options:[e,t]}},i2={...eg},i4=i2.useInsertionEffect||(e=>e());function i5(e){let t=eg.useRef(()=>{});return i4(()=>{t.current=e}),eg.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}var i8="u">typeof document?eg.useLayoutEffect:eg.useEffect;let i3=!1,i9=0,i6=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+i9++,i7=i2.useId||function(){let[e,t]=eg.useState(()=>i3?i6():void 0);return i8(()=>{null==e&&t(i6())},[]),eg.useEffect(()=>{i3=!0},[]),e},le=eg.createContext(null),lt=eg.createContext(null),lr="active",ln="selected";function la(e,t,r){let n=new Map,a="item"===r,o=e;if(a&&e){let{[lr]:t,[ln]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[r,o]=t;if(!(a&&[lr,ln].includes(r)))if(0===r.indexOf("on")){if(n.has(r)||n.set(r,[]),"function"==typeof o){var i;null==(i=n.get(r))||i.push(o),e[r]=function(){for(var e,t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map(e=>e(...a)).find(e=>void 0!==e)}}}else e[r]=o}),e),{})}}function lo(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var eg=eh("j89Fe");let li=(0,eg.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});li.displayName="FloatingContext";let ll=(0,eg.createContext)(null);function ls(e){return(0,eg.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function lu(){return(0,eg.useContext)(li).setReference}function lc(){let{getFloatingProps:e,slot:t}=(0,eg.useContext)(li);return(0,eg.useCallback)((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function ld(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,eg.useContext)(ll),r=(0,eg.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);aS(()=>{null==t||t(null!=r?r:null)},[t,r]);let n=(0,eg.useContext)(li);return(0,eg.useMemo)(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}function lf({children:e,enabled:t=!0}){var r,n,a,o,i,l,s,u,c,d,f,p,h,m,g,v;let b,y,w,E,x,_,S,C,O,k,R,j,T,[F,A]=(0,eg.useState)(null),[N,P]=(0,eg.useState)(0),M=(0,eg.useRef)(null),[I,L]=(0,eg.useState)(null);aS(()=>{if(!f)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(f).maxHeight,t=parseFloat(e);if(isNaN(t))return;let r=parseInt(e);isNaN(r)||t!==r&&(f.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(f,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[f=I]);let D=t&&null!==F&&null!==I,{to:z="bottom",gap:B=0,offset:H=0,padding:U=0,inner:$}=(p=F,h=I,b=lp(null!=(m=null==p?void 0:p.gap)?m:"var(--anchor-gap, 0)",h),y=lp(null!=(g=null==p?void 0:p.offset)?g:"var(--anchor-offset, 0)",h),w=lp(null!=(v=null==p?void 0:p.padding)?v:"var(--anchor-padding, 0)",h),{...p,gap:b,offset:y,padding:w}),[W,V="center"]=z.split(" ");aS(()=>{D&&P(0)},[D]);let{refs:q,floatingStyles:G,context:K}=function(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){var t;let{open:r=!1,onOpenChange:n,elements:a}=e,o=i7(),i=eg.useRef({}),[l]=eg.useState(()=>{let e;return e=new Map,{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}),s=null!=((null==(t=eg.useContext(le))?void 0:t.id)||null),[u,c]=eg.useState(a.reference),d=i5((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),f=eg.useMemo(()=>({setPositionReference:c}),[]),p=eg.useMemo(()=>({reference:u||a.reference||null,floating:a.floating||null,domReference:a.reference}),[u,a.reference,a.floating]);return eg.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:p,events:l,floatingId:o,refs:f}),[r,d,p,l,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,a=n.elements,[o,i]=eg.useState(null),[l,s]=eg.useState(null),u=(null==a?void 0:a.domReference)||o,c=eg.useRef(null),d=eg.useContext(lt);i8(()=>{u&&(c.current=u)},[u]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,d]=eg.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eg.useState(n);iJ(f,n)||p(n);let[h,m]=eg.useState(null),[g,v]=eg.useState(null),b=eg.useCallback(e=>{e!==x.current&&(x.current=e,m(e))},[]),y=eg.useCallback(e=>{e!==_.current&&(_.current=e,v(e))},[]),w=o||h,E=i||g,x=eg.useRef(null),_=eg.useRef(null),S=eg.useRef(c),C=null!=s,O=i0(s),k=i0(a),R=i0(u),j=eg.useCallback(()=>{var e,n;let a,o,i;if(!x.current||!_.current)return;let l={placement:t,strategy:r,middleware:f};k.current&&(l.platform=k.current),(e=x.current,n=_.current,a=new Map,i={...(o={platform:iG,...l}).platform,_c:a},iF(e,n,{...o,platform:i})).then(e=>{let t={...e,isPositioned:!1!==R.current};T.current&&!iJ(S.current,t)&&(S.current=t,iR.flushSync(()=>{d(t)}))})},[f,t,r,k,R]);iZ(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let T=eg.useRef(!1);iZ(()=>(T.current=!0,()=>{T.current=!1}),[]),iZ(()=>{if(w&&(x.current=w),E&&(_.current=E),w&&E){if(O.current)return O.current(w,E,j);j()}},[w,E,j,O,C]);let F=eg.useMemo(()=>({reference:x,floating:_,setReference:b,setFloating:y}),[b,y]),A=eg.useMemo(()=>({reference:w,floating:E}),[w,E]),N=eg.useMemo(()=>{let e={position:r,left:0,top:0};if(!A.floating)return e;let t=iQ(A.floating,c.x),n=iQ(A.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...iY(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,A.floating,c.x,c.y]);return eg.useMemo(()=>({...c,update:j,refs:F,elements:A,floatingStyles:N}),[c,j,F,A,N])}({...e,elements:{...a,...l&&{reference:l}}}),p=eg.useCallback(e=>{let t=o0(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),h=eg.useCallback(e=>{(o0(e)||null===e)&&(c.current=e,i(e)),(o0(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!o0(e))&&f.refs.setReference(e)},[f.refs]),m=eg.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:c}),[f.refs,h,p]),g=eg.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=eg.useMemo(()=>({...f,...n,refs:m,elements:g,nodeId:t}),[f,m,g,t,n]);return i8(()=>{n.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),eg.useMemo(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}({open:D,placement:"selection"===W?"center"===V?"bottom":`bottom-${V}`:"center"===V?`${W}`:`${W}-${V}`,strategy:"absolute",transform:!1,middleware:[i1({mainAxis:"selection"===W?0:B,crossAxis:H}),{name:(E={name:"shift",options:a=r={padding:U},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=ih(a,e),c={x:t,y:r},d=await o.detectOverflow(e,u),f=iy(im(n)),p=iv(f),h=c[p],m=c[f];if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=h+d[e],n=h-d[t];h=is(r,il(h,n))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=m+d[e],n=m-d[t];m=is(r,il(m,n))}let g=s.fn({...e,[p]:h,[f]:m});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[p]:i,[f]:l}}}}}).name,fn:E.fn,options:[r,n]},"selection"!==W&&{name:(x={name:"flip",options:l=o={padding:U},async fn(e){var t,r,n,a,o,i,s,u;let c,d,f,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:v,elements:b}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...C}=ih(l,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let O=im(p),k=iy(g),R=im(g)===g,j=await (null==v.isRTL?void 0:v.isRTL(b.floating)),T=E||(R||!S?[iC(g)]:(c=iC(g),[iw(g),c,iw(c)])),F="none"!==_;!E&&F&&T.push(...(d=ig(g),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?ix:iE;return t?iE:ix;case"left":case"right":return t?i_:iS;default:return[]}}(im(g),"start"===_,j),d&&(f=f.map(e=>e+"-"+d),S&&(f=f.concat(f.map(iw)))),f));let A=[g,...T],N=await v.detectOverflow(e,C),P=[],M=(null==(r=h.flip)?void 0:r.overflows)||[];if(y&&P.push(N[O]),w){let e,t,r,n,a=(i=p,s=m,void 0===(u=j)&&(u=!1),e=ig(i),r=ib(t=iv(iy(i))),n="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=iC(n)),[n,iC(n)]);P.push(N[a[0]],N[a[1]])}if(M=[...M,{placement:p,overflows:P}],!P.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=A[e];if(t&&("alignment"!==w||k===iy(t)||M.every(e=>iy(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(x){case"bestFit":{let e=null==(o=M.filter(e=>{if(F){let t=iy(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(p!==r)return{reset:{placement:r}}}return{}}}).name,fn:x.fn,options:[o,i]},"selection"===W&&$?{name:"inner",options:_={...$,padding:U,overflowRef:M,offset:N,minItemsVisible:4,referenceOverflowThreshold:U,onFallbackChange(e){var t,r;if(!e)return;let n=K.elements.floating;if(!n)return;let a=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,o=Math.min(4,n.childElementCount),i=0,l=0;for(let e of null!=(r=null==(t=K.elements.floating)?void 0:t.childNodes)?r:[])if(aN(e)){let t=e.offsetTop,r=t+e.clientHeight+a,s=n.scrollTop,u=s+n.clientHeight;if(t>=s&&r<=u)o--;else{l=Math.max(0,Math.min(r,u)-Math.max(t,s)),i=e.clientHeight;break}}o>=1&&P(e=>{let t=i*o-l+a;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:r,onFallbackChange:n,offset:a=0,index:o=0,minItemsVisible:i=4,referenceOverflowThreshold:l=0,scrollRef:s,...u}=ih(_,e),{rects:c,elements:{floating:d}}=e,f=t.current[o],p=(null==s?void 0:s.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};let b={...e,...await i1(-f.offsetTop-d.clientTop-c.reference.height/2-f.offsetHeight/2-a).fn(e)},y=await iT(lo(b,p.scrollHeight+h+d.clientTop),u),w=await iT(b,{...u,elementContext:"reference"}),E=is(0,y.top),x=b.y+E,S=(p.scrollHeight>p.clientHeight?e=>e:iu)(is(0,p.scrollHeight+(m&&v||g?2*h:0)-E-is(0,y.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=E,n){let e=p.offsetHeight<f.offsetHeight*il(i,t.current.length)-1||w.top>=-l||w.bottom>=-l;iR.flushSync(()=>n(e))}return r&&(r.current=await iT(lo({...b,y:x},p.offsetHeight+h+d.clientTop),u)),{y:x}}}:null,{name:(S={name:"size",options:c=s={padding:U,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){var t,r;let n,a,{placement:o,rects:i,platform:l,elements:s}=e,{apply:u=()=>{},...d}=ih(c,e),f=await l.detectOverflow(e,d),p=im(o),h=ig(o),m="y"===iy(o),{width:g,height:v}=i.floating;"top"===p||"bottom"===p?(n=p,a=h===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(a=p,n="end"===h?"top":"bottom");let b=v-f.top-f.bottom,y=g-f.left-f.right,w=il(v-f[n],b),E=il(g-f[a],y),x=!e.middlewareData.shift,_=w,S=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=y),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(_=b),x&&!h){let e=is(f.left,0),t=is(f.right,0),r=is(f.top,0),n=is(f.bottom,0);m?S=g-2*(0!==e||0!==t?e+t:is(f.left,f.right)):_=v-2*(0!==r||0!==n?r+n:is(f.top,f.bottom))}await u({...e,availableWidth:S,availableHeight:_});let C=await l.getDimensions(s.floating);return g!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}).name,fn:S.fn,options:[s,u]}].filter(Boolean),whileElementsMounted:iX}),[X=W,Z=V]=K.placement.split("-");"selection"===W&&(X="selection");let J=(0,eg.useMemo)(()=>({anchor:[X,Z].filter(Boolean).join(" ")}),[X,Z]),{getReferenceProps:Y,getFloatingProps:Q}=(C=(d=[function(e,t){let{open:r,elements:n}=e,{enabled:a=!0,overflowRef:o,scrollRef:i,onChange:l}=t,s=i5(l),u=eg.useRef(!1),c=eg.useRef(null),d=eg.useRef(null);eg.useEffect(()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;let r=e.deltaY,n=o.current.top>=-.5,a=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=r<0?-1:1,u=r<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!n&&r>0||!a&&r<0)e.preventDefault(),iR.flushSync(()=>{s(e=>e+Math[u](r,i*l))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent)&&(t.scrollTop+=r)}}let t=(null==i?void 0:i.current)||n.floating;if(r&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[a,r,n.floating,o,i,s]);let f=eg.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==i?void 0:i.current)||n.floating;if(o.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&iR.flushSync(()=>s(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[n.floating,s,o,i]);return eg.useMemo(()=>a?{floating:f}:{},[a,f])}(K,{overflowRef:M,onChange:P})]).map(e=>null==e?void 0:e.reference),O=d.map(e=>null==e?void 0:e.floating),k=d.map(e=>null==e?void 0:e.item),R=eg.useCallback(e=>la(e,d,"reference"),C),j=eg.useCallback(e=>la(e,d,"floating"),O),T=eg.useCallback(e=>la(e,d,"item"),k),eg.useMemo(()=>({getReferenceProps:R,getFloatingProps:j,getItemProps:T}),[R,j,T])),ee=aO(e=>{L(e),q.setFloating(e)});return eg.createElement(ll.Provider,{value:A},eg.createElement(li.Provider,{value:{setFloating:ee,setReference:q.setReference,styles:G,getReferenceProps:Y,getFloatingProps:Q,slot:J}},e))}function lp(e,t,r){let n=a_(),a=aO((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let a=lh(e,t);return[a,r=>{let o=function e(t){let r=/var\((.*)\)/.exec(t);if(r){let t=r[1].indexOf(",");if(-1===t)return[r[1]];let n=r[1].slice(0,t).trim(),a=r[1].slice(t+1).trim();return a?[n,...e(a)]:[n]}return[]}(e);{let i=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function l(){n.nextFrame(l);let s=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(i[e]!==n){i[e]=n,s=!0;break}}if(!s)return;let u=lh(e,t);a!==u&&(r(u),a=u)})}return n.dispose}]}return[r,null]}),o=(0,eg.useMemo)(()=>a(e,t)[0],[e,t]),[i=o,l]=(0,eg.useState)();return aS(()=>{let[r,n]=a(e,t);if(l(r),n)return n(l)},[e,t]),i}function lh(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}ll.displayName="PlacementContext";var eg=eh("j89Fe");let lm=(0,eg.createContext)(null);lm.displayName="OpenClosedContext";var lg=((w=lg||{})[w.Open=1]="Open",w[w.Closed=2]="Closed",w[w.Closing=4]="Closing",w[w.Opening=8]="Opening",w);function lv(){return(0,eg.useContext)(lm)}function lb({value:e,children:t}){return eu(eg).createElement(lm.Provider,{value:e},t)}function ly({children:e}){return eu(eg).createElement(lm.Provider,{value:null},e)}function lw(e){var t;let r=e.parentElement,n=null;for(;r&&!(aN(t=r)&&"FIELDSET"===t.nodeName);)aL(r)&&(n=r),r=r.parentElement;let a=(null==r?void 0:r.getAttribute("disabled"))==="";return!(a&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(aL(t))return!1;t=t.previousElementSibling}return!0}(n))&&a}var lE=((E=lE||{}).Space=" ",E.Enter="Enter",E.Escape="Escape",E.Backspace="Backspace",E.Delete="Delete",E.ArrowLeft="ArrowLeft",E.ArrowUp="ArrowUp",E.ArrowRight="ArrowRight",E.ArrowDown="ArrowDown",E.Home="Home",E.End="End",E.PageUp="PageUp",E.PageDown="PageDown",E.Tab="Tab",E);function lx(e){let t=aO(e),r=(0,eg.useRef)(!1);(0,eg.useEffect)(()=>(r.current=!1,()=>{r.current=!0,aE(()=>{r.current&&t()})}),[t])}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let l_=(0,eg.createContext)(!1);function lS(e){return eu(eg).createElement(l_.Provider,{value:e.force},e.children)}let lC=eg.Fragment,lO=oa(function(e,t){let{ownerDocument:r=null,...n}=e,a=(0,eg.useRef)(null),o=oH(oB(e=>{a.current=e}),t),i=a5(a.current),l=function(e){let t=(0,eg.useContext)(l_),r=(0,eg.useContext)(lR),[n,a]=(0,eg.useState)(()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(av.isServer)return null;let a=null==e?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,eg.useEffect)(()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))},[n,e]),(0,eg.useEffect)(()=>{t||null!==r&&a(r.current)},[r,a,t]),n}(null!=r?r:i),s=(0,eg.useContext)(lj),u=a_(),c=a7();return lx(()=>{var e;l&&l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l))}),l?(0,iR.createPortal)(eu(eg).createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),s&&e&&u.add(s.register(e))}},c({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:lC,name:"Portal"})),l):null}),lk=eg.Fragment,lR=(0,eg.createContext)(null),lj=(0,eg.createContext)(null);function lT(){let e=(0,eg.useContext)(lj),t=(0,eg.useRef)([]),r=aO(r=>(t.current.push(r),e&&e.register(r),()=>n(r))),n=aO(r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)}),a=(0,eg.useMemo)(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,(0,eg.useMemo)(()=>function({children:e}){return eu(eg).createElement(lj.Provider,{value:a},e)},[a])]}let lF=oa(function(e,t){let r=oH(t),{enabled:n=!0,ownerDocument:a,...o}=e,i=a7();return n?eu(eg).createElement(lO,{...o,ownerDocument:a,ref:r}):i({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:lC,name:"Portal"})}),lA=oa(function(e,t){let{target:r,...n}=e,a={ref:oH(t)},o=a7();return eu(eg).createElement(lR.Provider,{value:r},o({ourProps:a,theirProps:n,defaultTag:lk,name:"Popover.Group"}))}),lN=Object.assign(lF,{Group:lA});var lP=Object.defineProperty,lM=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?lP(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},lI=((x=lI||{})[x.Open=0]="Open",x[x.Closed=1]="Closed",x),lL=((_=lL||{})[_.OpenPopover=0]="OpenPopover",_[_.ClosePopover=1]="ClosePopover",_[_.SetButton=2]="SetButton",_[_.SetButtonId=3]="SetButtonId",_[_.SetPanel=4]="SetPanel",_[_.SetPanelId=5]="SetPanelId",_);let lD={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class lz extends ox{constructor(e){super(e),lM(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?aN(e)?e:"current"in e&&aN(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),lM(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let r=null!=(t=ab(e.button))?t:document;for(let t of r.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let n=aV(r),a=n.indexOf(e.button),o=(a+n.length-1)%n.length,i=(a+1)%n.length,l=n[o],s=n[i];return!e.panel.contains(l)&&!e.panel.contains(s)}});{let e=this.state.id,t=oA.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new lz({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return az(t.type,lD,e,t)}}var eg=eh("j89Fe");let lB=(0,eg.createContext)(null);function lH(e){let t=(0,eg.useContext)(lB);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lH),t}return t}let lU=(0,eg.createContext)(null);function l$(){return(0,eg.useContext)(lU)}lU.displayName="PopoverGroupContext";let lW=(0,eg.createContext)(null);lW.displayName="PopoverPanelContext";let lV=a9.RenderStrategy|a9.Static;function lq(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-backdrop-${r}`,transition:a=!1,...o}=e,i=lH("Popover.Backdrop"),l=oP(i,(0,eg.useCallback)(e=>e.popoverState,[])),[s,u]=(0,eg.useState)(null),c=oH(t,u),d=lv(),[f,p]=oq(a,s,null!==d?(d&lg.Open)===lg.Open:l===lI.Open),h=aO(e=>{if(lw(e.currentTarget))return e.preventDefault();i.actions.close()}),m=oD({open:l===lI.Open}),g={ref:c,id:n,"aria-hidden":!0,onClick:h,...oV(p)};return a7()({ourProps:g,theirProps:o,slot:m,defaultTag:"div",features:lV,visible:f,name:"Popover.Backdrop"})}let lG=a9.RenderStrategy|a9.Static,lK=oa(function(e,t){var r;let n=(0,eg.useId)(),{__demoMode:a=!1,...o}=e,i=function({id:e,__demoMode:t=!1}){let r=(0,eg.useMemo)(()=>lz.new({id:e,__demoMode:t}),[]);return lx(()=>r.dispose()),r}({id:n,__demoMode:a}),l=(0,eg.useRef)(null),s=oH(t,oB(e=>{l.current=e})),[u,c,d,f,p]=oP(i,(0,eg.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),h=function(...e){return(0,eg.useMemo)(()=>ay(...e),[...e])}(null!=(r=l.current)?r:c),m=aC(f),g=aC(p),v=(0,eg.useMemo)(()=>({buttonId:m,panelId:g,close:i.actions.close}),[m,g,i]),b=l$(),y=null==b?void 0:b.registerPopover,w=aO(()=>{var e,t;let r=aw(null!=(e=l.current)?e:c);return null!=(t=null==b?void 0:b.isFocusWithinPopoverGroup())?t:r&&((null==c?void 0:c.contains(r))||(null==d?void 0:d.contains(r)))});(0,eg.useEffect)(()=>null==y?void 0:y(v),[y,v]);let[E,x]=lT(),_=op(c),S=oc({mainTreeNode:_,portals:E,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});aT(h,"focus",e=>{var t,r,n,a,o,l;e.target!==window&&aP(e.target)&&i.state.popoverState===lI.Open&&(w()||i.state.button&&i.state.panel&&(S.contains(e.target)||null!=(r=null==(t=i.state.beforePanelSentinel.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(a=null==(n=i.state.afterPanelSentinel.current)?void 0:n.contains)&&a.call(n,e.target)||null!=(l=null==(o=i.state.afterButtonSentinel.current)?void 0:o.contains)&&l.call(o,e.target)||i.actions.close()))},!0),a4(u===lI.Open,S.resolveContainers,(e,t)=>{i.actions.close(),aG(t,aq.Loose)||(e.preventDefault(),null==c||c.focus())});let C=oD({open:u===lI.Open,close:i.actions.refocusableClose}),O=oP(i,(0,eg.useCallback)(e=>az(e.popoverState,{[lI.Open]:lg.Open,[lI.Closed]:lg.Closed}),[])),k=a7();return eu(eg).createElement(of,{node:_},eu(eg).createElement(lf,null,eu(eg).createElement(lW.Provider,{value:null},eu(eg).createElement(lB.Provider,{value:i},eu(eg).createElement(oK,{value:i.actions.refocusableClose},eu(eg).createElement(lb,{value:O},eu(eg).createElement(x,null,k({ourProps:{ref:s},theirProps:o,slot:C,defaultTag:"div",name:"Popover"}))))))))}),lX=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-button-${r}`,disabled:a=!1,autoFocus:o=!1,...i}=e,l=lH("Popover.Button"),[s,u,c,d,f,p,h]=oP(l,(0,eg.useCallback)(e=>[e.popoverState,l.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),m=(0,eg.useRef)(null),g=`headlessui-focus-sentinel-${(0,eg.useId)()}`,v=l$(),b=null==v?void 0:v.closeOthers,y=null!==(0,eg.useContext)(lW);(0,eg.useEffect)(()=>{if(!y)return l.actions.setButtonId(n),()=>l.actions.setButtonId(null)},[y,n,l]);let[w]=(0,eg.useState)(()=>Symbol()),E=oH(m,t,lu(),aO(e=>{if(!y){if(e)l.state.buttons.current.push(w);else{let e=l.state.buttons.current.indexOf(w);-1!==e&&l.state.buttons.current.splice(e,1)}l.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&l.actions.setButton(e)}})),x=oH(m,t),_=aO(e=>{var t,r,n;if(y){if(l.state.popoverState===lI.Closed)return;switch(e.key){case lE.Space:case lE.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),l.actions.close(),null==(n=l.state.button)||n.focus()}}else switch(e.key){case lE.Space:case lE.Enter:e.preventDefault(),e.stopPropagation(),l.state.popoverState===lI.Closed?(null==b||b(l.state.buttonId),l.actions.open()):l.actions.close();break;case lE.Escape:if(l.state.popoverState!==lI.Open)return null==b?void 0:b(l.state.buttonId);if(!m.current)return;let a=aw(m.current);if(a&&!m.current.contains(a))return;e.preventDefault(),e.stopPropagation(),l.actions.close()}}),S=aO(e=>{y||e.key===lE.Space&&e.preventDefault()}),C=aO(e=>{var t,r;lw(e.currentTarget)||a||(y?(l.actions.close(),null==(t=l.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),l.state.popoverState===lI.Closed?(null==b||b(l.state.buttonId),l.actions.open()):l.actions.close(),null==(r=l.state.button)||r.focus()))}),O=aO(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:k,focusProps:R}=au({autoFocus:o}),{isHovered:j,hoverProps:T}=ah({isDisabled:a}),{pressed:F,pressProps:A}=ak({disabled:a}),N=s===lI.Open,P=oD({open:N,active:F||N,disabled:a,hover:j,focus:k,autofocus:o}),M=a8(e,c),I=y?on({ref:x,type:M,onKeyDown:_,onClick:C,disabled:a||void 0,autoFocus:o},R,T,A):on({ref:E,id:d,type:M,"aria-expanded":s===lI.Open,"aria-controls":f?p:void 0,disabled:a||void 0,autoFocus:o,onKeyDown:_,onKeyUp:S,onClick:C,onMouseDown:O},R,T,A),L=o$(),D=aO(()=>{if(!aN(l.state.panel))return;let e=l.state.panel;az(L.current,{[oU.Forwards]:()=>aY(e,aU.First),[oU.Backwards]:()=>aY(e,aU.Last)})===a$.Error&&aY(aV(ay(l.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),az(L.current,{[oU.Forwards]:aU.Next,[oU.Backwards]:aU.Previous}),{relativeTo:l.state.button})}),z=a7();return eu(eg).createElement(eu(eg).Fragment,null,z({ourProps:I,theirProps:i,slot:P,defaultTag:"button",name:"Popover.Button"}),N&&!y&&u&&eu(eg).createElement(ou,{id:g,ref:h,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:D}))}),lZ=oa(lq),lJ=oa(lq),lY=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-panel-${r}`,focus:a=!1,anchor:o,portal:i=!1,modal:l=!1,transition:s=!1,...u}=e,c=lH("Popover.Panel"),d=oP(c,c.selectors.isPortalled),[f,p,h,m,g]=oP(c,(0,eg.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),v=`headlessui-focus-sentinel-before-${r}`,b=`headlessui-focus-sentinel-after-${r}`,y=(0,eg.useRef)(null),w=ls(o),[E,x]=ld(w),_=lc();w&&(i=!0);let[S,C]=(0,eg.useState)(null),O=oH(y,t,w?E:null,c.actions.setPanel,C),k=a5(p),R=a5(y.current);aS(()=>(c.actions.setPanelId(n),()=>c.actions.setPanelId(null)),[n,c]);let j=lv(),[T,F]=oq(s,S,null!==j?(j&lg.Open)===lg.Open:f===lI.Open);aD(T,p,c.actions.close),oL(!h&&l&&T,R);let A=aO(e=>{var t;if(e.key===lE.Escape){if(c.state.popoverState!==lI.Open||!y.current)return;let r=aw(y.current);if(r&&!y.current.contains(r))return;e.preventDefault(),e.stopPropagation(),c.actions.close(),null==(t=c.state.button)||t.focus()}});(0,eg.useEffect)(()=>{var t;e.static||f===lI.Closed&&(null==(t=e.unmount)||t)&&c.actions.setPanel(null)},[f,e.unmount,e.static,c]),(0,eg.useEffect)(()=>{if(h||!a||f!==lI.Open||!y.current)return;let e=aw(y.current);y.current.contains(e)||aY(y.current,aU.First)},[h,a,y.current,f]);let N=oD({open:f===lI.Open,close:c.actions.refocusableClose}),P=on(w?_():{},{ref:O,id:n,onKeyDown:A,onBlur:a&&f===lI.Open?e=>{var t,r,n,a,o;let i=e.relatedTarget;i&&y.current&&(null!=(t=y.current)&&t.contains(i)||(c.actions.close(),(null!=(n=null==(r=m.current)?void 0:r.contains)&&n.call(r,i)||null!=(o=null==(a=g.current)?void 0:a.contains)&&o.call(a,i))&&i.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...x,"--button-width":aj(T,p,!0).width},...oV(F)}),M=o$(),I=aO(()=>{let e=y.current;e&&az(M.current,{[oU.Forwards]:()=>{var t;aY(e,aU.First)===a$.Error&&(null==(t=c.state.afterPanelSentinel.current)||t.focus())},[oU.Backwards]:()=>{var e;null==(e=c.state.button)||e.focus({preventScroll:!0})}})}),L=aO(()=>{let e=y.current;e&&az(M.current,{[oU.Forwards]:()=>{var e;if(!c.state.button)return;let t=aV(null!=(e=ay(c.state.button))?e:document.body),r=t.indexOf(c.state.button),n=t.slice(0,r+1),a=[...t.slice(r+1),...n];for(let e of a.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=S&&S.contains(e)){let t=a.indexOf(e);-1!==t&&a.splice(t,1)}aY(a,aU.First,{sorted:!1})},[oU.Backwards]:()=>{var t;aY(e,aU.Previous)===a$.Error&&(null==(t=c.state.button)||t.focus())}})}),D=a7();return eu(eg).createElement(ly,null,eu(eg).createElement(lW.Provider,{value:n},eu(eg).createElement(oK,{value:c.actions.refocusableClose},eu(eg).createElement(lN,{enabled:!!i&&(e.static||T),ownerDocument:k},T&&d&&eu(eg).createElement(ou,{id:v,ref:m,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),D({ourProps:P,theirProps:u,slot:N,defaultTag:"div",features:lG,visible:T,name:"Popover.Panel"}),T&&d&&eu(eg).createElement(ou,{id:b,ref:g,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L})))))}),lQ=Object.assign(lK,{Button:lX,Backdrop:lJ,Overlay:lZ,Panel:lY,Group:oa(function(e,t){let r=(0,eg.useRef)(null),n=oH(r,t),[a,o]=(0,eg.useState)([]),i=aO(e=>{o(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),l=aO(e=>(o(t=>[...t,e]),()=>i(e))),s=aO(()=>{var e;let t=ay(r.current);if(!t)return!1;let n=aw(r.current);return!!(null!=(e=r.current)&&e.contains(n))||a.some(e=>{var r,a;return(null==(r=t.getElementById(e.buttonId.current))?void 0:r.contains(n))||(null==(a=t.getElementById(e.panelId.current))?void 0:a.contains(n))})}),u=aO(e=>{for(let t of a)t.buttonId.current!==e&&t.close()}),c=(0,eg.useMemo)(()=>({registerPopover:l,unregisterPopover:i,isFocusWithinPopoverGroup:s,closeOthers:u}),[l,i,s,u]),d=oD({}),f=a7();return eu(eg).createElement(of,null,eu(eg).createElement(lU.Provider,{value:c},f({ourProps:{ref:n},theirProps:e,slot:d,defaultTag:"div",name:"Popover.Group"})))})});"use strict";var eg=eh("j89Fe"),l0={};"use strict";Object.defineProperty(l0,"__esModule",{value:!0}),l0.ReactCSS=l0.loop=l0.handleActive=l0.handleHover=l0.hover=void 0;var l1={};Object.defineProperty(l1,"__esModule",{value:!0}),l1.flattenNames=void 0;var l2={},l4={},l5=eh("dGOyA");l4=l5.Symbol;var l8={},l3=Object.prototype,l9=l3.hasOwnProperty,l6=l3.toString,l7=l4?l4.toStringTag:void 0;l8=function(e){var t=l9.call(e,l7),r=e[l7];try{e[l7]=void 0;var n=!0}catch(e){}var a=l6.call(e);return n&&(t?e[l7]=r:delete e[l7]),a};var se={},st=Object.prototype.toString;se=function(e){return st.call(e)};var sr=l4?l4.toStringTag:void 0;l2=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sr&&sr in Object(e)?l8(e):se(e)};var sn={};sn=Array.isArray;var sa={};sa=function(e){return null!=e&&"object"==typeof e};var so=cX(function(e){return"string"==typeof e||!sn(e)&&sa(e)&&"[object String]"==l2(e)}),si={},sl={},ss={};ss=function(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),l=i.length;l--;){var s=i[e?l:++a];if(!1===r(o[s],s,o))break}return t}}();var su={},sc={},sd={};sd=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var sf={},sp={};sp=function(e){return sa(e)&&"[object Arguments]"==l2(e)};var sh=Object.prototype,sm=sh.hasOwnProperty,sg=sh.propertyIsEnumerable;sf=sp(function(){return arguments}())?sp:function(e){return sa(e)&&sm.call(e,"callee")&&!sg.call(e,"callee")};var sv=eh("gDKMC"),sb={},sy=/^(?:0|[1-9]\d*)$/;sb=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&sy.test(e))&&e>-1&&e%1==0&&e<t};var sw={},sE={},sx={};sx=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var s_={};s_["[object Float32Array]"]=s_["[object Float64Array]"]=s_["[object Int8Array]"]=s_["[object Int16Array]"]=s_["[object Int32Array]"]=s_["[object Uint8Array]"]=s_["[object Uint8ClampedArray]"]=s_["[object Uint16Array]"]=s_["[object Uint32Array]"]=!0,s_["[object Arguments]"]=s_["[object Array]"]=s_["[object ArrayBuffer]"]=s_["[object Boolean]"]=s_["[object DataView]"]=s_["[object Date]"]=s_["[object Error]"]=s_["[object Function]"]=s_["[object Map]"]=s_["[object Number]"]=s_["[object Object]"]=s_["[object RegExp]"]=s_["[object Set]"]=s_["[object String]"]=s_["[object WeakMap]"]=!1,sE=function(e){return sa(e)&&sx(e.length)&&!!s_[l2(e)]};var sS={};sS=function(e){return function(t){return e(t)}};var sC=eh("esndt"),sO=sC&&sC.isTypedArray;sw=sO?sS(sO):sE;var sk=Object.prototype.hasOwnProperty;sc=function(e,t){var r=sn(e),n=!r&&sf(e),a=!r&&!n&&sv(e),o=!r&&!n&&!a&&sw(e),i=r||n||a||o,l=i?sd(e.length,String):[],s=l.length;for(var u in e)(t||sk.call(e,u))&&!(i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||sb(u,s)))&&l.push(u);return l};var sR={},sj={},sT=Object.prototype;sj=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||sT)};var sF={},sA={};sF=(sA=function(e,t){return function(r){return e(t(r))}})(Object.keys,Object);var sN=Object.prototype.hasOwnProperty;sR=function(e){if(!sj(e))return sF(e);var t=[];for(var r in Object(e))sN.call(e,r)&&"constructor"!=r&&t.push(r);return t};var sP={},sM={},sI={};sI=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},sM=function(e){if(!sI(e))return!1;var t=l2(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sP=function(e){return null!=e&&sx(e.length)&&!sM(e)},su=function(e){return sP(e)?sc(e):sR(e)},sl=function(e,t){return e&&ss(e,t,su)};var sL={},sD={};sD=function(e){return e},sL=function(e){return"function"==typeof e?e:sD};var sz=cX(si=function(e,t){return e&&sl(e,sL(t))}),sB={};sB=sA(Object.getPrototypeOf,Object);var sH=Object.prototype,sU=Function.prototype.toString,s$=sH.hasOwnProperty,sW=sU.call(Object),sV=cX(function(e){if(!sa(e)||"[object Object]"!=l2(e))return!1;var t=sB(e);if(null===t)return!0;var r=s$.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&sU.call(r)==sW}),sq={};sq=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a};var sG={},sK={},sX={},sZ={},sJ={},sY={};sY=function(){this.__data__=[],this.size=0};var sQ={},s0={},s1={};s1=function(e,t){return e===t||e!=e&&t!=t},s0=function(e,t){for(var r=e.length;r--;)if(s1(e[r][0],t))return r;return -1};var s2=Array.prototype.splice;sQ=function(e){var t=this.__data__,r=s0(t,e);return!(r<0)&&(r==t.length-1?t.pop():s2.call(t,r,1),--this.size,!0)};var s4={};s4=function(e){var t=this.__data__,r=s0(t,e);return r<0?void 0:t[r][1]};var s5={};s5=function(e){return s0(this.__data__,e)>-1};var s8={};function s3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s8=function(e,t){var r=this.__data__,n=s0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},s3.prototype.clear=sY,s3.prototype.delete=sQ,s3.prototype.get=s4,s3.prototype.has=s5,s3.prototype.set=s8,sJ=s3;var s9={};s9=function(){this.__data__=new sJ,this.size=0};var s6={};s6=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var s7={};s7=function(e){return this.__data__.get(e)};var ue={};ue=function(e){return this.__data__.has(e)};var ut={},ur={},un={},ua={},uo={},ui={},l5=eh("dGOyA");ui=l5["__core-js_shared__"];var ul=(X=/[^.]+$/.exec(ui&&ui.keys&&ui.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"";uo=function(e){return!!ul&&ul in e};var us={},uu=Function.prototype.toString;us=function(e){if(null!=e){try{return uu.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var uc=/^\[object .+?Constructor\]$/,ud=Object.prototype,uf=Function.prototype.toString,up=ud.hasOwnProperty,uh=RegExp("^"+uf.call(up).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");ua=function(e){return!(!sI(e)||uo(e))&&(sM(e)?uh:uc).test(us(e))};var um={};um=function(e,t){return null==e?void 0:e[t]},un=function(e,t){var r=um(e,t);return ua(r)?r:void 0};var l5=eh("dGOyA");ur=un(l5,"Map");var ug={},uv={},ub={},uy={},uw={};uw=un(Object,"create"),uy=function(){this.__data__=uw?uw(null):{},this.size=0};var uE={};uE=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var ux={},u_=Object.prototype.hasOwnProperty;ux=function(e){var t=this.__data__;if(uw){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return u_.call(t,e)?t[e]:void 0};var uS={},uC=Object.prototype.hasOwnProperty;uS=function(e){var t=this.__data__;return uw?void 0!==t[e]:uC.call(t,e)};var uO={};function uk(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uO=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=uw&&void 0===t?"__lodash_hash_undefined__":t,this},uk.prototype.clear=uy,uk.prototype.delete=uE,uk.prototype.get=ux,uk.prototype.has=uS,uk.prototype.set=uO,ub=uk,uv=function(){this.size=0,this.__data__={hash:new ub,map:new(ur||sJ),string:new ub}};var uR={},uj={},uT={};uT=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},uj=function(e,t){var r=e.__data__;return uT(t)?r["string"==typeof t?"string":"hash"]:r.map},uR=function(e){var t=uj(this,e).delete(e);return this.size-=!!t,t};var uF={};uF=function(e){return uj(this,e).get(e)};var uA={};uA=function(e){return uj(this,e).has(e)};var uN={};function uP(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function uM(e){var t=this.__data__=new sJ(e);this.size=t.size}uN=function(e,t){var r=uj(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},uP.prototype.clear=uv,uP.prototype.delete=uR,uP.prototype.get=uF,uP.prototype.has=uA,uP.prototype.set=uN,ug=uP,ut=function(e,t){var r=this.__data__;if(r instanceof sJ){var n=r.__data__;if(!ur||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ug(n)}return r.set(e,t),this.size=r.size,this},uM.prototype.clear=s9,uM.prototype.delete=s6,uM.prototype.get=s7,uM.prototype.has=ue,uM.prototype.set=ut,sZ=uM;var uI={},uL={},uD={},uz={},uB={};uB=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var uH={};function uU(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ug;++t<r;)this.add(e[t])}uH=function(e){return this.__data__.has(e)},uU.prototype.add=uU.prototype.push=uB,uU.prototype.has=uH,uz=uU;var u$={};u$=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var uW={};uW=function(e,t){return e.has(t)},uD=function(e,t,r,n,a,o){var i=1&r,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new uz:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var h=e[d],m=t[d];if(n)var g=i?n(m,h,d,t,e,o):n(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!u$(t,function(e,t){if(!uW(p,t)&&(h===e||a(h,e,r,n,o)))return p.push(t)})){f=!1;break}}else if(!(h===m||a(h,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f};var uV={},uq={},l5=eh("dGOyA");uq=l5.Uint8Array;var uG={};uG=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var uK={};uK=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var uX=l4?l4.prototype:void 0,uZ=uX?uX.valueOf:void 0;uV=function(e,t,r,n,a,o,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new uq(e),new uq(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return s1(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=uG;case"[object Set]":var s=1&n;if(l||(l=uK),e.size!=t.size&&!s)break;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=uD(l(e),l(t),n,a,o,i);return i.delete(e),c;case"[object Symbol]":if(uZ)return uZ.call(e)==uZ.call(t)}return!1};var uJ={},uY={},uQ={},u0={};u0=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},uQ=function(e,t,r){var n=t(e);return sn(e)?n:u0(n,r(e))};var u1={},u2={};u2=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o};var u4={};u4=function(){return[]};var u5=Object.prototype.propertyIsEnumerable,u8=Object.getOwnPropertySymbols;u1=u8?function(e){return null==e?[]:(e=Object(e),u2(u8(e),function(t){return u5.call(e,t)}))}:u4,uY=function(e){return uQ(e,su,u1)};var u3=Object.prototype.hasOwnProperty;uJ=function(e,t,r,n,a,o){var i=1&r,l=uY(e),s=l.length;if(s!=uY(t).length&&!i)return!1;for(var u=s;u--;){var c=l[u];if(!(i?c in t:u3.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++u<s;){var m=e[c=l[u]],g=t[c];if(n)var v=i?n(g,m,c,t,e,o):n(m,g,c,e,t,o);if(!(void 0===v?m===g||a(m,g,r,n,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p};var u9={},u6={},l5=eh("dGOyA");u6=un(l5,"DataView");var u7={},l5=eh("dGOyA");u7=un(l5,"Promise");var ce={},l5=eh("dGOyA");ce=un(l5,"Set");var ct={},l5=eh("dGOyA");ct=un(l5,"WeakMap");var cr="[object Map]",cn="[object Promise]",ca="[object Set]",co="[object WeakMap]",ci="[object DataView]",cl=us(u6),cs=us(ur),cu=us(u7),cc=us(ce),cd=us(ct),cf=l2;(u6&&cf(new u6(new ArrayBuffer(1)))!=ci||ur&&cf(new ur)!=cr||u7&&cf(u7.resolve())!=cn||ce&&cf(new ce)!=ca||ct&&cf(new ct)!=co)&&(cf=function(e){var t=l2(e),r="[object Object]"==t?e.constructor:void 0,n=r?us(r):"";if(n)switch(n){case cl:return ci;case cs:return cr;case cu:return cn;case cc:return ca;case cd:return co}return t}),u9=cf;var sv=eh("gDKMC"),cp="[object Arguments]",ch="[object Array]",cm="[object Object]",cg=Object.prototype.hasOwnProperty;uL=function(e,t,r,n,a,o){var i=sn(e),l=sn(t),s=i?ch:u9(e),u=l?ch:u9(t);s=s==cp?cm:s,u=u==cp?cm:u;var c=s==cm,d=u==cm,f=s==u;if(f&&sv(e)){if(!sv(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new sZ),i||sw(e)?uD(e,t,r,n,a,o):uV(e,t,s,r,n,a,o);if(!(1&r)){var p=c&&cg.call(e,"__wrapped__"),h=d&&cg.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new sZ),a(m,g,r,n,o)}}return!!f&&(o||(o=new sZ),uJ(e,t,r,n,a,o))},uI=function e(t,r,n,a,o){return t===r||(null!=t&&null!=r&&(sa(t)||sa(r))?uL(t,r,n,a,e,o):t!=t&&r!=r)},sX=function(e,t,r,n){var a=r.length,o=a,i=!n;if(null==e)return!o;for(e=Object(e);a--;){var l=r[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var s=(l=r[a])[0],u=e[s],c=l[1];if(i&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new sZ;if(n)var f=n(u,c,s,e,t,d);if(!(void 0===f?uI(c,u,3,n,d):f))return!1}}return!0};var cv={},cb={};cb=function(e){return e==e&&!sI(e)},cv=function(e){for(var t=su(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cb(a)]}return t};var cy={};cy=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},sK=function(e){var t=cv(e);return 1==t.length&&t[0][2]?cy(t[0][0],t[0][1]):function(r){return r===e||sX(r,e,t)}};var cw={},cE={},cx={},c_={},cS={},cC={};cC=function(e){return"symbol"==typeof e||sa(e)&&"[object Symbol]"==l2(e)};var cO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ck=/^\w*$/;cS=function(e,t){if(sn(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||cC(e))||ck.test(e)||!cO.test(e)||null!=t&&e in Object(t)};var cR={},cj={};function cT(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(cT.Cache||ug),r}cT.Cache=ug,cj=cT;var cF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cA=/\\(\\)?/g;cR=function(e){var t=cj(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(cF,function(e,r,n,a){t.push(n?a.replace(cA,"$1"):r||e)}),t});var cN={},cP={},cM=1/0,cI=l4?l4.prototype:void 0,cL=cI?cI.toString:void 0;cP=function e(t){if("string"==typeof t)return t;if(sn(t))return sq(t,e)+"";if(cC(t))return cL?cL.call(t):"";var r=t+"";return"0"==r&&1/t==-cM?"-0":r},cN=function(e){return null==e?"":cP(e)},c_=function(e,t){return sn(e)?e:cS(e,t)?[e]:cR(cN(e))};var cD={},cz=1/0;cD=function(e){if("string"==typeof e||cC(e))return e;var t=e+"";return"0"==t&&1/e==-cz?"-0":t},cx=function(e,t){t=c_(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[cD(t[r++])];return r&&r==n?e:void 0},cE=function(e,t,r){var n=null==e?void 0:cx(e,t);return void 0===n?r:n};var cB={},cH={};cH=function(e,t){return null!=e&&t in Object(e)};var cU={};cU=function(e,t,r){t=c_(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=cD(t[n]);if(!(o=null!=e&&r(e,i)))break;e=e[i]}return o||++n!=a?o:!!(a=null==e?0:e.length)&&sx(a)&&sb(i,a)&&(sn(e)||sf(e))},cB=function(e,t){return null!=e&&cU(e,t,cH)},cw=function(e,t){return cS(e)&&cb(t)?cy(cD(e),t):function(r){var n=cE(r,e);return void 0===n&&n===t?cB(r,e):uI(t,n,3)}};var c$={},cW={};cW=function(e){return function(t){return null==t?void 0:t[e]}};var cV={};cV=function(e){return function(t){return cx(t,e)}},c$=function(e){return cS(e)?cW(cD(e)):cV(e)},sG=function(e){return"function"==typeof e?e:null==e?sD:"object"==typeof e?sn(e)?cw(e[0],e[1]):sK(e):c$(e)};var cq={},cG={};cG=function(e,t){return function(r,n){if(null==r)return r;if(!sP(r))return e(r,n);for(var a=r.length,o=t?a:-1,i=Object(r);(t?o--:++o<a)&&!1!==n(i[o],o,i););return r}}(sl),cq=function(e,t){var r=-1,n=sP(e)?Array(e.length):[];return cG(e,function(e,a,o){n[++r]=t(e,a,o)}),n};var cK=cX(function(e,t){return(sn(e)?sq:cq)(e,sG(t,3))});function cX(e){return e&&e.__esModule?e:{default:e}}var cZ=l1.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[];return(0,cK.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return r.push(e)}):(0,sV.default)(t)?(0,sz.default)(t,function(e,t){!0===e&&r.push(t),r.push(t+"-"+e)}):(0,so.default)(t)&&r.push(t)}),r};"use strict";l1.default=cZ;var cJ=d8(l1),cY={};Object.defineProperty(cY,"__esModule",{value:!0}),cY.mergeClasses=void 0;var cQ=dI(si),c0={},c1={};c1=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var c2={},c4={},c5={};c5=function(){try{var e=un(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),c4=function(e,t,r){"__proto__"==t&&c5?c5(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var c8=Object.prototype.hasOwnProperty;c2=function(e,t,r){var n=e[t];c8.call(e,t)&&s1(n,r)&&(void 0!==r||t in e)||c4(e,t,r)};var c3={},c9={};c9=function(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=n?n(r[l],e[l],l,r,e):void 0;void 0===s&&(s=e[l]),a?c4(r,l,s):c2(r,l,s)}return r},c3=function(e,t){return e&&c9(t,su(t),e)};var c6={},c7={},de={},dt={};dt=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var dr=Object.prototype.hasOwnProperty;de=function(e){if(!sI(e))return dt(e);var t=sj(e),r=[];for(var n in e)"constructor"==n&&(t||!dr.call(e,n))||r.push(n);return r},c7=function(e){return sP(e)?sc(e,!0):de(e)},c6=function(e,t){return e&&c9(t,c7(t),e)};var dn=eh("3BlhU"),da={};da=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var di={};di=function(e,t){return c9(e,u1(e),t)};var dl={},ds={};ds=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)u0(t,u1(e)),e=sB(e);return t}:u4,dl=function(e,t){return c9(e,ds(e),t)};var du={};du=function(e){return uQ(e,c7,ds)};var dc={},dd=Object.prototype.hasOwnProperty;dc=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&dd.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var df={},dp={};dp=function(e){var t=new e.constructor(e.byteLength);return new uq(t).set(new uq(e)),t};var dh={};dh=function(e,t){var r=t?dp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var dm={},dg=/\w*$/;dm=function(e){var t=new e.constructor(e.source,dg.exec(e));return t.lastIndex=e.lastIndex,t};var dv={},db=l4?l4.prototype:void 0,dy=db?db.valueOf:void 0;dv=function(e){return dy?Object(dy.call(e)):{}};var dw={};dw=function(e,t){var r=t?dp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},df=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return dp(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return dh(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dw(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return dm(e);case"[object Symbol]":return dv(e)}};var dE={},dx={},d_=Object.create;dx=function(){function e(){}return function(t){if(!sI(t))return{};if(d_)return d_(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dE=function(e){return"function"!=typeof e.constructor||sj(e)?{}:dx(sB(e))};var sv=eh("gDKMC"),dS={},dC={};dC=function(e){return sa(e)&&"[object Map]"==u9(e)};var sC=eh("esndt"),dO=sC&&sC.isMap;dS=dO?sS(dO):dC;var dk={},dR={};dR=function(e){return sa(e)&&"[object Set]"==u9(e)};var sC=eh("esndt"),dj=sC&&sC.isSet;dk=dj?sS(dj):dR;var dT="[object Arguments]",dF="[object Function]",dA="[object Object]",dN={};dN[dT]=dN["[object Array]"]=dN["[object ArrayBuffer]"]=dN["[object DataView]"]=dN["[object Boolean]"]=dN["[object Date]"]=dN["[object Float32Array]"]=dN["[object Float64Array]"]=dN["[object Int8Array]"]=dN["[object Int16Array]"]=dN["[object Int32Array]"]=dN["[object Map]"]=dN["[object Number]"]=dN[dA]=dN["[object RegExp]"]=dN["[object Set]"]=dN["[object String]"]=dN["[object Symbol]"]=dN["[object Uint8Array]"]=dN["[object Uint8ClampedArray]"]=dN["[object Uint16Array]"]=dN["[object Uint32Array]"]=!0,dN["[object Error]"]=dN[dF]=dN["[object WeakMap]"]=!1,c0=function e(t,r,n,a,o,i){var l,s=1&r,u=2&r,c=4&r;if(n&&(l=o?n(t,a,o,i):n(t)),void 0!==l)return l;if(!sI(t))return t;var d=sn(t);if(d){if(l=dc(t),!s)return da(t,l)}else{var f=u9(t),p=f==dF||"[object GeneratorFunction]"==f;if(sv(t))return dn(t,s);if(f==dA||f==dT||p&&!o){if(l=u||p?{}:dE(t),!s)return u?dl(t,c6(l,t)):di(t,c3(l,t))}else{if(!dN[f])return o?t:{};l=df(t,f,s)}}i||(i=new sZ);var h=i.get(t);if(h)return h;i.set(t,l),dk(t)?t.forEach(function(a){l.add(e(a,r,n,a,t,i))}):dS(t)&&t.forEach(function(a,o){l.set(o,e(a,r,n,o,t,i))});var m=c?u?du:uY:u?c7:su,g=d?void 0:m(t);return c1(g||t,function(a,o){g&&(a=t[o=a]),c2(l,o,e(a,r,n,o,t,i))}),l};var dP=dI(function(e){return c0(e,5)}),dM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function dI(e){return e&&e.__esModule?e:{default:e}}var dL=cY.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.default&&(0,dP.default)(e.default)||{};return t.map(function(t){var n=e[t];return n&&(0,cQ.default)(n,function(e,t){r[t]||(r[t]={}),r[t]=dM({},r[t],n[t])}),t}),r};"use strict";cY.default=dL;var dD=d8(cY),dz={};Object.defineProperty(dz,"__esModule",{value:!0}),dz.autoprefix=void 0;var dB=(z=si)&&z.__esModule?z:{default:z},dH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dU={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var r=t[e];return r||{extend:e}}},d$=dz.autoprefix=function(e){var t={};return(0,dB.default)(e,function(e,r){var n={};(0,dB.default)(e,function(e,t){var r=dU[t];r?n=dH({},n,r(e)):n[t]=e}),t[r]=n}),t};"use strict";dz.default=d$;var dW=d8(dz),dV={};Object.defineProperty(dV,"__esModule",{value:!0}),dV.hover=void 0;var dq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),dG=(B=eg)&&B.__esModule?B:{default:B};function dK(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var dX=dV.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",r=dG.default.Component;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var r,a,o,i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return a=o=dK(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(l))),o.state={hover:!1},o.handleMouseOver=function(){return o.setState({hover:!0})},o.handleMouseOut=function(){return o.setState({hover:!1})},o.render=function(){return dG.default.createElement(t,{onMouseOver:o.handleMouseOver,onMouseOut:o.handleMouseOut},dG.default.createElement(e,dq({},o.props,o.state)))},dK(o,a)}return n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r),n};"use strict";dV.default=dX;var dZ=d8(dV),dJ={};Object.defineProperty(dJ,"__esModule",{value:!0}),dJ.active=void 0;var dY=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),dQ=(H=eg)&&H.__esModule?H:{default:H};function d0(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var d1=dJ.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",r=dQ.default.Component;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var r,a,o,i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return a=o=d0(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(l))),o.state={active:!1},o.handleMouseDown=function(){return o.setState({active:!0})},o.handleMouseUp=function(){return o.setState({active:!1})},o.render=function(){return dQ.default.createElement(t,{onMouseDown:o.handleMouseDown,onMouseUp:o.handleMouseUp},dQ.default.createElement(e,dY({},o.props,o.state)))},d0(o,a)}return n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r),n};"use strict";dJ.default=d1;var d2=d8(dJ),d4={};Object.defineProperty(d4,"__esModule",{value:!0}),d4.default=function(e,t){var r={},n=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];r[e]=t};return 0===e&&n("first-child"),e===t-1&&n("last-child"),(0===e||e%2==0)&&n("even"),1===Math.abs(e%2)&&n("odd"),n("nth-child",e),r};var d5=d8(d4);function d8(e){return e&&e.__esModule?e:{default:e}}l0.hover=dZ.default,l0.handleHover=dZ.default,l0.handleActive=d2.default,l0.loop=d5.default;var d3=l0.ReactCSS=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=(0,cJ.default)(r),o=(0,dD.default)(e,a);return(0,dW.default)(o)};l0.default=d3;var eg=eh("j89Fe"),d9=function(e,t,r,n,a){var o=a.clientWidth,i=a.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(a.getBoundingClientRect().left+window.pageXOffset),c=s-(a.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var d=void 0;if(d=c<0?0:c>i?1:Math.round(100*c/i)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(n!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null},eg=eh("j89Fe"),d6={},d7=function(e,t,r,n){if("u"<typeof document&&!n)return null;var a=n?new n:document.createElement("canvas");a.width=2*r,a.height=2*r;var o=a.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,a.width,a.height),o.fillStyle=t,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},fe=function(e,t,r,n){var a=e+"-"+t+"-"+r+(n?"-server":"");if(d6[a])return d6[a];var o=d7(e,t,r,n);return d6[a]=o,o},ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr=function(e){var t=e.white,r=e.grey,n=e.size,a=e.renderers,o=e.borderRadius,i=e.boxShadow,l=e.children,s=eu(l0)({default:{grid:{borderRadius:o,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+fe(t,r,n,a.canvas)+") center left"}}});return(0,eg.isValidElement)(l)?eu(eg).cloneElement(l,ft({},l.props,{style:ft({},l.props.style,s.grid)})):eu(eg).createElement("div",{style:s.grid})};fr.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function fo(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var fi=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r,n,a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=fo(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleChange=function(e){var t=d9(e,n.props.hsl,n.props.direction,n.props.a,n.container);t&&"function"==typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},fo(n,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),fa(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,r=eu(l0)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:fn({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return eu(eg).createElement("div",{style:r.alpha},eu(eg).createElement("div",{style:r.checkboard},eu(eg).createElement(fr,{renderers:this.props.renderers})),eu(eg).createElement("div",{style:r.gradient}),eu(eg).createElement("div",{style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("div",{style:r.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:r.slider}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fl=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),fs=[38,40],fu=1,fc=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(e){r.setUpdatedValue(e.target.value,e)},r.handleKeyDown=function(e){var t,n=Number(String(e.target.value).replace(/%/g,""));if(!isNaN(n)&&(t=e.keyCode,fs.indexOf(t)>-1)){var a=r.getArrowOffset(),o=38===e.keyCode?n+a:n-a;r.setUpdatedValue(o,e)}},r.handleDrag=function(e){if(r.props.dragLabel){var t=Math.round(r.props.value+e.movementX);t>=0&&t<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(t),e)}},r.handleMouseDown=function(e){r.props.dragLabel&&(e.preventDefault(),r.handleDrag(e),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+fu++,r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),fl(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){var t,r;return t={},r=this.props.label,r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var r=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(r,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=eu(l0)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return eu(eg).createElement("div",{style:t.wrap},eu(eg).createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?eu(eg).createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fd=function(e,t,r,n){var a=n.clientWidth,o=n.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=u<0?359:u>o?0:360*(-(100*u/o)+100)/100,r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>a?359:100*s/a*360/100,r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},ff=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function fp(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var fh=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r,n,a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=fp(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleChange=function(e){var t=fd(e,n.props.direction,n.props.hsl,n.container);t&&"function"==typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},fp(n,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ff(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,r=void 0===t?"horizontal":t,n=eu(l0)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(100*this.props.hsl.h/360)+100+"%"}}},{vertical:"vertical"===r});return eu(eg).createElement("div",{style:n.hue},eu(eg).createElement("div",{className:"hue-"+r,style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),eu(eg).createElement("div",{style:n.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:n.slider}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fm=function(e,t){return e===t||e!=e&&t!=t},fg=function(e,t){for(var r=e.length;r--;)if(fm(e[r][0],t))return r;return -1},fv=Array.prototype.splice;function fb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fb.prototype.clear=function(){this.__data__=[],this.size=0},fb.prototype.delete=function(e){var t=this.__data__,r=fg(t,e);return!(r<0)&&(r==t.length-1?t.pop():fv.call(t,r,1),--this.size,!0)},fb.prototype.get=function(e){var t=this.__data__,r=fg(t,e);return r<0?void 0:t[r][1]},fb.prototype.has=function(e){return fg(this.__data__,e)>-1},fb.prototype.set=function(e,t){var r=this.__data__,n=fg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var fy=eh("bItha"),fw=fy.default.Symbol,fE=Object.prototype,fx=fE.hasOwnProperty,f_=fE.toString,fS=fw?fw.toStringTag:void 0,fC=function(e){var t=fx.call(e,fS),r=e[fS];try{e[fS]=void 0;var n=!0}catch(e){}var a=f_.call(e);return n&&(t?e[fS]=r:delete e[fS]),a},fO=Object.prototype.toString,fk=fw?fw.toStringTag:void 0,fR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fk&&fk in Object(e)?fC(e):fO.call(e)},fj=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},fT=function(e){if(!fj(e))return!1;var t=fR(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},fy=eh("bItha"),fF=fy.default["__core-js_shared__"],fA=(Z=/[^.]+$/.exec(fF&&fF.keys&&fF.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"",fN=Function.prototype.toString,fP=function(e){if(null!=e){try{return fN.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fM=/^\[object .+?Constructor\]$/,fI=Object.prototype,fL=Function.prototype.toString,fD=fI.hasOwnProperty,fz=RegExp("^"+fL.call(fD).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fB=function(e){return!!fj(e)&&(!fA||!(fA in e))&&(fT(e)?fz:fM).test(fP(e))},fH=function(e,t){var r=null==e?void 0:e[t];return fB(r)?r:void 0},fy=eh("bItha"),fU=fH(fy.default,"Map"),f$=fH(Object,"create"),fW=Object.prototype.hasOwnProperty,fV=Object.prototype.hasOwnProperty;function fq(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fq.prototype.clear=function(){this.__data__=f$?f$(null):{},this.size=0},fq.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},fq.prototype.get=function(e){var t=this.__data__;if(f$){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return fW.call(t,e)?t[e]:void 0},fq.prototype.has=function(e){var t=this.__data__;return f$?void 0!==t[e]:fV.call(t,e)},fq.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=f$&&void 0===t?"__lodash_hash_undefined__":t,this};var fG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fK=function(e,t){var r=e.__data__;return fG(t)?r["string"==typeof t?"string":"hash"]:r.map};function fX(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function fZ(e){var t=this.__data__=new fb(e);this.size=t.size}fX.prototype.clear=function(){this.size=0,this.__data__={hash:new fq,map:new(fU||fb),string:new fq}},fX.prototype.delete=function(e){var t=fK(this,e).delete(e);return this.size-=!!t,t},fX.prototype.get=function(e){return fK(this,e).get(e)},fX.prototype.has=function(e){return fK(this,e).has(e)},fX.prototype.set=function(e,t){var r=fK(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},fZ.prototype.clear=function(){this.__data__=new fb,this.size=0},fZ.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},fZ.prototype.get=function(e){return this.__data__.get(e)},fZ.prototype.has=function(e){return this.__data__.has(e)},fZ.prototype.set=function(e,t){var r=this.__data__;if(r instanceof fb){var n=r.__data__;if(!fU||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fX(n)}return r.set(e,t),this.size=r.size,this};var fJ=function(){try{var e=fH(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),fY=function(e,t,r){"__proto__"==t&&fJ?fJ(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fQ=function(e,t,r){(void 0===r||fm(e[t],r))&&(void 0!==r||t in e)||fY(e,t,r)},f0=function(e,t,r){for(var n=-1,a=Object(e),o=r(e),i=o.length;i--;){var l=o[++n];if(!1===t(a[l],l,a))break}return e},f1=eh("jrilK"),fy=eh("bItha"),f2=fy.default.Uint8Array,f4=function(e){var t=new e.constructor(e.byteLength);return new f2(t).set(new f2(e)),t},f5=function(e,t){var r=t?f4(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},f8=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},f3=Object.create,f9=function(){function e(){}return function(t){if(!fj(t))return{};if(f3)return f3(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),f6=function(e,t){return function(r){return e(t(r))}},f7=f6(Object.getPrototypeOf,Object),pe=Object.prototype,pt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pe)},pr=function(e){return null!=e&&"object"==typeof e},pn=function(e){return pr(e)&&"[object Arguments]"==fR(e)},pa=Object.prototype,po=pa.hasOwnProperty,pi=pa.propertyIsEnumerable,pl=pn(function(){return arguments}())?pn:function(e){return pr(e)&&po.call(e,"callee")&&!pi.call(e,"callee")},ps=Array.isArray,pu=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},pc=function(e){return null!=e&&pu(e.length)&&!fT(e)},pd=eh("aMh1P"),pf=Object.prototype,pp=Function.prototype.toString,ph=pf.hasOwnProperty,pm=pp.call(Object),pg=function(e){if(!pr(e)||"[object Object]"!=fR(e))return!1;var t=f7(e);if(null===t)return!0;var r=ph.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&pp.call(r)==pm},pv={};pv["[object Float32Array]"]=pv["[object Float64Array]"]=pv["[object Int8Array]"]=pv["[object Int16Array]"]=pv["[object Int32Array]"]=pv["[object Uint8Array]"]=pv["[object Uint8ClampedArray]"]=pv["[object Uint16Array]"]=pv["[object Uint32Array]"]=!0,pv["[object Arguments]"]=pv["[object Array]"]=pv["[object ArrayBuffer]"]=pv["[object Boolean]"]=pv["[object DataView]"]=pv["[object Date]"]=pv["[object Error]"]=pv["[object Function]"]=pv["[object Map]"]=pv["[object Number]"]=pv["[object Object]"]=pv["[object RegExp]"]=pv["[object Set]"]=pv["[object String]"]=pv["[object WeakMap]"]=!1;var pb=eh("2BT6i"),py=pb.default&&pb.default.isTypedArray,pw=py?function(e){return py(e)}:function(e){return pr(e)&&pu(e.length)&&!!pv[fR(e)]},pE=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},px=Object.prototype.hasOwnProperty,p_=function(e,t,r){var n=e[t];px.call(e,t)&&fm(n,r)&&(void 0!==r||t in e)||fY(e,t,r)},pS=function(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=n?n(r[l],e[l],l,r,e):void 0;void 0===s&&(s=e[l]),a?fY(r,l,s):p_(r,l,s)}return r},pC=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},pd=eh("aMh1P"),pO=/^(?:0|[1-9]\d*)$/,pk=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&pO.test(e))&&e>-1&&e%1==0&&e<t},pR=Object.prototype.hasOwnProperty,pj=function(e,t){var r=ps(e),n=!r&&pl(e),a=!r&&!n&&(0,pd.default)(e),o=!r&&!n&&!a&&pw(e),i=r||n||a||o,l=i?pC(e.length,String):[],s=l.length;for(var u in e)(t||pR.call(e,u))&&!(i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pk(u,s)))&&l.push(u);return l},pT=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},pF=Object.prototype.hasOwnProperty,pA=function(e){if(!fj(e))return pT(e);var t=pt(e),r=[];for(var n in e)"constructor"==n&&(t||!pF.call(e,n))||r.push(n);return r},pN=function(e){return pc(e)?pj(e,!0):pA(e)},pP=function(e,t,r,n,a,o,i){var l=pE(e,r),s=pE(t,r),u=i.get(s);if(u)return void fQ(e,r,u);var c=o?o(l,s,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=ps(s),p=!f&&(0,pd.default)(s),h=!f&&!p&&pw(s);(c=s,f||p||h)?ps(l)?c=l:pr(l)&&pc(l)?c=f8(l):p?(d=!1,c=(0,f1.default)(s,!0)):h?(d=!1,c=f5(s,!0)):c=[]:pg(s)||pl(s)?(c=l,pl(l))?c=pS(l,pN(l)):(!fj(l)||fT(l))&&(c="function"!=typeof s.constructor||pt(s)?{}:f9(f7(s))):d=!1}d&&(i.set(s,c),a(c,s,n,o,i),i.delete(s)),fQ(e,r,c)},pM=function e(t,r,n,a,o){t!==r&&f0(r,function(i,l){if(o||(o=new fZ),fj(i))pP(t,r,l,n,e,a,o);else{var s=a?a(pE(t,l),i,l+"",t,r,o):void 0;void 0===s&&(s=i),fQ(t,l,s)}},pN)},pI=function(e){return e},pL=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},pD=Math.max,pz=Date.now,pB=(J=fJ?function(e,t){return fJ(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:pI,Y=0,Q=0,function(){var e=pz(),t=16-(e-Q);if(Q=e,t>0){if(++Y>=800)return arguments[0]}else Y=0;return J.apply(void 0,arguments)}),pH=function(e,t,r){if(!fj(r))return!1;var n=typeof t;return("number"==n?!!(pc(r)&&pk(t,r.length)):"string"==n&&t in r)&&fm(r[t],e)},pU=(ee=function(e,t,r){pM(e,t,r)},pB((U=function(e,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(a=ee.length>3&&"function"==typeof a?(n--,a):void 0,o&&pH(t[0],t[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++r<n;){var i=t[r];i&&ee(e,i,r,a)}return e},W=pD(void 0===(W=$)?U.length-1:W,0),function(){for(var e=arguments,t=-1,r=pD(e.length-W,0),n=Array(r);++t<r;)n[t]=e[W+t];t=-1;for(var a=Array(W+1);++t<W;)a[t]=e[t];return a[W]=pI(n),pL(U,this,a)}),U+"")),p$=function(e){var t=e.zDepth,r=e.radius,n=e.background,a=e.children,o=e.styles,i=eu(l0)(pU({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:r,background:n}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===o?{}:o),{"zDepth-1":1===t});return eu(eg).createElement("div",{style:i.wrap},eu(eg).createElement("div",{style:i.bg}),eu(eg).createElement("div",{style:i.content},a))};p$.propTypes={background:eu(rW).string,zDepth:eu(rW).oneOf([0,1,2,3,4,5]),radius:eu(rW).number,styles:eu(rW).object},p$.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var eg=eh("j89Fe"),fy=eh("bItha"),pW=function(){return fy.default.Date.now()},pV=/\s/,pq=function(e){for(var t=e.length;t--&&pV.test(e.charAt(t)););return t},pG=/^\s+/,pK=function(e){return"symbol"==typeof e||pr(e)&&"[object Symbol]"==fR(e)},pX=0/0,pZ=/^[-+]0x[0-9a-f]+$/i,pJ=/^0b[01]+$/i,pY=/^0o[0-7]+$/i,pQ=parseInt,p0=function(e){if("number"==typeof e)return e;if(pK(e))return pX;if(fj(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=fj(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,pq(t)+1).replace(pG,""):t;var n=pJ.test(e);return n||pY.test(e)?pQ(e.slice(2),n?2:8):pZ.test(e)?pX:+e},p1=Math.max,p2=Math.min,p4=function(e,t,r){var n,a,o,i,l,s,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=n,o=a;return n=a=void 0,u=t,i=e.apply(o,r)}function h(e){var r=e-s,n=e-u;return void 0===s||r>=t||r<0||d&&n>=o}function m(){var e,r,n,a=pW();if(h(a))return g(a);l=setTimeout(m,(e=a-s,r=a-u,n=t-e,d?p2(n,o-r):n))}function g(e){return(l=void 0,f&&n)?p(e):(n=a=void 0,i)}function v(){var e,r=pW(),o=h(r);if(n=arguments,a=this,s=r,o){if(void 0===l)return u=e=s,l=setTimeout(m,t),c?p(e):i;if(d)return clearTimeout(l),l=setTimeout(m,t),p(s)}return void 0===l&&(l=setTimeout(m,t)),i}return t=p0(t)||0,fj(r)&&(c=!!r.leading,o=(d="maxWait"in r)?p1(p0(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,n=s=a=l=void 0},v.flush=function(){return void 0===l?i:g(pW())},v},p5=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return fj(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),p4(e,t,{leading:n,maxWait:t,trailing:a})},p8=function(e,t,r){var n=r.getBoundingClientRect(),a=n.width,o=n.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>a&&(s=a),u<0?u=0:u>o&&(u=o);var c=s/a,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}},p3=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p9=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(e){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,p8(e,r.props.hsl,r.container),e)},r.handleMouseDown=function(e){r.handleChange(e);var t=r.getContainerRenderWindow();t.addEventListener("mousemove",r.handleChange),t.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=p5(function(e,t,r){e(t,r)},50),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),p3(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},r=t.color,n=t.white,a=t.black,o=t.pointer,i=t.circle,l=eu(l0)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(100*this.props.hsv.v)+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:n,black:a,pointer:o,circle:i}},{custom:!!this.props.style});return eu(eg).createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),eu(eg).createElement("div",{style:l.white,className:"saturation-white"},eu(eg).createElement("div",{style:l.black,className:"saturation-black"}),eu(eg).createElement("div",{style:l.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:l.circle}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),p6=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},p7=f6(Object.keys,Object),he=Object.prototype.hasOwnProperty,ht=function(e){if(!pt(e))return p7(e);var t=[];for(var r in Object(e))he.call(e,r)&&"constructor"!=r&&t.push(r);return t},hr=function(e){return pc(e)?pj(e):ht(e)},hn=(et=function(e,t){return e&&f0(e,t,hr)},function(e,t){if(null==e)return e;if(!pc(e))return et(e,t);for(var r=e.length,n=-1,a=Object(e);++n<r&&!1!==t(a[n],n,a););return e}),ha=function(e,t){return(ps(e)?p6:hn)(e,"function"==typeof t?t:pI)},ho={};ho=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t,r,n,a=/^\s+/,o=/\s+$/;function i(t,r){if(r=r||{},(t=t||"")instanceof i)return t;if(!(this instanceof i))return new i(t,r);var n,l,s,u,c,d,f,p,h,m,g,v,b,y,w,E,x,S,k,j,F=(l={r:0,g:0,b:0},s=1,u=null,c=null,d=null,f=!1,p=!1,"string"==typeof(n=t)&&(n=function(e){e=e.replace(a,"").replace(o,"").toLowerCase();var t,r=!1;if(_[e])e=_[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=A.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=A.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=A.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=A.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=A.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=A.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=A.hex8.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:R(t[4])/255,format:r?"name":"hex8"}:(t=A.hex6.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:r?"name":"hex"}:(t=A.hex4.exec(e))?{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:R(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=A.hex3.exec(e))&&{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:r?"name":"hex"}}(n)),"object"==e(n)&&(N(n.r)&&N(n.g)&&N(n.b)?(h=n.r,m=n.g,g=n.b,l={r:255*O(h,255),g:255*O(m,255),b:255*O(g,255)},f=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):N(n.h)&&N(n.s)&&N(n.v)?(u=T(n.s),c=T(n.v),v=n.h,b=u,y=c,v=6*O(v,360),b=O(b,100),y=O(y,100),w=Math.floor(v),E=v-w,x=y*(1-b),S=y*(1-E*b),k=y*(1-(1-E)*b),l={r:255*[y,S,x,x,k,y][j=w%6],g:255*[k,y,y,S,x,x][j],b:255*[x,x,k,y,y,S][j]},f=!0,p="hsv"):N(n.h)&&N(n.s)&&N(n.l)&&(u=T(n.s),d=T(n.l),l=function(e,t,r){var n,a,o;function i(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=O(e,360),t=O(t,100),r=O(r,100),0===t)n=a=o=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=i(s,l,e+1/3),a=i(s,l,e),o=i(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(n.h,u,d),f=!0,p="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=C(s),{ok:f,format:n.format||p,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s});this._originalInput=t,this._r=F.r,this._g=F.g,this._b=F.b,this._a=F.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||F.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=F.ok}function l(e,t,r){e=O(e,255);var n,a,o=Math.max(e,t=O(t,255),r=O(r,255)),i=Math.min(e,t,r),l=(o+i)/2;if(o==i)n=a=0;else{var s=o-i;switch(a=l>.5?s/(2-o-i):s/(o+i),o){case e:n=(t-r)/s+6*(t<r);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,l:l}}function s(e,t,r){e=O(e,255);var n,a=Math.max(e,t=O(t,255),r=O(r,255)),o=Math.min(e,t,r),i=a-o;if(a==o)n=0;else{switch(a){case e:n=(t-r)/i+6*(t<r);break;case t:n=(r-e)/i+2;break;case r:n=(e-t)/i+4}n/=6}return{h:n,s:0===a?0:i/a,v:a}}function u(e,t,r,n){var a=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function c(e,t,r,n){return[j(F(n)),j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(r).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.s-=t/100,r.s=k(r.s),i(r)}function f(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.s+=t/100,r.s=k(r.s),i(r)}function p(e){return i(e).desaturate(100)}function h(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.l+=t/100,r.l=k(r.l),i(r)}function m(e,t){t=0===t?0:t||10;var r=i(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),i(r)}function g(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.l-=t/100,r.l=k(r.l),i(r)}function v(e,t){var r=i(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,i(r)}function b(e){var t=i(e).toHsl();return t.h=(t.h+180)%360,i(t)}function y(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=i(e).toHsl(),n=[i(e)],a=360/t,o=1;o<t;o++)n.push(i({h:(r.h+o*a)%360,s:r.s,l:r.l}));return n}function w(e){var t=i(e).toHsl(),r=t.h;return[i(e),i({h:(r+72)%360,s:t.s,l:t.l}),i({h:(r+216)%360,s:t.s,l:t.l})]}function E(e,t,r){t=t||6,r=r||30;var n=i(e).toHsl(),a=360/r,o=[i(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(i(n));return o}function x(e,t){t=t||6;for(var r=i(e).toHsv(),n=r.h,a=r.s,o=r.v,l=[],s=1/t;t--;)l.push(i({h:n,s:a,v:o})),o=(o+s)%1;return l}i.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,a,o,i;return t=this._r,r=this._g,n=this._b,a=this._a,o=e,i=[j(Math.round(t).toString(16)),j(Math.round(r).toString(16)),j(Math.round(n).toString(16)),j(F(a))],o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*O(this._r,255))+"%",g:Math.round(100*O(this._g,255))+"%",b:Math.round(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%)":"rgba("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+c(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=i(e);r="#"+c(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},i.fromRatio=function(t,r){if("object"==e(t)){var n={};for(var a in t)t.hasOwnProperty(a)&&("a"===a?n[a]=t[a]:n[a]=T(t[a]));t=n}return i(t,r)},i.equals=function(e,t){return!!e&&!!t&&i(e).toRgbString()==i(t).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},i.mix=function(e,t,r){r=0===r?0:r||50;var n=i(e).toRgb(),a=i(t).toRgb(),o=r/100;return i({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},i.readability=function(e,t){var r=i(e),n=i(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},i.isReadable=function(e,t,r){var n,a,o,l,s,u=i.readability(e,t);switch(s=!1,(a=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(n.size||"small").toLowerCase(),"AA"!==a&&"AAA"!==a&&(a="AA"),"small"!==o&&"large"!==o&&(o="small"),l={level:a,size:o}).level+l.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},i.mostReadable=function(e,t,r){var n,a,o,l,s=null,u=0;a=(r=r||{}).includeFallbackColors,o=r.level,l=r.size;for(var c=0;c<t.length;c++)(n=i.readability(e,t[c]))>u&&(u=n,s=i(t[c]));return i.isReadable(e,s,{level:o,size:l})||!a?s:(r.includeFallbackColors=!1,i.mostReadable(e,["#fff","#000"],r))};var _=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=i.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(_);function C(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function O(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,a="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function k(e){return Math.min(1,Math.max(0,e))}function R(e){return parseInt(e,16)}function j(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function F(e){return Math.round(255*parseFloat(e)).toString(16)}var A=(r="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+r),rgba:RegExp("rgba"+n),hsl:RegExp("hsl"+r),hsla:RegExp("hsla"+n),hsv:RegExp("hsv"+r),hsva:RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function N(e){return!!A.CSS_UNIT.exec(e)}return i}();var hi=function(e){var t=0,r=0;return ha(["r","g","b","a","h","s","l","v"],function(n){e[n]&&(t+=1,isNaN(e[n])||(r+=1),("s"===n||"l"===n)&&/^\d+%$/.test(e[n])&&(r+=1))}),t===r&&e},hl=function(e,t){var r=e.hex?eu(ho)(e.hex):eu(ho)(e),n=r.toHsl(),a=r.toHsv(),o=r.toRgb(),i=r.toHex();return 0===n.s&&(n.h=t||0,a.h=t||0),{hsl:n,hex:"000000"===i&&0===o.a?"transparent":"#"+i,rgb:o,hsv:a,oldHue:e.h||t||n.h,source:e.source}},hs=function(e){if("transparent"===e)return!0;var t=+("#"===String(e).charAt(0));return e.length!==4+t&&e.length<7+t&&eu(ho)(e).isValid()},hu=function(e){if(!e)return"#fff";var t=hl(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},hc=function(e,t){var r=e.replace("°","");return eu(ho)(t+" ("+r+")")._ok},hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hf=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),hp=function(e){var t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function r(e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.handleChange=function(e,r){if(hi(e)){var n=hl(e,e.h||t.state.oldHue);t.setState(n),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,n,r),t.props.onChange&&t.props.onChange(n,r)}},t.handleSwatchHover=function(e,r){if(hi(e)){var n=hl(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(n,r)}},t.state=hd({},hl(e.color,0)),t.debounce=p4(function(e,t,r){e(t,r)},100),t}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t),hf(r,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),eu(eg).createElement(e,hd({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return hd({},hl(e.color,t.oldHue))}}]),r}(eg.PureComponent||eg.Component);return t.propTypes=hd({},e.propTypes),t.defaultProps=hd({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},eg=eh("j89Fe"),hh=eh("eK6Iq"),hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hg=(0,hh.handleFocus)(function(e){var t=e.color,r=e.style,n=e.onClick,a=void 0===n?function(){}:n,o=e.onHover,i=e.title,l=void 0===i?t:i,s=e.children,u=e.focus,c=e.focusStyle,d="transparent"===t,f=eu(l0)({default:{swatch:hm({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,u?void 0===c?{}:c:{})}}),p={};return o&&(p.onMouseOver=function(e){return o(t,e)}),eu(eg).createElement("div",hm({style:f.swatch,onClick:function(e){return a(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},p),s,d&&eu(eg).createElement(fr,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}),eg=eh("j89Fe"),hv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hb=function(e){var t=e.rgb,r=e.hsl,n=e.width,a=e.height,o=e.onChange,i=e.direction,l=e.style,s=e.renderers,u=e.pointer,c=e.className,d=eu(l0)({default:{picker:{position:"relative",width:n,height:a},alpha:{radius:"2px",style:l}}});return eu(eg).createElement("div",{style:d.picker,className:"alpha-picker "+(void 0===c?"":c)},eu(eg).createElement(fi,hv({},d.alpha,{rgb:t,hsl:r,pointer:u,renderers:s,onChange:o,direction:i})))};hb.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,r=eu(l0)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return eu(eg).createElement("div",{style:r.picker})}},hp(hb);var eg=(eh("j89Fe"),eh("j89Fe")),hy=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a};function hw(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new fX;++t<r;)this.add(e[t])}hw.prototype.add=hw.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},hw.prototype.has=function(e){return this.__data__.has(e)};var hE=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},hx=function(e,t,r,n,a,o){var i=1&r,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new hw:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var h=e[d],m=t[d];if(n)var g=i?n(m,h,d,t,e,o):n(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!hE(t,function(e,t){if(!p.has(t)&&(h===e||a(h,e,r,n,o)))return p.push(t)})){f=!1;break}}else if(!(h===m||a(h,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f},h_=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},hS=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},hC=fw?fw.prototype:void 0,hO=hC?hC.valueOf:void 0,hk=function(e,t,r,n,a,o,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new f2(e),new f2(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return fm(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=h_;case"[object Set]":var s=1&n;if(l||(l=hS),e.size!=t.size&&!s)break;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=hx(l(e),l(t),n,a,o,i);return i.delete(e),c;case"[object Symbol]":if(hO)return hO.call(e)==hO.call(t)}return!1},hR=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},hj=function(e,t,r){var n=t(e);return ps(e)?n:hR(n,r(e))},hT=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o},hF=Object.prototype.propertyIsEnumerable,hA=Object.getOwnPropertySymbols,hN=hA?function(e){return null==e?[]:hT(hA(e=Object(e)),function(t){return hF.call(e,t)})}:function(){return[]},hP=function(e){return hj(e,hr,hN)},hM=Object.prototype.hasOwnProperty,hI=function(e,t,r,n,a,o){var i=1&r,l=hP(e),s=l.length;if(s!=hP(t).length&&!i)return!1;for(var u=s;u--;){var c=l[u];if(!(i?c in t:hM.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++u<s;){var m=e[c=l[u]],g=t[c];if(n)var v=i?n(g,m,c,t,e,o):n(m,g,c,e,t,o);if(!(void 0===v?m===g||a(m,g,r,n,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p},fy=eh("bItha"),hL=fH(fy.default,"DataView"),fy=eh("bItha"),hD=fH(fy.default,"Promise"),fy=eh("bItha"),hz=fH(fy.default,"Set"),fy=eh("bItha"),hB=fH(fy.default,"WeakMap"),hH="[object Map]",hU="[object Promise]",h$="[object Set]",hW="[object WeakMap]",hV="[object DataView]",hq=fP(hL),hG=fP(fU),hK=fP(hD),hX=fP(hz),hZ=fP(hB),hJ=fR;(hL&&hJ(new hL(new ArrayBuffer(1)))!=hV||fU&&hJ(new fU)!=hH||hD&&hJ(hD.resolve())!=hU||hz&&hJ(new hz)!=h$||hB&&hJ(new hB)!=hW)&&(hJ=function(e){var t=fR(e),r="[object Object]"==t?e.constructor:void 0,n=r?fP(r):"";if(n)switch(n){case hq:return hV;case hG:return hH;case hK:return hU;case hX:return h$;case hZ:return hW}return t});var hY=hJ,pd=eh("aMh1P"),hQ="[object Arguments]",h0="[object Array]",h1="[object Object]",h2=Object.prototype.hasOwnProperty,h4=function(e,t,r,n,a,o){var i=ps(e),l=ps(t),s=i?h0:hY(e),u=l?h0:hY(t);s=s==hQ?h1:s,u=u==hQ?h1:u;var c=s==h1,d=u==h1,f=s==u;if(f&&(0,pd.default)(e)){if(!(0,pd.default)(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new fZ),i||pw(e)?hx(e,t,r,n,a,o):hk(e,t,s,r,n,a,o);if(!(1&r)){var p=c&&h2.call(e,"__wrapped__"),h=d&&h2.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new fZ),a(m,g,r,n,o)}}return!!f&&(o||(o=new fZ),hI(e,t,r,n,a,o))},h5=function e(t,r,n,a,o){return t===r||(null!=t&&null!=r&&(pr(t)||pr(r))?h4(t,r,n,a,e,o):t!=t&&r!=r)},h8=function(e,t,r,n){var a=r.length,o=a,i=!n;if(null==e)return!o;for(e=Object(e);a--;){var l=r[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var s=(l=r[a])[0],u=e[s],c=l[1];if(i&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new fZ;if(n)var f=n(u,c,s,e,t,d);if(!(void 0===f?h5(c,u,3,n,d):f))return!1}}return!0},h3=function(e){return e==e&&!fj(e)},h9=function(e){for(var t=hr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,h3(a)]}return t},h6=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},h7=function(e){var t=h9(e);return 1==t.length&&t[0][2]?h6(t[0][0],t[0][1]):function(r){return r===e||h8(r,e,t)}},me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,mr=function(e,t){if(ps(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||pK(e))||mt.test(e)||!me.test(e)||null!=t&&e in Object(t)};function mn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(mn.Cache||fX),r}mn.Cache=fX;var ma=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mo=/\\(\\)?/g,mi=(en=(er=mn(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ma,function(e,r,n,a){t.push(n?a.replace(mo,"$1"):r||e)}),t},function(e){return 500===en.size&&en.clear(),e})).cache,er),ml=1/0,ms=fw?fw.prototype:void 0,mu=ms?ms.toString:void 0,mc=function e(t){if("string"==typeof t)return t;if(ps(t))return hy(t,e)+"";if(pK(t))return mu?mu.call(t):"";var r=t+"";return"0"==r&&1/t==-ml?"-0":r},md=function(e,t){return ps(e)?e:mr(e,t)?[e]:mi(null==e?"":mc(e))},mf=1/0,mp=function(e){if("string"==typeof e||pK(e))return e;var t=e+"";return"0"==t&&1/e==-mf?"-0":t},mh=function(e,t){t=md(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[mp(t[r++])];return r&&r==n?e:void 0},mm=function(e,t,r){var n=null==e?void 0:mh(e,t);return void 0===n?r:n},mg=function(e,t){return null!=e&&t in Object(e)},mv=function(e,t,r){t=md(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=mp(t[n]);if(!(o=null!=e&&r(e,i)))break;e=e[i]}return o||++n!=a?o:!!(a=null==e?0:e.length)&&pu(a)&&pk(i,a)&&(ps(e)||pl(e))},mb=function(e){var t;return mr(e)?(t=mp(e),function(e){return null==e?void 0:e[t]}):function(t){return mh(t,e)}},my=function(e){if("function"==typeof e)return e;if(null==e)return pI;if("object"==typeof e){var t,r;return ps(e)?(t=e[0],r=e[1],mr(t)&&h3(r)?h6(mp(t),r):function(e){var n=mm(e,t);return void 0===n&&n===r?null!=e&&mv(e,t,mg):h5(r,n,3)}):h7(e)}return mb(e)},mw=function(e,t){var r=-1,n=pc(e)?Array(e.length):[];return hn(e,function(e,a,o){n[++r]=t(e,a,o)}),n},mE=function(e,t){return(ps(e)?hy:mw)(e,my(t,3))},mx=function(e){var t=e.colors,r=e.onClick,n=e.onSwatchHover,a=eu(l0)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return eu(eg).createElement("div",{style:a.swatches},mE(t,function(e){return eu(eg).createElement(hg,{key:e,color:e,style:a.swatch,onClick:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),eu(eg).createElement("div",{style:a.clear}))},m_=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.hex,a=e.colors,o=e.width,i=e.triangle,l=e.styles,s=e.className,u="transparent"===n,c=function(e,r){hs(e)&&t({hex:e,source:"hex"},r)},d=eu(l0)(pU({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:n,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:hu(n),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+n+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},void 0===l?{}:l),{"hide-triangle":"hide"===i});return eu(eg).createElement("div",{style:d.card,className:"block-picker "+(void 0===s?"":s)},eu(eg).createElement("div",{style:d.triangle}),eu(eg).createElement("div",{style:d.head},u&&eu(eg).createElement(fr,{borderRadius:"6px 6px 0 0"}),eu(eg).createElement("div",{style:d.label},n)),eu(eg).createElement("div",{style:d.body},eu(eg).createElement(mx,{colors:a,onClick:c,onSwatchHover:r}),eu(eg).createElement(fc,{style:{input:d.input},value:n,onChange:c})))};m_.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).string),triangle:eu(rW).oneOf(["top","hide"]),styles:eu(rW).object},m_.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},hp(m_);var eg=eh("j89Fe"),mS={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},mC={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},mO={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},mk={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},mR={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},mj={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},mT={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},mF={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},mA={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},mN={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},mP={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},mM={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},mI={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},mL={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},mD={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},mz={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},mB={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},mH={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},eg=eh("j89Fe"),mU=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.hover,o=e.active,i=e.circleSize,l=e.circleSpacing,s=eu(l0)({default:{swatch:{width:i,height:i,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:o});return eu(eg).createElement("div",{style:s.swatch},eu(eg).createElement(hg,{style:s.Swatch,color:t,onClick:r,onHover:n,focusStyle:{boxShadow:s.Swatch.boxShadow+", 0 0 5px "+t}}))};mU.defaultProps={circleSize:28,circleSpacing:14};var m$=(0,l0.handleHover)(mU),mW=function(e){var t=e.width,r=e.onChange,n=e.onSwatchHover,a=e.colors,o=e.hex,i=e.circleSize,l=e.styles,s=e.circleSpacing,u=e.className,c=eu(l0)(pU({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-s,marginBottom:-s}}},void 0===l?{}:l)),d=function(e,t){return r({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:c.card,className:"circle-picker "+(void 0===u?"":u)},mE(a,function(e){return eu(eg).createElement(m$,{key:e,color:e,onClick:d,onSwatchHover:n,active:o===e.toLowerCase(),circleSize:i,circleSpacing:s})}))};"use strict";mW.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),circleSize:eu(rW).number,circleSpacing:eu(rW).number,styles:eu(rW).object},mW.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[mS["500"],mC["500"],mO["500"],mk["500"],mR["500"],mj["500"],mT["500"],mF["500"],mA["500"],mN["500"],mP["500"],mM["500"],mI["500"],mL["500"],mD["500"],mz["500"],mB["500"],mH["500"]],styles:{}},hp(mW);var eg=(eh("j89Fe"),eh("j89Fe")),mV=function(e){return void 0===e},mq={};Object.defineProperty(mq,"__esModule",{value:!0});var mG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),mK=(V=eg)&&V.__esModule?V:{default:V};mq.default=function(e){var t=e.fill,r=e.width,n=e.height,a=e.style,o=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return mK.default.createElement("svg",mG({viewBox:"0 0 24 24",style:mG({fill:void 0===t?"currentColor":t,width:void 0===r?24:r,height:void 0===n?24:n},void 0===a?{}:a)},o),mK.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))};var mX=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),mZ=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?hs(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(mV(e.s)?r.props.hsl.s:e.s),l:Number(mV(e.l)?r.props.hsl.l:e.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?r.state={view:"rgb"}:r.state={view:e.view},r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),mX(t,[{key:"render",value:function(){var e=this,t=eu(l0)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),r=void 0;return"hex"===this.state.view?r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.alpha},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),eu(eg).createElement("div",{style:t.alpha},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),eu(eg).createElement("div",{style:t.wrap,className:"flexbox-fix"},r,eu(eg).createElement("div",{style:t.toggle},eu(eg).createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},eu(eg).createElement(eu(mq),{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(eu(eg).Component);mZ.defaultProps={view:"hex"};var eg=eh("j89Fe"),mJ=function(){var e=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return eu(eg).createElement("div",{style:e.picker})},eg=eh("j89Fe"),mY=function(){var e=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return eu(eg).createElement("div",{style:e.picker})},mQ=function(e){var t=e.width,r=e.onChange,n=e.disableAlpha,a=e.rgb,o=e.hsl,i=e.hsv,l=e.hex,s=e.renderers,u=e.styles,c=e.className,d=e.defaultView,f=eu(l0)(pU({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},void 0===u?{}:u),{disableAlpha:n});return eu(eg).createElement("div",{style:f.picker,className:"chrome-picker "+(void 0===c?"":c)},eu(eg).createElement("div",{style:f.saturation},eu(eg).createElement(p9,{style:f.Saturation,hsl:o,hsv:i,pointer:mY,onChange:r})),eu(eg).createElement("div",{style:f.body},eu(eg).createElement("div",{style:f.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:f.color},eu(eg).createElement("div",{style:f.swatch},eu(eg).createElement("div",{style:f.active}),eu(eg).createElement(fr,{renderers:s}))),eu(eg).createElement("div",{style:f.toggles},eu(eg).createElement("div",{style:f.hue},eu(eg).createElement(fh,{style:f.Hue,hsl:o,pointer:mJ,onChange:r})),eu(eg).createElement("div",{style:f.alpha},eu(eg).createElement(fi,{style:f.Alpha,rgb:a,hsl:o,pointer:mJ,renderers:s,onChange:r})))),eu(eg).createElement(mZ,{rgb:a,hsl:o,hex:l,view:d,onChange:r,disableAlpha:n})))};mQ.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),disableAlpha:eu(rW).bool,styles:eu(rW).object,defaultView:eu(rW).oneOf(["hex","rgb","hsl"])},mQ.defaultProps={width:225,disableAlpha:!1,styles:{}},hp(mQ);var eg=(eh("j89Fe"),eh("j89Fe")),m0=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.active,o=eu(l0)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:hu(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return eu(eg).createElement(hg,{style:o.color,color:t,onClick:void 0===r?function(){}:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+t}},eu(eg).createElement("div",{style:o.dot}))},eg=eh("j89Fe"),m1=function(e){var t=e.hex,r=e.rgb,n=e.onChange,a=eu(l0)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(e,t){e.r||e.g||e.b?n({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},t):n({hex:e.hex,source:"hex"},t)};return eu(eg).createElement("div",{style:a.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:a.active}),eu(eg).createElement(fc,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:r.r,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:r.g,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:r.b,onChange:o}))},m2=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.colors,a=e.hex,o=e.rgb,i=e.styles,l=void 0===i?{}:i,s=e.className,u=eu(l0)(pU({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),c=function(e,r){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},r):t(e,r)};return eu(eg).createElement(p$,{style:u.Compact,styles:l},eu(eg).createElement("div",{style:u.compact,className:"compact-picker "+(void 0===s?"":s)},eu(eg).createElement("div",null,mE(n,function(e){return eu(eg).createElement(m0,{key:e,color:e,active:e.toLowerCase()===a,onClick:c,onSwatchHover:r})}),eu(eg).createElement("div",{style:u.clear})),eu(eg).createElement(m1,{hex:a,rgb:o,onChange:c})))};m2.propTypes={colors:eu(rW).arrayOf(eu(rW).string),styles:eu(rW).object},m2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},hp(m2);var eg=(eh("j89Fe"),eh("j89Fe")),m4=(0,l0.handleHover)(function(e){var t=e.hover,r=e.color,n=e.onClick,a=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=eu(l0)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return eu(eg).createElement("div",{style:i.swatch},eu(eg).createElement(hg,{color:r,onClick:n,onHover:a,focusStyle:o}))}),m5=function(e){var t=e.width,r=e.colors,n=e.onChange,a=e.onSwatchHover,o=e.triangle,i=e.styles,l=e.className,s=eu(l0)(pU({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},void 0===i?{}:i),{"hide-triangle":"hide"===o,"top-left-triangle":"top-left"===o,"top-right-triangle":"top-right"===o,"bottom-left-triangle":"bottom-left"===o,"bottom-right-triangle":"bottom-right"===o}),u=function(e,t){return n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:s.card,className:"github-picker "+(void 0===l?"":l)},eu(eg).createElement("div",{style:s.triangleShadow}),eu(eg).createElement("div",{style:s.triangle}),mE(r,function(e){return eu(eg).createElement(m4,{color:e,key:e,onClick:u,onSwatchHover:a})}))};m5.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).string),triangle:eu(rW).oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:eu(rW).object},m5.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},hp(m5);var eg=(eh("j89Fe"),eh("j89Fe")),m8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m3=function(e){var t=e.width,r=e.height,n=e.onChange,a=e.hsl,o=e.direction,i=e.pointer,l=e.styles,s=e.className,u=eu(l0)(pU({default:{picker:{position:"relative",width:t,height:r},hue:{radius:"2px"}}},void 0===l?{}:l));return eu(eg).createElement("div",{style:u.picker,className:"hue-picker "+(void 0===s?"":s)},eu(eg).createElement(fh,m8({},u.hue,{hsl:a,pointer:i,onChange:function(e){return n({a:1,h:e.h,l:.5,s:1})},direction:o})))};m3.propTypes={styles:eu(rW).object},m3.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,r=eu(l0)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return eu(eg).createElement("div",{style:r.picker})},styles:{}},hp(m3);var eg=eh("j89Fe");hp(function(e){var t=e.onChange,r=e.hex,n=e.rgb,a=e.styles,o=void 0===a?{}:a,i=e.className,l=eu(l0)(pU({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+r,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),s=function(e,r){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},r):(e.r||e.g||e.b)&&t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r)};return eu(eg).createElement(p$,{styles:o},eu(eg).createElement("div",{style:l.material,className:"material-picker "+(void 0===i?"":i)},eu(eg).createElement(fc,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:r,onChange:s}),eu(eg).createElement("div",{style:l.split,className:"flexbox-fix"},eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s})),eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s})),eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s})))))});var eg=(eh("j89Fe"),eh("j89Fe")),m9=function(e){var t=e.onChange,r=e.rgb,n=e.hsv,a=e.hex,o=eu(l0)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),i=function(e,a){e["#"]?hs(e["#"])&&t({hex:e["#"],source:"hex"},a):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},a):(e.h||e.s||e.v)&&t({h:e.h||n.h,s:e.s||n.s,v:e.v||n.v,source:"hsv"},a)};return eu(eg).createElement("div",{style:o.fields},eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(n.h),onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(100*n.s),onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(100*n.v),onChange:i}),eu(eg).createElement("div",{style:o.divider}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:r.r,onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:r.g,onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:r.b,onChange:i}),eu(eg).createElement("div",{style:o.divider}),eu(eg).createElement(fc,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:a.replace("#",""),onChange:i}),eu(eg).createElement("div",{style:o.fieldSymbols},eu(eg).createElement("div",{style:o.symbol},"°"),eu(eg).createElement("div",{style:o.symbol},"%"),eu(eg).createElement("div",{style:o.symbol},"%")))},eg=eh("j89Fe"),m6=function(e){var t=e.hsl,r=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return eu(eg).createElement("div",{style:r.picker})},eg=eh("j89Fe"),m7=function(){var e=eu(l0)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return eu(eg).createElement("div",{style:e.pointer},eu(eg).createElement("div",{style:e.left},eu(eg).createElement("div",{style:e.leftInside})),eu(eg).createElement("div",{style:e.right},eu(eg).createElement("div",{style:e.rightInside})))},eg=eh("j89Fe"),ge=function(e){var t=e.onClick,r=e.label,n=e.children,a=e.active,o=eu(l0)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return eu(eg).createElement("div",{style:o.button,onClick:t},r||n)},eg=eh("j89Fe"),gt=function(e){var t=e.rgb,r=e.currentColor,n=eu(l0)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return eu(eg).createElement("div",null,eu(eg).createElement("div",{style:n.label},"new"),eu(eg).createElement("div",{style:n.swatches},eu(eg).createElement("div",{style:n.new}),eu(eg).createElement("div",{style:n.current})),eu(eg).createElement("div",{style:n.label},"current"))},gr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),gn=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:e.hex},r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),gr(t,[{key:"render",value:function(){var e=this.props,t=e.styles,r=e.className,n=eu(l0)(pU({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},void 0===t?{}:t));return eu(eg).createElement("div",{style:n.picker,className:"photoshop-picker "+(void 0===r?"":r)},eu(eg).createElement("div",{style:n.head},this.props.header),eu(eg).createElement("div",{style:n.body,className:"flexbox-fix"},eu(eg).createElement("div",{style:n.saturation},eu(eg).createElement(p9,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:m6,onChange:this.props.onChange})),eu(eg).createElement("div",{style:n.hue},eu(eg).createElement(fh,{direction:"vertical",hsl:this.props.hsl,pointer:m7,onChange:this.props.onChange})),eu(eg).createElement("div",{style:n.controls},eu(eg).createElement("div",{style:n.top,className:"flexbox-fix"},eu(eg).createElement("div",{style:n.previews},eu(eg).createElement(gt,{rgb:this.props.rgb,currentColor:this.state.currentColor})),eu(eg).createElement("div",{style:n.actions},eu(eg).createElement(ge,{label:"OK",onClick:this.props.onAccept,active:!0}),eu(eg).createElement(ge,{label:"Cancel",onClick:this.props.onCancel}),eu(eg).createElement(m9,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(eu(eg).Component);gn.propTypes={header:eu(rW).string,styles:eu(rW).object},gn.defaultProps={header:"Color Picker",styles:{}},hp(gn);var eg=(eh("j89Fe"),eh("j89Fe")),ga=function(e){var t=e.onChange,r=e.rgb,n=e.hsl,a=e.hex,o=e.disableAlpha,i=eu(l0)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),l=function(e,a){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},a):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,a:r.a,source:"rgb"},a):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:n.h,s:n.s,l:n.l,a:e.a,source:"rgb"},a))};return eu(eg).createElement("div",{style:i.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:i.double},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"hex",value:a.replace("#",""),onChange:l})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"r",value:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"g",value:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"b",value:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.alpha},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*r.a),onChange:l,dragLabel:"true",dragMax:"100"})))},eg=eh("j89Fe"),go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gi=function(e){var t=e.colors,r=e.onClick,n=void 0===r?function(){}:r,a=e.onSwatchHover,o=eu(l0)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),i=function(e,t){n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,r=""+t.color+(t.title||"");return eu(eg).createElement("div",{key:r,style:o.swatchWrap},eu(eg).createElement(hg,go({},t,{style:o.swatch,onClick:i,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};gi.propTypes={colors:eu(rW).arrayOf(eu(rW).oneOfType([eu(rW).string,eu(rW).shape({color:eu(rW).string,title:eu(rW).string})])).isRequired};var gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gs=function(e){var t=e.width,r=e.rgb,n=e.hex,a=e.hsv,o=e.hsl,i=e.onChange,l=e.onSwatchHover,s=e.disableAlpha,u=e.presetColors,c=e.renderers,d=e.styles,f=void 0===d?{}:d,p=e.className,h=eu(l0)(pU({default:gl({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+r.r+","+r.g+","+r.b+","+r.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:s});return eu(eg).createElement("div",{style:h.picker,className:"sketch-picker "+(void 0===p?"":p)},eu(eg).createElement("div",{style:h.saturation},eu(eg).createElement(p9,{style:h.Saturation,hsl:o,hsv:a,onChange:i})),eu(eg).createElement("div",{style:h.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:h.sliders},eu(eg).createElement("div",{style:h.hue},eu(eg).createElement(fh,{style:h.Hue,hsl:o,onChange:i})),eu(eg).createElement("div",{style:h.alpha},eu(eg).createElement(fi,{style:h.Alpha,rgb:r,hsl:o,renderers:c,onChange:i}))),eu(eg).createElement("div",{style:h.color},eu(eg).createElement(fr,null),eu(eg).createElement("div",{style:h.activeColor}))),eu(eg).createElement(ga,{rgb:r,hsl:o,hex:n,onChange:i,disableAlpha:s}),eu(eg).createElement(gi,{colors:u,onClick:i,onSwatchHover:l}))};gs.propTypes={disableAlpha:eu(rW).bool,width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),styles:eu(rW).object},gs.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var gu=hp(gs),eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),gc=function(e){var t=e.hsl,r=e.offset,n=e.onClick,a=void 0===n?function(){}:n,o=e.active,i=e.first,l=e.last,s=eu(l0)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*r+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:i,last:l});return eu(eg).createElement("div",{style:s.swatch,onClick:function(e){return a({h:t.h,s:.5,l:r,source:"hsl"},e)}})},gd=function(e){var t=e.onClick,r=e.hsl,n=eu(l0)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return eu(eg).createElement("div",{style:n.swatches},eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".80",active:.1>Math.abs(r.l-.8)&&.1>Math.abs(r.s-.5),onClick:t,first:!0})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".65",active:.1>Math.abs(r.l-.65)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".50",active:.1>Math.abs(r.l-.5)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".35",active:.1>Math.abs(r.l-.35)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".20",active:.1>Math.abs(r.l-.2)&&.1>Math.abs(r.s-.5),onClick:t,last:!0})),eu(eg).createElement("div",{style:n.clear}))},eg=eh("j89Fe"),gf=function(e){var t=e.hsl,r=e.onChange,n=e.pointer,a=e.styles,o=e.className,i=eu(l0)(pU({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},void 0===a?{}:a));return eu(eg).createElement("div",{style:i.wrap||{},className:"slider-picker "+(void 0===o?"":o)},eu(eg).createElement("div",{style:i.hue},eu(eg).createElement(fh,{style:i.Hue,hsl:t,pointer:n,onChange:r})),eu(eg).createElement("div",{style:i.swatches},eu(eg).createElement(gd,{hsl:t,onClick:r})))};"use strict";gf.propTypes={styles:eu(rW).object},gf.defaultProps={pointer:function(){var e=eu(l0)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return eu(eg).createElement("div",{style:e.picker})},styles:{}},hp(gf);var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),gp={};Object.defineProperty(gp,"__esModule",{value:!0});var gh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),gm=(q=eg)&&q.__esModule?q:{default:q};gp.default=function(e){var t=e.fill,r=e.width,n=e.height,a=e.style,o=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return gm.default.createElement("svg",gh({viewBox:"0 0 24 24",style:gh({fill:void 0===t?"currentColor":t,width:void 0===r?24:r,height:void 0===n?24:n},void 0===a?{}:a)},o),gm.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))};var gg=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.first,o=e.last,i=e.active,l=eu(l0)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:hu(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:o,active:i,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return eu(eg).createElement(hg,{color:t,style:l.color,onClick:void 0===r?function(){}:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+t}},eu(eg).createElement("div",{style:l.check},eu(eg).createElement(eu(gp),null)))},gv=function(e){var t=e.onClick,r=e.onSwatchHover,n=e.group,a=e.active,o=eu(l0)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return eu(eg).createElement("div",{style:o.group},mE(n,function(e,o){return eu(eg).createElement(gg,{key:e,color:e,active:e.toLowerCase()===a,first:0===o,last:o===n.length-1,onClick:t,onSwatchHover:r})}))},gb=function(e){var t=e.width,r=e.height,n=e.onChange,a=e.onSwatchHover,o=e.colors,i=e.hex,l=e.styles,s=e.className,u=eu(l0)(pU({default:{picker:{width:t,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},void 0===l?{}:l)),c=function(e,t){return n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:u.picker,className:"swatches-picker "+(void 0===s?"":s)},eu(eg).createElement(p$,null,eu(eg).createElement("div",{style:u.overflow},eu(eg).createElement("div",{style:u.body},mE(o,function(e){return eu(eg).createElement(gv,{key:e.toString(),group:e,active:i,onClick:c,onSwatchHover:a})}),eu(eg).createElement("div",{style:u.clear})))))};gb.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),height:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).arrayOf(eu(rW).string)),styles:eu(rW).object},gb.defaultProps={width:320,height:240,colors:[[mS["900"],mS["700"],mS["500"],mS["300"],mS["100"]],[mC["900"],mC["700"],mC["500"],mC["300"],mC["100"]],[mO["900"],mO["700"],mO["500"],mO["300"],mO["100"]],[mk["900"],mk["700"],mk["500"],mk["300"],mk["100"]],[mR["900"],mR["700"],mR["500"],mR["300"],mR["100"]],[mj["900"],mj["700"],mj["500"],mj["300"],mj["100"]],[mT["900"],mT["700"],mT["500"],mT["300"],mT["100"]],[mF["900"],mF["700"],mF["500"],mF["300"],mF["100"]],[mA["900"],mA["700"],mA["500"],mA["300"],mA["100"]],["#194D33",mN["700"],mN["500"],mN["300"],mN["100"]],[mP["900"],mP["700"],mP["500"],mP["300"],mP["100"]],[mM["900"],mM["700"],mM["500"],mM["300"],mM["100"]],[mI["900"],mI["700"],mI["500"],mI["300"],mI["100"]],[mL["900"],mL["700"],mL["500"],mL["300"],mL["100"]],[mD["900"],mD["700"],mD["500"],mD["300"],mD["100"]],[mz["900"],mz["700"],mz["500"],mz["300"],mz["100"]],[mB["900"],mB["700"],mB["500"],mB["300"],mB["100"]],[mH["900"],mH["700"],mH["500"],mH["300"],mH["100"]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},hp(gb);var eg=eh("j89Fe"),gy=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.hex,a=e.colors,o=e.width,i=e.triangle,l=e.styles,s=e.className,u=eu(l0)(pU({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},void 0===l?{}:l),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i}),c=function(e,r){hs(e)&&t({hex:e,source:"hex"},r)};return eu(eg).createElement("div",{style:u.card,className:"twitter-picker "+(void 0===s?"":s)},eu(eg).createElement("div",{style:u.triangleShadow}),eu(eg).createElement("div",{style:u.triangle}),eu(eg).createElement("div",{style:u.body},mE(a,function(e,t){return eu(eg).createElement(hg,{key:t,color:e,hex:e,style:u.swatch,onClick:c,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})}),eu(eg).createElement("div",{style:u.hash},"#"),eu(eg).createElement(fc,{label:null,style:{input:u.input},value:n.replace("#",""),onChange:c}),eu(eg).createElement("div",{style:u.clear})))};gy.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),triangle:eu(rW).oneOf(["hide","top-left","top-right"]),colors:eu(rW).arrayOf(eu(rW).string),styles:eu(rW).object},gy.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},hp(gy);var eg=(eh("j89Fe"),eh("j89Fe")),gw=function(e){var t=eu(l0)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return eu(eg).createElement("div",{style:t.picker})};gw.propTypes={hsl:eu(rW).shape({h:eu(rW).number,s:eu(rW).number,l:eu(rW).number,a:eu(rW).number})},gw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var eg=eh("j89Fe"),gE=function(e){var t=eu(l0)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return eu(eg).createElement("div",{style:t.picker})};gE.propTypes={hsl:eu(rW).shape({h:eu(rW).number,s:eu(rW).number,l:eu(rW).number,a:eu(rW).number})},gE.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var eg=eh("j89Fe"),gx=function(e){var t=e.onChange,r=e.rgb,n=e.hsl,a=e.hex,o=e.hsv,i=function(e,r){if(e.hex)hs(e.hex)&&t({hex:e.hex,source:"hex"},r);else if(e.rgb){var n=e.rgb.split(",");hc(e.rgb,"rgb")&&t({r:n[0],g:n[1],b:n[2],a:1,source:"rgb"},r)}else if(e.hsv){var a=e.hsv.split(",");hc(e.hsv,"hsv")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==a[1]?a[1]=.01:1==a[2]&&(a[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsv"},r))}else if(e.hsl){var o=e.hsl.split(",");hc(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==c[1]?c[1]=.01:1==c[2]&&(c[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},r))}},l=eu(l0)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),s=r.r+", "+r.g+", "+r.b,u=Math.round(n.h)+"°, "+Math.round(100*n.s)+"%, "+Math.round(100*n.l)+"%",c=Math.round(o.h)+"°, "+Math.round(100*o.s)+"%, "+Math.round(100*o.v)+"%";return eu(eg).createElement("div",{style:l.wrap,className:"flexbox-fix"},eu(eg).createElement("div",{style:l.fields},eu(eg).createElement("div",{style:l.double},eu(eg).createElement(fc,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:i})),eu(eg).createElement("div",{style:l.column},eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"rgb",value:s,onChange:i})),eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"hsv",value:c,onChange:i})),eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:i})))))},g_=function(e){var t=e.width,r=e.onChange,n=e.rgb,a=e.hsl,o=e.hsv,i=e.hex,l=e.header,s=e.styles,u=e.className,c=eu(l0)(pU({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+n.r+", "+n.g+", "+n.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},void 0===s?{}:s));return eu(eg).createElement("div",{style:c.picker,className:"google-picker "+(void 0===u?"":u)},eu(eg).createElement("div",{style:c.head},l),eu(eg).createElement("div",{style:c.swatch}),eu(eg).createElement("div",{style:c.saturation},eu(eg).createElement(p9,{hsl:a,hsv:o,pointer:gw,onChange:r})),eu(eg).createElement("div",{style:c.body},eu(eg).createElement("div",{style:c.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:c.hue},eu(eg).createElement(fh,{style:c.Hue,hsl:a,radius:"4px",pointer:gE,onChange:r}))),eu(eg).createElement(gx,{rgb:n,hsl:a,hex:i,hsv:o,onChange:r})))};g_.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),styles:eu(rW).object,header:eu(rW).string},g_.defaultProps={width:652,styles:{},header:"Color picker"},hp(g_);let gS=({defaultValue:e="",value:t,onChange:r,colorStyle:n,size:a,rounded:o,pickerOptions:i,errorMessage:l})=>{let[s,u]=(0,eg.useState)(!1),[c,d]=(0,eg.useState)(t??e),f=(0,eg.useRef)(null);(0,eg.useEffect)(()=>{void 0!==t?d(t):e&&d(e)},[t,e]);let p=e=>{f.current&&!f.current.contains(e.target)&&u(!1)};return(0,eg.useEffect)(()=>(s?document.addEventListener("mousedown",p):document.removeEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[s]),eu(eg).createElement("div",{className:`jfInputColor ${"error"===n?"jfInputColor--error":""}`,ref:f},eu(eg).createElement(nO,{value:c,onChange:e=>{var t;d(t=e.target.value),r?.({target:{value:t}})}}),l&&eu(eg).createElement("span",{className:"jfInputColor--error-text"},l),eu(eg).createElement(lQ,{className:"jfInputColor--picker"},eu(eg).createElement(lX,{style:{background:c||"#fff"}},eu(eg).createElement("span",{className:"sr-only"},"Open color picker")),eu(eg).createElement(lY,{transition:!0,anchor:"top",className:"jfInputColor--popover"},eu(eg).createElement(gu,{color:c,onChange:e=>{let t=e.hex||e;d(t),r?.({target:{value:t}})},disableAlpha:i?.disableAlpha}))))};gS.propTypes={defaultValue:eu(rW).string,value:eu(rW).string,onChange:eu(rW).func.isRequired};var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let gC=new Map,gO=new Map;function gk(e){var t;let r=null!=(t=gO.get(e))?t:0;return gO.set(e,r+1),0!==r||(gC.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let r=null!=(t=gO.get(e))?t:1;if(1===r?gO.delete(e):gO.set(e,r-1),1!==r)return;let n=gC.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,gC.delete(e))})(e)}function gR(e,{allowed:t,disallowed:r}={}){let n=oI(e,"inert-others");aS(()=>{var e,a;if(!n)return;let o=ax();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(gk(t));let i=null!=(a=null==t?void 0:t())?a:[];for(let e of i){if(!e)continue;let t=ab(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)i.some(t=>e.contains(t))||o.add(gk(e));r=r.parentElement}}return o.dispose},[n,t,r])}function gj(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in eg&&(0,eg.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[r,n]=eg.useState(av.isHandoffComplete);return r&&!1===av.isHandoffComplete&&n(!1),eg.useEffect(()=>{!0!==r&&n(!0)},[r]),eg.useEffect(()=>av.handoff(),[]),!t&&r}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let gT=(0,eg.createContext)(void 0);function gF(){return(0,eg.useContext)(gT)}let gA=(0,eg.createContext)(null);function gN(){let[e,t]=(0,eg.useState)([]);return[e.length>0?e.join(" "):void 0,(0,eg.useMemo)(()=>function(e){let r=aO(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,eg.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return eu(eg).createElement(gA.Provider,{value:n},e.children)},[t])]}gA.displayName="DescriptionContext";let gP=Object.assign(oa(function(e,t){let r=(0,eg.useId)(),n=gF(),{id:a=`headlessui-description-${r}`,...o}=e,i=function e(){let t=(0,eg.useContext)(gA);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),l=oH(t);aS(()=>i.register(a),[a,i.register]);let s=oD({...i.slot,disabled:n||!1}),u={ref:l,...i.props,id:a};return a7()({ourProps:u,theirProps:o,slot:s,defaultTag:"p",name:i.name||"Description"})}),{});function gM(){let e=(0,eg.useRef)(!1);return aS(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function gI(e,t){let r=(0,eg.useRef)([]),n=aO(e);(0,eg.useEffect)(()=>{let e=[...r.current];for(let[a,o]of t.entries())if(r.current[a]!==o){let a=n(t,e);return r.current=t,a}},[n,...t])}let gL=[];function gD(){"loading"!==document.readyState&&((()=>{function e(e){if(!aP(e.target)||e.target===document.body||gL[0]===e.target)return;let t=e.target;t=t.closest(aB),gL.unshift(null!=t?t:e.target),(gL=gL.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",gD))}function gz(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)aA(r.current)&&t.add(r.current);return t}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",gD),gD());var gB=((S=gB||{})[S.None=0]="None",S[S.InitialFocus=1]="InitialFocus",S[S.TabLock=2]="TabLock",S[S.FocusLock=4]="FocusLock",S[S.RestoreFocus=8]="RestoreFocus",S[S.AutoFocus=16]="AutoFocus",S);let gH=Object.assign(oa(function(e,t){let r=(0,eg.useRef)(null),n=oH(r,t),{initialFocus:a,initialFocusFallback:o,containers:i,features:l=15,...s}=e;gj()||(l=0);let u=a5(r.current);!function(e,{ownerDocument:t}){let r=!!(8&e),n=function(e=!0){let t=(0,eg.useRef)(gL.slice());return gI(([e],[r])=>{!0===r&&!1===e&&aE(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=gL.slice())},[e,gL,t]),aO(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);gI(()=>{var e;r||aw(e=null==t?void 0:t.body)===e&&aZ(n())},[r]),lx(()=>{r&&aZ(n())})}(l,{ownerDocument:u});let c=function(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:a}){let o=(0,eg.useRef)(null),i=oI(!!(1&e),"focus-trap#initial-focus"),l=gM();return gI(()=>{if(0===e)return;if(!i){null!=a&&a.current&&aZ(a.current);return}let s=r.current;s&&aE(()=>{if(!l.current)return;let r=null==t?void 0:t.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r){o.current=r;return}}else if(s.contains(r)){o.current=r;return}if(null!=n&&n.current)aZ(n.current);else{if(16&e){if(aY(s,aU.First|aU.AutoFocus)!==a$.Error)return}else if(aY(s,aU.First)!==a$.Error)return;if(null!=a&&a.current&&(aZ(a.current),(null==t?void 0:t.activeElement)===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=null==t?void 0:t.activeElement})},[a,i,e]),o}(l,{ownerDocument:u,container:r,initialFocus:a,initialFocusFallback:o});!function(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:a}){let o=gM(),i=!!(4&e);aT(null==t?void 0:t.defaultView,"focus",e=>{if(!i||!o.current)return;let t=gz(n);aN(r.current)&&t.add(r.current);let l=a.current;if(!l)return;let s=e.target;aN(s)?gU(t,s)?(a.current=s,aZ(s)):(e.preventDefault(),e.stopPropagation(),aZ(l)):aZ(a.current)},!0)}(l,{ownerDocument:u,container:r,containers:i,previousActiveElement:c});let d=o$(),f=aO(e=>{if(!aN(r.current))return;let t=r.current;az(d.current,{[oU.Forwards]:()=>{aY(t,aU.First,{skipElements:[e.relatedTarget,o]})},[oU.Backwards]:()=>{aY(t,aU.Last,{skipElements:[e.relatedTarget,o]})}})}),p=oI(!!(2&l),"focus-trap#tab-lock"),h=a_(),m=(0,eg.useRef)(!1),g=a7();return eu(eg).createElement(eu(eg).Fragment,null,p&&eu(eg).createElement(ou,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:os.Focusable}),g({ourProps:{ref:n,onKeyDown(e){"Tab"==e.key&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(e){if(!(4&l))return;let t=gz(i);aN(r.current)&&t.add(r.current);let n=e.relatedTarget;aP(n)&&"true"!==n.dataset.headlessuiFocusGuard&&(gU(t,n)||(m.current?aY(r.current,az(d.current,{[oU.Forwards]:()=>aU.Next,[oU.Backwards]:()=>aU.Previous})|aU.WrapAround,{relativeTo:e.target}):aP(e.target)&&aZ(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),p&&eu(eg).createElement(ou,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:os.Focusable}))}),{features:gB});function gU(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var eg=eh("j89Fe");function g$(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!ol(null!=(t=e.as)?t:gX)||1===eu(eg).Children.count(e.children)}let gW=(0,eg.createContext)(null);gW.displayName="TransitionContext";var gV=((C=gV||{}).Visible="visible",C.Hidden="hidden",C);let gq=(0,eg.createContext)(null);function gG(e){return"children"in e?gG(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function gK(e,t){let r=aC(e),n=(0,eg.useRef)([]),a=gM(),o=a_(),i=aO((e,t=a6.Hidden)=>{let i=n.current.findIndex(({el:t})=>t===e);-1!==i&&(az(t,{[a6.Unmount](){n.current.splice(i,1)},[a6.Hidden](){n.current[i].state="hidden"}}),o.microTask(()=>{var e;!gG(n)&&a.current&&(null==(e=r.current)||e.call(r))}))}),l=aO(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>i(e,a6.Unmount)}),s=(0,eg.useRef)([]),u=(0,eg.useRef)(Promise.resolve()),c=(0,eg.useRef)({enter:[],leave:[]}),d=aO((e,r,n)=>{s.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{s.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(c.current[r].map(([e,t])=>t)).then(()=>e())})]),"enter"===r?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),f=aO((e,t,r)=>{Promise.all(c.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=s.current.shift())||e()}).then(()=>r(t))});return(0,eg.useMemo)(()=>({children:n,register:l,unregister:i,onStart:d,onStop:f,wait:u,chains:c}),[l,i,n,d,f,c,u])}gq.displayName="NestingContext";let gX=eg.Fragment,gZ=a9.RenderStrategy,gJ=oa(function(e,t){let{show:r,appear:n=!1,unmount:a=!0,...o}=e,i=(0,eg.useRef)(null),l=oH(...g$(e)?[i,t]:null===t?[]:[t]);gj();let s=lv();if(void 0===r&&null!==s&&(r=(s&lg.Open)===lg.Open),void 0===r)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,eg.useState)(r?"visible":"hidden"),d=gK(()=>{r||c("hidden")}),[f,p]=(0,eg.useState)(!0),h=(0,eg.useRef)([r]);aS(()=>{!1!==f&&h.current[h.current.length-1]!==r&&(h.current.push(r),p(!1))},[h,r]);let m=(0,eg.useMemo)(()=>({show:r,appear:n,initial:f}),[r,n,f]);aS(()=>{r?c("visible"):gG(d)||null===i.current||c("hidden")},[r,d]);let g={unmount:a},v=aO(()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),b=aO(()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),y=a7();return eu(eg).createElement(gq.Provider,{value:d},eu(eg).createElement(gW.Provider,{value:m},y({ourProps:{...g,as:eg.Fragment,children:eu(eg).createElement(gY,{ref:l,...g,...o,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:eg.Fragment,features:gZ,visible:"visible"===u,name:"Transition"})))}),gY=oa(function(e,t){var r,n;let{transition:a=!0,beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,b]=(0,eg.useState)(null),y=(0,eg.useRef)(null),w=g$(e),E=oH(...w?[y,t,b]:null===t?[]:[t]),x=null==(r=g.unmount)||r?a6.Unmount:a6.Hidden,{show:_,appear:S,initial:C}=function(){let e=(0,eg.useContext)(gW);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[O,k]=(0,eg.useState)(_?"visible":"hidden"),R=function(){let e=(0,eg.useContext)(gq);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:j,unregister:T}=R;aS(()=>j(y),[j,y]),aS(()=>{if(x===a6.Hidden&&y.current)return _&&"visible"!==O?void k("visible"):az(O,{hidden:()=>T(y),visible:()=>j(y)})},[O,y,j,T,_,x]);let F=gj();aS(()=>{if(w&&F&&"visible"===O&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,O,F,w]);let A=C&&!S,N=S&&_&&C,P=(0,eg.useRef)(!1),M=gK(()=>{P.current||(k("hidden"),T(y))},R),I=aO(e=>{P.current=!0,M.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==o||o():"leave"===e&&(null==l||l())})}),L=aO(e=>{let t=e?"enter":"leave";P.current=!1,M.onStop(y,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==s||s())}),"leave"!==t||gG(M)||(k("hidden"),T(y))});(0,eg.useEffect)(()=>{w&&a||(I(_),L(_))},[_,w,a]);let[,D]=oq(!(!a||!w||!F||A),v,_,{start:I,end:L}),z=oo({ref:E,className:(null==(n=a3(g.className,N&&u,N&&c,D.enter&&u,D.enter&&D.closed&&c,D.enter&&!D.closed&&d,D.leave&&p,D.leave&&!D.closed&&h,D.leave&&D.closed&&m,!D.transition&&_&&f))?void 0:n.trim())||void 0,...oV(D)}),B=0;"visible"===O&&(B|=lg.Open),"hidden"===O&&(B|=lg.Closed),_&&"hidden"===O&&(B|=lg.Opening),_||"visible"!==O||(B|=lg.Closing);let H=a7();return eu(eg).createElement(gq.Provider,{value:M},eu(eg).createElement(lb,{value:B},H({ourProps:z,theirProps:g,defaultTag:gX,features:gZ,visible:"visible"===O,name:"Transition.Child"})))}),gQ=oa(function(e,t){let r=null!==(0,eg.useContext)(gW),n=null!==lv();return eu(eg).createElement(eu(eg).Fragment,null,!r&&n?eu(eg).createElement(gJ,{ref:t,...e}):eu(eg).createElement(gY,{ref:t,...e}))}),g0=Object.assign(gJ,{Child:gQ,Root:gJ});var g1=((O=g1||{})[O.Open=0]="Open",O[O.Closed=1]="Closed",O),g2=((k=g2||{})[k.SetTitleId=0]="SetTitleId",k);let g4={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},g5=(0,eg.createContext)(null);function g8(e){let t=(0,eg.useContext)(g5);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,g8),t}return t}function g3(e,t){return az(t.type,g4,e,t)}g5.displayName="DialogContext";let g9=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-${r}`,open:a,onClose:o,initialFocus:i,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...d}=e,f=(0,eg.useRef)(!1);l="dialog"===l||"alertdialog"===l?l:(f.current||(f.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let p=lv();void 0===a&&null!==p&&(a=(p&lg.Open)===lg.Open);let h=(0,eg.useRef)(null),m=oH(h,t),g=a5(h.current),v=+!a,[b,y]=(0,eg.useReducer)(g3,{titleId:null,descriptionId:null,panelRef:(0,eg.createRef)()}),w=aO(()=>o(!1)),E=aO(e=>y({type:0,id:e})),x=!!gj()&&0===v,[_,S]=lT(),C=op(),{resolveContainers:O}=oc({mainTreeNode:C,portals:_,defaultContainers:[{get current(){var k;return null!=(k=b.panelRef.current)?k:h.current}}]}),R=null!==p&&(p&lg.Closing)===lg.Closing;gR(!u&&!R&&x,{allowed:aO(()=>{var e,t;return[null!=(t=null==(e=h.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:aO(()=>{var e;return[null!=(e=null==C?void 0:C.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let j=oA.get(null);aS(()=>{if(x)return j.actions.push(n),()=>j.actions.pop(n)},[j,n,x]);let T=oP(j,(0,eg.useCallback)(e=>j.selectors.isTop(e,n),[j,n]));a4(T,O,e=>{e.preventDefault(),w()}),function(e,t="u">typeof document?document.defaultView:null,r){let n=oI(e,"escape");aT(t,"keydown",e=>{n&&(e.defaultPrevented||e.key===lE.Escape&&r(e))})}(T,null==g?void 0:g.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),w()}),oL(!u&&!R&&x,g,O),aD(x,h,w);let[F,A]=gN(),N=(0,eg.useMemo)(()=>[{dialogState:v,close:w,setTitleId:E,unmount:c},b],[v,w,E,c,b]),P=oD({open:0===v}),M={ref:m,id:n,role:l,tabIndex:-1,"aria-modal":u?void 0:0===v||void 0,"aria-labelledby":b.titleId,"aria-describedby":F,unmount:c},I=!function(){var e;let[t]=(0,eg.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[r,n]=(0,eg.useState)(null!=(e=null==t?void 0:t.matches)&&e);return aS(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){n(e.matches)}},[t]),r}(),L=gB.None;x&&!u&&(L|=gB.RestoreFocus,L|=gB.TabLock,s&&(L|=gB.AutoFocus),I&&(L|=gB.InitialFocus));let D=a7();return eu(eg).createElement(ly,null,eu(eg).createElement(lS,{force:!0},eu(eg).createElement(lN,null,eu(eg).createElement(g5.Provider,{value:N},eu(eg).createElement(lA,{target:h},eu(eg).createElement(lS,{force:!1},eu(eg).createElement(A,{slot:P},eu(eg).createElement(S,null,eu(eg).createElement(gH,{initialFocus:i,initialFocusFallback:h,containers:O,features:L},eu(eg).createElement(oK,{value:w},D({ourProps:M,theirProps:d,slot:P,defaultTag:g6,features:g7,visible:0===v,name:"Dialog"})))))))))))}),g6="div",g7=a9.RenderStrategy|a9.Static,ve=oa(function(e,t){let{transition:r=!1,open:n,...a}=e,o=lv(),i=e.hasOwnProperty("open")||null!==o,l=e.hasOwnProperty("onClose");if(!i&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==n||r)&&!a.static?eu(eg).createElement(of,null,eu(eg).createElement(g0,{show:n,transition:r,unmount:a.unmount},eu(eg).createElement(g9,{ref:t,...a}))):eu(eg).createElement(of,null,eu(eg).createElement(g9,{ref:t,open:n,...a}))}),vt=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-panel-${r}`,transition:a=!1,...o}=e,[{dialogState:i,unmount:l},s]=g8("Dialog.Panel"),u=oH(t,s.panelRef),c=oD({open:0===i}),d=aO(e=>{e.stopPropagation()}),f=a?gQ:eg.Fragment,p=a7();return eu(eg).createElement(f,{...a?{unmount:l}:{}},p({ourProps:{ref:u,id:n,onClick:d},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"}))}),vr=Object.assign(ve,{Panel:vt,Title:(oa(function(e,t){let{transition:r=!1,...n}=e,[{dialogState:a,unmount:o}]=g8("Dialog.Backdrop"),i=oD({open:0===a}),l=r?gQ:eg.Fragment,s=a7();return eu(eg).createElement(l,{...r?{unmount:o}:{}},s({ourProps:{ref:t,"aria-hidden":!0},theirProps:n,slot:i,defaultTag:"div",name:"Dialog.Backdrop"}))}),oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-title-${r}`,...a}=e,[{dialogState:o,setTitleId:i}]=g8("Dialog.Title"),l=oH(t);(0,eg.useEffect)(()=>(i(n),()=>i(null)),[n,i]);let s=oD({open:0===o});return a7()({ourProps:{ref:l,id:n},theirProps:a,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),Description:gP}),vn=(0,eg.forwardRef)(({open:e,onClose:t,initialFocus:r,zIndex:n=1004,children:a,ariaLabel:o,size:i,noFade:l,as:s,fitOnMobile:u,className:c,unmount:d=!0,...f},p)=>{let h=eu(r0)("jfModal",{"fit-on-mobile":u,"no-fade":l},c),m=eu(r0)("jfModal--container",{"jfModal--container-small":"small"===i,"jfModal--container-medium":"medium"===i,"jfModal--container-large":"large"===i});return eu(eg).createElement(vr,{onClose:t,open:e,initialFocus:r,style:{zIndex:n},className:h,"aria-modal":!0,ref:p,"data-magnet-modal":!0,unmount:d},eu(eg).createElement(s,{"aria-label":o,className:m,...f},eu(eg).createElement("div",{className:"jfModal--close"},eu(eg).createElement(r7,{onClick:t,startIcon:eu(eg).createElement(nn,null),colorStyle:"secondary",rounded:!0,"aria-label":"Close Button"})),a))});vn.propTypes={open:eu(rW).bool,onClose:eu(rW).func.isRequired,initialFocus:eu(rW).oneOfType([eu(rW).shape({current:eu(rW).instanceOf(Element)}),eu(rW).func]),zIndex:eu(rW).number,children:eu(rW).node.isRequired,ariaLabel:eu(rW).string,size:eu(rW).oneOf(["small","medium","large"]),noFade:eu(rW).bool,as:eu(rW).elementType,fitOnMobile:eu(rW).bool,className:eu(rW).string,unmount:eu(rW).bool},vn.defaultProps={open:!1,zIndex:1e3,size:"medium",noFade:!1,as:"div",fitOnMobile:!1,className:"",initialFocus:null,ariaLabel:null};var eg=eh("j89Fe"),va=({title:e,description:t,icon:r,iconColorStyle:n,onClose:a})=>eu(eg).createElement("div",{className:"jfModal--title"},r&&eu(eg).createElement("div",{className:`jfModal--title-icon jfModal--title-icon-${n||"informative"}`},eu(eg).createElement(r,null)),eu(eg).createElement("div",{className:"jfModal--title-content"},eu(eg).createElement("h2",null,e),t&&eu(eg).createElement("p",null,t))),eg=eh("j89Fe"),vo=({children:e,tabIndex:t,className:r})=>eu(eg).createElement("div",{className:`jfModal--body ${r||""}`,tabIndex:t},e),eg=eh("j89Fe"),vi=({children:e})=>eu(eg).createElement("div",{className:"jfModal--actions"},e),eg=eh("j89Fe");let vl=({label:e,isActive:t,onClick:r,ariaSelected:n})=>eu(eg).createElement("button",{type:"button",className:eu(r0)("tab-button",{isActive:t}),onClick:r,role:"tab","aria-selected":n},e);vl.propTypes={label:rW.string.isRequired,isActive:rW.bool.isRequired,onClick:rW.func.isRequired,ariaSelected:rW.bool};var eg=eh("j89Fe");let vs=({children:e,className:t,theme:r,colorStyle:n})=>eu(eg).createElement("div",{className:eu(r0)("jfTabs",t)},e),vu=({children:e,activeTab:t,onClick:r})=>eu(eg).createElement(vl,{label:e,isActive:t,onClick:r,ariaSelected:t});var eg=eh("j89Fe");let vc=(0,eg.forwardRef)(({maxLength:e,onChange:t=e=>e,value:r,resize:n="none",autoSize:a,ghost:o,readOnly:i,disabled:l,...s},u)=>{let[c,d]=(0,eg.useState)(0),f=(0,eg.useRef)(null);return(0,eg.useEffect)(()=>{let e=f.current;e&&d("string"==typeof r?r.length:e.value?.length||0)},[r]),eu(eg).createElement("div",{className:`jfTextarea-container ${o?"jfTextarea-container--ghost":""} ${i?"jfTextarea-container--readonly":""}`},eu(eg).createElement("textarea",{ref:e=>{f.current=e,"function"==typeof u?u(e):u&&(u.current=e),e&&a&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},...s,value:r,maxLength:e,onChange:e=>{d(e.target.value.length),t&&t(e)},readOnly:i,disabled:l,style:{resize:"none"===n?"none":n}}),(e||i)&&eu(eg).createElement("div",{className:"jfTextarea-container--counter"},i&&eu(eg).createElement(nm,{className:"jfTextarea-container--lock"}),e&&`${c} / ${e}`))});vc.propTypes={maxLength:rW.number,onChange:rW.func,value:rW.string,resize:rW.string,autoSize:rW.bool,ghost:rW.bool,readOnly:rW.bool,disabled:rW.bool};var eg=eh("j89Fe");let vd=({id:e,children:t,className:r,size:n="medium",theme:a="light",compact:o,colorStyle:i,disabled:l,required:s,rounded:u,readOnly:c,themeClasses:d,...f})=>{let p=eu(r0)("jfFormControl","magnet-form-control",{"jfFormControl--compact":o},r);return eu(eg).createElement(r4.Provider,{value:{id:e,colorStyle:i,size:n,disabled:l,required:s,readOnly:c,theme:a,compact:o,rounded:u}},eu(eg).createElement("div",{id:e,className:p,"data-size":n,"data-theme":a,...f},t))};vd.propTypes={id:rW.string,children:rW.node,className:rW.string,size:rW.string,theme:rW.string,compact:rW.bool,colorStyle:rW.string,disabled:rW.bool,required:rW.bool,rounded:rW.string,readOnly:rW.bool,themeClasses:rW.string},vd.defaultProps={size:"medium",theme:"light"};var eg=eh("j89Fe");let vf=({children:e,description:t,className:r,required:n,compact:a,htmlFor:o,...i})=>{let l=(0,eg.useContext)(r4),s=o??l?.id;return eu(eg).createElement("label",{className:`jfFormLabel ${r||""}`,htmlFor:s,...i},eu(eg).createElement("strong",{className:"jfFormLabel--text"},e,n&&eu(eg).createElement("span",{className:"jfFormLabel--required"}," *")),t&&eu(eg).createElement("span",{className:`jfFormLabel--description${a?" jfFormLabel--description-compact":""}`},t))};vf.propTypes={children:rW.node,description:rW.string,className:rW.string,size:rW.string,htmlFor:rW.string,required:rW.bool,compact:rW.bool,theme:rW.string};var eg=eh("j89Fe");let vp=({children:e,colorStyle:t,id:r,hideIcon:n,compact:a,theme:o})=>eu(eg).createElement("div",{className:eu(r0)("jfFormHelperText-wrapper",a&&"jfFormHelperText-wrapper--compact")},eu(eg).createElement("p",{id:r,className:eu(r0)("jfFormHelperText",{"jfFormHelperText--error":"error"===t,"jfFormHelperText--success":"success"===t})},!n&&("success"===t?eu(eg).createElement(nr,{className:"jfFormHelperText--icon"}):"error"===t?eu(eg).createElement(ni,{className:"jfFormHelperText--icon"}):null),e));vp.propTypes={children:rW.node,colorStyle:rW.string,id:rW.string,hideIcon:rW.bool,compact:rW.bool,theme:rW.string};var eg=(eh("j89Fe"),eh("j89Fe")),vh=e=>eu(eg).createElement("input",e),eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),vm=((R=vm||{})[R.Left=0]="Left",R[R.Right=2]="Right",R),eg=(eh("j89Fe"),eh("j89Fe")),vg=((j=vg||{})[j.Ignore=0]="Ignore",j[j.Select=1]="Select",j[j.Close=2]="Close",j);let vv={kind:0},vb={kind:2};var eg=eh("j89Fe");let vy=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function vw(e){var t,r;let n=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!aN(a))return n;let o=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let i=o?null!=(r=a.innerText)?r:"":n;return vy.test(i)&&(i=i.replace(vy,"")),i}function vE(e){return[e.screenX,e.screenY]}var eg=(eh("j89Fe"),eh("j89Fe")),vx=((T=vx||{})[T.First=0]="First",T[T.Previous=1]="Previous",T[T.Next=2]="Next",T[T.Last=3]="Last",T[T.Specific=4]="Specific",T[T.Nothing=5]="Nothing",T);function v_(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:throw Error("Unexpected object: "+e)}}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let vS=(0,eg.createContext)(void 0),vC=(0,eg.createContext)(null);function vO(){let e=(0,eg.useContext)(vC);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,vO),e}return e}function vk({inherit:e=!1}={}){var t,r;let n,a=n=null!=(r=null==(t=(0,eg.useContext)(vC))?void 0:t.value)?r:void 0,[o,i]=(0,eg.useState)([]),l=e?[a,...o].filter(Boolean):o;return[l.length>0?l.join(" "):void 0,(0,eg.useMemo)(()=>function(e){let t=aO(e=>(i(t=>[...t,e]),()=>i(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),r=(0,eg.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return eu(eg).createElement(vC.Provider,{value:r},e.children)},[i])]}vC.displayName="LabelContext",Object.assign(oa(function(e,t){var r;let n=(0,eg.useId)(),a=vO(),o=(0,eg.useContext)(vS),i=gF(),{id:l=`headlessui-label-${n}`,htmlFor:s=null!=o?o:null==(r=a.props)?void 0:r.htmlFor,passive:u=!1,...c}=e,d=oH(t);aS(()=>a.register(l),[l,a.register]);let f=aO(e=>{var t;let r=e.currentTarget;if(!(e.target!==e.currentTarget&&aA(t=e.target)&&t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'))&&(aI(r)&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),aI(r))){let e=document.getElementById(r.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(aM(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=oD({...a.slot,disabled:i||!1}),h={ref:d,...a.props,id:l,htmlFor:s,onClick:f};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in c&&delete c.onClick),a7()({ourProps:h,theirProps:c,slot:p,defaultTag:s?"label":"div",name:a.name||"Label"})}),{});let vR={kind:"Idle"},vj={kind:"Moved"};function vT(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var vF=Object.defineProperty,vA=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?vF(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},vN=((F=vN||{})[F.Open=0]="Open",F[F.Closed=1]="Closed",F),vP=((A=vP||{})[A.Pointer=0]="Pointer",A[A.Other=1]="Other",A),vM=((N=vM||{})[N.OpenMenu=0]="OpenMenu",N[N.CloseMenu=1]="CloseMenu",N[N.GoToItem=2]="GoToItem",N[N.Search=3]="Search",N[N.ClearSearch=4]="ClearSearch",N[N.RegisterItems=5]="RegisterItems",N[N.UnregisterItems=6]="UnregisterItems",N[N.SetButtonElement=7]="SetButtonElement",N[N.SetItemsElement=8]="SetItemsElement",N[N.SortItems=9]="SortItems",N[N.MarkButtonAsMoved=10]="MarkButtonAsMoved",N);function vI(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=aJ(t(e.items.slice()),e=>e.dataRef.current.domRef.current),a=r?n.indexOf(r):null;return -1===a&&(a=null),{items:n,activeItemIndex:a}}let vL={1(e){if(1===e.menuState)return e;let t=e.buttonElement?{kind:"Tracked",position:vT(e.buttonElement)}:e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:vx.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:vR},2:(e,t)=>{var r,n,a,o,i;if(1===e.menuState)return e;let l={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===vx.Nothing)return{...l,activeItemIndex:null};if(t.focus===vx.Specific)return{...l,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===vx.Previous){let r=e.activeItemIndex;if(null!==r){let o=e.items[r].dataRef.current.domRef,i=v_(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(n=o.current)?void 0:n.previousElementSibling)===t.current||(null==(a=t.current)?void 0:a.previousElementSibling)===null)return{...l,activeItemIndex:i}}}}else if(t.focus===vx.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,a=v_(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(o=n.current)?void 0:o.nextElementSibling)===t.current||(null==(i=t.current)?void 0:i.nextElementSibling)===null)return{...l,activeItemIndex:a}}}}let s=vI(e),u=v_(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let r=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=a?e.items.indexOf(a):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==vx.Nothing&&(n=v_(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:vx.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],a=new Set(t.items);for(let[e,t]of r.entries())if(a.has(t.id)&&(n.push(e),a.delete(t.id),0===a.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...vI(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:vj}};class vD extends ox{constructor(e){super(e),vA(this,"actions",{registerItem:oO(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:oO(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),vA(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,a=e.items;return null!==n&&(null==(r=a[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=oA.get(null);this.disposables.add(t.on(oj.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,r){let n=ax();if("Tracked"===t.kind){let a=function(){o!==vT(e)&&(n.dispose(),r())},{position:o}=t,i=new ResizeObserver(a);i.observe(e),n.add(()=>i.disconnect()),n.addEventListener(window,"scroll",a,{passive:!0}),n.addEventListener(window,"resize",a)}return()=>n.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new vD({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:vx.Nothing},buttonPositionState:vR})}reduce(e,t){return az(t.type,vL,e,t)}}var eg=eh("j89Fe");let vz=(0,eg.createContext)(null);function vB(e){let t=(0,eg.useContext)(vz);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,vH),t}return t}function vH({id:e,__demoMode:t=!1}){let r=(0,eg.useMemo)(()=>vD.new({id:e,__demoMode:t}),[]);return lx(()=>r.dispose()),r}let vU=eg.Fragment,v$=a9.RenderStrategy|a9.Static,vW=eg.Fragment,vV=oa(function(e,t){let r=(0,eg.useId)(),{__demoMode:n=!1,...a}=e,o=vH({id:r,__demoMode:n}),[i,l,s]=oP(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),u=oH(t),c=oA.get(null);a4(oP(c,(0,eg.useCallback)(e=>c.selectors.isTop(e,r),[c,r])),[s,l],(e,t)=>{var r;o.send({type:vM.CloseMenu}),aG(t,aq.Loose)||(e.preventDefault(),null==(r=o.state.buttonElement)||r.focus())});let d=aO(()=>{o.send({type:vM.CloseMenu})}),f=oD({open:i===vN.Open,close:d}),p=a7();return eu(eg).createElement(lf,null,eu(eg).createElement(vz.Provider,{value:o},eu(eg).createElement(lb,{value:az(i,{[vN.Open]:lg.Open,[vN.Closed]:lg.Closed})},p({ourProps:{ref:u},theirProps:a,slot:f,defaultTag:vU,name:"Menu"}))))}),vq=oa(function(e,t){var r;let n,a=vB("Menu.Button"),o=(0,eg.useId)(),{id:i=`headlessui-menu-button-${o}`,disabled:l=!1,autoFocus:s=!1,...u}=e,c=(0,eg.useRef)(null),d=(0,eg.useContext)(li).getReferenceProps,f=oH(t,c,lu(),aO(e=>a.send({type:vM.SetButtonElement,element:e}))),p=aO(e=>{switch(e.key){case lE.Space:case lE.Enter:case lE.ArrowDown:e.preventDefault(),e.stopPropagation(),a.send({type:vM.OpenMenu,focus:{focus:vx.First}});break;case lE.ArrowUp:e.preventDefault(),e.stopPropagation(),a.send({type:vM.OpenMenu,focus:{focus:vx.Last}})}}),h=aO(e=>{e.key===lE.Space&&e.preventDefault()}),[m,g,v]=oP(a,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,{trigger:t,action:r,close:n,select:a}){let o=(0,eg.useRef)(null),i=(0,eg.useRef)(null),l=(0,eg.useRef)(null);a1(e&&null!==t,"pointerdown",e=>{aF(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(i.current=e.x,l.current=e.y,o.current=e.timeStamp)}),a1(e&&null!==t,"pointerup",e=>{var t,s;let u=o.current;if(null===u||(o.current=null,!aP(e.target))||5>Math.abs(e.x-(null!=(t=i.current)?t:e.x))&&5>Math.abs(e.y-(null!=(s=l.current)?s:e.y)))return;let c=r(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(a(c.target),n());break;case 2:n()}},{capture:!0})}(m===vN.Open,{trigger:g,action:(0,eg.useCallback)(e=>{if(null!=g&&g.contains(e.target))return vv;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return aN(t)?{kind:1,target:t}:null!=v&&v.contains(e.target)?vv:vb},[g,v]),close:(0,eg.useCallback)(()=>a.send({type:vM.CloseMenu}),[]),select:(0,eg.useCallback)(e=>e.click(),[])});let b=(r=e=>{var t;l||(m===vN.Open?((0,iR.flushSync)(()=>a.send({type:vM.CloseMenu})),null==(t=c.current)||t.focus({preventScroll:!0})):(e.preventDefault(),a.send({type:vM.OpenMenu,focus:{focus:vx.Nothing},trigger:vP.Pointer})))},n=(0,eg.useRef)(null),{onPointerDown:aO(e=>{n.current=e.pointerType,lw(e.currentTarget)||"mouse"!==e.pointerType||e.button!==vm.Left||(e.preventDefault(),r(e))}),onClick:aO(e=>{"mouse"!==n.current&&(lw(e.currentTarget)||r(e))})}),{isFocusVisible:y,focusProps:w}=au({autoFocus:s}),{isHovered:E,hoverProps:x}=ah({isDisabled:l}),{pressed:_,pressProps:S}=ak({disabled:l}),C=oD({open:m===vN.Open,active:_||m===vN.Open,disabled:l,hover:E,focus:y,autofocus:s}),O=on(d(),{ref:f,id:i,type:a8(e,c.current),"aria-haspopup":"menu","aria-controls":null==v?void 0:v.id,"aria-expanded":m===vN.Open,disabled:l||void 0,autoFocus:s,onKeyDown:p,onKeyUp:h},b,w,x,S);return a7()({ourProps:O,theirProps:u,slot:C,defaultTag:"button",name:"Menu.Button"})}),vG=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-menu-items-${r}`,anchor:a,portal:o=!1,modal:i=!0,transition:l=!1,...s}=e,u=ls(a),c=vB("Menu.Items"),[d,f]=ld(u),p=lc(),[h,m]=(0,eg.useState)(null),g=oH(t,u?d:null,aO(e=>c.send({type:vM.SetItemsElement,element:e})),m),[v,b]=oP(c,e=>[e.menuState,e.buttonElement]),y=a5(b),w=a5(h);u&&(o=!0);let E=lv(),[x,_]=oq(l,h,null!==E?(E&lg.Open)===lg.Open:v===vN.Open);aD(x,b,()=>{c.send({type:vM.CloseMenu})});let S=oP(c,e=>e.__demoMode);oL(!S&&i&&v===vN.Open,w),gR(!S&&i&&v===vN.Open,{allowed:(0,eg.useCallback)(()=>[b,h],[b,h])});let C=!oP(c,c.selectors.didButtonMove)&&x;(0,eg.useEffect)(()=>{h&&v===vN.Open&&(aw(h)===h||h.focus({preventScroll:!0}))},[v,h]),function(e,{container:t,accept:r,walk:n}){let a=(0,eg.useRef)(r),o=(0,eg.useRef)(n);(0,eg.useEffect)(()=>{a.current=r,o.current=n},[r,n]),aS(()=>{if(!t||!e)return;let r=ab(t);if(!r)return;let n=a.current,i=o.current,l=Object.assign(e=>n(e),{acceptNode:n}),s=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,l,!1);for(;s.nextNode();)i(s.currentNode)},[t,e,a,o])}(v===vN.Open,{container:h,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let O=a_(),k=aO(e=>{var t,r,n;switch(O.dispose(),e.key){case lE.Space:if(""!==c.state.searchQuery)return e.preventDefault(),e.stopPropagation(),c.send({type:vM.Search,value:e.key});case lE.Enter:if(e.preventDefault(),e.stopPropagation(),null!==c.state.activeItemIndex){let{dataRef:e}=c.state.items[c.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}c.send({type:vM.CloseMenu}),aK(c.state.buttonElement);break;case lE.ArrowDown:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Next});case lE.ArrowUp:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Previous});case lE.Home:case lE.PageUp:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.First});case lE.End:case lE.PageDown:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Last});case lE.Escape:e.preventDefault(),e.stopPropagation(),(0,iR.flushSync)(()=>c.send({type:vM.CloseMenu})),null==(n=c.state.buttonElement)||n.focus({preventScroll:!0});break;case lE.Tab:e.preventDefault(),e.stopPropagation(),(0,iR.flushSync)(()=>c.send({type:vM.CloseMenu})),function(e,t,r=null===e?document.body:ay(e)){aY(aV(r),t,{relativeTo:e})}(c.state.buttonElement,e.shiftKey?aU.Previous:aU.Next);break;default:1===e.key.length&&(c.send({type:vM.Search,value:e.key}),O.setTimeout(()=>c.send({type:vM.ClearSearch}),350))}}),R=aO(e=>{e.key===lE.Space&&e.preventDefault()}),j=oD({open:v===vN.Open}),T=on(u?p():{},{"aria-activedescendant":oP(c,c.selectors.activeDescendantId),"aria-labelledby":oP(c,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:k,onKeyUp:R,role:"menu",tabIndex:v===vN.Open?0:void 0,ref:g,style:{...s.style,...f,"--button-width":aj(x,b,!0).width},...oV(_)}),F=a7();return eu(eg).createElement(lN,{enabled:!!o&&(e.static||x),ownerDocument:y},F({ourProps:T,theirProps:s,slot:j,defaultTag:"div",features:v$,visible:C,name:"Menu.Items"}))}),vK=oa(function(e,t){let r,n,a,o=(0,eg.useId)(),{id:i=`headlessui-menu-item-${o}`,disabled:l=!1,...s}=e,u=vB("Menu.Item"),c=oP(u,e=>u.selectors.isActive(e,i)),d=(0,eg.useRef)(null),f=oH(t,d),p=oP(u,e=>u.selectors.shouldScrollIntoView(e,i));aS(()=>{if(p)return ax().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[p,d]);let h=(r=(0,eg.useRef)(""),n=(0,eg.useRef)(""),aO(()=>{let e=d.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():vw(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return vw(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=a,a})),m=(0,eg.useRef)({disabled:l,domRef:d,get textValue(){return h()}});aS(()=>{m.current.disabled=l},[m,l]),aS(()=>(u.actions.registerItem(i,m),()=>u.actions.unregisterItem(i)),[m,i]);let g=aO(()=>{u.send({type:vM.CloseMenu})}),v=aO(e=>{if(l)return e.preventDefault();u.send({type:vM.CloseMenu}),aK(u.state.buttonElement)}),b=aO(()=>{if(l)return u.send({type:vM.GoToItem,focus:vx.Nothing});u.send({type:vM.GoToItem,focus:vx.Specific,id:i})}),y=(a=(0,eg.useRef)([-1,-1]),{wasMoved(e){let t=vE(e);return(a.current[0]!==t[0]||a.current[1]!==t[1])&&(a.current=t,!0)},update(e){a.current=vE(e)}}),w=aO(e=>y.update(e)),E=aO(e=>{y.wasMoved(e)&&(l||c||u.send({type:vM.GoToItem,focus:vx.Specific,id:i,trigger:vP.Pointer}))}),x=aO(e=>{y.wasMoved(e)&&(l||c&&u.state.activationTrigger===vP.Pointer&&u.send({type:vM.GoToItem,focus:vx.Nothing}))}),[_,S]=vk(),[C,O]=gN(),k=oD({active:c,focus:c,disabled:l,close:g}),R=a7();return eu(eg).createElement(S,null,eu(eg).createElement(O,null,R({ourProps:{id:i,ref:f,role:"menuitem",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-labelledby":_,"aria-describedby":C,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:w,onMouseEnter:w,onPointerMove:E,onMouseMove:E,onPointerLeave:x,onMouseLeave:x},theirProps:s,slot:k,defaultTag:vW,name:"Menu.Item"})))}),vX=Object.assign(vV,{Button:vq,Items:vG,Item:vK,Section:oa(function(e,t){let[r,n]=vk(),a=a7();return eu(eg).createElement(n,null,a({ourProps:{ref:t,"aria-labelledby":r,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-menu-heading-${r}`,...a}=e,o=vO();aS(()=>o.register(n),[n,o.register]);let i={id:n,ref:t,role:"presentation",...o.props};return a7()({ourProps:i,theirProps:a,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:oa(function(e,t){return a7()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})}),vZ=({children:e,placement:t="bottom-end",theme:r,open:n,setOpen:a,triggerElement:o})=>eu(eg).createElement(vX,{as:"div",className:"relative"},eu(eg).createElement(vq,{as:eu(eg).Fragment},o?o():eu(eg).createElement("button",{type:"button"},"Menu")),eu(eg).createElement(vG,{anchor:t,className:"jfMenu-panel"},e)),vJ=({children:e})=>eu(eg).createElement("div",{className:"jfMenu-list"},e),vY=({children:e})=>eu(eg).createElement("div",{className:"jfMenu-item"},e),vQ=()=>eu(eg).createElement("div",{className:"jfMenu-divider"}),v0=({children:e,onClick:t,colorStyle:r})=>eu(eg).createElement(vK,null,({focus:n})=>eu(eg).createElement("button",{type:"button",className:`jfMenu-item-button ${"error"===r?"jfMenu-item-button--error":""} ${n?"jfMenu-item-button--focus":""}`,onClick:t},e)),v1=({icon:e})=>e?eu(eg).createElement("span",{className:"jfMenu-item-icon"},eu(eg).createElement(e,null)):null,v2=({children:e})=>eu(eg).createElement("span",{className:"jfMenu-item-title"},e);var eg=eh("j89Fe");let v4=({open:e,onClose:t,children:r,ariaLabel:n})=>eu(eg).createElement(vr,{open:e,onClose:t,className:"jfDialog","aria-label":n},eu(eg).createElement("div",{className:"jfDialog-backdrop","aria-hidden":"true"}),eu(eg).createElement(vt,{className:"jfDialog-panel"},r)),v5=({children:e,className:t})=>eu(eg).createElement("div",{className:`jfDialog-body ${t||""}`},e),v8=({icon:e,colorStyle:t})=>eu(eg).createElement("div",{className:`jfDialog-icon jfDialog-icon--${t||"default"}`},e&&eu(eg).createElement(e,null)),v3=({children:e})=>eu(eg).createElement("h2",{className:"jfDialog-title"},e),v9=({children:e,className:t})=>eu(eg).createElement("p",{className:`jfDialog-description ${t||""}`},e),v6=({children:e})=>eu(eg).createElement("div",{className:"jfDialog-actions"},e),v7=({onClick:e})=>eu(eg).createElement(r7,{onClick:e,startIcon:eu(eg).createElement(nn,null),colorStyle:"secondary",rounded:!0,className:"jfDialog-close"});var eg=eh("j89Fe");let be=e=>e,bt=[{Logo:nx,name:"HTML"},{Logo:()=>null,name:"Shopify"},{Logo:()=>null,name:"WordPress"},{Logo:()=>null,name:"Wix"},{Logo:()=>null,name:"Ghost"}];var eg=eh("j89Fe");let br=(e,t)=>{if(!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}apiKey=${encodeURIComponent(t)}`};var eg=(eh("j89Fe"),eh("j89Fe")),bn=e=>{let{min:t,max:r,step:n,defaultValue:a,value:o,name:i,fieldIndex:l,handleChange:s,unit:u,subFieldIndex:c,groupIndex:d,disabled:f,readOnly:p}=e,h=o??a,m=(h-t)/(r-t)*100;return eu(eg).createElement("div",{className:"range-slider"},eu(eg).createElement(vh,{id:e.id,min:t,max:r,step:n||1,disabled:f||p,"aria-label":e["aria-label"]||e.label||i,type:"range",className:"range-slider__range",value:h,onChange:e=>s(void 0,Number(e.target.value),i,l,c,d),style:{background:`linear-gradient(90deg, #09F ${m}%, var(--jfv-gray-300) ${m}%)`}}),eu(eg).createElement("p",{className:"range-input__value"},h,u))},eg=eh("j89Fe");let ba=new Set(["font_family","custom_css"]),bo=e=>JSON.parse(JSON.stringify(e||[])),bi=(e=[],t)=>{e.forEach(e=>{t(e),(e.fields||[]).length>0&&bi(e.fields,t)})},bl=(e=[],t)=>{e.forEach(({fields:e=[],tabs:r=[]})=>{r.length>0?r.forEach(e=>bi(e.fields||[],t)):bi(e,t)})},bs=e=>`${e?.name||e?.title||e?.label||""}`.trim().toLowerCase(),bu=({id:e,name:t,label:r,size:n,disabled:a,layouts:o,options:i=[],schema:l,propertiesMap:s,setSchema:u,handleChange:c,fieldIndex:d,subFieldIndex:f,groupIndex:p,value:h,defaultValue:m,refreshApp:g,widgetUpdating:v,readOnly:b})=>{let y=i.length>0?i:[{value:"carousel",label:"Carousel"},{value:"slider",label:"Slider"},{value:"badge",label:"Badge"},{value:"grid",label:"Grid"},{value:"list",label:"List"},{value:"masonry",label:"Masonry"}];return eu(eg).createElement(nA,{id:e,"aria-label":be(r||"Layout options"),size:n,theme:"dark",rounded:"both",value:void 0!==h?h:m,disabled:a||v||b,onChange:e=>(e=>{let r=e,n=["title_text"];if("layout"===t){var a,i;let h,m=o.find(e=>e.name===r);if(!m?.schema)return void c(void 0,r,t,d,f,p);let v=(a=l,i=bo(m.schema),(h=[],(a||[]).forEach((e,t)=>{let r=(r,n,a)=>{(r||[]).forEach(r=>{let o,i=(o=[],bi([r],e=>{ba.has(e.name)&&o.push(e.name)}),o);0!==i.length&&h.push({field:r,fieldNames:i,stepIndex:t,stepKey:bs(e),tabIndex:a,tabKey:bs(n)})})};(e.tabs||[]).length>0?e.tabs.forEach((e,t)=>r(e.fields,e,t)):r(e.fields)}),h).forEach(e=>{let t;if(e.fieldNames.every(e=>{let t;return t=!1,bl(i,r=>{r.name===e&&(t=!0)}),t}))return;let r=(t=i.find(t=>e.stepKey&&bs(t)===e.stepKey)||i[e.stepIndex])?void 0===e.tabIndex?t:(t.tabs||[]).find(t=>e.tabKey&&bs(t)===e.tabKey)||t.tabs?.[e.tabIndex]||t:null;r&&(r.fields=[...r.fields||[],bo(e.field)])}),i);bl(v,t=>{if("layout"===t.name)t.value=r;else if(void 0!==s[t.name]&&!n.includes(t.name)){let r=s[t.name],n=(t.options||[]).filter(t=>!t.reviewLayouts||t.reviewLayouts.includes(e));"select"===t.type&&n.length>0&&!n.some(e=>String(e.value)===String(r))?t.value=n.find(e=>e.value===t.default)?.value??n[0].value:t.value=r}}),u(v),g(v)}else c(void 0,r,t,d,f,p)})(e.target.value)},y.map(e=>eu(eg).createElement(nN,{key:e.value,value:e.value},be(e.label))))};bu.propTypes={name:eu(rW).string,layouts:eu(rW).array,schema:eu(rW).array,propertiesMap:eu(rW).object,setSchema:eu(rW).func,refreshApp:eu(rW).func,handleChange:eu(rW).func,fieldIndex:eu(rW).number,subFieldIndex:eu(rW).number,groupIndex:eu(rW).number,value:eu(rW).string,defaultValue:eu(rW).string,widgetUpdating:eu(rW).bool,readOnly:eu(rW).bool};var eg=eh("j89Fe"),bc=e=>{let{fields:t=[],fieldIndex:r,handleChange:n,subFieldIndex:a,FieldRenderer:o,widgetSlug:i}=e;return eu(eg).createElement("div",{style:{gap:"16px",display:"flex",marginTop:"16px"}},t.map((t,l)=>eu(eg).createElement(o,{...t,key:t.name||l,className:"mt-4",groupIndex:l,fieldIndex:r,handleChange:n,subFieldIndex:a,widgetSlug:i,propertiesMap:e.propertiesMap,updateProperty:e.updateProperty,widgetUpdating:e.widgetUpdating,disabled:e.disabled,readOnly:e.readOnly})))},eg=eh("j89Fe"),bd=({id:e,value:t="{}",name:r,handleChange:n,fieldIndex:a,subFieldIndex:o,groupIndex:i,templateID:l,action:s,setWidgetUpdating:u,setHasError:c,placeholder:d,infoMessage:f,secondaryInfoMessage:p,setCustomErrorMessage:h,hasError:m,widgetUpdating:g,reviewSyncActive:v,onCancelReviewSync:b,onFetchReviews:y})=>{let{apiKey:w}=rO(),E={};try{E=JSON.parse(t||"{}")}catch(e){E={}}let[x,_]=(0,eg.useState)(!1),[S,C]=(0,eg.useState)([]),O=(0,eg.useRef)(null),k=(0,eg.useMemo)(()=>E&&"object"==typeof E&&null!==E&&(E.text||E.value)?E:null,[E]),R=(0,eg.useMemo)(()=>k?.text?k.text:"",[k,E]);(0,eg.useEffect)(()=>{k&&k.value&&k.text&&k.address&&C(e=>e.some(e=>e.value===k.value)?e:[...e,{value:k.value,label:k.text,text:k.text,address:k.address}])},[k]);let j=(0,eg.useMemo)(()=>S,[S]),T=j.length>0,F=(0,eg.useRef)(null),A=(0,eg.useRef)(null),N=(0,eg.useCallback)(e=>{let t=e?.data?.data||e?.data||e?.content?.data||e?.content||e,r=t?.data?.results||t?.results||(Array.isArray(t)?t:t?.business_name?[t]:[]),n=new Set;C(r.filter(e=>e?.business_name&&e?.place_id).map(e=>({value:e.place_id,label:e.business_name,text:e.business_name,address:e.formatted_address||""})).filter(e=>!n.has(e.value)&&(n.add(e.value),!0)))},[]),P=(0,eg.useCallback)(e=>{e&&(N(e),_(!0))},[N]),M=(0,eg.useCallback)(e=>/(?:maps\.app\.goo\.gl|google\.[^/]+\/maps|maps\.google\.)/i.test(e),[]),I=(0,eg.useRef)(n);(0,eg.useEffect)(()=>{I.current=n},[n]),(0,eg.useEffect)(()=>()=>{O.current&&clearTimeout(O.current),F.current&&clearTimeout(F.current),A.current?.abort()},[]);let L=(0,eg.useCallback)(()=>{O.current=setTimeout(()=>{_(!1)},200)},[]),D=(0,eg.useMemo)(()=>{if(0===j.length)return null;let e=j[0];return{value:e.value,text:e.label||e.text||String(e.value||""),address:e.address}},[j]),z=(0,eg.useCallback)(async e=>{let t=e?.sourceUrl,n=t?null:e||D;if((t||n&&n.value)&&(t||I.current(void 0,JSON.stringify(n),r,a,o,i),t||l&&n?.value)){_(!1);let r=t?e.sourceUrl:`https://www.google.com/maps/place/?q=place_id:${encodeURIComponent(n.value)}`;await y?.(r)}},[D,r,a,o,i,l,y]),B=(0,eg.useCallback)(async e=>{b?.(),C([]);let t=e.target.value;n(void 0,JSON.stringify({text:t}),r,a,o,i),""===t&&(c(!1),h("")),F.current&&clearTimeout(F.current),A.current?.abort(),F.current=setTimeout(async()=>{if(s&&t&&l&&t.trim().length>=2){let{param:e,actionName:r}=s,n=r;if(M(t)&&"fetchReviews"!==r){n="fetchReviews",z({sourceUrl:t,useWorker:1});return}let a=new AbortController;A.current=a,u(!0),c&&c(!1);try{let r,o=await fetch((r=`/website-widgets/templates/${l}/execute-action?action=${n}&${e}=${encodeURIComponent(t)}`,br(`https://api.jotform.com${r}`,w)),{method:"GET",signal:a.signal});if(200===o.status){let e=await o.json(),t=e.content||e.data||e;t&&P(t)}200!==o.status&&c&&c(!0)}catch(e){"AbortError"!==e.name&&c&&c(!0)}finally{A.current===a&&(A.current=null,u(!1))}}},500)},[n,r,a,o,i,s,l,u,c,P,b,z,M]),H=(0,eg.useCallback)(()=>{O.current&&(clearTimeout(O.current),O.current=null),_(!0)},[]),U=!R||x||m?f:p,$=!!U?.trim();return eu(eg).createElement("div",{className:"searchable-place__root"},eu(eg).createElement(nk,{id:e,autoComplete:"off",inputClassName:"searchable-place-searchInput","aria-label":be("Search"),prefix:{icon:()=>eu(eg).createElement(no,{style:{width:"1.25rem"}}),as:"span","aria-hidden":!0,className:"searchable-place-searchIcon"},placeholder:be(d),value:R,onChange:B,onFocus:H,onBlur:L,disabled:g&&!x}),v&&eu(eg).createElement("div",{className:"searchable-place__sync-status",role:"status","aria-live":"polite"},eu(eg).createElement("span",{className:"searchable-place__sync-dot"}),eu(eg).createElement("p",{className:"searchable-place__sync-text"},be("Fetching reviews..."))),!v&&!m&&$&&(!T||!x)&&eu(eg).createElement("div",{className:"searchable-place__info"},eu(eg).createElement(nl,{className:"searchable-place__info-icon"}),eu(eg).createElement("p",{className:"searchable-place__info-text",dangerouslySetInnerHTML:{__html:U}})),T&&x&&eu(eg).createElement("div",{className:"searchable-place__dropdown"},j.map(e=>eu(eg).createElement("div",{key:e.value,className:"searchable-place__dropdown-option",onClick:()=>z(e),onMouseDown:e=>e.preventDefault(),role:"button",tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),z(e))}},eu(eg).createElement(nd,{className:"searchable-place__dropdown-icon"}),eu(eg).createElement("div",{className:"searchable-place__dropdown-content"},eu(eg).createElement("div",{className:"searchable-place__dropdown-title"},e.text),e.address&&eu(eg).createElement("div",{className:"searchable-place__dropdown-address"},e.address))))))},eg=eh("j89Fe");let bf="data-jfrwg-font",bp=e=>{if("u"<typeof document||!e||["site","system"].includes(`${e}`.toLowerCase()))return;let t=encodeURIComponent(`${e}`).replace(/%20/g,"+"),r=`https://cdn.jotfor.ms/fonts/?family=${t}&display=swap`;if(document.head.querySelector(`link[${bf}][href="${r}"]`))return;let n=document.createElement("link");n.rel="stylesheet",n.href=r,n.setAttribute(bf,"true"),document.head.appendChild(n)},bh=({name:e="font_family",label:t="Font",value:r,defaultValue:n="site",options:a=[],handleChange:o,fieldIndex:i,subFieldIndex:l,groupIndex:s,readOnly:u=!1,disabled:c=!1,className:d=""})=>{let f=`${void 0!==r?r:n}`,p=(0,eg.useMemo)(()=>a.find(e=>`${e.value}`===f),[a,f]),h=p?.fontFamily||"inherit",m=c||u,[g,v]=(0,eg.useState)(!1),b=(0,eg.useRef)(null);return(0,eg.useEffect)(()=>{bp(f)},[f]),(0,eg.useEffect)(()=>{if(!g)return;let e=e=>{b.current?.contains(e.target)||v(!1)},t=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[g]),eu(eg).createElement("div",{className:`font-family-selector ${d}`},eu(eg).createElement("div",{ref:b,className:"font-family-selector__select"},eu(eg).createElement("button",{id:e,type:"button","aria-expanded":g,"aria-haspopup":"listbox","aria-label":be(t||e),className:"font-family-selector__control",disabled:m,onClick:()=>v(e=>!e),onKeyDown:e=>{["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),v(!0))}},eu(eg).createElement("span",{className:"font-family-selector__value"},be(p?.label||f)),eu(eg).createElement("span",{"aria-hidden":"true",className:"font-family-selector__arrow"})),g&&eu(eg).createElement("div",{role:"listbox","aria-label":be(t||e),className:"font-family-selector__options"},a.map(t=>{let r=`${t.value}`,n=r===f;return eu(eg).createElement("button",{key:t.value,type:"button",role:"option","aria-selected":n,className:`font-family-selector__option${n?" is-selected":""}`,style:t.fontFamily?{fontFamily:t.fontFamily}:void 0,onClick:()=>{!m&&(bp(r),o(void 0,r,e,i,l,s),v(!1))}},be(t.label||t.value))}))),eu(eg).createElement("div",{"aria-hidden":"true",className:"font-family-selector__preview",style:{fontFamily:h}},be("The quick brown fox jumps over the lazy dog")))};bh.propTypes={name:rW.string,label:rW.string,value:(0,rW.oneOfType)([rW.string,rW.number]),defaultValue:(0,rW.oneOfType)([rW.string,rW.number]),options:(0,rW.arrayOf)((0,rW.shape)({value:(0,rW.oneOfType)([rW.string,rW.number]).isRequired,label:rW.string,fontFamily:rW.string})),handleChange:rW.func.isRequired,fieldIndex:rW.number,subFieldIndex:rW.number,groupIndex:rW.number,readOnly:rW.bool,disabled:rW.bool,className:rW.string};var eg=eh("j89Fe"),bm={};bm=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:a}=Object,{freeze:o,seal:i,create:l}=Object,{apply:s,construct:u}="u">typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),s||(s=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return e.apply(t,n)}),u||(u=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});let c=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),f=S(Array.prototype.pop),p=S(Array.prototype.push),h=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),g=S(String.prototype.toString),v=S(String.prototype.match),b=S(String.prototype.replace),y=S(String.prototype.indexOf),w=S(String.prototype.trim),E=S(Object.prototype.hasOwnProperty),x=S(RegExp.prototype.test),_=(K=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u(K,t)});function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return s(e,t,n)}}function C(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){let e=a(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function O(t){let r=l(null);for(let[n,a]of e(t))E(t,n)&&(Array.isArray(a)?r[n]=function(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?r[n]=O(a):r[n]=a);return r}function k(e,t){for(;null!==e;){let r=a(e,t);if(r){if(r.get)return S(r.get);if("function"==typeof r.value)return S(r.value)}e=n(e)}return function(){return null}}let R=o(["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"]),j=o(["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","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["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"]),F=o(["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"]),A=o(["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"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),M=o(["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"]),I=o(["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","mask-type","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"]),L=o(["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"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=i(/<%[\w\W]*|[\w\W]*%>/gm),H=i(/\$\{[\w\W]*/gm),U=i(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=i(/^aria-[\-\w]+$/),W=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=i(/^(?:\w+script|data):/i),q=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=i(/^html$/i);var K,X=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:i(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:U,DOCTYPE_NAME:G,ERB_EXPR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:z,TMPLIT_EXPR:H});let Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},J=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};return function t(){let r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=e=>t(e);if(a.version="3.3.3",a.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return a.isSupported=!1,a;let{document:i}=n,s=i,u=s.currentScript,{DocumentFragment:S,HTMLTemplateElement:z,Node:B,Element:H,NodeFilter:U,NamedNodeMap:$=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:V,DOMParser:q,trustedTypes:K}=n,Y=H.prototype,Q=k(Y,"cloneNode"),ee=k(Y,"remove"),et=k(Y,"nextSibling"),er=k(Y,"childNodes"),en=k(Y,"parentNode");if("function"==typeof z){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ea="",{implementation:eo,createNodeIterator:ei,createDocumentFragment:el,getElementsByTagName:es}=i,{importNode:eu}=s,ec=J();a.isSupported="function"==typeof e&&"function"==typeof en&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:ed,ERB_EXPR:ef,TMPLIT_EXPR:ep,DATA_ATTR:eh,ARIA_ATTR:em,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:eb}=X,{IS_ALLOWED_URI:ey}=X,ew=null,eE=C({},[...R,...j,...T,...A,...P]),ex=null,e_=C({},[...M,...I,...L,...D]),eS=Object.seal(l(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}})),eC=null,eO=null,ek=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eR=!0,ej=!0,eT=!1,eF=!0,eA=!1,eN=!0,eP=!1,eM=!1,eI=!1,eL=!1,eD=!1,ez=!1,eB=!0,eH=!1,eU=!0,e$=!1,eW={},eV=null,eq=C({},["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"]),eG=null,eK=C({},["audio","video","img","source","image","track"]),eX=null,eZ=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eJ="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e4=C({},[eJ,eY,eQ],g),e5=C({},["mi","mo","mn","ms","mtext"]),e8=C({},["annotation-xml"]),e3=C({},["title","style","font","a","script"]),e9=null,e6=["application/xhtml+xml","text/html"],e7=null,te=null,tt=i.createElement("form"),tr=function(e){return e instanceof RegExp||e instanceof Function},tn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=O(e),e7="application/xhtml+xml"===(e9=-1===e6.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?g:m,ew=E(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):eE,ex=E(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):e_,e2=E(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,g):e4,eX=E(e,"ADD_URI_SAFE_ATTR")?C(O(eZ),e.ADD_URI_SAFE_ATTR,e7):eZ,eG=E(e,"ADD_DATA_URI_TAGS")?C(O(eK),e.ADD_DATA_URI_TAGS,e7):eK,eV=E(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eq,eC=E(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):O({}),eO=E(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):O({}),eW=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,eR=!1!==e.ALLOW_ARIA_ATTR,ej=!1!==e.ALLOW_DATA_ATTR,eT=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eF=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eA=e.SAFE_FOR_TEMPLATES||!1,eN=!1!==e.SAFE_FOR_XML,eP=e.WHOLE_DOCUMENT||!1,eL=e.RETURN_DOM||!1,eD=e.RETURN_DOM_FRAGMENT||!1,ez=e.RETURN_TRUSTED_TYPE||!1,eI=e.FORCE_BODY||!1,eB=!1!==e.SANITIZE_DOM,eH=e.SANITIZE_NAMED_PROPS||!1,eU=!1!==e.KEEP_CONTENT,e$=e.IN_PLACE||!1,ey=e.ALLOWED_URI_REGEXP||W,e0=e.NAMESPACE||eQ,e5=e.MATHML_TEXT_INTEGRATION_POINTS||e5,e8=e.HTML_INTEGRATION_POINTS||e8,eS=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eS.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eS.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eS.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eA&&(ej=!1),eD&&(eL=!0),eW&&(ew=C({},P),ex=l(null),!0===eW.html&&(C(ew,R),C(ex,M)),!0===eW.svg&&(C(ew,j),C(ex,I),C(ex,D)),!0===eW.svgFilters&&(C(ew,T),C(ex,I),C(ex,D)),!0===eW.mathMl&&(C(ew,A),C(ex,L),C(ex,D))),E(e,"ADD_TAGS")||(ek.tagCheck=null),E(e,"ADD_ATTR")||(ek.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ek.tagCheck=e.ADD_TAGS:(ew===eE&&(ew=O(ew)),C(ew,e.ADD_TAGS,e7))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ek.attributeCheck=e.ADD_ATTR:(ex===e_&&(ex=O(ex)),C(ex,e.ADD_ATTR,e7))),e.ADD_URI_SAFE_ATTR&&C(eX,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eV===eq&&(eV=O(eV)),C(eV,e.FORBID_CONTENTS,e7)),e.ADD_FORBID_CONTENTS&&(eV===eq&&(eV=O(eV)),C(eV,e.ADD_FORBID_CONTENTS,e7)),eU&&(ew["#text"]=!0),eP&&C(ew,["html","head","body"]),ew.table&&(C(ew,["tbody"]),delete eC.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ea=(r=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===r&&(r=Z(K,u)),null!==r&&"string"==typeof ea&&(ea=r.createHTML(""));o&&o(e),te=e}},ta=C({},[...j,...T,...F]),to=C({},[...A,...N]),ti=function(e){let t=en(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let r=m(e.tagName),n=m(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eQ?"svg"===r:t.namespaceURI===eJ?"svg"===r&&("annotation-xml"===n||e5[n]):!!ta[r]:e.namespaceURI===eJ?t.namespaceURI===eQ?"math"===r:t.namespaceURI===eY?"math"===r&&e8[n]:!!to[r]:e.namespaceURI===eQ?(t.namespaceURI!==eY||!!e8[n])&&(t.namespaceURI!==eJ||!!e5[n])&&!to[r]&&(e3[r]||!ta[r]):"application/xhtml+xml"===e9&&!!e2[e.namespaceURI])},tl=function(e){p(a.removed,{element:e});try{en(e).removeChild(e)}catch(t){ee(e)}},ts=function(e,t){try{p(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eL||eD)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let t=null,n=null;if(eI)e="<remove></remove>"+e;else{let t=v(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===e9&&e0===eQ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let a=r?r.createHTML(e):e;if(e0===eQ)try{t=new q().parseFromString(a,e9)}catch(e){}if(!t||!t.documentElement){t=eo.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?ea:a}catch(e){}}let o=t.body||t.documentElement;return(e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),e0===eQ)?es.call(t,eP?"html":"body")[0]:eP?t.documentElement:o},tc=function(e){return ei.call(e.ownerDocument||e,e,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},td=function(e){return e instanceof V&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof $)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tf=function(e){return"function"==typeof B&&e instanceof B};function tp(e,t,r){c(e,e=>{e.call(a,t,r,te)})}let th=function(e){let t=null;if(tp(ec.beforeSanitizeElements,e,null),td(e))return tl(e),!0;let r=e7(e.nodeName);if(tp(ec.uponSanitizeElement,e,{tagName:r,allowedTags:ew}),eN&&e.hasChildNodes()&&!tf(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||7===e.nodeType||eN&&8===e.nodeType&&x(/<[/\w]/g,e.data))return tl(e),!0;if(!(ek.tagCheck instanceof Function&&ek.tagCheck(r))&&(!ew[r]||eC[r])){if(!eC[r]&&tg(r)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,r)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(r)))return!1;if(eU&&!eV[r]){let t=en(e)||e.parentNode,r=er(e)||e.childNodes;if(r&&t){let n=r.length;for(let a=n-1;a>=0;--a){let n=Q(r[a],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,et(e))}}}return tl(e),!0}return e instanceof H&&!ti(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eA&&3===e.nodeType&&(t=e.textContent,c([ed,ef,ep],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(a.removed,{element:e.cloneNode()}),e.textContent=t)),tp(ec.afterSanitizeElements,e,null),!1)},tm=function(e,t,r){if(eO[t]||eB&&("id"===t||"name"===t)&&(r in i||r in tt))return!1;if(ej&&!eO[t]&&x(eh,t));else if(eR&&x(em,t));else if(ek.attributeCheck instanceof Function&&ek.attributeCheck(t,e));else if(!ex[t]||eO[t]){if(!(tg(e)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,e)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(e))&&(eS.attributeNameCheck instanceof RegExp&&x(eS.attributeNameCheck,t)||eS.attributeNameCheck instanceof Function&&eS.attributeNameCheck(t,e))||"is"===t&&eS.allowCustomizedBuiltInElements&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,r)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(r))))return!1}else if(eX[t]);else if(x(ey,b(r,ev,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===y(r,"data:")&&eG[e]);else if(eT&&!x(eg,b(r,ev,"")));else if(r)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&v(e,eb)},tv=function(e){tp(ec.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||td(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ex,forceKeepAttr:void 0},o=t.length;for(;o--;){let{name:i,namespaceURI:l,value:s}=t[o],u=e7(i),d="value"===i?s:w(s);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,tp(ec.uponSanitizeAttribute,e,n),d=n.attrValue,eH&&("id"===u||"name"===u)&&(ts(i,e),d="user-content-"+d),eN&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===u&&v(d,"href")){ts(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr||!eF&&x(/\/>/i,d)){ts(i,e);continue}eA&&c([ed,ef,ep],e=>{d=b(d,e," ")});let p=e7(e.nodeName);if(!tm(p,u,d)){ts(i,e);continue}if(r&&"object"==typeof K&&"function"==typeof K.getAttributeType)if(l);else switch(K.getAttributeType(p,u)){case"TrustedHTML":d=r.createHTML(d);break;case"TrustedScriptURL":d=r.createScriptURL(d)}if(d!==s)try{l?e.setAttributeNS(l,i,d):e.setAttribute(i,d),td(e)?tl(e):f(a.removed)}catch(t){ts(i,e)}}tp(ec.afterSanitizeAttributes,e,null)},tb=function e(t){let r=null,n=tc(t);for(tp(ec.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)tp(ec.uponSanitizeShadowNode,r,null),th(r),tv(r),r.content instanceof S&&e(r.content);tp(ec.afterSanitizeShadowDOM,t,null)};return a.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tf(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}else throw _("toString is not a function");if(!a.isSupported)return e;if(eM||tn(t),a.removed=[],"string"==typeof e&&(e$=!1),e$){if(e.nodeName){let t=e7(e.nodeName);if(!ew[t]||eC[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)1===(o=(n=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!eL&&!eA&&!eP&&-1===e.indexOf("<"))return r&&ez?r.createHTML(e):e;if(!(n=tu(e)))return eL?null:ez?ea:""}n&&eI&&tl(n.firstChild);let u=tc(e$?e:n);for(;i=u.nextNode();)th(i),tv(i),i.content instanceof S&&tb(i.content);if(e$)return e;if(eL){if(eD)for(l=el.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(ex.shadowroot||ex.shadowrootmode)&&(l=eu.call(s,l,!0)),l}let d=eP?n.outerHTML:n.innerHTML;return eP&&ew["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x(G,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),eA&&c([ed,ef,ep],e=>{d=b(d,e," ")}),r&&ez?r.createHTML(d):d},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tn(e),eM=!0},a.clearConfig=function(){te=null,eM=!1},a.isValidAttribute=function(e,t,r){return te||tn({}),tm(e7(e),e7(t),r)},a.addHook=function(e,t){"function"==typeof t&&p(ec[e],t)},a.removeHook=function(e,t){if(void 0!==t){let r=d(ec[e],t);return -1===r?void 0:h(ec[e],r,1)[0]}return f(ec[e])},a.removeHooks=function(e){ec[e]=[]},a.removeAllHooks=function(){ec=J()},a}()}();let bg=({value:e="",placeholder:t="",maxLength:r,rows:n=6,disabled:a=!1,readOnly:o=!1,className:i="",onChange:l})=>eu(eg).createElement("div",{className:`custom-css-editor ${i}`},eu(eg).createElement(vc,{"aria-label":"Custom CSS editor",autoComplete:"off",className:"custom-css-editor__input",disabled:a,maxLength:r,placeholder:t,readOnly:o,resize:"vertical",rows:n,spellCheck:!1,value:e||"",onBlur:e=>{let t=eu(bm).sanitize(e.target.value,{FORBID_TAGS:["style","script"]});t!==e.target.value&&l(t)},onChange:e=>l(e.target.value)}));bg.propTypes={value:rW.string,placeholder:rW.string,maxLength:rW.number,rows:rW.number,disabled:rW.bool,readOnly:rW.bool,className:rW.string,onChange:rW.func.isRequired};var eg=eh("j89Fe");let bv=e=>{let t=e?.review_id??e?.reviewId??e?.submissionID??e?.id;if(null!=t&&""!=`${t}`)return`id:${t}`;if(e?.reviewIdentity)return e.reviewIdentity;let r=[e?.url,e?.published].filter(Boolean),n=(2===r.length?r:[e?.name,e?.published||e?.date,e?.rating,e?.text]).map(e=>`${e||""}`.trim()).join("\0"),a=0x811c9dc5,o=0x9e3779b1;for(let e=0;e<n.length;e+=1)a=(31*a+n.charCodeAt(e))%0xfffffffb,o=(131*o+n.charCodeAt(e))%0xfffffffb;return`review:${a.toString(16).padStart(8,"0")}${o.toString(16).padStart(8,"0")}`},bb=(e,t)=>{let r=t[e.field]??e.defaultValue;return"value"in e?r===e.value:"notValue"in e?r!==e.notValue:e.oneOf?e.oneOf.includes(r):e.notOneOf?!e.notOneOf.includes(r):!!r},by=(e,t={})=>{if(e.hidden)return!1;if(e.renderIf){let r=t[e.renderIf]??e.renderIfDefault;if(e.renderIfOneOf){if(!e.renderIfOneOf.includes(r))return!1}else if(void 0!==e.renderIfValue){if(r!==e.renderIfValue)return!1}else if(!r)return!1}return(!e.renderIfAll||e.renderIfAll.every(e=>bb(e,t)))&&(!e.renderIfAny||e.renderIfAny.some(e=>bb(e,t)))},bw=[{key:"question",type:"text",label:"Question",required:!0,maxLength:200},{key:"answer",type:"textarea",label:"Answer",required:!0,maxLength:4e3},{key:"reviewId",type:"select",label:"Supporting review"}];var bE=({value:e,defaultValue:t,name:r,itemFields:n=bw,maxItems:a=20,addButtonLabel:o="Add question",propertiesMap:i,onChange:l,disabled:s})=>{let u=(e=>{try{let t="string"==typeof e?JSON.parse(e):e;return Array.isArray(t)?t:[]}catch{return[]}})(e??t),[c,d]=(0,eg.useState)(null),[f,p]=(0,eg.useState)(null),[h,m]=(0,eg.useState)(""),g=(e=>{let t=e;if("string"==typeof t)try{t=JSON.parse(t)}catch{t={}}let r=Array.isArray(t)?t:t?.reviews,n=new Set;return(Array.isArray(r)?r:[]).filter(e=>{if(!e||"object"!=typeof e)return!1;let t=bv(e);return!n.has(t)&&(n.add(t),!0)}).map(e=>({value:bv(e),label:`${e.name||"Customer"} \u{2014} ${String(e.text||"").slice(0,80)}`}))})(i?.review_data),v=e=>l(JSON.stringify(e));return eu(eg).createElement("div",{className:"review-collection"},u.map((e,t)=>eu(eg).createElement("div",{className:"review-collection__item",key:e.id||t},eu(eg).createElement("strong",null,e.question),eu(eg).createElement("div",{className:"review-collection__actions"},eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>{p(t),d({...e}),m("")}},be("Edit")),eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>v(u.filter((e,r)=>r!==t))},be("Remove")),t>0&&eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>{let e=[...u];[e[t-1],e[t]]=[e[t],e[t-1]],v(e)}},be("Move up"))))),c?eu(eg).createElement("form",{onSubmit:e=>{for(let t of(e.preventDefault(),n)){let e=String(c[t.key]||"").trim();if(t.required&&!e)return void m(be("Complete all required fields."))}let t=[...u],r={...c,id:c.id||crypto.randomUUID()};null===f?t.push(r):t[f]=r,v(t),d(null),m("")},className:"review-collection__form"},n.map(e=>{let t=`${r}-${e.key}`,n=c[e.key]||"",a=t=>d(r=>({...r,[e.key]:t.target.value})),o=e.options||g;return n&&!o.some(e=>e.value===n)&&(o=[...o,{value:n,label:be("Previously selected review")}]),eu(eg).createElement("label",{htmlFor:t,key:e.key},eu(eg).createElement("span",null,be(e.label),e.required?" *":""),"select"===e.type?eu(eg).createElement(nA,{id:t,theme:"dark",value:n,required:e.required,disabled:s,onChange:a},eu(eg).createElement(nN,{value:""},be("Select a review")),o.map(e=>eu(eg).createElement(nN,{value:e.value,key:e.value},e.label))):"textarea"===e.type?eu(eg).createElement(vc,{id:t,value:n,rows:5,maxLength:e.maxLength,required:e.required,disabled:s,onChange:a}):eu(eg).createElement(nk,{id:t,theme:"dark",value:n,maxLength:e.maxLength,required:e.required,disabled:s,placeholder:e.placeholder,onChange:a}))}),h&&eu(eg).createElement("p",{role:"alert"},h),eu(eg).createElement("div",{className:"review-collection__actions"},eu(eg).createElement(r7,{type:"submit",size:"small",disabled:s},be("Save question")),eu(eg).createElement(r7,{type:"button",size:"small",variant:"outline",onClick:()=>{d(null),m("")}},be("Cancel")))):eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||u.length>=a,onClick:()=>{p(null),d({}),m("")}},be(o)))},eg=eh("j89Fe"),bx=({onChange:e,disabled:t,readOnly:r,...n})=>eu(eg).createElement("div",{className:"review-collection"},eu(eg).createElement(nk,{...n,disabled:t,readOnly:r,onChange:e}),"function"==typeof window.wp?.media&&eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:t||r,onClick:()=>{let t=window.wp.media({title:be("Choose image"),library:{type:"image"},multiple:!1,button:{text:be("Use image")}});t.on("select",()=>{let r=t.state().get("selection").first()?.toJSON();r?.url&&e({target:{value:r.url}})}),t.open()}},be("Choose image")));let b_=new Set(["COMPLETED","FAILED","SUPERSEDED"]),bS=(e,t)=>br(`https://api.jotform.com${e}`,t),bC=(e,t)=>new Promise((r,n)=>{let a,o=()=>{window.clearTimeout(a),n(new DOMException("The operation was aborted.","AbortError"))};a=window.setTimeout(()=>{t?.removeEventListener("abort",o),r()},e),t?.addEventListener("abort",o,{once:!0})}),bO=async(e,t={})=>{let r,n=await fetch(e,t);if(!n.ok)throw Error("Review sync request failed.");return r=await n.json(),r?.content||r?.data?.content||r?.data||r},bk=(e,t)=>{let r=new Set;return[...e,...t].filter(e=>{let t=e?.id||e?.reviewId||e?.review_id||[e?.name||e?.author,e?.published||e?.date,e?.text,e?.rating].join("|");return!r.has(t)&&(r.add(t),!0)})},bR=(e,t={})=>{let r=e?.data&&"object"==typeof e.data?e.data:{};return{...t,...e,...r,data:{...t.data||{},...r},businessName:r.businessName||e?.businessName||t.businessName||"",totalReviews:Number(r.totalReviews??e?.totalReviews??t.totalReviews??0),overallRating:Number(r.overallRating??e?.overallRating??t.overallRating??0),shareFeedbackUrl:r.shareFeedbackUrl||e?.shareFeedbackUrl||t.shareFeedbackUrl||"",sourceUrl:r.sourceUrl||e?.sourceUrl||t.sourceUrl||""}},bj=({apiKey:e,jobHandle:t,revision:r,templateID:n,widgetID:a})=>a?bS(`/website-widgets/${a}/review-sync?afterRevision=${Math.max(0,r)}`,e):bS(`/website-widgets/templates/${n}/execute-action?action=checkStatus&jobHandle=${encodeURIComponent(t)}`,e),bT=e=>!!e?.jobHandle&&!b_.has(e?.status)&&e?.status!=="NOT_FOUND",bF=e=>(Array.isArray(e)?e:[]).filter(e=>e&&"object"==typeof e&&!Array.isArray(e)),bA=async({apiKey:e,initialContent:t,onUpdate:r,signal:n,templateID:a,widgetID:o})=>{let i=bR(t),l=i.jobHandle,s=i.sourceFingerprint||"",u=Number(i.revision||0),c=Array.isArray(i.reviews)?i.reviews:[],d=0===c.length;if(i={...i,reviews:c,preserveReviewsUntilFirstBatch:d},r?.(i),!l||b_.has(i.status))return i;for(;!n?.aborted;){let t="hidden"===document.visibilityState?5e3:2e3;await bC(t,n);let f=bR(await bO(bj({apiKey:e,jobHandle:l,revision:u,templateID:a,widgetID:o}),{method:"GET",signal:n}),i);if(n?.aborted||f.jobHandle&&f.jobHandle!==l||s&&f.sourceFingerprint&&f.sourceFingerprint!==s)break;let p=Array.isArray(f.reviews)?f.reviews:[];if(d&&p.length>0?(c=p,d=!1):d||"append"!==f.reviewsMode?!d&&p.length>0&&(c=p):c=bk(c,p),"COMPLETED"===f.status&&d&&(c=[],d=!1),u=Math.max(u,Number(f.revision||0)),i={...i,...f,jobHandle:l,revision:u,reviews:c,preserveReviewsUntilFirstBatch:d},r?.(i),b_.has(i.status))return i}return null},bN=async({apiKey:e,onUpdate:t,signal:r,sourceValue:n,templateID:a,widgetID:o})=>{let i;if(i=o?await bO(bS(`/website-widgets/${o}/review-sync`,e),{method:"POST",signal:r,headers:{"Content-Type":"application/json"},body:JSON.stringify({sourceField:"sourceUrl",sourceValue:n,params:{}})}):await bO(bS(`/website-widgets/templates/${a}/execute-action?action=fetchReviews&sourceUrl=${encodeURIComponent(n)}&useWorker=1`,e),{method:"GET",signal:r}),!i?.jobHandle){let e=bR({...i,status:i?.success===!1?"FAILED":"COMPLETED",preserveReviewsUntilFirstBatch:!1});return t?.(e),e}return bA({apiKey:e,initialContent:i,onUpdate:t,signal:r,templateID:a,widgetID:o})},bP=e=>{if(!e||"string"!=typeof e)return!1;try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!!t.hostname}catch(e){return!1}},bM=(e,t)=>br(`https://api.jotform.com${e}`,t),bI=new Set(["1","true","yes","on","enabled"]),bL=(e,t=!1)=>"boolean"==typeof e?e:"number"==typeof e?0!==e:null==e?t:bI.has(String(e).trim().toLowerCase()),bD=({id:e,action:t,apiKey:r,checked:n,disabled:a,onChange:o,propertiesMap:i,templateID:l,updateProperty:s})=>{let[u,c]=(0,eg.useState)(!1),[d,f]=(0,eg.useState)(""),p=e=>{if(e&&"object"==typeof e)return e;try{return JSON.parse(e||"{}")}catch(e){return{}}},h=p(i?.review_data),m=p(i?.[t?.dataTarget]),g=""!==String(i?.source_url||"").trim()&&Array.isArray(h.reviews)&&h.reviews.some(e=>""!==String(e?.text||"").trim()),v=!!(m?.success&&m?.summary),b=async()=>{if(!t||!g)return void f("Add a Google review source before generating a summary.");c(!0),f(t.loadingMessage||"Generating summary...");try{let e=await fetch(bM(`/website-widgets/templates/${l}/execute-action?action=${t.actionName}`,r),{method:t.requestMethod||"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t.param]:h})}),n=await e.json(),a=n?.content||n?.data||n;if(!e.ok||!a?.success||!a?.summary)throw Error(a?.message||"Could not generate the review summary.");s(t.dataTarget,JSON.stringify(a)),f("AI summary generated from the current reviews.")}catch(e){o(!1),f(e.message||"Could not generate the review summary.")}finally{c(!1)}},y=async e=>{let t=e?.target?.checked??!n;t&&!g?f("Add a review source before enabling AI-generated summary."):(o(t),t)?t&&await b():f("")};return eu(eg).createElement("div",{className:"ai-review-summary"},eu(eg).createElement("div",{className:"ai-review-summary__toggle"},eu(eg).createElement(nR,{id:e,"aria-label":be("AI-Generated Summary"),checked:n,disabled:a||u,onChange:y,size:"medium"}),eu(eg).createElement("span",null,n?be("AI summary enabled"):be("Enable AI summary"))),n&&v&&eu(eg).createElement(r7,{colorStyle:"secondary",disabled:a||u,loader:u,onClick:b,size:"small",theme:"dark",variant:"outline"},be("Regenerate")),d&&eu(eg).createElement("p",{className:"ai-review-summary__message","aria-live":"polite"},d))},bz=(e,t,r)=>{e(!0),t(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:r}),"review_data",0)},bB=null,bH=async({fieldValue:e,action:t,templateID:r,handleChange:n,setWidgetUpdating:a,setHasError:o,onEmptyValue:i,setCustomErrorMessage:l,mockData:s,apiKey:u})=>{if(!t)return{shouldReturn:!0};if(!e||"string"==typeof e&&"https://"===e)return i&&i(),{shouldReturn:!0};bB&&bB.abort();let{signal:c}=bB=new AbortController,{param:d,actionName:f,dataTarget:p}=t;a(!0),o&&(o(!1),l("")),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:[]}),"review_data",0);try{let t=await fetch(bM(`/website-widgets/templates/${r}/execute-action?action=${f}&${d}=${encodeURIComponent(e)}&useWorker=1`,u),{method:"GET",signal:c});if(c.aborted)return{shouldReturn:!0};if(200===t.status){let{content:e}=await t.json();if(c.aborted)return{shouldReturn:!0};if(e.jobHandle){let t=async e=>{if(c.aborted)return null;let a=await fetch(bM(`/website-widgets/templates/${r}/execute-action?action=checkStatus&jobHandle=${encodeURIComponent(e)}`,u),{method:"GET",signal:c});if(c.aborted)return null;if(200===a.status){let r=await a.json();return c.aborted?null:r.content?.status==="FAILED"?(o(!0),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:s}),"review_data",0),null):r.content?.status==="COMPLETED"||r.content?.status==="PROCESSING"&&r.content?.reviews?.length>0?r.content:(await new Promise(e=>setTimeout(e,3e3)),c.aborted)?null:t(e)}return null},a=await t(e.jobHandle);if(c.aborted)return{shouldReturn:!0};a&&(a.reviews=bF(a.reviews),a.reviews?.length>0?n(void 0,JSON.stringify({...a,reviews:a.reviews}),p,0):(o(!0),l("No reviews found for this listing."),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:s}),"review_data",0)))}else e.success?n(void 0,JSON.stringify({...e,reviews:bF(e.reviews)}),p,0):bz(o,n,s)}else bz(o,n,s)}catch(e){return"AbortError"!==e.name&&bz(o,n,s),{shouldReturn:!0}}finally{bB===c&&(bB=null),a(!1)}return{shouldReturn:!1}},bU=e=>{let t,{apiKey:r}=rO(),{type:n,options:a,label:o,subLabel:i,value:l,default:s="",name:u,handleChange:c,className:d="",renderFormControl:f=!1,action:p,placeholder:h,fields:m=[],fieldIndex:g,size:v,reverseCondition:b=!1,subFieldIndex:y,required:w=!1,groupIndex:E,templateID:x,setWidgetUpdating:_,refreshApp:S,hasError:C,setHasError:O,propertiesMap:k,widgetUpdating:R,widgetSlug:j,mockData:T,reviewSyncActive:F,onCancelReviewSync:A,onFetchReviews:N,maxLength:P,rows:M,readOnly:I=!1,disabled:L=!1,updateProperty:D}=e,[z,B]=(0,eg.useState)(""),H={},[U,$]=eu(eg).useState(!1),W=!1;if(!by(e,k))return null;let V=L||I||R||"preview"===j,q=`${u}-input`;switch(n){case"radio":t=()=>eu(eg).createElement("div",{className:"field-renderer__radio-options"},a.map((e,t)=>eu(eg).createElement("div",{key:t,className:"field-renderer__radio-option"},eu(eg).createElement(nF,{id:`${q}-${t}`,name:u,value:e.value,disabled:V,size:v,theme:"dark",onChange:()=>c(a[t].value,void 0,u,g,y,E),label:be(e.label),checked:(void 0!==l?l:s)===e.value}))));break;case"range":t=bn,H={...e,defaultValue:s,value:l,required:w,size:v,handleChange:c};break;case"url":t=nk,H={...e,placeholder:be(h),required:w,colorStyle:C?"error":"default",size:v,prefix:{text:"https://",variant:"filled",as:"label",htmlFor:"phone-input"},value:String(l??s).replace(/^https:\/\//,""),onChange:async e=>{let t=e.target.value,n=/^https?:\/\//i.test(t)?t:`https://${t}`;if(A?.(),c(void 0,n,u,g,y,E),!p){O(!bP(n)&&"https://"!==n),B("");return}if(bP(n)){if("fetchReviews"===p.actionName)return void await N?.(n);await bH({fieldValue:n,action:p,templateID:x,handleChange:c,setWidgetUpdating:_,setHasError:O,setCustomErrorMessage:B,mockData:T,apiKey:r})}else O("https://"!==n),B(""),_(!1)}};break;case"toggle":t=nR;let G=void 0!==l?l:s,K="theme"===u,X=K?"dark"===String(G).toLowerCase():bL(G,bL(s));H={size:v,required:w,checked:X,readOnly:V,onChange:t=>{if(V)return;let r=t?.target?.checked??!X;c(void 0,K?r?"dark":"light":r,u,g,y,E),Object.entries((r?e.checkedApplyValues:e.uncheckedApplyValues)||{}).forEach(([e,t])=>D?.(e,t))}};break;case"aiReviewSummary":t=bD,H={action:p,apiKey:r,checked:bL(void 0!==l?l:s),disabled:L||R||"preview"===j,onChange:e=>c(void 0,e,u,g,y,E),propertiesMap:k,templateID:x,updateProperty:D};break;case"color":t=gS,H={colorStyle:U?"error":"default",pickerOptions:{offset:6,disableAlpha:!1,placement:"bottom-end",presetColors:void 0,onSwatchHover:void 0},size:"medium",rounded:"both",onChange:e=>{let t=e.target.value,r=(e=>{if(!e||""===e.trim())return!0;let t=document.createElement("div");return t.style.color=e,""!==t.style.color})(t);$(!r),r&&c(void 0,t,u,g,y,E)},value:void 0!==l?l:s,errorMessage:U?be("Please enter a valid color value (e.g., #FF0000, red, rgb(255,0,0))"):void 0};break;case"checkbox":t=nT,H={label:be(o),theme:"dark",size:"small",required:w,onChange:e=>e,style:{marginBottom:"8px"},onClick:()=>c(void 0,!bL(void 0!==l?l:s),u,g,y,E),checked:bL(void 0!==l?l:s)};break;case"text":t=nk,H={placeholder:be(h),size:v,required:w,rounded:"both",maxLength:P,theme:"dark",colorStyle:"default",showLockIconInReadOnly:!0,value:void 0!==l?l:s,onChange:async e=>{let t=e.target.value;if(c(void 0,t,u,g,y,E),p){if("fetchReviews"===p.actionName){A?.(),await N?.(t);return}await bH({fieldValue:t,action:p,templateID:x,handleChange:c,setWidgetUpdating:_,setHasError:O,onEmptyValue:()=>{_(!1)},mockData:T,apiKey:r})}}};break;case"group":t=()=>null;break;case"shrinkedGroup":t=bc,H={...e,defaultValue:s,value:l,FieldRenderer:bU,size:v,handleChange:c};break;case"layoutSelector":t=bu,H={...e,defaultValue:s,value:l,FieldRenderer:bU,size:v,handleChange:c,refreshApp:S,widgetUpdating:R};break;case"select":t=()=>{let e=(a||[]).filter(e=>(!e.reviewLayouts||e.reviewLayouts.includes(k?.layout||"carousel"))&&by(e,k)),t=void 0!==l?l:s;return"theme"===u&&"custom"!==t&&(t="dark"===t||bL(t)?"dark":"light"),eu(eg).createElement(nA,{id:q,"aria-label":be(o||u),size:v,required:w,rounded:"both",value:t,disabled:V,colorStyle:"default",showLockIconInReadOnly:!0,onChange:t=>{let r=t.target.value;c(void 0,r,u,g,y,E);let n=e.find(e=>String(e.value)===r);Object.entries(n?.applyValues||{}).forEach(([e,t])=>D?.(e,t))}},e.map(({value:e,label:t})=>eu(eg).createElement(nN,{key:e,value:e},be(t))))};break;case"fontFamilySelector":case"jotformFontSelector":t=bh,H={...e,defaultValue:s||"site",value:l,handleChange:c,readOnly:I||"preview"===j,disabled:L||R};break;case"textarea":"custom_css"===u?(t=bg,H={value:void 0!==l?l:s,placeholder:be(h),maxLength:P,rows:M,readOnly:I||"preview"===j,disabled:L||R,onChange:e=>c(void 0,P?e.slice(0,P):e,u,g,y,E)}):(t=vc,H={value:l??s,placeholder:be(h),maxLength:P,rows:M||4,disabled:V,onChange:e=>c(void 0,e.target.value,u,g,y,E)});break;case"mediaSource":t=bx,H={value:l??s,placeholder:"https://",disabled:V,onChange:e=>{let t=e.target.value;O(!!t&&!bP(t)),B(t&&!bP(t)?be("Enter a valid HTTP or HTTPS URL."):""),c(void 0,t,u,g,y,E)}};break;case"faq_editor":t=bE,H={...e,defaultValue:s,disabled:V,onChange:e=>c(void 0,e,u,g,y,E)};break;case"searchable_place":t=bd,W=!0,H={...e,reviewData:k?.review_data,defaultValue:s,value:l||`{"text":"${k?.source_url||""}"}`,handleChange:c,templateID:x,action:p,setWidgetUpdating:_,setHasError:O,placeholder:h,setCustomErrorMessage:B,hasError:C,reviewSyncActive:F,onCancelReviewSync:A,onFetchReviews:N,widgetUpdating:R||"preview"===j}}if(t){let r;if(!f&&void 0!==y)return eu(eg).createElement(t,{...H,id:q,"aria-label":be(o||u),className:"field-renderer__subfield",disabled:V,readOnly:I||"preview"===j,mockData:T});let a=(r=["toggle","checkbox"].includes(n)?bL(void 0!==l?l:s):void 0!==l?l:s,((b?!r:r)||["group"].includes(n))&&m);a=Array.isArray(a)?a.length>0:a;let p=(H.errorMessage||z)&&(C||U),h=!p&&H.infoMessage;return eu(eg).createElement("div",{key:u,className:d},eu(eg).createElement(vd,{id:u,size:v,theme:"dark",className:`field-renderer__form-control ${"toggle"===n?"field-renderer__form-control--row":"field-renderer__form-control--col"}`},!e.hideLabel&&eu(eg).createElement(vf,{htmlFor:q,size:v||"medium",description:be(i)},be(o||u)),eu(eg).createElement(t,{size:v,subFieldIndex:y,...H,id:q,"aria-label":be(o||u),disabled:V,readOnly:I||"preview"===j,mockData:T}),p&&eu(eg).createElement(vp,{colorStyle:"error",id:`${u}-error`},be(z||H.errorMessage)),!p&&!W&&h&&H.value&&eu(eg).createElement("div",{className:"field-renderer__info-message"},eu(eg).createElement(nl,{className:"field-renderer__info-icon"}),eu(eg).createElement("p",{className:"field-renderer__info-text"},be(H.infoMessage)))),a&&m.map((e,t)=>eu(eg).createElement(bU,{...e,size:v,theme:"dark",key:t,className:"field-renderer__subfield",subFieldIndex:t,fieldIndex:g,handleChange:c,propertiesMap:k,updateProperty:D,widgetUpdating:R,setWidgetUpdating:_,setHasError:O,templateID:x,onFetchReviews:N,onCancelReviewSync:A,reviewSyncActive:F,disabled:L,readOnly:I,widgetSlug:j,mockData:T})))}};var b$={};b$=ec("5phuL");var bW={};bW=ec("hLjTP");var bV={};bV=ec("djIaI");var bq={};bq=ec("dE8lj");let bG="https://www.jotform.com",bK="google-reviews",bX="jfrwg_pre_connect_wizard_state",bZ="jfrwg_review_prompt_preference",bJ={[bK]:eu(b$)},bY={[bK]:eu(bq)},bQ=new Set(["toggle","checkbox","aiReviewSummary"]),b0=new Set(["1","true","yes","on","enabled"]),b1=new Set(["0","false","no","off","disabled",""]),b2=(e,t=!1)=>{if("boolean"==typeof e)return e;if("number"==typeof e)return 0!==e;if(null==e)return t;let r=String(e).trim().toLowerCase();return!!b0.has(r)||!b1.has(r)&&t},b4=e=>{try{window.localStorage.setItem(bZ,JSON.stringify(e))}catch(e){}},b5=(e=[],t,r)=>e.map(e=>({...e,...e.name===t?{value:r}:{},...Array.isArray(e.fields)?{fields:b5(e.fields,t,r)}:{}})),b8=(e,t,r)=>(Array.isArray(e)?e:[]).map(e=>({...e,fields:b5(e.fields,t,r),tabs:Array.isArray(e.tabs)?e.tabs.map(e=>({...e,fields:b5(e.fields,t,r)})):e.tabs})),b3=(e,{enableCustomCssFromContent:t=!1}={})=>{let r={minimum_rating:{type:"range",label:"Minimum Rating",subLabel:"Only show reviews with this rating or higher.",min:1,max:5,step:1},include_non_text_reviews:{type:"toggle",label:"Include reviews without text"},include_review_keywords_enabled:{type:"toggle",label:"Include Reviews by Keywords"},include_review_keywords:{type:"text",label:"Keywords to include",placeholder:"Enter keywords separated by commas",renderIf:"include_review_keywords_enabled"},exclude_review_keywords_enabled:{type:"toggle",label:"Exclude Reviews by Keywords"},exclude_review_keywords:{type:"text",label:"Keywords to exclude",placeholder:"Enter keywords separated by commas",renderIf:"exclude_review_keywords_enabled"}},n=e=>{let a=(e.fields||[]).map(n),o={...e,...e.fields?{fields:a}:{}},i=r[e.name];if(i&&(o={...o,...i,hidden:!1}),["review_manual_rules","review_products_enabled","review_product_items","review_section_reverse"].includes(e.name)&&(o.hidden=!0),bQ.has(o.type)&&"theme"!==e.name&&(o={...o,default:b2(e.default),...void 0!==e.value?{value:b2(e.value,b2(e.default))}:{}}),"theme"===e.name){let t=t=>"custom"===t&&e.options?.some(e=>"custom"===e.value)?"custom":[!0,1,"1","true","dark"].includes(t)?"dark":"light";o.default=t(e.default),void 0!==e.value&&(o.value=t(e.value))}if(t&&"custom_css_enabled"===e.name){let e=a.find(e=>"custom_css"===e.name);""!==String(e?.value??e?.default??"").trim()&&(o.value=!0)}return"review_sync_method"===e.name?{...o,hidden:!1,type:"radio",label:"Review sync",subLabel:"Choose whether new Google reviews are refreshed automatically.",options:[{label:"Manual",value:"manual"},{label:"Automatic",value:"auto"}]}:"review_auto_sync_frequency"===e.name?{...o,hidden:!1,type:"select",label:"Auto-sync frequency",subLabel:"Choose how often published review data is refreshed.",renderIf:"review_sync_method",renderIfValue:"auto",options:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}]}:o};return e.map(e=>({...e,fields:(e.fields||[]).map(n),tabs:(e.tabs||[]).map(e=>({...e,fields:(e.fields||[]).map(n)}))}))},b9=(e=[],t)=>{for(let r of e){if(r.name===t)return void 0!==r.value?r.value:r.default;let e=b9(r.fields,t);if(void 0!==e)return e}},b6=e=>{let t=(e=>{if(e&&"object"==typeof e)return e;try{return JSON.parse(e||"{}")}catch(e){return{}}})(e);return Array.isArray(t)?{reviews:t}:t},b7=(e,t)=>{let r=((e,t)=>{for(let r of Array.isArray(e)?e:[]){let e=b9(r.fields,t);if(void 0!==e)return e;for(let e of Array.isArray(r.tabs)?r.tabs:[]){let r=b9(e.fields,t);if(void 0!==r)return r}}})(e,"review_data");return b6(null!=r&&""!==r?r:t)},ye=(e,t,r)=>{let n=Number(e??0);return r&&n<=0?Number(t??0):n},yt=({user:e,widgetID:r,updateState:n,requiresConnection:a=!1})=>{let o,{apiKey:i}=rO(),l=((e=768)=>{let[t,r]=(0,eg.useState)(!1);return(0,eg.useEffect)(()=>{let t=()=>{r(window.innerWidth<e)};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t})(480)||!("u"<typeof navigator)&&!!navigator.userAgent&&/Mobi|Android|iPhone|iPad|iPod|Mobile Safari|webOS|Silk|Kindle/i.test(navigator.userAgent),[s,u]=(new URLSearchParams(window.location.search).get("widgetSlug"),(0,eg.useState)(e)),c=(0,eg.useRef)(),d=(0,eg.useRef)(),f=(0,eg.useRef)(),[p,h]=(0,eg.useState)([]),[m,g]=(0,eg.useState)(),[v,b]=(0,eg.useState)(),[y,w]=(0,eg.useState)({}),[E,x]=(0,eg.useState)([]),{id:_}=y,[S,C]=(0,eg.useState)("Untitled"),[O,k]=(0,eg.useState)(!0),[R,j]=(0,eg.useState)(0),[T,F]=(0,eg.useState)(!1),[A,N]=(0,eg.useState)(""),[P,M]=(0,eg.useState)(null),[I,L]=(0,eg.useState)(null),[D,z]=(0,eg.useState)([]),[B,H]=(0,eg.useState)([]),[U,$]=(0,eg.useState)([]),[W,V]=(0,eg.useState)(!1),[q,G]=(0,eg.useState)(!1),[K,X]=(0,eg.useState)(0),[Z,J]=(0,eg.useState)(null),[Y,Q]=(0,eg.useState)(l?"mobile":"desktop"),[ee,et]=(0,eg.useState)(0),[er,en]=(0,eg.useState)(),[ea,eo]=(0,eg.useState)(!1),[ei,el]=(0,eg.useState)(null),[es,ec]=(0,eg.useState)(0),ed=(0,eg.useRef)(null),ef=(0,eg.useRef)({}),ep=(0,eg.useRef)(!1),eh=e=>{!e||ea&&c?.current?.contentWindow&&c.current.contentWindow.postMessage({value:{...e,deviceView:Y,landingUrl:y.landing_url,templateIcon:y.icon||eu(b$)},action:"updateWidgetState"},bG)};(0,eg.useEffect)(()=>eh({widgetUpdating:T}),[T,ea]);let em=async()=>{let e=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${bK}`,i),{method:"GET"}),{content:{all_widgets:t}}=await e.json();z(t)},ev=(e=[])=>{let t={};return e.forEach(({name:e,value:r,default:n,fields:a=[]})=>{t={...t,[e]:void 0!==r?r:n},a.length>0&&a.forEach(e=>{t=(e.fields||[]).length>0?{...t,...ev(e.fields)}:{...t,[e.name]:void 0!==e.value?e.value:e.default}})}),t},eb=(e=p)=>{let t={};return Array.isArray(e)?(e.forEach(({fields:e,tabs:r=[]})=>{r.length>0?r.forEach(({fields:e})=>{t={...t,...ev(e)}}):t={...t,...ev(e)}}),t.review_data)?t:{...t,review_data:E}:{}},ey=eb(),ew=U.find(e=>e.id===Z)||U[0],eE=e=>e?.id===U[0]?.id?B:e?.schema,ex=e=>{let t=eb(eE(e));return e?.id!==U[0]?.id?t:{...t,review_data:b6(E)}},e_=(e,t=E)=>(ed.current?.abort(),ed.current=null,ef.current=b7(e,t),M(null),F(!1),e),eS=()=>{ed.current?.abort(),ed.current=null,M(null),F(!1);let e=JSON.stringify(ef.current);h(t=>b8(t,"review_data",e)),eh({review_data:e})},eC=(e,t=E)=>{ed.current?.abort(),ed.current=null,ef.current=b7(e,t),M(null),F(!1),h(e)},eO=async e=>{ed.current?.abort();let t=new AbortController;ed.current=t,ef.current=b7(p,E),e1(!1),F(!0),h(t=>b8(t,"source_url",e)),eh({source_url:e});try{await bN({apiKey:i,sourceValue:e,templateID:_,widgetID:v?.id||r,signal:t.signal,onUpdate:e=>{ed.current===t&&(e=>{var t;let r,n,a;if(!e)return;M(e);let o=(t=ef.current,r=e?.data&&"object"==typeof e.data?e.data:{},n=!!e?.preserveReviewsUntilFirstBatch,a=e?.preserveReviewsUntilFirstBatch?Array.isArray(t.reviews)?t.reviews:[]:bF(e?.reviews),{...t,...r,revision:e?.revision,jobHandle:e?.jobHandle,sourceFingerprint:e?.sourceFingerprint,status:e?.status,progress:e?.progress,message:e?.message,hasPartialData:e?.hasPartialData,errorCode:e?.errorCode,businessName:r.businessName||e?.businessName||t.businessName||"",totalReviews:ye(r.totalReviews??e?.totalReviews,t.totalReviews,n),overallRating:ye(r.overallRating??e?.overallRating,t.overallRating,n),shareFeedbackUrl:r.shareFeedbackUrl||e?.shareFeedbackUrl||t.shareFeedbackUrl||"",reviews:a});e.preserveReviewsUntilFirstBatch||(ef.current=o);let i=JSON.stringify(o);h(e=>b8(e,"review_data",i)),eh({review_data:i}),F(bT(e)&&!!e.preserveReviewsUntilFirstBatch),"FAILED"===e.status?e1(!0):"COMPLETED"===e.status&&e1(!1)})(e)}})}catch(e){"AbortError"!==e.name&&e1(!0)}finally{ed.current===t&&(ed.current=null,F(!1))}};(0,eg.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("jfrwg_preview_source")||I?.source;if(!e||!_||O||ep.current)return;ep.current=!0,eO(e);let t=new URL(window.location.href);t.searchParams.delete("jfrwg_preview_source"),window.history.replaceState({},document.title,t.pathname+t.search)},[_,O,I?.source]),(0,eg.useEffect)(()=>{if(!ea)return;let e=setTimeout(()=>{-3===R&&ew?eh({...eb(e_(b3(eE(ew),{enableCustomCssFromContent:!0}),E)),...ex(ew)}):eh({...ey,layout:ey?.layout||"carousel"})},1e3);return()=>clearTimeout(e)},[ea,R,Z,U.length,E]),(0,eg.useEffect)(()=>{-1===R&&em(),ey?.layout==="badge"&&c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"openCloseBadgeSidebar",value:2===R},bG)},[R]);let ek=async()=>{let e=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${bK}${r?`?widgetID=${r}`:""}`,i),{method:"GET"}),{content:{widget:t,schema:n,template:o,layouts:l,all_widgets:s,mockData:u}}=await e.json(),c=null;if(!a)try{c=JSON.parse(window.localStorage.getItem(bX)||"null"),(!c?.savedAt||Date.now()-c.savedAt>18e5)&&(c=null)}catch(e){c=null}let d=b3(n,{enableCustomCssFromContent:!r}),f=c?.properties?b3(((e,t={})=>Object.entries(t).reduce((e,[t,r])=>b8(e,t,r),e))(d,c.properties),{enableCustomCssFromContent:!r}):d;H([...d]),z(a?[]:s),c?(j(Math.min(Math.max(0,Number(c.currentStep)||0),f.length-1)),eN(Math.max(0,Number(c.tabStep)||0)),C(c.widgetName||"Untitled"),Q("mobile"===c.deviceView?"mobile":"desktop"),L({source:c.source||c.properties?.source_url||""}),window.localStorage.removeItem(bX)):!a&&s&&s.length>0?(t&&eh({widgetID:r}),j(-2)):r||j(-3),b(t),h(e_(f,u)),w(o),g(l.map(e=>({...e,schema:b3(e.schema)}))),k(!1),x(u)};(0,eg.useEffect)(()=>{if(!_||U.length>0||W)return;let e=new AbortController;return(async()=>{V(!0),G(!1);try{let t=`https://api.jotform.com/website-widgets/templates/${encodeURIComponent(_)}/gallery-templates?language=en&limit=24`,r=await fetch(br(t,i),{signal:e.signal}),n=await r.json();if(!r.ok||!Array.isArray(n?.content?.templates))throw Error("Templates could not be loaded.");$(n.content.templates.filter(e=>Array.isArray(e.schema)&&e.schema.length>0))}catch(e){"AbortError"!==e.name&&G(!0)}finally{e.signal.aborted||V(!1)}})(),()=>e.abort()},[_,i,K]);let eR=(e,t="Untitled")=>{N("");let r=e_(b3(e,{enableCustomCssFromContent:!0}),E);tr(r),eC(r),h(r),C(t),j(0),eN(0),eL(!1)},ej=e=>{J(e.id),eh({...eb(e_(b3(eE(e),{enableCustomCssFromContent:!0}),E)),...ex(e)})},[eT,eF]=(0,eg.useState)(!0),[eA,eN]=(0,eg.useState)(0);(0,eg.useEffect)(()=>{d.current?.scrollTo(0,0)},[R,eA]);let[eP,eM]=(0,eg.useState)(""),[eI,eL]=(0,eg.useState)(l),[eD,ez]=(0,eg.useState)(!1),[eB,eH]=(0,eg.useState)(!1),[eU,e$]=(0,eg.useState)(!1),eW=((e,t,r)=>{let n=(e=>{let t=(0,eg.useContext)(rJ),r=()=>rY(e)||rY(t),[n,a]=(0,eg.useState)(r);return(0,eg.useEffect)(()=>{let e=r();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(let n=0;n<a;n++){let a=r[n];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(n,e)&&a(e)},[e,t]),n})(t),a=(e=>{let t=()=>{let t;return e.query||(t=[],Object.keys(rZ).forEach(r=>{let n=e[r];null!=n&&t.push(((e,t)=>{let r=r$(e);if("number"==typeof t&&(t=`${t}px`),!0===t)return r;if(!1===t)return`not ${r}`;return`(${r}: ${t})`})(r,n))}),t.join(" and "))},[r,n]=(0,eg.useState)(t);return(0,eg.useEffect)(()=>{let e=t();r!==e&&n(e)},[e]),r})(e);if(!a)throw Error("Invalid or missing MediaQuery!");let o=((e,t)=>{let r=()=>eu(rR)(e,t||{},!!t),[n,a]=(0,eg.useState)(r),o=rQ();return(0,eg.useEffect)(()=>{if(o){let e=r();return a(e),()=>{e&&e.dispose()}}},[e,t]),n})(a,n),i=(e=>{let[t,r]=(0,eg.useState)(e.matches);return(0,eg.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t})(o),l=rQ();return(0,eg.useEffect)(()=>{l&&r&&r(i)},[i]),(0,eg.useEffect)(()=>()=>{o&&o.dispose()},[]),i})({query:"(max-width: 767px)"})?"small":"medium",eV="WordPress",[eq,eG]=(0,eg.useState)(!1),[eK,eX]=(0,eg.useState)(null),[eZ,eJ]=(0,eg.useState)(null),[eY,eQ]=(0,eg.useState)("ASC"),[e0,e1]=(0,eg.useState)(!1),[e2,e4]=(0,eg.useState)(!1),[e5,e8]=(0,eg.useState)(!1),[e3,e9]=(0,eg.useState)(null),[e6,e7]=(0,eg.useState)(null),te=(0,eg.useRef)(null);(0,eg.useEffect)(()=>{-2===R&&ee>1&&(b(),eC(B),ek()),et(e=>e+1)},[R]),(0,eg.useEffect)(()=>{if(eq&&f.current){let e=f.current.querySelector("input")||f.current;e&&"function"==typeof e.focus&&e.focus()}},[eq]),(0,eg.useEffect)(()=>{let e=te.current;if(!e)return;let t=()=>{null!==e6&&e7(null)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[e6]);let tt=(e,t,r,n,a,o)=>{if(!r)return;let i=[...p],l=void 0!==e?e:t;if("review_data"===r){let e=JSON.parse(l),{reviews:t=[]}=e;eh({[r]:JSON.stringify({...e,reviews:t})})}else eh({[r]:l});let s=(i[R]?.tabs||[]).length>0?i[R]?.tabs[eA]:i[R];void 0!==o?s.fields[n].fields[a].fields[o].value=l:void 0!==a?s.fields[n].fields[a].value=l:s.fields[n].value=l,h(i),"source_url"===r&&!(!l||""===l||"https://"===l)&&e0&&e1(!1)};(0,eg.useEffect)(()=>{let e=document.documentElement;return eD?e.classList.add("is-widget-fullscreen"):e.classList.remove("is-widget-fullscreen"),()=>{e.classList.remove("is-widget-fullscreen")}},[eD]),(0,eg.useEffect)(()=>{let e=null,t=null;return"u">typeof window&&"function"==typeof window.requestAnimationFrame?e=window.requestAnimationFrame(()=>eH(!0)):t=setTimeout(()=>eH(!0),0),()=>{null!==e&&"u">typeof window&&"function"==typeof window.cancelAnimationFrame&&window.cancelAnimationFrame(e),null!==t&&clearTimeout(t)}},[]);let tr=e=>{eh(eb(e))},tn=(e,t)=>{h(r=>b8(r,e,t)),eh({[e]:t})},{tabs:ta=[],name:to,step_button_text:ti}=p[R]||{},tl=[];ta.length>0?{fields:tl=[]}=ta[eA]:{fields:tl=[]}=p[R]||{};let ts=()=>{let e=eK||v;return e?`[jfrwg_widget id="${e.id}"]`:""},tu="mobile"===Y,tc=async()=>{if(a){let e=eb(),t=e.source_url||"";try{window.localStorage.setItem(bX,JSON.stringify({properties:e,source:t,widgetName:S,currentStep:R,tabStep:eA,deviceView:Y,savedAt:Date.now()}))}catch(e){}let r=new URL(window.location.href);r.searchParams.delete("jfrwg_preview_source"),t&&r.searchParams.set("jfrwg_preview_source",t);let n=`https://www.jotform.com/api/oauth.php?registrationType=oauth&client_id=${encodeURIComponent("Jotform - Widgets for Google Reviews")}&access_type=full&auth_type=login&ref=${encodeURIComponent(r.toString())}&integration_auth=1&isNewLoginFlow=1&enterpriseLoginEndpoint=${encodeURIComponent("/api/legacy-oauth/enterprise-domain")}&rk=1&wpPlugin=1`;window.location.href=n;return}F(!0),e1(!1),N("");try{let e=v?`https://api.jotform.com/website-widgets/${v.id}`:`https://api.jotform.com/website-widgets?template_id=${_}`,t=eb();if(bT(P))delete t.review_data,t.reviewSyncJobHandle=P.jobHandle;else if(t.review_data){let e={...b6(t.review_data)};delete e.jobHandle,t.review_data=JSON.stringify(e)}let r=await fetch(br(e,i),{method:v?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,widget_name:S})}),a=await r.json(),o=a?.content?.widget;if(!r.ok||!o?.id)throw Error(a?.message||"Widget could not be saved.");b(o),eL(!0),eF(!0),eM("fullPreview"),!v&&(()=>{try{let e=JSON.parse(window.localStorage.getItem(bZ)||"null");if(e?.status==="never"||e?.status==="reviewed")return!1;return!e?.remindAfter||Date.now()>=e.remindAfter}catch(e){return!0}})()&&e4(!0),n&&n({state:v?"2":"1",id:o.id})}catch(e){N(e.message||be("Widget could not be saved. Please try again."))}finally{F(!1)}};(0,eg.useEffect)(()=>{!I||a||O||T||I.source&&P?.status!=="COMPLETED"||(L(null),tc())},[I,a,O,T,P?.status]);let td=async(e,t)=>{try{let r=await fetch(br(`https://api.jotform.com/website-widgets/${e}`,i),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({widget_status:t})}),{content:{widget:n}}=await r.json();z(t=>t.map(t=>t.id===e?{...t,...n}:t))}catch(e){}},tf=async(e,t)=>{try{let r=await fetch(br(`https://api.jotform.com/website-widgets/${e}`,i),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({widget_name:t})}),{content:{widget:n}}=await r.json();b(n),b(n)}catch(e){}},tp=async(e,t)=>{await td(e,"ACTIVE"===t?"INACTIVE":"ACTIVE"),n&&n({state:"3",id:e})},th=async e=>{e9(e),e8(!0)},tm=async()=>{e3&&(await td(e3,"DELETED"),n&&n({state:"4",id:e3}),e8(!1),e9(null))},tg=async(e,t)=>{N(""),k(!0),t&&(en(t),c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"setDynamicWidgetSlug",value:"mywidgets"},bG));try{let r=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${t||bK}?widgetID=${e}`,i),{method:"GET"}),{content:{widget:a,schema:o,template:l,layouts:s,mockData:u}}=await r.json();if(a){let r=e_(b3(o),u);b(a),C(a.name),h(r),w(l),x(u),g(s.map(e=>({...e,schema:b3(e.schema)}))),j(0),eM(""),eL(!1);let i=eb(r);"string"!=typeof i?.review_data&&i?.review_data?.length===0&&(i.review_data=u),eh({widgetID:e,...i}),n&&n({state:"5",id:e}),t&&setTimeout(()=>{c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"setDynamicWidgetSlug",value:t},bG),e1(!1)},es>0?0:250)}}catch(e){}finally{k(!1),ec(e=>e+1)}};(0,eg.useEffect)(()=>{ek(),n&&n({state:"6",id:r})},[]);let tv=[{name:"WordPress",instructions:["In the block editor, add the [1[Jotform - Widgets for Google Reviews]] block. In the sidebar, use [1[Saved widgets]] to pick this widget.","[1[Update]] or [1[Publish]] the page.","Shortcode instead: click [1[Copy Shortcode]] and paste into a Shortcode block, Classic Editor, or custom HTML.","That's it!"]},{name:"HTML",svgIcon:nx,instructions:["Click the [1[Copy Code button]] on the previous screen to copy your embed code.","Open your [1[HTML file]] in a code editor (such as [1[VS Code]], [1[Sublime Text]], or [1[Notepad]]).","Locate the [1[<body>]] tag in your HTML file.","Paste your script inside the [1[<body>]] before the closing [1[</body>]] tag.","[1[Save]] your file.","That's it!"]},...bt].find(e=>e.name===eV),tb=["fullPreview","widgetLimitExceeded"].includes(eP),ty=D.filter(e=>"DELETED"!==e.status);return eu(eg).createElement("div",{className:eu(r0)("jf-wizard wizard",{"wizard--initializing":!eB,"wizard--ready":eB&&!eD,"wizard--fullscreen":eD&&eB}),style:{zIndex:eD?"100000":"unset",height:eD?"100dvh":"min(800px, calc(100dvh - 96px))"}},eu(eg).createElement("main",{className:eu(r0)("wizard__main",{"wizard__main--fullscreen":eD,"wizard__main--normal":!eD}),style:{maxWidth:eD?"unset":"1800px"}},eu(eg).createElement("header",{className:"wizard__header"},(0===R?v||ty.length>0:R>=-1||-3===R&&ty.length>0)&&eu(eg).createElement(r7,{rounded:!0,variant:"outline",showTextOnly:"sm",disabled:T,colorStyle:"secondary",startIcon:ns,size:eW,onClick:()=>{if(n&&n({state:"7",id:v?.id||r}),eP){eM(""),eL(!1);return}if(-3===R)return void j(-2);let e=0===R?R-2:R-1;j(e),e>=0&&eL(!1)},className:"wizard__back-button"},be("Back")),eu(eg).createElement("div",{className:eu(r0)("wizard__title-area",{"wizard__title-area--editable":R>=0,"wizard__title-area--full-width":eq}),onDoubleClick:()=>{R<0||eG(!0)}},R>=0&&(eq?eu(eg).createElement(nk,{ref:f,"aria-label":be("Widget name"),defaultValue:S,onBlur:e=>{e.target.value.length>0&&(C(e.target.value),v&&tf(v.id,e.target.value)),eG(!1)},ghost:!0,className:"wizard__title-input-wrapper",inputClassName:"wizard__title-input"}):eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("p",{className:"wizard__title-text",title:S},S),R>=0&&S&&eu(eg).createElement(r7,{"aria-label":be("Rename widget"),size:"small",variant:"ghost",colorStyle:"secondary",startIcon:nv,className:"wizard__title-edit-button",onClick:()=>{R<0||eG(!0)}})))),eu(eg).createElement(r7,{"aria-label":eD?be("Exit fullscreen"):be("Enter fullscreen"),colorStyle:"secondary",rounded:!0,startIcon:eD?nh:np,variant:"ghost",size:eW,onClick:()=>ez(!eD),className:"wizard__fullscreen-button"})),eu(eg).createElement("div",{className:"wizard__content-area"},!tb&&R>=0&&eu(eg).createElement(r7,{className:eu(r0)("aside-opener wizard__aside-opener",{"wizard__aside-opener--visible":eI,"wizard__aside-opener--hidden":!eI}),colorStyle:"teams",rounded:!0,size:eW,startIcon:nf,"aria-label":be("Open settings"),tabIndex:eI?0:-1,"aria-hidden":!eI,onClick:()=>eL(!1)}),-2===R&&eu(eg).createElement("div",{className:"wizard__step-1"},eu(eg).createElement("div",{className:"step-1-section wizard__step-1-inner"},eu(eg).createElement("div",{className:"wizard__step-1-content"},eu(eg).createElement("p",{className:"wizard__step-1-heading"},be(`Create your own ${y.name} widget in seconds and showcase real customer feedback.`)),eu(eg).createElement("p",{className:"wizard__step-1-description"},be(`Show real ${y.name} on your website to build trust and boost conversions. Sync reviews automatically and customize the widget \u{2014} no coding needed.`)),eu(eg).createElement("div",{className:"wizard__step-1-actions"},eu(eg).createElement(r7,{size:eW,className:"wizard__step-1-button",loader:T,onClick:()=>{n&&n({state:"12"}),J(null),j(-3)}},"Create new widget"),eu(eg).createElement(r7,{size:eW,className:"wizard__step-1-button",variant:"outline",colorStyle:"secondary",onClick:()=>{n&&n({state:"13"}),j(R+1)}},"Show my widgets"))),eu(eg).createElement("div",{className:"wizard__step-1-image"},eu(eg).createElement("img",{src:bY[bK]||bY[bK],alt:`${y.name} - Cover Image`,style:{maxWidth:"90%"}})))),-3===R&&eu(eg).createElement("aside",{className:"wizard__template-panel","aria-labelledby":"widget-template-title"},eu(eg).createElement("div",{className:"wizard__template-panel-header"},eu(eg).createElement("h2",{id:"widget-template-title"},be("Templates")),eu(eg).createElement(r7,{colorStyle:"secondary",theme:"dark",rounded:!0,size:eW,variant:"ghost",startIcon:nn,"aria-label":be("Close"),onClick:()=>{ty.length>0?j(-2):eR(B)}})),eu(eg).createElement("div",{className:"wizard__template-panel-content"},W&&eu(eg).createElement("div",{className:"wizard__template-panel-status","aria-live":"polite"},be("Loading templates...")),q&&eu(eg).createElement("div",{className:"wizard__template-panel-status"},eu(eg).createElement("p",null,be("Templates could not be loaded. Please try again.")),eu(eg).createElement(r7,{size:"small",variant:"outline",onClick:()=>X(e=>e+1)},be("Try again"))),!W&&!q&&eu(eg).createElement("ul",{className:"wizard__template-panel-grid","aria-label":be("Templates")},U.map((e,t)=>{let r=e.id===ew?.id;return eu(eg).createElement("li",{key:e.id||e.slug},eu(eg).createElement("button",{type:"button",className:eu(r0)("wizard__template-panel-card",{"is-selected":r}),"aria-pressed":r,onPointerDown:t=>{("mouse"===t.pointerType||"pen"===t.pointerType)&&ej(e)},onClick:()=>ej(e)},eu(eg).createElement("span",{className:"wizard__template-panel-thumbnail",style:{"--template-thumbnail-background":e.thumbnailBackgroundColor}},eu(eg).createElement("img",{src:e.screenshot,alt:"",loading:t<4?"eager":"lazy"})),eu(eg).createElement("span",{className:"wizard__template-panel-overlay","aria-hidden":"true"},eu(eg).createElement("span",{className:eu(r0)({"is-current-template":r})},be(r?"Current Template":"Use Template"))),eu(eg).createElement("span",{className:"wizard__template-panel-card-title"},eu(eg).createElement("span",null,be(0===t?"Default Google Reviews Widget":e.title)))))}))),eu(eg).createElement("div",{className:"wizard__template-panel-footer"},eu(eg).createElement("div",{className:"wizard__template-panel-footer-gradient"}),eu(eg).createElement("div",{className:"wizard__template-panel-footer-inner"},eu(eg).createElement(r7,{className:"wizard__template-panel-continue",disabled:!ew||W,onClick:()=>eR(eE(ew),ew===U[0]?"Untitled":ew.title)},be("Continue with this template"),eu(eg).createElement("svg",{className:"wizard__template-panel-continue-icon",viewBox:"0 0 24 24","aria-hidden":"true"},eu(eg).createElement("path",{fill:"currentColor",d:"M13.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.6l-4.3-4.3a1 1 0 0 1 0-1.4Z"})))))),-1===R&&eu(eg).createElement("div",{className:"wizard__my-widgets"},eu(eg).createElement("div",{className:"wizard__my-widgets-inner"},ty.length>0&&eu(eg).createElement("div",{className:"wizard__my-widgets-header"},eu(eg).createElement("p",{className:"wizard__my-widgets-title"},be("My widgets")),eu(eg).createElement("div",{className:"wizard__my-widgets-actions"},eu(eg).createElement(r7,{size:"small",onClick:()=>{n&&n({state:"14"}),J(null),j(-3)},startIcon:nE},be("Create new")))),eu(eg).createElement("div",{ref:te,className:"wizard__widgets-list"},ty.length>0?eu(eg).createElement("table",{className:"wizard__widgets-table"},eu(eg).createElement("thead",{className:"wizard__widgets-thead"},eu(eg).createElement("tr",null,eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--name",onClick:()=>{null===eZ?(eJ("ASC"),eQ(null)):"ASC"===eZ?eJ("DESC"):eJ(null)}},eu(eg).createElement("span",{className:"wizard__widgets-th-content"},be("Widget Name"),eu(eg).createElement("span",{className:"wizard__widgets-th-icons"},eu(eg).createElement(nu,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--asc":"ASC"===eZ,"wizard__sort-icon--asc-inactive":"ASC"!==eZ})}),eu(eg).createElement(nc,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--desc":"DESC"===eZ,"wizard__sort-icon--desc-inactive":"DESC"!==eZ})})))),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--date",onClick:()=>{"DESC"===eY?(eQ("ASC"),eJ(null)):eQ("DESC")}},eu(eg).createElement("span",{className:"wizard__widgets-th-content"},be("Creation Date"),eu(eg).createElement("span",{className:"wizard__widgets-th-icons"},eu(eg).createElement(nu,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--asc":"ASC"===eY,"wizard__sort-icon--asc-inactive":"ASC"!==eY})}),eu(eg).createElement(nc,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--desc":"DESC"===eY,"wizard__sort-icon--desc-inactive":"DESC"!==eY})})))),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--visibility"},be("Website Visibility")),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--actions"},be("Actions")))),eu(eg).createElement("tbody",null,(o=[...ty],eZ&&(o=o.sort((e,t)=>{let r=e.name.toLowerCase(),n=t.name.toLowerCase();return"ASC"===eZ?r.localeCompare(n):n.localeCompare(r)})),eY&&(o=o.sort((e,t)=>{let r=new Date(e.created_at).getTime(),n=new Date(t.created_at).getTime();return"ASC"===eY?n-r:r-n})),o).filter(e=>"DELETED"!==e.status).map((e,t,r)=>{let a=new Date(e.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),o="ACTIVE"===e.status,i=o?na:ng,l=r.length>4&&t>=3&&r.length-t<=4;return eu(eg).createElement("tr",{key:e.id,className:eu(r0)("wizard__widgets-row",{"wizard__widgets-row--active":o,"wizard__widgets-row--inactive":!o})},eu(eg).createElement("td",{className:"wizard__widgets-td"},eu(eg).createElement("span",{className:"wizard__widgets-cell-content"},eu(eg).createElement("img",{className:eu(r0)("wizard__widget-icon",{"wizard__widget-icon--inactive":!o}),style:o?{filter:"brightness(.94)"}:{filter:"grayscale(100%) brightness(.94)"},src:bJ[e.widgetSlug||bK]||bJ[bK],alt:`${y.name} - Icon`}),eu(eg).createElement("span",{className:eu(r0)("wizard__widget-name",{"wizard__widget-name--inactive":!o})},e.name))),eu(eg).createElement("td",{className:"wizard__widgets-td"},be("Created on {date}").replace("{date}",a)),eu(eg).createElement("td",{className:"wizard__widgets-td"},eu(eg).createElement("span",{className:"wizard__widget-visibility"},eu(eg).createElement(i,{width:24,height:24}),be(o?"Visible on Website":"Hidden from Website"))),eu(eg).createElement("td",{className:"wizard__widgets-td wizard__widgets-td--actions"},eu(eg).createElement("div",{className:"wizard__widgets-cell-actions"},eu(eg).createElement(r7,{size:"small",colorStyle:"secondary",startIcon:nv,variant:"outline",onClick:()=>{ea?tg(e.id,e.widgetSlug):el(()=>tg(e.id,e.widgetSlug))}}),eu(eg).createElement(vZ,{placement:l?"top-end":"bottom-end",theme:"dark",open:e6===e.id,setOpen:t=>e7(t?e.id:null),triggerElement:()=>eu(eg).createElement(r7,{size:"small",colorStyle:"secondary",variant:"outline",startIcon:nb})},eu(eg).createElement(vJ,null,eu(eg).createElement(vY,null,eu(eg).createElement(v0,{onClick:()=>{n&&n({state:"9",id:e.id}),eX(e),eF(!0)}},eu(eg).createElement(v1,{icon:n_}),eu(eg).createElement(v2,null,"Embed Code"))),eu(eg).createElement(vY,null,eu(eg).createElement(v0,{onClick:()=>tp(e.id,e.status)},eu(eg).createElement(v1,{icon:o?ng:na}),eu(eg).createElement(v2,null,be(o?"Hide from Website":"Show on Website")))),eu(eg).createElement(vQ,null),eu(eg).createElement(vY,null,eu(eg).createElement(v0,{colorStyle:"error",onClick:()=>th(e.id)},eu(eg).createElement(v1,{icon:ny}),eu(eg).createElement(v2,null,"Delete Widget"))))))))}))):!O&&eu(eg).createElement("div",{className:"wizard__empty-state",style:{background:"linear-gradient(to bottom, #f9f9ff 75%, #ffffff 90%)"}},eu(eg).createElement("div",{className:"wizard__empty-state-inner"},eu(eg).createElement("div",{className:"wizard__empty-state-image"},eu(eg).createElement("img",{src:eu(bV),alt:"No widget poster",className:"wizard__empty-state-img"})),eu(eg).createElement("h2",{className:"wizard__empty-state-title"},be("Your first widget is almost here!")),eu(eg).createElement("p",{className:"wizard__empty-state-description"},be("Create a custom {templateName} widget quickly. Sync reviews automatically and embed it on your site with no code.".replace("{templateName}",y.name))),eu(eg).createElement(r7,{size:eW,className:"wizard__empty-state-button",loader:T,onClick:()=>{n&&n({state:"15"}),J(null),j(-3)}},be("Create new widget"))))))),!tb&&eu(eg).createElement("aside",{"aria-hidden":eI||R<0||O,inert:eI||R<0||O?"":void 0,className:eu(r0)("wizard__aside",{"wizard__aside--collapsed":eI,"wizard__aside--expanded":!eI,"wizard__aside--no-custom-step":!eP,"wizard__aside--hidden":R<0||O}),style:{boxShadow:eI?"none":"0 16px 24px 0 rgba(84, 95, 111, 0.16), 0 2px 8px 0 rgba(37, 45, 91, 0.04)"}},!eP&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("div",{className:"wizard__aside-header"},eu(eg).createElement("div",null,eu(eg).createElement("p",{className:"wizard__aside-title"},be(to)),eu(eg).createElement("p",{className:"wizard__step-count","aria-live":"polite"},be("Step {current} of {total}").replace("{current}",R+1).replace("{total}",p.length))),eu(eg).createElement(r7,{"aria-label":be("Close settings"),colorStyle:"secondary",theme:"dark",rounded:!0,size:eW,variant:"ghost",startIcon:nn,onClick:()=>eL(!0)})),ta.length>0&&eu(eg).createElement(vs,{theme:"dark",className:"wizard__aside-tabs",colorStyle:"primary"},ta.map((e,t)=>eu(eg).createElement(vu,{key:t,activeTab:t===eA,onClick:()=>eN(t)},be(e.title)))),eu(eg).createElement("div",{className:"wizard__aside-content",ref:d},eu(eg).createElement("div",{className:"wizard__aside-fields"},tl.map((e,t)=>e.hidden?null:eu(eg).createElement(bU,{...e,size:eW,key:t,layouts:m,schema:p,setSchema:h,refreshApp:tr,templateID:_,fieldIndex:t,handleChange:tt,propertiesMap:ey,setWidgetUpdating:F,widgetUpdating:T,reviewSyncActive:bT(P),onCancelReviewSync:eS,onFetchReviews:eO,updateProperty:tn,hasError:e0,setHasError:e1,widgetSlug:bK,mockData:E})))),eu(eg).createElement("div",{className:"wizard__aside-actions"},A&&eu(eg).createElement("p",{role:"alert",className:"wizard__save-error"},A),eu(eg).createElement(r7,{className:"wizard__aside-actions-button",size:eW,loader:T||R+1>=p.length&&bT(P),loaderText:bT(P)?be("Fetching reviews..."):be("Saving..."),disabled:e0,onClick:async()=>{if(R+1>=p.length){let{account_type:e={}}=s?.credentials||{},t=window.location.href.includes("widgetLimitExceeded=1");if(e?.name==="GUEST"||!e)return void window.showModal("s3b",void 0,void 0,void 0,void 0,void 0,{useCustomRedirection:!0,onUserLogin:async e=>{let t=document.querySelector(".loginFlowModal");t&&(document.body.classList.remove("hide-overflow"),t.remove());try{let t=await fetch(br("https://api.jotform.com/user/combinedinfo",i),{method:"GET"}),r=await t.json(),n=r?.content?.credentials||e.user;window.postMessage({message:"setUser",payload:n},window.location.href),u({credentials:n})}catch(t){window.postMessage({message:"setUser",payload:e.user},window.location.href),u({credentials:e.user})}return tc(),!0}});let r=t?"widgetLimitExceeded":"fullPreview";return"fullPreview"===r?void await tc():(eM(r),void((tb||0)&&(eL(!0),eF(!0))))}n&&n({state:"10",id:v?.id||r}),j(R+1)}},R+1<p.length?be(ti||"Continue"):v?.id?be("Save changes"):a?be("Connect and publish"):be("Create widget"))))),"loginSignup"!==eP&&eu(eg).createElement("section",{className:eu(r0)("wizard__preview-section",{"wizard__preview-section--mobile-padding":"mobile"===Y,"wizard__preview-section--aside-expanded":!eI||-3===R,"wizard__preview-section--hidden":O||R<0&&-3!==R})},!l&&eu(eg).createElement(r7,{size:"small",theme:"light",colorStyle:"secondary",className:"wizard__device-toggle","aria-label":"mobile"===Y?be("Desktop preview"):be("Mobile preview"),style:{backgroundColor:"#ffffff",color:"var(--jfv-navy-500)"},startIcon:"mobile"===Y?nS:nC,onClick:()=>Q("mobile"===Y?"desktop":"mobile")}),eu(eg).createElement("div",{className:eu(r0)("wizard__iframe-wrapper",{"wizard__iframe-wrapper--mobile":"mobile"===Y}),style:{borderWidth:tu?"10px":"0",maxHeight:tu?"720px":"unset",borderRadius:tu?"48px":"0"}},eu(eg).createElement("div",{className:"wizard__iframe-inner"},eu(eg).createElement("iframe",{ref:c,title:"Widget Preview",className:"wizard__iframe",onLoad:()=>{eo(!0),setTimeout(()=>{ei&&"function"==typeof ei&&ei()},1e3)},src:`${bG}/website-widget-renderer/?widgetSlug=${bK}&iframePreview=1`})))),("fullPreview"===eP||eK)&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement(vn,{ariaLabel:"Modal Title",onClose:()=>{eF(!1),eX(null),c.current.contentWindow.postMessage({action:"focusFrame"},bG),eM(""),eL(!1)},open:eT,size:"large"},eu(eg).createElement(va,{description:be("Prefer the block editor: add the Jotform - Widgets for Google Reviews block and pick your widget in the sidebar (no shortcode needed). Or copy the shortcode below for Classic Editor or Shortcode blocks."),onClose:()=>{eF(!1),eX(null),c.current.contentWindow.postMessage({action:"focusFrame"},bG),eM(""),eL(!1)},title:"EMBED"}),eu(eg).createElement(vo,{tabIndex:0},eu(eg).createElement("div",{className:"wizard__embed-code-block"},eu(eg).createElement("code",{className:"wizard__embed-code"},ts())),tv&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("p",{className:"wizard__embed-platform-title"},eV),eu(eg).createElement("div",{className:"wizard__embed-instructions"},eu(eg).createElement("div",{className:"wizard__embed-instructions-list"},tv.instructions?.map((e,t)=>{let r;return eu(eg).createElement("div",{key:`platform-${eV}-instruction-${t}`,className:"wizard__embed-instruction-item"},eu(eg).createElement("div",{className:"wizard__embed-instruction-number"},t+1),eu(eg).createElement("span",{className:"wizard__embed-instruction-text"},(r=be(e),()=>e=>{if(!r||!e)return r;let t=[r];return(Object.entries(e).forEach(([e,r])=>{let n=String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=RegExp(`\\[${n}\\[([^\\]]+)\\]\\]`,"g");t=t.flatMap(e=>{let t;if("string"!=typeof e)return[e];let n=[],o=0;for(a.lastIndex=0;null!==(t=a.exec(e));){t.index>o&&n.push(e.slice(o,t.index));let a="function"==typeof r?r(t[1]):r;n.push(a),o=t.index+t[0].length}return 0===o?[e]:(o<e.length&&n.push(e.slice(o)),n)})}),1===t.length)?t[0]:t.map((e,t)=>(0,eg.isValidElement)(e)?(0,eg.cloneElement)(e,{key:`tr-${t}`}):e)})()({1:e=>eu(eg).createElement("strong",{className:"wizard__embed-instruction-strong"},e)})))})))),e2&&!eK&&eu(eg).createElement("div",{className:"wizard__review-prompt",role:"region","aria-label":be("Share your experience")},eu(eg).createElement("img",{className:"wizard__review-prompt-icon",src:eu(bW),alt:"","aria-hidden":"true"}),eu(eg).createElement("p",{className:"wizard__review-prompt-title"},be("Is the widget working well for you?")),eu(eg).createElement("div",{className:"wizard__review-prompt-actions"},eu(eg).createElement("button",{type:"button",className:"wizard__review-prompt-never",onClick:()=>{b4({status:"never"}),e4(!1)}},be("Don't ask again")),eu(eg).createElement(r7,{colorStyle:"secondary",variant:"outline",onClick:()=>{b4({status:"later",remindAfter:Date.now()+2592e6}),e4(!1),window.open("https://wordpress.org/support/plugin/jotform-review-widgets-for-google/","_blank","noopener,noreferrer")}},be("Not really")),eu(eg).createElement(r7,{onClick:()=>{b4({status:"reviewed"}),e4(!1),window.open("https://wordpress.org/support/plugin/jotform-review-widgets-for-google/reviews/#new-post","_blank","noopener,noreferrer")}},be("Yes, love it"))))),eu(eg).createElement(vi,null,eu(eg).createElement(r7,{colorStyle:"success",onClick:()=>{if(clearInterval(t),navigator.clipboard.writeText(ts()),e$(!0),t=setTimeout(()=>e$(!1),2e3),n){let e=eK||v;n({state:"11",id:e?.id||r})}}},be(eU?"Copied!":"Copy Shortcode"))))),e5&&eu(eg).createElement(v4,{open:e5,onClose:()=>{e8(!1),e9(null)},ariaLabel:be("Delete Widget")},eu(eg).createElement(v5,{className:"wizard__dialog-body"},eu(eg).createElement(v8,{icon:nw,colorStyle:"error"}),eu(eg).createElement(v3,null,be("Delete Widget")),eu(eg).createElement(v9,{className:"wizard__dialog-description"},be("Are you sure you want to delete this widget? This action cannot be undone."))),eu(eg).createElement(v6,null,eu(eg).createElement(r7,{colorStyle:"secondary",variant:"outline",onClick:()=>{e8(!1),e9(null)}},be("Cancel")),eu(eg).createElement(r7,{colorStyle:"error",onClick:tm},be("Delete"))),eu(eg).createElement(v7,{onClick:()=>{e8(!1),e9(null)}})))))};yt.propTypes={user:rW.object,requiresConnection:rW.bool,widgetSlug:rW.string,widgetID:rW.string,updateState:rW.func,review_data:rW.object};let yr=({state:e="",id:t=""}={})=>{e&&fetch("https://api.jotform.com/website-widgets/updateState",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t&&{id:t},state:e})}).catch(()=>{})},yn=()=>{let e=(0,eg.useRef)(null),{apiKey:t,loading:r,unauthorized:n,handleLogout:a}=rO(),o=(0,eg.useCallback)(yr,[]);return r?eu(eg).createElement("div",{className:"jfrwg-loader-wrapper"},eu(eg).createElement("div",{className:"jfrwg-loader"}),eu(eg).createElement("strong",null,"Loading...")):n?eu(eg).createElement("div",{className:"jfrwg-first-step"},eu(eg).createElement("h2",null,"Authorization Failed"),eu(eg).createElement("p",null,"Your account cannot be authorized. Please contact your administrator.")):eu(eg).createElement(yt,{requiresConnection:!t,updateState:o,widgetWizardRef:e})};var ya=()=>eu(eg).createElement(rk,null,eu(eg).createElement(yn,null));let yo=document.getElementById("jfrwg-app");ev.createRoot?(0,ev.createRoot)(yo).render(eu(eg).createElement(ya,null)):(0,ev.render)(eu(eg).createElement(ya,null),yo)})();
     4`))}else{var f;let e=c.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>a3(t(...e),s.className):a3(t,s.className),n=or(c.props,oo(oi(s,["ref"])));for(let e in d)e in n&&delete d[e];return(0,eg.cloneElement)(c,Object.assign({},n,d,u,{ref:a((f=c,eu(eg).version.split(".")[0]>="19"?f.props.ref:f.ref),u.ref)},r?{className:r}:{}))}return(0,eg.createElement)(o,Object.assign({},oi(s,["ref"]),!ol(o)&&u,!ol(o)&&d),c)}function ot(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function or(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){for(let a of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;a(t,...n)}}});return t}function on(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){for(let n of r[e])null==n||n(...t)}});return t}function oa(e){var t;return Object.assign((0,eg.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function oo(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function oi(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function ol(e){return e===eg.Fragment||e===Symbol.for("react.fragment")}var os=((h=os||{})[h.None=1]="None",h[h.Focusable=2]="Focusable",h[h.Hidden=4]="Hidden",h);let ou=oa(function(e,t){var r;let{features:n=1,...a}=e,o={ref:t,"aria-hidden":(2&n)==2||(null!=(r=a["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return a7()({ourProps:o,theirProps:a,slot:{},defaultTag:"span",name:"Hidden"})});function oc({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=aO(()=>{var n,a;let o=ab(r),i=[];for(let t of e)null!==t&&(aA(t)?i.push(t):"current"in t&&aA(t.current)&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&aA(e)&&"headlessui-portal-root"!==e.id&&(r&&(e.contains(r)||e.contains(null==(a=null==r?void 0:r.getRootNode())?void 0:a.host))||i.some(t=>e.contains(t))||i.push(e));return i});return{resolveContainers:n,contains:aO(e=>n().some(t=>t.contains(e)))}}let od=(0,eg.createContext)(null);function of({children:e,node:t}){let[r,n]=(0,eg.useState)(null),a=op(null!=t?t:r);return eu(eg).createElement(od.Provider,{value:a},e,null===a&&eu(eg).createElement(ou,{features:os.Hidden,ref:e=>{var t,r;if(e){for(let a of null!=(r=null==(t=ab(e))?void 0:t.querySelectorAll("html > *, body > *"))?r:[])if(a!==document.body&&a!==document.head&&aA(a)&&null!=a&&a.contains(e)){n(a);break}}}}))}function op(e=null){var t;return null!=(t=(0,eg.useContext)(od))?t:e}var eg=eh("j89Fe");function oh(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let om=(G=()=>new Map,K={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:ax(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=oh(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=oh(r.meta)),this},SCROLL_PREVENT(e){let t,r={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[aQ()?{before({doc:e,d:t,meta:r}){function n(e){for(let t of r().containers)for(let r of t())if(r.contains(e))return!0;return!1}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=ax();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(aP(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),i=e.querySelector(a);aP(i)&&!n(i)&&(o=i)}catch{}},!0),t.group(r=>{t.addEventListener(e,"touchstart",e=>{var t;if(r.dispose(),aP(e.target)&&aA(t=e.target)&&"style"in t)if(n(e.target)){let t=e.target;for(;t.parentElement&&n(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(aP(e.target)&&!aM(e.target))if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;a!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var r;let n=e.documentElement;t=Math.max(0,(null!=(r=e.defaultView)?r:window).innerWidth-n.clientWidth)},after({doc:e,d:r}){let n=e.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,t-a);r.style(n,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(r)),n.forEach(({after:e})=>null==e?void 0:e(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},m=G(),g=new Set,{getSnapshot:()=>m,subscribe:e=>(g.add(e),()=>g.delete(e)),dispatch(e,...t){let r=K[e].call(m,...t);r&&(m=r,g.forEach(e=>e()))}});om.subscribe(()=>{let e=om.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&om.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&om.dispatch("TEARDOWN",r)}});var eg=eh("j89Fe");class og extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var ov=Object.defineProperty,ob=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},oy=(e,t,r)=>(ob(e,t,"read from private field"),r?r.call(e):t.get(e)),ow=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},oE=(e,t,r,n)=>(ob(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);class ox{constructor(e){ow(this,eo,{}),ow(this,ei,new og(()=>new Set)),ow(this,el,new Set),((e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ov(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r})(this,"disposables",ax()),oE(this,eo,e),av.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return oy(this,eo)}subscribe(e,t){if(av.isServer)return()=>{};let r={selector:e,callback:t,current:e(oy(this,eo))};return oy(this,el).add(r),this.disposables.add(()=>{oy(this,el).delete(r)})}on(e,t){return av.isServer?()=>{}:(oy(this,ei).get(e).add(t),this.disposables.add(()=>{oy(this,ei).get(e).delete(t)}))}send(e){let t=this.reduce(oy(this,eo),e);if(t!==oy(this,eo)){for(let e of(oE(this,eo,t),oy(this,el))){let t=e.selector(oy(this,eo));o_(e.current,t)||(e.current=t,e.callback(t))}for(let t of oy(this,ei).get(e.type))t(oy(this,eo),e)}}}function o_(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&oS(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&oS(e.entries(),t.entries()):!!(oC(e)&&oC(t))&&oS(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function oS(e,t){for(;;){let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}}function oC(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function oO(e){let[t,r]=e(),n=ax();return(...e)=>{t(...e),n.dispose(),n.microTask(r)}}eo=new WeakMap,ei=new WeakMap,el=new WeakMap;var ok=Object.defineProperty,oR=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ok(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},oj=((v=oj||{})[v.Push=0]="Push",v[v.Pop=1]="Pop",v);let oT={0(e,t){let r=t.id,n=e.stack,a=e.stack.indexOf(r);if(-1!==a){let t=e.stack.slice();return t.splice(a,1),t.push(r),n=t,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(-1===n)return e;let a=e.stack.slice();return a.splice(n,1),{...e,stack:a}}};class oF extends ox{constructor(){super(...arguments),oR(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),oR(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new oF({stack:[]})}reduce(e,t){return az(t.type,oT,e,t)}}"use strict";let oA=new og(()=>oF.new());var oN={};function oP(e,t,r=o_){return(0,oN.useSyncExternalStoreWithSelector)(aO(t=>e.subscribe(oM,t)),aO(()=>e.state),aO(()=>e.state),aO(t),r)}function oM(e){return e}function oI(e,t){let r=(0,eg.useId)(),n=oA.get(t),[a,o]=oP(n,(0,eg.useCallback)(e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)],[n,r]));return aS(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),!!e&&(!o||a)}function oL(e,t,r=()=>[document.body]){!function(e,t,r=()=>({containers:[]})){let n=(0,eg.useSyncExternalStore)(om.subscribe,om.getSnapshot,om.getSnapshot),a=t?n.get(t):void 0;a&&a.count,aS(()=>{if(!(!t||!e))return om.dispatch("PUSH",t,r),()=>om.dispatch("POP",t,r)},[e,t])}(oI(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}function oD(e){return(0,eg.useMemo)(()=>e,Object.values(e))}oN=eh("dsA22");var eg=(eh("j89Fe"),eh("j89Fe"));let oz=Symbol();function oB(e,t=!0){return Object.assign(e,{[oz]:t})}function oH(...e){let t=(0,eg.useRef)(e);(0,eg.useEffect)(()=>{t.current=e},[e]);let r=aO(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[oz]))?void 0:r}var eg=eh("j89Fe"),oU=((b=oU||{})[b.Forwards=0]="Forwards",b[b.Backwards=1]="Backwards",b);function o$(){let e=(0,eg.useRef)(0);return a2(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}var eg=(eh("j89Fe"),eh("j89Fe")),oW=((y=oW||{})[y.None=0]="None",y[y.Closed=1]="Closed",y[y.Enter=2]="Enter",y[y.Leave=4]="Leave",y);function oV(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function oq(e,t,r,n){let[a,o]=(0,eg.useState)(r),{hasFlag:i,addFlag:l,removeFlag:s}=function(e=0){let[t,r]=(0,eg.useState)(e),n=(0,eg.useCallback)(e=>r(e),[]),a=(0,eg.useCallback)(e=>r(t=>t|e),[]),o=(0,eg.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:a,hasFlag:o,removeFlag:(0,eg.useCallback)(e=>r(t=>t&~e),[]),toggleFlag:(0,eg.useCallback)(e=>r(t=>t^e),[])}}(e&&a?3:0),u=(0,eg.useRef)(!1),c=(0,eg.useRef)(!1);return aS(()=>{var a;if(e){if(r&&o(!0),!t){r&&l(3);return}return null==(a=null==n?void 0:n.start)||a.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:a}){let o=ax();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:a}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let a=ax();if(!e)return a.dispose;let o=!1;a.add(()=>{o=!0});let i=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===i.length?t():Promise.allSettled(i.map(e=>e.finished)).then(()=>{o||t()}),a.dispose}(e,n))})}),o.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,c.current||(r?(l(3),s(4)):(l(4),s(2)))},run(){c.current?r?(s(3),l(4)):(s(4),l(3)):r?s(1):l(1)},done(){var e,a,i,l;c.current&&(null!=(l=null==(i=(a=t).getAnimations)?void 0:i.call(a))?l:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(u.current=!1,s(7),r||o(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})}},[e,r,t,a_()]),e?[a,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}var eg=eh("j89Fe");let oG=(0,eg.createContext)(()=>{});function oK({value:e,children:t}){return eu(eg).createElement(oG.Provider,{value:e},t)}let oZ=Math.min,oX=Math.max,oJ=Math.round,oY=Math.floor,oQ=e=>({x:e,y:e}),o0={left:"right",right:"left",bottom:"top",top:"bottom"};function o1(e,t){return"function"==typeof e?e(t):e}function o2(e){return e.split("-")[0]}function o4(e){return e.split("-")[1]}function o5(e){return"x"===e?"y":"x"}function o8(e){return"y"===e?"height":"width"}function o3(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function o9(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let o6=["left","right"],o7=["right","left"],ie=["top","bottom"],it=["bottom","top"];function ir(e){let t=o2(e);return o0[t]+e.slice(t.length)}function ia(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function io(e,t,r){let n,{reference:a,floating:o}=e,i=o3(t),l=o5(o3(t)),s=o8(l),u=o2(t),c="y"===i,d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[s]/2-o[s]/2;switch(u){case"top":n={x:d,y:a.y-o.height};break;case"bottom":n={x:d,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:f};break;case"left":n={x:a.x-o.width,y:f};break;default:n={x:a.x,y:a.y}}switch(o4(t)){case"start":n[l]-=p*(r&&c?-1:1);break;case"end":n[l]+=p*(r&&c?-1:1)}return n}async function ii(e,t){var r,n;void 0===t&&(t={});let{x:a,y:o,platform:i,rects:l,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=o1(t,e),m="number"!=typeof(n=h)?{top:0,right:0,bottom:0,left:0,...n}:{top:n,right:n,bottom:n,left:n},g=s[p?"floating"===f?"reference":"floating":f],v=ia(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{x:a,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},E=ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:u}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}let il=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=i.detectOverflow?i:{...i,detectOverflow:ii},s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=io(u,n,s),f=n,p=0,h={};for(let r=0;r<o.length;r++){let m=o[r];if(!m)continue;let{name:g,fn:v}=m,{x:b,y:y,data:w,reset:E}=await v({x:c,y:d,initialPlacement:n,placement:f,strategy:a,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=b?b:c,d=null!=y?y:d,h[g]={...h[g],...w},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(f=E.placement),E.rects&&(u=!0===E.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):E.rects),{x:c,y:d}=io(u,f,s)),r=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}},is=new Set(["left","top"]);async function iu(e,t){let{placement:r,platform:n,elements:a}=e,o=await (null==n.isRTL?void 0:n.isRTL(a.floating)),i=o2(r),l=o4(r),s="y"===o3(r),u=is.has(i)?-1:1,c=o&&s?-1:1,d=o1(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function ic(){return"u">typeof window}function id(e){return im(e)?(e.nodeName||"").toLowerCase():"#document"}function ip(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ih(e){var t;return null==(t=(im(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function im(e){return!!ic()&&(e instanceof Node||e instanceof ip(e).Node)}function ig(e){return!!ic()&&(e instanceof Element||e instanceof ip(e).Element)}function iv(e){return!!ic()&&(e instanceof HTMLElement||e instanceof ip(e).HTMLElement)}function ib(e){return!(!ic()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ip(e).ShadowRoot)}function iy(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=ik(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function iw(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let iE=/transform|translate|scale|rotate|perspective|filter/,ix=/paint|layout|strict|content/,i_=e=>!!e&&"none"!==e;function iS(e){let t=ig(e)?ik(e):e;return i_(t.transform)||i_(t.translate)||i_(t.scale)||i_(t.rotate)||i_(t.perspective)||!iC()&&(i_(t.backdropFilter)||i_(t.filter))||iE.test(t.willChange||"")||ix.test(t.contain||"")}function iC(){return null==e&&(e="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e}function iO(e){return/^(html|body|#document)$/.test(id(e))}function ik(e){return ip(e).getComputedStyle(e)}function iR(e){return ig(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ij(e){if("html"===id(e))return e;let t=e.assignedSlot||e.parentNode||ib(e)&&e.host||ih(e);return ib(t)?t.host:t}function iT(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=ij(t);return iO(r)?t.ownerDocument?t.ownerDocument.body:t.body:iv(r)&&iy(r)?r:e(r)}(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=ip(a);if(!o)return t.concat(a,iT(a,[],r));{let e=iF(i);return t.concat(i,i.visualViewport||[],iy(a)?a:[],e&&r?iT(e):[])}}function iF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iA(e){let t=ik(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=iv(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=oJ(r)!==o||oJ(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function iN(e){return ig(e)?e:e.contextElement}function iP(e){let t=iN(e);if(!iv(t))return oQ(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:o}=iA(t),i=(o?oJ(r.width):r.width)/n,l=(o?oJ(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let iM=oQ(0);function iI(e){let t=ip(e);return iC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:iM}function iL(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=iN(e),l=oQ(1);t&&(n?ig(n)&&(l=iP(n)):l=iP(e));let s=(void 0===(a=r)&&(a=!1),n&&(!a||n===ip(i))&&a)?iI(i):oQ(0),u=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,d=o.width/l.x,f=o.height/l.y;if(i){let e=ip(i),t=n&&ig(n)?ip(n):n,r=e,a=iF(r);for(;a&&n&&t!==r;){let e=iP(a),t=a.getBoundingClientRect(),n=ik(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=i,a=iF(r=ip(a))}}return ia({width:d,height:f,x:u,y:c})}function iD(e,t){let r=iR(e).scrollLeft;return t?t.left+r:iL(ih(e)).left+r}function iz(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-iD(e,r),y:r.top+t.scrollTop}}function iB(e,t,r){var n;let a;if("viewport"===t)a=function(e,t){let r=ip(e),n=ih(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;let e=iC();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}let u=iD(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else u<=25&&(o+=u);return{width:o,height:i,x:l,y:s}}(e,r);else if("document"===t){let t,r,o,i,l,s,u;n=ih(e),t=ih(n),r=iR(n),o=n.ownerDocument.body,i=oX(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=oX(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+iD(n),u=-r.scrollTop,"rtl"===ik(o).direction&&(s+=oX(t.clientWidth,o.clientWidth)-i),a={width:i,height:l,x:s,y:u}}else if(ig(t)){let e,n,o,i,l,s;n=(e=iL(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,i=iv(t)?iP(t):oQ(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a={width:l,height:s,x:o*i.x,y:n*i.y}}else{let r=iI(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ia(a)}function iH(e){return"static"===ik(e).position}function iU(e,t){if(!iv(e)||"fixed"===ik(e).position)return null;if(t)return t(e);let r=e.offsetParent;return ih(e)===r&&(r=r.ownerDocument.body),r}function i$(e,t){var r;let n=ip(e);if(iw(e))return n;if(!iv(e)){let t=ij(e);for(;t&&!iO(t);){if(ig(t)&&!iH(t))return t;t=ij(t)}return n}let a=iU(e,t);for(;a&&(r=a,/^(table|td|th)$/.test(id(r)))&&iH(a);)a=iU(a,t);return a&&iO(a)&&iH(a)&&!iS(a)?n:a||function(e){let t=ij(e);for(;iv(t)&&!iO(t);){if(iS(t))return t;if(iw(t))break;t=ij(t)}return null}(e)||n}let iW=async function(e){let t=this.getOffsetParent||i$,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=iv(t),a=ih(t),o="fixed"===r,i=iL(e,!0,o,t),l={scrollLeft:0,scrollTop:0},s=oQ(0);if(n||!n&&!o)if(("body"!==id(t)||iy(a))&&(l=iR(t)),n){let e=iL(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=iD(a));o&&!n&&a&&(s.x=iD(a));let u=!a||n||o?oQ(0):iz(a,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},iV={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,o="fixed"===a,i=ih(n),l=!!t&&iw(t.floating);if(n===i||l&&o)return r;let s={scrollLeft:0,scrollTop:0},u=oQ(1),c=oQ(0),d=iv(n);if((d||!d&&!o)&&(("body"!==id(n)||iy(i))&&(s=iR(n)),d)){let e=iL(n);u=iP(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!i||d||o?oQ(0):iz(i,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:ih,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,o=[..."clippingAncestors"===r?iw(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=iT(e,[],!1).filter(e=>ig(e)&&"body"!==id(e)),a=null,o="fixed"===ik(e).position,i=o?ij(e):e;for(;ig(i)&&!iO(i);){let t=ik(i),r=iS(i);r||"fixed"!==t.position||(a=null),(o?r||a:!(!r&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||iy(i)&&!r&&function e(t,r){let n=ij(t);return!(n===r||!ig(n)||iO(n))&&("fixed"===ik(n).position||e(n,r))}(e,i)))?a=t:n=n.filter(e=>e!==i),i=ij(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=iB(t,o[0],a),l=i.top,s=i.right,u=i.bottom,c=i.left;for(let e=1;e<o.length;e++){let r=iB(t,o[e],a);l=oX(r.top,l),s=oZ(r.right,s),u=oZ(r.bottom,u),c=oX(r.left,c)}return{width:s-c,height:u-l,x:c,y:l}},getOffsetParent:i$,getElementRects:iW,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=iA(e);return{width:t,height:r}},getScale:iP,isElement:ig,isRTL:function(e){return"rtl"===ik(e).direction}};function iq(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iG(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=iN(e),d=o||i?[...c?iT(c):[],...t?iT(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let f=c&&s?function(e,t){let r,n=null,a=ih(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;let h={rootMargin:-oY(d)+"px "+-oY(a.clientWidth-(c+f))+"px "+-oY(a.clientHeight-(d+p))+"px "+-oY(c)+"px",threshold:oX(0,oZ(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||iq(u,e.getBoundingClientRect())||i(),m=!1}try{n=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),o}(c,r):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?iL(e):null;return u&&function t(){let n=iL(e);m&&!iq(m,n)&&r(),m=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(a)}}var eg=eh("j89Fe"),iK={};iK=ReactDOM;var iZ="u">typeof document?eg.useLayoutEffect:function(){};function iX(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!iX(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!iX(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function iJ(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iY(e,t){let r=iJ(e);return Math.round(t*r)/r}function iQ(e){let t=eg.useRef(e);return iZ(()=>{t.current=e}),t}let i0=(e,t)=>{var r;let n=(void 0===(r=e)&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:a,y:o,placement:i,middlewareData:l}=e,s=await iu(e,r);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:i}}}});return{name:n.name,fn:n.fn,options:[e,t]}};var eg=eh("j89Fe"),i1="u"<typeof Element;i1||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i1||Element.prototype.getRootNode;let i2={...eg},i4=i2.useInsertionEffect||(e=>e());function i5(e){let t=eg.useRef(()=>{});return i4(()=>{t.current=e}),eg.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}var i8="u">typeof document?eg.useLayoutEffect:eg.useEffect;let i3=!1,i9=0,i6=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+i9++,i7=i2.useId||function(){let[e,t]=eg.useState(()=>i3?i6():void 0);return i8(()=>{null==e&&t(i6())},[]),eg.useEffect(()=>{i3=!0},[]),e},le=eg.createContext(null),lt=eg.createContext(null),lr="active",ln="selected";function la(e,t,r){let n=new Map,a="item"===r,o=e;if(a&&e){let{[lr]:t,[ln]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[r,o]=t;if(!(a&&[lr,ln].includes(r)))if(0===r.indexOf("on")){if(n.has(r)||n.set(r,[]),"function"==typeof o){var i;null==(i=n.get(r))||i.push(o),e[r]=function(){for(var e,t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map(e=>e(...a)).find(e=>void 0!==e)}}}else e[r]=o}),e),{})}}function lo(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var eg=eh("j89Fe");let li=(0,eg.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});li.displayName="FloatingContext";let ll=(0,eg.createContext)(null);function ls(e){return(0,eg.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function lu(){return(0,eg.useContext)(li).setReference}function lc(){let{getFloatingProps:e,slot:t}=(0,eg.useContext)(li);return(0,eg.useCallback)((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function ld(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,eg.useContext)(ll),r=(0,eg.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);aS(()=>{null==t||t(null!=r?r:null)},[t,r]);let n=(0,eg.useContext)(li);return(0,eg.useMemo)(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}function lf({children:e,enabled:t=!0}){var r,n,a,o,i,l,s,u,c,d,f,p,h,m,g,v;let b,y,w,E,x,_,S,C,O,k,R,j,T,[F,A]=(0,eg.useState)(null),[N,P]=(0,eg.useState)(0),M=(0,eg.useRef)(null),[I,L]=(0,eg.useState)(null);aS(()=>{if(!f)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(f).maxHeight,t=parseFloat(e);if(isNaN(t))return;let r=parseInt(e);isNaN(r)||t!==r&&(f.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(f,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[f=I]);let D=t&&null!==F&&null!==I,{to:z="bottom",gap:B=0,offset:H=0,padding:U=0,inner:$}=(p=F,h=I,b=lp(null!=(m=null==p?void 0:p.gap)?m:"var(--anchor-gap, 0)",h),y=lp(null!=(g=null==p?void 0:p.offset)?g:"var(--anchor-offset, 0)",h),w=lp(null!=(v=null==p?void 0:p.padding)?v:"var(--anchor-padding, 0)",h),{...p,gap:b,offset:y,padding:w}),[W,V="center"]=z.split(" ");aS(()=>{D&&P(0)},[D]);let{refs:q,floatingStyles:G,context:K}=function(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){var t;let{open:r=!1,onOpenChange:n,elements:a}=e,o=i7(),i=eg.useRef({}),[l]=eg.useState(()=>{let e;return e=new Map,{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}),s=null!=((null==(t=eg.useContext(le))?void 0:t.id)||null),[u,c]=eg.useState(a.reference),d=i5((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),f=eg.useMemo(()=>({setPositionReference:c}),[]),p=eg.useMemo(()=>({reference:u||a.reference||null,floating:a.floating||null,domReference:a.reference}),[u,a.reference,a.floating]);return eg.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:p,events:l,floatingId:o,refs:f}),[r,d,p,l,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,a=n.elements,[o,i]=eg.useState(null),[l,s]=eg.useState(null),u=(null==a?void 0:a.domReference)||o,c=eg.useRef(null),d=eg.useContext(lt);i8(()=>{u&&(c.current=u)},[u]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,d]=eg.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eg.useState(n);iX(f,n)||p(n);let[h,m]=eg.useState(null),[g,v]=eg.useState(null),b=eg.useCallback(e=>{e!==x.current&&(x.current=e,m(e))},[]),y=eg.useCallback(e=>{e!==_.current&&(_.current=e,v(e))},[]),w=o||h,E=i||g,x=eg.useRef(null),_=eg.useRef(null),S=eg.useRef(c),C=null!=s,O=iQ(s),k=iQ(a),R=iQ(u),j=eg.useCallback(()=>{var e,n;let a,o,i;if(!x.current||!_.current)return;let l={placement:t,strategy:r,middleware:f};k.current&&(l.platform=k.current),(e=x.current,n=_.current,a=new Map,i={...(o={platform:iV,...l}).platform,_c:a},il(e,n,{...o,platform:i})).then(e=>{let t={...e,isPositioned:!1!==R.current};T.current&&!iX(S.current,t)&&(S.current=t,iK.flushSync(()=>{d(t)}))})},[f,t,r,k,R]);iZ(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let T=eg.useRef(!1);iZ(()=>(T.current=!0,()=>{T.current=!1}),[]),iZ(()=>{if(w&&(x.current=w),E&&(_.current=E),w&&E){if(O.current)return O.current(w,E,j);j()}},[w,E,j,O,C]);let F=eg.useMemo(()=>({reference:x,floating:_,setReference:b,setFloating:y}),[b,y]),A=eg.useMemo(()=>({reference:w,floating:E}),[w,E]),N=eg.useMemo(()=>{let e={position:r,left:0,top:0};if(!A.floating)return e;let t=iY(A.floating,c.x),n=iY(A.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...iJ(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,A.floating,c.x,c.y]);return eg.useMemo(()=>({...c,update:j,refs:F,elements:A,floatingStyles:N}),[c,j,F,A,N])}({...e,elements:{...a,...l&&{reference:l}}}),p=eg.useCallback(e=>{let t=ig(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),h=eg.useCallback(e=>{(ig(e)||null===e)&&(c.current=e,i(e)),(ig(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!ig(e))&&f.refs.setReference(e)},[f.refs]),m=eg.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:c}),[f.refs,h,p]),g=eg.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=eg.useMemo(()=>({...f,...n,refs:m,elements:g,nodeId:t}),[f,m,g,t,n]);return i8(()=>{n.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),eg.useMemo(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}({open:D,placement:"selection"===W?"center"===V?"bottom":`bottom-${V}`:"center"===V?`${W}`:`${W}-${V}`,strategy:"absolute",transform:!1,middleware:[i0({mainAxis:"selection"===W?0:B,crossAxis:H}),{name:(E={name:"shift",options:a=r={padding:U},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=o1(a,e),c={x:t,y:r},d=await o.detectOverflow(e,u),f=o3(o2(n)),p=o5(f),h=c[p],m=c[f];if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=h+d[e],n=h-d[t];h=oX(r,oZ(h,n))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=m+d[e],n=m-d[t];m=oX(r,oZ(m,n))}let g=s.fn({...e,[p]:h,[f]:m});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[p]:i,[f]:l}}}}}).name,fn:E.fn,options:[r,n]},"selection"!==W&&{name:(x={name:"flip",options:l=o={padding:U},async fn(e){var t,r,n,a,o,i,s,u;let c,d,f,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:v,elements:b}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...C}=o1(l,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let O=o2(p),k=o3(g),R=o2(g)===g,j=await (null==v.isRTL?void 0:v.isRTL(b.floating)),T=E||(R||!S?[ir(g)]:(c=ir(g),[o9(g),c,o9(c)])),F="none"!==_;!E&&F&&T.push(...(d=o4(g),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?o7:o6;return t?o6:o7;case"left":case"right":return t?ie:it;default:return[]}}(o2(g),"start"===_,j),d&&(f=f.map(e=>e+"-"+d),S&&(f=f.concat(f.map(o9)))),f));let A=[g,...T],N=await v.detectOverflow(e,C),P=[],M=(null==(r=h.flip)?void 0:r.overflows)||[];if(y&&P.push(N[O]),w){let e,t,r,n,a=(i=p,s=m,void 0===(u=j)&&(u=!1),e=o4(i),r=o8(t=o5(o3(i))),n="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=ir(n)),[n,ir(n)]);P.push(N[a[0]],N[a[1]])}if(M=[...M,{placement:p,overflows:P}],!P.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=A[e];if(t&&("alignment"!==w||k===o3(t)||M.every(e=>o3(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(x){case"bestFit":{let e=null==(o=M.filter(e=>{if(F){let t=o3(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(p!==r)return{reset:{placement:r}}}return{}}}).name,fn:x.fn,options:[o,i]},"selection"===W&&$?{name:"inner",options:_={...$,padding:U,overflowRef:M,offset:N,minItemsVisible:4,referenceOverflowThreshold:U,onFallbackChange(e){var t,r;if(!e)return;let n=K.elements.floating;if(!n)return;let a=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,o=Math.min(4,n.childElementCount),i=0,l=0;for(let e of null!=(r=null==(t=K.elements.floating)?void 0:t.childNodes)?r:[])if(aN(e)){let t=e.offsetTop,r=t+e.clientHeight+a,s=n.scrollTop,u=s+n.clientHeight;if(t>=s&&r<=u)o--;else{l=Math.max(0,Math.min(r,u)-Math.max(t,s)),i=e.clientHeight;break}}o>=1&&P(e=>{let t=i*o-l+a;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:r,onFallbackChange:n,offset:a=0,index:o=0,minItemsVisible:i=4,referenceOverflowThreshold:l=0,scrollRef:s,...u}=o1(_,e),{rects:c,elements:{floating:d}}=e,f=t.current[o],p=(null==s?void 0:s.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};let b={...e,...await i0(-f.offsetTop-d.clientTop-c.reference.height/2-f.offsetHeight/2-a).fn(e)},y=await ii(lo(b,p.scrollHeight+h+d.clientTop),u),w=await ii(b,{...u,elementContext:"reference"}),E=oX(0,y.top),x=b.y+E,S=(p.scrollHeight>p.clientHeight?e=>e:oJ)(oX(0,p.scrollHeight+(m&&v||g?2*h:0)-E-oX(0,y.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=E,n){let e=p.offsetHeight<f.offsetHeight*oZ(i,t.current.length)-1||w.top>=-l||w.bottom>=-l;iK.flushSync(()=>n(e))}return r&&(r.current=await ii(lo({...b,y:x},p.offsetHeight+h+d.clientTop),u)),{y:x}}}:null,{name:(S={name:"size",options:c=s={padding:U,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){var t,r;let n,a,{placement:o,rects:i,platform:l,elements:s}=e,{apply:u=()=>{},...d}=o1(c,e),f=await l.detectOverflow(e,d),p=o2(o),h=o4(o),m="y"===o3(o),{width:g,height:v}=i.floating;"top"===p||"bottom"===p?(n=p,a=h===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(a=p,n="end"===h?"top":"bottom");let b=v-f.top-f.bottom,y=g-f.left-f.right,w=oZ(v-f[n],b),E=oZ(g-f[a],y),x=!e.middlewareData.shift,_=w,S=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=y),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(_=b),x&&!h){let e=oX(f.left,0),t=oX(f.right,0),r=oX(f.top,0),n=oX(f.bottom,0);m?S=g-2*(0!==e||0!==t?e+t:oX(f.left,f.right)):_=v-2*(0!==r||0!==n?r+n:oX(f.top,f.bottom))}await u({...e,availableWidth:S,availableHeight:_});let C=await l.getDimensions(s.floating);return g!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}).name,fn:S.fn,options:[s,u]}].filter(Boolean),whileElementsMounted:iG}),[Z=W,X=V]=K.placement.split("-");"selection"===W&&(Z="selection");let J=(0,eg.useMemo)(()=>({anchor:[Z,X].filter(Boolean).join(" ")}),[Z,X]),{getReferenceProps:Y,getFloatingProps:Q}=(C=(d=[function(e,t){let{open:r,elements:n}=e,{enabled:a=!0,overflowRef:o,scrollRef:i,onChange:l}=t,s=i5(l),u=eg.useRef(!1),c=eg.useRef(null),d=eg.useRef(null);eg.useEffect(()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;let r=e.deltaY,n=o.current.top>=-.5,a=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=r<0?-1:1,u=r<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!n&&r>0||!a&&r<0)e.preventDefault(),iK.flushSync(()=>{s(e=>e+Math[u](r,i*l))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent)&&(t.scrollTop+=r)}}let t=(null==i?void 0:i.current)||n.floating;if(r&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[a,r,n.floating,o,i,s]);let f=eg.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==i?void 0:i.current)||n.floating;if(o.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&iK.flushSync(()=>s(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[n.floating,s,o,i]);return eg.useMemo(()=>a?{floating:f}:{},[a,f])}(K,{overflowRef:M,onChange:P})]).map(e=>null==e?void 0:e.reference),O=d.map(e=>null==e?void 0:e.floating),k=d.map(e=>null==e?void 0:e.item),R=eg.useCallback(e=>la(e,d,"reference"),C),j=eg.useCallback(e=>la(e,d,"floating"),O),T=eg.useCallback(e=>la(e,d,"item"),k),eg.useMemo(()=>({getReferenceProps:R,getFloatingProps:j,getItemProps:T}),[R,j,T])),ee=aO(e=>{L(e),q.setFloating(e)});return eg.createElement(ll.Provider,{value:A},eg.createElement(li.Provider,{value:{setFloating:ee,setReference:q.setReference,styles:G,getReferenceProps:Y,getFloatingProps:Q,slot:J}},e))}function lp(e,t,r){let n=a_(),a=aO((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let a=lh(e,t);return[a,r=>{let o=function e(t){let r=/var\((.*)\)/.exec(t);if(r){let t=r[1].indexOf(",");if(-1===t)return[r[1]];let n=r[1].slice(0,t).trim(),a=r[1].slice(t+1).trim();return a?[n,...e(a)]:[n]}return[]}(e);{let i=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function l(){n.nextFrame(l);let s=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(i[e]!==n){i[e]=n,s=!0;break}}if(!s)return;let u=lh(e,t);a!==u&&(r(u),a=u)})}return n.dispose}]}return[r,null]}),o=(0,eg.useMemo)(()=>a(e,t)[0],[e,t]),[i=o,l]=(0,eg.useState)();return aS(()=>{let[r,n]=a(e,t);if(l(r),n)return n(l)},[e,t]),i}function lh(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}ll.displayName="PlacementContext";var eg=eh("j89Fe");let lm=(0,eg.createContext)(null);lm.displayName="OpenClosedContext";var lg=((w=lg||{})[w.Open=1]="Open",w[w.Closed=2]="Closed",w[w.Closing=4]="Closing",w[w.Opening=8]="Opening",w);function lv(){return(0,eg.useContext)(lm)}function lb({value:e,children:t}){return eu(eg).createElement(lm.Provider,{value:e},t)}function ly({children:e}){return eu(eg).createElement(lm.Provider,{value:null},e)}function lw(e){var t;let r=e.parentElement,n=null;for(;r&&!(aN(t=r)&&"FIELDSET"===t.nodeName);)aL(r)&&(n=r),r=r.parentElement;let a=(null==r?void 0:r.getAttribute("disabled"))==="";return!(a&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(aL(t))return!1;t=t.previousElementSibling}return!0}(n))&&a}var lE=((E=lE||{}).Space=" ",E.Enter="Enter",E.Escape="Escape",E.Backspace="Backspace",E.Delete="Delete",E.ArrowLeft="ArrowLeft",E.ArrowUp="ArrowUp",E.ArrowRight="ArrowRight",E.ArrowDown="ArrowDown",E.Home="Home",E.End="End",E.PageUp="PageUp",E.PageDown="PageDown",E.Tab="Tab",E);function lx(e){let t=aO(e),r=(0,eg.useRef)(!1);(0,eg.useEffect)(()=>(r.current=!1,()=>{r.current=!0,aE(()=>{r.current&&t()})}),[t])}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let l_=(0,eg.createContext)(!1);function lS(e){return eu(eg).createElement(l_.Provider,{value:e.force},e.children)}let lC=eg.Fragment,lO=oa(function(e,t){let{ownerDocument:r=null,...n}=e,a=(0,eg.useRef)(null),o=oH(oB(e=>{a.current=e}),t),i=a5(a.current),l=function(e){let t=(0,eg.useContext)(l_),r=(0,eg.useContext)(lR),[n,a]=(0,eg.useState)(()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(av.isServer)return null;let a=null==e?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,eg.useEffect)(()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))},[n,e]),(0,eg.useEffect)(()=>{t||null!==r&&a(r.current)},[r,a,t]),n}(null!=r?r:i),s=(0,eg.useContext)(lj),u=a_(),c=a7();return lx(()=>{var e;l&&l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l))}),l?(0,iK.createPortal)(eu(eg).createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),s&&e&&u.add(s.register(e))}},c({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:lC,name:"Portal"})),l):null}),lk=eg.Fragment,lR=(0,eg.createContext)(null),lj=(0,eg.createContext)(null);function lT(){let e=(0,eg.useContext)(lj),t=(0,eg.useRef)([]),r=aO(r=>(t.current.push(r),e&&e.register(r),()=>n(r))),n=aO(r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)}),a=(0,eg.useMemo)(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,(0,eg.useMemo)(()=>function({children:e}){return eu(eg).createElement(lj.Provider,{value:a},e)},[a])]}let lF=oa(function(e,t){let r=oH(t),{enabled:n=!0,ownerDocument:a,...o}=e,i=a7();return n?eu(eg).createElement(lO,{...o,ownerDocument:a,ref:r}):i({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:lC,name:"Portal"})}),lA=oa(function(e,t){let{target:r,...n}=e,a={ref:oH(t)},o=a7();return eu(eg).createElement(lR.Provider,{value:r},o({ourProps:a,theirProps:n,defaultTag:lk,name:"Popover.Group"}))}),lN=Object.assign(lF,{Group:lA});var lP=Object.defineProperty,lM=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?lP(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},lI=((x=lI||{})[x.Open=0]="Open",x[x.Closed=1]="Closed",x),lL=((_=lL||{})[_.OpenPopover=0]="OpenPopover",_[_.ClosePopover=1]="ClosePopover",_[_.SetButton=2]="SetButton",_[_.SetButtonId=3]="SetButtonId",_[_.SetPanel=4]="SetPanel",_[_.SetPanelId=5]="SetPanelId",_);let lD={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class lz extends ox{constructor(e){super(e),lM(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?aN(e)?e:"current"in e&&aN(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),lM(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let r=null!=(t=ab(e.button))?t:document;for(let t of r.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let n=aV(r),a=n.indexOf(e.button),o=(a+n.length-1)%n.length,i=(a+1)%n.length,l=n[o],s=n[i];return!e.panel.contains(l)&&!e.panel.contains(s)}});{let e=this.state.id,t=oA.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new lz({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return az(t.type,lD,e,t)}}var eg=eh("j89Fe");let lB=(0,eg.createContext)(null);function lH(e){let t=(0,eg.useContext)(lB);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,lH),t}return t}let lU=(0,eg.createContext)(null);function l$(){return(0,eg.useContext)(lU)}lU.displayName="PopoverGroupContext";let lW=(0,eg.createContext)(null);lW.displayName="PopoverPanelContext";let lV=a9.RenderStrategy|a9.Static;function lq(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-backdrop-${r}`,transition:a=!1,...o}=e,i=lH("Popover.Backdrop"),l=oP(i,(0,eg.useCallback)(e=>e.popoverState,[])),[s,u]=(0,eg.useState)(null),c=oH(t,u),d=lv(),[f,p]=oq(a,s,null!==d?(d&lg.Open)===lg.Open:l===lI.Open),h=aO(e=>{if(lw(e.currentTarget))return e.preventDefault();i.actions.close()}),m=oD({open:l===lI.Open}),g={ref:c,id:n,"aria-hidden":!0,onClick:h,...oV(p)};return a7()({ourProps:g,theirProps:o,slot:m,defaultTag:"div",features:lV,visible:f,name:"Popover.Backdrop"})}"use strict";let lG=a9.RenderStrategy|a9.Static,lK=oa(function(e,t){var r;let n=(0,eg.useId)(),{__demoMode:a=!1,...o}=e,i=function({id:e,__demoMode:t=!1}){let r=(0,eg.useMemo)(()=>lz.new({id:e,__demoMode:t}),[]);return lx(()=>r.dispose()),r}({id:n,__demoMode:a}),l=(0,eg.useRef)(null),s=oH(t,oB(e=>{l.current=e})),[u,c,d,f,p]=oP(i,(0,eg.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),h=function(...e){return(0,eg.useMemo)(()=>ay(...e),[...e])}(null!=(r=l.current)?r:c),m=aC(f),g=aC(p),v=(0,eg.useMemo)(()=>({buttonId:m,panelId:g,close:i.actions.close}),[m,g,i]),b=l$(),y=null==b?void 0:b.registerPopover,w=aO(()=>{var e,t;let r=aw(null!=(e=l.current)?e:c);return null!=(t=null==b?void 0:b.isFocusWithinPopoverGroup())?t:r&&((null==c?void 0:c.contains(r))||(null==d?void 0:d.contains(r)))});(0,eg.useEffect)(()=>null==y?void 0:y(v),[y,v]);let[E,x]=lT(),_=op(c),S=oc({mainTreeNode:_,portals:E,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});aT(h,"focus",e=>{var t,r,n,a,o,l;e.target!==window&&aP(e.target)&&i.state.popoverState===lI.Open&&(w()||i.state.button&&i.state.panel&&(S.contains(e.target)||null!=(r=null==(t=i.state.beforePanelSentinel.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(a=null==(n=i.state.afterPanelSentinel.current)?void 0:n.contains)&&a.call(n,e.target)||null!=(l=null==(o=i.state.afterButtonSentinel.current)?void 0:o.contains)&&l.call(o,e.target)||i.actions.close()))},!0),a4(u===lI.Open,S.resolveContainers,(e,t)=>{i.actions.close(),aG(t,aq.Loose)||(e.preventDefault(),null==c||c.focus())});let C=oD({open:u===lI.Open,close:i.actions.refocusableClose}),O=oP(i,(0,eg.useCallback)(e=>az(e.popoverState,{[lI.Open]:lg.Open,[lI.Closed]:lg.Closed}),[])),k=a7();return eu(eg).createElement(of,{node:_},eu(eg).createElement(lf,null,eu(eg).createElement(lW.Provider,{value:null},eu(eg).createElement(lB.Provider,{value:i},eu(eg).createElement(oK,{value:i.actions.refocusableClose},eu(eg).createElement(lb,{value:O},eu(eg).createElement(x,null,k({ourProps:{ref:s},theirProps:o,slot:C,defaultTag:"div",name:"Popover"}))))))))}),lZ=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-button-${r}`,disabled:a=!1,autoFocus:o=!1,...i}=e,l=lH("Popover.Button"),[s,u,c,d,f,p,h]=oP(l,(0,eg.useCallback)(e=>[e.popoverState,l.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),m=(0,eg.useRef)(null),g=`headlessui-focus-sentinel-${(0,eg.useId)()}`,v=l$(),b=null==v?void 0:v.closeOthers,y=null!==(0,eg.useContext)(lW);(0,eg.useEffect)(()=>{if(!y)return l.actions.setButtonId(n),()=>l.actions.setButtonId(null)},[y,n,l]);let[w]=(0,eg.useState)(()=>Symbol()),E=oH(m,t,lu(),aO(e=>{if(!y){if(e)l.state.buttons.current.push(w);else{let e=l.state.buttons.current.indexOf(w);-1!==e&&l.state.buttons.current.splice(e,1)}l.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&l.actions.setButton(e)}})),x=oH(m,t),_=aO(e=>{var t,r,n;if(y){if(l.state.popoverState===lI.Closed)return;switch(e.key){case lE.Space:case lE.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),l.actions.close(),null==(n=l.state.button)||n.focus()}}else switch(e.key){case lE.Space:case lE.Enter:e.preventDefault(),e.stopPropagation(),l.state.popoverState===lI.Closed?(null==b||b(l.state.buttonId),l.actions.open()):l.actions.close();break;case lE.Escape:if(l.state.popoverState!==lI.Open)return null==b?void 0:b(l.state.buttonId);if(!m.current)return;let a=aw(m.current);if(a&&!m.current.contains(a))return;e.preventDefault(),e.stopPropagation(),l.actions.close()}}),S=aO(e=>{y||e.key===lE.Space&&e.preventDefault()}),C=aO(e=>{var t,r;lw(e.currentTarget)||a||(y?(l.actions.close(),null==(t=l.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),l.state.popoverState===lI.Closed?(null==b||b(l.state.buttonId),l.actions.open()):l.actions.close(),null==(r=l.state.button)||r.focus()))}),O=aO(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:k,focusProps:R}=au({autoFocus:o}),{isHovered:j,hoverProps:T}=ah({isDisabled:a}),{pressed:F,pressProps:A}=ak({disabled:a}),N=s===lI.Open,P=oD({open:N,active:F||N,disabled:a,hover:j,focus:k,autofocus:o}),M=a8(e,c),I=y?on({ref:x,type:M,onKeyDown:_,onClick:C,disabled:a||void 0,autoFocus:o},R,T,A):on({ref:E,id:d,type:M,"aria-expanded":s===lI.Open,"aria-controls":f?p:void 0,disabled:a||void 0,autoFocus:o,onKeyDown:_,onKeyUp:S,onClick:C,onMouseDown:O},R,T,A),L=o$(),D=aO(()=>{if(!aN(l.state.panel))return;let e=l.state.panel;az(L.current,{[oU.Forwards]:()=>aY(e,aU.First),[oU.Backwards]:()=>aY(e,aU.Last)})===a$.Error&&aY(aV(ay(l.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),az(L.current,{[oU.Forwards]:aU.Next,[oU.Backwards]:aU.Previous}),{relativeTo:l.state.button})}),z=a7();return eu(eg).createElement(eu(eg).Fragment,null,z({ourProps:I,theirProps:i,slot:P,defaultTag:"button",name:"Popover.Button"}),N&&!y&&u&&eu(eg).createElement(ou,{id:g,ref:h,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:D}))}),lX=oa(lq),lJ=oa(lq),lY=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-popover-panel-${r}`,focus:a=!1,anchor:o,portal:i=!1,modal:l=!1,transition:s=!1,...u}=e,c=lH("Popover.Panel"),d=oP(c,c.selectors.isPortalled),[f,p,h,m,g]=oP(c,(0,eg.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),v=`headlessui-focus-sentinel-before-${r}`,b=`headlessui-focus-sentinel-after-${r}`,y=(0,eg.useRef)(null),w=ls(o),[E,x]=ld(w),_=lc();w&&(i=!0);let[S,C]=(0,eg.useState)(null),O=oH(y,t,w?E:null,c.actions.setPanel,C),k=a5(p),R=a5(y.current);aS(()=>(c.actions.setPanelId(n),()=>c.actions.setPanelId(null)),[n,c]);let j=lv(),[T,F]=oq(s,S,null!==j?(j&lg.Open)===lg.Open:f===lI.Open);aD(T,p,c.actions.close),oL(!h&&l&&T,R);let A=aO(e=>{var t;if(e.key===lE.Escape){if(c.state.popoverState!==lI.Open||!y.current)return;let r=aw(y.current);if(r&&!y.current.contains(r))return;e.preventDefault(),e.stopPropagation(),c.actions.close(),null==(t=c.state.button)||t.focus()}});(0,eg.useEffect)(()=>{var t;e.static||f===lI.Closed&&(null==(t=e.unmount)||t)&&c.actions.setPanel(null)},[f,e.unmount,e.static,c]),(0,eg.useEffect)(()=>{if(h||!a||f!==lI.Open||!y.current)return;let e=aw(y.current);y.current.contains(e)||aY(y.current,aU.First)},[h,a,y.current,f]);let N=oD({open:f===lI.Open,close:c.actions.refocusableClose}),P=on(w?_():{},{ref:O,id:n,onKeyDown:A,onBlur:a&&f===lI.Open?e=>{var t,r,n,a,o;let i=e.relatedTarget;i&&y.current&&(null!=(t=y.current)&&t.contains(i)||(c.actions.close(),(null!=(n=null==(r=m.current)?void 0:r.contains)&&n.call(r,i)||null!=(o=null==(a=g.current)?void 0:a.contains)&&o.call(a,i))&&i.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...x,"--button-width":aj(T,p,!0).width},...oV(F)}),M=o$(),I=aO(()=>{let e=y.current;e&&az(M.current,{[oU.Forwards]:()=>{var t;aY(e,aU.First)===a$.Error&&(null==(t=c.state.afterPanelSentinel.current)||t.focus())},[oU.Backwards]:()=>{var e;null==(e=c.state.button)||e.focus({preventScroll:!0})}})}),L=aO(()=>{let e=y.current;e&&az(M.current,{[oU.Forwards]:()=>{var e;if(!c.state.button)return;let t=aV(null!=(e=ay(c.state.button))?e:document.body),r=t.indexOf(c.state.button),n=t.slice(0,r+1),a=[...t.slice(r+1),...n];for(let e of a.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=S&&S.contains(e)){let t=a.indexOf(e);-1!==t&&a.splice(t,1)}aY(a,aU.First,{sorted:!1})},[oU.Backwards]:()=>{var t;aY(e,aU.Previous)===a$.Error&&(null==(t=c.state.button)||t.focus())}})}),D=a7();return eu(eg).createElement(ly,null,eu(eg).createElement(lW.Provider,{value:n},eu(eg).createElement(oK,{value:c.actions.refocusableClose},eu(eg).createElement(lN,{enabled:!!i&&(e.static||T),ownerDocument:k},T&&d&&eu(eg).createElement(ou,{id:v,ref:m,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),D({ourProps:P,theirProps:u,slot:N,defaultTag:"div",features:lG,visible:T,name:"Popover.Panel"}),T&&d&&eu(eg).createElement(ou,{id:b,ref:g,features:os.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:L})))))}),lQ=Object.assign(lK,{Button:lZ,Backdrop:lJ,Overlay:lX,Panel:lY,Group:oa(function(e,t){let r=(0,eg.useRef)(null),n=oH(r,t),[a,o]=(0,eg.useState)([]),i=aO(e=>{o(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),l=aO(e=>(o(t=>[...t,e]),()=>i(e))),s=aO(()=>{var e;let t=ay(r.current);if(!t)return!1;let n=aw(r.current);return!!(null!=(e=r.current)&&e.contains(n))||a.some(e=>{var r,a;return(null==(r=t.getElementById(e.buttonId.current))?void 0:r.contains(n))||(null==(a=t.getElementById(e.panelId.current))?void 0:a.contains(n))})}),u=aO(e=>{for(let t of a)t.buttonId.current!==e&&t.close()}),c=(0,eg.useMemo)(()=>({registerPopover:l,unregisterPopover:i,isFocusWithinPopoverGroup:s,closeOthers:u}),[l,i,s,u]),d=oD({}),f=a7();return eu(eg).createElement(of,null,eu(eg).createElement(lU.Provider,{value:c},f({ourProps:{ref:n},theirProps:e,slot:d,defaultTag:"div",name:"Popover.Group"})))})});"use strict";var eg=eh("j89Fe"),l0={};Object.defineProperty(l0,"__esModule",{value:!0}),l0.ReactCSS=l0.loop=l0.handleActive=l0.handleHover=l0.hover=void 0;var l1={};Object.defineProperty(l1,"__esModule",{value:!0}),l1.flattenNames=void 0;var l2={},l4={},l5=eh("dGOyA");l4=l5.Symbol;var l8={},l3=Object.prototype,l9=l3.hasOwnProperty,l6=l3.toString,l7=l4?l4.toStringTag:void 0;l8=function(e){var t=l9.call(e,l7),r=e[l7];try{e[l7]=void 0;var n=!0}catch(e){}var a=l6.call(e);return n&&(t?e[l7]=r:delete e[l7]),a};var se={},st=Object.prototype.toString;se=function(e){return st.call(e)};var sr=l4?l4.toStringTag:void 0;l2=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sr&&sr in Object(e)?l8(e):se(e)};var sn={};sn=Array.isArray;var sa={};sa=function(e){return null!=e&&"object"==typeof e};var so=cZ(function(e){return"string"==typeof e||!sn(e)&&sa(e)&&"[object String]"==l2(e)}),si={},sl={},ss={};ss=function(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),l=i.length;l--;){var s=i[e?l:++a];if(!1===r(o[s],s,o))break}return t}}();var su={},sc={},sd={};sd=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var sf={},sp={};sp=function(e){return sa(e)&&"[object Arguments]"==l2(e)};var sh=Object.prototype,sm=sh.hasOwnProperty,sg=sh.propertyIsEnumerable;sf=sp(function(){return arguments}())?sp:function(e){return sa(e)&&sm.call(e,"callee")&&!sg.call(e,"callee")};var sv=eh("gDKMC"),sb={},sy=/^(?:0|[1-9]\d*)$/;sb=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&sy.test(e))&&e>-1&&e%1==0&&e<t};var sw={},sE={},sx={};sx=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var s_={};s_["[object Float32Array]"]=s_["[object Float64Array]"]=s_["[object Int8Array]"]=s_["[object Int16Array]"]=s_["[object Int32Array]"]=s_["[object Uint8Array]"]=s_["[object Uint8ClampedArray]"]=s_["[object Uint16Array]"]=s_["[object Uint32Array]"]=!0,s_["[object Arguments]"]=s_["[object Array]"]=s_["[object ArrayBuffer]"]=s_["[object Boolean]"]=s_["[object DataView]"]=s_["[object Date]"]=s_["[object Error]"]=s_["[object Function]"]=s_["[object Map]"]=s_["[object Number]"]=s_["[object Object]"]=s_["[object RegExp]"]=s_["[object Set]"]=s_["[object String]"]=s_["[object WeakMap]"]=!1,sE=function(e){return sa(e)&&sx(e.length)&&!!s_[l2(e)]};var sS={};sS=function(e){return function(t){return e(t)}};var sC=eh("esndt"),sO=sC&&sC.isTypedArray;sw=sO?sS(sO):sE;var sk=Object.prototype.hasOwnProperty;sc=function(e,t){var r=sn(e),n=!r&&sf(e),a=!r&&!n&&sv(e),o=!r&&!n&&!a&&sw(e),i=r||n||a||o,l=i?sd(e.length,String):[],s=l.length;for(var u in e)(t||sk.call(e,u))&&!(i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||sb(u,s)))&&l.push(u);return l};var sR={},sj={},sT=Object.prototype;sj=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||sT)};var sF={},sA={};sF=(sA=function(e,t){return function(r){return e(t(r))}})(Object.keys,Object);var sN=Object.prototype.hasOwnProperty;sR=function(e){if(!sj(e))return sF(e);var t=[];for(var r in Object(e))sN.call(e,r)&&"constructor"!=r&&t.push(r);return t};var sP={},sM={},sI={};sI=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},sM=function(e){if(!sI(e))return!1;var t=l2(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sP=function(e){return null!=e&&sx(e.length)&&!sM(e)},su=function(e){return sP(e)?sc(e):sR(e)},sl=function(e,t){return e&&ss(e,t,su)};var sL={},sD={};sD=function(e){return e},sL=function(e){return"function"==typeof e?e:sD};var sz=cZ(si=function(e,t){return e&&sl(e,sL(t))}),sB={};sB=sA(Object.getPrototypeOf,Object);var sH=Object.prototype,sU=Function.prototype.toString,s$=sH.hasOwnProperty,sW=sU.call(Object),sV=cZ(function(e){if(!sa(e)||"[object Object]"!=l2(e))return!1;var t=sB(e);if(null===t)return!0;var r=s$.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&sU.call(r)==sW}),sq={};sq=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a};var sG={},sK={},sZ={},sX={},sJ={},sY={};sY=function(){this.__data__=[],this.size=0};var sQ={},s0={},s1={};s1=function(e,t){return e===t||e!=e&&t!=t},s0=function(e,t){for(var r=e.length;r--;)if(s1(e[r][0],t))return r;return -1};var s2=Array.prototype.splice;sQ=function(e){var t=this.__data__,r=s0(t,e);return!(r<0)&&(r==t.length-1?t.pop():s2.call(t,r,1),--this.size,!0)};var s4={};s4=function(e){var t=this.__data__,r=s0(t,e);return r<0?void 0:t[r][1]};var s5={};s5=function(e){return s0(this.__data__,e)>-1};var s8={};function s3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s8=function(e,t){var r=this.__data__,n=s0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},s3.prototype.clear=sY,s3.prototype.delete=sQ,s3.prototype.get=s4,s3.prototype.has=s5,s3.prototype.set=s8,sJ=s3;var s9={};s9=function(){this.__data__=new sJ,this.size=0};var s6={};s6=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var s7={};s7=function(e){return this.__data__.get(e)};var ue={};ue=function(e){return this.__data__.has(e)};var ut={},ur={},un={},ua={},uo={},ui={},l5=eh("dGOyA");ui=l5["__core-js_shared__"];var ul=(Z=/[^.]+$/.exec(ui&&ui.keys&&ui.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";uo=function(e){return!!ul&&ul in e};var us={},uu=Function.prototype.toString;us=function(e){if(null!=e){try{return uu.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var uc=/^\[object .+?Constructor\]$/,ud=Object.prototype,uf=Function.prototype.toString,up=ud.hasOwnProperty,uh=RegExp("^"+uf.call(up).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");ua=function(e){return!(!sI(e)||uo(e))&&(sM(e)?uh:uc).test(us(e))};var um={};um=function(e,t){return null==e?void 0:e[t]},un=function(e,t){var r=um(e,t);return ua(r)?r:void 0};var l5=eh("dGOyA");ur=un(l5,"Map");var ug={},uv={},ub={},uy={},uw={};uw=un(Object,"create"),uy=function(){this.__data__=uw?uw(null):{},this.size=0};var uE={};uE=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var ux={},u_=Object.prototype.hasOwnProperty;ux=function(e){var t=this.__data__;if(uw){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return u_.call(t,e)?t[e]:void 0};var uS={},uC=Object.prototype.hasOwnProperty;uS=function(e){var t=this.__data__;return uw?void 0!==t[e]:uC.call(t,e)};var uO={};function uk(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uO=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=uw&&void 0===t?"__lodash_hash_undefined__":t,this},uk.prototype.clear=uy,uk.prototype.delete=uE,uk.prototype.get=ux,uk.prototype.has=uS,uk.prototype.set=uO,ub=uk,uv=function(){this.size=0,this.__data__={hash:new ub,map:new(ur||sJ),string:new ub}};var uR={},uj={},uT={};uT=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},uj=function(e,t){var r=e.__data__;return uT(t)?r["string"==typeof t?"string":"hash"]:r.map},uR=function(e){var t=uj(this,e).delete(e);return this.size-=!!t,t};var uF={};uF=function(e){return uj(this,e).get(e)};var uA={};uA=function(e){return uj(this,e).has(e)};var uN={};function uP(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function uM(e){var t=this.__data__=new sJ(e);this.size=t.size}uN=function(e,t){var r=uj(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},uP.prototype.clear=uv,uP.prototype.delete=uR,uP.prototype.get=uF,uP.prototype.has=uA,uP.prototype.set=uN,ug=uP,ut=function(e,t){var r=this.__data__;if(r instanceof sJ){var n=r.__data__;if(!ur||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ug(n)}return r.set(e,t),this.size=r.size,this},uM.prototype.clear=s9,uM.prototype.delete=s6,uM.prototype.get=s7,uM.prototype.has=ue,uM.prototype.set=ut,sX=uM;var uI={},uL={},uD={},uz={},uB={};uB=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var uH={};function uU(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ug;++t<r;)this.add(e[t])}uH=function(e){return this.__data__.has(e)},uU.prototype.add=uU.prototype.push=uB,uU.prototype.has=uH,uz=uU;var u$={};u$=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var uW={};uW=function(e,t){return e.has(t)},uD=function(e,t,r,n,a,o){var i=1&r,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new uz:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var h=e[d],m=t[d];if(n)var g=i?n(m,h,d,t,e,o):n(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!u$(t,function(e,t){if(!uW(p,t)&&(h===e||a(h,e,r,n,o)))return p.push(t)})){f=!1;break}}else if(!(h===m||a(h,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f};var uV={},uq={},l5=eh("dGOyA");uq=l5.Uint8Array;var uG={};uG=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var uK={};uK=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var uZ=l4?l4.prototype:void 0,uX=uZ?uZ.valueOf:void 0;uV=function(e,t,r,n,a,o,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new uq(e),new uq(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return s1(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=uG;case"[object Set]":var s=1&n;if(l||(l=uK),e.size!=t.size&&!s)break;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=uD(l(e),l(t),n,a,o,i);return i.delete(e),c;case"[object Symbol]":if(uX)return uX.call(e)==uX.call(t)}return!1};var uJ={},uY={},uQ={},u0={};u0=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},uQ=function(e,t,r){var n=t(e);return sn(e)?n:u0(n,r(e))};var u1={},u2={};u2=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o};var u4={};u4=function(){return[]};var u5=Object.prototype.propertyIsEnumerable,u8=Object.getOwnPropertySymbols;u1=u8?function(e){return null==e?[]:(e=Object(e),u2(u8(e),function(t){return u5.call(e,t)}))}:u4,uY=function(e){return uQ(e,su,u1)};var u3=Object.prototype.hasOwnProperty;uJ=function(e,t,r,n,a,o){var i=1&r,l=uY(e),s=l.length;if(s!=uY(t).length&&!i)return!1;for(var u=s;u--;){var c=l[u];if(!(i?c in t:u3.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++u<s;){var m=e[c=l[u]],g=t[c];if(n)var v=i?n(g,m,c,t,e,o):n(m,g,c,e,t,o);if(!(void 0===v?m===g||a(m,g,r,n,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p};var u9={},u6={},l5=eh("dGOyA");u6=un(l5,"DataView");var u7={},l5=eh("dGOyA");u7=un(l5,"Promise");var ce={},l5=eh("dGOyA");ce=un(l5,"Set");var ct={},l5=eh("dGOyA");ct=un(l5,"WeakMap");var cr="[object Map]",cn="[object Promise]",ca="[object Set]",co="[object WeakMap]",ci="[object DataView]",cl=us(u6),cs=us(ur),cu=us(u7),cc=us(ce),cd=us(ct),cf=l2;(u6&&cf(new u6(new ArrayBuffer(1)))!=ci||ur&&cf(new ur)!=cr||u7&&cf(u7.resolve())!=cn||ce&&cf(new ce)!=ca||ct&&cf(new ct)!=co)&&(cf=function(e){var t=l2(e),r="[object Object]"==t?e.constructor:void 0,n=r?us(r):"";if(n)switch(n){case cl:return ci;case cs:return cr;case cu:return cn;case cc:return ca;case cd:return co}return t}),u9=cf;var sv=eh("gDKMC"),cp="[object Arguments]",ch="[object Array]",cm="[object Object]",cg=Object.prototype.hasOwnProperty;uL=function(e,t,r,n,a,o){var i=sn(e),l=sn(t),s=i?ch:u9(e),u=l?ch:u9(t);s=s==cp?cm:s,u=u==cp?cm:u;var c=s==cm,d=u==cm,f=s==u;if(f&&sv(e)){if(!sv(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new sX),i||sw(e)?uD(e,t,r,n,a,o):uV(e,t,s,r,n,a,o);if(!(1&r)){var p=c&&cg.call(e,"__wrapped__"),h=d&&cg.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new sX),a(m,g,r,n,o)}}return!!f&&(o||(o=new sX),uJ(e,t,r,n,a,o))},uI=function e(t,r,n,a,o){return t===r||(null!=t&&null!=r&&(sa(t)||sa(r))?uL(t,r,n,a,e,o):t!=t&&r!=r)},sZ=function(e,t,r,n){var a=r.length,o=a,i=!n;if(null==e)return!o;for(e=Object(e);a--;){var l=r[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var s=(l=r[a])[0],u=e[s],c=l[1];if(i&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new sX;if(n)var f=n(u,c,s,e,t,d);if(!(void 0===f?uI(c,u,3,n,d):f))return!1}}return!0};var cv={},cb={};cb=function(e){return e==e&&!sI(e)},cv=function(e){for(var t=su(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cb(a)]}return t};var cy={};cy=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},sK=function(e){var t=cv(e);return 1==t.length&&t[0][2]?cy(t[0][0],t[0][1]):function(r){return r===e||sZ(r,e,t)}};var cw={},cE={},cx={},c_={},cS={},cC={};cC=function(e){return"symbol"==typeof e||sa(e)&&"[object Symbol]"==l2(e)};var cO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ck=/^\w*$/;cS=function(e,t){if(sn(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||cC(e))||ck.test(e)||!cO.test(e)||null!=t&&e in Object(t)};var cR={},cj={};function cT(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(cT.Cache||ug),r}cT.Cache=ug,cj=cT;var cF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cA=/\\(\\)?/g;cR=function(e){var t=cj(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(cF,function(e,r,n,a){t.push(n?a.replace(cA,"$1"):r||e)}),t});var cN={},cP={},cM=1/0,cI=l4?l4.prototype:void 0,cL=cI?cI.toString:void 0;cP=function e(t){if("string"==typeof t)return t;if(sn(t))return sq(t,e)+"";if(cC(t))return cL?cL.call(t):"";var r=t+"";return"0"==r&&1/t==-cM?"-0":r},cN=function(e){return null==e?"":cP(e)},c_=function(e,t){return sn(e)?e:cS(e,t)?[e]:cR(cN(e))};var cD={},cz=1/0;cD=function(e){if("string"==typeof e||cC(e))return e;var t=e+"";return"0"==t&&1/e==-cz?"-0":t},cx=function(e,t){t=c_(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[cD(t[r++])];return r&&r==n?e:void 0},cE=function(e,t,r){var n=null==e?void 0:cx(e,t);return void 0===n?r:n};var cB={},cH={};cH=function(e,t){return null!=e&&t in Object(e)};var cU={};cU=function(e,t,r){t=c_(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=cD(t[n]);if(!(o=null!=e&&r(e,i)))break;e=e[i]}return o||++n!=a?o:!!(a=null==e?0:e.length)&&sx(a)&&sb(i,a)&&(sn(e)||sf(e))},cB=function(e,t){return null!=e&&cU(e,t,cH)},cw=function(e,t){return cS(e)&&cb(t)?cy(cD(e),t):function(r){var n=cE(r,e);return void 0===n&&n===t?cB(r,e):uI(t,n,3)}};var c$={},cW={};cW=function(e){return function(t){return null==t?void 0:t[e]}};var cV={};cV=function(e){return function(t){return cx(t,e)}},c$=function(e){return cS(e)?cW(cD(e)):cV(e)},sG=function(e){return"function"==typeof e?e:null==e?sD:"object"==typeof e?sn(e)?cw(e[0],e[1]):sK(e):c$(e)};var cq={},cG={};cG=function(e,t){return function(r,n){if(null==r)return r;if(!sP(r))return e(r,n);for(var a=r.length,o=t?a:-1,i=Object(r);(t?o--:++o<a)&&!1!==n(i[o],o,i););return r}}(sl),cq=function(e,t){var r=-1,n=sP(e)?Array(e.length):[];return cG(e,function(e,a,o){n[++r]=t(e,a,o)}),n};var cK=cZ(function(e,t){return(sn(e)?sq:cq)(e,sG(t,3))});function cZ(e){return e&&e.__esModule?e:{default:e}}"use strict";var cX=l1.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[];return(0,cK.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return r.push(e)}):(0,sV.default)(t)?(0,sz.default)(t,function(e,t){!0===e&&r.push(t),r.push(t+"-"+e)}):(0,so.default)(t)&&r.push(t)}),r};l1.default=cX;var cJ=d8(l1),cY={};Object.defineProperty(cY,"__esModule",{value:!0}),cY.mergeClasses=void 0;var cQ=dI(si),c0={},c1={};c1=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var c2={},c4={},c5={};c5=function(){try{var e=un(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),c4=function(e,t,r){"__proto__"==t&&c5?c5(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var c8=Object.prototype.hasOwnProperty;c2=function(e,t,r){var n=e[t];c8.call(e,t)&&s1(n,r)&&(void 0!==r||t in e)||c4(e,t,r)};var c3={},c9={};c9=function(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=n?n(r[l],e[l],l,r,e):void 0;void 0===s&&(s=e[l]),a?c4(r,l,s):c2(r,l,s)}return r},c3=function(e,t){return e&&c9(t,su(t),e)};var c6={},c7={},de={},dt={};dt=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var dr=Object.prototype.hasOwnProperty;de=function(e){if(!sI(e))return dt(e);var t=sj(e),r=[];for(var n in e)"constructor"==n&&(t||!dr.call(e,n))||r.push(n);return r},c7=function(e){return sP(e)?sc(e,!0):de(e)},c6=function(e,t){return e&&c9(t,c7(t),e)};var dn=eh("3BlhU"),da={};da=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var di={};di=function(e,t){return c9(e,u1(e),t)};var dl={},ds={};ds=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)u0(t,u1(e)),e=sB(e);return t}:u4,dl=function(e,t){return c9(e,ds(e),t)};var du={};du=function(e){return uQ(e,c7,ds)};var dc={},dd=Object.prototype.hasOwnProperty;dc=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&dd.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var df={},dp={};dp=function(e){var t=new e.constructor(e.byteLength);return new uq(t).set(new uq(e)),t};var dh={};dh=function(e,t){var r=t?dp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var dm={},dg=/\w*$/;dm=function(e){var t=new e.constructor(e.source,dg.exec(e));return t.lastIndex=e.lastIndex,t};var dv={},db=l4?l4.prototype:void 0,dy=db?db.valueOf:void 0;dv=function(e){return dy?Object(dy.call(e)):{}};var dw={};dw=function(e,t){var r=t?dp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},df=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return dp(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return dh(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dw(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return dm(e);case"[object Symbol]":return dv(e)}};var dE={},dx={},d_=Object.create;dx=function(){function e(){}return function(t){if(!sI(t))return{};if(d_)return d_(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dE=function(e){return"function"!=typeof e.constructor||sj(e)?{}:dx(sB(e))};var sv=eh("gDKMC"),dS={},dC={};dC=function(e){return sa(e)&&"[object Map]"==u9(e)};var sC=eh("esndt"),dO=sC&&sC.isMap;dS=dO?sS(dO):dC;var dk={},dR={};dR=function(e){return sa(e)&&"[object Set]"==u9(e)};var sC=eh("esndt"),dj=sC&&sC.isSet;dk=dj?sS(dj):dR;var dT="[object Arguments]",dF="[object Function]",dA="[object Object]",dN={};dN[dT]=dN["[object Array]"]=dN["[object ArrayBuffer]"]=dN["[object DataView]"]=dN["[object Boolean]"]=dN["[object Date]"]=dN["[object Float32Array]"]=dN["[object Float64Array]"]=dN["[object Int8Array]"]=dN["[object Int16Array]"]=dN["[object Int32Array]"]=dN["[object Map]"]=dN["[object Number]"]=dN[dA]=dN["[object RegExp]"]=dN["[object Set]"]=dN["[object String]"]=dN["[object Symbol]"]=dN["[object Uint8Array]"]=dN["[object Uint8ClampedArray]"]=dN["[object Uint16Array]"]=dN["[object Uint32Array]"]=!0,dN["[object Error]"]=dN[dF]=dN["[object WeakMap]"]=!1,c0=function e(t,r,n,a,o,i){var l,s=1&r,u=2&r,c=4&r;if(n&&(l=o?n(t,a,o,i):n(t)),void 0!==l)return l;if(!sI(t))return t;var d=sn(t);if(d){if(l=dc(t),!s)return da(t,l)}else{var f=u9(t),p=f==dF||"[object GeneratorFunction]"==f;if(sv(t))return dn(t,s);if(f==dA||f==dT||p&&!o){if(l=u||p?{}:dE(t),!s)return u?dl(t,c6(l,t)):di(t,c3(l,t))}else{if(!dN[f])return o?t:{};l=df(t,f,s)}}i||(i=new sX);var h=i.get(t);if(h)return h;i.set(t,l),dk(t)?t.forEach(function(a){l.add(e(a,r,n,a,t,i))}):dS(t)&&t.forEach(function(a,o){l.set(o,e(a,r,n,o,t,i))});var m=c?u?du:uY:u?c7:su,g=d?void 0:m(t);return c1(g||t,function(a,o){g&&(a=t[o=a]),c2(l,o,e(a,r,n,o,t,i))}),l};var dP=dI(function(e){return c0(e,5)}),dM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function dI(e){return e&&e.__esModule?e:{default:e}}"use strict";var dL=cY.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.default&&(0,dP.default)(e.default)||{};return t.map(function(t){var n=e[t];return n&&(0,cQ.default)(n,function(e,t){r[t]||(r[t]={}),r[t]=dM({},r[t],n[t])}),t}),r};cY.default=dL;var dD=d8(cY),dz={};Object.defineProperty(dz,"__esModule",{value:!0}),dz.autoprefix=void 0;"use strict";var dB=(z=si)&&z.__esModule?z:{default:z},dH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dU={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var r=t[e];return r||{extend:e}}},d$=dz.autoprefix=function(e){var t={};return(0,dB.default)(e,function(e,r){var n={};(0,dB.default)(e,function(e,t){var r=dU[t];r?n=dH({},n,r(e)):n[t]=e}),t[r]=n}),t};dz.default=d$;var dW=d8(dz),dV={};Object.defineProperty(dV,"__esModule",{value:!0}),dV.hover=void 0;var dq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),dG=(B=eg)&&B.__esModule?B:{default:B};function dK(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}"use strict";var dZ=dV.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",r=dG.default.Component;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var r,a,o,i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return a=o=dK(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(l))),o.state={hover:!1},o.handleMouseOver=function(){return o.setState({hover:!0})},o.handleMouseOut=function(){return o.setState({hover:!1})},o.render=function(){return dG.default.createElement(t,{onMouseOver:o.handleMouseOver,onMouseOut:o.handleMouseOut},dG.default.createElement(e,dq({},o.props,o.state)))},dK(o,a)}return n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r),n};dV.default=dZ;var dX=d8(dV),dJ={};Object.defineProperty(dJ,"__esModule",{value:!0}),dJ.active=void 0;var dY=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),dQ=(H=eg)&&H.__esModule?H:{default:H};function d0(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}"use strict";var d1=dJ.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span",r=dQ.default.Component;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var r,a,o,i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return a=o=d0(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(l))),o.state={active:!1},o.handleMouseDown=function(){return o.setState({active:!0})},o.handleMouseUp=function(){return o.setState({active:!1})},o.render=function(){return dQ.default.createElement(t,{onMouseDown:o.handleMouseDown,onMouseUp:o.handleMouseUp},dQ.default.createElement(e,dY({},o.props,o.state)))},d0(o,a)}return n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r),n};dJ.default=d1;var d2=d8(dJ),d4={};Object.defineProperty(d4,"__esModule",{value:!0}),d4.default=function(e,t){var r={},n=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];r[e]=t};return 0===e&&n("first-child"),e===t-1&&n("last-child"),(0===e||e%2==0)&&n("even"),1===Math.abs(e%2)&&n("odd"),n("nth-child",e),r};var d5=d8(d4);function d8(e){return e&&e.__esModule?e:{default:e}}l0.hover=dX.default,l0.handleHover=dX.default,l0.handleActive=d2.default,l0.loop=d5.default;var d3=l0.ReactCSS=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=(0,cJ.default)(r),o=(0,dD.default)(e,a);return(0,dW.default)(o)};l0.default=d3;var eg=eh("j89Fe"),d9=function(e,t,r,n,a){var o=a.clientWidth,i=a.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(a.getBoundingClientRect().left+window.pageXOffset),c=s-(a.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var d=void 0;if(d=c<0?0:c>i?1:Math.round(100*c/i)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(n!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null},eg=eh("j89Fe"),d6={},d7=function(e,t,r,n){if("u"<typeof document&&!n)return null;var a=n?new n:document.createElement("canvas");a.width=2*r,a.height=2*r;var o=a.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,a.width,a.height),o.fillStyle=t,o.fillRect(0,0,r,r),o.translate(r,r),o.fillRect(0,0,r,r),a.toDataURL()):null},fe=function(e,t,r,n){var a=e+"-"+t+"-"+r+(n?"-server":"");if(d6[a])return d6[a];var o=d7(e,t,r,n);return d6[a]=o,o},ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr=function(e){var t=e.white,r=e.grey,n=e.size,a=e.renderers,o=e.borderRadius,i=e.boxShadow,l=e.children,s=eu(l0)({default:{grid:{borderRadius:o,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+fe(t,r,n,a.canvas)+") center left"}}});return(0,eg.isValidElement)(l)?eu(eg).cloneElement(l,ft({},l.props,{style:ft({},l.props.style,s.grid)})):eu(eg).createElement("div",{style:s.grid})};fr.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function fo(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var fi=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r,n,a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=fo(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleChange=function(e){var t=d9(e,n.props.hsl,n.props.direction,n.props.a,n.container);t&&"function"==typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},fo(n,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),fa(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,r=eu(l0)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:fn({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return eu(eg).createElement("div",{style:r.alpha},eu(eg).createElement("div",{style:r.checkboard},eu(eg).createElement(fr,{renderers:this.props.renderers})),eu(eg).createElement("div",{style:r.gradient}),eu(eg).createElement("div",{style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("div",{style:r.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:r.slider}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fl=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),fs=[38,40],fu=1,fc=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(e){r.setUpdatedValue(e.target.value,e)},r.handleKeyDown=function(e){var t,n=Number(String(e.target.value).replace(/%/g,""));if(!isNaN(n)&&(t=e.keyCode,fs.indexOf(t)>-1)){var a=r.getArrowOffset(),o=38===e.keyCode?n+a:n-a;r.setUpdatedValue(o,e)}},r.handleDrag=function(e){if(r.props.dragLabel){var t=Math.round(r.props.value+e.movementX);t>=0&&t<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(t),e)}},r.handleMouseDown=function(e){r.props.dragLabel&&(e.preventDefault(),r.handleDrag(e),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+fu++,r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),fl(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){var t,r;return t={},r=this.props.label,r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var r=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(r,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=eu(l0)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return eu(eg).createElement("div",{style:t.wrap},eu(eg).createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?eu(eg).createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fd=function(e,t,r,n){var a=n.clientWidth,o=n.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(c=u<0?359:u>o?0:360*(-(100*u/o)+100)/100,r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var d=void 0;if(d=s<0?0:s>a?359:100*s/a*360/100,r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},ff=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function fp(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var fh=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r,n,a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=n=fp(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.handleChange=function(e){var t=fd(e,n.props.direction,n.props.hsl,n.container);t&&"function"==typeof n.props.onChange&&n.props.onChange(t,e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},fp(n,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),ff(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,r=void 0===t?"horizontal":t,n=eu(l0)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(100*this.props.hsl.h/360)+100+"%"}}},{vertical:"vertical"===r});return eu(eg).createElement("div",{style:n.hue},eu(eg).createElement("div",{className:"hue-"+r,style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),eu(eg).createElement("div",{style:n.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:n.slider}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),fm=function(e,t){return e===t||e!=e&&t!=t},fg=function(e,t){for(var r=e.length;r--;)if(fm(e[r][0],t))return r;return -1},fv=Array.prototype.splice;function fb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fb.prototype.clear=function(){this.__data__=[],this.size=0},fb.prototype.delete=function(e){var t=this.__data__,r=fg(t,e);return!(r<0)&&(r==t.length-1?t.pop():fv.call(t,r,1),--this.size,!0)},fb.prototype.get=function(e){var t=this.__data__,r=fg(t,e);return r<0?void 0:t[r][1]},fb.prototype.has=function(e){return fg(this.__data__,e)>-1},fb.prototype.set=function(e,t){var r=this.__data__,n=fg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var fy=eh("bItha"),fw=fy.default.Symbol,fE=Object.prototype,fx=fE.hasOwnProperty,f_=fE.toString,fS=fw?fw.toStringTag:void 0,fC=function(e){var t=fx.call(e,fS),r=e[fS];try{e[fS]=void 0;var n=!0}catch(e){}var a=f_.call(e);return n&&(t?e[fS]=r:delete e[fS]),a},fO=Object.prototype.toString,fk=fw?fw.toStringTag:void 0,fR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":fk&&fk in Object(e)?fC(e):fO.call(e)},fj=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},fT=function(e){if(!fj(e))return!1;var t=fR(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},fy=eh("bItha"),fF=fy.default["__core-js_shared__"],fA=(X=/[^.]+$/.exec(fF&&fF.keys&&fF.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",fN=Function.prototype.toString,fP=function(e){if(null!=e){try{return fN.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fM=/^\[object .+?Constructor\]$/,fI=Object.prototype,fL=Function.prototype.toString,fD=fI.hasOwnProperty,fz=RegExp("^"+fL.call(fD).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fB=function(e){return!!fj(e)&&(!fA||!(fA in e))&&(fT(e)?fz:fM).test(fP(e))},fH=function(e,t){var r=null==e?void 0:e[t];return fB(r)?r:void 0},fy=eh("bItha"),fU=fH(fy.default,"Map"),f$=fH(Object,"create"),fW=Object.prototype.hasOwnProperty,fV=Object.prototype.hasOwnProperty;function fq(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fq.prototype.clear=function(){this.__data__=f$?f$(null):{},this.size=0},fq.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},fq.prototype.get=function(e){var t=this.__data__;if(f$){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return fW.call(t,e)?t[e]:void 0},fq.prototype.has=function(e){var t=this.__data__;return f$?void 0!==t[e]:fV.call(t,e)},fq.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=f$&&void 0===t?"__lodash_hash_undefined__":t,this};var fG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fK=function(e,t){var r=e.__data__;return fG(t)?r["string"==typeof t?"string":"hash"]:r.map};function fZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function fX(e){var t=this.__data__=new fb(e);this.size=t.size}fZ.prototype.clear=function(){this.size=0,this.__data__={hash:new fq,map:new(fU||fb),string:new fq}},fZ.prototype.delete=function(e){var t=fK(this,e).delete(e);return this.size-=!!t,t},fZ.prototype.get=function(e){return fK(this,e).get(e)},fZ.prototype.has=function(e){return fK(this,e).has(e)},fZ.prototype.set=function(e,t){var r=fK(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},fX.prototype.clear=function(){this.__data__=new fb,this.size=0},fX.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},fX.prototype.get=function(e){return this.__data__.get(e)},fX.prototype.has=function(e){return this.__data__.has(e)},fX.prototype.set=function(e,t){var r=this.__data__;if(r instanceof fb){var n=r.__data__;if(!fU||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fZ(n)}return r.set(e,t),this.size=r.size,this};var fJ=function(){try{var e=fH(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),fY=function(e,t,r){"__proto__"==t&&fJ?fJ(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},fQ=function(e,t,r){(void 0===r||fm(e[t],r))&&(void 0!==r||t in e)||fY(e,t,r)},f0=function(e,t,r){for(var n=-1,a=Object(e),o=r(e),i=o.length;i--;){var l=o[++n];if(!1===t(a[l],l,a))break}return e},f1=eh("jrilK"),fy=eh("bItha"),f2=fy.default.Uint8Array,f4=function(e){var t=new e.constructor(e.byteLength);return new f2(t).set(new f2(e)),t},f5=function(e,t){var r=t?f4(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},f8=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},f3=Object.create,f9=function(){function e(){}return function(t){if(!fj(t))return{};if(f3)return f3(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),f6=function(e,t){return function(r){return e(t(r))}},f7=f6(Object.getPrototypeOf,Object),pe=Object.prototype,pt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pe)},pr=function(e){return null!=e&&"object"==typeof e},pn=function(e){return pr(e)&&"[object Arguments]"==fR(e)},pa=Object.prototype,po=pa.hasOwnProperty,pi=pa.propertyIsEnumerable,pl=pn(function(){return arguments}())?pn:function(e){return pr(e)&&po.call(e,"callee")&&!pi.call(e,"callee")},ps=Array.isArray,pu=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},pc=function(e){return null!=e&&pu(e.length)&&!fT(e)},pd=eh("aMh1P"),pf=Object.prototype,pp=Function.prototype.toString,ph=pf.hasOwnProperty,pm=pp.call(Object),pg=function(e){if(!pr(e)||"[object Object]"!=fR(e))return!1;var t=f7(e);if(null===t)return!0;var r=ph.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&pp.call(r)==pm},pv={};pv["[object Float32Array]"]=pv["[object Float64Array]"]=pv["[object Int8Array]"]=pv["[object Int16Array]"]=pv["[object Int32Array]"]=pv["[object Uint8Array]"]=pv["[object Uint8ClampedArray]"]=pv["[object Uint16Array]"]=pv["[object Uint32Array]"]=!0,pv["[object Arguments]"]=pv["[object Array]"]=pv["[object ArrayBuffer]"]=pv["[object Boolean]"]=pv["[object DataView]"]=pv["[object Date]"]=pv["[object Error]"]=pv["[object Function]"]=pv["[object Map]"]=pv["[object Number]"]=pv["[object Object]"]=pv["[object RegExp]"]=pv["[object Set]"]=pv["[object String]"]=pv["[object WeakMap]"]=!1;var pb=eh("2BT6i"),py=pb.default&&pb.default.isTypedArray,pw=py?function(e){return py(e)}:function(e){return pr(e)&&pu(e.length)&&!!pv[fR(e)]},pE=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},px=Object.prototype.hasOwnProperty,p_=function(e,t,r){var n=e[t];px.call(e,t)&&fm(n,r)&&(void 0!==r||t in e)||fY(e,t,r)},pS=function(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=n?n(r[l],e[l],l,r,e):void 0;void 0===s&&(s=e[l]),a?fY(r,l,s):p_(r,l,s)}return r},pC=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},pd=eh("aMh1P"),pO=/^(?:0|[1-9]\d*)$/,pk=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&pO.test(e))&&e>-1&&e%1==0&&e<t},pR=Object.prototype.hasOwnProperty,pj=function(e,t){var r=ps(e),n=!r&&pl(e),a=!r&&!n&&(0,pd.default)(e),o=!r&&!n&&!a&&pw(e),i=r||n||a||o,l=i?pC(e.length,String):[],s=l.length;for(var u in e)(t||pR.call(e,u))&&!(i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pk(u,s)))&&l.push(u);return l},pT=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},pF=Object.prototype.hasOwnProperty,pA=function(e){if(!fj(e))return pT(e);var t=pt(e),r=[];for(var n in e)"constructor"==n&&(t||!pF.call(e,n))||r.push(n);return r},pN=function(e){return pc(e)?pj(e,!0):pA(e)},pP=function(e,t,r,n,a,o,i){var l=pE(e,r),s=pE(t,r),u=i.get(s);if(u)return void fQ(e,r,u);var c=o?o(l,s,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=ps(s),p=!f&&(0,pd.default)(s),h=!f&&!p&&pw(s);(c=s,f||p||h)?ps(l)?c=l:pr(l)&&pc(l)?c=f8(l):p?(d=!1,c=(0,f1.default)(s,!0)):h?(d=!1,c=f5(s,!0)):c=[]:pg(s)||pl(s)?(c=l,pl(l))?c=pS(l,pN(l)):(!fj(l)||fT(l))&&(c="function"!=typeof s.constructor||pt(s)?{}:f9(f7(s))):d=!1}d&&(i.set(s,c),a(c,s,n,o,i),i.delete(s)),fQ(e,r,c)},pM=function e(t,r,n,a,o){t!==r&&f0(r,function(i,l){if(o||(o=new fX),fj(i))pP(t,r,l,n,e,a,o);else{var s=a?a(pE(t,l),i,l+"",t,r,o):void 0;void 0===s&&(s=i),fQ(t,l,s)}},pN)},pI=function(e){return e},pL=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},pD=Math.max,pz=Date.now,pB=(J=fJ?function(e,t){return fJ(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:pI,Y=0,Q=0,function(){var e=pz(),t=16-(e-Q);if(Q=e,t>0){if(++Y>=800)return arguments[0]}else Y=0;return J.apply(void 0,arguments)}),pH=function(e,t,r){if(!fj(r))return!1;var n=typeof t;return("number"==n?!!(pc(r)&&pk(t,r.length)):"string"==n&&t in r)&&fm(r[t],e)},pU=(ee=function(e,t,r){pM(e,t,r)},pB((U=function(e,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(a=ee.length>3&&"function"==typeof a?(n--,a):void 0,o&&pH(t[0],t[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++r<n;){var i=t[r];i&&ee(e,i,r,a)}return e},W=pD(void 0===(W=$)?U.length-1:W,0),function(){for(var e=arguments,t=-1,r=pD(e.length-W,0),n=Array(r);++t<r;)n[t]=e[W+t];t=-1;for(var a=Array(W+1);++t<W;)a[t]=e[t];return a[W]=pI(n),pL(U,this,a)}),U+"")),p$=function(e){var t=e.zDepth,r=e.radius,n=e.background,a=e.children,o=e.styles,i=eu(l0)(pU({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:r,background:n}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},void 0===o?{}:o),{"zDepth-1":1===t});return eu(eg).createElement("div",{style:i.wrap},eu(eg).createElement("div",{style:i.bg}),eu(eg).createElement("div",{style:i.content},a))};p$.propTypes={background:eu(rW).string,zDepth:eu(rW).oneOf([0,1,2,3,4,5]),radius:eu(rW).number,styles:eu(rW).object},p$.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var eg=eh("j89Fe"),fy=eh("bItha"),pW=function(){return fy.default.Date.now()},pV=/\s/,pq=function(e){for(var t=e.length;t--&&pV.test(e.charAt(t)););return t},pG=/^\s+/,pK=function(e){return"symbol"==typeof e||pr(e)&&"[object Symbol]"==fR(e)},pZ=0/0,pX=/^[-+]0x[0-9a-f]+$/i,pJ=/^0b[01]+$/i,pY=/^0o[0-7]+$/i,pQ=parseInt,p0=function(e){if("number"==typeof e)return e;if(pK(e))return pZ;if(fj(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=fj(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,pq(t)+1).replace(pG,""):t;var n=pJ.test(e);return n||pY.test(e)?pQ(e.slice(2),n?2:8):pX.test(e)?pZ:+e},p1=Math.max,p2=Math.min,p4=function(e,t,r){var n,a,o,i,l,s,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=n,o=a;return n=a=void 0,u=t,i=e.apply(o,r)}function h(e){var r=e-s,n=e-u;return void 0===s||r>=t||r<0||d&&n>=o}function m(){var e,r,n,a=pW();if(h(a))return g(a);l=setTimeout(m,(e=a-s,r=a-u,n=t-e,d?p2(n,o-r):n))}function g(e){return(l=void 0,f&&n)?p(e):(n=a=void 0,i)}function v(){var e,r=pW(),o=h(r);if(n=arguments,a=this,s=r,o){if(void 0===l)return u=e=s,l=setTimeout(m,t),c?p(e):i;if(d)return clearTimeout(l),l=setTimeout(m,t),p(s)}return void 0===l&&(l=setTimeout(m,t)),i}return t=p0(t)||0,fj(r)&&(c=!!r.leading,o=(d="maxWait"in r)?p1(p0(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,n=s=a=l=void 0},v.flush=function(){return void 0===l?i:g(pW())},v},p5=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return fj(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),p4(e,t,{leading:n,maxWait:t,trailing:a})},p8=function(e,t,r){var n=r.getBoundingClientRect(),a=n.width,o=n.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>a&&(s=a),u<0?u=0:u>o&&(u=o);var c=s/a,d=1-u/o;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}},p3=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p9=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(e){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,p8(e,r.props.hsl,r.container),e)},r.handleMouseDown=function(e){r.handleChange(e);var t=r.getContainerRenderWindow();t.addEventListener("mousemove",r.handleChange),t.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=p5(function(e,t,r){e(t,r)},50),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),p3(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},r=t.color,n=t.white,a=t.black,o=t.pointer,i=t.circle,l=eu(l0)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(100*this.props.hsv.v)+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:n,black:a,pointer:o,circle:i}},{custom:!!this.props.style});return eu(eg).createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},eu(eg).createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),eu(eg).createElement("div",{style:l.white,className:"saturation-white"},eu(eg).createElement("div",{style:l.black,className:"saturation-black"}),eu(eg).createElement("div",{style:l.pointer},this.props.pointer?eu(eg).createElement(this.props.pointer,this.props):eu(eg).createElement("div",{style:l.circle}))))}}]),t}(eg.PureComponent||eg.Component),eg=eh("j89Fe"),p6=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},p7=f6(Object.keys,Object),he=Object.prototype.hasOwnProperty,ht=function(e){if(!pt(e))return p7(e);var t=[];for(var r in Object(e))he.call(e,r)&&"constructor"!=r&&t.push(r);return t},hr=function(e){return pc(e)?pj(e):ht(e)},hn=(et=function(e,t){return e&&f0(e,t,hr)},function(e,t){if(null==e)return e;if(!pc(e))return et(e,t);for(var r=e.length,n=-1,a=Object(e);++n<r&&!1!==t(a[n],n,a););return e}),ha=function(e,t){return(ps(e)?p6:hn)(e,"function"==typeof t?t:pI)},ho={};ho=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t,r,n,a=/^\s+/,o=/\s+$/;function i(t,r){if(r=r||{},(t=t||"")instanceof i)return t;if(!(this instanceof i))return new i(t,r);var n,l,s,u,c,d,f,p,h,m,g,v,b,y,w,E,x,S,k,j,F=(l={r:0,g:0,b:0},s=1,u=null,c=null,d=null,f=!1,p=!1,"string"==typeof(n=t)&&(n=function(e){e=e.replace(a,"").replace(o,"").toLowerCase();var t,r=!1;if(_[e])e=_[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=A.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=A.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=A.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=A.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=A.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=A.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=A.hex8.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:R(t[4])/255,format:r?"name":"hex8"}:(t=A.hex6.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:r?"name":"hex"}:(t=A.hex4.exec(e))?{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:R(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=A.hex3.exec(e))&&{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:r?"name":"hex"}}(n)),"object"==e(n)&&(N(n.r)&&N(n.g)&&N(n.b)?(h=n.r,m=n.g,g=n.b,l={r:255*O(h,255),g:255*O(m,255),b:255*O(g,255)},f=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):N(n.h)&&N(n.s)&&N(n.v)?(u=T(n.s),c=T(n.v),v=n.h,b=u,y=c,v=6*O(v,360),b=O(b,100),y=O(y,100),w=Math.floor(v),E=v-w,x=y*(1-b),S=y*(1-E*b),k=y*(1-(1-E)*b),l={r:255*[y,S,x,x,k,y][j=w%6],g:255*[k,y,y,S,x,x][j],b:255*[x,x,k,y,y,S][j]},f=!0,p="hsv"):N(n.h)&&N(n.s)&&N(n.l)&&(u=T(n.s),d=T(n.l),l=function(e,t,r){var n,a,o;function i(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=O(e,360),t=O(t,100),r=O(r,100),0===t)n=a=o=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=i(s,l,e+1/3),a=i(s,l,e),o=i(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(n.h,u,d),f=!0,p="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=C(s),{ok:f,format:n.format||p,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s});this._originalInput=t,this._r=F.r,this._g=F.g,this._b=F.b,this._a=F.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||F.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=F.ok}function l(e,t,r){e=O(e,255);var n,a,o=Math.max(e,t=O(t,255),r=O(r,255)),i=Math.min(e,t,r),l=(o+i)/2;if(o==i)n=a=0;else{var s=o-i;switch(a=l>.5?s/(2-o-i):s/(o+i),o){case e:n=(t-r)/s+6*(t<r);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,l:l}}function s(e,t,r){e=O(e,255);var n,a=Math.max(e,t=O(t,255),r=O(r,255)),o=Math.min(e,t,r),i=a-o;if(a==o)n=0;else{switch(a){case e:n=(t-r)/i+6*(t<r);break;case t:n=(r-e)/i+2;break;case r:n=(e-t)/i+4}n/=6}return{h:n,s:0===a?0:i/a,v:a}}function u(e,t,r,n){var a=[j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function c(e,t,r,n){return[j(F(n)),j(Math.round(e).toString(16)),j(Math.round(t).toString(16)),j(Math.round(r).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.s-=t/100,r.s=k(r.s),i(r)}function f(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.s+=t/100,r.s=k(r.s),i(r)}function p(e){return i(e).desaturate(100)}function h(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.l+=t/100,r.l=k(r.l),i(r)}function m(e,t){t=0===t?0:t||10;var r=i(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),i(r)}function g(e,t){t=0===t?0:t||10;var r=i(e).toHsl();return r.l-=t/100,r.l=k(r.l),i(r)}function v(e,t){var r=i(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,i(r)}function b(e){var t=i(e).toHsl();return t.h=(t.h+180)%360,i(t)}function y(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=i(e).toHsl(),n=[i(e)],a=360/t,o=1;o<t;o++)n.push(i({h:(r.h+o*a)%360,s:r.s,l:r.l}));return n}function w(e){var t=i(e).toHsl(),r=t.h;return[i(e),i({h:(r+72)%360,s:t.s,l:t.l}),i({h:(r+216)%360,s:t.s,l:t.l})]}function E(e,t,r){t=t||6,r=r||30;var n=i(e).toHsl(),a=360/r,o=[i(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(i(n));return o}function x(e,t){t=t||6;for(var r=i(e).toHsv(),n=r.h,a=r.s,o=r.v,l=[],s=1/t;t--;)l.push(i({h:n,s:a,v:o})),o=(o+s)%1;return l}i.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,a,o,i;return t=this._r,r=this._g,n=this._b,a=this._a,o=e,i=[j(Math.round(t).toString(16)),j(Math.round(r).toString(16)),j(Math.round(n).toString(16)),j(F(a))],o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*O(this._r,255))+"%",g:Math.round(100*O(this._g,255))+"%",b:Math.round(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%)":"rgba("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+c(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=i(e);r="#"+c(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},i.fromRatio=function(t,r){if("object"==e(t)){var n={};for(var a in t)t.hasOwnProperty(a)&&("a"===a?n[a]=t[a]:n[a]=T(t[a]));t=n}return i(t,r)},i.equals=function(e,t){return!!e&&!!t&&i(e).toRgbString()==i(t).toRgbString()},i.random=function(){return i.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},i.mix=function(e,t,r){r=0===r?0:r||50;var n=i(e).toRgb(),a=i(t).toRgb(),o=r/100;return i({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},i.readability=function(e,t){var r=i(e),n=i(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},i.isReadable=function(e,t,r){var n,a,o,l,s,u=i.readability(e,t);switch(s=!1,(a=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(n.size||"small").toLowerCase(),"AA"!==a&&"AAA"!==a&&(a="AA"),"small"!==o&&"large"!==o&&(o="small"),l={level:a,size:o}).level+l.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},i.mostReadable=function(e,t,r){var n,a,o,l,s=null,u=0;a=(r=r||{}).includeFallbackColors,o=r.level,l=r.size;for(var c=0;c<t.length;c++)(n=i.readability(e,t[c]))>u&&(u=n,s=i(t[c]));return i.isReadable(e,s,{level:o,size:l})||!a?s:(r.includeFallbackColors=!1,i.mostReadable(e,["#fff","#000"],r))};var _=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=i.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(_);function C(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function O(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,a="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function k(e){return Math.min(1,Math.max(0,e))}function R(e){return parseInt(e,16)}function j(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function F(e){return Math.round(255*parseFloat(e)).toString(16)}var A=(r="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+r),rgba:RegExp("rgba"+n),hsl:RegExp("hsl"+r),hsla:RegExp("hsla"+n),hsv:RegExp("hsv"+r),hsva:RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function N(e){return!!A.CSS_UNIT.exec(e)}return i}();var hi=function(e){var t=0,r=0;return ha(["r","g","b","a","h","s","l","v"],function(n){e[n]&&(t+=1,isNaN(e[n])||(r+=1),("s"===n||"l"===n)&&/^\d+%$/.test(e[n])&&(r+=1))}),t===r&&e},hl=function(e,t){var r=e.hex?eu(ho)(e.hex):eu(ho)(e),n=r.toHsl(),a=r.toHsv(),o=r.toRgb(),i=r.toHex();return 0===n.s&&(n.h=t||0,a.h=t||0),{hsl:n,hex:"000000"===i&&0===o.a?"transparent":"#"+i,rgb:o,hsv:a,oldHue:e.h||t||n.h,source:e.source}},hs=function(e){if("transparent"===e)return!0;var t=+("#"===String(e).charAt(0));return e.length!==4+t&&e.length<7+t&&eu(ho)(e).isValid()},hu=function(e){if(!e)return"#fff";var t=hl(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},hc=function(e,t){var r=e.replace("°","");return eu(ho)(t+" ("+r+")")._ok},hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hf=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),hp=function(e){var t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function r(e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.handleChange=function(e,r){if(hi(e)){var n=hl(e,e.h||t.state.oldHue);t.setState(n),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,n,r),t.props.onChange&&t.props.onChange(n,r)}},t.handleSwatchHover=function(e,r){if(hi(e)){var n=hl(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(n,r)}},t.state=hd({},hl(e.color,0)),t.debounce=p4(function(e,t,r){e(t,r)},100),t}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t),hf(r,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),eu(eg).createElement(e,hd({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return hd({},hl(e.color,t.oldHue))}}]),r}(eg.PureComponent||eg.Component);return t.propTypes=hd({},e.propTypes),t.defaultProps=hd({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},eg=eh("j89Fe"),hh=eh("eK6Iq"),hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hg=(0,hh.handleFocus)(function(e){var t=e.color,r=e.style,n=e.onClick,a=void 0===n?function(){}:n,o=e.onHover,i=e.title,l=void 0===i?t:i,s=e.children,u=e.focus,c=e.focusStyle,d="transparent"===t,f=eu(l0)({default:{swatch:hm({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,u?void 0===c?{}:c:{})}}),p={};return o&&(p.onMouseOver=function(e){return o(t,e)}),eu(eg).createElement("div",hm({style:f.swatch,onClick:function(e){return a(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},p),s,d&&eu(eg).createElement(fr,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}),eg=eh("j89Fe"),hv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hb=function(e){var t=e.rgb,r=e.hsl,n=e.width,a=e.height,o=e.onChange,i=e.direction,l=e.style,s=e.renderers,u=e.pointer,c=e.className,d=eu(l0)({default:{picker:{position:"relative",width:n,height:a},alpha:{radius:"2px",style:l}}});return eu(eg).createElement("div",{style:d.picker,className:"alpha-picker "+(void 0===c?"":c)},eu(eg).createElement(fi,hv({},d.alpha,{rgb:t,hsl:r,pointer:u,renderers:s,onChange:o,direction:i})))};hb.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,r=eu(l0)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return eu(eg).createElement("div",{style:r.picker})}},hp(hb);var eg=(eh("j89Fe"),eh("j89Fe")),hy=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a};function hw(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new fZ;++t<r;)this.add(e[t])}hw.prototype.add=hw.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},hw.prototype.has=function(e){return this.__data__.has(e)};var hE=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},hx=function(e,t,r,n,a,o){var i=1&r,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new hw:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var h=e[d],m=t[d];if(n)var g=i?n(m,h,d,t,e,o):n(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!hE(t,function(e,t){if(!p.has(t)&&(h===e||a(h,e,r,n,o)))return p.push(t)})){f=!1;break}}else if(!(h===m||a(h,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f},h_=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},hS=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},hC=fw?fw.prototype:void 0,hO=hC?hC.valueOf:void 0,hk=function(e,t,r,n,a,o,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!o(new f2(e),new f2(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return fm(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=h_;case"[object Set]":var s=1&n;if(l||(l=hS),e.size!=t.size&&!s)break;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=hx(l(e),l(t),n,a,o,i);return i.delete(e),c;case"[object Symbol]":if(hO)return hO.call(e)==hO.call(t)}return!1},hR=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},hj=function(e,t,r){var n=t(e);return ps(e)?n:hR(n,r(e))},hT=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o},hF=Object.prototype.propertyIsEnumerable,hA=Object.getOwnPropertySymbols,hN=hA?function(e){return null==e?[]:hT(hA(e=Object(e)),function(t){return hF.call(e,t)})}:function(){return[]},hP=function(e){return hj(e,hr,hN)},hM=Object.prototype.hasOwnProperty,hI=function(e,t,r,n,a,o){var i=1&r,l=hP(e),s=l.length;if(s!=hP(t).length&&!i)return!1;for(var u=s;u--;){var c=l[u];if(!(i?c in t:hM.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=i;++u<s;){var m=e[c=l[u]],g=t[c];if(n)var v=i?n(g,m,c,t,e,o):n(m,g,c,e,t,o);if(!(void 0===v?m===g||a(m,g,r,n,o):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p},fy=eh("bItha"),hL=fH(fy.default,"DataView"),fy=eh("bItha"),hD=fH(fy.default,"Promise"),fy=eh("bItha"),hz=fH(fy.default,"Set"),fy=eh("bItha"),hB=fH(fy.default,"WeakMap"),hH="[object Map]",hU="[object Promise]",h$="[object Set]",hW="[object WeakMap]",hV="[object DataView]",hq=fP(hL),hG=fP(fU),hK=fP(hD),hZ=fP(hz),hX=fP(hB),hJ=fR;(hL&&hJ(new hL(new ArrayBuffer(1)))!=hV||fU&&hJ(new fU)!=hH||hD&&hJ(hD.resolve())!=hU||hz&&hJ(new hz)!=h$||hB&&hJ(new hB)!=hW)&&(hJ=function(e){var t=fR(e),r="[object Object]"==t?e.constructor:void 0,n=r?fP(r):"";if(n)switch(n){case hq:return hV;case hG:return hH;case hK:return hU;case hZ:return h$;case hX:return hW}return t});var hY=hJ,pd=eh("aMh1P"),hQ="[object Arguments]",h0="[object Array]",h1="[object Object]",h2=Object.prototype.hasOwnProperty,h4=function(e,t,r,n,a,o){var i=ps(e),l=ps(t),s=i?h0:hY(e),u=l?h0:hY(t);s=s==hQ?h1:s,u=u==hQ?h1:u;var c=s==h1,d=u==h1,f=s==u;if(f&&(0,pd.default)(e)){if(!(0,pd.default)(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new fX),i||pw(e)?hx(e,t,r,n,a,o):hk(e,t,s,r,n,a,o);if(!(1&r)){var p=c&&h2.call(e,"__wrapped__"),h=d&&h2.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new fX),a(m,g,r,n,o)}}return!!f&&(o||(o=new fX),hI(e,t,r,n,a,o))},h5=function e(t,r,n,a,o){return t===r||(null!=t&&null!=r&&(pr(t)||pr(r))?h4(t,r,n,a,e,o):t!=t&&r!=r)},h8=function(e,t,r,n){var a=r.length,o=a,i=!n;if(null==e)return!o;for(e=Object(e);a--;){var l=r[a];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var s=(l=r[a])[0],u=e[s],c=l[1];if(i&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new fX;if(n)var f=n(u,c,s,e,t,d);if(!(void 0===f?h5(c,u,3,n,d):f))return!1}}return!0},h3=function(e){return e==e&&!fj(e)},h9=function(e){for(var t=hr(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,h3(a)]}return t},h6=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},h7=function(e){var t=h9(e);return 1==t.length&&t[0][2]?h6(t[0][0],t[0][1]):function(r){return r===e||h8(r,e,t)}},me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,mr=function(e,t){if(ps(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||pK(e))||mt.test(e)||!me.test(e)||null!=t&&e in Object(t)};function mn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(mn.Cache||fZ),r}mn.Cache=fZ;var ma=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mo=/\\(\\)?/g,mi=(en=(er=mn(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ma,function(e,r,n,a){t.push(n?a.replace(mo,"$1"):r||e)}),t},function(e){return 500===en.size&&en.clear(),e})).cache,er),ml=1/0,ms=fw?fw.prototype:void 0,mu=ms?ms.toString:void 0,mc=function e(t){if("string"==typeof t)return t;if(ps(t))return hy(t,e)+"";if(pK(t))return mu?mu.call(t):"";var r=t+"";return"0"==r&&1/t==-ml?"-0":r},md=function(e,t){return ps(e)?e:mr(e,t)?[e]:mi(null==e?"":mc(e))},mf=1/0,mp=function(e){if("string"==typeof e||pK(e))return e;var t=e+"";return"0"==t&&1/e==-mf?"-0":t},mh=function(e,t){t=md(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[mp(t[r++])];return r&&r==n?e:void 0},mm=function(e,t,r){var n=null==e?void 0:mh(e,t);return void 0===n?r:n},mg=function(e,t){return null!=e&&t in Object(e)},mv=function(e,t,r){t=md(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=mp(t[n]);if(!(o=null!=e&&r(e,i)))break;e=e[i]}return o||++n!=a?o:!!(a=null==e?0:e.length)&&pu(a)&&pk(i,a)&&(ps(e)||pl(e))},mb=function(e){var t;return mr(e)?(t=mp(e),function(e){return null==e?void 0:e[t]}):function(t){return mh(t,e)}},my=function(e){if("function"==typeof e)return e;if(null==e)return pI;if("object"==typeof e){var t,r;return ps(e)?(t=e[0],r=e[1],mr(t)&&h3(r)?h6(mp(t),r):function(e){var n=mm(e,t);return void 0===n&&n===r?null!=e&&mv(e,t,mg):h5(r,n,3)}):h7(e)}return mb(e)},mw=function(e,t){var r=-1,n=pc(e)?Array(e.length):[];return hn(e,function(e,a,o){n[++r]=t(e,a,o)}),n},mE=function(e,t){return(ps(e)?hy:mw)(e,my(t,3))},mx=function(e){var t=e.colors,r=e.onClick,n=e.onSwatchHover,a=eu(l0)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return eu(eg).createElement("div",{style:a.swatches},mE(t,function(e){return eu(eg).createElement(hg,{key:e,color:e,style:a.swatch,onClick:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),eu(eg).createElement("div",{style:a.clear}))},m_=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.hex,a=e.colors,o=e.width,i=e.triangle,l=e.styles,s=e.className,u="transparent"===n,c=function(e,r){hs(e)&&t({hex:e,source:"hex"},r)},d=eu(l0)(pU({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:n,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:hu(n),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+n+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},void 0===l?{}:l),{"hide-triangle":"hide"===i});return eu(eg).createElement("div",{style:d.card,className:"block-picker "+(void 0===s?"":s)},eu(eg).createElement("div",{style:d.triangle}),eu(eg).createElement("div",{style:d.head},u&&eu(eg).createElement(fr,{borderRadius:"6px 6px 0 0"}),eu(eg).createElement("div",{style:d.label},n)),eu(eg).createElement("div",{style:d.body},eu(eg).createElement(mx,{colors:a,onClick:c,onSwatchHover:r}),eu(eg).createElement(fc,{style:{input:d.input},value:n,onChange:c})))};m_.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).string),triangle:eu(rW).oneOf(["top","hide"]),styles:eu(rW).object},m_.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},hp(m_);var eg=eh("j89Fe"),mS={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},mC={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},mO={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},mk={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},mR={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},mj={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},mT={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},mF={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},mA={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},mN={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},mP={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},mM={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},mI={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},mL={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},mD={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},mz={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},mB={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},mH={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},eg=eh("j89Fe"),mU=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.hover,o=e.active,i=e.circleSize,l=e.circleSpacing,s=eu(l0)({default:{swatch:{width:i,height:i,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:o});return eu(eg).createElement("div",{style:s.swatch},eu(eg).createElement(hg,{style:s.Swatch,color:t,onClick:r,onHover:n,focusStyle:{boxShadow:s.Swatch.boxShadow+", 0 0 5px "+t}}))};mU.defaultProps={circleSize:28,circleSpacing:14};"use strict";var m$=(0,l0.handleHover)(mU),mW=function(e){var t=e.width,r=e.onChange,n=e.onSwatchHover,a=e.colors,o=e.hex,i=e.circleSize,l=e.styles,s=e.circleSpacing,u=e.className,c=eu(l0)(pU({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-s,marginBottom:-s}}},void 0===l?{}:l)),d=function(e,t){return r({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:c.card,className:"circle-picker "+(void 0===u?"":u)},mE(a,function(e){return eu(eg).createElement(m$,{key:e,color:e,onClick:d,onSwatchHover:n,active:o===e.toLowerCase(),circleSize:i,circleSpacing:s})}))};mW.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),circleSize:eu(rW).number,circleSpacing:eu(rW).number,styles:eu(rW).object},mW.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[mS["500"],mC["500"],mO["500"],mk["500"],mR["500"],mj["500"],mT["500"],mF["500"],mA["500"],mN["500"],mP["500"],mM["500"],mI["500"],mL["500"],mD["500"],mz["500"],mB["500"],mH["500"]],styles:{}},hp(mW);var eg=(eh("j89Fe"),eh("j89Fe")),mV=function(e){return void 0===e},mq={};Object.defineProperty(mq,"__esModule",{value:!0});var mG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),mK=(V=eg)&&V.__esModule?V:{default:V};mq.default=function(e){var t=e.fill,r=e.width,n=e.height,a=e.style,o=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return mK.default.createElement("svg",mG({viewBox:"0 0 24 24",style:mG({fill:void 0===t?"currentColor":t,width:void 0===r?24:r,height:void 0===n?24:n},void 0===a?{}:a)},o),mK.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))};var mZ=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),mX=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?hs(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(mV(e.s)?r.props.hsl.s:e.s),l:Number(mV(e.l)?r.props.hsl.l:e.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?r.state={view:"rgb"}:r.state={view:e.view},r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),mZ(t,[{key:"render",value:function(){var e=this,t=eu(l0)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),r=void 0;return"hex"===this.state.view?r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),eu(eg).createElement("div",{style:t.alpha},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(r=eu(eg).createElement("div",{style:t.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),eu(eg).createElement("div",{style:t.field},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),eu(eg).createElement("div",{style:t.alpha},eu(eg).createElement(fc,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),eu(eg).createElement("div",{style:t.wrap,className:"flexbox-fix"},r,eu(eg).createElement("div",{style:t.toggle},eu(eg).createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},eu(eg).createElement(eu(mq),{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(eu(eg).Component);mX.defaultProps={view:"hex"};var eg=eh("j89Fe"),mJ=function(){var e=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return eu(eg).createElement("div",{style:e.picker})},eg=eh("j89Fe"),mY=function(){var e=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return eu(eg).createElement("div",{style:e.picker})},mQ=function(e){var t=e.width,r=e.onChange,n=e.disableAlpha,a=e.rgb,o=e.hsl,i=e.hsv,l=e.hex,s=e.renderers,u=e.styles,c=e.className,d=e.defaultView,f=eu(l0)(pU({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},void 0===u?{}:u),{disableAlpha:n});return eu(eg).createElement("div",{style:f.picker,className:"chrome-picker "+(void 0===c?"":c)},eu(eg).createElement("div",{style:f.saturation},eu(eg).createElement(p9,{style:f.Saturation,hsl:o,hsv:i,pointer:mY,onChange:r})),eu(eg).createElement("div",{style:f.body},eu(eg).createElement("div",{style:f.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:f.color},eu(eg).createElement("div",{style:f.swatch},eu(eg).createElement("div",{style:f.active}),eu(eg).createElement(fr,{renderers:s}))),eu(eg).createElement("div",{style:f.toggles},eu(eg).createElement("div",{style:f.hue},eu(eg).createElement(fh,{style:f.Hue,hsl:o,pointer:mJ,onChange:r})),eu(eg).createElement("div",{style:f.alpha},eu(eg).createElement(fi,{style:f.Alpha,rgb:a,hsl:o,pointer:mJ,renderers:s,onChange:r})))),eu(eg).createElement(mX,{rgb:a,hsl:o,hex:l,view:d,onChange:r,disableAlpha:n})))};mQ.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),disableAlpha:eu(rW).bool,styles:eu(rW).object,defaultView:eu(rW).oneOf(["hex","rgb","hsl"])},mQ.defaultProps={width:225,disableAlpha:!1,styles:{}},hp(mQ);var eg=(eh("j89Fe"),eh("j89Fe")),m0=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.active,o=eu(l0)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:hu(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return eu(eg).createElement(hg,{style:o.color,color:t,onClick:void 0===r?function(){}:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+t}},eu(eg).createElement("div",{style:o.dot}))},eg=eh("j89Fe"),m1=function(e){var t=e.hex,r=e.rgb,n=e.onChange,a=eu(l0)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(e,t){e.r||e.g||e.b?n({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},t):n({hex:e.hex,source:"hex"},t)};return eu(eg).createElement("div",{style:a.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:a.active}),eu(eg).createElement(fc,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:r.r,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:r.g,onChange:o}),eu(eg).createElement(fc,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:r.b,onChange:o}))},m2=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.colors,a=e.hex,o=e.rgb,i=e.styles,l=void 0===i?{}:i,s=e.className,u=eu(l0)(pU({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),c=function(e,r){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},r):t(e,r)};return eu(eg).createElement(p$,{style:u.Compact,styles:l},eu(eg).createElement("div",{style:u.compact,className:"compact-picker "+(void 0===s?"":s)},eu(eg).createElement("div",null,mE(n,function(e){return eu(eg).createElement(m0,{key:e,color:e,active:e.toLowerCase()===a,onClick:c,onSwatchHover:r})}),eu(eg).createElement("div",{style:u.clear})),eu(eg).createElement(m1,{hex:a,rgb:o,onChange:c})))};m2.propTypes={colors:eu(rW).arrayOf(eu(rW).string),styles:eu(rW).object},m2.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},hp(m2);var eg=(eh("j89Fe"),eh("j89Fe")),m4=(0,l0.handleHover)(function(e){var t=e.hover,r=e.color,n=e.onClick,a=e.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=eu(l0)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return eu(eg).createElement("div",{style:i.swatch},eu(eg).createElement(hg,{color:r,onClick:n,onHover:a,focusStyle:o}))}),m5=function(e){var t=e.width,r=e.colors,n=e.onChange,a=e.onSwatchHover,o=e.triangle,i=e.styles,l=e.className,s=eu(l0)(pU({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},void 0===i?{}:i),{"hide-triangle":"hide"===o,"top-left-triangle":"top-left"===o,"top-right-triangle":"top-right"===o,"bottom-left-triangle":"bottom-left"===o,"bottom-right-triangle":"bottom-right"===o}),u=function(e,t){return n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:s.card,className:"github-picker "+(void 0===l?"":l)},eu(eg).createElement("div",{style:s.triangleShadow}),eu(eg).createElement("div",{style:s.triangle}),mE(r,function(e){return eu(eg).createElement(m4,{color:e,key:e,onClick:u,onSwatchHover:a})}))};m5.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).string),triangle:eu(rW).oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:eu(rW).object},m5.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},hp(m5);var eg=(eh("j89Fe"),eh("j89Fe")),m8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m3=function(e){var t=e.width,r=e.height,n=e.onChange,a=e.hsl,o=e.direction,i=e.pointer,l=e.styles,s=e.className,u=eu(l0)(pU({default:{picker:{position:"relative",width:t,height:r},hue:{radius:"2px"}}},void 0===l?{}:l));return eu(eg).createElement("div",{style:u.picker,className:"hue-picker "+(void 0===s?"":s)},eu(eg).createElement(fh,m8({},u.hue,{hsl:a,pointer:i,onChange:function(e){return n({a:1,h:e.h,l:.5,s:1})},direction:o})))};m3.propTypes={styles:eu(rW).object},m3.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,r=eu(l0)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return eu(eg).createElement("div",{style:r.picker})},styles:{}},hp(m3);var eg=eh("j89Fe");hp(function(e){var t=e.onChange,r=e.hex,n=e.rgb,a=e.styles,o=void 0===a?{}:a,i=e.className,l=eu(l0)(pU({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+r,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),s=function(e,r){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},r):(e.r||e.g||e.b)&&t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r)};return eu(eg).createElement(p$,{styles:o},eu(eg).createElement("div",{style:l.material,className:"material-picker "+(void 0===i?"":i)},eu(eg).createElement(fc,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:r,onChange:s}),eu(eg).createElement("div",{style:l.split,className:"flexbox-fix"},eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s})),eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s})),eu(eg).createElement("div",{style:l.third},eu(eg).createElement(fc,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s})))))});var eg=(eh("j89Fe"),eh("j89Fe")),m9=function(e){var t=e.onChange,r=e.rgb,n=e.hsv,a=e.hex,o=eu(l0)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),i=function(e,a){e["#"]?hs(e["#"])&&t({hex:e["#"],source:"hex"},a):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},a):(e.h||e.s||e.v)&&t({h:e.h||n.h,s:e.s||n.s,v:e.v||n.v,source:"hsv"},a)};return eu(eg).createElement("div",{style:o.fields},eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(n.h),onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(100*n.s),onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(100*n.v),onChange:i}),eu(eg).createElement("div",{style:o.divider}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:r.r,onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:r.g,onChange:i}),eu(eg).createElement(fc,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:r.b,onChange:i}),eu(eg).createElement("div",{style:o.divider}),eu(eg).createElement(fc,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:a.replace("#",""),onChange:i}),eu(eg).createElement("div",{style:o.fieldSymbols},eu(eg).createElement("div",{style:o.symbol},"°"),eu(eg).createElement("div",{style:o.symbol},"%"),eu(eg).createElement("div",{style:o.symbol},"%")))},eg=eh("j89Fe"),m6=function(e){var t=e.hsl,r=eu(l0)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return eu(eg).createElement("div",{style:r.picker})},eg=eh("j89Fe"),m7=function(){var e=eu(l0)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return eu(eg).createElement("div",{style:e.pointer},eu(eg).createElement("div",{style:e.left},eu(eg).createElement("div",{style:e.leftInside})),eu(eg).createElement("div",{style:e.right},eu(eg).createElement("div",{style:e.rightInside})))},eg=eh("j89Fe"),ge=function(e){var t=e.onClick,r=e.label,n=e.children,a=e.active,o=eu(l0)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return eu(eg).createElement("div",{style:o.button,onClick:t},r||n)},eg=eh("j89Fe"),gt=function(e){var t=e.rgb,r=e.currentColor,n=eu(l0)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:r,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return eu(eg).createElement("div",null,eu(eg).createElement("div",{style:n.label},"new"),eu(eg).createElement("div",{style:n.swatches},eu(eg).createElement("div",{style:n.new}),eu(eg).createElement("div",{style:n.current})),eu(eg).createElement("div",{style:n.label},"current"))},gr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),gn=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.state={currentColor:e.hex},r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),gr(t,[{key:"render",value:function(){var e=this.props,t=e.styles,r=e.className,n=eu(l0)(pU({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},void 0===t?{}:t));return eu(eg).createElement("div",{style:n.picker,className:"photoshop-picker "+(void 0===r?"":r)},eu(eg).createElement("div",{style:n.head},this.props.header),eu(eg).createElement("div",{style:n.body,className:"flexbox-fix"},eu(eg).createElement("div",{style:n.saturation},eu(eg).createElement(p9,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:m6,onChange:this.props.onChange})),eu(eg).createElement("div",{style:n.hue},eu(eg).createElement(fh,{direction:"vertical",hsl:this.props.hsl,pointer:m7,onChange:this.props.onChange})),eu(eg).createElement("div",{style:n.controls},eu(eg).createElement("div",{style:n.top,className:"flexbox-fix"},eu(eg).createElement("div",{style:n.previews},eu(eg).createElement(gt,{rgb:this.props.rgb,currentColor:this.state.currentColor})),eu(eg).createElement("div",{style:n.actions},eu(eg).createElement(ge,{label:"OK",onClick:this.props.onAccept,active:!0}),eu(eg).createElement(ge,{label:"Cancel",onClick:this.props.onCancel}),eu(eg).createElement(m9,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(eu(eg).Component);gn.propTypes={header:eu(rW).string,styles:eu(rW).object},gn.defaultProps={header:"Color Picker",styles:{}},hp(gn);var eg=(eh("j89Fe"),eh("j89Fe")),ga=function(e){var t=e.onChange,r=e.rgb,n=e.hsl,a=e.hex,o=e.disableAlpha,i=eu(l0)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),l=function(e,a){e.hex?hs(e.hex)&&t({hex:e.hex,source:"hex"},a):e.r||e.g||e.b?t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,a:r.a,source:"rgb"},a):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:n.h,s:n.s,l:n.l,a:e.a,source:"rgb"},a))};return eu(eg).createElement("div",{style:i.fields,className:"flexbox-fix"},eu(eg).createElement("div",{style:i.double},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"hex",value:a.replace("#",""),onChange:l})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"r",value:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"g",value:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.single},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"b",value:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),eu(eg).createElement("div",{style:i.alpha},eu(eg).createElement(fc,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*r.a),onChange:l,dragLabel:"true",dragMax:"100"})))},eg=eh("j89Fe"),go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gi=function(e){var t=e.colors,r=e.onClick,n=void 0===r?function(){}:r,a=e.onSwatchHover,o=eu(l0)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),i=function(e,t){n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,r=""+t.color+(t.title||"");return eu(eg).createElement("div",{key:r,style:o.swatchWrap},eu(eg).createElement(hg,go({},t,{style:o.swatch,onClick:i,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};gi.propTypes={colors:eu(rW).arrayOf(eu(rW).oneOfType([eu(rW).string,eu(rW).shape({color:eu(rW).string,title:eu(rW).string})])).isRequired};var gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gs=function(e){var t=e.width,r=e.rgb,n=e.hex,a=e.hsv,o=e.hsl,i=e.onChange,l=e.onSwatchHover,s=e.disableAlpha,u=e.presetColors,c=e.renderers,d=e.styles,f=void 0===d?{}:d,p=e.className,h=eu(l0)(pU({default:gl({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+r.r+","+r.g+","+r.b+","+r.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:s});return eu(eg).createElement("div",{style:h.picker,className:"sketch-picker "+(void 0===p?"":p)},eu(eg).createElement("div",{style:h.saturation},eu(eg).createElement(p9,{style:h.Saturation,hsl:o,hsv:a,onChange:i})),eu(eg).createElement("div",{style:h.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:h.sliders},eu(eg).createElement("div",{style:h.hue},eu(eg).createElement(fh,{style:h.Hue,hsl:o,onChange:i})),eu(eg).createElement("div",{style:h.alpha},eu(eg).createElement(fi,{style:h.Alpha,rgb:r,hsl:o,renderers:c,onChange:i}))),eu(eg).createElement("div",{style:h.color},eu(eg).createElement(fr,null),eu(eg).createElement("div",{style:h.activeColor}))),eu(eg).createElement(ga,{rgb:r,hsl:o,hex:n,onChange:i,disableAlpha:s}),eu(eg).createElement(gi,{colors:u,onClick:i,onSwatchHover:l}))};gs.propTypes={disableAlpha:eu(rW).bool,width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),styles:eu(rW).object},gs.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};"use strict";var gu=hp(gs),eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),gc=function(e){var t=e.hsl,r=e.offset,n=e.onClick,a=void 0===n?function(){}:n,o=e.active,i=e.first,l=e.last,s=eu(l0)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*r+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:i,last:l});return eu(eg).createElement("div",{style:s.swatch,onClick:function(e){return a({h:t.h,s:.5,l:r,source:"hsl"},e)}})},gd=function(e){var t=e.onClick,r=e.hsl,n=eu(l0)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return eu(eg).createElement("div",{style:n.swatches},eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".80",active:.1>Math.abs(r.l-.8)&&.1>Math.abs(r.s-.5),onClick:t,first:!0})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".65",active:.1>Math.abs(r.l-.65)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".50",active:.1>Math.abs(r.l-.5)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".35",active:.1>Math.abs(r.l-.35)&&.1>Math.abs(r.s-.5),onClick:t})),eu(eg).createElement("div",{style:n.swatch},eu(eg).createElement(gc,{hsl:r,offset:".20",active:.1>Math.abs(r.l-.2)&&.1>Math.abs(r.s-.5),onClick:t,last:!0})),eu(eg).createElement("div",{style:n.clear}))},eg=eh("j89Fe"),gf=function(e){var t=e.hsl,r=e.onChange,n=e.pointer,a=e.styles,o=e.className,i=eu(l0)(pU({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},void 0===a?{}:a));return eu(eg).createElement("div",{style:i.wrap||{},className:"slider-picker "+(void 0===o?"":o)},eu(eg).createElement("div",{style:i.hue},eu(eg).createElement(fh,{style:i.Hue,hsl:t,pointer:n,onChange:r})),eu(eg).createElement("div",{style:i.swatches},eu(eg).createElement(gd,{hsl:t,onClick:r})))};gf.propTypes={styles:eu(rW).object},gf.defaultProps={pointer:function(){var e=eu(l0)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return eu(eg).createElement("div",{style:e.picker})},styles:{}},hp(gf);var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),gp={};Object.defineProperty(gp,"__esModule",{value:!0});var gh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg=eh("j89Fe"),gm=(q=eg)&&q.__esModule?q:{default:q};gp.default=function(e){var t=e.fill,r=e.width,n=e.height,a=e.style,o=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return gm.default.createElement("svg",gh({viewBox:"0 0 24 24",style:gh({fill:void 0===t?"currentColor":t,width:void 0===r?24:r,height:void 0===n?24:n},void 0===a?{}:a)},o),gm.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))};var gg=function(e){var t=e.color,r=e.onClick,n=e.onSwatchHover,a=e.first,o=e.last,i=e.active,l=eu(l0)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:hu(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:o,active:i,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return eu(eg).createElement(hg,{color:t,style:l.color,onClick:void 0===r?function(){}:r,onHover:n,focusStyle:{boxShadow:"0 0 4px "+t}},eu(eg).createElement("div",{style:l.check},eu(eg).createElement(eu(gp),null)))},gv=function(e){var t=e.onClick,r=e.onSwatchHover,n=e.group,a=e.active,o=eu(l0)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return eu(eg).createElement("div",{style:o.group},mE(n,function(e,o){return eu(eg).createElement(gg,{key:e,color:e,active:e.toLowerCase()===a,first:0===o,last:o===n.length-1,onClick:t,onSwatchHover:r})}))},gb=function(e){var t=e.width,r=e.height,n=e.onChange,a=e.onSwatchHover,o=e.colors,i=e.hex,l=e.styles,s=e.className,u=eu(l0)(pU({default:{picker:{width:t,height:r},overflow:{height:r,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},void 0===l?{}:l)),c=function(e,t){return n({hex:e,source:"hex"},t)};return eu(eg).createElement("div",{style:u.picker,className:"swatches-picker "+(void 0===s?"":s)},eu(eg).createElement(p$,null,eu(eg).createElement("div",{style:u.overflow},eu(eg).createElement("div",{style:u.body},mE(o,function(e){return eu(eg).createElement(gv,{key:e.toString(),group:e,active:i,onClick:c,onSwatchHover:a})}),eu(eg).createElement("div",{style:u.clear})))))};gb.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),height:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),colors:eu(rW).arrayOf(eu(rW).arrayOf(eu(rW).string)),styles:eu(rW).object},gb.defaultProps={width:320,height:240,colors:[[mS["900"],mS["700"],mS["500"],mS["300"],mS["100"]],[mC["900"],mC["700"],mC["500"],mC["300"],mC["100"]],[mO["900"],mO["700"],mO["500"],mO["300"],mO["100"]],[mk["900"],mk["700"],mk["500"],mk["300"],mk["100"]],[mR["900"],mR["700"],mR["500"],mR["300"],mR["100"]],[mj["900"],mj["700"],mj["500"],mj["300"],mj["100"]],[mT["900"],mT["700"],mT["500"],mT["300"],mT["100"]],[mF["900"],mF["700"],mF["500"],mF["300"],mF["100"]],[mA["900"],mA["700"],mA["500"],mA["300"],mA["100"]],["#194D33",mN["700"],mN["500"],mN["300"],mN["100"]],[mP["900"],mP["700"],mP["500"],mP["300"],mP["100"]],[mM["900"],mM["700"],mM["500"],mM["300"],mM["100"]],[mI["900"],mI["700"],mI["500"],mI["300"],mI["100"]],[mL["900"],mL["700"],mL["500"],mL["300"],mL["100"]],[mD["900"],mD["700"],mD["500"],mD["300"],mD["100"]],[mz["900"],mz["700"],mz["500"],mz["300"],mz["100"]],[mB["900"],mB["700"],mB["500"],mB["300"],mB["100"]],[mH["900"],mH["700"],mH["500"],mH["300"],mH["100"]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},hp(gb);var eg=eh("j89Fe"),gy=function(e){var t=e.onChange,r=e.onSwatchHover,n=e.hex,a=e.colors,o=e.width,i=e.triangle,l=e.styles,s=e.className,u=eu(l0)(pU({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},void 0===l?{}:l),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i}),c=function(e,r){hs(e)&&t({hex:e,source:"hex"},r)};return eu(eg).createElement("div",{style:u.card,className:"twitter-picker "+(void 0===s?"":s)},eu(eg).createElement("div",{style:u.triangleShadow}),eu(eg).createElement("div",{style:u.triangle}),eu(eg).createElement("div",{style:u.body},mE(a,function(e,t){return eu(eg).createElement(hg,{key:t,color:e,hex:e,style:u.swatch,onClick:c,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})}),eu(eg).createElement("div",{style:u.hash},"#"),eu(eg).createElement(fc,{label:null,style:{input:u.input},value:n.replace("#",""),onChange:c}),eu(eg).createElement("div",{style:u.clear})))};gy.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),triangle:eu(rW).oneOf(["hide","top-left","top-right"]),colors:eu(rW).arrayOf(eu(rW).string),styles:eu(rW).object},gy.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},hp(gy);var eg=(eh("j89Fe"),eh("j89Fe")),gw=function(e){var t=eu(l0)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return eu(eg).createElement("div",{style:t.picker})};gw.propTypes={hsl:eu(rW).shape({h:eu(rW).number,s:eu(rW).number,l:eu(rW).number,a:eu(rW).number})},gw.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var eg=eh("j89Fe"),gE=function(e){var t=eu(l0)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return eu(eg).createElement("div",{style:t.picker})};gE.propTypes={hsl:eu(rW).shape({h:eu(rW).number,s:eu(rW).number,l:eu(rW).number,a:eu(rW).number})},gE.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var eg=eh("j89Fe"),gx=function(e){var t=e.onChange,r=e.rgb,n=e.hsl,a=e.hex,o=e.hsv,i=function(e,r){if(e.hex)hs(e.hex)&&t({hex:e.hex,source:"hex"},r);else if(e.rgb){var n=e.rgb.split(",");hc(e.rgb,"rgb")&&t({r:n[0],g:n[1],b:n[2],a:1,source:"rgb"},r)}else if(e.hsv){var a=e.hsv.split(",");hc(e.hsv,"hsv")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==a[1]?a[1]=.01:1==a[2]&&(a[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsv"},r))}else if(e.hsl){var o=e.hsl.split(",");hc(e.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==c[1]?c[1]=.01:1==c[2]&&(c[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},r))}},l=eu(l0)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),s=r.r+", "+r.g+", "+r.b,u=Math.round(n.h)+"°, "+Math.round(100*n.s)+"%, "+Math.round(100*n.l)+"%",c=Math.round(o.h)+"°, "+Math.round(100*o.s)+"%, "+Math.round(100*o.v)+"%";return eu(eg).createElement("div",{style:l.wrap,className:"flexbox-fix"},eu(eg).createElement("div",{style:l.fields},eu(eg).createElement("div",{style:l.double},eu(eg).createElement(fc,{style:{input:l.input,label:l.label},label:"hex",value:a,onChange:i})),eu(eg).createElement("div",{style:l.column},eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"rgb",value:s,onChange:i})),eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"hsv",value:c,onChange:i})),eu(eg).createElement("div",{style:l.single},eu(eg).createElement(fc,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:i})))))},g_=function(e){var t=e.width,r=e.onChange,n=e.rgb,a=e.hsl,o=e.hsv,i=e.hex,l=e.header,s=e.styles,u=e.className,c=eu(l0)(pU({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+n.r+", "+n.g+", "+n.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},void 0===s?{}:s));return eu(eg).createElement("div",{style:c.picker,className:"google-picker "+(void 0===u?"":u)},eu(eg).createElement("div",{style:c.head},l),eu(eg).createElement("div",{style:c.swatch}),eu(eg).createElement("div",{style:c.saturation},eu(eg).createElement(p9,{hsl:a,hsv:o,pointer:gw,onChange:r})),eu(eg).createElement("div",{style:c.body},eu(eg).createElement("div",{style:c.controls,className:"flexbox-fix"},eu(eg).createElement("div",{style:c.hue},eu(eg).createElement(fh,{style:c.Hue,hsl:a,radius:"4px",pointer:gE,onChange:r}))),eu(eg).createElement(gx,{rgb:n,hsl:a,hex:i,hsv:o,onChange:r})))};g_.propTypes={width:eu(rW).oneOfType([eu(rW).string,eu(rW).number]),styles:eu(rW).object,header:eu(rW).string},g_.defaultProps={width:652,styles:{},header:"Color picker"},hp(g_);let gS=({defaultValue:e="",value:t,onChange:r,colorStyle:n,size:a,rounded:o,pickerOptions:i,errorMessage:l})=>{let[s,u]=(0,eg.useState)(!1),[c,d]=(0,eg.useState)(t??e),f=(0,eg.useRef)(null);(0,eg.useEffect)(()=>{void 0!==t?d(t):e&&d(e)},[t,e]);let p=e=>{f.current&&!f.current.contains(e.target)&&u(!1)};return(0,eg.useEffect)(()=>(s?document.addEventListener("mousedown",p):document.removeEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}),[s]),eu(eg).createElement("div",{className:`jfInputColor ${"error"===n?"jfInputColor--error":""}`,ref:f},eu(eg).createElement(nO,{value:c,onChange:e=>{var t;d(t=e.target.value),r?.({target:{value:t}})}}),l&&eu(eg).createElement("span",{className:"jfInputColor--error-text"},l),eu(eg).createElement(lQ,{className:"jfInputColor--picker"},eu(eg).createElement(lZ,{style:{background:c||"#fff"}},eu(eg).createElement("span",{className:"sr-only"},"Open color picker")),eu(eg).createElement(lY,{transition:!0,anchor:"top",className:"jfInputColor--popover"},eu(eg).createElement(gu,{color:c,onChange:e=>{let t=e.hex||e;d(t),r?.({target:{value:t}})},disableAlpha:i?.disableAlpha}))))};gS.propTypes={defaultValue:eu(rW).string,value:eu(rW).string,onChange:eu(rW).func.isRequired};var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let gC=new Map,gO=new Map;function gk(e){var t;let r=null!=(t=gO.get(e))?t:0;return gO.set(e,r+1),0!==r||(gC.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let r=null!=(t=gO.get(e))?t:1;if(1===r?gO.delete(e):gO.set(e,r-1),1!==r)return;let n=gC.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,gC.delete(e))})(e)}function gR(e,{allowed:t,disallowed:r}={}){let n=oI(e,"inert-others");aS(()=>{var e,a;if(!n)return;let o=ax();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(gk(t));let i=null!=(a=null==t?void 0:t())?a:[];for(let e of i){if(!e)continue;let t=ab(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)i.some(t=>e.contains(t))||o.add(gk(e));r=r.parentElement}}return o.dispose},[n,t,r])}function gj(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in eg&&(0,eg.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[r,n]=eg.useState(av.isHandoffComplete);return r&&!1===av.isHandoffComplete&&n(!1),eg.useEffect(()=>{!0!==r&&n(!0)},[r]),eg.useEffect(()=>av.handoff(),[]),!t&&r}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let gT=(0,eg.createContext)(void 0);function gF(){return(0,eg.useContext)(gT)}let gA=(0,eg.createContext)(null);function gN(){let[e,t]=(0,eg.useState)([]);return[e.length>0?e.join(" "):void 0,(0,eg.useMemo)(()=>function(e){let r=aO(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,eg.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return eu(eg).createElement(gA.Provider,{value:n},e.children)},[t])]}gA.displayName="DescriptionContext";let gP=Object.assign(oa(function(e,t){let r=(0,eg.useId)(),n=gF(),{id:a=`headlessui-description-${r}`,...o}=e,i=function e(){let t=(0,eg.useContext)(gA);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),l=oH(t);aS(()=>i.register(a),[a,i.register]);let s=oD({...i.slot,disabled:n||!1}),u={ref:l,...i.props,id:a};return a7()({ourProps:u,theirProps:o,slot:s,defaultTag:"p",name:i.name||"Description"})}),{});function gM(){let e=(0,eg.useRef)(!1);return aS(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));function gI(e,t){let r=(0,eg.useRef)([]),n=aO(e);(0,eg.useEffect)(()=>{let e=[...r.current];for(let[a,o]of t.entries())if(r.current[a]!==o){let a=n(t,e);return r.current=t,a}},[n,...t])}let gL=[];function gD(){"loading"!==document.readyState&&((()=>{function e(e){if(!aP(e.target)||e.target===document.body||gL[0]===e.target)return;let t=e.target;t=t.closest(aB),gL.unshift(null!=t?t:e.target),(gL=gL.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",gD))}function gz(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)aA(r.current)&&t.add(r.current);return t}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",gD),gD());var gB=((S=gB||{})[S.None=0]="None",S[S.InitialFocus=1]="InitialFocus",S[S.TabLock=2]="TabLock",S[S.FocusLock=4]="FocusLock",S[S.RestoreFocus=8]="RestoreFocus",S[S.AutoFocus=16]="AutoFocus",S);let gH=Object.assign(oa(function(e,t){let r=(0,eg.useRef)(null),n=oH(r,t),{initialFocus:a,initialFocusFallback:o,containers:i,features:l=15,...s}=e;gj()||(l=0);let u=a5(r.current);!function(e,{ownerDocument:t}){let r=!!(8&e),n=function(e=!0){let t=(0,eg.useRef)(gL.slice());return gI(([e],[r])=>{!0===r&&!1===e&&aE(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=gL.slice())},[e,gL,t]),aO(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);gI(()=>{var e;r||aw(e=null==t?void 0:t.body)===e&&aX(n())},[r]),lx(()=>{r&&aX(n())})}(l,{ownerDocument:u});let c=function(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:a}){let o=(0,eg.useRef)(null),i=oI(!!(1&e),"focus-trap#initial-focus"),l=gM();return gI(()=>{if(0===e)return;if(!i){null!=a&&a.current&&aX(a.current);return}let s=r.current;s&&aE(()=>{if(!l.current)return;let r=null==t?void 0:t.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r){o.current=r;return}}else if(s.contains(r)){o.current=r;return}if(null!=n&&n.current)aX(n.current);else{if(16&e){if(aY(s,aU.First|aU.AutoFocus)!==a$.Error)return}else if(aY(s,aU.First)!==a$.Error)return;if(null!=a&&a.current&&(aX(a.current),(null==t?void 0:t.activeElement)===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=null==t?void 0:t.activeElement})},[a,i,e]),o}(l,{ownerDocument:u,container:r,initialFocus:a,initialFocusFallback:o});!function(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:a}){let o=gM(),i=!!(4&e);aT(null==t?void 0:t.defaultView,"focus",e=>{if(!i||!o.current)return;let t=gz(n);aN(r.current)&&t.add(r.current);let l=a.current;if(!l)return;let s=e.target;aN(s)?gU(t,s)?(a.current=s,aX(s)):(e.preventDefault(),e.stopPropagation(),aX(l)):aX(a.current)},!0)}(l,{ownerDocument:u,container:r,containers:i,previousActiveElement:c});let d=o$(),f=aO(e=>{if(!aN(r.current))return;let t=r.current;az(d.current,{[oU.Forwards]:()=>{aY(t,aU.First,{skipElements:[e.relatedTarget,o]})},[oU.Backwards]:()=>{aY(t,aU.Last,{skipElements:[e.relatedTarget,o]})}})}),p=oI(!!(2&l),"focus-trap#tab-lock"),h=a_(),m=(0,eg.useRef)(!1),g=a7();return eu(eg).createElement(eu(eg).Fragment,null,p&&eu(eg).createElement(ou,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:os.Focusable}),g({ourProps:{ref:n,onKeyDown(e){"Tab"==e.key&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(e){if(!(4&l))return;let t=gz(i);aN(r.current)&&t.add(r.current);let n=e.relatedTarget;aP(n)&&"true"!==n.dataset.headlessuiFocusGuard&&(gU(t,n)||(m.current?aY(r.current,az(d.current,{[oU.Forwards]:()=>aU.Next,[oU.Backwards]:()=>aU.Previous})|aU.WrapAround,{relativeTo:e.target}):aP(e.target)&&aX(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),p&&eu(eg).createElement(ou,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:os.Focusable}))}),{features:gB});function gU(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var eg=eh("j89Fe");function g$(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!ol(null!=(t=e.as)?t:gZ)||1===eu(eg).Children.count(e.children)}let gW=(0,eg.createContext)(null);gW.displayName="TransitionContext";var gV=((C=gV||{}).Visible="visible",C.Hidden="hidden",C);let gq=(0,eg.createContext)(null);function gG(e){return"children"in e?gG(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function gK(e,t){let r=aC(e),n=(0,eg.useRef)([]),a=gM(),o=a_(),i=aO((e,t=a6.Hidden)=>{let i=n.current.findIndex(({el:t})=>t===e);-1!==i&&(az(t,{[a6.Unmount](){n.current.splice(i,1)},[a6.Hidden](){n.current[i].state="hidden"}}),o.microTask(()=>{var e;!gG(n)&&a.current&&(null==(e=r.current)||e.call(r))}))}),l=aO(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>i(e,a6.Unmount)}),s=(0,eg.useRef)([]),u=(0,eg.useRef)(Promise.resolve()),c=(0,eg.useRef)({enter:[],leave:[]}),d=aO((e,r,n)=>{s.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{s.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(c.current[r].map(([e,t])=>t)).then(()=>e())})]),"enter"===r?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),f=aO((e,t,r)=>{Promise.all(c.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=s.current.shift())||e()}).then(()=>r(t))});return(0,eg.useMemo)(()=>({children:n,register:l,unregister:i,onStart:d,onStop:f,wait:u,chains:c}),[l,i,n,d,f,c,u])}gq.displayName="NestingContext";let gZ=eg.Fragment,gX=a9.RenderStrategy,gJ=oa(function(e,t){let{show:r,appear:n=!1,unmount:a=!0,...o}=e,i=(0,eg.useRef)(null),l=oH(...g$(e)?[i,t]:null===t?[]:[t]);gj();let s=lv();if(void 0===r&&null!==s&&(r=(s&lg.Open)===lg.Open),void 0===r)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,eg.useState)(r?"visible":"hidden"),d=gK(()=>{r||c("hidden")}),[f,p]=(0,eg.useState)(!0),h=(0,eg.useRef)([r]);aS(()=>{!1!==f&&h.current[h.current.length-1]!==r&&(h.current.push(r),p(!1))},[h,r]);let m=(0,eg.useMemo)(()=>({show:r,appear:n,initial:f}),[r,n,f]);aS(()=>{r?c("visible"):gG(d)||null===i.current||c("hidden")},[r,d]);let g={unmount:a},v=aO(()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),b=aO(()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),y=a7();return eu(eg).createElement(gq.Provider,{value:d},eu(eg).createElement(gW.Provider,{value:m},y({ourProps:{...g,as:eg.Fragment,children:eu(eg).createElement(gY,{ref:l,...g,...o,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:eg.Fragment,features:gX,visible:"visible"===u,name:"Transition"})))}),gY=oa(function(e,t){var r,n;let{transition:a=!0,beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,b]=(0,eg.useState)(null),y=(0,eg.useRef)(null),w=g$(e),E=oH(...w?[y,t,b]:null===t?[]:[t]),x=null==(r=g.unmount)||r?a6.Unmount:a6.Hidden,{show:_,appear:S,initial:C}=function(){let e=(0,eg.useContext)(gW);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[O,k]=(0,eg.useState)(_?"visible":"hidden"),R=function(){let e=(0,eg.useContext)(gq);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:j,unregister:T}=R;aS(()=>j(y),[j,y]),aS(()=>{if(x===a6.Hidden&&y.current)return _&&"visible"!==O?void k("visible"):az(O,{hidden:()=>T(y),visible:()=>j(y)})},[O,y,j,T,_,x]);let F=gj();aS(()=>{if(w&&F&&"visible"===O&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,O,F,w]);let A=C&&!S,N=S&&_&&C,P=(0,eg.useRef)(!1),M=gK(()=>{P.current||(k("hidden"),T(y))},R),I=aO(e=>{P.current=!0,M.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==o||o():"leave"===e&&(null==l||l())})}),L=aO(e=>{let t=e?"enter":"leave";P.current=!1,M.onStop(y,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==s||s())}),"leave"!==t||gG(M)||(k("hidden"),T(y))});(0,eg.useEffect)(()=>{w&&a||(I(_),L(_))},[_,w,a]);let[,D]=oq(!(!a||!w||!F||A),v,_,{start:I,end:L}),z=oo({ref:E,className:(null==(n=a3(g.className,N&&u,N&&c,D.enter&&u,D.enter&&D.closed&&c,D.enter&&!D.closed&&d,D.leave&&p,D.leave&&!D.closed&&h,D.leave&&D.closed&&m,!D.transition&&_&&f))?void 0:n.trim())||void 0,...oV(D)}),B=0;"visible"===O&&(B|=lg.Open),"hidden"===O&&(B|=lg.Closed),_&&"hidden"===O&&(B|=lg.Opening),_||"visible"!==O||(B|=lg.Closing);let H=a7();return eu(eg).createElement(gq.Provider,{value:M},eu(eg).createElement(lb,{value:B},H({ourProps:z,theirProps:g,defaultTag:gZ,features:gX,visible:"visible"===O,name:"Transition.Child"})))}),gQ=oa(function(e,t){let r=null!==(0,eg.useContext)(gW),n=null!==lv();return eu(eg).createElement(eu(eg).Fragment,null,!r&&n?eu(eg).createElement(gJ,{ref:t,...e}):eu(eg).createElement(gY,{ref:t,...e}))}),g0=Object.assign(gJ,{Child:gQ,Root:gJ});var g1=((O=g1||{})[O.Open=0]="Open",O[O.Closed=1]="Closed",O),g2=((k=g2||{})[k.SetTitleId=0]="SetTitleId",k);let g4={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},g5=(0,eg.createContext)(null);function g8(e){let t=(0,eg.useContext)(g5);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,g8),t}return t}function g3(e,t){return az(t.type,g4,e,t)}g5.displayName="DialogContext";let g9=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-${r}`,open:a,onClose:o,initialFocus:i,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...d}=e,f=(0,eg.useRef)(!1);l="dialog"===l||"alertdialog"===l?l:(f.current||(f.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let p=lv();void 0===a&&null!==p&&(a=(p&lg.Open)===lg.Open);let h=(0,eg.useRef)(null),m=oH(h,t),g=a5(h.current),v=+!a,[b,y]=(0,eg.useReducer)(g3,{titleId:null,descriptionId:null,panelRef:(0,eg.createRef)()}),w=aO(()=>o(!1)),E=aO(e=>y({type:0,id:e})),x=!!gj()&&0===v,[_,S]=lT(),C=op(),{resolveContainers:O}=oc({mainTreeNode:C,portals:_,defaultContainers:[{get current(){var k;return null!=(k=b.panelRef.current)?k:h.current}}]}),R=null!==p&&(p&lg.Closing)===lg.Closing;gR(!u&&!R&&x,{allowed:aO(()=>{var e,t;return[null!=(t=null==(e=h.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:aO(()=>{var e;return[null!=(e=null==C?void 0:C.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let j=oA.get(null);aS(()=>{if(x)return j.actions.push(n),()=>j.actions.pop(n)},[j,n,x]);let T=oP(j,(0,eg.useCallback)(e=>j.selectors.isTop(e,n),[j,n]));a4(T,O,e=>{e.preventDefault(),w()}),function(e,t="u">typeof document?document.defaultView:null,r){let n=oI(e,"escape");aT(t,"keydown",e=>{n&&(e.defaultPrevented||e.key===lE.Escape&&r(e))})}(T,null==g?void 0:g.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),w()}),oL(!u&&!R&&x,g,O),aD(x,h,w);let[F,A]=gN(),N=(0,eg.useMemo)(()=>[{dialogState:v,close:w,setTitleId:E,unmount:c},b],[v,w,E,c,b]),P=oD({open:0===v}),M={ref:m,id:n,role:l,tabIndex:-1,"aria-modal":u?void 0:0===v||void 0,"aria-labelledby":b.titleId,"aria-describedby":F,unmount:c},I=!function(){var e;let[t]=(0,eg.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[r,n]=(0,eg.useState)(null!=(e=null==t?void 0:t.matches)&&e);return aS(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){n(e.matches)}},[t]),r}(),L=gB.None;x&&!u&&(L|=gB.RestoreFocus,L|=gB.TabLock,s&&(L|=gB.AutoFocus),I&&(L|=gB.InitialFocus));let D=a7();return eu(eg).createElement(ly,null,eu(eg).createElement(lS,{force:!0},eu(eg).createElement(lN,null,eu(eg).createElement(g5.Provider,{value:N},eu(eg).createElement(lA,{target:h},eu(eg).createElement(lS,{force:!1},eu(eg).createElement(A,{slot:P},eu(eg).createElement(S,null,eu(eg).createElement(gH,{initialFocus:i,initialFocusFallback:h,containers:O,features:L},eu(eg).createElement(oK,{value:w},D({ourProps:M,theirProps:d,slot:P,defaultTag:g6,features:g7,visible:0===v,name:"Dialog"})))))))))))}),g6="div",g7=a9.RenderStrategy|a9.Static,ve=oa(function(e,t){let{transition:r=!1,open:n,...a}=e,o=lv(),i=e.hasOwnProperty("open")||null!==o,l=e.hasOwnProperty("onClose");if(!i&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==n||r)&&!a.static?eu(eg).createElement(of,null,eu(eg).createElement(g0,{show:n,transition:r,unmount:a.unmount},eu(eg).createElement(g9,{ref:t,...a}))):eu(eg).createElement(of,null,eu(eg).createElement(g9,{ref:t,open:n,...a}))}),vt=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-panel-${r}`,transition:a=!1,...o}=e,[{dialogState:i,unmount:l},s]=g8("Dialog.Panel"),u=oH(t,s.panelRef),c=oD({open:0===i}),d=aO(e=>{e.stopPropagation()}),f=a?gQ:eg.Fragment,p=a7();return eu(eg).createElement(f,{...a?{unmount:l}:{}},p({ourProps:{ref:u,id:n,onClick:d},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"}))}),vr=Object.assign(ve,{Panel:vt,Title:(oa(function(e,t){let{transition:r=!1,...n}=e,[{dialogState:a,unmount:o}]=g8("Dialog.Backdrop"),i=oD({open:0===a}),l=r?gQ:eg.Fragment,s=a7();return eu(eg).createElement(l,{...r?{unmount:o}:{}},s({ourProps:{ref:t,"aria-hidden":!0},theirProps:n,slot:i,defaultTag:"div",name:"Dialog.Backdrop"}))}),oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-dialog-title-${r}`,...a}=e,[{dialogState:o,setTitleId:i}]=g8("Dialog.Title"),l=oH(t);(0,eg.useEffect)(()=>(i(n),()=>i(null)),[n,i]);let s=oD({open:0===o});return a7()({ourProps:{ref:l,id:n},theirProps:a,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),Description:gP}),vn=(0,eg.forwardRef)(({open:e,onClose:t,initialFocus:r,zIndex:n=1004,children:a,ariaLabel:o,size:i,noFade:l,as:s,fitOnMobile:u,className:c,unmount:d=!0,...f},p)=>{let h=eu(r0)("jfModal",{"fit-on-mobile":u,"no-fade":l},c),m=eu(r0)("jfModal--container",{"jfModal--container-small":"small"===i,"jfModal--container-medium":"medium"===i,"jfModal--container-large":"large"===i});return eu(eg).createElement(vr,{onClose:t,open:e,initialFocus:r,style:{zIndex:n},className:h,"aria-modal":!0,ref:p,"data-magnet-modal":!0,unmount:d},eu(eg).createElement(s,{"aria-label":o,className:m,...f},eu(eg).createElement("div",{className:"jfModal--close"},eu(eg).createElement(r7,{onClick:t,startIcon:eu(eg).createElement(nn,null),colorStyle:"secondary",rounded:!0,"aria-label":"Close Button"})),a))});vn.propTypes={open:eu(rW).bool,onClose:eu(rW).func.isRequired,initialFocus:eu(rW).oneOfType([eu(rW).shape({current:eu(rW).instanceOf(Element)}),eu(rW).func]),zIndex:eu(rW).number,children:eu(rW).node.isRequired,ariaLabel:eu(rW).string,size:eu(rW).oneOf(["small","medium","large"]),noFade:eu(rW).bool,as:eu(rW).elementType,fitOnMobile:eu(rW).bool,className:eu(rW).string,unmount:eu(rW).bool},vn.defaultProps={open:!1,zIndex:1e3,size:"medium",noFade:!1,as:"div",fitOnMobile:!1,className:"",initialFocus:null,ariaLabel:null};var eg=eh("j89Fe"),va=({title:e,description:t,icon:r,iconColorStyle:n,onClose:a})=>eu(eg).createElement("div",{className:"jfModal--title"},r&&eu(eg).createElement("div",{className:`jfModal--title-icon jfModal--title-icon-${n||"informative"}`},eu(eg).createElement(r,null)),eu(eg).createElement("div",{className:"jfModal--title-content"},eu(eg).createElement("h2",null,e),t&&eu(eg).createElement("p",null,t))),eg=eh("j89Fe"),vo=({children:e,tabIndex:t,className:r})=>eu(eg).createElement("div",{className:`jfModal--body ${r||""}`,tabIndex:t},e),eg=eh("j89Fe"),vi=({children:e})=>eu(eg).createElement("div",{className:"jfModal--actions"},e),eg=eh("j89Fe");let vl=({label:e,isActive:t,onClick:r,ariaSelected:n})=>eu(eg).createElement("button",{type:"button",className:eu(r0)("tab-button",{isActive:t}),onClick:r,role:"tab","aria-selected":n},e);vl.propTypes={label:rW.string.isRequired,isActive:rW.bool.isRequired,onClick:rW.func.isRequired,ariaSelected:rW.bool};var eg=eh("j89Fe");let vs=({children:e,className:t,theme:r,colorStyle:n})=>eu(eg).createElement("div",{className:eu(r0)("jfTabs",t)},e),vu=({children:e,activeTab:t,onClick:r})=>eu(eg).createElement(vl,{label:e,isActive:t,onClick:r,ariaSelected:t});var eg=eh("j89Fe");let vc=(0,eg.forwardRef)(({maxLength:e,onChange:t=e=>e,value:r,resize:n="none",autoSize:a,ghost:o,readOnly:i,disabled:l,...s},u)=>{let[c,d]=(0,eg.useState)(0),f=(0,eg.useRef)(null);return(0,eg.useEffect)(()=>{let e=f.current;e&&d("string"==typeof r?r.length:e.value?.length||0)},[r]),eu(eg).createElement("div",{className:`jfTextarea-container ${o?"jfTextarea-container--ghost":""} ${i?"jfTextarea-container--readonly":""}`},eu(eg).createElement("textarea",{ref:e=>{f.current=e,"function"==typeof u?u(e):u&&(u.current=e),e&&a&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},...s,value:r,maxLength:e,onChange:e=>{d(e.target.value.length),t&&t(e)},readOnly:i,disabled:l,style:{resize:"none"===n?"none":n}}),(e||i)&&eu(eg).createElement("div",{className:"jfTextarea-container--counter"},i&&eu(eg).createElement(nm,{className:"jfTextarea-container--lock"}),e&&`${c} / ${e}`))});vc.propTypes={maxLength:rW.number,onChange:rW.func,value:rW.string,resize:rW.string,autoSize:rW.bool,ghost:rW.bool,readOnly:rW.bool,disabled:rW.bool};var eg=eh("j89Fe");let vd=({id:e,children:t,className:r,size:n="medium",theme:a="light",compact:o,colorStyle:i,disabled:l,required:s,rounded:u,readOnly:c,themeClasses:d,...f})=>{let p=eu(r0)("jfFormControl","magnet-form-control",{"jfFormControl--compact":o},r);return eu(eg).createElement(r4.Provider,{value:{id:e,colorStyle:i,size:n,disabled:l,required:s,readOnly:c,theme:a,compact:o,rounded:u}},eu(eg).createElement("div",{id:e,className:p,"data-size":n,"data-theme":a,...f},t))};vd.propTypes={id:rW.string,children:rW.node,className:rW.string,size:rW.string,theme:rW.string,compact:rW.bool,colorStyle:rW.string,disabled:rW.bool,required:rW.bool,rounded:rW.string,readOnly:rW.bool,themeClasses:rW.string},vd.defaultProps={size:"medium",theme:"light"};var eg=eh("j89Fe");let vf=({children:e,description:t,className:r,required:n,compact:a,htmlFor:o,...i})=>{let l=(0,eg.useContext)(r4),s=o??l?.id;return eu(eg).createElement("label",{className:`jfFormLabel ${r||""}`,htmlFor:s,...i},eu(eg).createElement("strong",{className:"jfFormLabel--text"},e,n&&eu(eg).createElement("span",{className:"jfFormLabel--required"}," *")),t&&eu(eg).createElement("span",{className:`jfFormLabel--description${a?" jfFormLabel--description-compact":""}`},t))};vf.propTypes={children:rW.node,description:rW.string,className:rW.string,size:rW.string,htmlFor:rW.string,required:rW.bool,compact:rW.bool,theme:rW.string};var eg=eh("j89Fe");let vp=({children:e,colorStyle:t,id:r,hideIcon:n,compact:a,theme:o})=>eu(eg).createElement("div",{className:eu(r0)("jfFormHelperText-wrapper",a&&"jfFormHelperText-wrapper--compact")},eu(eg).createElement("p",{id:r,className:eu(r0)("jfFormHelperText",{"jfFormHelperText--error":"error"===t,"jfFormHelperText--success":"success"===t})},!n&&("success"===t?eu(eg).createElement(nr,{className:"jfFormHelperText--icon"}):"error"===t?eu(eg).createElement(ni,{className:"jfFormHelperText--icon"}):null),e));vp.propTypes={children:rW.node,colorStyle:rW.string,id:rW.string,hideIcon:rW.bool,compact:rW.bool,theme:rW.string};var eg=(eh("j89Fe"),eh("j89Fe")),vh=e=>eu(eg).createElement("input",e),eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"),eh("j89Fe")),vm=((R=vm||{})[R.Left=0]="Left",R[R.Right=2]="Right",R),eg=(eh("j89Fe"),eh("j89Fe")),vg=((j=vg||{})[j.Ignore=0]="Ignore",j[j.Select=1]="Select",j[j.Close=2]="Close",j);let vv={kind:0},vb={kind:2};var eg=eh("j89Fe");let vy=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function vw(e){var t,r;let n=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!aN(a))return n;let o=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let i=o?null!=(r=a.innerText)?r:"":n;return vy.test(i)&&(i=i.replace(vy,"")),i}function vE(e){return[e.screenX,e.screenY]}var eg=(eh("j89Fe"),eh("j89Fe")),vx=((T=vx||{})[T.First=0]="First",T[T.Previous=1]="Previous",T[T.Next=2]="Next",T[T.Last=3]="Last",T[T.Specific=4]="Specific",T[T.Nothing=5]="Nothing",T);function v_(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:throw Error("Unexpected object: "+e)}}var eg=(eh("j89Fe"),eh("j89Fe"),eh("j89Fe"));let vS=(0,eg.createContext)(void 0),vC=(0,eg.createContext)(null);function vO(){let e=(0,eg.useContext)(vC);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,vO),e}return e}function vk({inherit:e=!1}={}){var t,r;let n,a=n=null!=(r=null==(t=(0,eg.useContext)(vC))?void 0:t.value)?r:void 0,[o,i]=(0,eg.useState)([]),l=e?[a,...o].filter(Boolean):o;return[l.length>0?l.join(" "):void 0,(0,eg.useMemo)(()=>function(e){let t=aO(e=>(i(t=>[...t,e]),()=>i(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),r=(0,eg.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return eu(eg).createElement(vC.Provider,{value:r},e.children)},[i])]}vC.displayName="LabelContext",Object.assign(oa(function(e,t){var r;let n=(0,eg.useId)(),a=vO(),o=(0,eg.useContext)(vS),i=gF(),{id:l=`headlessui-label-${n}`,htmlFor:s=null!=o?o:null==(r=a.props)?void 0:r.htmlFor,passive:u=!1,...c}=e,d=oH(t);aS(()=>a.register(l),[l,a.register]);let f=aO(e=>{var t;let r=e.currentTarget;if(!(e.target!==e.currentTarget&&aA(t=e.target)&&t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'))&&(aI(r)&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),aI(r))){let e=document.getElementById(r.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(aM(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=oD({...a.slot,disabled:i||!1}),h={ref:d,...a.props,id:l,htmlFor:s,onClick:f};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in c&&delete c.onClick),a7()({ourProps:h,theirProps:c,slot:p,defaultTag:s?"label":"div",name:a.name||"Label"})}),{});let vR={kind:"Idle"},vj={kind:"Moved"};function vT(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var vF=Object.defineProperty,vA=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?vF(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},vN=((F=vN||{})[F.Open=0]="Open",F[F.Closed=1]="Closed",F),vP=((A=vP||{})[A.Pointer=0]="Pointer",A[A.Other=1]="Other",A),vM=((N=vM||{})[N.OpenMenu=0]="OpenMenu",N[N.CloseMenu=1]="CloseMenu",N[N.GoToItem=2]="GoToItem",N[N.Search=3]="Search",N[N.ClearSearch=4]="ClearSearch",N[N.RegisterItems=5]="RegisterItems",N[N.UnregisterItems=6]="UnregisterItems",N[N.SetButtonElement=7]="SetButtonElement",N[N.SetItemsElement=8]="SetItemsElement",N[N.SortItems=9]="SortItems",N[N.MarkButtonAsMoved=10]="MarkButtonAsMoved",N);function vI(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=aJ(t(e.items.slice()),e=>e.dataRef.current.domRef.current),a=r?n.indexOf(r):null;return -1===a&&(a=null),{items:n,activeItemIndex:a}}let vL={1(e){if(1===e.menuState)return e;let t=e.buttonElement?{kind:"Tracked",position:vT(e.buttonElement)}:e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:vx.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:vR},2:(e,t)=>{var r,n,a,o,i;if(1===e.menuState)return e;let l={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===vx.Nothing)return{...l,activeItemIndex:null};if(t.focus===vx.Specific)return{...l,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===vx.Previous){let r=e.activeItemIndex;if(null!==r){let o=e.items[r].dataRef.current.domRef,i=v_(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(n=o.current)?void 0:n.previousElementSibling)===t.current||(null==(a=t.current)?void 0:a.previousElementSibling)===null)return{...l,activeItemIndex:i}}}}else if(t.focus===vx.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,a=v_(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(o=n.current)?void 0:o.nextElementSibling)===t.current||(null==(i=t.current)?void 0:i.nextElementSibling)===null)return{...l,activeItemIndex:a}}}}let s=vI(e),u=v_(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let r=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=a?e.items.indexOf(a):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==vx.Nothing&&(n=v_(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:vx.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],a=new Set(t.items);for(let[e,t]of r.entries())if(a.has(t.id)&&(n.push(e),a.delete(t.id),0===a.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...vI(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:vj}};class vD extends ox{constructor(e){super(e),vA(this,"actions",{registerItem:oO(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:oO(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),vA(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,a=e.items;return null!==n&&(null==(r=a[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=oA.get(null);this.disposables.add(t.on(oj.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,r){let n=ax();if("Tracked"===t.kind){let a=function(){o!==vT(e)&&(n.dispose(),r())},{position:o}=t,i=new ResizeObserver(a);i.observe(e),n.add(()=>i.disconnect()),n.addEventListener(window,"scroll",a,{passive:!0}),n.addEventListener(window,"resize",a)}return()=>n.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new vD({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:vx.Nothing},buttonPositionState:vR})}reduce(e,t){return az(t.type,vL,e,t)}}var eg=eh("j89Fe");let vz=(0,eg.createContext)(null);function vB(e){let t=(0,eg.useContext)(vz);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,vH),t}return t}function vH({id:e,__demoMode:t=!1}){let r=(0,eg.useMemo)(()=>vD.new({id:e,__demoMode:t}),[]);return lx(()=>r.dispose()),r}let vU=eg.Fragment,v$=a9.RenderStrategy|a9.Static,vW=eg.Fragment,vV=oa(function(e,t){let r=(0,eg.useId)(),{__demoMode:n=!1,...a}=e,o=vH({id:r,__demoMode:n}),[i,l,s]=oP(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),u=oH(t),c=oA.get(null);a4(oP(c,(0,eg.useCallback)(e=>c.selectors.isTop(e,r),[c,r])),[s,l],(e,t)=>{var r;o.send({type:vM.CloseMenu}),aG(t,aq.Loose)||(e.preventDefault(),null==(r=o.state.buttonElement)||r.focus())});let d=aO(()=>{o.send({type:vM.CloseMenu})}),f=oD({open:i===vN.Open,close:d}),p=a7();return eu(eg).createElement(lf,null,eu(eg).createElement(vz.Provider,{value:o},eu(eg).createElement(lb,{value:az(i,{[vN.Open]:lg.Open,[vN.Closed]:lg.Closed})},p({ourProps:{ref:u},theirProps:a,slot:f,defaultTag:vU,name:"Menu"}))))}),vq=oa(function(e,t){var r;let n,a=vB("Menu.Button"),o=(0,eg.useId)(),{id:i=`headlessui-menu-button-${o}`,disabled:l=!1,autoFocus:s=!1,...u}=e,c=(0,eg.useRef)(null),d=(0,eg.useContext)(li).getReferenceProps,f=oH(t,c,lu(),aO(e=>a.send({type:vM.SetButtonElement,element:e}))),p=aO(e=>{switch(e.key){case lE.Space:case lE.Enter:case lE.ArrowDown:e.preventDefault(),e.stopPropagation(),a.send({type:vM.OpenMenu,focus:{focus:vx.First}});break;case lE.ArrowUp:e.preventDefault(),e.stopPropagation(),a.send({type:vM.OpenMenu,focus:{focus:vx.Last}})}}),h=aO(e=>{e.key===lE.Space&&e.preventDefault()}),[m,g,v]=oP(a,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,{trigger:t,action:r,close:n,select:a}){let o=(0,eg.useRef)(null),i=(0,eg.useRef)(null),l=(0,eg.useRef)(null);a1(e&&null!==t,"pointerdown",e=>{aF(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(i.current=e.x,l.current=e.y,o.current=e.timeStamp)}),a1(e&&null!==t,"pointerup",e=>{var t,s;let u=o.current;if(null===u||(o.current=null,!aP(e.target))||5>Math.abs(e.x-(null!=(t=i.current)?t:e.x))&&5>Math.abs(e.y-(null!=(s=l.current)?s:e.y)))return;let c=r(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(a(c.target),n());break;case 2:n()}},{capture:!0})}(m===vN.Open,{trigger:g,action:(0,eg.useCallback)(e=>{if(null!=g&&g.contains(e.target))return vv;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return aN(t)?{kind:1,target:t}:null!=v&&v.contains(e.target)?vv:vb},[g,v]),close:(0,eg.useCallback)(()=>a.send({type:vM.CloseMenu}),[]),select:(0,eg.useCallback)(e=>e.click(),[])});let b=(r=e=>{var t;l||(m===vN.Open?((0,iK.flushSync)(()=>a.send({type:vM.CloseMenu})),null==(t=c.current)||t.focus({preventScroll:!0})):(e.preventDefault(),a.send({type:vM.OpenMenu,focus:{focus:vx.Nothing},trigger:vP.Pointer})))},n=(0,eg.useRef)(null),{onPointerDown:aO(e=>{n.current=e.pointerType,lw(e.currentTarget)||"mouse"!==e.pointerType||e.button!==vm.Left||(e.preventDefault(),r(e))}),onClick:aO(e=>{"mouse"!==n.current&&(lw(e.currentTarget)||r(e))})}),{isFocusVisible:y,focusProps:w}=au({autoFocus:s}),{isHovered:E,hoverProps:x}=ah({isDisabled:l}),{pressed:_,pressProps:S}=ak({disabled:l}),C=oD({open:m===vN.Open,active:_||m===vN.Open,disabled:l,hover:E,focus:y,autofocus:s}),O=on(d(),{ref:f,id:i,type:a8(e,c.current),"aria-haspopup":"menu","aria-controls":null==v?void 0:v.id,"aria-expanded":m===vN.Open,disabled:l||void 0,autoFocus:s,onKeyDown:p,onKeyUp:h},b,w,x,S);return a7()({ourProps:O,theirProps:u,slot:C,defaultTag:"button",name:"Menu.Button"})}),vG=oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-menu-items-${r}`,anchor:a,portal:o=!1,modal:i=!0,transition:l=!1,...s}=e,u=ls(a),c=vB("Menu.Items"),[d,f]=ld(u),p=lc(),[h,m]=(0,eg.useState)(null),g=oH(t,u?d:null,aO(e=>c.send({type:vM.SetItemsElement,element:e})),m),[v,b]=oP(c,e=>[e.menuState,e.buttonElement]),y=a5(b),w=a5(h);u&&(o=!0);let E=lv(),[x,_]=oq(l,h,null!==E?(E&lg.Open)===lg.Open:v===vN.Open);aD(x,b,()=>{c.send({type:vM.CloseMenu})});let S=oP(c,e=>e.__demoMode);oL(!S&&i&&v===vN.Open,w),gR(!S&&i&&v===vN.Open,{allowed:(0,eg.useCallback)(()=>[b,h],[b,h])});let C=!oP(c,c.selectors.didButtonMove)&&x;(0,eg.useEffect)(()=>{h&&v===vN.Open&&(aw(h)===h||h.focus({preventScroll:!0}))},[v,h]),function(e,{container:t,accept:r,walk:n}){let a=(0,eg.useRef)(r),o=(0,eg.useRef)(n);(0,eg.useEffect)(()=>{a.current=r,o.current=n},[r,n]),aS(()=>{if(!t||!e)return;let r=ab(t);if(!r)return;let n=a.current,i=o.current,l=Object.assign(e=>n(e),{acceptNode:n}),s=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,l,!1);for(;s.nextNode();)i(s.currentNode)},[t,e,a,o])}(v===vN.Open,{container:h,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let O=a_(),k=aO(e=>{var t,r,n;switch(O.dispose(),e.key){case lE.Space:if(""!==c.state.searchQuery)return e.preventDefault(),e.stopPropagation(),c.send({type:vM.Search,value:e.key});case lE.Enter:if(e.preventDefault(),e.stopPropagation(),null!==c.state.activeItemIndex){let{dataRef:e}=c.state.items[c.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}c.send({type:vM.CloseMenu}),aK(c.state.buttonElement);break;case lE.ArrowDown:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Next});case lE.ArrowUp:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Previous});case lE.Home:case lE.PageUp:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.First});case lE.End:case lE.PageDown:return e.preventDefault(),e.stopPropagation(),c.send({type:vM.GoToItem,focus:vx.Last});case lE.Escape:e.preventDefault(),e.stopPropagation(),(0,iK.flushSync)(()=>c.send({type:vM.CloseMenu})),null==(n=c.state.buttonElement)||n.focus({preventScroll:!0});break;case lE.Tab:e.preventDefault(),e.stopPropagation(),(0,iK.flushSync)(()=>c.send({type:vM.CloseMenu})),function(e,t,r=null===e?document.body:ay(e)){aY(aV(r),t,{relativeTo:e})}(c.state.buttonElement,e.shiftKey?aU.Previous:aU.Next);break;default:1===e.key.length&&(c.send({type:vM.Search,value:e.key}),O.setTimeout(()=>c.send({type:vM.ClearSearch}),350))}}),R=aO(e=>{e.key===lE.Space&&e.preventDefault()}),j=oD({open:v===vN.Open}),T=on(u?p():{},{"aria-activedescendant":oP(c,c.selectors.activeDescendantId),"aria-labelledby":oP(c,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:k,onKeyUp:R,role:"menu",tabIndex:v===vN.Open?0:void 0,ref:g,style:{...s.style,...f,"--button-width":aj(x,b,!0).width},...oV(_)}),F=a7();return eu(eg).createElement(lN,{enabled:!!o&&(e.static||x),ownerDocument:y},F({ourProps:T,theirProps:s,slot:j,defaultTag:"div",features:v$,visible:C,name:"Menu.Items"}))}),vK=oa(function(e,t){let r,n,a,o=(0,eg.useId)(),{id:i=`headlessui-menu-item-${o}`,disabled:l=!1,...s}=e,u=vB("Menu.Item"),c=oP(u,e=>u.selectors.isActive(e,i)),d=(0,eg.useRef)(null),f=oH(t,d),p=oP(u,e=>u.selectors.shouldScrollIntoView(e,i));aS(()=>{if(p)return ax().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[p,d]);let h=(r=(0,eg.useRef)(""),n=(0,eg.useRef)(""),aO(()=>{let e=d.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():vw(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return vw(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=a,a})),m=(0,eg.useRef)({disabled:l,domRef:d,get textValue(){return h()}});aS(()=>{m.current.disabled=l},[m,l]),aS(()=>(u.actions.registerItem(i,m),()=>u.actions.unregisterItem(i)),[m,i]);let g=aO(()=>{u.send({type:vM.CloseMenu})}),v=aO(e=>{if(l)return e.preventDefault();u.send({type:vM.CloseMenu}),aK(u.state.buttonElement)}),b=aO(()=>{if(l)return u.send({type:vM.GoToItem,focus:vx.Nothing});u.send({type:vM.GoToItem,focus:vx.Specific,id:i})}),y=(a=(0,eg.useRef)([-1,-1]),{wasMoved(e){let t=vE(e);return(a.current[0]!==t[0]||a.current[1]!==t[1])&&(a.current=t,!0)},update(e){a.current=vE(e)}}),w=aO(e=>y.update(e)),E=aO(e=>{y.wasMoved(e)&&(l||c||u.send({type:vM.GoToItem,focus:vx.Specific,id:i,trigger:vP.Pointer}))}),x=aO(e=>{y.wasMoved(e)&&(l||c&&u.state.activationTrigger===vP.Pointer&&u.send({type:vM.GoToItem,focus:vx.Nothing}))}),[_,S]=vk(),[C,O]=gN(),k=oD({active:c,focus:c,disabled:l,close:g}),R=a7();return eu(eg).createElement(S,null,eu(eg).createElement(O,null,R({ourProps:{id:i,ref:f,role:"menuitem",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-labelledby":_,"aria-describedby":C,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:w,onMouseEnter:w,onPointerMove:E,onMouseMove:E,onPointerLeave:x,onMouseLeave:x},theirProps:s,slot:k,defaultTag:vW,name:"Menu.Item"})))}),vZ=Object.assign(vV,{Button:vq,Items:vG,Item:vK,Section:oa(function(e,t){let[r,n]=vk(),a=a7();return eu(eg).createElement(n,null,a({ourProps:{ref:t,"aria-labelledby":r,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:oa(function(e,t){let r=(0,eg.useId)(),{id:n=`headlessui-menu-heading-${r}`,...a}=e,o=vO();aS(()=>o.register(n),[n,o.register]);let i={id:n,ref:t,role:"presentation",...o.props};return a7()({ourProps:i,theirProps:a,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:oa(function(e,t){return a7()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})}),vX=({children:e,placement:t="bottom-end",theme:r,open:n,setOpen:a,triggerElement:o})=>eu(eg).createElement(vZ,{as:"div",className:"relative"},eu(eg).createElement(vq,{as:eu(eg).Fragment},o?o():eu(eg).createElement("button",{type:"button"},"Menu")),eu(eg).createElement(vG,{anchor:t,className:"jfMenu-panel"},e)),vJ=({children:e})=>eu(eg).createElement("div",{className:"jfMenu-list"},e),vY=({children:e})=>eu(eg).createElement("div",{className:"jfMenu-item"},e),vQ=()=>eu(eg).createElement("div",{className:"jfMenu-divider"}),v0=({children:e,onClick:t,colorStyle:r})=>eu(eg).createElement(vK,null,({focus:n})=>eu(eg).createElement("button",{type:"button",className:`jfMenu-item-button ${"error"===r?"jfMenu-item-button--error":""} ${n?"jfMenu-item-button--focus":""}`,onClick:t},e)),v1=({icon:e})=>e?eu(eg).createElement("span",{className:"jfMenu-item-icon"},eu(eg).createElement(e,null)):null,v2=({children:e})=>eu(eg).createElement("span",{className:"jfMenu-item-title"},e);var eg=eh("j89Fe");let v4=({open:e,onClose:t,children:r,ariaLabel:n})=>eu(eg).createElement(vr,{open:e,onClose:t,className:"jfDialog","aria-label":n},eu(eg).createElement("div",{className:"jfDialog-backdrop","aria-hidden":"true"}),eu(eg).createElement(vt,{className:"jfDialog-panel"},r)),v5=({children:e,className:t})=>eu(eg).createElement("div",{className:`jfDialog-body ${t||""}`},e),v8=({icon:e,colorStyle:t})=>eu(eg).createElement("div",{className:`jfDialog-icon jfDialog-icon--${t||"default"}`},e&&eu(eg).createElement(e,null)),v3=({children:e})=>eu(eg).createElement("h2",{className:"jfDialog-title"},e),v9=({children:e,className:t})=>eu(eg).createElement("p",{className:`jfDialog-description ${t||""}`},e),v6=({children:e})=>eu(eg).createElement("div",{className:"jfDialog-actions"},e),v7=({onClick:e})=>eu(eg).createElement(r7,{onClick:e,startIcon:eu(eg).createElement(nn,null),colorStyle:"secondary",rounded:!0,className:"jfDialog-close"});var eg=eh("j89Fe");let be=e=>e,bt=[{Logo:nx,name:"HTML"},{Logo:()=>null,name:"Shopify"},{Logo:()=>null,name:"WordPress"},{Logo:()=>null,name:"Wix"},{Logo:()=>null,name:"Ghost"}];var eg=eh("j89Fe");let br=(e,t)=>{if(!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}apiKey=${encodeURIComponent(t)}`};var eg=(eh("j89Fe"),eh("j89Fe")),bn=e=>{let{min:t,max:r,step:n,defaultValue:a,value:o,name:i,fieldIndex:l,handleChange:s,unit:u,subFieldIndex:c,groupIndex:d,disabled:f,readOnly:p}=e,h=o??a,m=(h-t)/(r-t)*100;return eu(eg).createElement("div",{className:"range-slider"},eu(eg).createElement(vh,{id:e.id,min:t,max:r,step:n||1,disabled:f||p,"aria-label":e["aria-label"]||e.label||i,type:"range",className:"range-slider__range",value:h,onChange:e=>s(void 0,Number(e.target.value),i,l,c,d),style:{background:`linear-gradient(90deg, #09F ${m}%, var(--jfv-gray-300) ${m}%)`}}),eu(eg).createElement("p",{className:"range-input__value"},h,u))},eg=eh("j89Fe");let ba=new Set(["font_family","custom_css"]),bo=e=>JSON.parse(JSON.stringify(e||[])),bi=(e=[],t)=>{e.forEach(e=>{t(e),(e.fields||[]).length>0&&bi(e.fields,t)})},bl=(e=[],t)=>{e.forEach(({fields:e=[],tabs:r=[]})=>{r.length>0?r.forEach(e=>bi(e.fields||[],t)):bi(e,t)})},bs=e=>`${e?.name||e?.title||e?.label||""}`.trim().toLowerCase(),bu=({id:e,name:t,label:r,size:n,disabled:a,layouts:o,options:i=[],schema:l,propertiesMap:s,setSchema:u,handleChange:c,fieldIndex:d,subFieldIndex:f,groupIndex:p,value:h,defaultValue:m,refreshApp:g,widgetUpdating:v,readOnly:b})=>{let y=i.length>0?i:[{value:"carousel",label:"Carousel"},{value:"slider",label:"Slider"},{value:"badge",label:"Badge"},{value:"grid",label:"Grid"},{value:"list",label:"List"},{value:"masonry",label:"Masonry"}];return eu(eg).createElement(nA,{id:e,"aria-label":be(r||"Layout options"),size:n,theme:"dark",rounded:"both",value:void 0!==h?h:m,disabled:a||v||b,onChange:e=>(e=>{let r=e,n=["title_text"];if("layout"===t){var a,i;let h,m=o.find(e=>e.name===r);if(!m?.schema)return void c(void 0,r,t,d,f,p);let v=(a=l,i=bo(m.schema),(h=[],(a||[]).forEach((e,t)=>{let r=(r,n,a)=>{(r||[]).forEach(r=>{let o,i=(o=[],bi([r],e=>{ba.has(e.name)&&o.push(e.name)}),o);0!==i.length&&h.push({field:r,fieldNames:i,stepIndex:t,stepKey:bs(e),tabIndex:a,tabKey:bs(n)})})};(e.tabs||[]).length>0?e.tabs.forEach((e,t)=>r(e.fields,e,t)):r(e.fields)}),h).forEach(e=>{let t;if(e.fieldNames.every(e=>{let t;return t=!1,bl(i,r=>{r.name===e&&(t=!0)}),t}))return;let r=(t=i.find(t=>e.stepKey&&bs(t)===e.stepKey)||i[e.stepIndex])?void 0===e.tabIndex?t:(t.tabs||[]).find(t=>e.tabKey&&bs(t)===e.tabKey)||t.tabs?.[e.tabIndex]||t:null;r&&(r.fields=[...r.fields||[],bo(e.field)])}),i);bl(v,t=>{if("layout"===t.name)t.value=r;else if(void 0!==s[t.name]&&!n.includes(t.name)){let r=s[t.name],n=(t.options||[]).filter(t=>!t.reviewLayouts||t.reviewLayouts.includes(e));"select"===t.type&&n.length>0&&!n.some(e=>String(e.value)===String(r))?t.value=n.find(e=>e.value===t.default)?.value??n[0].value:t.value=r}}),u(v),g(v)}else c(void 0,r,t,d,f,p)})(e.target.value)},y.map(e=>eu(eg).createElement(nN,{key:e.value,value:e.value},be(e.label))))};bu.propTypes={name:eu(rW).string,layouts:eu(rW).array,schema:eu(rW).array,propertiesMap:eu(rW).object,setSchema:eu(rW).func,refreshApp:eu(rW).func,handleChange:eu(rW).func,fieldIndex:eu(rW).number,subFieldIndex:eu(rW).number,groupIndex:eu(rW).number,value:eu(rW).string,defaultValue:eu(rW).string,widgetUpdating:eu(rW).bool,readOnly:eu(rW).bool};var eg=eh("j89Fe"),bc=e=>{let{fields:t=[],fieldIndex:r,handleChange:n,subFieldIndex:a,FieldRenderer:o,widgetSlug:i}=e;return eu(eg).createElement("div",{style:{gap:"16px",display:"flex",marginTop:"16px"}},t.map((t,l)=>eu(eg).createElement(o,{...t,key:t.name||l,className:"mt-4",groupIndex:l,fieldIndex:r,handleChange:n,subFieldIndex:a,widgetSlug:i,propertiesMap:e.propertiesMap,updateProperty:e.updateProperty,widgetUpdating:e.widgetUpdating,disabled:e.disabled,readOnly:e.readOnly})))},eg=eh("j89Fe"),bd=({id:e,value:t="{}",name:r,handleChange:n,fieldIndex:a,subFieldIndex:o,groupIndex:i,templateID:l,action:s,setWidgetUpdating:u,setHasError:c,placeholder:d,infoMessage:f,secondaryInfoMessage:p,setCustomErrorMessage:h,hasError:m,widgetUpdating:g,reviewSyncActive:v,onCancelReviewSync:b,onFetchReviews:y})=>{let{apiKey:w}=rO(),E={};try{E=JSON.parse(t||"{}")}catch(e){E={}}let[x,_]=(0,eg.useState)(!1),[S,C]=(0,eg.useState)([]),O=(0,eg.useRef)(null),k=(0,eg.useMemo)(()=>E&&"object"==typeof E&&null!==E&&(E.text||E.value)?E:null,[E]),R=(0,eg.useMemo)(()=>k?.text?k.text:"",[k,E]);(0,eg.useEffect)(()=>{k&&k.value&&k.text&&k.address&&C(e=>e.some(e=>e.value===k.value)?e:[...e,{value:k.value,label:k.text,text:k.text,address:k.address}])},[k]);let j=(0,eg.useMemo)(()=>S,[S]),T=j.length>0,F=(0,eg.useRef)(null),A=(0,eg.useRef)(null),N=(0,eg.useCallback)(e=>{let t=e?.data?.data||e?.data||e?.content?.data||e?.content||e,r=t?.data?.results||t?.results||(Array.isArray(t)?t:t?.business_name?[t]:[]),n=new Set;C(r.filter(e=>e?.business_name&&e?.place_id).map(e=>({value:e.place_id,label:e.business_name,text:e.business_name,address:e.formatted_address||""})).filter(e=>!n.has(e.value)&&(n.add(e.value),!0)))},[]),P=(0,eg.useCallback)(e=>{e&&(N(e),_(!0))},[N]),M=(0,eg.useCallback)(e=>/(?:maps\.app\.goo\.gl|google\.[^/]+\/maps|maps\.google\.)/i.test(e),[]),I=(0,eg.useRef)(n);(0,eg.useEffect)(()=>{I.current=n},[n]),(0,eg.useEffect)(()=>()=>{O.current&&clearTimeout(O.current),F.current&&clearTimeout(F.current),A.current?.abort()},[]);let L=(0,eg.useCallback)(()=>{O.current=setTimeout(()=>{_(!1)},200)},[]),D=(0,eg.useMemo)(()=>{if(0===j.length)return null;let e=j[0];return{value:e.value,text:e.label||e.text||String(e.value||""),address:e.address}},[j]),z=(0,eg.useCallback)(async e=>{let t=e?.sourceUrl,n=t?null:e||D;if((t||n&&n.value)&&(t||I.current(void 0,JSON.stringify(n),r,a,o,i),t||l&&n?.value)){_(!1);let r=t?e.sourceUrl:`https://www.google.com/maps/place/?q=place_id:${encodeURIComponent(n.value)}`;await y?.(r)}},[D,r,a,o,i,l,y]),B=(0,eg.useCallback)(async e=>{b?.(),C([]);let t=e.target.value;n(void 0,JSON.stringify({text:t}),r,a,o,i),""===t&&(c(!1),h("")),F.current&&clearTimeout(F.current),A.current?.abort(),F.current=setTimeout(async()=>{if(s&&t&&l&&t.trim().length>=2){let{param:e,actionName:r}=s,n=r;if(M(t)&&"fetchReviews"!==r){n="fetchReviews",z({sourceUrl:t,useWorker:1});return}let a=new AbortController;A.current=a,u(!0),c&&c(!1);try{let r,o=await fetch((r=`/website-widgets/templates/${l}/execute-action?action=${n}&${e}=${encodeURIComponent(t)}`,br(`https://api.jotform.com${r}`,w)),{method:"GET",signal:a.signal});if(200===o.status){let e=await o.json(),t=e.content||e.data||e;t&&P(t)}200!==o.status&&c&&c(!0)}catch(e){"AbortError"!==e.name&&c&&c(!0)}finally{A.current===a&&(A.current=null,u(!1))}}},500)},[n,r,a,o,i,s,l,u,c,P,b,z,M]),H=(0,eg.useCallback)(()=>{O.current&&(clearTimeout(O.current),O.current=null),_(!0)},[]),U=!R||x||m?f:p,$=!!U?.trim();return eu(eg).createElement("div",{className:"searchable-place__root"},eu(eg).createElement(nk,{id:e,autoComplete:"off",inputClassName:"searchable-place-searchInput","aria-label":be("Search"),prefix:{icon:()=>eu(eg).createElement(no,{style:{width:"1.25rem"}}),as:"span","aria-hidden":!0,className:"searchable-place-searchIcon"},placeholder:be(d),value:R,onChange:B,onFocus:H,onBlur:L,disabled:g&&!x}),v&&eu(eg).createElement("div",{className:"searchable-place__sync-status",role:"status","aria-live":"polite"},eu(eg).createElement("span",{className:"searchable-place__sync-dot"}),eu(eg).createElement("p",{className:"searchable-place__sync-text"},be("Fetching reviews..."))),!v&&!m&&$&&(!T||!x)&&eu(eg).createElement("div",{className:"searchable-place__info"},eu(eg).createElement(nl,{className:"searchable-place__info-icon"}),eu(eg).createElement("p",{className:"searchable-place__info-text",dangerouslySetInnerHTML:{__html:U}})),T&&x&&eu(eg).createElement("div",{className:"searchable-place__dropdown"},j.map(e=>eu(eg).createElement("div",{key:e.value,className:"searchable-place__dropdown-option",onClick:()=>z(e),onMouseDown:e=>e.preventDefault(),role:"button",tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),z(e))}},eu(eg).createElement(nd,{className:"searchable-place__dropdown-icon"}),eu(eg).createElement("div",{className:"searchable-place__dropdown-content"},eu(eg).createElement("div",{className:"searchable-place__dropdown-title"},e.text),e.address&&eu(eg).createElement("div",{className:"searchable-place__dropdown-address"},e.address))))))},eg=eh("j89Fe");let bf="data-jfrwg-font",bp=e=>{if("u"<typeof document||!e||["site","system"].includes(`${e}`.toLowerCase()))return;let t=encodeURIComponent(`${e}`).replace(/%20/g,"+"),r=`https://cdn.jotfor.ms/fonts/?family=${t}&display=swap`;if(document.head.querySelector(`link[${bf}][href="${r}"]`))return;let n=document.createElement("link");n.rel="stylesheet",n.href=r,n.setAttribute(bf,"true"),document.head.appendChild(n)},bh=({name:e="font_family",label:t="Font",value:r,defaultValue:n="site",options:a=[],handleChange:o,fieldIndex:i,subFieldIndex:l,groupIndex:s,readOnly:u=!1,disabled:c=!1,className:d=""})=>{let f=`${void 0!==r?r:n}`,p=(0,eg.useMemo)(()=>a.find(e=>`${e.value}`===f),[a,f]),h=p?.fontFamily||"inherit",m=c||u,[g,v]=(0,eg.useState)(!1),b=(0,eg.useRef)(null);return(0,eg.useEffect)(()=>{bp(f)},[f]),(0,eg.useEffect)(()=>{if(!g)return;let e=e=>{b.current?.contains(e.target)||v(!1)},t=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[g]),eu(eg).createElement("div",{className:`font-family-selector ${d}`},eu(eg).createElement("div",{ref:b,className:"font-family-selector__select"},eu(eg).createElement("button",{id:e,type:"button","aria-expanded":g,"aria-haspopup":"listbox","aria-label":be(t||e),className:"font-family-selector__control",disabled:m,onClick:()=>v(e=>!e),onKeyDown:e=>{["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),v(!0))}},eu(eg).createElement("span",{className:"font-family-selector__value"},be(p?.label||f)),eu(eg).createElement("span",{"aria-hidden":"true",className:"font-family-selector__arrow"})),g&&eu(eg).createElement("div",{role:"listbox","aria-label":be(t||e),className:"font-family-selector__options"},a.map(t=>{let r=`${t.value}`,n=r===f;return eu(eg).createElement("button",{key:t.value,type:"button",role:"option","aria-selected":n,className:`font-family-selector__option${n?" is-selected":""}`,style:t.fontFamily?{fontFamily:t.fontFamily}:void 0,onClick:()=>{!m&&(bp(r),o(void 0,r,e,i,l,s),v(!1))}},be(t.label||t.value))}))),eu(eg).createElement("div",{"aria-hidden":"true",className:"font-family-selector__preview",style:{fontFamily:h}},be("The quick brown fox jumps over the lazy dog")))};bh.propTypes={name:rW.string,label:rW.string,value:(0,rW.oneOfType)([rW.string,rW.number]),defaultValue:(0,rW.oneOfType)([rW.string,rW.number]),options:(0,rW.arrayOf)((0,rW.shape)({value:(0,rW.oneOfType)([rW.string,rW.number]).isRequired,label:rW.string,fontFamily:rW.string})),handleChange:rW.func.isRequired,fieldIndex:rW.number,subFieldIndex:rW.number,groupIndex:rW.number,readOnly:rW.bool,disabled:rW.bool,className:rW.string};var eg=eh("j89Fe"),bm={};bm=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:a}=Object,{freeze:o,seal:i,create:l}=Object,{apply:s,construct:u}="u">typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),s||(s=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return e.apply(t,n)}),u||(u=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});let c=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),f=S(Array.prototype.pop),p=S(Array.prototype.push),h=S(Array.prototype.splice),m=S(String.prototype.toLowerCase),g=S(String.prototype.toString),v=S(String.prototype.match),b=S(String.prototype.replace),y=S(String.prototype.indexOf),w=S(String.prototype.trim),E=S(Object.prototype.hasOwnProperty),x=S(RegExp.prototype.test),_=(K=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u(K,t)});function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return s(e,t,n)}}function C(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){let e=a(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function O(t){let r=l(null);for(let[n,a]of e(t))E(t,n)&&(Array.isArray(a)?r[n]=function(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?r[n]=O(a):r[n]=a);return r}function k(e,t){for(;null!==e;){let r=a(e,t);if(r){if(r.get)return S(r.get);if("function"==typeof r.value)return S(r.value)}e=n(e)}return function(){return null}}let R=o(["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"]),j=o(["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","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["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"]),F=o(["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"]),A=o(["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"]),N=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=o(["#text"]),M=o(["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"]),I=o(["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","mask-type","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"]),L=o(["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"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=i(/<%[\w\W]*|[\w\W]*%>/gm),H=i(/\$\{[\w\W]*/gm),U=i(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=i(/^aria-[\-\w]+$/),W=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=i(/^(?:\w+script|data):/i),q=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=i(/^html$/i);var K,Z=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:i(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:U,DOCTYPE_NAME:G,ERB_EXPR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:z,TMPLIT_EXPR:H});let X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},J=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};return function t(){let r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=e=>t(e);if(a.version="3.3.3",a.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return a.isSupported=!1,a;let{document:i}=n,s=i,u=s.currentScript,{DocumentFragment:S,HTMLTemplateElement:z,Node:B,Element:H,NodeFilter:U,NamedNodeMap:$=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:V,DOMParser:q,trustedTypes:K}=n,Y=H.prototype,Q=k(Y,"cloneNode"),ee=k(Y,"remove"),et=k(Y,"nextSibling"),er=k(Y,"childNodes"),en=k(Y,"parentNode");if("function"==typeof z){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ea="",{implementation:eo,createNodeIterator:ei,createDocumentFragment:el,getElementsByTagName:es}=i,{importNode:eu}=s,ec=J();a.isSupported="function"==typeof e&&"function"==typeof en&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:ed,ERB_EXPR:ef,TMPLIT_EXPR:ep,DATA_ATTR:eh,ARIA_ATTR:em,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:eb}=Z,{IS_ALLOWED_URI:ey}=Z,ew=null,eE=C({},[...R,...j,...T,...A,...P]),ex=null,e_=C({},[...M,...I,...L,...D]),eS=Object.seal(l(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}})),eC=null,eO=null,ek=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eR=!0,ej=!0,eT=!1,eF=!0,eA=!1,eN=!0,eP=!1,eM=!1,eI=!1,eL=!1,eD=!1,ez=!1,eB=!0,eH=!1,eU=!0,e$=!1,eW={},eV=null,eq=C({},["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"]),eG=null,eK=C({},["audio","video","img","source","image","track"]),eZ=null,eX=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eJ="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e4=C({},[eJ,eY,eQ],g),e5=C({},["mi","mo","mn","ms","mtext"]),e8=C({},["annotation-xml"]),e3=C({},["title","style","font","a","script"]),e9=null,e6=["application/xhtml+xml","text/html"],e7=null,te=null,tt=i.createElement("form"),tr=function(e){return e instanceof RegExp||e instanceof Function},tn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=O(e),e7="application/xhtml+xml"===(e9=-1===e6.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?g:m,ew=E(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):eE,ex=E(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):e_,e2=E(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,g):e4,eZ=E(e,"ADD_URI_SAFE_ATTR")?C(O(eX),e.ADD_URI_SAFE_ATTR,e7):eX,eG=E(e,"ADD_DATA_URI_TAGS")?C(O(eK),e.ADD_DATA_URI_TAGS,e7):eK,eV=E(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eq,eC=E(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):O({}),eO=E(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):O({}),eW=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,eR=!1!==e.ALLOW_ARIA_ATTR,ej=!1!==e.ALLOW_DATA_ATTR,eT=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eF=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eA=e.SAFE_FOR_TEMPLATES||!1,eN=!1!==e.SAFE_FOR_XML,eP=e.WHOLE_DOCUMENT||!1,eL=e.RETURN_DOM||!1,eD=e.RETURN_DOM_FRAGMENT||!1,ez=e.RETURN_TRUSTED_TYPE||!1,eI=e.FORCE_BODY||!1,eB=!1!==e.SANITIZE_DOM,eH=e.SANITIZE_NAMED_PROPS||!1,eU=!1!==e.KEEP_CONTENT,e$=e.IN_PLACE||!1,ey=e.ALLOWED_URI_REGEXP||W,e0=e.NAMESPACE||eQ,e5=e.MATHML_TEXT_INTEGRATION_POINTS||e5,e8=e.HTML_INTEGRATION_POINTS||e8,eS=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eS.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tr(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eS.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eS.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eA&&(ej=!1),eD&&(eL=!0),eW&&(ew=C({},P),ex=l(null),!0===eW.html&&(C(ew,R),C(ex,M)),!0===eW.svg&&(C(ew,j),C(ex,I),C(ex,D)),!0===eW.svgFilters&&(C(ew,T),C(ex,I),C(ex,D)),!0===eW.mathMl&&(C(ew,A),C(ex,L),C(ex,D))),E(e,"ADD_TAGS")||(ek.tagCheck=null),E(e,"ADD_ATTR")||(ek.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ek.tagCheck=e.ADD_TAGS:(ew===eE&&(ew=O(ew)),C(ew,e.ADD_TAGS,e7))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ek.attributeCheck=e.ADD_ATTR:(ex===e_&&(ex=O(ex)),C(ex,e.ADD_ATTR,e7))),e.ADD_URI_SAFE_ATTR&&C(eZ,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eV===eq&&(eV=O(eV)),C(eV,e.FORBID_CONTENTS,e7)),e.ADD_FORBID_CONTENTS&&(eV===eq&&(eV=O(eV)),C(eV,e.ADD_FORBID_CONTENTS,e7)),eU&&(ew["#text"]=!0),eP&&C(ew,["html","head","body"]),ew.table&&(C(ew,["tbody"]),delete eC.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ea=(r=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===r&&(r=X(K,u)),null!==r&&"string"==typeof ea&&(ea=r.createHTML(""));o&&o(e),te=e}},ta=C({},[...j,...T,...F]),to=C({},[...A,...N]),ti=function(e){let t=en(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let r=m(e.tagName),n=m(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eQ?"svg"===r:t.namespaceURI===eJ?"svg"===r&&("annotation-xml"===n||e5[n]):!!ta[r]:e.namespaceURI===eJ?t.namespaceURI===eQ?"math"===r:t.namespaceURI===eY?"math"===r&&e8[n]:!!to[r]:e.namespaceURI===eQ?(t.namespaceURI!==eY||!!e8[n])&&(t.namespaceURI!==eJ||!!e5[n])&&!to[r]&&(e3[r]||!ta[r]):"application/xhtml+xml"===e9&&!!e2[e.namespaceURI])},tl=function(e){p(a.removed,{element:e});try{en(e).removeChild(e)}catch(t){ee(e)}},ts=function(e,t){try{p(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eL||eD)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let t=null,n=null;if(eI)e="<remove></remove>"+e;else{let t=v(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===e9&&e0===eQ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let a=r?r.createHTML(e):e;if(e0===eQ)try{t=new q().parseFromString(a,e9)}catch(e){}if(!t||!t.documentElement){t=eo.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?ea:a}catch(e){}}let o=t.body||t.documentElement;return(e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),e0===eQ)?es.call(t,eP?"html":"body")[0]:eP?t.documentElement:o},tc=function(e){return ei.call(e.ownerDocument||e,e,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},td=function(e){return e instanceof V&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof $)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tf=function(e){return"function"==typeof B&&e instanceof B};function tp(e,t,r){c(e,e=>{e.call(a,t,r,te)})}let th=function(e){let t=null;if(tp(ec.beforeSanitizeElements,e,null),td(e))return tl(e),!0;let r=e7(e.nodeName);if(tp(ec.uponSanitizeElement,e,{tagName:r,allowedTags:ew}),eN&&e.hasChildNodes()&&!tf(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||7===e.nodeType||eN&&8===e.nodeType&&x(/<[/\w]/g,e.data))return tl(e),!0;if(!(ek.tagCheck instanceof Function&&ek.tagCheck(r))&&(!ew[r]||eC[r])){if(!eC[r]&&tg(r)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,r)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(r)))return!1;if(eU&&!eV[r]){let t=en(e)||e.parentNode,r=er(e)||e.childNodes;if(r&&t){let n=r.length;for(let a=n-1;a>=0;--a){let n=Q(r[a],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,et(e))}}}return tl(e),!0}return e instanceof H&&!ti(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eA&&3===e.nodeType&&(t=e.textContent,c([ed,ef,ep],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(a.removed,{element:e.cloneNode()}),e.textContent=t)),tp(ec.afterSanitizeElements,e,null),!1)},tm=function(e,t,r){if(eO[t]||eB&&("id"===t||"name"===t)&&(r in i||r in tt))return!1;if(ej&&!eO[t]&&x(eh,t));else if(eR&&x(em,t));else if(ek.attributeCheck instanceof Function&&ek.attributeCheck(t,e));else if(!ex[t]||eO[t]){if(!(tg(e)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,e)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(e))&&(eS.attributeNameCheck instanceof RegExp&&x(eS.attributeNameCheck,t)||eS.attributeNameCheck instanceof Function&&eS.attributeNameCheck(t,e))||"is"===t&&eS.allowCustomizedBuiltInElements&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,r)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(r))))return!1}else if(eZ[t]);else if(x(ey,b(r,ev,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===y(r,"data:")&&eG[e]);else if(eT&&!x(eg,b(r,ev,"")));else if(r)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&v(e,eb)},tv=function(e){tp(ec.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||td(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ex,forceKeepAttr:void 0},o=t.length;for(;o--;){let{name:i,namespaceURI:l,value:s}=t[o],u=e7(i),d="value"===i?s:w(s);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,tp(ec.uponSanitizeAttribute,e,n),d=n.attrValue,eH&&("id"===u||"name"===u)&&(ts(i,e),d="user-content-"+d),eN&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===u&&v(d,"href")){ts(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr||!eF&&x(/\/>/i,d)){ts(i,e);continue}eA&&c([ed,ef,ep],e=>{d=b(d,e," ")});let p=e7(e.nodeName);if(!tm(p,u,d)){ts(i,e);continue}if(r&&"object"==typeof K&&"function"==typeof K.getAttributeType)if(l);else switch(K.getAttributeType(p,u)){case"TrustedHTML":d=r.createHTML(d);break;case"TrustedScriptURL":d=r.createScriptURL(d)}if(d!==s)try{l?e.setAttributeNS(l,i,d):e.setAttribute(i,d),td(e)?tl(e):f(a.removed)}catch(t){ts(i,e)}}tp(ec.afterSanitizeAttributes,e,null)},tb=function e(t){let r=null,n=tc(t);for(tp(ec.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)tp(ec.uponSanitizeShadowNode,r,null),th(r),tv(r),r.content instanceof S&&e(r.content);tp(ec.afterSanitizeShadowDOM,t,null)};return a.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tf(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}else throw _("toString is not a function");if(!a.isSupported)return e;if(eM||tn(t),a.removed=[],"string"==typeof e&&(e$=!1),e$){if(e.nodeName){let t=e7(e.nodeName);if(!ew[t]||eC[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)1===(o=(n=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!eL&&!eA&&!eP&&-1===e.indexOf("<"))return r&&ez?r.createHTML(e):e;if(!(n=tu(e)))return eL?null:ez?ea:""}n&&eI&&tl(n.firstChild);let u=tc(e$?e:n);for(;i=u.nextNode();)th(i),tv(i),i.content instanceof S&&tb(i.content);if(e$)return e;if(eL){if(eD)for(l=el.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(ex.shadowroot||ex.shadowrootmode)&&(l=eu.call(s,l,!0)),l}let d=eP?n.outerHTML:n.innerHTML;return eP&&ew["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x(G,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),eA&&c([ed,ef,ep],e=>{d=b(d,e," ")}),r&&ez?r.createHTML(d):d},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tn(e),eM=!0},a.clearConfig=function(){te=null,eM=!1},a.isValidAttribute=function(e,t,r){return te||tn({}),tm(e7(e),e7(t),r)},a.addHook=function(e,t){"function"==typeof t&&p(ec[e],t)},a.removeHook=function(e,t){if(void 0!==t){let r=d(ec[e],t);return -1===r?void 0:h(ec[e],r,1)[0]}return f(ec[e])},a.removeHooks=function(e){ec[e]=[]},a.removeAllHooks=function(){ec=J()},a}()}();let bg=({value:e="",placeholder:t="",maxLength:r,rows:n=6,disabled:a=!1,readOnly:o=!1,className:i="",onChange:l})=>eu(eg).createElement("div",{className:`custom-css-editor ${i}`},eu(eg).createElement(vc,{"aria-label":"Custom CSS editor",autoComplete:"off",className:"custom-css-editor__input",disabled:a,maxLength:r,placeholder:t,readOnly:o,resize:"vertical",rows:n,spellCheck:!1,value:e||"",onBlur:e=>{let t=eu(bm).sanitize(e.target.value,{FORBID_TAGS:["style","script"]});t!==e.target.value&&l(t)},onChange:e=>l(e.target.value)}));bg.propTypes={value:rW.string,placeholder:rW.string,maxLength:rW.number,rows:rW.number,disabled:rW.bool,readOnly:rW.bool,className:rW.string,onChange:rW.func.isRequired};var eg=eh("j89Fe");let bv=e=>{let t=e?.review_id??e?.reviewId??e?.submissionID??e?.id;if(null!=t&&""!=`${t}`)return`id:${t}`;if(e?.reviewIdentity)return e.reviewIdentity;let r=[e?.url,e?.published].filter(Boolean),n=(2===r.length?r:[e?.name,e?.published||e?.date,e?.rating,e?.text]).map(e=>`${e||""}`.trim()).join("\0"),a=0x811c9dc5,o=0x9e3779b1;for(let e=0;e<n.length;e+=1)a=(31*a+n.charCodeAt(e))%0xfffffffb,o=(131*o+n.charCodeAt(e))%0xfffffffb;return`review:${a.toString(16).padStart(8,"0")}${o.toString(16).padStart(8,"0")}`},bb=(e,t)=>{let r=t[e.field]??e.defaultValue;return"value"in e?r===e.value:"notValue"in e?r!==e.notValue:e.oneOf?e.oneOf.includes(r):e.notOneOf?!e.notOneOf.includes(r):!!r},by=(e,t={})=>{if(e.hidden)return!1;if(e.renderIf){let r=t[e.renderIf]??e.renderIfDefault;if(e.renderIfOneOf){if(!e.renderIfOneOf.includes(r))return!1}else if(void 0!==e.renderIfValue){if(r!==e.renderIfValue)return!1}else if(!r)return!1}return(!e.renderIfAll||e.renderIfAll.every(e=>bb(e,t)))&&(!e.renderIfAny||e.renderIfAny.some(e=>bb(e,t)))},bw=[{key:"question",type:"text",label:"Question",required:!0,maxLength:200},{key:"answer",type:"textarea",label:"Answer",required:!0,maxLength:4e3},{key:"reviewId",type:"select",label:"Supporting review"}];var bE=({value:e,defaultValue:t,name:r,itemFields:n=bw,maxItems:a=20,addButtonLabel:o="Add question",propertiesMap:i,onChange:l,disabled:s})=>{let u=(e=>{try{let t="string"==typeof e?JSON.parse(e):e;return Array.isArray(t)?t:[]}catch{return[]}})(e??t),[c,d]=(0,eg.useState)(null),[f,p]=(0,eg.useState)(null),[h,m]=(0,eg.useState)(""),g=(e=>{let t=e;if("string"==typeof t)try{t=JSON.parse(t)}catch{t={}}let r=Array.isArray(t)?t:t?.reviews,n=new Set;return(Array.isArray(r)?r:[]).filter(e=>{if(!e||"object"!=typeof e)return!1;let t=bv(e);return!n.has(t)&&(n.add(t),!0)}).map(e=>({value:bv(e),label:`${e.name||"Customer"} \u{2014} ${String(e.text||"").slice(0,80)}`}))})(i?.review_data),v=e=>l(JSON.stringify(e));return eu(eg).createElement("div",{className:"review-collection"},u.map((e,t)=>eu(eg).createElement("div",{className:"review-collection__item",key:e.id||t},eu(eg).createElement("strong",null,e.question),eu(eg).createElement("div",{className:"review-collection__actions"},eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>{p(t),d({...e}),m("")}},be("Edit")),eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>v(u.filter((e,r)=>r!==t))},be("Remove")),t>0&&eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||null!==c,onClick:()=>{let e=[...u];[e[t-1],e[t]]=[e[t],e[t-1]],v(e)}},be("Move up"))))),c?eu(eg).createElement("form",{onSubmit:e=>{for(let t of(e.preventDefault(),n)){let e=String(c[t.key]||"").trim();if(t.required&&!e)return void m(be("Complete all required fields."))}let t=[...u],r={...c,id:c.id||crypto.randomUUID()};null===f?t.push(r):t[f]=r,v(t),d(null),m("")},className:"review-collection__form"},n.map(e=>{let t=`${r}-${e.key}`,n=c[e.key]||"",a=t=>d(r=>({...r,[e.key]:t.target.value})),o=e.options||g;return n&&!o.some(e=>e.value===n)&&(o=[...o,{value:n,label:be("Previously selected review")}]),eu(eg).createElement("label",{htmlFor:t,key:e.key},eu(eg).createElement("span",null,be(e.label),e.required?" *":""),"select"===e.type?eu(eg).createElement(nA,{id:t,theme:"dark",value:n,required:e.required,disabled:s,onChange:a},eu(eg).createElement(nN,{value:""},be("Select a review")),o.map(e=>eu(eg).createElement(nN,{value:e.value,key:e.value},e.label))):"textarea"===e.type?eu(eg).createElement(vc,{id:t,value:n,rows:5,maxLength:e.maxLength,required:e.required,disabled:s,onChange:a}):eu(eg).createElement(nk,{id:t,theme:"dark",value:n,maxLength:e.maxLength,required:e.required,disabled:s,placeholder:e.placeholder,onChange:a}))}),h&&eu(eg).createElement("p",{role:"alert"},h),eu(eg).createElement("div",{className:"review-collection__actions"},eu(eg).createElement(r7,{type:"submit",size:"small",disabled:s},be("Save question")),eu(eg).createElement(r7,{type:"button",size:"small",variant:"outline",onClick:()=>{d(null),m("")}},be("Cancel")))):eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:s||u.length>=a,onClick:()=>{p(null),d({}),m("")}},be(o)))},eg=eh("j89Fe"),bx=({onChange:e,disabled:t,readOnly:r,...n})=>eu(eg).createElement("div",{className:"review-collection"},eu(eg).createElement(nk,{...n,disabled:t,readOnly:r,onChange:e}),"function"==typeof window.wp?.media&&eu(eg).createElement(r7,{size:"small",variant:"outline",disabled:t||r,onClick:()=>{let t=window.wp.media({title:be("Choose image"),library:{type:"image"},multiple:!1,button:{text:be("Use image")}});t.on("select",()=>{let r=t.state().get("selection").first()?.toJSON();r?.url&&e({target:{value:r.url}})}),t.open()}},be("Choose image")));let b_=new Set(["COMPLETED","FAILED","SUPERSEDED"]),bS=(e,t)=>br(`https://api.jotform.com${e}`,t),bC=(e,t)=>new Promise((r,n)=>{let a,o=()=>{window.clearTimeout(a),n(new DOMException("The operation was aborted.","AbortError"))};a=window.setTimeout(()=>{t?.removeEventListener("abort",o),r()},e),t?.addEventListener("abort",o,{once:!0})}),bO=async(e,t={})=>{let r,n=await fetch(e,t);if(!n.ok)throw Error("Review sync request failed.");return r=await n.json(),r?.content||r?.data?.content||r?.data||r},bk=(e,t)=>{let r=new Set;return[...e,...t].filter(e=>{let t=e?.id||e?.reviewId||e?.review_id||[e?.name||e?.author,e?.published||e?.date,e?.text,e?.rating].join("|");return!r.has(t)&&(r.add(t),!0)})},bR=(e,t={})=>{let r=e?.data&&"object"==typeof e.data?e.data:{};return{...t,...e,...r,data:{...t.data||{},...r},businessName:r.businessName||e?.businessName||t.businessName||"",totalReviews:Number(r.totalReviews??e?.totalReviews??t.totalReviews??0),overallRating:Number(r.overallRating??e?.overallRating??t.overallRating??0),shareFeedbackUrl:r.shareFeedbackUrl||e?.shareFeedbackUrl||t.shareFeedbackUrl||"",sourceUrl:r.sourceUrl||e?.sourceUrl||t.sourceUrl||""}},bj=({apiKey:e,jobHandle:t,revision:r,templateID:n,widgetID:a})=>a?bS(`/website-widgets/${a}/review-sync?afterRevision=${Math.max(0,r)}`,e):bS(`/website-widgets/templates/${n}/execute-action?action=checkStatus&jobHandle=${encodeURIComponent(t)}`,e),bT=e=>!!e?.jobHandle&&!b_.has(e?.status)&&e?.status!=="NOT_FOUND",bF=e=>(Array.isArray(e)?e:[]).filter(e=>e&&"object"==typeof e&&!Array.isArray(e)),bA=async({apiKey:e,initialContent:t,onUpdate:r,signal:n,templateID:a,widgetID:o})=>{let i=bR(t),l=i.jobHandle,s=i.sourceFingerprint||"",u=Number(i.revision||0),c=Array.isArray(i.reviews)?i.reviews:[],d=0===c.length;if(i={...i,reviews:c,preserveReviewsUntilFirstBatch:d},r?.(i),!l||b_.has(i.status))return i;for(;!n?.aborted;){let t="hidden"===document.visibilityState?5e3:2e3;await bC(t,n);let f=bR(await bO(bj({apiKey:e,jobHandle:l,revision:u,templateID:a,widgetID:o}),{method:"GET",signal:n}),i);if(n?.aborted||f.jobHandle&&f.jobHandle!==l||s&&f.sourceFingerprint&&f.sourceFingerprint!==s)break;let p=Array.isArray(f.reviews)?f.reviews:[];if(d&&p.length>0?(c=p,d=!1):d||"append"!==f.reviewsMode?!d&&p.length>0&&(c=p):c=bk(c,p),"COMPLETED"===f.status&&d&&(c=[],d=!1),u=Math.max(u,Number(f.revision||0)),i={...i,...f,jobHandle:l,revision:u,reviews:c,preserveReviewsUntilFirstBatch:d},r?.(i),b_.has(i.status))return i}return null},bN=async({apiKey:e,onUpdate:t,signal:r,sourceValue:n,templateID:a,widgetID:o})=>{let i;if(i=o?await bO(bS(`/website-widgets/${o}/review-sync`,e),{method:"POST",signal:r,headers:{"Content-Type":"application/json"},body:JSON.stringify({sourceField:"sourceUrl",sourceValue:n,params:{}})}):await bO(bS(`/website-widgets/templates/${a}/execute-action?action=fetchReviews&sourceUrl=${encodeURIComponent(n)}&useWorker=1`,e),{method:"GET",signal:r}),!i?.jobHandle){let e=bR({...i,status:i?.success===!1?"FAILED":"COMPLETED",preserveReviewsUntilFirstBatch:!1});return t?.(e),e}return bA({apiKey:e,initialContent:i,onUpdate:t,signal:r,templateID:a,widgetID:o})},bP=e=>{if(!e||"string"!=typeof e)return!1;try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!!t.hostname}catch(e){return!1}},bM=(e,t)=>br(`https://api.jotform.com${e}`,t),bI=new Set(["1","true","yes","on","enabled"]),bL=(e,t=!1)=>"boolean"==typeof e?e:"number"==typeof e?0!==e:null==e?t:bI.has(String(e).trim().toLowerCase()),bD=({id:e,action:t,apiKey:r,checked:n,disabled:a,onChange:o,propertiesMap:i,templateID:l,updateProperty:s})=>{let[u,c]=(0,eg.useState)(!1),[d,f]=(0,eg.useState)(""),p=e=>{if(e&&"object"==typeof e)return e;try{return JSON.parse(e||"{}")}catch(e){return{}}},h=p(i?.review_data),m=p(i?.[t?.dataTarget]),g=""!==String(i?.source_url||"").trim()&&Array.isArray(h.reviews)&&h.reviews.some(e=>""!==String(e?.text||"").trim()),v=!!(m?.success&&m?.summary),b=async()=>{if(!t||!g)return void f("Add a Google review source before generating a summary.");c(!0),f(t.loadingMessage||"Generating summary...");try{let e=await fetch(bM(`/website-widgets/templates/${l}/execute-action?action=${t.actionName}`,r),{method:t.requestMethod||"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t.param]:h})}),n=await e.json(),a=n?.content||n?.data||n;if(!e.ok||!a?.success||!a?.summary)throw Error(a?.message||"Could not generate the review summary.");s(t.dataTarget,JSON.stringify(a)),f("AI summary generated from the current reviews.")}catch(e){o(!1),f(e.message||"Could not generate the review summary.")}finally{c(!1)}},y=async e=>{let t=e?.target?.checked??!n;t&&!g?f("Add a review source before enabling AI-generated summary."):(o(t),t)?t&&await b():f("")};return eu(eg).createElement("div",{className:"ai-review-summary"},eu(eg).createElement("div",{className:"ai-review-summary__toggle"},eu(eg).createElement(nR,{id:e,"aria-label":be("AI-Generated Summary"),checked:n,disabled:a||u,onChange:y,size:"medium"}),eu(eg).createElement("span",null,n?be("AI summary enabled"):be("Enable AI summary"))),n&&v&&eu(eg).createElement(r7,{colorStyle:"secondary",disabled:a||u,loader:u,onClick:b,size:"small",theme:"dark",variant:"outline"},be("Regenerate")),d&&eu(eg).createElement("p",{className:"ai-review-summary__message","aria-live":"polite"},d))},bz=(e,t,r)=>{e(!0),t(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:r}),"review_data",0)},bB=null,bH=async({fieldValue:e,action:t,templateID:r,handleChange:n,setWidgetUpdating:a,setHasError:o,onEmptyValue:i,setCustomErrorMessage:l,mockData:s,apiKey:u})=>{if(!t)return{shouldReturn:!0};if(!e||"string"==typeof e&&"https://"===e)return i&&i(),{shouldReturn:!0};bB&&bB.abort();let{signal:c}=bB=new AbortController,{param:d,actionName:f,dataTarget:p}=t;a(!0),o&&(o(!1),l("")),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:[]}),"review_data",0);try{let t=await fetch(bM(`/website-widgets/templates/${r}/execute-action?action=${f}&${d}=${encodeURIComponent(e)}&useWorker=1`,u),{method:"GET",signal:c});if(c.aborted)return{shouldReturn:!0};if(200===t.status){let{content:e}=await t.json();if(c.aborted)return{shouldReturn:!0};if(e.jobHandle){let t=async e=>{if(c.aborted)return null;let a=await fetch(bM(`/website-widgets/templates/${r}/execute-action?action=checkStatus&jobHandle=${encodeURIComponent(e)}`,u),{method:"GET",signal:c});if(c.aborted)return null;if(200===a.status){let r=await a.json();return c.aborted?null:r.content?.status==="FAILED"?(o(!0),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:s}),"review_data",0),null):r.content?.status==="COMPLETED"||r.content?.status==="PROCESSING"&&r.content?.reviews?.length>0?r.content:(await new Promise(e=>setTimeout(e,3e3)),c.aborted)?null:t(e)}return null},a=await t(e.jobHandle);if(c.aborted)return{shouldReturn:!0};a&&(a.reviews=bF(a.reviews),a.reviews?.length>0?n(void 0,JSON.stringify({...a,reviews:a.reviews}),p,0):(o(!0),l("No reviews found for this listing."),n(void 0,JSON.stringify({totalReviews:191,overallRating:4.3,reviews:s}),"review_data",0)))}else e.success?n(void 0,JSON.stringify({...e,reviews:bF(e.reviews)}),p,0):bz(o,n,s)}else bz(o,n,s)}catch(e){return"AbortError"!==e.name&&bz(o,n,s),{shouldReturn:!0}}finally{bB===c&&(bB=null),a(!1)}return{shouldReturn:!1}},bU=e=>{let t,{apiKey:r}=rO(),{type:n,options:a,label:o,subLabel:i,value:l,default:s="",name:u,handleChange:c,className:d="",renderFormControl:f=!1,action:p,placeholder:h,fields:m=[],fieldIndex:g,size:v,reverseCondition:b=!1,subFieldIndex:y,required:w=!1,groupIndex:E,templateID:x,setWidgetUpdating:_,refreshApp:S,hasError:C,setHasError:O,propertiesMap:k,widgetUpdating:R,widgetSlug:j,mockData:T,reviewSyncActive:F,onCancelReviewSync:A,onFetchReviews:N,maxLength:P,rows:M,readOnly:I=!1,disabled:L=!1,updateProperty:D}=e,[z,B]=(0,eg.useState)(""),H={},[U,$]=eu(eg).useState(!1),W=!1;if(!by(e,k))return null;let V=L||I||R||"preview"===j,q=`${u}-input`;switch(n){case"radio":t=()=>eu(eg).createElement("div",{className:"field-renderer__radio-options"},a.map((e,t)=>eu(eg).createElement("div",{key:t,className:"field-renderer__radio-option"},eu(eg).createElement(nF,{id:`${q}-${t}`,name:u,value:e.value,disabled:V,size:v,theme:"dark",onChange:()=>c(a[t].value,void 0,u,g,y,E),label:be(e.label),checked:(void 0!==l?l:s)===e.value}))));break;case"range":t=bn,H={...e,defaultValue:s,value:l,required:w,size:v,handleChange:c};break;case"url":t=nk,H={...e,placeholder:be(h),required:w,colorStyle:C?"error":"default",size:v,prefix:{text:"https://",variant:"filled",as:"label",htmlFor:"phone-input"},value:String(l??s).replace(/^https:\/\//,""),onChange:async e=>{let t=e.target.value,n=/^https?:\/\//i.test(t)?t:`https://${t}`;if(A?.(),c(void 0,n,u,g,y,E),!p){O(!bP(n)&&"https://"!==n),B("");return}if(bP(n)){if("fetchReviews"===p.actionName)return void await N?.(n);await bH({fieldValue:n,action:p,templateID:x,handleChange:c,setWidgetUpdating:_,setHasError:O,setCustomErrorMessage:B,mockData:T,apiKey:r})}else O("https://"!==n),B(""),_(!1)}};break;case"toggle":t=nR;let G=void 0!==l?l:s,K="theme"===u,Z=K?"dark"===String(G).toLowerCase():bL(G,bL(s));H={size:v,required:w,checked:Z,readOnly:V,onChange:t=>{if(V)return;let r=t?.target?.checked??!Z;c(void 0,K?r?"dark":"light":r,u,g,y,E),Object.entries((r?e.checkedApplyValues:e.uncheckedApplyValues)||{}).forEach(([e,t])=>D?.(e,t))}};break;case"aiReviewSummary":t=bD,H={action:p,apiKey:r,checked:bL(void 0!==l?l:s),disabled:L||R||"preview"===j,onChange:e=>c(void 0,e,u,g,y,E),propertiesMap:k,templateID:x,updateProperty:D};break;case"color":t=gS,H={colorStyle:U?"error":"default",pickerOptions:{offset:6,disableAlpha:!1,placement:"bottom-end",presetColors:void 0,onSwatchHover:void 0},size:"medium",rounded:"both",onChange:e=>{let t=e.target.value,r=(e=>{if(!e||""===e.trim())return!0;let t=document.createElement("div");return t.style.color=e,""!==t.style.color})(t);$(!r),r&&c(void 0,t,u,g,y,E)},value:void 0!==l?l:s,errorMessage:U?be("Please enter a valid color value (e.g., #FF0000, red, rgb(255,0,0))"):void 0};break;case"checkbox":t=nT,H={label:be(o),theme:"dark",size:"small",required:w,onChange:e=>e,style:{marginBottom:"8px"},onClick:()=>c(void 0,!bL(void 0!==l?l:s),u,g,y,E),checked:bL(void 0!==l?l:s)};break;case"text":t=nk,H={placeholder:be(h),size:v,required:w,rounded:"both",maxLength:P,theme:"dark",colorStyle:"default",showLockIconInReadOnly:!0,value:void 0!==l?l:s,onChange:async e=>{let t=e.target.value;if(c(void 0,t,u,g,y,E),p){if("fetchReviews"===p.actionName){A?.(),await N?.(t);return}await bH({fieldValue:t,action:p,templateID:x,handleChange:c,setWidgetUpdating:_,setHasError:O,onEmptyValue:()=>{_(!1)},mockData:T,apiKey:r})}}};break;case"group":t=()=>null;break;case"shrinkedGroup":t=bc,H={...e,defaultValue:s,value:l,FieldRenderer:bU,size:v,handleChange:c};break;case"layoutSelector":t=bu,H={...e,defaultValue:s,value:l,FieldRenderer:bU,size:v,handleChange:c,refreshApp:S,widgetUpdating:R};break;case"select":t=()=>{let e=(a||[]).filter(e=>(!e.reviewLayouts||e.reviewLayouts.includes(k?.layout||"carousel"))&&by(e,k)),t=void 0!==l?l:s;return"theme"===u&&"custom"!==t&&(t="dark"===t||bL(t)?"dark":"light"),eu(eg).createElement(nA,{id:q,"aria-label":be(o||u),size:v,required:w,rounded:"both",value:t,disabled:V,colorStyle:"default",showLockIconInReadOnly:!0,onChange:t=>{let r=t.target.value;c(void 0,r,u,g,y,E);let n=e.find(e=>String(e.value)===r);Object.entries(n?.applyValues||{}).forEach(([e,t])=>D?.(e,t))}},e.map(({value:e,label:t})=>eu(eg).createElement(nN,{key:e,value:e},be(t))))};break;case"fontFamilySelector":case"jotformFontSelector":t=bh,H={...e,defaultValue:s||"site",value:l,handleChange:c,readOnly:I||"preview"===j,disabled:L||R};break;case"textarea":"custom_css"===u?(t=bg,H={value:void 0!==l?l:s,placeholder:be(h),maxLength:P,rows:M,readOnly:I||"preview"===j,disabled:L||R,onChange:e=>c(void 0,P?e.slice(0,P):e,u,g,y,E)}):(t=vc,H={value:l??s,placeholder:be(h),maxLength:P,rows:M||4,disabled:V,onChange:e=>c(void 0,e.target.value,u,g,y,E)});break;case"mediaSource":t=bx,H={value:l??s,placeholder:"https://",disabled:V,onChange:e=>{let t=e.target.value;O(!!t&&!bP(t)),B(t&&!bP(t)?be("Enter a valid HTTP or HTTPS URL."):""),c(void 0,t,u,g,y,E)}};break;case"faq_editor":t=bE,H={...e,defaultValue:s,disabled:V,onChange:e=>c(void 0,e,u,g,y,E)};break;case"searchable_place":t=bd,W=!0,H={...e,reviewData:k?.review_data,defaultValue:s,value:l||`{"text":"${k?.source_url||""}"}`,handleChange:c,templateID:x,action:p,setWidgetUpdating:_,setHasError:O,placeholder:h,setCustomErrorMessage:B,hasError:C,reviewSyncActive:F,onCancelReviewSync:A,onFetchReviews:N,widgetUpdating:R||"preview"===j}}if(t){let r;if(!f&&void 0!==y)return eu(eg).createElement(t,{...H,id:q,"aria-label":be(o||u),className:"field-renderer__subfield",disabled:V,readOnly:I||"preview"===j,mockData:T});let a=(r=["toggle","checkbox"].includes(n)?bL(void 0!==l?l:s):void 0!==l?l:s,((b?!r:r)||["group"].includes(n))&&m);a=Array.isArray(a)?a.length>0:a;let p=(H.errorMessage||z)&&(C||U),h=!p&&H.infoMessage;return eu(eg).createElement("div",{key:u,className:d},eu(eg).createElement(vd,{id:u,size:v,theme:"dark",className:`field-renderer__form-control ${"toggle"===n?"field-renderer__form-control--row":"field-renderer__form-control--col"}`},!e.hideLabel&&eu(eg).createElement(vf,{htmlFor:q,size:v||"medium",description:be(i)},be(o||u)),eu(eg).createElement(t,{size:v,subFieldIndex:y,...H,id:q,"aria-label":be(o||u),disabled:V,readOnly:I||"preview"===j,mockData:T}),p&&eu(eg).createElement(vp,{colorStyle:"error",id:`${u}-error`},be(z||H.errorMessage)),!p&&!W&&h&&H.value&&eu(eg).createElement("div",{className:"field-renderer__info-message"},eu(eg).createElement(nl,{className:"field-renderer__info-icon"}),eu(eg).createElement("p",{className:"field-renderer__info-text"},be(H.infoMessage)))),a&&m.map((e,t)=>eu(eg).createElement(bU,{...e,size:v,theme:"dark",key:t,className:"field-renderer__subfield",subFieldIndex:t,fieldIndex:g,handleChange:c,propertiesMap:k,updateProperty:D,widgetUpdating:R,setWidgetUpdating:_,setHasError:O,templateID:x,onFetchReviews:N,onCancelReviewSync:A,reviewSyncActive:F,disabled:L,readOnly:I,widgetSlug:j,mockData:T})))}};var b$={};b$=ec("f11hd");var bW={};bW=ec("hFZaV");var bV={};bV=ec("IfOcH");var bq={};bq=ec("5rBug");let bG="https://www.jotform.com",bK="google-reviews",bZ="jfrwg_pre_connect_wizard_state",bX="jfrwg_review_prompt_preference",bJ={[bK]:eu(b$)},bY={[bK]:eu(bq)},bQ=new Set(["toggle","checkbox","aiReviewSummary"]),b0=new Set(["1","true","yes","on","enabled"]),b1=new Set(["0","false","no","off","disabled",""]),b2=(e,t=!1)=>{if("boolean"==typeof e)return e;if("number"==typeof e)return 0!==e;if(null==e)return t;let r=String(e).trim().toLowerCase();return!!b0.has(r)||!b1.has(r)&&t},b4=e=>{try{window.localStorage.setItem(bX,JSON.stringify(e))}catch(e){}},b5=(e=[],t,r)=>e.map(e=>({...e,...e.name===t?{value:r}:{},...Array.isArray(e.fields)?{fields:b5(e.fields,t,r)}:{}})),b8=(e,t,r)=>(Array.isArray(e)?e:[]).map(e=>({...e,fields:b5(e.fields,t,r),tabs:Array.isArray(e.tabs)?e.tabs.map(e=>({...e,fields:b5(e.fields,t,r)})):e.tabs})),b3=(e,{enableCustomCssFromContent:t=!1}={})=>{let r={minimum_rating:{type:"range",label:"Minimum Rating",subLabel:"Only show reviews with this rating or higher.",min:1,max:5,step:1},include_non_text_reviews:{type:"toggle",label:"Include reviews without text"},include_review_keywords_enabled:{type:"toggle",label:"Include Reviews by Keywords"},include_review_keywords:{type:"text",label:"Keywords to include",placeholder:"Enter keywords separated by commas",renderIf:"include_review_keywords_enabled"},exclude_review_keywords_enabled:{type:"toggle",label:"Exclude Reviews by Keywords"},exclude_review_keywords:{type:"text",label:"Keywords to exclude",placeholder:"Enter keywords separated by commas",renderIf:"exclude_review_keywords_enabled"}},n=e=>{let a=(e.fields||[]).map(n),o={...e,...e.fields?{fields:a}:{}},i=r[e.name];if(i&&(o={...o,...i,hidden:!1}),["review_manual_rules","review_products_enabled","review_product_items","review_section_reverse"].includes(e.name)&&(o.hidden=!0),bQ.has(o.type)&&"theme"!==e.name&&(o={...o,default:b2(e.default),...void 0!==e.value?{value:b2(e.value,b2(e.default))}:{}}),"theme"===e.name){let t=t=>"custom"===t&&e.options?.some(e=>"custom"===e.value)?"custom":[!0,1,"1","true","dark"].includes(t)?"dark":"light";o.default=t(e.default),void 0!==e.value&&(o.value=t(e.value))}if(t&&"custom_css_enabled"===e.name){let e=a.find(e=>"custom_css"===e.name);""!==String(e?.value??e?.default??"").trim()&&(o.value=!0)}return"review_sync_method"===e.name?{...o,hidden:!1,type:"radio",label:"Review sync",subLabel:"Choose whether new Google reviews are refreshed automatically.",options:[{label:"Manual",value:"manual"},{label:"Automatic",value:"auto"}]}:"review_auto_sync_frequency"===e.name?{...o,hidden:!1,type:"select",label:"Auto-sync frequency",subLabel:"Choose how often published review data is refreshed.",renderIf:"review_sync_method",renderIfValue:"auto",options:[{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}]}:o};return e.map(e=>({...e,fields:(e.fields||[]).map(n),tabs:(e.tabs||[]).map(e=>({...e,fields:(e.fields||[]).map(n)}))}))},b9=(e=[],t)=>{for(let r of e){if(r.name===t)return void 0!==r.value?r.value:r.default;let e=b9(r.fields,t);if(void 0!==e)return e}},b6=e=>{let t=(e=>{if(e&&"object"==typeof e)return e;try{return JSON.parse(e||"{}")}catch(e){return{}}})(e);return Array.isArray(t)?{reviews:t}:t},b7=(e,t)=>{let r=((e,t)=>{for(let r of Array.isArray(e)?e:[]){let e=b9(r.fields,t);if(void 0!==e)return e;for(let e of Array.isArray(r.tabs)?r.tabs:[]){let r=b9(e.fields,t);if(void 0!==r)return r}}})(e,"review_data");return b6(null!=r&&""!==r?r:t)},ye=(e,t,r)=>{let n=Number(e??0);return r&&n<=0?Number(t??0):n},yt=({user:e,widgetID:r,updateState:n,requiresConnection:a=!1})=>{let o,{apiKey:i}=rO(),l=((e=768)=>{let[t,r]=(0,eg.useState)(!1);return(0,eg.useEffect)(()=>{let t=()=>{r(window.innerWidth<e)};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t})(480)||!("u"<typeof navigator)&&!!navigator.userAgent&&/Mobi|Android|iPhone|iPad|iPod|Mobile Safari|webOS|Silk|Kindle/i.test(navigator.userAgent),[s,u]=(new URLSearchParams(window.location.search).get("widgetSlug"),(0,eg.useState)(e)),c=(0,eg.useRef)(),d=(0,eg.useRef)(),f=(0,eg.useRef)(),[p,h]=(0,eg.useState)([]),[m,g]=(0,eg.useState)(),[v,b]=(0,eg.useState)(),[y,w]=(0,eg.useState)({}),[E,x]=(0,eg.useState)([]),{id:_}=y,[S,C]=(0,eg.useState)("Untitled"),[O,k]=(0,eg.useState)(!0),[R,j]=(0,eg.useState)(0),[T,F]=(0,eg.useState)(!1),[A,N]=(0,eg.useState)(""),[P,M]=(0,eg.useState)(null),[I,L]=(0,eg.useState)(null),[D,z]=(0,eg.useState)([]),[B,H]=(0,eg.useState)([]),[U,$]=(0,eg.useState)([]),[W,V]=(0,eg.useState)(!1),[q,G]=(0,eg.useState)(!1),[K,Z]=(0,eg.useState)(0),[X,J]=(0,eg.useState)(null),[Y,Q]=(0,eg.useState)(l?"mobile":"desktop"),[ee,et]=(0,eg.useState)(0),[er,en]=(0,eg.useState)(),[ea,eo]=(0,eg.useState)(!1),[ei,el]=(0,eg.useState)(null),[es,ec]=(0,eg.useState)(0),ed=(0,eg.useRef)(null),ef=(0,eg.useRef)({}),ep=(0,eg.useRef)(!1),eh=e=>{!e||ea&&c?.current?.contentWindow&&c.current.contentWindow.postMessage({value:{...e,deviceView:Y,landingUrl:y.landing_url,templateIcon:y.icon||eu(b$)},action:"updateWidgetState"},bG)};(0,eg.useEffect)(()=>eh({widgetUpdating:T}),[T,ea]);let em=async()=>{let e=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${bK}`,i),{method:"GET"}),{content:{all_widgets:t}}=await e.json();z(t)},ev=(e=[])=>{let t={};return e.forEach(({name:e,value:r,default:n,fields:a=[]})=>{t={...t,[e]:void 0!==r?r:n},a.length>0&&a.forEach(e=>{t=(e.fields||[]).length>0?{...t,...ev(e.fields)}:{...t,[e.name]:void 0!==e.value?e.value:e.default}})}),t},eb=(e=p)=>{let t={};return Array.isArray(e)?(e.forEach(({fields:e,tabs:r=[]})=>{r.length>0?r.forEach(({fields:e})=>{t={...t,...ev(e)}}):t={...t,...ev(e)}}),t.review_data)?t:{...t,review_data:E}:{}},ey=eb(),ew=U.find(e=>e.id===X)||U[0],eE=e=>e?.id===U[0]?.id?B:e?.schema,ex=e=>{let t=eb(eE(e));return e?.id!==U[0]?.id?t:{...t,review_data:b6(E)}},e_=(e,t=E)=>(ed.current?.abort(),ed.current=null,ef.current=b7(e,t),M(null),F(!1),e),eS=()=>{ed.current?.abort(),ed.current=null,M(null),F(!1);let e=JSON.stringify(ef.current);h(t=>b8(t,"review_data",e)),eh({review_data:e})},eC=(e,t=E)=>{ed.current?.abort(),ed.current=null,ef.current=b7(e,t),M(null),F(!1),h(e)},eO=async e=>{ed.current?.abort();let t=new AbortController;ed.current=t,ef.current=b7(p,E),e1(!1),F(!0),h(t=>b8(t,"source_url",e)),eh({source_url:e});try{await bN({apiKey:i,sourceValue:e,templateID:_,widgetID:v?.id||r,signal:t.signal,onUpdate:e=>{ed.current===t&&(e=>{var t;let r,n,a;if(!e)return;M(e);let o=(t=ef.current,r=e?.data&&"object"==typeof e.data?e.data:{},n=!!e?.preserveReviewsUntilFirstBatch,a=e?.preserveReviewsUntilFirstBatch?Array.isArray(t.reviews)?t.reviews:[]:bF(e?.reviews),{...t,...r,revision:e?.revision,jobHandle:e?.jobHandle,sourceFingerprint:e?.sourceFingerprint,status:e?.status,progress:e?.progress,message:e?.message,hasPartialData:e?.hasPartialData,errorCode:e?.errorCode,businessName:r.businessName||e?.businessName||t.businessName||"",totalReviews:ye(r.totalReviews??e?.totalReviews,t.totalReviews,n),overallRating:ye(r.overallRating??e?.overallRating,t.overallRating,n),shareFeedbackUrl:r.shareFeedbackUrl||e?.shareFeedbackUrl||t.shareFeedbackUrl||"",reviews:a});e.preserveReviewsUntilFirstBatch||(ef.current=o);let i=JSON.stringify(o);h(e=>b8(e,"review_data",i)),eh({review_data:i}),F(bT(e)&&!!e.preserveReviewsUntilFirstBatch),"FAILED"===e.status?e1(!0):"COMPLETED"===e.status&&e1(!1)})(e)}})}catch(e){"AbortError"!==e.name&&e1(!0)}finally{ed.current===t&&(ed.current=null,F(!1))}};(0,eg.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("jfrwg_preview_source")||I?.source;if(!e||!_||O||ep.current)return;ep.current=!0,eO(e);let t=new URL(window.location.href);t.searchParams.delete("jfrwg_preview_source"),window.history.replaceState({},document.title,t.pathname+t.search)},[_,O,I?.source]),(0,eg.useEffect)(()=>{if(!ea)return;let e=setTimeout(()=>{-3===R&&ew?eh({...eb(e_(b3(eE(ew),{enableCustomCssFromContent:!0}),E)),...ex(ew)}):eh({...ey,layout:ey?.layout||"carousel"})},1e3);return()=>clearTimeout(e)},[ea,R,X,U.length,E]),(0,eg.useEffect)(()=>{-1===R&&em(),ey?.layout==="badge"&&c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"openCloseBadgeSidebar",value:2===R},bG)},[R]);let ek=async()=>{let e=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${bK}${r?`?widgetID=${r}`:""}`,i),{method:"GET"}),{content:{widget:t,schema:n,template:o,layouts:l,all_widgets:s,mockData:u}}=await e.json(),c=null;if(!a)try{c=JSON.parse(window.localStorage.getItem(bZ)||"null"),(!c?.savedAt||Date.now()-c.savedAt>18e5)&&(c=null)}catch(e){c=null}let d=b3(n,{enableCustomCssFromContent:!r}),f=c?.properties?b3(((e,t={})=>Object.entries(t).reduce((e,[t,r])=>b8(e,t,r),e))(d,c.properties),{enableCustomCssFromContent:!r}):d;H([...d]),z(a?[]:s),c?(j(Math.min(Math.max(0,Number(c.currentStep)||0),f.length-1)),eN(Math.max(0,Number(c.tabStep)||0)),C(c.widgetName||"Untitled"),Q("mobile"===c.deviceView?"mobile":"desktop"),L({source:c.source||c.properties?.source_url||""}),window.localStorage.removeItem(bZ)):!a&&s&&s.length>0?(t&&eh({widgetID:r}),j(-2)):r||j(-3),b(t),h(e_(f,u)),w(o),g(l.map(e=>({...e,schema:b3(e.schema)}))),k(!1),x(u)};(0,eg.useEffect)(()=>{if(!_||U.length>0||W)return;let e=new AbortController;return(async()=>{V(!0),G(!1);try{let t=`https://api.jotform.com/website-widgets/templates/${encodeURIComponent(_)}/gallery-templates?language=en&limit=24`,r=await fetch(br(t,i),{signal:e.signal}),n=await r.json();if(!r.ok||!Array.isArray(n?.content?.templates))throw Error("Templates could not be loaded.");$(n.content.templates.filter(e=>Array.isArray(e.schema)&&e.schema.length>0))}catch(e){"AbortError"!==e.name&&G(!0)}finally{e.signal.aborted||V(!1)}})(),()=>e.abort()},[_,i,K]);let eR=(e,t="Untitled")=>{N("");let r=e_(b3(e,{enableCustomCssFromContent:!0}),E);tr(r),eC(r),h(r),C(t),j(0),eN(0),eL(!1)},ej=e=>{J(e.id),eh({...eb(e_(b3(eE(e),{enableCustomCssFromContent:!0}),E)),...ex(e)})},[eT,eF]=(0,eg.useState)(!0),[eA,eN]=(0,eg.useState)(0);(0,eg.useEffect)(()=>{d.current?.scrollTo(0,0)},[R,eA]);let[eP,eM]=(0,eg.useState)(""),[eI,eL]=(0,eg.useState)(l),[eD,ez]=(0,eg.useState)(!1),[eB,eH]=(0,eg.useState)(!1),[eU,e$]=(0,eg.useState)(!1),eW=((e,t,r)=>{let n=(e=>{let t=(0,eg.useContext)(rJ),r=()=>rY(e)||rY(t),[n,a]=(0,eg.useState)(r);return(0,eg.useEffect)(()=>{let e=r();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(let n=0;n<a;n++){let a=r[n];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(n,e)&&a(e)},[e,t]),n})(t),a=(e=>{let t=()=>{let t;return e.query||(t=[],Object.keys(rX).forEach(r=>{let n=e[r];null!=n&&t.push(((e,t)=>{let r=r$(e);if("number"==typeof t&&(t=`${t}px`),!0===t)return r;if(!1===t)return`not ${r}`;return`(${r}: ${t})`})(r,n))}),t.join(" and "))},[r,n]=(0,eg.useState)(t);return(0,eg.useEffect)(()=>{let e=t();r!==e&&n(e)},[e]),r})(e);if(!a)throw Error("Invalid or missing MediaQuery!");let o=((e,t)=>{let r=()=>eu(rR)(e,t||{},!!t),[n,a]=(0,eg.useState)(r),o=rQ();return(0,eg.useEffect)(()=>{if(o){let e=r();return a(e),()=>{e&&e.dispose()}}},[e,t]),n})(a,n),i=(e=>{let[t,r]=(0,eg.useState)(e.matches);return(0,eg.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t})(o),l=rQ();return(0,eg.useEffect)(()=>{l&&r&&r(i)},[i]),(0,eg.useEffect)(()=>()=>{o&&o.dispose()},[]),i})({query:"(max-width: 767px)"})?"small":"medium",eV="WordPress",[eq,eG]=(0,eg.useState)(!1),[eK,eZ]=(0,eg.useState)(null),[eX,eJ]=(0,eg.useState)(null),[eY,eQ]=(0,eg.useState)("ASC"),[e0,e1]=(0,eg.useState)(!1),[e2,e4]=(0,eg.useState)(!1),[e5,e8]=(0,eg.useState)(!1),[e3,e9]=(0,eg.useState)(null),[e6,e7]=(0,eg.useState)(null),te=(0,eg.useRef)(null);(0,eg.useEffect)(()=>{-2===R&&ee>1&&(b(),eC(B),ek()),et(e=>e+1)},[R]),(0,eg.useEffect)(()=>{if(eq&&f.current){let e=f.current.querySelector("input")||f.current;e&&"function"==typeof e.focus&&e.focus()}},[eq]),(0,eg.useEffect)(()=>{let e=te.current;if(!e)return;let t=()=>{null!==e6&&e7(null)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[e6]);let tt=(e,t,r,n,a,o)=>{if(!r)return;let i=[...p],l=void 0!==e?e:t;if("review_data"===r){let e=JSON.parse(l),{reviews:t=[]}=e;eh({[r]:JSON.stringify({...e,reviews:t})})}else eh({[r]:l});let s=(i[R]?.tabs||[]).length>0?i[R]?.tabs[eA]:i[R];void 0!==o?s.fields[n].fields[a].fields[o].value=l:void 0!==a?s.fields[n].fields[a].value=l:s.fields[n].value=l,h(i),"source_url"===r&&!(!l||""===l||"https://"===l)&&e0&&e1(!1)};(0,eg.useEffect)(()=>{let e=document.documentElement;return eD?e.classList.add("is-widget-fullscreen"):e.classList.remove("is-widget-fullscreen"),()=>{e.classList.remove("is-widget-fullscreen")}},[eD]),(0,eg.useEffect)(()=>{let e=null,t=null;return"u">typeof window&&"function"==typeof window.requestAnimationFrame?e=window.requestAnimationFrame(()=>eH(!0)):t=setTimeout(()=>eH(!0),0),()=>{null!==e&&"u">typeof window&&"function"==typeof window.cancelAnimationFrame&&window.cancelAnimationFrame(e),null!==t&&clearTimeout(t)}},[]);let tr=e=>{eh(eb(e))},tn=(e,t)=>{h(r=>b8(r,e,t)),eh({[e]:t})},{tabs:ta=[],name:to,step_button_text:ti}=p[R]||{},tl=[];ta.length>0?{fields:tl=[]}=ta[eA]:{fields:tl=[]}=p[R]||{};let ts=()=>{let e=eK||v;return e?`[jfrwg_widget id="${e.id}"]`:""},tu="mobile"===Y,tc=async()=>{if(a){let e=eb(),t=e.source_url||"";try{window.localStorage.setItem(bZ,JSON.stringify({properties:e,source:t,widgetName:S,currentStep:R,tabStep:eA,deviceView:Y,savedAt:Date.now()}))}catch(e){}let r=new URL(window.location.href);r.searchParams.delete("jfrwg_preview_source"),t&&r.searchParams.set("jfrwg_preview_source",t);let n=`https://www.jotform.com/api/oauth.php?registrationType=oauth&client_id=${encodeURIComponent("Jotform - Widgets for Google Reviews")}&access_type=full&auth_type=login&ref=${encodeURIComponent(r.toString())}&integration_auth=1&isNewLoginFlow=1&enterpriseLoginEndpoint=${encodeURIComponent("/api/legacy-oauth/enterprise-domain")}&rk=1&wpPlugin=1`;window.location.href=n;return}F(!0),e1(!1),N("");try{let e=v?`https://api.jotform.com/website-widgets/${v.id}`:`https://api.jotform.com/website-widgets?template_id=${_}`,t=eb();if(bT(P))delete t.review_data,t.reviewSyncJobHandle=P.jobHandle;else if(t.review_data){let e={...b6(t.review_data)};delete e.jobHandle,t.review_data=JSON.stringify(e)}let r=await fetch(br(e,i),{method:v?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,widget_name:S})}),a=await r.json(),o=a?.content?.widget;if(!r.ok||!o?.id)throw Error(a?.message||"Widget could not be saved.");b(o),eL(!0),eF(!0),eM("fullPreview"),!v&&(()=>{try{let e=JSON.parse(window.localStorage.getItem(bX)||"null");if(e?.status==="never"||e?.status==="reviewed")return!1;return!e?.remindAfter||Date.now()>=e.remindAfter}catch(e){return!0}})()&&e4(!0),n&&n({state:v?"2":"1",id:o.id})}catch(e){N(e.message||be("Widget could not be saved. Please try again."))}finally{F(!1)}};(0,eg.useEffect)(()=>{!I||a||O||T||I.source&&P?.status!=="COMPLETED"||(L(null),tc())},[I,a,O,T,P?.status]);let td=async(e,t)=>{try{let r=await fetch(br(`https://api.jotform.com/website-widgets/${e}`,i),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({widget_status:t})}),{content:{widget:n}}=await r.json();z(t=>t.map(t=>t.id===e?{...t,...n}:t))}catch(e){}},tf=async(e,t)=>{try{let r=await fetch(br(`https://api.jotform.com/website-widgets/${e}`,i),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({widget_name:t})}),{content:{widget:n}}=await r.json();b(n),b(n)}catch(e){}},tp=async(e,t)=>{await td(e,"ACTIVE"===t?"INACTIVE":"ACTIVE"),n&&n({state:"3",id:e})},th=async e=>{e9(e),e8(!0)},tm=async()=>{e3&&(await td(e3,"DELETED"),n&&n({state:"4",id:e3}),e8(!1),e9(null))},tg=async(e,t)=>{N(""),k(!0),t&&(en(t),c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"setDynamicWidgetSlug",value:"mywidgets"},bG));try{let r=await fetch(br(`https://api.jotform.com/website-widgets/mywidgets/${t||bK}?widgetID=${e}`,i),{method:"GET"}),{content:{widget:a,schema:o,template:l,layouts:s,mockData:u}}=await r.json();if(a){let r=e_(b3(o),u);b(a),C(a.name),h(r),w(l),x(u),g(s.map(e=>({...e,schema:b3(e.schema)}))),j(0),eM(""),eL(!1);let i=eb(r);"string"!=typeof i?.review_data&&i?.review_data?.length===0&&(i.review_data=u),eh({widgetID:e,...i}),n&&n({state:"5",id:e}),t&&setTimeout(()=>{c.current?.contentWindow&&c.current.contentWindow.postMessage({action:"setDynamicWidgetSlug",value:t},bG),e1(!1)},es>0?0:250)}}catch(e){}finally{k(!1),ec(e=>e+1)}};(0,eg.useEffect)(()=>{ek(),n&&n({state:"6",id:r})},[]);let tv=[{name:"WordPress",instructions:["In the block editor, add the [1[Jotform - Widgets for Google Reviews]] block. In the sidebar, use [1[Saved widgets]] to pick this widget.","[1[Update]] or [1[Publish]] the page.","Shortcode instead: click [1[Copy Shortcode]] and paste into a Shortcode block, Classic Editor, or custom HTML.","That's it!"]},{name:"HTML",svgIcon:nx,instructions:["Click the [1[Copy Code button]] on the previous screen to copy your embed code.","Open your [1[HTML file]] in a code editor (such as [1[VS Code]], [1[Sublime Text]], or [1[Notepad]]).","Locate the [1[<body>]] tag in your HTML file.","Paste your script inside the [1[<body>]] before the closing [1[</body>]] tag.","[1[Save]] your file.","That's it!"]},...bt].find(e=>e.name===eV),tb=["fullPreview","widgetLimitExceeded"].includes(eP),ty=D.filter(e=>"DELETED"!==e.status);return eu(eg).createElement("div",{className:eu(r0)("jf-wizard wizard",{"wizard--initializing":!eB,"wizard--ready":eB&&!eD,"wizard--fullscreen":eD&&eB}),style:{zIndex:eD?"100000":"unset",height:eD?"100dvh":"min(800px, calc(100dvh - 96px))"}},eu(eg).createElement("main",{className:eu(r0)("wizard__main",{"wizard__main--fullscreen":eD,"wizard__main--normal":!eD}),style:{maxWidth:eD?"unset":"1800px"}},eu(eg).createElement("header",{className:"wizard__header"},(0===R?v||ty.length>0:R>=-1||-3===R&&ty.length>0)&&eu(eg).createElement(r7,{rounded:!0,variant:"outline",showTextOnly:"sm",disabled:T,colorStyle:"secondary",startIcon:ns,size:eW,onClick:()=>{if(n&&n({state:"7",id:v?.id||r}),eP){eM(""),eL(!1);return}if(-3===R)return void j(-2);let e=0===R?R-2:R-1;j(e),e>=0&&eL(!1)},className:"wizard__back-button"},be("Back")),eu(eg).createElement("div",{className:eu(r0)("wizard__title-area",{"wizard__title-area--editable":R>=0,"wizard__title-area--full-width":eq}),onDoubleClick:()=>{R<0||eG(!0)}},R>=0&&(eq?eu(eg).createElement(nk,{ref:f,"aria-label":be("Widget name"),defaultValue:S,onBlur:e=>{e.target.value.length>0&&(C(e.target.value),v&&tf(v.id,e.target.value)),eG(!1)},ghost:!0,className:"wizard__title-input-wrapper",inputClassName:"wizard__title-input"}):eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("p",{className:"wizard__title-text",title:S},S),R>=0&&S&&eu(eg).createElement(r7,{"aria-label":be("Rename widget"),size:"small",variant:"ghost",colorStyle:"secondary",startIcon:nv,className:"wizard__title-edit-button",onClick:()=>{R<0||eG(!0)}})))),eu(eg).createElement(r7,{"aria-label":eD?be("Exit fullscreen"):be("Enter fullscreen"),colorStyle:"secondary",rounded:!0,startIcon:eD?nh:np,variant:"ghost",size:eW,onClick:()=>ez(!eD),className:"wizard__fullscreen-button"})),eu(eg).createElement("div",{className:"wizard__content-area"},!tb&&R>=0&&eu(eg).createElement(r7,{className:eu(r0)("aside-opener wizard__aside-opener",{"wizard__aside-opener--visible":eI,"wizard__aside-opener--hidden":!eI}),colorStyle:"teams",rounded:!0,size:eW,startIcon:nf,"aria-label":be("Open settings"),tabIndex:eI?0:-1,"aria-hidden":!eI,onClick:()=>eL(!1)}),-2===R&&eu(eg).createElement("div",{className:"wizard__step-1"},eu(eg).createElement("div",{className:"step-1-section wizard__step-1-inner"},eu(eg).createElement("div",{className:"wizard__step-1-content"},eu(eg).createElement("p",{className:"wizard__step-1-heading"},be(`Create your own ${y.name} widget in seconds and showcase real customer feedback.`)),eu(eg).createElement("p",{className:"wizard__step-1-description"},be(`Show real ${y.name} on your website to build trust and boost conversions. Sync reviews automatically and customize the widget \u{2014} no coding needed.`)),eu(eg).createElement("div",{className:"wizard__step-1-actions"},eu(eg).createElement(r7,{size:eW,className:"wizard__step-1-button",loader:T,onClick:()=>{n&&n({state:"12"}),J(null),j(-3)}},"Create new widget"),eu(eg).createElement(r7,{size:eW,className:"wizard__step-1-button",variant:"outline",colorStyle:"secondary",onClick:()=>{n&&n({state:"13"}),j(R+1)}},"Show my widgets"))),eu(eg).createElement("div",{className:"wizard__step-1-image"},eu(eg).createElement("img",{src:bY[bK]||bY[bK],alt:`${y.name} - Cover Image`,style:{maxWidth:"90%"}})))),-3===R&&eu(eg).createElement("aside",{className:"wizard__template-panel","aria-labelledby":"widget-template-title"},eu(eg).createElement("div",{className:"wizard__template-panel-header"},eu(eg).createElement("h2",{id:"widget-template-title"},be("Templates")),eu(eg).createElement(r7,{colorStyle:"secondary",theme:"dark",rounded:!0,size:eW,variant:"ghost",startIcon:nn,"aria-label":be("Close"),onClick:()=>{ty.length>0?j(-2):eR(B)}})),eu(eg).createElement("div",{className:"wizard__template-panel-content"},W&&eu(eg).createElement("div",{className:"wizard__template-panel-status","aria-live":"polite"},be("Loading templates...")),q&&eu(eg).createElement("div",{className:"wizard__template-panel-status"},eu(eg).createElement("p",null,be("Templates could not be loaded. Please try again.")),eu(eg).createElement(r7,{size:"small",variant:"outline",onClick:()=>Z(e=>e+1)},be("Try again"))),!W&&!q&&eu(eg).createElement("ul",{className:"wizard__template-panel-grid","aria-label":be("Templates")},U.map((e,t)=>{let r=e.id===ew?.id;return eu(eg).createElement("li",{key:e.id||e.slug},eu(eg).createElement("button",{type:"button",className:eu(r0)("wizard__template-panel-card",{"is-selected":r}),"aria-pressed":r,onPointerDown:t=>{("mouse"===t.pointerType||"pen"===t.pointerType)&&ej(e)},onClick:()=>ej(e)},eu(eg).createElement("span",{className:"wizard__template-panel-thumbnail",style:{"--template-thumbnail-background":e.thumbnailBackgroundColor}},eu(eg).createElement("img",{src:e.screenshot,alt:"",loading:t<4?"eager":"lazy"})),eu(eg).createElement("span",{className:"wizard__template-panel-overlay","aria-hidden":"true"},eu(eg).createElement("span",{className:eu(r0)({"is-current-template":r})},be(r?"Current Template":"Use Template"))),eu(eg).createElement("span",{className:"wizard__template-panel-card-title"},eu(eg).createElement("span",null,be(0===t?"Default Google Reviews Widget":e.title)))))}))),eu(eg).createElement("div",{className:"wizard__template-panel-footer"},eu(eg).createElement("div",{className:"wizard__template-panel-footer-gradient"}),eu(eg).createElement("div",{className:"wizard__template-panel-footer-inner"},eu(eg).createElement(r7,{className:"wizard__template-panel-continue",disabled:!ew||W,onClick:()=>eR(eE(ew),ew===U[0]?"Untitled":ew.title)},be("Continue with this template"),eu(eg).createElement("svg",{className:"wizard__template-panel-continue-icon",viewBox:"0 0 24 24","aria-hidden":"true"},eu(eg).createElement("path",{fill:"currentColor",d:"M13.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.6l-4.3-4.3a1 1 0 0 1 0-1.4Z"})))))),-1===R&&eu(eg).createElement("div",{className:"wizard__my-widgets"},eu(eg).createElement("div",{className:"wizard__my-widgets-inner"},ty.length>0&&eu(eg).createElement("div",{className:"wizard__my-widgets-header"},eu(eg).createElement("p",{className:"wizard__my-widgets-title"},be("My widgets")),eu(eg).createElement("div",{className:"wizard__my-widgets-actions"},eu(eg).createElement(r7,{size:"small",onClick:()=>{n&&n({state:"14"}),J(null),j(-3)},startIcon:nE},be("Create new")))),eu(eg).createElement("div",{ref:te,className:"wizard__widgets-list"},ty.length>0?eu(eg).createElement("table",{className:"wizard__widgets-table"},eu(eg).createElement("thead",{className:"wizard__widgets-thead"},eu(eg).createElement("tr",null,eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--name",onClick:()=>{null===eX?(eJ("ASC"),eQ(null)):"ASC"===eX?eJ("DESC"):eJ(null)}},eu(eg).createElement("span",{className:"wizard__widgets-th-content"},be("Widget Name"),eu(eg).createElement("span",{className:"wizard__widgets-th-icons"},eu(eg).createElement(nu,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--asc":"ASC"===eX,"wizard__sort-icon--asc-inactive":"ASC"!==eX})}),eu(eg).createElement(nc,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--desc":"DESC"===eX,"wizard__sort-icon--desc-inactive":"DESC"!==eX})})))),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--date",onClick:()=>{"DESC"===eY?(eQ("ASC"),eJ(null)):eQ("DESC")}},eu(eg).createElement("span",{className:"wizard__widgets-th-content"},be("Creation Date"),eu(eg).createElement("span",{className:"wizard__widgets-th-icons"},eu(eg).createElement(nu,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--asc":"ASC"===eY,"wizard__sort-icon--asc-inactive":"ASC"!==eY})}),eu(eg).createElement(nc,{width:16,height:16,className:eu(r0)("wizard__sort-icon",{"wizard__sort-icon--desc":"DESC"===eY,"wizard__sort-icon--desc-inactive":"DESC"!==eY})})))),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--visibility"},be("Website Visibility")),eu(eg).createElement("th",{className:"wizard__widgets-th wizard__widgets-th--actions"},be("Actions")))),eu(eg).createElement("tbody",null,(o=[...ty],eX&&(o=o.sort((e,t)=>{let r=e.name.toLowerCase(),n=t.name.toLowerCase();return"ASC"===eX?r.localeCompare(n):n.localeCompare(r)})),eY&&(o=o.sort((e,t)=>{let r=new Date(e.created_at).getTime(),n=new Date(t.created_at).getTime();return"ASC"===eY?n-r:r-n})),o).filter(e=>"DELETED"!==e.status).map((e,t,r)=>{let a=new Date(e.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),o="ACTIVE"===e.status,i=o?na:ng,l=r.length>4&&t>=3&&r.length-t<=4;return eu(eg).createElement("tr",{key:e.id,className:eu(r0)("wizard__widgets-row",{"wizard__widgets-row--active":o,"wizard__widgets-row--inactive":!o})},eu(eg).createElement("td",{className:"wizard__widgets-td"},eu(eg).createElement("span",{className:"wizard__widgets-cell-content"},eu(eg).createElement("img",{className:eu(r0)("wizard__widget-icon",{"wizard__widget-icon--inactive":!o}),style:o?{filter:"brightness(.94)"}:{filter:"grayscale(100%) brightness(.94)"},src:bJ[e.widgetSlug||bK]||bJ[bK],alt:`${y.name} - Icon`}),eu(eg).createElement("span",{className:eu(r0)("wizard__widget-name",{"wizard__widget-name--inactive":!o})},e.name))),eu(eg).createElement("td",{className:"wizard__widgets-td"},be("Created on {date}").replace("{date}",a)),eu(eg).createElement("td",{className:"wizard__widgets-td"},eu(eg).createElement("span",{className:"wizard__widget-visibility"},eu(eg).createElement(i,{width:24,height:24}),be(o?"Visible on Website":"Hidden from Website"))),eu(eg).createElement("td",{className:"wizard__widgets-td wizard__widgets-td--actions"},eu(eg).createElement("div",{className:"wizard__widgets-cell-actions"},eu(eg).createElement(r7,{size:"small",colorStyle:"secondary",startIcon:nv,variant:"outline",onClick:()=>{ea?tg(e.id,e.widgetSlug):el(()=>tg(e.id,e.widgetSlug))}}),eu(eg).createElement(vX,{placement:l?"top-end":"bottom-end",theme:"dark",open:e6===e.id,setOpen:t=>e7(t?e.id:null),triggerElement:()=>eu(eg).createElement(r7,{size:"small",colorStyle:"secondary",variant:"outline",startIcon:nb})},eu(eg).createElement(vJ,null,eu(eg).createElement(vY,null,eu(eg).createElement(v0,{onClick:()=>{n&&n({state:"9",id:e.id}),eZ(e),eF(!0)}},eu(eg).createElement(v1,{icon:n_}),eu(eg).createElement(v2,null,"Embed Code"))),eu(eg).createElement(vY,null,eu(eg).createElement(v0,{onClick:()=>tp(e.id,e.status)},eu(eg).createElement(v1,{icon:o?ng:na}),eu(eg).createElement(v2,null,be(o?"Hide from Website":"Show on Website")))),eu(eg).createElement(vQ,null),eu(eg).createElement(vY,null,eu(eg).createElement(v0,{colorStyle:"error",onClick:()=>th(e.id)},eu(eg).createElement(v1,{icon:ny}),eu(eg).createElement(v2,null,"Delete Widget"))))))))}))):!O&&eu(eg).createElement("div",{className:"wizard__empty-state",style:{background:"linear-gradient(to bottom, #f9f9ff 75%, #ffffff 90%)"}},eu(eg).createElement("div",{className:"wizard__empty-state-inner"},eu(eg).createElement("div",{className:"wizard__empty-state-image"},eu(eg).createElement("img",{src:eu(bV),alt:"No widget poster",className:"wizard__empty-state-img"})),eu(eg).createElement("h2",{className:"wizard__empty-state-title"},be("Your first widget is almost here!")),eu(eg).createElement("p",{className:"wizard__empty-state-description"},be("Create a custom {templateName} widget quickly. Sync reviews automatically and embed it on your site with no code.".replace("{templateName}",y.name))),eu(eg).createElement(r7,{size:eW,className:"wizard__empty-state-button",loader:T,onClick:()=>{n&&n({state:"15"}),J(null),j(-3)}},be("Create new widget"))))))),!tb&&eu(eg).createElement("aside",{"aria-hidden":eI||R<0||O,inert:eI||R<0||O?"":void 0,className:eu(r0)("wizard__aside",{"wizard__aside--collapsed":eI,"wizard__aside--expanded":!eI,"wizard__aside--no-custom-step":!eP,"wizard__aside--hidden":R<0||O}),style:{boxShadow:eI?"none":"0 16px 24px 0 rgba(84, 95, 111, 0.16), 0 2px 8px 0 rgba(37, 45, 91, 0.04)"}},!eP&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("div",{className:"wizard__aside-header"},eu(eg).createElement("div",null,eu(eg).createElement("p",{className:"wizard__aside-title"},be(to)),eu(eg).createElement("p",{className:"wizard__step-count","aria-live":"polite"},be("Step {current} of {total}").replace("{current}",R+1).replace("{total}",p.length))),eu(eg).createElement(r7,{"aria-label":be("Close settings"),colorStyle:"secondary",theme:"dark",rounded:!0,size:eW,variant:"ghost",startIcon:nn,onClick:()=>eL(!0)})),ta.length>0&&eu(eg).createElement(vs,{theme:"dark",className:"wizard__aside-tabs",colorStyle:"primary"},ta.map((e,t)=>eu(eg).createElement(vu,{key:t,activeTab:t===eA,onClick:()=>eN(t)},be(e.title)))),eu(eg).createElement("div",{className:"wizard__aside-content",ref:d},eu(eg).createElement("div",{className:"wizard__aside-fields"},tl.map((e,t)=>e.hidden?null:eu(eg).createElement(bU,{...e,size:eW,key:t,layouts:m,schema:p,setSchema:h,refreshApp:tr,templateID:_,fieldIndex:t,handleChange:tt,propertiesMap:ey,setWidgetUpdating:F,widgetUpdating:T,reviewSyncActive:bT(P),onCancelReviewSync:eS,onFetchReviews:eO,updateProperty:tn,hasError:e0,setHasError:e1,widgetSlug:bK,mockData:E})))),eu(eg).createElement("div",{className:"wizard__aside-actions"},A&&eu(eg).createElement("p",{role:"alert",className:"wizard__save-error"},A),eu(eg).createElement(r7,{className:"wizard__aside-actions-button",size:eW,loader:T||R+1>=p.length&&bT(P),loaderText:bT(P)?be("Fetching reviews..."):be("Saving..."),disabled:e0,onClick:async()=>{if(R+1>=p.length){let{account_type:e={}}=s?.credentials||{},t=window.location.href.includes("widgetLimitExceeded=1");if(e?.name==="GUEST"||!e)return void window.showModal("s3b",void 0,void 0,void 0,void 0,void 0,{useCustomRedirection:!0,onUserLogin:async e=>{let t=document.querySelector(".loginFlowModal");t&&(document.body.classList.remove("hide-overflow"),t.remove());try{let t=await fetch(br("https://api.jotform.com/user/combinedinfo",i),{method:"GET"}),r=await t.json(),n=r?.content?.credentials||e.user;window.postMessage({message:"setUser",payload:n},window.location.href),u({credentials:n})}catch(t){window.postMessage({message:"setUser",payload:e.user},window.location.href),u({credentials:e.user})}return tc(),!0}});let r=t?"widgetLimitExceeded":"fullPreview";return"fullPreview"===r?void await tc():(eM(r),void((tb||0)&&(eL(!0),eF(!0))))}n&&n({state:"10",id:v?.id||r}),j(R+1)}},R+1<p.length?be(ti||"Continue"):v?.id?be("Save changes"):a?be("Connect and publish"):be("Create widget"))))),"loginSignup"!==eP&&eu(eg).createElement("section",{className:eu(r0)("wizard__preview-section",{"wizard__preview-section--mobile-padding":"mobile"===Y,"wizard__preview-section--aside-expanded":!eI||-3===R,"wizard__preview-section--hidden":O||R<0&&-3!==R})},!l&&eu(eg).createElement(r7,{size:"small",theme:"light",colorStyle:"secondary",className:"wizard__device-toggle","aria-label":"mobile"===Y?be("Desktop preview"):be("Mobile preview"),style:{backgroundColor:"#ffffff",color:"var(--jfv-navy-500)"},startIcon:"mobile"===Y?nS:nC,onClick:()=>Q("mobile"===Y?"desktop":"mobile")}),eu(eg).createElement("div",{className:eu(r0)("wizard__iframe-wrapper",{"wizard__iframe-wrapper--mobile":"mobile"===Y}),style:{borderWidth:tu?"10px":"0",maxHeight:tu?"720px":"unset",borderRadius:tu?"48px":"0"}},eu(eg).createElement("div",{className:"wizard__iframe-inner"},eu(eg).createElement("iframe",{ref:c,title:"Widget Preview",className:"wizard__iframe",onLoad:()=>{eo(!0),setTimeout(()=>{ei&&"function"==typeof ei&&ei()},1e3)},src:`${bG}/website-widget-renderer/?widgetSlug=${bK}&iframePreview=1`})))),("fullPreview"===eP||eK)&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement(vn,{ariaLabel:"Modal Title",onClose:()=>{eF(!1),eZ(null),c.current.contentWindow.postMessage({action:"focusFrame"},bG),eM(""),eL(!1)},open:eT,size:"large"},eu(eg).createElement(va,{description:be("Prefer the block editor: add the Jotform - Widgets for Google Reviews block and pick your widget in the sidebar (no shortcode needed). Or copy the shortcode below for Classic Editor or Shortcode blocks."),onClose:()=>{eF(!1),eZ(null),c.current.contentWindow.postMessage({action:"focusFrame"},bG),eM(""),eL(!1)},title:"EMBED"}),eu(eg).createElement(vo,{tabIndex:0},eu(eg).createElement("div",{className:"wizard__embed-code-block"},eu(eg).createElement("code",{className:"wizard__embed-code"},ts())),tv&&eu(eg).createElement(eu(eg).Fragment,null,eu(eg).createElement("p",{className:"wizard__embed-platform-title"},eV),eu(eg).createElement("div",{className:"wizard__embed-instructions"},eu(eg).createElement("div",{className:"wizard__embed-instructions-list"},tv.instructions?.map((e,t)=>{let r;return eu(eg).createElement("div",{key:`platform-${eV}-instruction-${t}`,className:"wizard__embed-instruction-item"},eu(eg).createElement("div",{className:"wizard__embed-instruction-number"},t+1),eu(eg).createElement("span",{className:"wizard__embed-instruction-text"},(r=be(e),()=>e=>{if(!r||!e)return r;let t=[r];return(Object.entries(e).forEach(([e,r])=>{let n=String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=RegExp(`\\[${n}\\[([^\\]]+)\\]\\]`,"g");t=t.flatMap(e=>{let t;if("string"!=typeof e)return[e];let n=[],o=0;for(a.lastIndex=0;null!==(t=a.exec(e));){t.index>o&&n.push(e.slice(o,t.index));let a="function"==typeof r?r(t[1]):r;n.push(a),o=t.index+t[0].length}return 0===o?[e]:(o<e.length&&n.push(e.slice(o)),n)})}),1===t.length)?t[0]:t.map((e,t)=>(0,eg.isValidElement)(e)?(0,eg.cloneElement)(e,{key:`tr-${t}`}):e)})()({1:e=>eu(eg).createElement("strong",{className:"wizard__embed-instruction-strong"},e)})))})))),e2&&!eK&&eu(eg).createElement("div",{className:"wizard__review-prompt",role:"region","aria-label":be("Share your experience")},eu(eg).createElement("img",{className:"wizard__review-prompt-icon",src:eu(bW),alt:"","aria-hidden":"true"}),eu(eg).createElement("p",{className:"wizard__review-prompt-title"},be("Is the widget working well for you?")),eu(eg).createElement("div",{className:"wizard__review-prompt-actions"},eu(eg).createElement("button",{type:"button",className:"wizard__review-prompt-never",onClick:()=>{b4({status:"never"}),e4(!1)}},be("Don't ask again")),eu(eg).createElement(r7,{colorStyle:"secondary",variant:"outline",onClick:()=>{b4({status:"later",remindAfter:Date.now()+2592e6}),e4(!1),window.open("https://wordpress.org/support/plugin/jotform-review-widgets-for-google/","_blank","noopener,noreferrer")}},be("Not really")),eu(eg).createElement(r7,{onClick:()=>{b4({status:"reviewed"}),e4(!1),window.open("https://wordpress.org/support/plugin/jotform-review-widgets-for-google/reviews/#new-post","_blank","noopener,noreferrer")}},be("Yes, love it"))))),eu(eg).createElement(vi,null,eu(eg).createElement(r7,{colorStyle:"success",onClick:()=>{if(clearInterval(t),navigator.clipboard.writeText(ts()),e$(!0),t=setTimeout(()=>e$(!1),2e3),n){let e=eK||v;n({state:"11",id:e?.id||r})}}},be(eU?"Copied!":"Copy Shortcode"))))),e5&&eu(eg).createElement(v4,{open:e5,onClose:()=>{e8(!1),e9(null)},ariaLabel:be("Delete Widget")},eu(eg).createElement(v5,{className:"wizard__dialog-body"},eu(eg).createElement(v8,{icon:nw,colorStyle:"error"}),eu(eg).createElement(v3,null,be("Delete Widget")),eu(eg).createElement(v9,{className:"wizard__dialog-description"},be("Are you sure you want to delete this widget? This action cannot be undone."))),eu(eg).createElement(v6,null,eu(eg).createElement(r7,{colorStyle:"secondary",variant:"outline",onClick:()=>{e8(!1),e9(null)}},be("Cancel")),eu(eg).createElement(r7,{colorStyle:"error",onClick:tm},be("Delete"))),eu(eg).createElement(v7,{onClick:()=>{e8(!1),e9(null)}})))))};yt.propTypes={user:rW.object,requiresConnection:rW.bool,widgetSlug:rW.string,widgetID:rW.string,updateState:rW.func,review_data:rW.object};let yr=({state:e="",id:t=""}={})=>{e&&fetch("https://api.jotform.com/website-widgets/updateState",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t&&{id:t},state:e})}).catch(()=>{})},yn=()=>{let e=(0,eg.useRef)(null),{apiKey:t,loading:r,unauthorized:n,handleLogout:a}=rO(),o=(0,eg.useCallback)(yr,[]);return r?eu(eg).createElement("div",{className:"jfrwg-loader-wrapper"},eu(eg).createElement("div",{className:"jfrwg-loader"}),eu(eg).createElement("strong",null,"Loading...")):n?eu(eg).createElement("div",{className:"jfrwg-first-step"},eu(eg).createElement("h2",null,"Authorization Failed"),eu(eg).createElement("p",null,"Your account cannot be authorized. Please contact your administrator.")):eu(eg).createElement(yt,{requiresConnection:!t,updateState:o,widgetWizardRef:e})};var ya=()=>eu(eg).createElement(rk,null,eu(eg).createElement(yn,null));let yo=document.getElementById("jfrwg-app");ev.createRoot?(0,ev.createRoot)(yo).render(eu(eg).createElement(ya,null)):(0,ev.render)(eu(eg).createElement(ya,null),yo)})();
  • jotform-review-widgets-for-google/trunk/package.json

    r3798436 r3809549  
    11{
    22  "name": "jotform-review-widgets-for-google",
    3   "version": "1.3.0",
     3  "version": "1.3.1",
    44  "description": "Display Google reviews on your WordPress site with Jotform",
    55  "private": true,
    … …  
    1919  },
    2020  "alias": {
    21     "react": { "global": "React" },
    22     "react-dom": { "global": "ReactDOM" },
    23     "@wordpress/element": { "global": "wp.element" },
     21    "react": {
     22      "global": "React"
     23    },
     24    "react-dom": {
     25      "global": "ReactDOM"
     26    },
     27    "@wordpress/element": {
     28      "global": "wp.element"
     29    },
    2430    "process": false,
    2531    "buffer": false
    2632  },
    2733  "scripts": {
    28     "prebuild": "rimraf .parcel-cache lib/app",
    29     "build": "parcel build src/app.js --target build",
    30     "dev": "parcel watch src/app.js --target dev",
    31     "watch": "nodemon --watch src --ext js,jsx,scss,svg,css --exec \"pnpm run build && (cd .. && ./sync)\""
     34    "prebuild": "rimraf .parcel-cache",
     35    "build": "parcel build src/app.js --target build"
    3236  },
    3337  "keywords": [],
    … …  
    3539  "license": "GPL-2.0-only",
    3640  "dependencies": {
    37     "@headlessui/react": "^2.2.0",
     41    "@jotform/shared-components": "workspace:*",
    3842    "@wordpress/element": "^6.37.0",
    3943    "axios": "^1.7.9",
    … …  
    4852    "prop-types": "^15.8.1",
    4953    "react": "18.3.0",
    50     "react-color": "^2.19.3",
    5154    "react-cropper": "2.3.3",
    5255    "react-dom": "18.3.0",
    … …  
    8184    "pnpm": "9.7.1 || 8.3.1"
    8285  },
    83   "packageManager": "pnpm@9.7.1"
     86  "packageManager": "pnpm@9.7.1",
     87  "pnpm": {
     88    "overrides": {
     89      "axios": "^1.7.9"
     90    }
     91  }
    8492}
  • jotform-review-widgets-for-google/trunk/pnpm-lock.yaml

    r3624205 r3809549  
    1212  .:
    1313    dependencies:
    14       '@headlessui/react':
    15         specifier: ^2.2.0
    16         version: 2.2.9(react-dom@18.3.0(react@18.3.0))(react@18.3.0)
     14      '@jotform/shared-components':
     15        specifier: workspace:*
     16        version: link:shared/components
    1717      '@wordpress/element':
    1818        specifier: ^6.37.0
    … …  
    5151        specifier: 18.3.0
    5252        version: 18.3.0
    53       react-color:
    54         specifier: ^2.19.3
    55         version: 2.19.3(react@18.3.0)
    5653      react-cropper:
    5754        specifier: 2.3.3
    … …  
    125122        version: 3.3.3
    126123
     124  shared/components:
     125    dependencies:
     126      react-color:
     127        specifier: ^2.19.3
     128        version: 2.19.3(react@18.3.0)
     129      '@headlessui/react':
     130        specifier: ^2.2.0
     131        version: 2.2.9(react-dom@18.3.0(react@18.3.0))(react@18.3.0)
     132      classnames:
     133        specifier: ^2.5.1
     134        version: 2.5.1
     135      prop-types:
     136        specifier: ^15.8.1
     137        version: 15.8.1
     138      react:
     139        specifier: ^18.3.0
     140        version: 18.3.0
     141      react-dom:
     142        specifier: ^18.3.0
     143        version: 18.3.0(react@18.3.0)
     144
    127145packages:
    128146
  • jotform-review-widgets-for-google/trunk/readme.txt

    r3798436 r3809549  
    55Tested up to: 7.1
    66Requires at least: 5.0
    7 Stable tag: 1.3.0
     7Stable tag: 1.3.1
    88Requires PHP: 7.4
    99License: GPLv2 or later
    … …  
    156156
    157157== Changelog ==
     158= 1.3.1 (2026-11-18) =
     159* Update: General maintenance and improvements
     160
    158161= 1.3.0 (2026-11-12) =
    159162* New: Support the latest Google Reviews layouts, filters, FAQ settings, and WordPress media selection
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/Link.js

    r3518271 r3809549  
    11import React from 'react';
    2 import { UnstyledButton } from '../UI';
     2import { UnstyledButton } from '@jotform/shared-components';
    33
    44export const Link = ({ active, children, onClick, href }) => {
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/WebsiteWidgetWizard/FieldRenderer.js

    r3798436 r3809549  
    55import React, { useState } from 'react';
    66import {
    7   Button, Radio, FormLabel, FormControl, InputText, Toggle, Checkbox, Select, SelectOption, InputColor, FormHelperText, Textarea
    8 } from '../../UI';
    9 import { IconInfoCircleFilled } from '../../UI/Icon';
     7  Button, Radio, FormLabel, FormControl, InputText, Toggle, Checkbox, Select, SelectOption, InputColor,
     8  FormHelperText, Textarea, IconInfoCircleFilled
     9} from '@jotform/shared-components';
    1010import { t } from '../../../utils/translation';
    1111import RangeInput from '../fields/RangeInput';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/WebsiteWidgetWizard/index.js

    r3798436 r3809549  
    1010import { bool, object, string, func } from 'prop-types';
    1111import {
    12   Button, Tabs, TabItem, Modal, ModalHeader, ModalActions, ModalBody, InputText,
    13   Menu, MenuList, MenuItem, MenuItemButton, MenuItemIcon, MenuItemTitle, MenuDivider,
    14   Dialog, DialogBody, DialogIcon, DialogTitle, DialogDescription, DialogActions, DialogCloseButton
    15 } from '../../UI';
    16 import {
    17   IconXmark, IconAngleLeft, IconSquaresDiamondFilled,
    18   IconMobile, IconDesktop, IconArrowsFromCenter, IconArrowsToCenter, IconLinkDiagonal, IconAnglesSelectorSlashHorizontal,
    19   IconEyeFilled, IconEyeSlashFilled, IconPencilLineFilled, IconEllipsisVertical, IconAnglesSelectorHorizontal,
    20   IconTrashFilled, IconTrashExclamationFilled, IconPlus, IconAngleUp, IconAngleDown
    21 } from '../../UI/Icon';
     12  Button, Tabs, TabItem, Modal, ModalHeader, ModalActions, ModalBody, InputText, Menu, MenuList,
     13  MenuItem, MenuItemButton, MenuItemIcon, MenuItemTitle, MenuDivider, Dialog, DialogBody, DialogIcon,
     14  DialogTitle, DialogDescription, DialogActions, DialogCloseButton, IconXmark, IconAngleLeft,
     15  IconSquaresDiamondFilled, IconMobile, IconDesktop, IconArrowsFromCenter, IconArrowsToCenter,
     16  IconLinkDiagonal, IconAnglesSelectorSlashHorizontal, IconEyeFilled, IconEyeSlashFilled,
     17  IconPencilLineFilled, IconEllipsisVertical, IconAnglesSelectorHorizontal, IconTrashFilled,
     18  IconTrashExclamationFilled, IconPlus, IconAngleUp, IconAngleDown
     19} from '@jotform/shared-components';
    2220import classNames from 'classnames';
    2321import { t, translationRenderer } from '../../../utils/translation';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/WebsiteWidgetWizard/style.scss

    r3798436 r3809549  
    211211
    212212// WebsiteWidgetWizard - semantic styles (replaces utility classes)
    213 @import '../../../styles/UI/variables';
     213@import '@jotform/shared-components/styles/variables';
    214214
    215215.wizard {
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/CustomCssEditor.js

    r3624205 r3809549  
    44} from 'prop-types';
    55import DOMPurify from 'dompurify';
    6 import { Textarea } from '../../UI';
     6import { Textarea } from '@jotform/shared-components';
    77
    88import './fields.scss';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/ImageUrlInput.js

    r3798436 r3809549  
    11import React from 'react';
    2 import { Button, InputText } from '../../UI';
     2import { Button, InputText } from '@jotform/shared-components';
    33import { t } from '../../../utils/translation';
    44
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/LayoutSelector.js

    r3798436 r3809549  
    22import React from 'react';
    33import PropTypes from 'prop-types';
    4 import { Select, SelectOption } from '../../UI';
     4import { Select, SelectOption } from '@jotform/shared-components';
    55import { t } from '../../../utils/translation';
    66
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/RangeInput.js

    r3798436 r3809549  
    11import React from 'react';
    2 import { UnstyledInput } from '../../UI';
     2import { UnstyledInput } from '@jotform/shared-components';
    33
    44import './fields.scss';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/ReviewCollection.js

    r3798436 r3809549  
    11import React, { useState } from 'react';
    2 import { Button, InputText, Select, SelectOption, Textarea } from '../../UI';
     2import { Button, InputText, Select, SelectOption, Textarea } from '@jotform/shared-components';
    33import { t } from '../../../utils/translation';
    44import { getReviewOptions } from '../reviewSettings';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/SearchablePlace.js

    r3798436 r3809549  
    44  useState, useRef, useCallback, useMemo, useEffect
    55} from 'react';
    6 import { InputText } from '../../UI';
     6import {
     7  InputText, IconMagnifyingGlass, IconLocationPinFilled, IconInfoCircleFilled
     8} from '@jotform/shared-components';
    79import { t } from '../../../utils/translation';
    8 import { IconMagnifyingGlass, IconLocationPinFilled, IconInfoCircleFilled } from '../../UI/Icon';
    910import { useAuth } from '../../../context/AuthProvider';
    1011import { appendApiKey } from '../../../api/jotformApi';
  • jotform-review-widgets-for-google/trunk/src/components/WidgetBuilder/fields/fields.scss

    r3798436 r3809549  
    1 @import '../../../styles/UI/variables';
     1@import '@jotform/shared-components/styles/variables';
    22
    33// FieldRenderer
  • jotform-review-widgets-for-google/trunk/src/constants/embedPlatforms.js

    r3518271 r3809549  
    1 import { IconAnglesSelectorSlashHorizontal } from '../components/UI/Icon';
     1import { IconAnglesSelectorSlashHorizontal } from '@jotform/shared-components';
    22
    33export const embedPlatforms = [
  • jotform-review-widgets-for-google/trunk/src/styles/index.scss

    r3518271 r3809549  
    1 @import 'UI/variables';
     1@import '@jotform/shared-components/styles/variables';
    22
    33#jfrwg-app {
Note: See TracChangeset for help on using the changeset viewer.