@zealicsolutions/web-ui 0.4.25 → 0.4.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -238,7 +238,7 @@ function qt(e,t){let n;if(n=t?l.default(e).withConfig({displayName:t.label,shoul
|
|
238
238
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
239
239
|
* Released under the MIT License.
|
240
240
|
*/
|
241
|
-
function ID(e){return"[object Object]"===Object.prototype.toString.call(e)}function $D(e){var t,n;return!1!==ID(e)&&(void 0===(t=e.constructor)||!1!==ID(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function zD(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if("production"!==process.env.NODE_ENV){var r=TS[e],i=r?"function"==typeof r?r.apply(null,n):r:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function VD(e){return!!e&&!!e[kS]}function WD(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===jS}(e)||Array.isArray(e)||!!e[SS]||!!(null===(t=e.constructor)||void 0===t?void 0:t[SS])||GD(e)||YD(e))}function UD(e,t,n){void 0===n&&(n=!1),0===HD(e)?(n?Object.keys:MS)(e).forEach((function(o){n&&"symbol"==typeof o||t(o,e[o],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function HD(e){var t=e[kS];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:GD(e)?2:YD(e)?3:0}function qD(e,t){return 2===HD(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function XD(e,t,n){var o=HD(e);2===o?e.set(t,n):3===o?(e.delete(t),e.add(n)):e[t]=n}function GD(e){return CS&&e instanceof Map}function YD(e){return ES&&e instanceof Set}function KD(e){return e.o||e.t}function ZD(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AS(e);delete t[kS];for(var n=MS(t),o=0;o<n.length;o++){var r=n[o],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function JD(e,t){return void 0===t&&(t=!1),eS(e)||VD(e)||!WD(e)||(HD(e)>1&&(e.set=e.add=e.clear=e.delete=QD),Object.freeze(e),t&&UD(e,(function(e,t){return JD(t,!0)}),!0)),e}function QD(){zD(2)}function eS(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tS(e){var t=NS[e];return t||zD(18,e),t}function nS(){return"production"===process.env.NODE_ENV||yS||zD(0),yS}function oS(e,t){t&&(tS("Patches"),e.u=[],e.s=[],e.v=t)}function rS(e){iS(e),e.p.forEach(sS),e.p=null}function iS(e){e===yS&&(yS=e.l)}function aS(e){return yS={p:[],l:yS,h:e,m:!0,_:0}}function sS(e){var t=e[kS];0===t.i||1===t.i?t.j():t.O=!0}function lS(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||tS("ES5").S(t,e,o),o?(n[kS].P&&(rS(t),zD(4)),WD(e)&&(e=cS(t,e),t.l||pS(t,e)),t.u&&tS("Patches").M(n[kS].t,e,t.u,t.s)):e=cS(t,n,[]),rS(t),t.u&&t.v(t.u,t.s),e!==DS?e:void 0}function cS(e,t,n){if(eS(t))return t;var o=t[kS];if(!o)return UD(t,(function(r,i){return uS(e,o,t,r,i,n)}),!0),t;if(o.A!==e)return t;if(!o.P)return pS(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ZD(o.k):o.o;UD(3===o.i?new Set(r):r,(function(t,i){return uS(e,o,r,t,i,n)})),pS(e,r,!1),n&&e.u&&tS("Patches").R(o,n,e.u,e.s)}return o.o}function uS(e,t,n,o,r,i){if("production"!==process.env.NODE_ENV&&r===n&&zD(5),VD(r)){var a=cS(e,r,i&&t&&3!==t.i&&!qD(t.D,o)?i.concat(o):void 0);if(XD(n,o,a),!VD(a))return;e.m=!1}if(WD(r)&&!eS(r)){if(!e.h.F&&e._<1)return;cS(e,r),t&&t.A.l||pS(e,r)}}function pS(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&JD(t,n)}function dS(e,t){var n=e[kS];return(n?KD(n):e)[t]}function fS(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function hS(e){e.P||(e.P=!0,e.l&&hS(e.l))}function mS(e){e.o||(e.o=ZD(e.t))}function vS(e,t,n){var o=GD(t)?tS("MapSet").N(t,n):YD(t)?tS("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),o={i:n?1:0,A:t?t.A:nS(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=o,i=PS;n&&(r=[o],i=RS);var a=Proxy.revocable(r,i),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(t,n):tS("ES5").J(t,n);return(n?n.A:nS()).p.push(o),o}function gS(e){return VD(e)||zD(22,e),function e(t){if(!WD(t))return t;var n,o=t[kS],r=HD(t);if(o){if(!o.P&&(o.i<4||!tS("ES5").K(o)))return o.t;o.I=!0,n=xS(t,r),o.I=!1}else n=xS(t,r);return UD(n,(function(t,r){o&&function(e,t){return 2===HD(e)?e.get(t):e[t]}(o.t,t)===r||XD(n,t,e(r))})),3===r?new Set(n):n}(e)}function xS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ZD(e)}var bS,yS,wS="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),CS="undefined"!=typeof Map,ES="undefined"!=typeof Set,OS="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,DS=wS?Symbol.for("immer-nothing"):((bS={})["immer-nothing"]=!0,bS),SS=wS?Symbol.for("immer-draftable"):"__$immer_draftable",kS=wS?Symbol.for("immer-state"):"__$immer_state",TS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},jS=""+Object.prototype.constructor,MS="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AS=Object.getOwnPropertyDescriptors||function(e){var t={};return MS(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},NS={},PS={get:function(e,t){if(t===kS)return e;var n=KD(e);if(!qD(n,t))return function(e,t,n){var o,r=fS(t,n);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(e.k):void 0}(e,n,t);var o=n[t];return e.I||!WD(o)?o:o===dS(e.t,t)?(mS(e),e.o[t]=vS(e.A.h,o,e)):o},has:function(e,t){return t in KD(e)},ownKeys:function(e){return Reflect.ownKeys(KD(e))},set:function(e,t,n){var o=fS(KD(e),t);if(null==o?void 0:o.set)return o.set.call(e.k,n),!0;if(!e.P){var r=dS(KD(e),t),i=null==r?void 0:r[kS];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||qD(e.t,t)))return!0;mS(e),hS(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dS(e.t,t)||t in e.t?(e.D[t]=!1,mS(e),hS(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=KD(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:o.enumerable,value:n[t]}:o},defineProperty:function(){zD(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zD(12)}},RS={};UD(PS,(function(e,t){RS[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),RS.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&zD(13),RS.set.call(this,e,t,void 0)},RS.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&zD(14),PS.set.call(this,e[0],t,n,e[0])};var BS=function(){function e(e){var t=this;this.g=OS,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var o;return(o=n).call.apply(o,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&zD(6),void 0!==o&&"function"!=typeof o&&zD(7),WD(e)){var s=aS(t),l=vS(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?rS(s):iS(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return oS(s,o),lS(e,s)}),(function(e){throw rS(s),e})):(oS(s,o),lS(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===DS&&(a=void 0),t.F&&JD(a,!0),o){var u=[],p=[];tS("Patches").M(e,a,u,p),o(u,p)}return a}zD(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))};var o,r,i=t.produce(e,n,(function(e,t){o=e,r=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,o,r]})):[i,o,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){WD(e)||zD(8),VD(e)&&(e=gS(e));var t=aS(this),n=vS(this,e,void 0);return n[kS].C=!0,iS(t),n},t.finishDraft=function(e,t){var n=e&&e[kS];"production"!==process.env.NODE_ENV&&(n&&n.C||zD(9),n.I&&zD(10));var o=n.A;return oS(o,t),lS(void 0,o)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!OS&&zD(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var o=t[n];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}n>-1&&(t=t.slice(n+1));var r=tS("Patches").$;return VD(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),FS=new BS,_S=FS.produce;FS.produceWithPatches.bind(FS),FS.setAutoFreeze.bind(FS),FS.setUseProxies.bind(FS),FS.applyPatches.bind(FS);var LS=FS.createDraft.bind(FS),IS=FS.finishDraft.bind(FS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zS=new WeakMap,VS=new WeakMap,WS=new WeakMap,US=new WeakMap,HS=new WeakMap,qS=new WeakMap,XS=new WeakMap;function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function YS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GS(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ZS,JS=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,o=t?rk(e):e,r=ZS.None,i=ZS.None,a=0,s=null;for(var l of o){var c=l.codePointAt(0);if(!c)break;var u=vk(l,c);if([r,i]=n?[i,u]:[u,r],gk(r,ZS.ZWJ)&&gk(i,ZS.ExtPict)&&!wk(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(gk(r,ZS.RI)&&gk(i,ZS.RI)&&!(s=null!==s?!s:!!n||Ek(e.substring(0,e.length-a))))break;if(r!==ZS.None&&i!==ZS.None&&bk(r,i))break;a+=l.length}return a||1},QS=/\s/,ek=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tk=/['\u2018\u2019]/,nk=(e,t,n)=>{if(n){var o=e.length-t;return[e.slice(o,e.length),e.slice(0,o)]}return[e.slice(0,t),e.slice(t)]},ok=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(QS.test(t))return!1;if(tk.test(t)){var r=JS(n,o),[i,a]=nk(n,r,o);if(e(i,a,o))return!0}return!ek.test(t)},rk=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var o=e.charAt(t-n);if(ak(o.charCodeAt(0))){var r=e.charAt(t-n-1);if(ik(r.charCodeAt(0))){yield r+o,n++;continue}}yield o}},ik=e=>e>=55296&&e<=56319,ak=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(ZS||(ZS={}));var sk=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,lk=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ck=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,uk=/^[\u1100-\u115F\uA960-\uA97C]$/,pk=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,dk=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,fk=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,hk=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,mk=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,vk=(e,t)=>{var n=ZS.Any;return-1!==e.search(sk)&&(n|=ZS.Extend),8205===t&&(n|=ZS.ZWJ),t>=127462&&t<=127487&&(n|=ZS.RI),-1!==e.search(lk)&&(n|=ZS.Prepend),-1!==e.search(ck)&&(n|=ZS.SpacingMark),-1!==e.search(uk)&&(n|=ZS.L),-1!==e.search(pk)&&(n|=ZS.V),-1!==e.search(dk)&&(n|=ZS.T),-1!==e.search(fk)&&(n|=ZS.LV),-1!==e.search(hk)&&(n|=ZS.LVT),-1!==e.search(mk)&&(n|=ZS.ExtPict),n};function gk(e,t){return 0!=(e&t)}var xk=[[ZS.L,ZS.L|ZS.V|ZS.LV|ZS.LVT],[ZS.LV|ZS.V,ZS.V|ZS.T],[ZS.LVT|ZS.T,ZS.T],[ZS.Any,ZS.Extend|ZS.ZWJ],[ZS.Any,ZS.SpacingMark],[ZS.Prepend,ZS.Any],[ZS.ZWJ,ZS.ExtPict],[ZS.RI,ZS.RI]];function bk(e,t){return-1===xk.findIndex((n=>gk(e,n[0])&&gk(t,n[1])))}var yk=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,wk=e=>-1!==e.search(yk),Ck=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ek=e=>{var t=e.match(Ck);return null!==t&&t[0].length/2%2==1},Ok=e=>$D(e)&&Fk.isNodeList(e.children)&&!Ak.isEditor(e),Dk={isAncestor:e=>$D(e)&&Fk.isNodeList(e.children),isElement:Ok,isElementList:e=>Array.isArray(e)&&e.every((e=>Dk.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Ok(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Sk=["text"],kk=["text"];function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function jk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mk=new WeakMap,Ak={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:r=e.selection,match:i}=t;if(r){var a=Ak.path(e,r),s="lowest"===o;for(var[l,c]of Ak.levels(e,{at:a,voids:n,match:i,reverse:s})){if(oT.isText(l))return;if(Gk.isRange(r)){if($k.isAncestor(c,r.anchor.path)&&$k.isAncestor(c,r.focus.path))return[l,c]}else if(!$k.equals(a,c))return[l,c]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:Ak.point(e,t,{edge:"end"}),focus:Ak.end(e,[])},{distance:i=1}=o,a=0;for(var s of Ak.positions(e,jk(jk({},o),{},{at:r}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:Ak.start(e,[]),focus:Ak.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(var s of Ak.positions(e,jk(jk({},o),{},{at:r,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Ak.start(e,t),Ak.end(e,t)],end:(e,t)=>Ak.point(e,t,{edge:"end"}),first(e,t){var n=Ak.path(e,t,{edge:"start"});return Ak.node(e,n)},fragment(e,t){var n=Ak.range(e,t);return Fk.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Ak.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>oT.isText(t)||Ak.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>oT.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Dk.isElement(t)&&!e.isInline(t),isEditor(e){var t=Mk.get(e);if(void 0!==t)return t;if(!$D(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||$D(e.marks))&&(null===e.selection||Gk.isRange(e.selection))&&Fk.isNodeList(e.children)&&Ik.isOperationList(e.operations);return Mk.set(e,n),n},isEnd(e,t,n){var o=Ak.end(e,n);return Uk.equals(t,o)},isEdge:(e,t,n)=>Ak.isStart(e,t,n)||Ak.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[o]=n;return 0===n.length||1===n.length&&oT.isText(o)&&""===o.text&&!e.isVoid(t)},isInline:(e,t)=>Dk.isElement(t)&&e.isInline(t),isNormalizing(e){var t=US.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var o=Ak.start(e,n);return Uk.equals(t,o)},isVoid:(e,t)=>Dk.isElement(t)&&e.isVoid(t),last(e,t){var n=Ak.path(e,t,{edge:"end"});return Ak.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n);return[Fk.leaf(e,o),o]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:o=!1,voids:r=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=Ak.path(e,n);for(var[l,c]of Fk.levels(e,s))if(i(l,c)&&(a.push([l,c]),!r&&Ak.isVoid(e,l)))break;o&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Gk.isExpanded(n)){var[o]=Ak.nodes(e,{match:oT.isText});if(o){var[r]=o;return KS(r,Sk)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Ak.leaf(e,a);if(0===i.offset){var l=Ak.previous(e,{at:a,match:oT.isText}),c=Ak.above(e,{match:t=>Ak.isBlock(e,t)});if(l&&c){var[u,p]=l,[,d]=c;$k.isAncestor(d,p)&&(s=u)}}return KS(s,kk)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=Ak.after(e,i,{voids:o});if(a){var[,s]=Ak.last(e,[]),l=[a.path,s];if($k.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==r)if($k.isPath(i)){var[c]=Ak.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=Ak.nodes(e,{at:l,match:r,mode:n,voids:o});return u}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n);return[Fk.get(e,o),o]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:o="all",universal:r=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,c;if(Nk.isSpan(n))l=n[0],c=n[1];else{var u=Ak.path(e,n,{edge:"start"}),p=Ak.path(e,n,{edge:"end"});l=i?p:u,c=i?u:p}var d,f=Fk.nodes(e,{reverse:i,from:l,to:c,pass:t=>{var[n]=t;return!a&&Ak.isVoid(e,n)}}),h=[];for(var[m,v]of f){var g=d&&0===$k.compare(v,d[1]);if("highest"!==o||!g)if(s(m,v))if("lowest"===o&&g)d=[m,v];else{var x="lowest"===o?d:[m,v];x&&(r?h.push(x):yield x),d=[m,v]}else if(r&&!g&&oT.isText(m))return}"lowest"===o&&d&&(r?h.push(d):yield d),r&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,o=e=>zS.get(e)||[],r=e=>{var t=o(e).pop(),n=t.join(",");return(e=>VS.get(e)||new Set)(e).delete(n),t};if(Ak.isNormalizing(e)){if(n){var i=Array.from(Fk.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));zS.set(e,i),VS.set(e,a)}0!==o(e).length&&Ak.withoutNormalizing(e,(()=>{for(var t of o(e))if(Fk.has(e,t)){var n=Ak.node(e,t),[i,a]=n;Dk.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var s=42*o(e).length,l=0;0!==o(e).length;){if(l>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=r(e);if(Fk.has(e,c)){var u=Ak.node(e,c);e.normalizeNode(u)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n),r=$k.parent(o);return Ak.node(e,r)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:o,edge:r}=n;if($k.isPath(t))if("start"===r){var[,i]=Fk.first(e,t);t=i}else if("end"===r){var[,a]=Fk.last(e,t);t=a}return Gk.isRange(t)&&(t="start"===r?Gk.start(t):"end"===r?Gk.end(t):$k.common(t.anchor.path,t.focus.path)),Uk.isPoint(t)&&(t=t.path),null!=o&&(t=t.slice(0,o)),t},hasPath:(e,t)=>Fk.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.pathRefs(e).delete(r),r.current=null,t}};return Ak.pathRefs(e).add(r),r},pathRefs(e){var t=HS.get(e);return t||(t=new Set,HS.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:o="start"}=n;if($k.isPath(t)){var r;if("end"===o){var[,i]=Fk.last(e,t);r=i}else{var[,a]=Fk.first(e,t);r=a}var s=Fk.get(e,r);if(!oT.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(t,"] because it has no ").concat(o," text node."));return{path:r,offset:"end"===o?s.text.length:0}}if(Gk.isRange(t)){var[l,c]=Gk.edges(t);return"start"===o?l:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.pointRefs(e).delete(r),r.current=null,t}};return Ak.pointRefs(e).add(r),r},pointRefs(e){var t=qS.get(e);return t||(t=new Set,qS.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:o="offset",reverse:r=!1,voids:i=!1}=t;if(n){var a=Ak.range(e,n),[s,l]=Gk.edges(a),c=r?l:s,u=!1,p="",d=0,f=0,h=0;for(var[m,v]of Ak.nodes(e,{at:n,reverse:r,voids:i})){if(Dk.isElement(m)){if(!i&&e.isVoid(m)){yield Ak.start(e,v);continue}if(e.isInline(m))continue;if(Ak.hasInlines(e,m)){var g=$k.isAncestor(v,l.path)?l:Ak.end(e,v),x=$k.isAncestor(v,s.path)?s:Ak.start(e,v);p=Ak.string(e,{anchor:x,focus:g},{voids:i}),u=!0}}if(oT.isText(m)){var b=$k.equals(v,c.path);for(b?(f=r?c.offset:m.text.length-c.offset,h=c.offset):(f=m.text.length,h=r?f:0),(b||u||"offset"===o)&&(yield{path:v,offset:h},u=!1);;){if(0===d){if(""===p)break;d=y(p,o,r),p=nk(p,d,r)[1]}if(h=r?h-d:h+d,(f-=d)<0){d=-f;break}d=0,yield{path:v,offset:h}}}}}function y(e,t,n){return"character"===t?JS(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,o=!1;e.length>0;){var r=JS(e,t),[i,a]=nk(e,r,t);if(ok(i,a,t))o=!0,n+=r;else{if(o)break;n+=r}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=Ak.before(e,i,{voids:o});if(a){var[,s]=Ak.first(e,[]),l=[a.path,s];if($k.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==r)if($k.isPath(i)){var[c]=Ak.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=Ak.nodes(e,{reverse:!0,at:l,match:r,mode:n,voids:o});return u}}},range:(e,t,n)=>Gk.isRange(t)&&!n?t:{anchor:Ak.start(e,t),focus:Ak.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.rangeRefs(e).delete(r),r.current=null,t}};return Ak.rangeRefs(e).add(r),r},rangeRefs(e){var t=XS.get(e);return t||(t=new Set,XS.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){US.set(e,t)},start:(e,t)=>Ak.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,r=Ak.range(e,t),[i,a]=Gk.edges(r),s="";for(var[l,c]of Ak.nodes(e,{at:r,match:oT.isText,voids:o})){var u=l.text;$k.equals(c,a.path)&&(u=u.slice(0,a.offset)),$k.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,[r,i]=Gk.edges(t);if(0!==r.offset||0!==i.offset||Gk.isCollapsed(t))return t;var a=Ak.above(e,{at:i,match:t=>Ak.isBlock(e,t)}),s=a?a[1]:[],l={anchor:Ak.start(e,r),focus:i},c=!0;for(var[u,p]of Ak.nodes(e,{at:l,match:oT.isText,reverse:!0,voids:o}))if(c)c=!1;else if(""!==u.text||$k.isBefore(p,s)){i={path:p,offset:u.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ak.above(e,jk(jk({},t),{},{match:t=>Ak.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Ak.isNormalizing(e);Ak.setNormalizing(e,!1);try{t()}finally{Ak.setNormalizing(e,n)}Ak.normalize(e)}},Nk={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every($k.isPath)},Pk=["children"],Rk=["text"],Bk=new WeakMap,Fk={ancestor(e,t){var n=Fk.get(e,t);if(oT.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Zk.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of $k.ancestors(t,n)){var r=[Fk.ancestor(e,o),o];yield r}},child(e,t){if(oT.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Zk.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Zk.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:o=!1}=n,r=Fk.ancestor(e,t),{children:i}=r,a=o?i.length-1:0;o?a>=0:a<i.length;){var s=Fk.child(r,a),l=t.concat(a);yield[s,l],a=o?a-1:a+1}},common(e,t,n){var o=$k.common(t,n);return[Fk.get(e,o),o]},descendant(e,t){var n=Fk.get(e,t);if(Ak.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Zk.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))0!==o.length&&(yield[n,o])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))Dk.isElement(n)&&(yield[n,o])},extractProps:e=>Dk.isAncestor(e)?KS(e,Pk):KS(e,Rk),first(e,t){for(var n=t.slice(),o=Fk.get(e,n);o&&!oT.isText(o)&&0!==o.children.length;)o=o.children[0],n.push(0);return[o,n]},fragment(e,t){if(oT.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Zk.stringify(e)));var n=_S({children:e.children},(e=>{var[n,o]=Gk.edges(t),r=Fk.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Gk.includes(t,n)}});for(var[,i]of r){if(!Gk.includes(t,i)){var a=Fk.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if($k.equals(i,o.path)){var l=Fk.leaf(e,i);l.text=l.text.slice(0,o.offset)}if($k.equals(i,n.path)){var c=Fk.leaf(e,i);c.text=c.text.slice(n.offset)}}Ak.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(oT.isText(n)||!n.children[r])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Zk.stringify(e)));n=n.children[r]}return n},has(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(oT.isText(n)||!n.children[r])return!1;n=n.children[r]}return!0},isNode:e=>oT.isText(e)||Dk.isElement(e)||Ak.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Bk.get(e);if(void 0!==t)return t;var n=e.every((e=>Fk.isNode(e)));return Bk.set(e,n),n},last(e,t){for(var n=t.slice(),o=Fk.get(e,n);o&&!oT.isText(o)&&0!==o.children.length;){var r=o.children.length-1;o=o.children[r],n.push(r)}return[o,n]},leaf(e,t){var n=Fk.get(e,t);if(!oT.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Zk.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of $k.levels(t,n)){var r=Fk.get(e,o);yield[r,o]}},matches:(e,t)=>Dk.isElement(e)&&Dk.isElementProps(t)&&Dk.matches(e,t)||oT.isText(e)&&oT.isTextProps(t)&&oT.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:o=!1}=t,{from:r=[],to:i}=t,a=new Set,s=[],l=e;!i||!(o?$k.isBefore(s,i):$k.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||oT.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!o){var c=$k.next(s);if(Fk.has(e,c)){s=c,l=Fk.get(e,s);continue}}if(o&&0!==s[s.length-1])s=$k.previous(s),l=Fk.get(e,s);else s=$k.parent(s),l=Fk.get(e,s),a.add(l)}else{a.add(l);var u=o?l.children.length-1:0;$k.isAncestor(s,r)&&(u=r[s.length]),s=s.concat(u),l=Fk.get(e,s)}},parent(e,t){var n=$k.parent(t),o=Fk.get(e,n);if(oT.isText(o))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return o},string:e=>oT.isText(e)?e.text:e.children.map(Fk.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))oT.isText(n)&&(yield[n,o])}};function _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_k(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ik={isNodeOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!$D(e))return!1;switch(e.type){case"insert_node":case"remove_node":return $k.isPath(e.path)&&Fk.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&$k.isPath(e.path);case"merge_node":return"number"==typeof e.position&&$k.isPath(e.path)&&$D(e.properties);case"move_node":return $k.isPath(e.path)&&$k.isPath(e.newPath);case"set_node":return $k.isPath(e.path)&&$D(e.properties)&&$D(e.newProperties);case"set_selection":return null===e.properties&&Gk.isRange(e.newProperties)||null===e.newProperties&&Gk.isRange(e.properties)||$D(e.properties)&&$D(e.newProperties);case"split_node":return $k.isPath(e.path)&&"number"==typeof e.position&&$D(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Ik.isOperation(e))),isSelectionOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Lk(Lk({},e),{},{type:"remove_node"});case"insert_text":return Lk(Lk({},e),{},{type:"remove_text"});case"merge_node":return Lk(Lk({},e),{},{type:"split_node",path:$k.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if($k.equals(t,n))return e;if($k.isSibling(n,t))return Lk(Lk({},e),{},{path:t,newPath:n});var o=$k.transform(n,e),r=$k.transform($k.next(n),e);return Lk(Lk({},e),{},{path:o,newPath:r});case"remove_node":return Lk(Lk({},e),{},{type:"insert_node"});case"remove_text":return Lk(Lk({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Lk(Lk({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return Lk(Lk({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Lk(Lk({},e),{},{type:"merge_node",path:$k.next(e.path)})}}},$k={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=$k.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common(e,t){for(var n=[],o=0;o<e.length&&o<t.length;o++){var r=e[o];if(r!==t[o])break;n.push(r)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0},endsAfter(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return $k.equals(o,r)&&i>a},endsAt(e,t){var n=e.length,o=e.slice(0,n),r=t.slice(0,n);return $k.equals(o,r)},endsBefore(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return $k.equals(o,r)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===$k.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===$k.compare(e,t),isBefore:(e,t)=>-1===$k.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===$k.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===$k.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===$k.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===$k.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),o=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&$k.equals(n,o)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=[],r=0;r<=e.length;r++)o.push(e.slice(0,r));return n&&o.reverse(),o},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!$k.isAncestor(t,e)&&!$k.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var o=[...e],{affinity:r="forward"}=n;if(0===e.length)return o;switch(t.type){case"insert_node":var{path:i}=t;($k.equals(i,o)||$k.endsBefore(i,o)||$k.isAncestor(i,o))&&(o[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if($k.equals(a,o)||$k.isAncestor(a,o))return null;$k.endsBefore(a,o)&&(o[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;$k.equals(s,o)||$k.endsBefore(s,o)?o[s.length-1]-=1:$k.isAncestor(s,o)&&(o[s.length-1]-=1,o[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if($k.equals(c,o)){if("forward"===r)o[o.length-1]+=1;else if("backward"!==r)return null}else $k.endsBefore(c,o)?o[c.length-1]+=1:$k.isAncestor(c,o)&&e[c.length]>=u&&(o[c.length-1]+=1,o[c.length]-=u);break;case"move_node":var{path:p,newPath:d}=t;if($k.equals(p,d))return o;if($k.isAncestor(p,o)||$k.equals(p,o)){var f=d.slice();return $k.endsBefore(p,d)&&p.length<d.length&&(f[p.length-1]-=1),f.concat(o.slice(p.length))}$k.isSibling(p,d)&&($k.isAncestor(d,o)||$k.equals(d,o))?$k.endsBefore(p,o)?o[p.length-1]-=1:o[p.length-1]+=1:$k.endsBefore(d,o)||$k.equals(d,o)||$k.isAncestor(d,o)?($k.endsBefore(p,o)&&(o[p.length-1]-=1),o[d.length-1]+=1):$k.endsBefore(p,o)&&($k.equals(d,o)&&(o[d.length-1]+=1),o[p.length-1]-=1)}return o}},zk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=$k.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}};function Vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uk={compare(e,t){var n=$k.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Uk.compare(e,t),isBefore:(e,t)=>-1===Uk.compare(e,t),equals:(e,t)=>e.offset===t.offset&&$k.equals(e.path,t.path),isPoint:e=>$D(e)&&"number"==typeof e.offset&&$k.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _S(e,(e=>{if(null===e)return null;var{affinity:o="forward"}=n,{path:r,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=$k.transform(r,t,n);break;case"insert_text":$k.equals(t.path,r)&&(t.offset<i||t.offset===i&&"forward"===o)&&(e.offset+=t.text.length);break;case"merge_node":$k.equals(t.path,r)&&(e.offset+=t.position),e.path=$k.transform(r,t,n);break;case"remove_text":$k.equals(t.path,r)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if($k.equals(t.path,r)||$k.isAncestor(t.path,r))return null;e.path=$k.transform(r,t,n);break;case"split_node":if($k.equals(t.path,r)){if(t.position===i&&null==o)return null;(t.position<i||t.position===i&&"forward"===o)&&(e.offset-=t.position,e.path=$k.transform(r,t,Wk(Wk({},n),{},{affinity:"forward"})))}else e.path=$k.transform(r,t,n)}}))}},Hk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=Uk.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},qk=["anchor","focus"];function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var Gk={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:o,focus:r}=e;return Gk.isBackward(e)===n?[o,r]:[r,o]},end(e){var[,t]=Gk.edges(e);return t},equals:(e,t)=>Uk.equals(e.anchor,t.anchor)&&Uk.equals(e.focus,t.focus),includes(e,t){if(Gk.isRange(t)){if(Gk.includes(e,t.anchor)||Gk.includes(e,t.focus))return!0;var[n,o]=Gk.edges(e),[r,i]=Gk.edges(t);return Uk.isBefore(n,r)&&Uk.isAfter(o,i)}var[a,s]=Gk.edges(e),l=!1,c=!1;return Uk.isPoint(t)?(l=Uk.compare(t,a)>=0,c=Uk.compare(t,s)<=0):(l=$k.compare(t,a.path)>=0,c=$k.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=KS(e,qk),[o,r]=Gk.edges(e),[i,a]=Gk.edges(t),s=Uk.isBefore(o,i)?i:o,l=Uk.isBefore(r,a)?r:a;return Uk.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Uk.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Uk.equals(t,n)},isExpanded:e=>!Gk.isCollapsed(e),isForward:e=>!Gk.isBackward(e),isRange:e=>$D(e)&&Uk.isPoint(e.anchor)&&Uk.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Gk.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _S(e,(e=>{if(null===e)return null;var o,r,{affinity:i="inward"}=n;if("inward"===i){var a=Gk.isCollapsed(e);Gk.isForward(e)?(o="forward",r=a?o:"backward"):(o="backward",r=a?o:"forward")}else"outward"===i?Gk.isForward(e)?(o="backward",r="forward"):(o="forward",r="backward"):(o=i,r=i);var s=Uk.transform(e.anchor,t,{affinity:o}),l=Uk.transform(e.focus,t,{affinity:r});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},Yk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=Gk.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},Kk=void 0,Zk={setScrubber(e){Kk=e},stringify:e=>JSON.stringify(e,Kk)},Jk=(e,t)=>{for(var n in e){var o=e[n],r=t[n];if($D(o)&&$D(r)){if(!Jk(o,r))return!1}else if(Array.isArray(o)&&Array.isArray(r)){if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++)if(o[i]!==r[i])return!1}else if(o!==r)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Qk=["text"],eT=["anchor","focus"];function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oT={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:o=!1}=n;function r(e){return KS(e,Qk)}return Jk(o?r(e):e,o?r(t):t)},isText:e=>$D(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>oT.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[nT({},e)];for(var o of t){var r=KS(o,eT),[i,a]=Gk.edges(o),s=[],l=0,c=i.offset,u=a.offset;for(var p of n){var{length:d}=p.text,f=l;if(l+=d,c<=f&&l<=u)Object.assign(p,r),s.push(p);else if(c!==u&&(c===l||u===f)||c>l||u<f||u===f&&0!==f)s.push(p);else{var h=p,m=void 0,v=void 0;if(u<l){var g=u-f;v=nT(nT({},h),{},{text:h.text.slice(g)}),h=nT(nT({},h),{},{text:h.text.slice(0,g)})}if(c>f){var x=c-f;m=nT(nT({},h),{},{text:h.text.slice(0,x)}),h=nT(nT({},h),{},{text:h.text.slice(x)})}Object.assign(h,r),m&&s.push(m),s.push(h),v&&s.push(v)}}n=s}return n}};function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function iT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aT={transform(e,t){e.children=LS(e.children);var n=e.selection&&LS(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:o,node:r}=n,i=Fk.parent(e,o),a=o[o.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(i.children.splice(a,0,r),t)for(var[s,l]of Gk.points(t))t[l]=Uk.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:p}=n;if(0===p.length)break;var d=Fk.leaf(e,c),f=d.text.slice(0,u),h=d.text.slice(u);if(d.text=f+p+h,t)for(var[m,v]of Gk.points(t))t[v]=Uk.transform(m,n);break;case"merge_node":var{path:g}=n,x=Fk.get(e,g),b=$k.previous(g),y=Fk.get(e,b),w=Fk.parent(e,g),C=g[g.length-1];if(oT.isText(x)&&oT.isText(y))y.text+=x.text;else{if(oT.isText(x)||oT.isText(y))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(g,"] to nodes of different interfaces: ").concat(Zk.stringify(x)," ").concat(Zk.stringify(y)));y.children.push(...x.children)}if(w.children.splice(C,1),t)for(var[E,O]of Gk.points(t))t[O]=Uk.transform(E,n);break;case"move_node":var{path:D,newPath:S}=n;if($k.isAncestor(D,S))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(S,"] because the destination is inside itself."));var k=Fk.get(e,D),T=Fk.parent(e,D),j=D[D.length-1];T.children.splice(j,1);var M=$k.transform(D,n),A=Fk.get(e,$k.parent(M)),N=M[M.length-1];if(A.children.splice(N,0,k),t)for(var[P,R]of Gk.points(t))t[R]=Uk.transform(P,n);break;case"remove_node":var{path:B}=n,F=B[B.length-1];if(Fk.parent(e,B).children.splice(F,1),t)for(var[_,L]of Gk.points(t)){var I=Uk.transform(_,n);if(null!=t&&null!=I)t[L]=I;else{var $=void 0,z=void 0;for(var[V,W]of Fk.texts(e)){if(-1!==$k.compare(W,B)){z=[V,W];break}$=[V,W]}var U=!1;$&&z&&(U=$k.equals(z[1],B)?!$k.hasPrevious(z[1]):$k.common($[1],B).length<$k.common(z[1],B).length),$&&!U?(_.path=$[1],_.offset=$[0].text.length):z?(_.path=z[1],_.offset=0):t=null}}break;case"remove_text":var{path:H,offset:q,text:X}=n;if(0===X.length)break;var G=Fk.leaf(e,H),Y=G.text.slice(0,q),K=G.text.slice(q+X.length);if(G.text=Y+K,t)for(var[Z,J]of Gk.points(t))t[J]=Uk.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Fk.get(e,Q);for(var oe in te){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var re=te[oe];null==re?delete ne[oe]:ne[oe]=re}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Gk.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Zk.stringify(ae)," when there is no current selection."));t=iT({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:pe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,fe=Fk.get(e,ce),he=Fk.parent(e,ce),me=ce[ce.length-1];if(oT.isText(fe)){var ve=fe.text.slice(0,ue),ge=fe.text.slice(ue);fe.text=ve,de=iT(iT({},pe),{},{text:ge})}else{var xe=fe.children.slice(0,ue),be=fe.children.slice(ue);fe.children=xe,de=iT(iT({},pe),{},{children:be})}if(he.children.splice(me+1,0,de),t)for(var[ye,we]of Gk.points(t))t[we]=Uk.transform(ye,n)}return t})(e,n,t)}finally{e.children=IS(e.children),e.selection=n?VD(n)?IS(n):n:null}}},sT=["text"],lT=["children"];function cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pT={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Fk.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Ak.end(e,[]):[0],l=!0),null==l&&(l=!1),Gk.isRange(a))if(o||(a=Ak.unhangRange(e,a)),Gk.isCollapsed(a))a=a.anchor;else{var[,u]=Gk.edges(a),p=Ak.pointRef(e,u);wT.delete(e,{at:a}),a=p.unref()}if(Uk.isPoint(a)){null==s&&(s=oT.isText(c)?e=>oT.isText(e):e.isInline(c)?t=>oT.isText(t)||Ak.isInline(e,t):t=>Ak.isBlock(e,t));var[d]=Ak.nodes(e,{at:a.path,match:s,mode:i,voids:r});if(!d)return;var[,f]=d,h=Ak.pathRef(e,f),m=Ak.isEnd(e,a,f);wT.splitNodes(e,{at:a,match:s,mode:i,voids:r});var v=h.unref();a=m?$k.next(v):v}var g=$k.parent(a),x=a[a.length-1];if(r||!Ak.void(e,{at:g})){for(var b of t){var y=g.concat(x);x++,e.apply({type:"insert_node",path:y,node:b}),a=$k.next(a)}if(a=$k.previous(a),l){var w=Ak.end(e,a);w&&wT.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:o="lowest",voids:r=!1}=t,{match:i}=t;if(null==i&&(i=$k.isPath(n)?hT(e,n):t=>Ak.isBlock(e,t)),n){var a=Ak.nodes(e,{at:n,match:i,mode:o,voids:r}),s=Array.from(a,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=Ak.node(e,$k.parent(c)),[p,d]=u,f=c[c.length-1],{length:h}=p.children;if(1===h){var m=$k.next(d);wT.moveNodes(e,{at:c,to:m,voids:r}),wT.removeNodes(e,{at:d,voids:r})}else if(0===f)wT.moveNodes(e,{at:c,to:d,voids:r});else if(f===h-1){var v=$k.next(d);wT.moveNodes(e,{at:c,to:v,voids:r})}else{var g=$k.next(c),x=$k.next(d);wT.splitNodes(e,{at:g,voids:r}),wT.moveNodes(e,{at:c,to:x,voids:r})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{match:n,at:o=e.selection}=t,{hanging:r=!1,voids:i=!1,mode:a="lowest"}=t;if(o){if(null==n)if($k.isPath(o)){var[s]=Ak.parent(e,o);n=e=>s.children.includes(e)}else n=t=>Ak.isBlock(e,t);if(!r&&Gk.isRange(o)&&(o=Ak.unhangRange(e,o)),Gk.isRange(o))if(Gk.isCollapsed(o))o=o.anchor;else{var[,l]=Gk.edges(o),c=Ak.pointRef(e,l);wT.delete(e,{at:o}),o=c.unref(),null==t.at&&wT.select(e,o)}var[u]=Ak.nodes(e,{at:o,match:n,voids:i,mode:a}),p=Ak.previous(e,{at:o,match:n,voids:i,mode:a});if(u&&p){var[d,f]=u,[h,m]=p;if(0!==f.length&&0!==m.length){var v,g,x=$k.next(m),b=$k.common(f,m),y=$k.isSibling(f,m),w=Array.from(Ak.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=Ak.above(e,{at:f,mode:"highest",match:t=>w.includes(t)&&dT(e,t)}),E=C&&Ak.pathRef(e,C[1]);if(oT.isText(d)&&oT.isText(h)){var O=KS(d,sT);g=h.text.length,v=O}else{if(!Dk.isElement(d)||!Dk.isElement(h))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(Zk.stringify(d)," ").concat(Zk.stringify(h)));O=KS(d,lT);g=h.children.length,v=O}y||wT.moveNodes(e,{at:f,to:x,voids:i}),E&&wT.removeNodes(e,{at:E.current,voids:i}),Dk.isElement(h)&&Ak.isEmpty(e,h)||oT.isText(h)&&""===h.text&&0!==m[m.length-1]?wT.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:x,position:g,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){Ak.withoutNormalizing(e,(()=>{var{to:n,at:o=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(o){null==a&&(a=$k.isPath(o)?hT(e,o):t=>Ak.isBlock(e,t));var s=Ak.pathRef(e,n),l=Ak.nodes(e,{at:o,match:a,mode:r,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var u of c){var p=u.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d}),s.current&&$k.isSibling(d,p)&&$k.isAfter(d,p)&&(s.current=$k.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1,mode:r="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$k.isPath(i)?hT(e,i):t=>Ak.isBlock(e,t)),!n&&Gk.isRange(i)&&(i=Ak.unhangRange(e,i));var s=Ak.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[p]=Ak.node(e,u);e.apply({type:"remove_node",path:u,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{match:o,at:r=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(r){if(null==o&&(o=$k.isPath(r)?hT(e,r):t=>Ak.isBlock(e,t)),!s&&Gk.isRange(r)&&(r=Ak.unhangRange(e,r)),c&&Gk.isRange(r)){if(Gk.isCollapsed(r)&&Ak.leaf(e,r.anchor)[0].text.length>0)return;var p=Ak.rangeRef(e,r,{affinity:"inward"}),[d,f]=Gk.edges(r),h="lowest"===l?"lowest":"highest",m=Ak.isEnd(e,f,f.path);wT.splitNodes(e,{at:f,match:o,mode:h,voids:u,always:!m});var v=Ak.isStart(e,d,d.path);wT.splitNodes(e,{at:d,match:o,mode:h,voids:u,always:!v}),r=p.unref(),null==n.at&&wT.select(e,r)}for(var[g,x]of(i||(i=(e,t)=>e!==t),Ak.nodes(e,{at:r,match:o,mode:l,voids:u}))){var b={},y={};if(0!==x.length){var w=!1;for(var C in t)"children"!==C&&"text"!==C&&i(t[C],g[C])&&(w=!0,g.hasOwnProperty(C)&&(b[C]=g[C]),a?null!=t[C]&&(y[C]=a(g[C],t[C])):null!=t[C]&&(y[C]=t[C]));w&&e.apply({type:"set_node",path:x,properties:b,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==r&&(r=t=>Ak.isBlock(e,t)),Gk.isRange(i)&&(i=fT(e,i)),$k.isPath(i)){var l=i,c=Ak.point(e,l),[u]=Ak.parent(e,l);r=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var p,d=Ak.pointRef(e,i,{affinity:"backward"});try{var[f]=Ak.nodes(e,{at:i,match:r,mode:n,voids:o});if(!f)return;var h=Ak.void(e,{at:i,mode:"highest"});if(!o&&h){var[m,v]=h;if(Dk.isElement(m)&&e.isInline(m)){var g=Ak.after(e,v);if(!g){var x=$k.next(v);wT.insertNodes(e,{text:""},{at:x,voids:o}),g=Ak.point(e,x)}i=g,s=!0}a=i.path.length-v.length+1,s=!0}p=Ak.pointRef(e,i);var b=i.path.length-a,[,y]=f,w=i.path.slice(0,b),C=0===a?i.offset:i.path[b]+0;for(var[E,O]of Ak.levels(e,{at:w,reverse:!0,voids:o})){var D=!1;if(O.length<y.length||0===O.length||!o&&Ak.isVoid(e,E))break;var S=d.current,k=Ak.isEnd(e,S,O);if(s||!d||!Ak.isEdge(e,S,O)){D=!0;var T=Fk.extractProps(E);e.apply({type:"split_node",path:O,position:C,properties:T})}C=O[O.length-1]+(D||k?1:0)}if(null==t.at){var j=p.current||Ak.end(e,[]);wT.select(e,j)}}finally{var M;d.unref(),null===(M=p)||void 0===M||M.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var o={};for(var r of t)o[r]=null;wT.setNodes(e,o,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:o=!1,voids:r=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$k.isPath(i)?hT(e,i):t=>Ak.isBlock(e,t)),$k.isPath(i)&&(i=Ak.range(e,i));var s=Gk.isRange(i)?Ak.rangeRef(e,i):null,l=Ak.nodes(e,{at:i,match:a,mode:n,voids:r}),c=Array.from(l,(t=>{var[,n]=t;return Ak.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[i]=Ak.node(e,n),a=Ak.range(e,n);o&&s&&(a=Gk.intersection(s.current,a)),wT.liftNodes(e,{at:a,match:e=>Dk.isAncestor(i)&&i.children.includes(e),voids:r})};for(var p of c)u(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{mode:o="lowest",split:r=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=$k.isPath(s)?hT(e,s):e.isInline(t)?t=>Ak.isInline(e,t)||oT.isText(t):t=>Ak.isBlock(e,t)),r&&Gk.isRange(s)){var[l,c]=Gk.edges(s),u=Ak.rangeRef(e,s,{affinity:"inward"});wT.splitNodes(e,{at:c,match:a,voids:i}),wT.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&wT.select(e,s)}var p=Array.from(Ak.nodes(e,{at:s,match:e.isInline(t)?t=>Ak.isBlock(e,t):e=>Ak.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=Gk.isRange(s)?Gk.intersection(s,Ak.range(e,d)):s;if(f){var h=Array.from(Ak.nodes(e,{at:f,match:a,mode:o,voids:i}));if(h.length>0){var m=function(){var[n]=h,o=h[h.length-1],[,r]=n,[,a]=o;if(0===r.length&&0===a.length)return"continue";var s=$k.equals(r,a)?$k.parent(r):$k.common(r,a),l=Ak.range(e,r,a),c=Ak.node(e,s),[u]=c,p=s.length+1,d=$k.next(a.slice(0,p)),f=uT(uT({},t),{},{children:[]});wT.insertNodes(e,f,{at:d,voids:i}),wT.moveNodes(e,{at:l,match:e=>Dk.isAncestor(u)&&u.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===m)continue}}}}}))}},dT=(e,t)=>{if(Dk.isElement(t)){var n=t;return!!Ak.isVoid(e,t)||1===n.children.length&&dT(e,n.children[0])}return!Ak.isEditor(t)},fT=(e,t)=>{if(Gk.isCollapsed(t))return t.anchor;var[,n]=Gk.edges(t),o=Ak.pointRef(e,n);return wT.delete(e,{at:t}),o.unref()},hT=(e,t)=>{var[n]=Ak.node(e,t);return e=>e===n};function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gT={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:o}=e;if(o)if("anchor"===n)wT.select(e,o.anchor);else if("focus"===n)wT.select(e,o.focus);else if("start"===n){var[r]=Gk.edges(o);wT.select(e,r)}else if("end"===n){var[,i]=Gk.edges(o);wT.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:o=1,unit:r="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Gk.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Gk.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:o,unit:r},u={};if(null==a||"anchor"===a){var p=i?Ak.before(e,s,c):Ak.after(e,s,c);p&&(u.anchor=p)}if(null==a||"focus"===a){var d=i?Ak.before(e,l,c):Ak.after(e,l,c);d&&(u.focus=d)}wT.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=Ak.range(e,t),n)wT.setSelection(e,t);else{if(!Gk.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Zk.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:o}=e,{edge:r="both"}=n;if(o){"start"===r&&(r=Gk.isBackward(o)?"focus":"anchor"),"end"===r&&(r=Gk.isBackward(o)?"anchor":"focus");var{anchor:i,focus:a}=o,s="anchor"===r?i:a;wT.setSelection(e,{["anchor"===r?"anchor":"focus"]:vT(vT({},s),t)})}},setSelection(e,t){var{selection:n}=e,o={},r={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Uk.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Uk.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(o[i]=n[i],r[i]=t[i]);Object.keys(o).length>0&&e.apply({type:"set_selection",properties:o,newProperties:r})}}},xT={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:o="character",distance:r=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var l=!1;if(Gk.isRange(a)&&Gk.isCollapsed(a)&&(l=!0,a=a.anchor),Uk.isPoint(a)){var c=Ak.void(e,{at:a,mode:"highest"});if(!i&&c){var[,u]=c;a=u}else{var p={unit:o,distance:r};a={anchor:a,focus:n?Ak.before(e,a,p)||Ak.start(e,[]):Ak.after(e,a,p)||Ak.end(e,[])},s=!0}}if($k.isPath(a))wT.removeNodes(e,{at:a,voids:i});else if(!Gk.isCollapsed(a)){if(!s){var[,d]=Gk.edges(a),f=Ak.end(e,[]);Uk.equals(d,f)||(a=Ak.unhangRange(e,a,{voids:i}))}var[h,m]=Gk.edges(a),v=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:h,voids:i}),g=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:m,voids:i}),x=v&&g&&!$k.equals(v[1],g[1]),b=$k.equals(h.path,m.path),y=i?null:Ak.void(e,{at:h,mode:"highest"}),w=i?null:Ak.void(e,{at:m,mode:"highest"});if(y){var C=Ak.before(e,h);C&&v&&$k.isAncestor(v[1],C.path)&&(h=C)}if(w){var E=Ak.after(e,m);E&&g&&$k.isAncestor(g[1],E.path)&&(m=E)}var O,D=[];for(var S of Ak.nodes(e,{at:a,voids:i})){var[k,T]=S;O&&0===$k.compare(T,O)||(!i&&Ak.isVoid(e,k)||!$k.isCommon(T,h.path)&&!$k.isCommon(T,m.path))&&(D.push(S),O=T)}var j=Array.from(D,(t=>{var[,n]=t;return Ak.pathRef(e,n)})),M=Ak.pointRef(e,h),A=Ak.pointRef(e,m),N="";if(!b&&!y){var P=M.current,[R]=Ak.leaf(e,P),{path:B}=P,{offset:F}=h,_=R.text.slice(F);_.length>0&&(e.apply({type:"remove_text",path:B,offset:F,text:_}),N=_)}if(j.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>wT.removeNodes(e,{at:t,voids:i}))),!w){var L=A.current,[I]=Ak.leaf(e,L),{path:$}=L,z=b?h.offset:0,V=I.text.slice(z,m.offset);V.length>0&&(e.apply({type:"remove_text",path:$,offset:z,text:V}),N=V)}!b&&x&&A.current&&M.current&&wT.mergeNodes(e,{at:A.current,hanging:!0,voids:i}),l&&n&&"character"===o&&N.length>1&&N.match(/[\u0E00-\u0E7F]+/)&&wT.insertText(e,N.slice(0,N.length-r));var W=M.unref(),U=A.unref(),H=n?W||U:U||W;null==t.at&&H&&wT.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Gk.isRange(i))if(o||(i=Ak.unhangRange(e,i)),Gk.isCollapsed(i))i=i.anchor;else{var[,a]=Gk.edges(i);if(!r&&Ak.void(e,{at:a}))return;var s=Ak.pointRef(e,a);wT.delete(e,{at:i}),i=s.unref()}else $k.isPath(i)&&(i=Ak.start(e,i));if(r||!Ak.void(e,{at:i})){var l=Ak.above(e,{at:i,match:t=>Ak.isInline(e,t),mode:"highest",voids:r});if(l){var[,c]=l;if(Ak.isEnd(e,i,c))i=Ak.after(e,c);else if(Ak.isStart(e,i,c)){i=Ak.before(e,c)}}var u=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:i,voids:r}),[,p]=u,d=Ak.isStart(e,i,p),f=Ak.isEnd(e,i,p),h=d&&f,m=!d||d&&f,v=!f,[,g]=Fk.first({children:t},[]),[,x]=Fk.last({children:t},[]),b=[],y=t=>{var[n,o]=t;return!(0===o.length)&&(!!h||!(m&&$k.isAncestor(o,g)&&Dk.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&$k.isAncestor(o,x)&&Dk.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Fk.nodes({children:t},{pass:y}))y(w)&&b.push(w);var C=[],E=[],O=[],D=!0,S=!1;for(var[k]of b)Dk.isElement(k)&&!e.isInline(k)?(D=!1,S=!0,E.push(k)):D?C.push(k):O.push(k);var[T]=Ak.nodes(e,{at:i,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),[,j]=T,M=Ak.isStart(e,i,j),A=Ak.isEnd(e,i,j),N=Ak.pathRef(e,f&&!O.length?$k.next(p):p),P=Ak.pathRef(e,A?$k.next(j):j);wT.splitNodes(e,{at:i,match:t=>S?Ak.isBlock(e,t):oT.isText(t)||Ak.isInline(e,t),mode:S?"lowest":"highest",always:S&&(!d||C.length>0)&&(!f||O.length>0),voids:r});var R,B=Ak.pathRef(e,!M||M&&A?$k.next(j):j);if(wT.insertNodes(e,C,{at:B.current,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),h&&!C.length&&E.length&&!O.length&&wT.delete(e,{at:p,voids:r}),wT.insertNodes(e,E,{at:N.current,match:t=>Ak.isBlock(e,t),mode:"lowest",voids:r}),wT.insertNodes(e,O,{at:P.current,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),!n.at)if(O.length>0&&P.current?R=$k.previous(P.current):E.length>0&&N.current?R=$k.previous(N.current):B.current&&(R=$k.previous(B.current)),R){var F=Ak.end(e,R);wT.select(e,F)}B.unref(),N.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{voids:o=!1}=n,{at:r=e.selection}=n;if(r){if($k.isPath(r)&&(r=Ak.range(e,r)),Gk.isRange(r))if(Gk.isCollapsed(r))r=r.anchor;else{var i=Gk.end(r);if(!o&&Ak.void(e,{at:i}))return;var a=Gk.start(r),s=Ak.pointRef(e,a),l=Ak.pointRef(e,i);wT.delete(e,{at:r,voids:o});var c=s.unref(),u=l.unref();r=c||u,wT.setSelection(e,{anchor:r,focus:r})}if(o||!Ak.void(e,{at:r})){var{path:p,offset:d}=r;t.length>0&&e.apply({type:"insert_text",path:p,offset:d,text:t})}}}))}};function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function yT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wT=yT(yT(yT(yT({},aT),pT),gT),xT),CT=function(e){if(e=String(e||""),OT.test(e))return"rtl";if(DT.test(e))return"ltr";return"neutral"},ET="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",OT=new RegExp("^[^"+ET+"]*[֑-߿יִ-﷽ﹰ-ﻼ]"),DT=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+ET+"]");var ST=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},kT="object"==typeof he&&he&&he.Object===Object&&he,TT=kT,jT="object"==typeof self&&self&&self.Object===Object&&self,MT=TT||jT||Function("return this")(),AT=MT,NT=function(){return AT.Date.now()},PT=/\s/;var RT=function(e){for(var t=e.length;t--&&PT.test(e.charAt(t)););return t},BT=RT,FT=/^\s+/;var _T=function(e){return e?e.slice(0,BT(e)+1).replace(FT,""):e},LT=MT.Symbol,IT=LT,$T=Object.prototype,zT=$T.hasOwnProperty,VT=$T.toString,WT=IT?IT.toStringTag:void 0;var UT=function(e){var t=zT.call(e,WT),n=e[WT];try{e[WT]=void 0;var o=!0}catch(e){}var r=VT.call(e);return o&&(t?e[WT]=n:delete e[WT]),r},HT=Object.prototype.toString;var qT=UT,XT=function(e){return HT.call(e)},GT=LT?LT.toStringTag:void 0;var YT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":GT&> in Object(e)?qT(e):XT(e)};var KT=function(e){return null!=e&&"object"==typeof e},ZT=YT,JT=KT;var QT=function(e){return"symbol"==typeof e||JT(e)&&"[object Symbol]"==ZT(e)},ej=_T,tj=ST,nj=QT,oj=/^[-+]0x[0-9a-f]+$/i,rj=/^0b[01]+$/i,ij=/^0o[0-7]+$/i,aj=parseInt;var sj=function(e){if("number"==typeof e)return e;if(nj(e))return NaN;if(tj(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tj(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ej(e);var n=rj.test(e);return n||ij.test(e)?aj(e.slice(2),n?2:8):oj.test(e)?NaN:+e},lj=ST,cj=NT,uj=sj,pj=Math.max,dj=Math.min;var fj=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function v(){var e=cj();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-l);return p?dj(n,i-(e-c)):n}(e))}function g(e){return s=void 0,d&&o?f(e):(o=r=void 0,a)}function x(){var e=cj(),n=m(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return h(l);if(p)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=uj(t)||0,lj(n)&&(u=!!n.leading,i=(p="maxWait"in n)?pj(uj(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},x.flush=function(){return void 0===s?a:g(cj())},x},hj=fj,mj=ST;var vj=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return mj(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),hj(e,t,{leading:o,maxWait:t,trailing:r})};function gj(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function xj(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function bj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xj(n.overflowY,t)||xj(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function yj(e,t,n,o,r,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0}function wj(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!gj(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],p=e;gj(p)&&l(p);){if((p=p.parentElement)===c){u.push(p);break}null!=p&&p===document.body&&bj(p)&&!bj(document.documentElement)||null!=p&&bj(p,s)&&u.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,x=v.width,b=v.top,y=v.right,w=v.bottom,C=v.left,E="start"===r||"nearest"===r?b:"end"===r?w:b+g/2,O="center"===i?C+x/2:"end"===i?y:C,D=[],S=0;S<u.length;S++){var k=u[S],T=k.getBoundingClientRect(),j=T.height,M=T.width,A=T.top,N=T.right,P=T.bottom,R=T.left;if("if-needed"===o&&b>=0&&C>=0&&w<=f&&y<=d&&b>=A&&w<=P&&C>=R&&y<=N)return D;var B=getComputedStyle(k),F=parseInt(B.borderLeftWidth,10),_=parseInt(B.borderTopWidth,10),L=parseInt(B.borderRightWidth,10),I=parseInt(B.borderBottomWidth,10),$=0,z=0,V="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-L:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-_-I:0;if(c===k)$="start"===r?E:"end"===r?E-f:"nearest"===r?yj(m,m+f,f,_,I,m+E,m+E+g,g):E-f/2,z="start"===i?O:"center"===i?O-d/2:"end"===i?O-d:yj(h,h+d,d,F,L,h+O,h+O+x,x),$=Math.max(0,$+m),z=Math.max(0,z+h);else{$="start"===r?E-A-_:"end"===r?E-P+I+W:"nearest"===r?yj(A,P,j,_,I+W,E,E+g,g):E-(A+j/2)+W/2,z="start"===i?O-R-F:"center"===i?O-(R+M/2)+V/2:"end"===i?O-N+L+V:yj(R,N,M,F,L+V,O,O+x,x);var U=k.scrollLeft,H=k.scrollTop;E+=H-($=Math.max(0,Math.min(H+$,k.scrollHeight-j+W))),O+=U-(z=Math.max(0,Math.min(U+z,k.scrollWidth-M+V)))}D.push({el:k,top:$,left:z})}return D}function Cj(e){return e===Object(e)&&0!==Object.keys(e).length}function Ej(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Cj(t)&&"function"==typeof t.behavior)return t.behavior(n?wj(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Cj(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(wj(e,o),o.behavior)}}var Oj={};Object.defineProperty(Oj,"__esModule",{value:!0});for(var Dj="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Sj={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Dj?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Tj={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},jj=1;jj<20;jj++)Tj["f"+jj]=111+jj;function Mj(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return Aj(e,t)})),r=function(e){return o.some((function(t){return Nj(t,e)}))};return null==n?r:r(n)}function Aj(e,t){var n=t&&t.byKey,o={},r=(e=e.replace("++","+add")).split("+"),i=r.length;for(var a in Sj)o[Sj[a]]=!1;var s=!0,l=!1,c=void 0;try{for(var u,p=r[Symbol.iterator]();!(s=(u=p.next()).done);s=!0){var d=u.value,f=d.endsWith("?")&&d.length>1;f&&(d=d.slice(0,-1));var h=Rj(d),m=Sj[h];1!==i&&m||(n?o.key=h:o.which=Pj(d)),m&&(o[m]=!f||null)}}catch(e){l=!0,c=e}finally{try{!s&&p.return&&p.return()}finally{if(l)throw c}}return o}function Nj(e,t){for(var n in e){var o=e[n],r=void 0;if(null!=o&&((null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===o&&93===t.which?91:t.which:t[n])||!1!==o)&&r!==o))return!1}return!0}function Pj(e){return e=Rj(e),Tj[e]||e.toUpperCase().charCodeAt(0)}function Rj(e){return e=e.toLowerCase(),e=kj[e]||e}Oj.default=Mj,Oj.isHotkey=Mj,Oj.isCodeHotkey=function(e,t){return Mj(e,t)};var Bj=Oj.isKeyHotkey=function(e,t){return Mj(e,{byKey:!0},t)};function Fj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _j(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Oj.parseHotkey=Aj,Oj.compareHotkey=Nj,Oj.toKeyCode=Pj,Oj.toKeyName=Rj;var Lj=0;class Ij{constructor(){this.id="".concat(Lj++)}}var $j=new WeakMap,zj=new WeakMap,Vj=new WeakMap,Wj=new WeakMap,Uj=new WeakMap,Hj=new WeakMap,qj=new WeakMap,Xj=new WeakMap,Gj=new WeakMap,Yj=new WeakMap,Kj=new WeakMap,Zj=new WeakMap,Jj=new WeakMap,Qj=new WeakMap,eM=new WeakMap,tM=new WeakMap,nM=new WeakMap,oM=new WeakMap,rM=new WeakMap,iM=new WeakMap,aM=new WeakMap,sM=Symbol("placeholder"),lM=Symbol("mark-placeholder"),cM=globalThis.Text,uM=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,pM=e=>dM(e)&&1===e.nodeType,dM=e=>{var t=uM(e);return!!t&&e instanceof t.Node},fM=e=>{var t=e&&e.anchorNode&&uM(e.anchorNode);return!!t&&e instanceof t.Selection},hM=e=>dM(e)&&3===e.nodeType,mM=(e,t,n)=>{for(var o,{childNodes:r}=e,i=r[t],a=t,s=!1,l=!1;(dM(o=i)&&8===o.nodeType||pM(i)&&0===i.childNodes.length||pM(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=r.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=r[a],t=a,a+="forward"===n?1:-1);return[i,t]},vM=(e,t,n)=>{var[o]=mM(e,t,n);return o},gM=e=>{var t="";if(hM(e)&&e.nodeValue)return e.nodeValue;if(pM(e)){for(var n of Array.from(e.childNodes))t+=gM(n);var o=getComputedStyle(e).getPropertyValue("display");"block"!==o&&"list"!==o&&"BR"!==e.tagName||(t+="\n")}return t},xM=/data-slate-fragment="(.+?)"/m,bM=(e,t,n)=>{var{target:o}=t;if(pM(o)&&o.matches('[contentEditable="false"]'))return!1;var{document:r}=BM.getWindow(e);if(r.contains(o))return BM.hasDOMNode(e,o,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var r of t)if(r===o||r.contains(o))return!0;for(var i of n)if(i===o||i.contains(o))return!0}));return!(!i||i===t)&&bM(e,i,n)},yM=parseInt(u.default.version.split(".")[0],10)>=17,wM="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,CM="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),EM="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),OM="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),DM="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),SM="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),kM="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),TM="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jM="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),MM="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),AM="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),NM="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),PM=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),RM=!TM&&!SM&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,BM={isComposing:e=>!!Zj.get(e),getWindow(e){var t=Vj.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=Xj.get(t);return n||(n=new Ij,Xj.set(t,n)),n},findPath(e,t){for(var n=[],o=t;;){var r=zj.get(o);if(null==r){if(Ak.isEditor(o))return n;break}var i=$j.get(o);if(null==i)break;n.unshift(i),o=r}throw new Error("Unable to find the path for Slate node: ".concat(Zk.stringify(t)))},findDocumentOrShadowRoot(e){var t=BM.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!Kj.get(e),isReadOnly:e=>!!Yj.get(e),blur(e){var t=BM.toDOMNode(e,e),n=BM.findDocumentOrShadowRoot(e);Kj.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=BM.toDOMNode(e,e),n=BM.findDocumentOrShadowRoot(e);Kj.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=BM.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&wT.deselect(e)},hasDOMNode(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:r=!1}=o,i=BM.toDOMNode(e,e);try{n=pM(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||r&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=Gj.get(e),o=Ak.isEditor(t)?Wj.get(e):null==n?void 0:n.get(BM.findKey(e,t));if(!o)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Zk.stringify(t)));return o},toDOMPoint(e,t){var n,[o]=Ak.node(e,t.path),r=BM.toDOMNode(e,o);Ak.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,p=l.getAttribute("data-slate-length"),d=a+(null==p?u:parseInt(p,10)),f=i[s+1];if(t.offset===d&&null!=f&&f.hasAttribute("data-slate-mark-placeholder")){var h,m=f.childNodes[0];n=[m instanceof cM?m:f,null!==(h=f.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=d){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=d}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Zk.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:o}=t,r=Gk.isBackward(t),i=BM.toDOMPoint(e,n),a=Gk.isCollapsed(t)?i:BM.toDOMPoint(e,o),s=BM.getWindow(e).document.createRange(),[l,c]=r?a:i,[u,p]=r?i:a,d=!!(pM(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),f=!!(pM(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,d?1:c),s.setEnd(u,f?1:p),s},toSlateNode(e,t){var n=pM(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var o=n?Hj.get(n):null;if(!o)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return o},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:o,target:r}=t;if(null==n||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=BM.toSlateNode(e,t.target),s=BM.findPath(e,a);if(Ak.isVoid(e,a)){var l=r.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:o-l.top<l.top+l.height-o,u=Ak.point(e,s,{edge:c?"start":"end"}),p=c?Ak.before(e,u):Ak.after(e,u);if(p)return Ak.range(e,p)}var{document:d}=BM.getWindow(e);if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,o);else{var f=d.caretPositionFromPoint(n,o);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return BM.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:o,suppressThrow:r}=n,[i,a]=o?t:(e=>{var[t,n]=e;if(pM(t)&&t.childNodes.length){var o=n===t.childNodes.length,r=o?n-1:n;for([t,r]=mM(t,r,o?"backward":"forward"),o=r<n;pM(t)&&t.childNodes.length;){var i=o?t.childNodes.length-1:0;t=vM(t,i,o?"backward":"forward")}n=o&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,p,d=BM.toDOMNode(e,e),f=s.closest('[data-slate-void="true"]'),h=f&&d.contains(f)?f:null,m=s.closest("[data-slate-leaf]"),v=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var g=BM.getWindow(e).document.createRange();g.setStart(l,0),g.setEnd(i,a);var x=g.cloneContents();[...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))].forEach((e=>{EM&&!o&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=x.textContent.length,v=l}}else if(h){for(var b=h.querySelectorAll("[data-slate-leaf]"),y=0;y<b.length;y++){var w=b[y];if(BM.hasDOMNode(e,w)){m=w;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(v=m).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}v&&c===v.textContent.length&&EM&&"z"===v.getAttribute("data-slate-zero-width")&&null!==(u=v.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||OM&&null!==(p=v.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&c--}if(EM&&!l&&!o){var C=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(C&&BM.hasDOMNode(e,C,{editable:!0})){var E=BM.toSlateNode(e,C),{path:O,offset:D}=Ak.start(e,BM.findPath(e,E));return C.querySelector("[data-slate-leaf]")||(D=a),{path:O,offset:D}}}if(!l){if(r)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var S=BM.toSlateNode(e,l);return{path:BM.findPath(e,S),offset:c}},toSlateRange(e,t,n){var o,r,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((fM(t)?t.anchorNode:t.startContainer)&&(fM(t)?(o=t.anchorNode,r=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=kM&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(o=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==o||null==i||null==r||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=BM.toSlatePoint(e,[o,r],{exactMatch:l,suppressThrow:c});if(!u)return null;var p=s?u:BM.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!p)return null;var d={anchor:u,focus:p};return Gk.isExpanded(d)&&Gk.isForward(d)&&pM(i)&&Ak.void(e,{at:d.focus,mode:"highest"})&&(d=Ak.unhangRange(e,d,{voids:!0})),d},hasRange(e,t){var{anchor:n,focus:o}=t;return Ak.hasPath(e,n.path)&&Ak.hasPath(e,o.path)},androidScheduleFlush(e){var t;null===(t=eM.get(e))||void 0===t||t()},androidPendingDiffs:e=>oM.get(e)},FM=PM?n.useLayoutEffect:n.useEffect,_M=["anchor","focus"],LM=["anchor","focus"],IM=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>t.hasOwnProperty(n)&&e[n]===t[n])),$M=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var o=e[n],r=t[n],i=_j(o,_M),a=_j(r,LM);if(!Gk.equals(o,r)||o[sM]!==r[sM]||!IM(i,a))return!1}return!0},zM=e=>{var{isLast:t,leaf:n,parent:o,text:r}=e,i=HM(),a=BM.findPath(i,r),s=$k.parent(a),l=!0===n[lM];return i.isVoid(o)?u.default.createElement(WM,{length:Fk.string(o).length}):""!==n.text||o.children[o.children.length-1]!==r||i.isInline(o)||""!==Ak.string(i,s)?""===n.text?u.default.createElement(WM,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?u.default.createElement(VM,{isTrailing:!0,text:n.text}):u.default.createElement(VM,{text:n.text}):u.default.createElement(WM,{isLineBreak:!0,isMarkPlaceholder:l})},VM=e=>{var{text:t,isTrailing:o=!1}=e,r=n.useRef(null),i=()=>"".concat(null!=t?t:"").concat(o?"\n":"");return FM((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?u.default.createElement("span",{"data-slate-string":!0,ref:r}):u.default.createElement("span",{"data-slate-string":!0,ref:r},i())},WM=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:o=!1}=e,r={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return o&&(r["data-slate-mark-placeholder"]=!0),u.default.createElement("span",Object.assign({},r),EM&&n?null:"\ufeff",n?u.default.createElement("br",null):null)},UM=n.createContext(null),HM=()=>{var e=n.useContext(UM);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},qM=e=>{var{leaf:t,isLast:o,text:r,parent:i,renderPlaceholder:a,renderLeaf:s=(e=>u.default.createElement(GM,Object.assign({},e)))}=e,l=n.useRef(null),c=HM();n.useEffect((()=>{var e=null==l?void 0:l.current,t=BM.toDOMNode(c,c);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),Uj.set(c,e),()=>{t.style.minHeight="auto",Uj.delete(c)}}),[l,t]);var p=u.default.createElement(zM,{isLast:o,leaf:t,parent:i,text:r});if(t[sM]){var d={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=u.default.createElement(u.default.Fragment,null,a(d),p)}return s({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},XM=u.default.memo(qM,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&oT.equals(t.leaf,e.leaf)&&t.leaf[sM]===e.leaf[sM])),GM=e=>{var{attributes:t,children:n}=e;return u.default.createElement("span",Object.assign({},t),n)},YM=e=>{for(var{decorations:t,isLast:o,parent:r,renderPlaceholder:i,renderLeaf:a,text:s}=e,l=HM(),c=n.useRef(null),p=oT.decorations(s,t),d=BM.findKey(l,s),f=[],h=0;h<p.length;h++){var m=p[h];f.push(u.default.createElement(XM,{isLast:o&&h===p.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:i,leaf:m,text:s,parent:r,renderLeaf:a}))}return FM((()=>{var e=Gj.get(l);c.current?(null==e||e.set(d,c.current),qj.set(s,c.current),Hj.set(c.current,s)):(null==e||e.delete(d),qj.delete(s))})),u.default.createElement("span",{"data-slate-node":"text",ref:c},f)},KM=u.default.memo(YM,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&$M(t.decorations,e.decorations))),ZM=e=>{var{decorations:t,element:o,renderElement:r=(e=>u.default.createElement(QM,Object.assign({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=HM(),c=rA(),p=l.isInline(o),d=BM.findKey(l,o),f=n.useCallback((e=>{var t=Gj.get(l);e?(null==t||t.set(d,e),qj.set(o,e),Hj.set(e,o)):(null==t||t.delete(d),qj.delete(o))}),[l,d,o]),h=nA({decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:f};if(p&&(m["data-slate-inline"]=!0),!p&&Ak.hasInlines(l,o)){var v=Fk.string(o),g=CT(v);"rtl"===g&&(m.dir=g)}if(Ak.isVoid(l,o)){m["data-slate-void"]=!0,!c&&p&&(m.contentEditable=!1);var x=p?"span":"div",[[b]]=Fk.texts(o);h=u.default.createElement(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},u.default.createElement(KM,{renderPlaceholder:i,decorations:[],isLast:!1,parent:o,text:b})),$j.set(b,0),zj.set(b,o)}return r({attributes:m,children:h,element:o})},JM=u.default.memo(ZM,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&$M(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Gk.equals(e.selection,t.selection)))),QM=e=>{var{attributes:t,children:n,element:o}=e,r=HM().isInline(o)?"span":"div";return u.default.createElement(r,Object.assign({},t,{style:{position:"relative"}}),n)},eA=n.createContext((()=>[])),tA=n.createContext(!1),nA=e=>{for(var{decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=n.useContext(eA),c=HM(),p=BM.findPath(c,o),d=[],f=Dk.isElement(o)&&!c.isInline(o)&&Ak.hasInlines(c,o),h=0;h<o.children.length;h++){var m=p.concat(h),v=o.children[h],g=BM.findKey(c,v),x=Ak.range(c,m),b=s&&Gk.intersection(x,s),y=l([v,m]);for(var w of t){var C=Gk.intersection(w,x);C&&y.push(C)}Dk.isElement(v)?d.push(u.default.createElement(tA.Provider,{key:"provider-".concat(g.id),value:!!b},u.default.createElement(JM,{decorations:y,element:v,key:g.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:b}))):d.push(u.default.createElement(KM,{decorations:y,key:g.id,isLast:f&&h===o.children.length-1,parent:o,renderPlaceholder:i,renderLeaf:a,text:v})),$j.set(v,h),zj.set(v,o)}return d},oA=n.createContext(!1),rA=()=>n.useContext(oA),iA=n.createContext(null),aA={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},sA={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},lA={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},cA=e=>{var t=aA[e],n=sA[e],o=lA[e],r=t&&Bj(t),i=n&&Bj(n),a=o&&Bj(o);return e=>!(!r||!r(e))||(!!(CM&&i&&i(e))||!(CM||!a||!a(e)))},uA={isBold:cA("bold"),isCompose:cA("compose"),isMoveBackward:cA("moveBackward"),isMoveForward:cA("moveForward"),isDeleteBackward:cA("deleteBackward"),isDeleteForward:cA("deleteForward"),isDeleteLineBackward:cA("deleteLineBackward"),isDeleteLineForward:cA("deleteLineForward"),isDeleteWordBackward:cA("deleteWordBackward"),isDeleteWordForward:cA("deleteWordForward"),isExtendBackward:cA("extendBackward"),isExtendForward:cA("extendForward"),isExtendLineBackward:cA("extendLineBackward"),isExtendLineForward:cA("extendLineForward"),isItalic:cA("italic"),isMoveLineBackward:cA("moveLineBackward"),isMoveLineForward:cA("moveLineForward"),isMoveWordBackward:cA("moveWordBackward"),isMoveWordForward:cA("moveWordForward"),isRedo:cA("redo"),isSoftBreak:cA("insertSoftBreak"),isSplitBlock:cA("splitBlock"),isTransposeCharacter:cA("transposeCharacter"),isUndo:cA("undo")},pA={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class dA extends n.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,pA)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],o=()=>{n=[]};return{registerMutations:o=>{if(t.current){var r=o.filter((t=>bM(e,t,o)));n.push(...r)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),o()},clear:o}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,o,r=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=r&&r.length&&(null===(o=this.manager)||void 0===o||o.registerMutations(r));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}dA.contextType=UM;var fA=EM?dA:e=>{var{children:t}=e;return u.default.createElement(u.default.Fragment,null,t)};function hA(e,t){var{path:n,diff:o}=t;if(!Ak.hasPath(e,n))return!1;var r=Fk.get(e,n);if(!oT.isText(r))return!1;if(o.start!==r.text.length||0===o.text.length)return r.text.slice(o.start,o.start+o.text.length)===o.text;var i=$k.next(n);if(!Ak.hasPath(e,i))return!1;var a=Fk.get(e,i);return oT.isText(a)&&a.text.startsWith(o.text)}function mA(e,t){var{start:n,end:o,text:r}=t,i=e.slice(n,o),a=function(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return n}(i,r),s=function(e,t,n){for(var o=Math.min(e.length,t.length,n),r=0;r<o;r++)if(e.charAt(e.length-r-1)!==t.charAt(t.length-r-1))return r;return o}(i,r,Math.min(i.length-a,r.length-a)),l={start:n+a,end:o-s,text:r.slice(a,r.length-s)};return l.start===l.end&&0===l.text.length?null:l}function vA(e,t,n){var o=Math.min(t.start,n.start),r=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-r),s=i.slice(o,a);return mA(e,{start:o,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function gA(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function xA(e,t){var{path:n,offset:o}=t;if(!Ak.hasPath(e,n))return null;var r=Fk.get(e,n);if(!oT.isText(r))return null;var i=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:n});if(!i)return null;for(;o>r.text.length;){var a=Ak.next(e,{at:n,match:oT.isText});if(!a||!$k.isDescendant(a[1],i[1]))return null;o-=r.text.length,r=a[0],n=a[1]}return{path:n,offset:o}}function bA(e,t){var n=xA(e,t.anchor);if(!n)return null;if(Gk.isCollapsed(t))return{anchor:n,focus:n};var o=xA(e,t.focus);return o?{anchor:n,focus:o}:null}function yA(e,t,n){var o=oM.get(e),r=null==o?void 0:o.find((e=>{var{path:n}=e;return $k.equals(n,t.path)}));if(!r||t.offset<=r.diff.start)return Uk.transform(t,n,{affinity:"backward"});var{diff:i}=r;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=Uk.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=Uk.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&$k.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function wA(e,t,n){var o=yA(e,t.anchor,n);if(!o)return null;if(Gk.isCollapsed(t))return{anchor:o,focus:o};var r=yA(e,t.focus,n);return r?{anchor:o,focus:r}:null}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OA(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:o}=e,r=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=iM.get(t);if(iM.delete(t),e){var{selection:n}=t,o=bA(t,e);!o||n&&Gk.equals(o,n)||wT.select(t,o)}},p=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),v()||m()){r||(r=!0,setTimeout((()=>r=!1))),m()&&(r="action");var i=t.selection&&Ak.rangeRef(t,t.selection,{affinity:"forward"});nM.set(t,t.marks),rM.get(t),oM.get(t);for(var l,p=!(null===(e=oM.get(t))||void 0===e||!e.length);l=null===(d=oM.get(t))||void 0===d?void 0:d[0];){var d,f,h=tM.get(t);void 0!==h&&(tM.delete(t),t.marks=h),h&&!1===c&&(c=null);var g=gA(l);t.selection&&Gk.equals(t.selection,g)||wT.select(t,g),l.diff.text?Ak.insertText(t,l.diff.text):Ak.deleteFragment(t),oM.set(t,null===(f=oM.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==l.id}))),hA(t,l)||(p=!1,rM.delete(t),nM.delete(t),r="action",iM.delete(t),n.cancel(),o.cancel(),null==i||i.unref())}var x=null==i?void 0:i.unref();if(!x||iM.get(t)||t.selection&&Gk.equals(x,t.selection)||wT.select(t,x),m())(()=>{var e=rM.get(t);if(rM.delete(t),e){if(e.at){var n=Uk.isPoint(e.at)?xA(t,e.at):bA(t,e.at);if(!n)return;var o=Ak.range(t,n);t.selection&&Gk.equals(t.selection,o)||wT.select(t,n)}e.run()}})();else{p&&n(),n.flush(),o.flush(),u();var b=nM.get(t);nM.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else u()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Uj.get(t);n&&(v()||e?n.style.display="none":n.style.removeProperty("display"))},f=(e,n)=>{var o,r=null!==(o=oM.get(t))&&void 0!==o?o:[];oM.set(t,r);var i=Fk.leaf(t,e),a=r.findIndex((t=>$k.equals(t.path,e)));if(a<0)return mA(i.text,n)&&r.push({path:e,diff:n,id:l++}),void d();var s=vA(i.text,r[a].diff,n);if(!s)return r.splice(a,1),void d();r[a]=EA(EA({},r[a]),{},{diff:s})},h=function(e){var{at:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,iM.delete(t),n.cancel(),o.cancel(),m()&&p(),rM.set(t,{at:r,run:e}),s=setTimeout(p)},m=()=>!!rM.get(t),v=()=>{var e;return!(null===(e=oM.get(t))||void 0===e||!e.length)},g=()=>{m()||(s=setTimeout(p))};return{flush:p,scheduleFlush:g,hasPendingDiffs:v,hasPendingAction:m,hasPendingChanges:()=>m()||v(),isFlushing:()=>r,handleUserSelect:e=>{iM.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var o=!n||!$k.equals(n.anchor.path,e.anchor.path),r=!n||!$k.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(o&&c||r)&&(c=!1),!o&&v()||(a=setTimeout(p,200))}},handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{Zj.set(t,!1),p()}),25)},handleCompositionStart:e=>{Zj.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:o}=e,r=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==o&&"insertCompositionText"!==o&&(c=!1);var[s]=e.getTargetRanges();s&&(r=BM.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=BM.getWindow(t).getSelection();if(!r&&l&&(s=l,r=BM.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),r=null!==(n=r)&&void 0!==n?n:t.selection){if(Gk.isExpanded(r)&&o.startsWith("delete")){var[u,p]=Gk.edges(r);if(Fk.leaf(t,u.path).text.length===u.offset&&0===p.offset){var d=Ak.next(t,{at:u.path,match:oT.isText});d&&$k.equals(d[1],p.path)&&(r={anchor:p,focus:p})}}if(Gk.isExpanded(r)&&o.startsWith("delete")){if($k.equals(r.anchor.path,r.focus.path)){var[m,v]=Gk.edges(r);return f(r.anchor.path,{text:"",end:v.offset,start:m.offset})}var x=o.endsWith("Backward")?"backward":"forward";return h((()=>Ak.deleteFragment(t,{direction:x})),{at:r})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>Ak.deleteFragment(t)),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:b}=r;if(Gk.isCollapsed(r)){var y=Fk.leaf(t,b.path);if(b.offset<y.text.length)return f(b.path,{text:"",start:b.offset,end:b.offset+1})}return h((()=>Ak.deleteForward(t)),{at:r});case"deleteContentBackward":var w,{anchor:C}=r;return(fM(s)?s.isCollapsed:!(null===(w=s)||void 0===w||!w.collapsed))&&Gk.isCollapsed(r)&&C.offset>0?f(C.path,{text:"",start:C.offset-1,end:C.offset}):h((()=>Ak.deleteBackward(t)),{at:r});case"deleteEntireSoftLine":return h((()=>{Ak.deleteBackward(t,{unit:"line"}),Ak.deleteForward(t,{unit:"line"})}),{at:r});case"deleteHardLineBackward":return h((()=>Ak.deleteBackward(t,{unit:"block"})),{at:r});case"deleteSoftLineBackward":return h((()=>Ak.deleteBackward(t,{unit:"line"})),{at:r});case"deleteHardLineForward":return h((()=>Ak.deleteForward(t,{unit:"block"})),{at:r});case"deleteSoftLineForward":return h((()=>Ak.deleteForward(t,{unit:"line"})),{at:r});case"deleteWordBackward":return h((()=>Ak.deleteBackward(t,{unit:"word"})),{at:r});case"deleteWordForward":return h((()=>Ak.deleteForward(t,{unit:"word"})),{at:r});case"insertLineBreak":return h((()=>Ak.insertSoftBreak(t)),{at:r});case"insertParagraph":return h((()=>Ak.insertBreak(t)),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return h((()=>BM.insertData(t,i)),{at:r});if("string"==typeof i&&i.includes("\n"))return h((()=>Ak.insertSoftBreak(t)),{at:Gk.end(r)});var E=null!=i?i:"";if(tM.get(t)&&(E=E.replace("\ufeff","")),$k.equals(r.anchor.path,r.focus.path)){var[O,D]=Gk.edges(r),S={start:O.offset,end:D.offset,text:E};if(E&&c&&"insertCompositionText"===o){var k=c.start+c.text.search(/\S|$/);S.start+S.text.search(/\S|$/)===k+1&&S.end===c.start+c.text.length?(S.start-=1,c=null,g()):c=!1}else c="insertText"===o&&(null===c?S:!(!c||!Gk.isCollapsed(r)||c.end+c.text.length!==O.offset)&&EA(EA({},c),{},{text:c.text+E}));return void f(O.path,S)}return h((()=>Ak.insertText(t,E)),{at:r})}}},handleKeyDown:e=>{v()||(d(!0),setTimeout(d))},handleDomMutations:e=>{var n;v()||m()||e.some((n=>bM(t,n,e)))&&(null===(n=aM.get(t))||void 0===n||n())},handleInput:()=>{!m()&&v()||p()}}}var DA=["node"];function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var kA={subtree:!0,childList:!0,characterData:!0};function TA(e){var{node:t}=e,o=_j(e,DA);if(!EM)return null;var r,i=HM(),a=(r=n.useRef(!1),n.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[s]=n.useState((()=>OA(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:i},o))));return function(e,t,o){var[r]=n.useState((()=>new MutationObserver(t)));FM((()=>{r.takeRecords()})),n.useEffect((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,o),()=>r.disconnect()}),[])}(t,s.handleDomMutations,kA),eM.set(i,s.scheduleFlush),a&&s.flush(),s}var jA=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],MA=["text"];function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function NA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var PA=e=>u.default.createElement(u.default.Fragment,null,nA(e)),RA=e=>{var{autoFocus:t,decorate:o=FA,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:c=(e=>u.default.createElement(BA,Object.assign({},e))),scrollSelectionIntoView:p=_A,style:d={},as:f="div"}=e,h=_j(e,jA),m=(()=>{var e=n.useContext(iA);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[v,g]=n.useState(!1),x=n.useRef(null),b=n.useRef([]),{onUserInput:y,receivedUserInput:w}=function(){var e=HM(),t=n.useRef(!1),o=n.useRef(0),r=n.useCallback((()=>{if(!t.current){t.current=!0;var n=BM.getWindow(e);n.cancelAnimationFrame(o.current),o.current=n.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return n.useEffect((()=>()=>cancelAnimationFrame(o.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,C]=n.useReducer((e=>e+1),0);aM.set(m,C),Yj.set(m,a);var E=n.useMemo((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);n.useEffect((()=>{x.current&&t&&x.current.focus()}),[t]);var O=n.useCallback(vj((()=>{if((EM||!BM.isComposing(m))&&(!E.isUpdatingSelection||null!=S&&S.isFlushing())&&!E.isDraggingInternally){var e=BM.findDocumentOrShadowRoot(m),{activeElement:t}=e,n=BM.toDOMNode(m,m),o=e.getSelection();if(t===n?(E.latestElement=t,Kj.set(m,!0)):Kj.delete(m),!o)return wT.deselect(m);var{anchorNode:r,focusNode:i}=o,s=IA(m,r)||$A(m,r),l=IA(m,i)||$A(m,i);if(s&&l){var c=BM.toSlateRange(m,o,{exactMatch:!1,suppressThrow:!0});c&&(BM.isComposing(m)||null!=S&&S.hasPendingChanges()||null!=S&&S.isFlushing()?null==S||S.handleUserSelect(c):wT.select(m,c))}!a||s&&l||wT.deselect(m)}}),100),[a]),D=n.useMemo((()=>fj(O,0)),[O]),S=TA({node:x,onDOMSelectionChange:O,scheduleOnDOMSelectionChange:D});FM((()=>{var e;x.current&&(e=uM(x.current))?(Vj.set(m,e),Wj.set(m,x.current),qj.set(m,x.current),Hj.set(x.current,m)):qj.delete(m);var{selection:t}=m,n=BM.findDocumentOrShadowRoot(m).getSelection();if(n&&BM.isFocused(m)&&(null==S||!S.hasPendingAction())){var o=e=>{var o="None"!==n.type;if(t||o){var r=Wj.get(m),i=!1;if(r.contains(n.anchorNode)&&r.contains(n.focusNode)&&(i=!0),o&&i&&t&&!e){var a=BM.toSlateRange(m,n,{exactMatch:!0,suppressThrow:!0});if(a&&Gk.equals(a,t)){var s;if(!E.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||BM.hasRange(m,t)){E.isUpdatingSelection=!0;var c=t&&BM.toDOMRange(m,t);return c?(Gk.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p(m,c)):n.removeAllRanges(),c}m.selection=BM.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!0})}},r=o(),i="action"===(null==S?void 0:S.isFlushing());if(EM&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{BM.toDOMNode(m,m).focus(),o(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),E.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{r&&OM&&BM.toDOMNode(m,m).focus();E.isUpdatingSelection=!1}))}}));var k=n.useCallback((e=>{if(y(),!a&&IA(m,e.target)&&!VA(e,r)){var t;if(S)return S.handleDOMBeforeInput(e);D.flush(),O.flush();var{selection:n}=m,{inputType:o}=e,i=e.dataTransfer||e.data||void 0,s="insertCompositionText"===o||"deleteCompositionText"===o;if(s&&BM.isComposing(m))return;var l=!1;if("insertText"===o&&n&&Gk.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var c,u;l=!0,m.marks&&(l=!1);var{anchor:p}=n,[d,f]=BM.toDOMPoint(m,p),h=null===(c=d.parentElement)||void 0===c?void 0:c.closest("a"),v=BM.getWindow(m);if(l&&h&&BM.hasDOMNode(m,h)){var x,w=null==v?void 0:v.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();w===d&&(null===(x=w.textContent)||void 0===x?void 0:x.length)===f&&(l=!1)}if(l&&d.parentElement&&"pre"===(null==v||null===(u=v.getComputedStyle(d.parentElement))||void 0===u?void 0:u.whiteSpace)){var C=Ak.above(m,{at:p.path,match:e=>Ak.isBlock(m,e)});C&&Fk.string(C[0]).includes("\t")&&(l=!1)}}if(!o.startsWith("delete")||o.startsWith("deleteBy")){var[E]=e.getTargetRanges();if(E){var k=BM.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!1});if(!n||!Gk.equals(n,k)){l=!1;var T=!s&&m.selection&&Ak.rangeRef(m,m.selection);wT.select(m,k),T&&Jj.set(m,T)}}}if(s)return;if(l||e.preventDefault(),n&&Gk.isExpanded(n)&&o.startsWith("delete")){var j=o.endsWith("Backward")?"backward":"forward";return void Ak.deleteFragment(m,{direction:j})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ak.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":Ak.deleteForward(m);break;case"deleteContentBackward":Ak.deleteBackward(m);break;case"deleteEntireSoftLine":Ak.deleteBackward(m,{unit:"line"}),Ak.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":Ak.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":Ak.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":Ak.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":Ak.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":Ak.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":Ak.deleteForward(m,{unit:"word"});break;case"insertLineBreak":Ak.insertSoftBreak(m);break;case"insertParagraph":Ak.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===o&&BM.isComposing(m)&&(g(!1),Zj.set(m,!1)),"DataTransfer"===(null==i?void 0:i.constructor.name)?BM.insertData(m,i):"string"==typeof i&&(l?b.current.push((()=>Ak.insertText(m,i))):Ak.insertText(m,i))}var M=null===(t=Jj.get(m))||void 0===t?void 0:t.unref();Jj.delete(m),!M||m.selection&&Gk.equals(m.selection,M)||wT.select(m,M)}}),[a,r]);FM((()=>(x.current&&RM&&x.current.addEventListener("beforeinput",k),()=>{x.current&&RM&&x.current.removeEventListener("beforeinput",k)})),[k]),FM((()=>{var e=BM.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var T=o([m,[]]);if(i&&1===m.children.length&&1===Array.from(Fk.texts(m)).length&&""===Fk.string(m)&&!v){var j=Ak.start(m,[]);T.push({[sM]:!0,placeholder:i,anchor:j,focus:j})}var{marks:M}=m;if(E.hasMarkPlaceholder=!1,m.selection&&Gk.isCollapsed(m.selection)&&M){var{anchor:A}=m.selection,N=Fk.leaf(m,A.path),P=_j(N,MA);if(!oT.equals(N,M,{loose:!0})){E.hasMarkPlaceholder=!0;var R=Object.fromEntries(Object.keys(P).map((e=>[e,null])));T.push(NA(NA(NA({[lM]:!0},R),M),{},{anchor:A,focus:A}))}}return n.useEffect((()=>{setTimeout((()=>{var{selection:e}=m;if(e){var{anchor:t}=e,n=Fk.leaf(m,t.path);if(M&&!oT.equals(n,M,{loose:!0}))return void tM.set(m,M)}tM.delete(m)}))})),u.default.createElement(oA.Provider,{value:a},u.default.createElement(eA.Provider,{value:o},u.default.createElement(fA,{node:x,receivedUserInput:w},u.default.createElement(f,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},h,{spellCheck:!(!RM&&PM)&&h.spellCheck,autoCorrect:RM||!PM?h.autoCorrect:"false",autoCapitalize:RM||!PM?h.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:x,style:NA({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:n.useCallback((e=>{if(!RM&&!a&&!zA(e,h.onBeforeInput)&&IA(m,e.target)&&(e.preventDefault(),!BM.isComposing(m))){var t=e.data;Ak.insertText(m,t)}}),[a]),onInput:n.useCallback((e=>{if(S)S.handleInput();else{for(var t of b.current)t();b.current=[]}}),[]),onBlur:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&IA(m,e.target)&&!zA(e,h.onBlur)){var t=BM.findDocumentOrShadowRoot(m);if(E.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===BM.toDOMNode(m,m)||pM(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&dM(n)&&BM.hasDOMNode(m,n)){var o=BM.toSlateNode(m,n);if(Dk.isElement(o)&&!m.isVoid(o))return}if(DM){var r=t.getSelection();null==r||r.removeAllRanges()}Kj.delete(m)}}}}),[a,h.onBlur]),onClick:n.useCallback((e=>{if(LA(m,e.target)&&!zA(e,h.onClick)&&dM(e.target)){var t=BM.toSlateNode(m,e.target),n=BM.findPath(m,t);if(!Ak.hasPath(m,n)||Fk.get(m,n)!==t)return;if(3===e.detail&&n.length>=1){var o=n;if(!Ak.isBlock(m,t)){var r,i=Ak.above(m,{match:e=>Ak.isBlock(m,e),at:n});o=null!==(r=null==i?void 0:i[1])&&void 0!==r?r:n.slice(0,1)}var s=Ak.range(m,o);return void wT.select(m,s)}if(a)return;var l=Ak.start(m,n),c=Ak.end(m,n),u=Ak.void(m,{at:l}),p=Ak.void(m,{at:c});if(u&&p&&$k.equals(u[1],p[1])){var d=Ak.range(m,l);wT.select(m,d)}}}),[a,h.onClick]),onCompositionEnd:n.useCallback((e=>{if(IA(m,e.target)){if(BM.isComposing(m)&&(g(!1),Zj.set(m,!1)),null==S||S.handleCompositionEnd(e),zA(e,h.onCompositionEnd)||EM)return;if(!DM&&!jM&&!wM&&!MM&&!NM&&!AM&&e.data){var t=tM.get(m);tM.delete(m),void 0!==t&&(nM.set(m,m.marks),m.marks=t),Ak.insertText(m,e.data);var n=nM.get(m);nM.delete(m),void 0!==n&&(m.marks=n)}}}),[h.onCompositionEnd]),onCompositionUpdate:n.useCallback((e=>{IA(m,e.target)&&!zA(e,h.onCompositionUpdate)&&(BM.isComposing(m)||(g(!0),Zj.set(m,!0)))}),[h.onCompositionUpdate]),onCompositionStart:n.useCallback((e=>{if(IA(m,e.target)){if(null==S||S.handleCompositionStart(e),zA(e,h.onCompositionStart)||EM)return;g(!0);var{selection:t}=m;if(t){if(Gk.isExpanded(t))return void Ak.deleteFragment(m);var n=Ak.above(m,{match:e=>Ak.isInline(m,e),mode:"highest"});if(n){var[,o]=n;if(Ak.isEnd(m,t.anchor,o)){var r=Ak.after(m,o);wT.setSelection(m,{anchor:r,focus:r})}}}}}),[h.onCompositionStart]),onCopy:n.useCallback((e=>{IA(m,e.target)&&!zA(e,h.onCopy)&&(e.preventDefault(),BM.setFragmentData(m,e.clipboardData,"copy"))}),[h.onCopy]),onCut:n.useCallback((e=>{if(!a&&IA(m,e.target)&&!zA(e,h.onCut)){e.preventDefault(),BM.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(Gk.isExpanded(t))Ak.deleteFragment(m);else{var n=Fk.parent(m,t.anchor.path);Ak.isVoid(m,n)&&wT.delete(m)}}}),[a,h.onCut]),onDragOver:n.useCallback((e=>{if(LA(m,e.target)&&!zA(e,h.onDragOver)){var t=BM.toSlateNode(m,e.target);Ak.isVoid(m,t)&&e.preventDefault()}}),[h.onDragOver]),onDragStart:n.useCallback((e=>{if(!a&&LA(m,e.target)&&!zA(e,h.onDragStart)){var t=BM.toSlateNode(m,e.target),n=BM.findPath(m,t);if(Ak.isVoid(m,t)||Ak.void(m,{at:n,voids:!0})){var o=Ak.range(m,n);wT.select(m,o)}E.isDraggingInternally=!0,BM.setFragmentData(m,e.dataTransfer,"drag")}}),[a,h.onDragStart]),onDrop:n.useCallback((e=>{if(!a&&LA(m,e.target)&&!zA(e,h.onDrop)){e.preventDefault();var t=m.selection,n=BM.findEventRange(m,e),o=e.dataTransfer;wT.select(m,n),E.isDraggingInternally&&(!t||Gk.equals(t,n)||Ak.void(m,{at:n,voids:!0})||wT.delete(m,{at:t})),BM.insertData(m,o),BM.isFocused(m)||BM.focus(m)}E.isDraggingInternally=!1}),[a,h.onDrop]),onDragEnd:n.useCallback((e=>{!a&&E.isDraggingInternally&&h.onDragEnd&&LA(m,e.target)&&h.onDragEnd(e),E.isDraggingInternally=!1}),[a,h.onDragEnd]),onFocus:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&IA(m,e.target)&&!zA(e,h.onFocus)){var t=BM.toDOMNode(m,m),n=BM.findDocumentOrShadowRoot(m);if(E.latestElement=n.activeElement,OM&&e.target!==t)return void t.focus();Kj.set(m,!0)}}),[a,h.onFocus]),onKeyDown:n.useCallback((e=>{if(!a&&IA(m,e.target)){null==S||S.handleKeyDown(e);var{nativeEvent:t}=e;if(BM.isComposing(m)&&!1===t.isComposing&&(Zj.set(m,!1),g(!1)),zA(e,h.onKeyDown)||BM.isComposing(m))return;var{selection:n}=m,o=m.children[null!==n?n.focus.path[0]:0],r="rtl"===CT(Fk.string(o));if(uA.isRedo(t)){e.preventDefault();var i=m;return void("function"==typeof i.redo&&i.redo())}if(uA.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(uA.isMoveLineBackward(t))return e.preventDefault(),void wT.move(m,{unit:"line",reverse:!0});if(uA.isMoveLineForward(t))return e.preventDefault(),void wT.move(m,{unit:"line"});if(uA.isExtendLineBackward(t))return e.preventDefault(),void wT.move(m,{unit:"line",edge:"focus",reverse:!0});if(uA.isExtendLineForward(t))return e.preventDefault(),void wT.move(m,{unit:"line",edge:"focus"});if(uA.isMoveBackward(t))return e.preventDefault(),void(n&&Gk.isCollapsed(n)?wT.move(m,{reverse:!r}):wT.collapse(m,{edge:"start"}));if(uA.isMoveForward(t))return e.preventDefault(),void(n&&Gk.isCollapsed(n)?wT.move(m,{reverse:r}):wT.collapse(m,{edge:"end"}));if(uA.isMoveWordBackward(t))return e.preventDefault(),n&&Gk.isExpanded(n)&&wT.collapse(m,{edge:"focus"}),void wT.move(m,{unit:"word",reverse:!r});if(uA.isMoveWordForward(t))return e.preventDefault(),n&&Gk.isExpanded(n)&&wT.collapse(m,{edge:"focus"}),void wT.move(m,{unit:"word",reverse:r});if(RM){if((kM||DM)&&n&&(uA.isDeleteBackward(t)||uA.isDeleteForward(t))&&Gk.isCollapsed(n)){var l=Fk.parent(m,n.anchor.path);if(Dk.isElement(l)&&Ak.isVoid(m,l)&&(Ak.isInline(m,l)||Ak.isBlock(m,l)))return e.preventDefault(),void Ak.deleteBackward(m,{unit:"block"})}}else{if(uA.isBold(t)||uA.isItalic(t)||uA.isTransposeCharacter(t))return void e.preventDefault();if(uA.isSoftBreak(t))return e.preventDefault(),void Ak.insertSoftBreak(m);if(uA.isSplitBlock(t))return e.preventDefault(),void Ak.insertBreak(m);if(uA.isDeleteBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m));if(uA.isDeleteForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m));if(uA.isDeleteLineBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m,{unit:"line"}));if(uA.isDeleteLineForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m,{unit:"line"}));if(uA.isDeleteWordBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m,{unit:"word"}));if(uA.isDeleteWordForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m,{unit:"word"}))}}}),[a,h.onKeyDown]),onPaste:n.useCallback((e=>{a||!IA(m,e.target)||zA(e,h.onPaste)||RM&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),BM.insertData(m,e.clipboardData))}),[a,h.onPaste])}),u.default.createElement(PA,{decorations:T,node:m,renderElement:s,renderPlaceholder:c,renderLeaf:l,selection:m.selection})))))},BA=e=>{var{attributes:t,children:n}=e;return u.default.createElement("span",Object.assign({},t),n,EM&&u.default.createElement("br",null))},FA=()=>[],_A=(e,t)=>{if(!e.selection||e.selection&&Gk.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Ej(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},LA=(e,t)=>dM(t)&&BM.hasDOMNode(e,t),IA=(e,t)=>dM(t)&&BM.hasDOMNode(e,t,{editable:!0}),$A=(e,t)=>{if(Yj.get(e))return!1;var n=LA(e,t)&&BM.toSlateNode(e,t);return Ak.isVoid(e,n)},zA=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},VA=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},WA=n.createContext(!1),UA=n.createContext({});var HA=["editor","children","onChange","value"],qA=e=>{var{editor:t,children:o,onChange:r,value:i}=e,a=_j(e,HA),s=n.useRef(!1),[l,c]=u.default.useState((()=>{if(!Fk.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(Zk.stringify(i)));if(!Ak.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(Zk.stringify(t)));return t.children=i,Object.assign(t,a),{v:0,editor:t}})),{selectorContext:p,onChange:d}=function(e){var t=n.useRef([]).current,o=n.useRef({editor:e}).current,r=n.useCallback((e=>{o.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:n.useMemo((()=>({getSlate:()=>o.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,o]),onChange:r}}(t),f=n.useCallback((()=>{r&&r(t.children),c((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);Qj.set(t,f),n.useEffect((()=>()=>{Qj.set(t,(()=>{})),s.current=!0}),[]);var[h,m]=n.useState(BM.isFocused(t));return n.useEffect((()=>{m(BM.isFocused(t))})),FM((()=>{var e=()=>m(BM.isFocused(t));return yM?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),u.default.createElement(UA.Provider,{value:p},u.default.createElement(iA.Provider,{value:l},u.default.createElement(UM.Provider,{value:l.editor},u.default.createElement(WA.Provider,{value:h},o))))},XA=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},GA=(e,t,n)=>{var o=BM.toDOMRange(e,t).getBoundingClientRect(),r=BM.toDOMRange(e,n).getBoundingClientRect();return XA(o,r)&&XA(r,o)};function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZA,JA,QA=e=>{var t=e,{apply:n,onChange:o,deleteBackward:r,addMark:i,removeMark:a}=t;return Gj.set(t,new WeakMap),t.addMark=(e,n)=>{var o,r;null===(o=eM.get(t))||void 0===o||o(),!tM.get(t)&&null!==(r=oM.get(t))&&void 0!==r&&r.length&&tM.set(t,null),nM.delete(t),i(e,n)},t.removeMark=e=>{var n;!tM.get(t)&&null!==(n=oM.get(t))&&void 0!==n&&n.length&&tM.set(t,null),nM.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return r(e);if(t.selection&&Gk.isCollapsed(t.selection)){var n=Ak.above(t,{match:e=>Ak.isBlock(t,e),at:t.selection});if(n){var[,o]=n,i=Ak.range(t,o,t.selection.anchor),a=((e,t)=>{var n=Ak.range(e,Gk.end(t)),o=Array.from(Ak.positions(e,{at:t})),r=0,i=o.length,a=Math.floor(i/2);if(GA(e,Ak.range(e,o[r]),n))return Ak.range(e,o[r],n);if(o.length<2)return Ak.range(e,o[o.length-1],n);for(;a!==o.length&&a!==r;)GA(e,Ak.range(e,o[a]),n)?i=a:r=a,a=Math.floor((r+i)/2);return Ak.range(e,o[i],n)})(t,i);Gk.isCollapsed(a)||wT.delete(t,{at:a})}}},t.apply=e=>{var o=[],r=oM.get(t);if(null!=r&&r.length){var i=r.map((t=>function(e,t){var{path:n,diff:o,id:r}=e;switch(t.type){case"insert_text":return!$k.equals(t.path,n)||t.offset>=o.end?e:t.offset<=o.start?{diff:{start:t.text.length+o.start,end:t.text.length+o.end,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end+t.text.length,text:o.text},id:r,path:n};case"remove_text":return!$k.equals(t.path,n)||t.offset>=o.end?e:t.offset+t.text.length<=o.start?{diff:{start:o.start-t.text.length,end:o.end-t.text.length,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end-t.text.length,text:o.text},id:r,path:n};case"split_node":return!$k.equals(t.path,n)||t.position>=o.end?{diff:o,id:r,path:$k.transform(n,t,{affinity:"backward"})}:t.position>o.start?{diff:{start:o.start,end:Math.min(t.position,o.end),text:o.text},id:r,path:n}:{diff:{start:o.start-t.position,end:o.end-t.position,text:o.text},id:r,path:$k.transform(n,t,{affinity:"forward"})};case"merge_node":return $k.equals(t.path,n)?{diff:{start:o.start+t.position,end:o.end+t.position,text:o.text},id:r,path:$k.transform(n,t)}:{diff:o,id:r,path:$k.transform(n,t)}}var i=$k.transform(n,t);return i?{diff:o,path:i,id:r}:null}(t,e))).filter(Boolean);oM.set(t,i)}var a=iM.get(t);a&&iM.set(t,wA(t,a,e));var s=rM.get(t);if(null!=s&&s.at){var l=Uk.isPoint(null==s?void 0:s.at)?yA(t,s.at,e):wA(t,s.at,e);rM.set(t,l?KA(KA({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...eN(t,e.path));break;case"set_selection":var c;null===(c=Jj.get(t))||void 0===c||c.unref(),Jj.delete(t);break;case"insert_node":case"remove_node":o.push(...eN(t,$k.parent(e.path)));break;case"merge_node":var u=$k.previous(e.path);o.push(...eN(t,u));break;case"move_node":var p=$k.common($k.parent(e.path),$k.parent(e.newPath));o.push(...eN(t,p))}for(var[d,f]of(n(e),o)){var[h]=Ak.node(t,d);Xj.set(h,f)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[o,r]=Gk.edges(n),i=Ak.void(t,{at:o.path}),a=Ak.void(t,{at:r.path});if(!Gk.isCollapsed(n)||i){var s=BM.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[u]=a,p=s.cloneRange(),d=BM.toDOMNode(t,u);p.setEndAfter(d),l=p.cloneContents()}if(i&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),hM(c)){var f=c.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),l.appendChild(f),c=f}var h=t.getFragment(),m=JSON.stringify(h),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var g=l.ownerDocument.createElement("div");return g.appendChild(l),g.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(g),e.setData("text/html",g.innerHTML),e.setData("text/plain",gM(g)),l.ownerDocument.body.removeChild(g),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var n=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,n]=t.match(xM)||[];return n})(e);if(n){var o=decodeURIComponent(window.atob(n)),r=JSON.parse(o);return t.insertFragment(r),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var o=n.split(/\r\n|\r|\n/),r=!1;for(var i of o)r&&wT.splitNodes(t,{always:!0}),t.insertText(i),r=!0;return!0}return!1},t.onChange=()=>{d.default.unstable_batchedUpdates((()=>{var e=Qj.get(t);e&&e(),o()}))},t},eN=(e,t)=>{var n=[];for(var[o,r]of Ak.levels(e,{at:t})){var i=BM.findKey(e,o);n.push([r,i])}return n},tN=function(e){var n=e.element,o=e.children,r=e.attributes;switch(n.type){case"list-item":return t.jsx("li",f({},r,{children:o}));case"numbered-list":return t.jsx(nN,f({type:"1"},r,{children:o}));case"bulleted-list":return t.jsx(oN,f({},r,{children:o}));default:return t.jsx("p",f({},r,{children:o}))}},nN=l.default.ol(ZA||(ZA=x(["\n list-style: decimal;\n list-style-position: inside;\n"],["\n list-style: decimal;\n list-style-position: inside;\n"]))),oN=l.default.ul(JA||(JA=x(["\n list-style: disc;\n list-style-position: inside;\n"],["\n list-style: disc;\n list-style-position: inside;\n"]))),rN=n.createContext({isMLRReview:!1,annotationsList:{links:[],tags:[]},showAnnotations:!1}),iN=function(){return n.useContext(rN)},aN="webpageId",sN="applicationId",lN="viewApplicationId",cN="selected-webpage-id",uN="selectedWebpageId",pN={exports:{}};pN.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return o(r).default}});var i=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return o(i).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return o(a).default}})},function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minYear,i=void 0===n?1:n,a=t.maxYear,s=void 0===a?9999:a,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return r.indexOf(e)-r.indexOf(t)}));return function(t){var n=[],r={dd:31,mm:12,yy:99,yyyy:s,HH:23,MM:59,SS:59},a={dd:1,mm:1,yy:0,yyyy:i,HH:0,MM:0,SS:0},c=t.split("");l.forEach((function(t){var o=e.indexOf(t),i=parseInt(r[t].toString().substr(0,1),10);parseInt(c[o],10)>i&&(c[o+1]=c[o],c[o]=0,n.push(o))}));var u=0,p=l.some((function(n){var l=e.indexOf(n),c=n.length,p=t.substr(l,c).replace(/\D/g,""),d=parseInt(p,10);"mm"===n&&(u=d||0);var f="dd"===n?o[u]:r[n];if("yyyy"===n&&(1!==i||9999!==s)){var h=parseInt(r[n].toString().substring(0,p.length),10);return d<parseInt(a[n].toString().substring(0,p.length),10)||d>h}return d>f||p.length===c&&d<a[n]}));return!p&&{value:c.join(""),indexesOfPipedChars:n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=[31,31,29,31,30,31,30,31,31,30,31,30,31],r=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){function n(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=e.length;if(e===s||e[0]===v[0]&&1===t)return v.split(s).concat([h]).concat(x.split(s));if(e===S&&O)return v.split(s).concat(["0",S,h]).concat(x.split(s));var n=e[0]===u&&N;n&&(e=e.toString().substr(1));var a=e.lastIndexOf(S),l=-1!==a,c=void 0,g=void 0,b=void 0;if(e.slice(-1*L)===x&&(e=e.slice(0,-1*L)),l&&(O||M)?(c=e.slice(e.slice(0,_)===v?_:0,a),g=o((g=e.slice(a+1,t)).replace(d,s))):c=e.slice(0,_)===v?e.slice(_):e,F&&(void 0===F?"undefined":i(F))===f){var w="."===C?"[.]":""+C,E=(c.match(new RegExp(w,"g"))||[]).length;c=c.slice(0,F+E*I)}return c=c.replace(d,s),R||(c=c.replace(/^0+(0$|[^0])/,"$1")),b=o(c=y?r(c,C):c),(l&&O||!0===M)&&(e[a-1]!==S&&b.push(m),b.push(S,m),g&&((void 0===T?"undefined":i(T))===f&&(g=g.slice(0,T)),b=b.concat(g)),!0===M&&e[a-1]===S&&b.push(h)),_>0&&(b=v.split(s).concat(b)),n&&(b.length===_&&b.push(h),b=[p].concat(b)),x.length>0&&(b=b.concat(x.split(s))),b}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,v=void 0===n?a:n,g=t.suffix,x=void 0===g?s:g,b=t.includeThousandsSeparator,y=void 0===b||b,w=t.thousandsSeparatorSymbol,C=void 0===w?l:w,E=t.allowDecimal,O=void 0!==E&&E,D=t.decimalSymbol,S=void 0===D?c:D,k=t.decimalLimit,T=void 0===k?2:k,j=t.requireDecimal,M=void 0!==j&&j,A=t.allowNegative,N=void 0!==A&&A,P=t.allowLeadingZeroes,R=void 0!==P&&P,B=t.integerLimit,F=void 0===B?null:B,_=v&&v.length||0,L=x&&x.length||0,I=C&&C.length||0;return e.instanceOf="createNumberMask",e}function o(e){return e.split(s).map((function(e){return h.test(e)?h:e}))}function r(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__esModule",{value:!0});var i="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.default=n;var a="$",s="",l=",",c=".",u="-",p=/-/,d=/\D+/g,f="number",h=/\d/,m="[]"},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e=e.replace(y,f);var n=t.placeholderChar,o=t.currentCaretPosition,r=e.indexOf(h),u=e.lastIndexOf(d),p=u<r?-1:u,m=i(e,r+1,h),v=i(e,p-1,d),g=a(e,r),x=s(e,r,p,n),b=l(e,p,n,o);return g=c(g),x=c(x),b=c(b,!0),g.concat(m).concat(x).concat(v).concat(b)}function i(e,t,n){var o=[];return e[t]===n?o.push(n):o.push(m,n),o.push(m),o}function a(e,t){return-1===t?e:e.slice(0,t)}function s(e,t,n,o){var r=f;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+o+"]",g),f))===h?p:r.length<1?v:r[r.length-1]===d?r.slice(0,r.length-1):r}function l(e,t,n,o){var r=f;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",g),f)).length?e[t-1]===d&&o!==e.length?p:f:r}function c(e,t){return e.split(f).map((function(e){return e===v?e:t?b:x}))}Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(4)),p="*",d=".",f="",h="@",m="[]",v=" ",g="g",x=/[^\s]/,b=/[^.\s]/,y=/\s/g;t.default={mask:r,pipe:u.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,d=t.previousConformedValue,f=t.placeholderChar,h=e,m=(h=o(h)).indexOf(s);if(null===i.match(new RegExp("[^@\\s."+f+"]")))return a;if(-1!==h.indexOf(c)||-1!==m&&n!==m+1||-1===i.indexOf(r)&&d!==a&&-1!==i.indexOf(l))return!1;var v=h.indexOf(r);return(h.slice(v+1,h.length).match(p)||u).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function o(e){var t=0;return e.replace(i,(function(){return 1==++t?r:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r="@",i=/@/g,a="",s="@.",l=".",c="..",u=[],p=/\./g}]);var dN,fN,hN,mN,vN,gN,xN,bN,yN,wN,CN,EN,ON,DN,SN,kN,TN,jN,MN,AN,NN,PN,RN,BN,FN,_N,LN,IN,$N,zN,VN,WN,UN,HN,qN,XN,GN,YN,KN,ZN,JN=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/im,QN=/^[0-9]*$/,eP=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,tP=/^[a-zA-Z]+$/,nP=/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/(19[3-9]\d|20\d\d)$/,oP=/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,rP=/^(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,iP=/^(19[3-9]\d|20\d\d)\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])$/,aP=/^\d{5}$/,sP=/^[a-zA-Z0-9\-_]+$/,lP=function(e){switch(e){case"email":return{value:eP,message:"Please enter an email address into this field"};case"month_year_date":return{value:rP,message:"Please enter correct date into this field"};case"day_month_year_date":return{value:oP,message:"Please enter correct date into this field"};case"month_day_year_date":return{value:nP,message:"Please enter correct date into this field"};case"year_month_day_date":return{value:iP,message:"Please enter correct date into this field"};case"phone_number":return{value:JN,message:"Please only enter correct phone number into this field"};case"numerical":return{value:QN,message:"Please only enter numbers into this field"};case"text":return{value:tP,message:"Please only enter alphabetic letters into this field"};case"us_zip_code":return{value:aP,message:"Please only correct zip code into this field"};case"username":return{value:sP,message:'Please only enter "-", "_" characters, alphabetic letters and numbers into this field'};default:return}},cP=[/\d/,/\d/,/\d/,/\d/,/\d/],uP=[/\d/,/\d/,/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/],pP=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],dP=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],fP=[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],hP=["(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/],mP=pN.exports.createNumberMask({prefix:"",includeThousandsSeparator:!1}),vP=pN.exports.createNumberMask({prefix:"",allowDecimal:!0,includeThousandsSeparator:!1}),gP=function(e,t){var n=t.match(new RegExp("".concat(e,"=([^/]+)")));return n?decodeURIComponent(n[1]):""},xP=function(e,t){if(!t)return e;var n=gP(aN,t),o=gP(sN,t);if(!n||!o)return e;var r=new URLSearchParams(e.toString());return e.has(lN)&&r.set(lN,o),e.has(cN)&&r.set(cN,n),e.has(uN)&&r.set(uN,n),r},bP=function(e){if(e){var t=e.match(/^http[s]?:\/\//)?e:"http://".concat(e);window.open(t,"_blank")}},yP=function(e){return!!e&&"internalLink"===(null==e?void 0:e.type)},wP=function(e){if(!e)return"";var t=new URL(window.location.href),n=xP(t.searchParams,e);return t.search=n.toString(),t.toString()},CP=function(e){return yP(e)?wP(null==e?void 0:e.internalLink):(null==e?void 0:e.externalLink)||""},EP=function(e){var n,o,r,i=e.leaf,a=e.children,s=e.attributes,l=iN(),c=l.showAnnotations,u=l.annotationsList,p=l.isMLRReview;if(i.tag){var d=u.tags.findIndex((function(e){var t,n=e.id;return(null===(t=i.tag)||void 0===t?void 0:t.id)===n}))+1;p&&c&&d&&(a=t.jsxs(Bw,f({component:"span",display:"inline-flex",direction:"row",alignItems:"center",gap:.5,id:SP},((n={})["data-".concat(TP)]=null===(r=i.tag)||void 0===r?void 0:r.id,n),{children:[t.jsx("span",f({style:{backgroundColor:"#FFF0D0B5"}},{children:a})),t.jsx(o8,{index:u.tags.findIndex((function(e){var t,n,o=e.id,r=e.label;return(null===(t=i.tag)||void 0===t?void 0:t.id)===o||(null===(n=i.tag)||void 0===n?void 0:n.label)===r}))+1,type:"message"})]})))}if(i.bold&&(a=t.jsx("span",f({style:{fontWeight:"bold"}},{children:a}))),i.strikethrough&&(a=t.jsx("s",{children:a})),i.italic&&(a=t.jsx("span",f({style:{fontStyle:"italic"}},{children:a}))),i.underline&&(a=t.jsx("u",{children:a})),i.variable&&(a=t.jsxs(OP,{children:[t.jsx("span",f({style:{left:0},contentEditable:!1},{children:"["})),t.jsx("span",{children:a}),t.jsx("span",f({style:{right:0},contentEditable:!1},{children:"]"}))]})),i.communicationLink){var h=i.communicationLink,m=h.type,v=h.url,g="internalLink"===m,x=g?wP(v):v,b=u.links.findIndex((function(e){return v===e.url&&i.text===e.text}))+1;a=t.jsx(t.Fragment,{children:p&&c&&b?t.jsxs(Bw,f({component:"span",display:"inline-flex",alignItems:"center",gap:.2,marginBottom:.2,id:kP},(o={},o["data-".concat(jP)]=v,o["data-".concat(MP)]=i.text,o),{children:[t.jsx("a",f({style:{color:S.colors.blue}},s,{href:x,target:g?"_self":"_blank"},{children:a})),t.jsx(o8,{index:b,type:"link"})]})):t.jsx("a",f({style:{color:S.colors.blue}},s,{href:x,target:g?"_self":"_blank"},{children:a}))})}return t.jsx("span",f({},s,{children:a}))},OP=l.default.span(dN||(dN=x(["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"],["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"]))),DP=[{type:"paragraph",children:[{text:""}]}],SP="matrix-message",kP="communication-link",TP="matrix-message-id",jP="communication-link-url",MP="communication-link-text",AP=function(e){var o=e.value,r=e.color,i=void 0===r?"gray1":r,a=e.textStyles,s=e.font,l=void 0===s?"XS":s,c=e.numberOfLines,u=e.extraTextProps,p=e.renderElementWrapperComponent,d=e.renderElementWrapperProps,h=e.htmlElementId,m=n.useState((function(){return QA((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ak.pathRefs(e))zk.transform(n,t);for(var o of Ak.pointRefs(e))Hk.transform(o,t);for(var r of Ak.rangeRefs(e))Yk.transform(r,t);var i,a,s=zS.get(e)||[],l=VS.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if($k.operationCanTransformPath(t))for(var u of(i=[],a=new Set,s))c($k.transform(u,t));else i=s,a=l;var p=e.getDirtyPaths(t);for(var d of p)c(d);zS.set(e,i),VS.set(e,a),wT.transform(e,t),e.operations.push(t),Ak.normalize(e),"set_selection"===t.type&&(e.marks=null),WS.get(e)||(WS.set(e,!0),Promise.resolve().then((()=>{WS.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:o,markableVoid:r}=e;if(o){var i=(t,n)=>{if(!oT.isText(t))return!1;var[o,r]=Ak.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},a=Gk.isExpanded(o),s=!1;if(!a){var[l,c]=Ak.node(e,o);if(l&&i(l,c)){var[u]=Ak.parent(e,c);s=u&&e.markableVoid(u)}}if(a||s)wT.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var p=YS(YS({},Ak.marks(e)||{}),{},{[t]:n});e.marks=p,WS.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&Gk.isCollapsed(n)&&wT.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Gk.isCollapsed(n)&&wT.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Gk.isExpanded(n)&&wT.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Fk.fragment(e,t):[]},insertBreak:()=>{wT.splitNodes(e,{always:!0})},insertSoftBreak:()=>{wT.splitNodes(e,{always:!0})},insertFragment:t=>{wT.insertFragment(e,t)},insertNode:t=>{wT.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:o}=e;if(n){if(o){var r=YS({text:t},o);wT.insertNodes(e,r)}else wT.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,o]=t;if(!oT.isText(n))if(Dk.isElement(n)&&0===n.children.length)wT.insertNodes(e,{text:""},{at:o.concat(0),voids:!0});else for(var r=!Ak.isEditor(n)&&Dk.isElement(n)&&(e.isInline(n)||0===n.children.length||oT.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=Fk.get(e,o);if(!oT.isText(s)){var l=n.children[a],c=s.children[i-1],u=a===n.children.length-1;(oT.isText(l)||Dk.isElement(l)&&e.isInline(l))!==r?(wT.removeNodes(e,{at:o.concat(i),voids:!0}),i--):Dk.isElement(l)?e.isInline(l)&&(null!=c&&oT.isText(c)?u&&(wT.insertNodes(e,{text:""},{at:o.concat(i+1),voids:!0}),i++):(wT.insertNodes(e,{text:""},{at:o.concat(i),voids:!0}),i++)):null!=c&&oT.isText(c)&&(oT.equals(l,c,{loose:!0})?(wT.mergeNodes(e,{at:o.concat(i),voids:!0}),i--):""===c.text?(wT.removeNodes(e,{at:o.concat(i-1),voids:!0}),i--):""===l.text&&(wT.removeNodes(e,{at:o.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n){var o=(t,n)=>{if(!oT.isText(t))return!1;var[o,r]=Ak.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},r=Gk.isExpanded(n),i=!1;if(!r){var[a,s]=Ak.node(e,n);if(a&&o(a,s)){var[l]=Ak.parent(e,s);i=l&&e.markableVoid(l)}}if(r||i)wT.unsetNodes(e,t,{match:o,split:!0,voids:!0});else{var c=YS({},Ak.marks(e)||{});delete c[t],e.marks=c,WS.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return $k.levels(t);case"insert_node":var{node:n,path:o}=e,r=$k.levels(o),i=oT.isText(n)?[]:Array.from(Fk.nodes(n),(e=>{var[,t]=e;return o.concat(t)}));return[...r,...i];case"merge_node":var{path:a}=e;return[...$k.ancestors(a),$k.previous(a)];case"move_node":var{path:s,newPath:l}=e;if($k.equals(s,l))return[];var c=[],u=[];for(var p of $k.ancestors(s)){var d=$k.transform(p,e);c.push(d)}for(var f of $k.ancestors(l)){var h=$k.transform(f,e);u.push(h)}var m=u[u.length-1],v=l[l.length-1],g=m.concat(v);return[...c,...u,g];case"remove_node":var{path:x}=e;return[...$k.ancestors(x)];case"split_node":var{path:b}=e;return[...$k.levels(b),$k.next(b)];default:return[]}}};return e})())}))[0],v=p||RP;if(void 0===o)return null;var g=DP,x=o.replace(/\\/g,"");try{g=JSON.parse(o)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{g=JSON.parse(x)}catch(t){console.error(e,"Most probably that it's not possible to parse this value")}}return t.jsx(NP,f({id:h,font:l,color:i},{children:t.jsx(qA,f({editor:m,value:g},{children:t.jsx(RA,{readOnly:!0,renderElement:function(e){return t.jsx(v,f({numberOfLines:c,styles:a,color:i,variant:l},u,d,{children:t.jsx(tN,f({},e))}))},renderLeaf:function(e){return t.jsx(EP,f({},e))}})}),JSON.stringify(g))}))},NP=l.default(bd)(hN||(hN=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.color,a=void 0===i?"gray1":i,s=t.font,l=void 0===s?"XS":s;return e.css(fN||(fN=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o[a],r[l])})),PP=l.default.div(vN||(vN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.height,r=void 0===o?0:o,i=t.width,a=void 0===i?0:i,s=t.layout,l=void 0===s?"div":s;return e.css(mN||(mN=x(["\n height: ","px;\n width: ","px;\n display: ",";\n "],["\n height: ","px;\n width: ","px;\n display: ",";\n "])),"string"==typeof r?n[r]:r,"string"==typeof a?n[a]:a,"span"===l?"inline-flex":"block")})),RP=function(e){var n=e.children,o=e.seoTag,r=void 0===o?"div":o,i=h(e,["children","seoTag"]);return t.jsx(BP,f({},i,{as:r},{children:n}))},BP=l.default.div(bN||(bN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.layout,a=void 0===i?"div":i,s=t.variant,l=void 0===s?"L":s,c=t.styles,u=t.color,p=t.type,d=t.numberOfLines,f=t.textAlign,h=void 0===f?"left":f,m=t.behaveAs,v=void 0===m?"text":m;return e.css(xN||(xN=x(["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "],["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "])),"span"===a?"inline-flex":"block",r[l],c,function(t){return e.css(gN||(gN=x(["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"],["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"])),t?"hidden":"unset",t?"-webkit-box":"unset",t?"".concat(t):"unset",t?"".concat(t):"unset")}(d),o[null!=u?u:p]||u||o.gray1,h,"button"===v?"pointer":"auto")})),FP=function(e){var n=e.text;return t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:"XS"}),t.jsx(RP,f({variant:"XS",color:"red"},{children:n}))]})},_P={selected:"primary",disabled:"gray4",default:"white",error:"white"},LP={selected:"primary",disabled:"gray4",default:"gray3",error:"red"},IP={selected:"white",disabled:"gray2",default:"white",error:"red"},$P={selected:"gray1",disabled:"gray3",default:"gray1",error:"red"},zP=function(o){var r=o.id,i=o.onClick,a=o.label,s=o.isError,l=o.disabled,c=o.isEditMode,u=void 0===c||c,p=o.isSelected,d=void 0!==p&&p,h=o.isRichText,m=o.internalConfig,v=n.useState(!1),g=v[0],b=v[1],y=function(t,n,o){var r=o||{},i=r.selectedCheckboxBackgroundColor,a=void 0===i?_P.selected:i,s=r.selectedCheckboxIconColor,l=void 0===s?IP.default:s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=void 0===p?0:p,f=r.buttonPadding,h=void 0===f?0:f,m="selected"===n?S.colors[l]||l:S.colors[IP[n]||IP.default],v=e.css((function(e){var o=e.theme.colors;return"\n border-color: ".concat(t?o.gray2:o[LP[n]||LP.default],";\n background-color: ").concat("selected"===n?o[a]||a:o[_P[n]||_P.default],";\n ")})),g=e.css((function(e){var o=e.theme.colors;return"\n color: ".concat(t?o.gray2:o[$P[n]||$P.default]," !important;\n padding: ").concat(d,"px; \n ")}));return{checkboxIconWrapperColor:v,checkboxIconColor:m,checkboxTextStyles:g,checkboxWrapperStyles:e.css(yN||(yN=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),h,c,u)}}(g,s?"error":l?"disabled":d?"selected":"default",m),w=y.checkboxIconWrapperColor,C=y.checkboxIconColor,E=y.checkboxWrapperStyles,O=y.checkboxTextStyles,D=a?t.jsx("div",{children:h?t.jsx(AP,{extraTextProps:{behaveAs:l?"text":"button"},textStyles:O,value:a,font:"M"}):t.jsx(RP,f({styles:O,behaveAs:l?"text":"button",variant:"M"},{children:a}))}):null;return t.jsx(t.Fragment,{children:t.jsxs(VP,f({activeOpacity:.8,disabled:l,$styles:E},!l&&u&&{onClick:function(){return i(r)},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[t.jsx(UP,f({$styles:w},{children:d&&t.jsx(WP,{color:C,name:"Check"})})),t.jsx(PP,{width:"S"}),D]}))})},VP=l.default(w)(wN||(wN=x(["\n display: flex;\n width: max-content;\n align-items: center;\n ","\n"],["\n display: flex;\n width: max-content;\n align-items: center;\n ","\n"])),(function(e){return e.$styles})),WP=l.default(LD)(CN||(CN=x(["\n display: flex;\n"],["\n display: flex;\n"]))),UP=l.default.div(ON||(ON=x(["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"],["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$styles;return e.css(EN||(EN=x(["\n border-radius: ","px;\n ",";\n ","\n "],["\n border-radius: ","px;\n ",";\n ","\n "])),n.XS,C(n.M),o)})),HP=function(e){return e.map((function(e){return Fk.string(e)})).join("\n")},qP=l.default.div(DN||(DN=x(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),(function(e){var t=e.theme,n=t.colors;t.fonts;var o=t.sizes,r=e.hasError;e.hasValue;var i=e.disabled,a=e.isOpen,s=e.isEditMode;return"\n .select-wrapper {\n text-align: left;\n border: ".concat(s?"1px solid ".concat(n.gray3):"none",";\n position: relative;\n border-radius: ").concat(o.S,"px;\n &:hover,\n :active,\n :focus {\n border-color: ").concat(n.gray2,";\n }\n\n .select-input {\n padding: ").concat(s?"10px ".concat(o.S,"px 10px ").concat(o.M,"px}"):0,";\n display: flex;\n align-items: center;\n justify-content: space-between;\n user-select: none;\n cursor: ").concat(s?"pointer":"default",";\n\n .icon-container {\n max-height: 33px;\n transition: transform 0.2s ease-in-out;\n transform: rotate(0deg);\n ").concat(a&&"transform: rotate(180deg);","\n }\n }\n\n ").concat(i&&"\n border-color: ".concat(n.gray4," !important;\n cursor: not-allowed;\n .select-input {\n background-color: ").concat(n.gray4,";\n pointer-events: none;\n .selected-text-value {\n color: ").concat(n.gray3,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.gray3,";\n }\n }\n }\n "),"\n }\n ").concat(r&&"\n .select-wrapper {\n border-color: ".concat(n.red," !important;\n .select-input {\n .selected-text-value {\n color: ").concat(n.red,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.red,";\n }\n }\n }\n }\n "),"\n ")}),(function(e){return e.$styles})),XP=l.default.div(SN||(SN=x(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.sizes;return"\n position: absolute;\n width: 100%;\n border-radius: ".concat(o.S,"px;\n padding: ").concat(o.L,"px ").concat(o.M,"px;\n box-shadow: 0 0 ").concat(o.XL,"px 0 #0000001a;\n overflow: auto;\n max-height: 150px;\n z-index: 10;\n transform: translateY(").concat(o.S,"px);\n background-color: ").concat(n.white,";\n ")})),GP=l.default.div(kN||(kN=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,o=t.colors,r=t.fonts,i=e.$selected;return"\n border-radius: ".concat(n.S,"px;\n &:hover {\n background-color: ").concat(o.gray5,";\n }\n padding: ").concat(n.S,"px ").concat(n.M,"px;\n ").concat(r.M,";\n color: ").concat(o.gray2,";\n ").concat(i&&"\n background-color: ".concat(o.gray4," !important;\n color: ").concat(o.black,";\n "),";\n ")})),YP=function(t,n){void 0===n&&(n=!1);var o=t||{},r=o.horizontalPadding,i=void 0===r?0:r,a=o.verticalPadding,s=void 0===a?0:a,l=o.selectedTextColor,c=o.selectedTextFontSize,u=o.placeholderTextColor,p=o.placeholderTextFontSize,d=o.styles,f=o.wrapperStyles;return e.css(jN||(jN=x(["\n ",";\n "],["\n ",";\n "])),(function(t){var o=t.theme.colors;return e.css(TN||(TN=x(["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "],["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "])),s||i?"padding: ".concat(s,"px ").concat(i,"px;"):"",n?"\n ".concat(l?"color: ".concat(o[l]||l,";"):"",";\n ").concat(c?"font-size: ".concat(c,"px;"):"",";\n "):"\n ".concat(u?"color: ".concat(o[u]||u,";"):"",";\n ").concat(p?"font-size: ".concat(p,"px;"):"",";\n "),d,f)}))},KP=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.value,s=e.placeholder,l=e.options,c=void 0===l?[]:l,u=e.disabled,p=void 0!==u&&u,d=e.optionsPresentation,h=void 0!==d&&d,m=e.isError,v=e.isEditMode,g=void 0===v||v,x=e.selectInternalConfig,b=e.isRichText,y=void 0!==b&&b,w=n.useState(h),C=w[0],E=w[1],O=n.useState(a),D=O[0],S=O[1],k=null==c?void 0:c.find((function(e){return e.id===D}));n.useEffect((function(){var e=function(){return!h&&E(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}})),n.useEffect((function(){return E(h)}),[h]),n.useEffect((function(){return S(a)}),[a]);var T=function(e){return e===D};return t.jsx(qP,f({ref:o,tabIndex:0,onBlur:r,disabled:p,isEditMode:g,hasValue:!!k,isOpen:C,hasError:!!m,$styles:YP(x,!!k)},{children:t.jsxs("div",f({className:"select-wrapper"},{children:[t.jsxs("div",f({className:"select-input",onClick:function(e){h||(e.stopPropagation(),E((function(e){return!e})))}},{children:[k?y?t.jsx(AP,{value:k.label,extraTextProps:{color:"gray1",variant:"M"}}):t.jsx(RP,f({variant:"M",color:"gray1"},{children:k.label})):t.jsx(RP,f({variant:"M",color:"gray3"},{children:s})),g&&t.jsx("div",f({className:"icon-container"},{children:t.jsx(LD,{name:"CaretDown"})}))]})),C&&g&&t.jsx(XP,{children:c.map((function(e){var n=e.id,o=e.label;return t.jsx(GP,f({$selected:T(n),onClick:function(){return function(e){S(e),null==i||i(e)}(n)}},{children:y?HP(JSON.parse(o)):o}),n)}))})]}))}))},ZP={exports:{}},JP=me(ZP.exports=function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return o(u).default}});var p=o(n(11)),d=o(n(9)),f=o(n(5)),h=n(2),m=function(e){function t(){var e;i(this,t);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var s=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return s.setRef=s.setRef.bind(s),s.onBlur=s.onBlur.bind(s),s.onChange=s.onChange.bind(s),s}return s(t,e),c(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,f.default)(l({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.pipe,r=t.mask,i={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof o&&"function"==typeof e.pipe?o.toString()!==e.pipe.toString():(0,h.isNil)(o)&&!(0,h.isNil)(e.pipe)||!(0,h.isNil)(o)&&(0,h.isNil)(e.pipe),s=r.toString()!==e.mask.toString(),l=Object.keys(i).some((function(t){return i[t]!==e[t]}))||s||a;(n!==this.inputElement.value||l)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=r(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,l({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(p.default.PureComponent);t.default=m,m.propTypes={mask:d.default.oneOfType([d.default.array,d.default.func,d.default.bool,d.default.shape({mask:d.default.oneOfType([d.default.array,d.default.func]),pipe:d.default.func})]).isRequired,guide:d.default.bool,value:d.default.oneOfType([d.default.string,d.default.number]),pipe:d.default.func,placeholderChar:d.default.string,keepCharPositions:d.default.bool,showMask:d.default.bool},m.defaultProps={render:function(e,t){return p.default.createElement("input",l({ref:e},t))}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function i(e){return"string"==typeof e||e instanceof String}function a(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function s(e){return null==e}function l(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(p));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=o,t.isArray=r,t.isString=i,t.isNumber=a,t.isNil=s,t.processCaretTraps=l;var c=n(1),u=[],p="[]"},function(e,t,n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((void 0===t?"undefined":r(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var o=n.guide,c=void 0===o||o,u=n.previousConformedValue,p=void 0===u?l:u,d=n.placeholderChar,f=void 0===d?a.placeholderChar:d,h=n.placeholder,m=void 0===h?(0,i.convertMaskToPlaceholder)(t,f):h,v=n.currentCaretPosition,g=n.keepCharPositions,x=!1===c&&void 0!==p,b=e.length,y=p.length,w=m.length,C=t.length,E=b-y,O=E>0,D=v+(O?-E:0),S=D+Math.abs(E);if(!0===g&&!O){for(var k=l,T=D;T<S;T++)m[T]===f&&(k+=f);e=e.slice(0,D)+k+e.slice(D,b)}for(var j=e.split(l).map((function(e,t){return{char:e,isNew:t>=D&&t<S}})),M=b-1;M>=0;M--){var A=j[M].char;A!==f&&A===m[M>=D&&y===C?M-E:M]&&j.splice(M,1)}var N=l,P=!1;e:for(var R=0;R<w;R++){var B=m[R];if(B===f){if(j.length>0)for(;j.length>0;){var F=j.shift(),_=F.char,L=F.isNew;if(_===f&&!0!==x){N+=f;continue e}if(t[R].test(_)){if(!0===g&&!1!==L&&p!==l&&!1!==c&&O){for(var I=j.length,$=null,z=0;z<I;z++){var V=j[z];if(V.char!==f&&!1===V.isNew)break;if(V.char===f){$=z;break}}null!==$?(N+=_,j.splice($,1)):R--}else N+=_;continue e}P=!0}!1===x&&(N+=m.substr(R,w));break}N+=B}if(x&&!1===O){for(var W=null,U=0;U<N.length;U++)m[U]===f&&(W=U);N=null!==W?N.substr(0,W+1):l}return{conformedValue:N,meta:{someCharsRejected:P}}}Object.defineProperty(t,"__esModule",{value:!0});var r="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.default=o;var i=n(2),a=n(1),s=[],l=""},function(e,t){function n(e){var t=e.previousConformedValue,n=void 0===t?r:t,i=e.previousPlaceholder,a=void 0===i?r:i,s=e.currentCaretPosition,l=void 0===s?0:s,c=e.conformedValue,u=e.rawValue,p=e.placeholderChar,d=e.placeholder,f=e.indexesOfPipedChars,h=void 0===f?o:f,m=e.caretTrapIndexes,v=void 0===m?o:m;if(0===l||!u.length)return 0;var g=u.length,x=n.length,b=d.length,y=c.length,w=g-x,C=w>0;if(w>1&&!C&&0!==x)return l;var E=0,O=void 0,D=void 0;if(!C||n!==c&&c!==d){var S=c.toLowerCase(),k=u.toLowerCase().substr(0,l).split(r).filter((function(e){return-1!==S.indexOf(e)}));D=k[k.length-1];var T=a.substr(0,k.length).split(r).filter((function(e){return e!==p})).length,j=d.substr(0,k.length).split(r).filter((function(e){return e!==p})).length,M=j!==T,A=void 0!==a[k.length-1]&&void 0!==d[k.length-2]&&a[k.length-1]!==p&&a[k.length-1]!==d[k.length-1]&&a[k.length-1]===d[k.length-2];!C&&(M||A)&&T>0&&d.indexOf(D)>-1&&void 0!==u[l]&&(O=!0,D=u[l]);for(var N=h.map((function(e){return S[e]})),P=N.filter((function(e){return e===D})).length,R=k.filter((function(e){return e===D})).length,B=d.substr(0,d.indexOf(p)).split(r).filter((function(e,t){return e===D&&u[t]!==e})).length,F=B+R+P+(O?1:0),_=0,L=0;L<y&&(E=L+1,S[L]===D&&_++,!(_>=F));L++);}else E=l-w;if(C){for(var I=E,$=E;$<=b;$++)if(d[$]===p&&(I=$),d[$]===p||-1!==v.indexOf($)||$===b)return I}else if(O){for(var z=E-1;z>=0;z--)if(c[z]===D||-1!==v.indexOf(z)||0===z)return z}else for(var V=E;V>=0;V--)if(d[V-1]===p||-1!==v.indexOf(V)||0===V)return V}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=[],r=""},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=o.inputElement,h=o.mask,v=o.guide,g=o.pipe,x=o.placeholderChar,b=void 0===x?d.placeholderChar:x,y=o.keepCharPositions,w=void 0!==y&&y,C=o.showMask,E=void 0!==C&&C;if(void 0===n&&(n=r.value),n!==t.previousConformedValue){(void 0===h?"undefined":l(h))===m&&void 0!==h.pipe&&void 0!==h.mask&&(g=h.pipe,h=h.mask);var O=void 0,D=void 0;if(h instanceof Array&&(O=(0,p.convertMaskToPlaceholder)(h,b)),!1!==h){var S=a(n),k=r.selectionEnd,T=t.previousConformedValue,j=t.previousPlaceholder,M=void 0;if((void 0===h?"undefined":l(h))===d.strFunction){if(!1===(D=h(S,{currentCaretPosition:k,previousConformedValue:T,placeholderChar:b})))return;var A=(0,p.processCaretTraps)(D);D=A.maskWithoutCaretTraps,M=A.indexes,O=(0,p.convertMaskToPlaceholder)(D,b)}else D=h;var N={previousConformedValue:T,guide:v,placeholderChar:b,pipe:g,placeholder:O,currentCaretPosition:k,keepCharPositions:w},P=(0,u.default)(S,D,N).conformedValue,R=(void 0===g?"undefined":l(g))===d.strFunction,B={};R&&(!1===(B=g(P,s({rawValue:S},N)))?B={value:T,rejected:!0}:(0,p.isString)(B)&&(B={value:B}));var F=R?B.value:P,_=(0,c.default)({previousConformedValue:T,previousPlaceholder:j,conformedValue:F,placeholder:O,rawValue:S,currentCaretPosition:k,placeholderChar:b,indexesOfPipedChars:B.indexesOfPipedChars,caretTrapIndexes:M}),L=F===O&&0===_?E?O:f:F;t.previousConformedValue=L,t.previousPlaceholder=O,r.value!==L&&(r.value=L,i(r,_))}}}}}function i(e,t){document.activeElement===e&&(v?g((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}function a(e){if((0,p.isString)(e))return e;if((0,p.isNumber)(e))return String(e);if(null==e)return f;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l="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.default=r;var c=o(n(4)),u=o(n(3)),p=n(2),d=n(1),f="",h="none",m="object",v="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){function o(e,t,n,o,r,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=o},function(e,t,n){var o=n(6),r=n(7),i=n(10);e.exports=function(){function e(e,t,n,o,a,s){s!==i&&r(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){e.exports=n(8)()},function(e,t){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(t,n){t.exports=e}])}(u.default)),QP={exports:{}},eR=me(QP.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(3)},,,function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e=e.replace(y,f);var n=t.placeholderChar,o=t.currentCaretPosition,r=e.indexOf(h),u=e.lastIndexOf(d),p=u<r?-1:u,m=i(e,r+1,h),v=i(e,p-1,d),g=a(e,r),x=s(e,r,p,n),b=l(e,p,n,o);return g=c(g),x=c(x),b=c(b,!0),g.concat(m).concat(x).concat(v).concat(b)}function i(e,t,n){var o=[];return e[t]===n?o.push(n):o.push(m,n),o.push(m),o}function a(e,t){return-1===t?e:e.slice(0,t)}function s(e,t,n,o){var r=f;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+o+"]",g),f))===h?p:r.length<1?v:r[r.length-1]===d?r.slice(0,r.length-1):r}function l(e,t,n,o){var r=f;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",g),f)).length?e[t-1]===d&&o!==e.length?p:f:r}function c(e,t){return e.split(f).map((function(e){return e===v?e:t?b:x}))}Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(4)),p="*",d=".",f="",h="@",m="[]",v=" ",g="g",x=/[^\s]/,b=/[^.\s]/,y=/\s/g;t.default={mask:r,pipe:u.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,d=t.previousConformedValue,f=t.placeholderChar,h=e,m=(h=o(h)).indexOf(s);if(null===i.match(new RegExp("[^@\\s."+f+"]")))return a;if(-1!==h.indexOf(c)||-1!==m&&n!==m+1||-1===i.indexOf(r)&&d!==a&&-1!==i.indexOf(l))return!1;var v=h.indexOf(r);return(h.slice(v+1,h.length).match(p)||u).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function o(e){var t=0;return e.replace(i,(function(){return 1==++t?r:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r="@",i=/@/g,a="",s="@.",l=".",c="..",u=[],p=/\./g}])),tR={minYear:1930,maxYear:2123},nR=function(e,t){e.stopPropagation(),null==t||t()},oR=function(o){var r=o.value,i=o.leftIcon,a=o.rightIcon,s=o.onChange,l=o.onBlur,c=o.disabled,u=o.isError,p=o.placeholder,d=o.isEditMode,m=void 0===d||d,v=o.type,g=void 0===v?"text":v,b=o.internalConfig,y=o.config,w=h(o,["value","leftIcon","rightIcon","onChange","onBlur","disabled","isError","placeholder","isEditMode","type","internalConfig","config"]),C=n.useState(!1),E=C[0],O=C[1],D=n.useRef(null),S=function(e){switch(e){case"text":return{type:"text",inputMode:"text"};case"phone_number":return{type:"tel",inputMode:"tel"};case"password":return{type:"password",inputMode:"text"};default:return{}}}(g),k=function(e,t){var n=(t||{}).maskPlaceholder;switch(e){case"month_year_date":return{keepCharPositions:!0,mask:fP,placeholder:n||"09/1970",pipe:pN.exports.createAutoCorrectedDatePipe("mm/yyyy",tR)};case"day_month_year_date":return{keepCharPositions:!0,mask:dP,placeholder:n||"25/09/1970",pipe:pN.exports.createAutoCorrectedDatePipe("dd/mm/yyyy",tR)};case"month_day_year_date":return{keepCharPositions:!0,mask:pP,placeholder:n||"09/25/1970",pipe:pN.exports.createAutoCorrectedDatePipe("mm/dd/yyyy",tR)};case"year_month_day_date":return{keepCharPositions:!0,mask:uP,placeholder:n||"1970/09/25",pipe:pN.exports.createAutoCorrectedDatePipe("yyyy/mm/dd",tR)};case"phone_number":return{keepCharPositions:!0,mask:hP,placeholder:n||"(555) 495-3947"};case"email":return{mask:eR,placeholder:n||"example@mail.com"};case"us_zip_code":return{keepCharPositions:!0,mask:cP,placeholder:n||"12345"};case"integer":return{mask:mP,placeholder:n||"123"};case"numerical":return{mask:vP,placeholder:n||"123.45"};default:return{mask:!1}}}(g,y),T=e.useTheme().colors,j=T[function(e){var t=e.isEditMode,n=e.isFocused,o=e.isError,r=e.disabled;return t?r?"gray3":o?"red":n?"gray1":"gray3":"gray1"}({isFocused:E,isError:u,disabled:c,isEditMode:m})],M=b||{},A=M.horizontalPadding,N=void 0===A?0:A,P=M.verticalPadding,R=void 0===P?0:P,B=M.placeholderTextColor,F=M.placeholderTextFontSize,_=M.textColor,L=M.textFontSize,I=M.styles,$=M.wrapperStyles,z=e.css(MN||(MN=x(["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "],["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "])),_?"color: ".concat(T[_]||_,";"):"",L?"font-size: ".concat(L,"px;"):"",N||R?"padding: ".concat(R,"px ").concat(N,"px;"):"",F?"font-size: ".concat(F,"px;"):"",B?"color: ".concat(T[B]||B,";"):"",I);return t.jsxs(rR,f({withoutOpacityEffect:!0,disabled:!m||c,isEditMode:m,isFocused:E,isError:u,$styles:$,onClick:function(){var e;return null===(e=D.current)||void 0===e?void 0:e.inputElement.focus()}},{children:[!!i&&t.jsx(sR,f({withoutOpacityEffect:!i.onClick,onClick:function(e){return nR(e,i.onClick)}},{children:t.jsx(LD,{name:i.name,color:j})})),t.jsx(iR,f({value:r,$styles:z,onChange:function(e){return null==s?void 0:s(e.target.value)},onFocus:function(){return O(!0)},onBlur:function(){O(!1),null==l||l()},ref:D,isError:u,disabled:!m||c,placeholder:p,isEditMode:m,autoComplete:"off"},w,S,k)),!!a&&t.jsx(lR,f({withoutOpacityEffect:!a.onClick,onClick:function(e){return nR(e,a.onClick)}},{children:t.jsx(LD,{name:a.name,color:j})}))]}))},rR=l.default(w)(PN||(PN=x(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isEditMode,a=t.disabled,s=t.isFocused,l=t.isError,c=t.$styles,u=r.gray3,p="1px",d="53px",f="transparent";return i?a?(u="transparent",f=r.gray4):l?u=r.red:s&&(u=r.gray1):(u="transparent",p="0",d="auto"),e.css(NN||(NN=x(["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "],["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "])),p,u,o.S,d,i?o.M:0,i&&!a?"text":"unset",f,i&&!a&&e.css(AN||(AN=x(["\n &:hover {\n border-color: ",";\n }\n "],["\n &:hover {\n border-color: ",";\n }\n "])),r.gray1),c)})),iR=l.default(JP)(BN||(BN=x(["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"],["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"])),(function(t){var n=t.theme,o=n.fonts,r=n.colors,i=t.isError,a=t.disabled,s=t.isEditMode,l=t.state,c=t.$styles,u=r.gray1,p=r.gray3,d=s?r.gray4:"transparent";return s?a?(u=r.gray3,p=r.gray3):i?(u=r.red,p=r.red):"success"===l&&(p=r.gray1):(u=r.gray1,p=r.gray3),e.css(RN||(RN=x(["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "],["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "])),o.M,u,o.M,p,d,c)})),aR=l.default(w)(FN||(FN=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),sR=l.default(aR)(_N||(_N=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes.S})),lR=l.default(aR)(LN||(LN=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),cR=e.keyframes(IN||(IN=x(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),uR=l.default.div($N||($N=x(["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"],["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"])),(function(e){var t=e.theme,n=e.color,o=void 0===n?"secondary":n;return t.colors[o]}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),cR),pR=l.default.img(VN||(VN=x(["\n display: block;\n ","\n"],["\n display: block;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(zN||(zN=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),dR=l.default(pR)(UN||(UN=x(["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"],["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(WN||(WN=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),fR=l.default.a.attrs({target:"_blank"})(YN||(YN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.disabled,a=t.size,s=void 0===a?"medium":a,l=t.colorTheme,c=void 0===l?"light":l,u=t.$styles,p=t.$variant,d=void 0===p?"link":p,f=o["light"===c?"blue":"gray4"],h=o["light"===c?"blueShade":"white"],m=o["light"===c?"gray4":"indigoTint2"],v=o["light"===c?"blue":"white"],g=o["light"===c?"blueShade":"gray4"],b=e.css(HN||(HN=x(["\n ","\n\n &:visited {\n ","\n }\n "],["\n ","\n\n &:visited {\n ","\n }\n "])),u,u);return e.css(GN||(GN=x(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n \n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n \n ","\n "])),r["medium"===s?"M":"S"],f,f,g,h,v,m,"small"===s&&e.css(qN||(qN=x(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),o.gray2,o.gray2,o.gray3,o.gray1,o.gray4,o.gray1),i&&e.css(XN||(XN=x(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),o.gray3,o.gray3,o.gray3),"custom"===d&&u&&b)})),hR={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},mR=function(n){var o=n.text,r=n.status,i=function(t){var n=e.useTheme().colors;switch(t){case"SUCCESS":return{color:n.greenShade,backgroundColor:n.greenTint,borderColor:"transparent"};case"ERROR":return{color:n.redShade,backgroundColor:n.redTint,borderColor:"transparent"};default:return{color:n.gray2,backgroundColor:"transparent",borderColor:n.gray3}}}(r),a=i.backgroundColor,s=i.color,l=i.borderColor,c=e.useTheme().sizes;return t.jsxs(vR,f({style:{backgroundColor:a,borderColor:l}},{children:[t.jsx(LD,{size:c.M,name:hR[r],color:s}),t.jsx(PP,{width:"S"}),t.jsx(RP,f({variant:"M",color:s},{children:o}))]}))},vR=l.default.div(ZN||(ZN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(KN||(KN=x(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),n.M,n.XS,n.M,n.XS,n.S)}));function gR(e){return gR="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},gR(e)}function xR(e){var t=function(e,t){if("object"!==gR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==gR(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gR(t)?t:String(t)}function bR(e,t,n){return(t=xR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yR(Object(n),!0).forEach((function(t){bR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CR(e,t){if(null==e)return{};var n,o,r=jl(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ER(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xR(o.key),o)}}function DR(e,t,n){return t&&OR(e.prototype,t),n&&OR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ml(e,t)}function kR(e){return kR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kR(e)}function TR(e,t){if(t&&("object"===gR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hl(e)}function jR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=kR(e);if(t){var r=kR(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return TR(this,n)}}var MR=function(e){return+setTimeout(e,16)},AR=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(MR=function(e){return window.requestAnimationFrame(e)},AR=function(e){return window.cancelAnimationFrame(e)});var NR=0,PR=new Map;function RR(e){PR.delete(e)}function BR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=NR+=1;function o(t){if(0===t)RR(n),e();else{var r=MR((function(){o(t-1)}));PR.set(n,r)}}return o(t),n}function FR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function _R(e){return e instanceof HTMLElement?e:d.default.findDOMNode(e)}BR.cancel=function(e){var t=PR.get(e);return RR(t),AR(t)};var LR,IR={exports:{}},$R={};var zR,VR={};
|
241
|
+
function ID(e){return"[object Object]"===Object.prototype.toString.call(e)}function $D(e){var t,n;return!1!==ID(e)&&(void 0===(t=e.constructor)||!1!==ID(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function zD(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if("production"!==process.env.NODE_ENV){var r=TS[e],i=r?"function"==typeof r?r.apply(null,n):r:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function VD(e){return!!e&&!!e[kS]}function WD(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===jS}(e)||Array.isArray(e)||!!e[SS]||!!(null===(t=e.constructor)||void 0===t?void 0:t[SS])||GD(e)||YD(e))}function UD(e,t,n){void 0===n&&(n=!1),0===HD(e)?(n?Object.keys:MS)(e).forEach((function(o){n&&"symbol"==typeof o||t(o,e[o],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function HD(e){var t=e[kS];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:GD(e)?2:YD(e)?3:0}function qD(e,t){return 2===HD(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function XD(e,t,n){var o=HD(e);2===o?e.set(t,n):3===o?(e.delete(t),e.add(n)):e[t]=n}function GD(e){return CS&&e instanceof Map}function YD(e){return ES&&e instanceof Set}function KD(e){return e.o||e.t}function ZD(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AS(e);delete t[kS];for(var n=MS(t),o=0;o<n.length;o++){var r=n[o],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function JD(e,t){return void 0===t&&(t=!1),eS(e)||VD(e)||!WD(e)||(HD(e)>1&&(e.set=e.add=e.clear=e.delete=QD),Object.freeze(e),t&&UD(e,(function(e,t){return JD(t,!0)}),!0)),e}function QD(){zD(2)}function eS(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tS(e){var t=NS[e];return t||zD(18,e),t}function nS(){return"production"===process.env.NODE_ENV||yS||zD(0),yS}function oS(e,t){t&&(tS("Patches"),e.u=[],e.s=[],e.v=t)}function rS(e){iS(e),e.p.forEach(sS),e.p=null}function iS(e){e===yS&&(yS=e.l)}function aS(e){return yS={p:[],l:yS,h:e,m:!0,_:0}}function sS(e){var t=e[kS];0===t.i||1===t.i?t.j():t.O=!0}function lS(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||tS("ES5").S(t,e,o),o?(n[kS].P&&(rS(t),zD(4)),WD(e)&&(e=cS(t,e),t.l||pS(t,e)),t.u&&tS("Patches").M(n[kS].t,e,t.u,t.s)):e=cS(t,n,[]),rS(t),t.u&&t.v(t.u,t.s),e!==DS?e:void 0}function cS(e,t,n){if(eS(t))return t;var o=t[kS];if(!o)return UD(t,(function(r,i){return uS(e,o,t,r,i,n)}),!0),t;if(o.A!==e)return t;if(!o.P)return pS(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ZD(o.k):o.o;UD(3===o.i?new Set(r):r,(function(t,i){return uS(e,o,r,t,i,n)})),pS(e,r,!1),n&&e.u&&tS("Patches").R(o,n,e.u,e.s)}return o.o}function uS(e,t,n,o,r,i){if("production"!==process.env.NODE_ENV&&r===n&&zD(5),VD(r)){var a=cS(e,r,i&&t&&3!==t.i&&!qD(t.D,o)?i.concat(o):void 0);if(XD(n,o,a),!VD(a))return;e.m=!1}if(WD(r)&&!eS(r)){if(!e.h.F&&e._<1)return;cS(e,r),t&&t.A.l||pS(e,r)}}function pS(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&JD(t,n)}function dS(e,t){var n=e[kS];return(n?KD(n):e)[t]}function fS(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function hS(e){e.P||(e.P=!0,e.l&&hS(e.l))}function mS(e){e.o||(e.o=ZD(e.t))}function vS(e,t,n){var o=GD(t)?tS("MapSet").N(t,n):YD(t)?tS("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),o={i:n?1:0,A:t?t.A:nS(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=o,i=PS;n&&(r=[o],i=RS);var a=Proxy.revocable(r,i),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(t,n):tS("ES5").J(t,n);return(n?n.A:nS()).p.push(o),o}function gS(e){return VD(e)||zD(22,e),function e(t){if(!WD(t))return t;var n,o=t[kS],r=HD(t);if(o){if(!o.P&&(o.i<4||!tS("ES5").K(o)))return o.t;o.I=!0,n=xS(t,r),o.I=!1}else n=xS(t,r);return UD(n,(function(t,r){o&&function(e,t){return 2===HD(e)?e.get(t):e[t]}(o.t,t)===r||XD(n,t,e(r))})),3===r?new Set(n):n}(e)}function xS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ZD(e)}var bS,yS,wS="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),CS="undefined"!=typeof Map,ES="undefined"!=typeof Set,OS="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,DS=wS?Symbol.for("immer-nothing"):((bS={})["immer-nothing"]=!0,bS),SS=wS?Symbol.for("immer-draftable"):"__$immer_draftable",kS=wS?Symbol.for("immer-state"):"__$immer_state",TS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},jS=""+Object.prototype.constructor,MS="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AS=Object.getOwnPropertyDescriptors||function(e){var t={};return MS(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},NS={},PS={get:function(e,t){if(t===kS)return e;var n=KD(e);if(!qD(n,t))return function(e,t,n){var o,r=fS(t,n);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(e.k):void 0}(e,n,t);var o=n[t];return e.I||!WD(o)?o:o===dS(e.t,t)?(mS(e),e.o[t]=vS(e.A.h,o,e)):o},has:function(e,t){return t in KD(e)},ownKeys:function(e){return Reflect.ownKeys(KD(e))},set:function(e,t,n){var o=fS(KD(e),t);if(null==o?void 0:o.set)return o.set.call(e.k,n),!0;if(!e.P){var r=dS(KD(e),t),i=null==r?void 0:r[kS];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||qD(e.t,t)))return!0;mS(e),hS(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dS(e.t,t)||t in e.t?(e.D[t]=!1,mS(e),hS(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=KD(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:o.enumerable,value:n[t]}:o},defineProperty:function(){zD(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zD(12)}},RS={};UD(PS,(function(e,t){RS[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),RS.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&zD(13),RS.set.call(this,e,t,void 0)},RS.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&zD(14),PS.set.call(this,e[0],t,n,e[0])};var BS=function(){function e(e){var t=this;this.g=OS,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var o;return(o=n).call.apply(o,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&zD(6),void 0!==o&&"function"!=typeof o&&zD(7),WD(e)){var s=aS(t),l=vS(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?rS(s):iS(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return oS(s,o),lS(e,s)}),(function(e){throw rS(s),e})):(oS(s,o),lS(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===DS&&(a=void 0),t.F&&JD(a,!0),o){var u=[],p=[];tS("Patches").M(e,a,u,p),o(u,p)}return a}zD(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))};var o,r,i=t.produce(e,n,(function(e,t){o=e,r=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,o,r]})):[i,o,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){WD(e)||zD(8),VD(e)&&(e=gS(e));var t=aS(this),n=vS(this,e,void 0);return n[kS].C=!0,iS(t),n},t.finishDraft=function(e,t){var n=e&&e[kS];"production"!==process.env.NODE_ENV&&(n&&n.C||zD(9),n.I&&zD(10));var o=n.A;return oS(o,t),lS(void 0,o)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!OS&&zD(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var o=t[n];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}n>-1&&(t=t.slice(n+1));var r=tS("Patches").$;return VD(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),FS=new BS,_S=FS.produce;FS.produceWithPatches.bind(FS),FS.setAutoFreeze.bind(FS),FS.setUseProxies.bind(FS),FS.applyPatches.bind(FS);var LS=FS.createDraft.bind(FS),IS=FS.finishDraft.bind(FS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zS=new WeakMap,VS=new WeakMap,WS=new WeakMap,US=new WeakMap,HS=new WeakMap,qS=new WeakMap,XS=new WeakMap;function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function YS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GS(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ZS,JS=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,o=t?rk(e):e,r=ZS.None,i=ZS.None,a=0,s=null;for(var l of o){var c=l.codePointAt(0);if(!c)break;var u=vk(l,c);if([r,i]=n?[i,u]:[u,r],gk(r,ZS.ZWJ)&&gk(i,ZS.ExtPict)&&!wk(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(gk(r,ZS.RI)&&gk(i,ZS.RI)&&!(s=null!==s?!s:!!n||Ek(e.substring(0,e.length-a))))break;if(r!==ZS.None&&i!==ZS.None&&bk(r,i))break;a+=l.length}return a||1},QS=/\s/,ek=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tk=/['\u2018\u2019]/,nk=(e,t,n)=>{if(n){var o=e.length-t;return[e.slice(o,e.length),e.slice(0,o)]}return[e.slice(0,t),e.slice(t)]},ok=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(QS.test(t))return!1;if(tk.test(t)){var r=JS(n,o),[i,a]=nk(n,r,o);if(e(i,a,o))return!0}return!ek.test(t)},rk=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var o=e.charAt(t-n);if(ak(o.charCodeAt(0))){var r=e.charAt(t-n-1);if(ik(r.charCodeAt(0))){yield r+o,n++;continue}}yield o}},ik=e=>e>=55296&&e<=56319,ak=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(ZS||(ZS={}));var sk=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,lk=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ck=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,uk=/^[\u1100-\u115F\uA960-\uA97C]$/,pk=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,dk=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,fk=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,hk=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,mk=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,vk=(e,t)=>{var n=ZS.Any;return-1!==e.search(sk)&&(n|=ZS.Extend),8205===t&&(n|=ZS.ZWJ),t>=127462&&t<=127487&&(n|=ZS.RI),-1!==e.search(lk)&&(n|=ZS.Prepend),-1!==e.search(ck)&&(n|=ZS.SpacingMark),-1!==e.search(uk)&&(n|=ZS.L),-1!==e.search(pk)&&(n|=ZS.V),-1!==e.search(dk)&&(n|=ZS.T),-1!==e.search(fk)&&(n|=ZS.LV),-1!==e.search(hk)&&(n|=ZS.LVT),-1!==e.search(mk)&&(n|=ZS.ExtPict),n};function gk(e,t){return 0!=(e&t)}var xk=[[ZS.L,ZS.L|ZS.V|ZS.LV|ZS.LVT],[ZS.LV|ZS.V,ZS.V|ZS.T],[ZS.LVT|ZS.T,ZS.T],[ZS.Any,ZS.Extend|ZS.ZWJ],[ZS.Any,ZS.SpacingMark],[ZS.Prepend,ZS.Any],[ZS.ZWJ,ZS.ExtPict],[ZS.RI,ZS.RI]];function bk(e,t){return-1===xk.findIndex((n=>gk(e,n[0])&&gk(t,n[1])))}var yk=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,wk=e=>-1!==e.search(yk),Ck=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ek=e=>{var t=e.match(Ck);return null!==t&&t[0].length/2%2==1},Ok=e=>$D(e)&&Fk.isNodeList(e.children)&&!Ak.isEditor(e),Dk={isAncestor:e=>$D(e)&&Fk.isNodeList(e.children),isElement:Ok,isElementList:e=>Array.isArray(e)&&e.every((e=>Dk.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Ok(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Sk=["text"],kk=["text"];function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function jk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mk=new WeakMap,Ak={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:r=e.selection,match:i}=t;if(r){var a=Ak.path(e,r),s="lowest"===o;for(var[l,c]of Ak.levels(e,{at:a,voids:n,match:i,reverse:s})){if(oT.isText(l))return;if(Gk.isRange(r)){if($k.isAncestor(c,r.anchor.path)&&$k.isAncestor(c,r.focus.path))return[l,c]}else if(!$k.equals(a,c))return[l,c]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:Ak.point(e,t,{edge:"end"}),focus:Ak.end(e,[])},{distance:i=1}=o,a=0;for(var s of Ak.positions(e,jk(jk({},o),{},{at:r}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={anchor:Ak.start(e,[]),focus:Ak.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(var s of Ak.positions(e,jk(jk({},o),{},{at:r,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Ak.start(e,t),Ak.end(e,t)],end:(e,t)=>Ak.point(e,t,{edge:"end"}),first(e,t){var n=Ak.path(e,t,{edge:"start"});return Ak.node(e,n)},fragment(e,t){var n=Ak.range(e,t);return Fk.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Ak.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>oT.isText(t)||Ak.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>oT.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Dk.isElement(t)&&!e.isInline(t),isEditor(e){var t=Mk.get(e);if(void 0!==t)return t;if(!$D(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||$D(e.marks))&&(null===e.selection||Gk.isRange(e.selection))&&Fk.isNodeList(e.children)&&Ik.isOperationList(e.operations);return Mk.set(e,n),n},isEnd(e,t,n){var o=Ak.end(e,n);return Uk.equals(t,o)},isEdge:(e,t,n)=>Ak.isStart(e,t,n)||Ak.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[o]=n;return 0===n.length||1===n.length&&oT.isText(o)&&""===o.text&&!e.isVoid(t)},isInline:(e,t)=>Dk.isElement(t)&&e.isInline(t),isNormalizing(e){var t=US.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var o=Ak.start(e,n);return Uk.equals(t,o)},isVoid:(e,t)=>Dk.isElement(t)&&e.isVoid(t),last(e,t){var n=Ak.path(e,t,{edge:"end"});return Ak.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n);return[Fk.leaf(e,o),o]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:o=!1,voids:r=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=Ak.path(e,n);for(var[l,c]of Fk.levels(e,s))if(i(l,c)&&(a.push([l,c]),!r&&Ak.isVoid(e,l)))break;o&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Gk.isExpanded(n)){var[o]=Ak.nodes(e,{match:oT.isText});if(o){var[r]=o;return KS(r,Sk)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Ak.leaf(e,a);if(0===i.offset){var l=Ak.previous(e,{at:a,match:oT.isText}),c=Ak.above(e,{match:t=>Ak.isBlock(e,t)});if(l&&c){var[u,p]=l,[,d]=c;$k.isAncestor(d,p)&&(s=u)}}return KS(s,kk)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=Ak.after(e,i,{voids:o});if(a){var[,s]=Ak.last(e,[]),l=[a.path,s];if($k.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==r)if($k.isPath(i)){var[c]=Ak.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=Ak.nodes(e,{at:l,match:r,mode:n,voids:o});return u}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n);return[Fk.get(e,o),o]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:o="all",universal:r=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,c;if(Nk.isSpan(n))l=n[0],c=n[1];else{var u=Ak.path(e,n,{edge:"start"}),p=Ak.path(e,n,{edge:"end"});l=i?p:u,c=i?u:p}var d,f=Fk.nodes(e,{reverse:i,from:l,to:c,pass:t=>{var[n]=t;return!a&&Ak.isVoid(e,n)}}),h=[];for(var[m,v]of f){var g=d&&0===$k.compare(v,d[1]);if("highest"!==o||!g)if(s(m,v))if("lowest"===o&&g)d=[m,v];else{var x="lowest"===o?d:[m,v];x&&(r?h.push(x):yield x),d=[m,v]}else if(r&&!g&&oT.isText(m))return}"lowest"===o&&d&&(r?h.push(d):yield d),r&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,o=e=>zS.get(e)||[],r=e=>{var t=o(e).pop(),n=t.join(",");return(e=>VS.get(e)||new Set)(e).delete(n),t};if(Ak.isNormalizing(e)){if(n){var i=Array.from(Fk.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(i.map((e=>e.join(","))));zS.set(e,i),VS.set(e,a)}0!==o(e).length&&Ak.withoutNormalizing(e,(()=>{for(var t of o(e))if(Fk.has(e,t)){var n=Ak.node(e,t),[i,a]=n;Dk.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var s=42*o(e).length,l=0;0!==o(e).length;){if(l>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var c=r(e);if(Fk.has(e,c)){var u=Ak.node(e,c);e.normalizeNode(u)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ak.path(e,t,n),r=$k.parent(o);return Ak.node(e,r)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:o,edge:r}=n;if($k.isPath(t))if("start"===r){var[,i]=Fk.first(e,t);t=i}else if("end"===r){var[,a]=Fk.last(e,t);t=a}return Gk.isRange(t)&&(t="start"===r?Gk.start(t):"end"===r?Gk.end(t):$k.common(t.anchor.path,t.focus.path)),Uk.isPoint(t)&&(t=t.path),null!=o&&(t=t.slice(0,o)),t},hasPath:(e,t)=>Fk.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.pathRefs(e).delete(r),r.current=null,t}};return Ak.pathRefs(e).add(r),r},pathRefs(e){var t=HS.get(e);return t||(t=new Set,HS.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:o="start"}=n;if($k.isPath(t)){var r;if("end"===o){var[,i]=Fk.last(e,t);r=i}else{var[,a]=Fk.first(e,t);r=a}var s=Fk.get(e,r);if(!oT.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(t,"] because it has no ").concat(o," text node."));return{path:r,offset:"end"===o?s.text.length:0}}if(Gk.isRange(t)){var[l,c]=Gk.edges(t);return"start"===o?l:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.pointRefs(e).delete(r),r.current=null,t}};return Ak.pointRefs(e).add(r),r},pointRefs(e){var t=qS.get(e);return t||(t=new Set,qS.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:o="offset",reverse:r=!1,voids:i=!1}=t;if(n){var a=Ak.range(e,n),[s,l]=Gk.edges(a),c=r?l:s,u=!1,p="",d=0,f=0,h=0;for(var[m,v]of Ak.nodes(e,{at:n,reverse:r,voids:i})){if(Dk.isElement(m)){if(!i&&e.isVoid(m)){yield Ak.start(e,v);continue}if(e.isInline(m))continue;if(Ak.hasInlines(e,m)){var g=$k.isAncestor(v,l.path)?l:Ak.end(e,v),x=$k.isAncestor(v,s.path)?s:Ak.start(e,v);p=Ak.string(e,{anchor:x,focus:g},{voids:i}),u=!0}}if(oT.isText(m)){var b=$k.equals(v,c.path);for(b?(f=r?c.offset:m.text.length-c.offset,h=c.offset):(f=m.text.length,h=r?f:0),(b||u||"offset"===o)&&(yield{path:v,offset:h},u=!1);;){if(0===d){if(""===p)break;d=y(p,o,r),p=nk(p,d,r)[1]}if(h=r?h-d:h+d,(f-=d)<0){d=-f;break}d=0,yield{path:v,offset:h}}}}}function y(e,t,n){return"character"===t?JS(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,o=!1;e.length>0;){var r=JS(e,t),[i,a]=nk(e,r,t);if(ok(i,a,t))o=!0,n+=r;else{if(o)break;n+=r}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection}=t;if(i){var a=Ak.before(e,i,{voids:o});if(a){var[,s]=Ak.first(e,[]),l=[a.path,s];if($k.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==r)if($k.isPath(i)){var[c]=Ak.parent(e,i);r=e=>c.children.includes(e)}else r=()=>!0;var[u]=Ak.nodes(e,{reverse:!0,at:l,match:r,mode:n,voids:o});return u}}},range:(e,t,n)=>Gk.isRange(t)&&!n?t:{anchor:Ak.start(e,t),focus:Ak.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:o="forward"}=n,r={current:t,affinity:o,unref(){var{current:t}=r;return Ak.rangeRefs(e).delete(r),r.current=null,t}};return Ak.rangeRefs(e).add(r),r},rangeRefs(e){var t=XS.get(e);return t||(t=new Set,XS.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){US.set(e,t)},start:(e,t)=>Ak.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,r=Ak.range(e,t),[i,a]=Gk.edges(r),s="";for(var[l,c]of Ak.nodes(e,{at:r,match:oT.isText,voids:o})){var u=l.text;$k.equals(c,a.path)&&(u=u.slice(0,a.offset)),$k.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:o=!1}=n,[r,i]=Gk.edges(t);if(0!==r.offset||0!==i.offset||Gk.isCollapsed(t))return t;var a=Ak.above(e,{at:i,match:t=>Ak.isBlock(e,t)}),s=a?a[1]:[],l={anchor:Ak.start(e,r),focus:i},c=!0;for(var[u,p]of Ak.nodes(e,{at:l,match:oT.isText,reverse:!0,voids:o}))if(c)c=!1;else if(""!==u.text||$k.isBefore(p,s)){i={path:p,offset:u.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ak.above(e,jk(jk({},t),{},{match:t=>Ak.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Ak.isNormalizing(e);Ak.setNormalizing(e,!1);try{t()}finally{Ak.setNormalizing(e,n)}Ak.normalize(e)}},Nk={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every($k.isPath)},Pk=["children"],Rk=["text"],Bk=new WeakMap,Fk={ancestor(e,t){var n=Fk.get(e,t);if(oT.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Zk.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of $k.ancestors(t,n)){var r=[Fk.ancestor(e,o),o];yield r}},child(e,t){if(oT.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Zk.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Zk.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:o=!1}=n,r=Fk.ancestor(e,t),{children:i}=r,a=o?i.length-1:0;o?a>=0:a<i.length;){var s=Fk.child(r,a),l=t.concat(a);yield[s,l],a=o?a-1:a+1}},common(e,t,n){var o=$k.common(t,n);return[Fk.get(e,o),o]},descendant(e,t){var n=Fk.get(e,t);if(Ak.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Zk.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))0!==o.length&&(yield[n,o])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))Dk.isElement(n)&&(yield[n,o])},extractProps:e=>Dk.isAncestor(e)?KS(e,Pk):KS(e,Rk),first(e,t){for(var n=t.slice(),o=Fk.get(e,n);o&&!oT.isText(o)&&0!==o.children.length;)o=o.children[0],n.push(0);return[o,n]},fragment(e,t){if(oT.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Zk.stringify(e)));var n=_S({children:e.children},(e=>{var[n,o]=Gk.edges(t),r=Fk.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Gk.includes(t,n)}});for(var[,i]of r){if(!Gk.includes(t,i)){var a=Fk.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if($k.equals(i,o.path)){var l=Fk.leaf(e,i);l.text=l.text.slice(0,o.offset)}if($k.equals(i,n.path)){var c=Fk.leaf(e,i);c.text=c.text.slice(n.offset)}}Ak.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(oT.isText(n)||!n.children[r])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Zk.stringify(e)));n=n.children[r]}return n},has(e,t){for(var n=e,o=0;o<t.length;o++){var r=t[o];if(oT.isText(n)||!n.children[r])return!1;n=n.children[r]}return!0},isNode:e=>oT.isText(e)||Dk.isElement(e)||Ak.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Bk.get(e);if(void 0!==t)return t;var n=e.every((e=>Fk.isNode(e)));return Bk.set(e,n),n},last(e,t){for(var n=t.slice(),o=Fk.get(e,n);o&&!oT.isText(o)&&0!==o.children.length;){var r=o.children.length-1;o=o.children[r],n.push(r)}return[o,n]},leaf(e,t){var n=Fk.get(e,t);if(!oT.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Zk.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var o of $k.levels(t,n)){var r=Fk.get(e,o);yield[r,o]}},matches:(e,t)=>Dk.isElement(e)&&Dk.isElementProps(t)&&Dk.matches(e,t)||oT.isText(e)&&oT.isTextProps(t)&&oT.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:o=!1}=t,{from:r=[],to:i}=t,a=new Set,s=[],l=e;!i||!(o?$k.isBefore(s,i):$k.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||oT.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!o){var c=$k.next(s);if(Fk.has(e,c)){s=c,l=Fk.get(e,s);continue}}if(o&&0!==s[s.length-1])s=$k.previous(s),l=Fk.get(e,s);else s=$k.parent(s),l=Fk.get(e,s),a.add(l)}else{a.add(l);var u=o?l.children.length-1:0;$k.isAncestor(s,r)&&(u=r[s.length]),s=s.concat(u),l=Fk.get(e,s)}},parent(e,t){var n=$k.parent(t),o=Fk.get(e,n);if(oT.isText(o))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return o},string:e=>oT.isText(e)?e.text:e.children.map(Fk.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,o]of Fk.nodes(e,t))oT.isText(n)&&(yield[n,o])}};function _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_k(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ik={isNodeOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!$D(e))return!1;switch(e.type){case"insert_node":case"remove_node":return $k.isPath(e.path)&&Fk.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&$k.isPath(e.path);case"merge_node":return"number"==typeof e.position&&$k.isPath(e.path)&&$D(e.properties);case"move_node":return $k.isPath(e.path)&&$k.isPath(e.newPath);case"set_node":return $k.isPath(e.path)&&$D(e.properties)&&$D(e.newProperties);case"set_selection":return null===e.properties&&Gk.isRange(e.newProperties)||null===e.newProperties&&Gk.isRange(e.properties)||$D(e.properties)&&$D(e.newProperties);case"split_node":return $k.isPath(e.path)&&"number"==typeof e.position&&$D(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Ik.isOperation(e))),isSelectionOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ik.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Lk(Lk({},e),{},{type:"remove_node"});case"insert_text":return Lk(Lk({},e),{},{type:"remove_text"});case"merge_node":return Lk(Lk({},e),{},{type:"split_node",path:$k.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if($k.equals(t,n))return e;if($k.isSibling(n,t))return Lk(Lk({},e),{},{path:t,newPath:n});var o=$k.transform(n,e),r=$k.transform($k.next(n),e);return Lk(Lk({},e),{},{path:o,newPath:r});case"remove_node":return Lk(Lk({},e),{},{type:"insert_node"});case"remove_text":return Lk(Lk({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Lk(Lk({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return Lk(Lk({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Lk(Lk({},e),{},{type:"merge_node",path:$k.next(e.path)})}}},$k={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=$k.levels(e,t);return o=n?o.slice(1):o.slice(0,-1)},common(e,t){for(var n=[],o=0;o<e.length&&o<t.length;o++){var r=e[o];if(r!==t[o])break;n.push(r)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0},endsAfter(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return $k.equals(o,r)&&i>a},endsAt(e,t){var n=e.length,o=e.slice(0,n),r=t.slice(0,n);return $k.equals(o,r)},endsBefore(e,t){var n=e.length-1,o=e.slice(0,n),r=t.slice(0,n),i=e[n],a=t[n];return $k.equals(o,r)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===$k.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===$k.compare(e,t),isBefore:(e,t)=>-1===$k.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===$k.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===$k.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===$k.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===$k.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),o=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&$k.equals(n,o)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,o=[],r=0;r<=e.length;r++)o.push(e.slice(0,r));return n&&o.reverse(),o},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!$k.isAncestor(t,e)&&!$k.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var o=[...e],{affinity:r="forward"}=n;if(0===e.length)return o;switch(t.type){case"insert_node":var{path:i}=t;($k.equals(i,o)||$k.endsBefore(i,o)||$k.isAncestor(i,o))&&(o[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if($k.equals(a,o)||$k.isAncestor(a,o))return null;$k.endsBefore(a,o)&&(o[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;$k.equals(s,o)||$k.endsBefore(s,o)?o[s.length-1]-=1:$k.isAncestor(s,o)&&(o[s.length-1]-=1,o[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if($k.equals(c,o)){if("forward"===r)o[o.length-1]+=1;else if("backward"!==r)return null}else $k.endsBefore(c,o)?o[c.length-1]+=1:$k.isAncestor(c,o)&&e[c.length]>=u&&(o[c.length-1]+=1,o[c.length]-=u);break;case"move_node":var{path:p,newPath:d}=t;if($k.equals(p,d))return o;if($k.isAncestor(p,o)||$k.equals(p,o)){var f=d.slice();return $k.endsBefore(p,d)&&p.length<d.length&&(f[p.length-1]-=1),f.concat(o.slice(p.length))}$k.isSibling(p,d)&&($k.isAncestor(d,o)||$k.equals(d,o))?$k.endsBefore(p,o)?o[p.length-1]-=1:o[p.length-1]+=1:$k.endsBefore(d,o)||$k.equals(d,o)||$k.isAncestor(d,o)?($k.endsBefore(p,o)&&(o[p.length-1]-=1),o[d.length-1]+=1):$k.endsBefore(p,o)&&($k.equals(d,o)&&(o[d.length-1]+=1),o[p.length-1]-=1)}return o}},zk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=$k.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}};function Vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uk={compare(e,t){var n=$k.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Uk.compare(e,t),isBefore:(e,t)=>-1===Uk.compare(e,t),equals:(e,t)=>e.offset===t.offset&&$k.equals(e.path,t.path),isPoint:e=>$D(e)&&"number"==typeof e.offset&&$k.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _S(e,(e=>{if(null===e)return null;var{affinity:o="forward"}=n,{path:r,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=$k.transform(r,t,n);break;case"insert_text":$k.equals(t.path,r)&&(t.offset<i||t.offset===i&&"forward"===o)&&(e.offset+=t.text.length);break;case"merge_node":$k.equals(t.path,r)&&(e.offset+=t.position),e.path=$k.transform(r,t,n);break;case"remove_text":$k.equals(t.path,r)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if($k.equals(t.path,r)||$k.isAncestor(t.path,r))return null;e.path=$k.transform(r,t,n);break;case"split_node":if($k.equals(t.path,r)){if(t.position===i&&null==o)return null;(t.position<i||t.position===i&&"forward"===o)&&(e.offset-=t.position,e.path=$k.transform(r,t,Wk(Wk({},n),{},{affinity:"forward"})))}else e.path=$k.transform(r,t,n)}}))}},Hk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=Uk.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},qk=["anchor","focus"];function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var Gk={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:o,focus:r}=e;return Gk.isBackward(e)===n?[o,r]:[r,o]},end(e){var[,t]=Gk.edges(e);return t},equals:(e,t)=>Uk.equals(e.anchor,t.anchor)&&Uk.equals(e.focus,t.focus),includes(e,t){if(Gk.isRange(t)){if(Gk.includes(e,t.anchor)||Gk.includes(e,t.focus))return!0;var[n,o]=Gk.edges(e),[r,i]=Gk.edges(t);return Uk.isBefore(n,r)&&Uk.isAfter(o,i)}var[a,s]=Gk.edges(e),l=!1,c=!1;return Uk.isPoint(t)?(l=Uk.compare(t,a)>=0,c=Uk.compare(t,s)<=0):(l=$k.compare(t,a.path)>=0,c=$k.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=KS(e,qk),[o,r]=Gk.edges(e),[i,a]=Gk.edges(t),s=Uk.isBefore(o,i)?i:o,l=Uk.isBefore(r,a)?r:a;return Uk.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xk(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Uk.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Uk.equals(t,n)},isExpanded:e=>!Gk.isCollapsed(e),isForward:e=>!Gk.isBackward(e),isRange:e=>$D(e)&&Uk.isPoint(e.anchor)&&Uk.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Gk.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _S(e,(e=>{if(null===e)return null;var o,r,{affinity:i="inward"}=n;if("inward"===i){var a=Gk.isCollapsed(e);Gk.isForward(e)?(o="forward",r=a?o:"backward"):(o="backward",r=a?o:"forward")}else"outward"===i?Gk.isForward(e)?(o="backward",r="forward"):(o="forward",r="backward"):(o=i,r=i);var s=Uk.transform(e.anchor,t,{affinity:o}),l=Uk.transform(e.focus,t,{affinity:r});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},Yk={transform(e,t){var{current:n,affinity:o}=e;if(null!=n){var r=Gk.transform(n,t,{affinity:o});e.current=r,null==r&&e.unref()}}},Kk=void 0,Zk={setScrubber(e){Kk=e},stringify:e=>JSON.stringify(e,Kk)},Jk=(e,t)=>{for(var n in e){var o=e[n],r=t[n];if($D(o)&&$D(r)){if(!Jk(o,r))return!1}else if(Array.isArray(o)&&Array.isArray(r)){if(o.length!==r.length)return!1;for(var i=0;i<o.length;i++)if(o[i]!==r[i])return!1}else if(o!==r)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Qk=["text"],eT=["anchor","focus"];function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oT={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:o=!1}=n;function r(e){return KS(e,Qk)}return Jk(o?r(e):e,o?r(t):t)},isText:e=>$D(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>oT.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[nT({},e)];for(var o of t){var r=KS(o,eT),[i,a]=Gk.edges(o),s=[],l=0,c=i.offset,u=a.offset;for(var p of n){var{length:d}=p.text,f=l;if(l+=d,c<=f&&l<=u)Object.assign(p,r),s.push(p);else if(c!==u&&(c===l||u===f)||c>l||u<f||u===f&&0!==f)s.push(p);else{var h=p,m=void 0,v=void 0;if(u<l){var g=u-f;v=nT(nT({},h),{},{text:h.text.slice(g)}),h=nT(nT({},h),{},{text:h.text.slice(0,g)})}if(c>f){var x=c-f;m=nT(nT({},h),{},{text:h.text.slice(0,x)}),h=nT(nT({},h),{},{text:h.text.slice(x)})}Object.assign(h,r),m&&s.push(m),s.push(h),v&&s.push(v)}}n=s}return n}};function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function iT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aT={transform(e,t){e.children=LS(e.children);var n=e.selection&&LS(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:o,node:r}=n,i=Fk.parent(e,o),a=o[o.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(i.children.splice(a,0,r),t)for(var[s,l]of Gk.points(t))t[l]=Uk.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:p}=n;if(0===p.length)break;var d=Fk.leaf(e,c),f=d.text.slice(0,u),h=d.text.slice(u);if(d.text=f+p+h,t)for(var[m,v]of Gk.points(t))t[v]=Uk.transform(m,n);break;case"merge_node":var{path:g}=n,x=Fk.get(e,g),b=$k.previous(g),y=Fk.get(e,b),w=Fk.parent(e,g),C=g[g.length-1];if(oT.isText(x)&&oT.isText(y))y.text+=x.text;else{if(oT.isText(x)||oT.isText(y))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(g,"] to nodes of different interfaces: ").concat(Zk.stringify(x)," ").concat(Zk.stringify(y)));y.children.push(...x.children)}if(w.children.splice(C,1),t)for(var[E,O]of Gk.points(t))t[O]=Uk.transform(E,n);break;case"move_node":var{path:D,newPath:S}=n;if($k.isAncestor(D,S))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(S,"] because the destination is inside itself."));var k=Fk.get(e,D),T=Fk.parent(e,D),j=D[D.length-1];T.children.splice(j,1);var M=$k.transform(D,n),A=Fk.get(e,$k.parent(M)),N=M[M.length-1];if(A.children.splice(N,0,k),t)for(var[P,R]of Gk.points(t))t[R]=Uk.transform(P,n);break;case"remove_node":var{path:B}=n,F=B[B.length-1];if(Fk.parent(e,B).children.splice(F,1),t)for(var[_,L]of Gk.points(t)){var I=Uk.transform(_,n);if(null!=t&&null!=I)t[L]=I;else{var $=void 0,z=void 0;for(var[V,W]of Fk.texts(e)){if(-1!==$k.compare(W,B)){z=[V,W];break}$=[V,W]}var U=!1;$&&z&&(U=$k.equals(z[1],B)?!$k.hasPrevious(z[1]):$k.common($[1],B).length<$k.common(z[1],B).length),$&&!U?(_.path=$[1],_.offset=$[0].text.length):z?(_.path=z[1],_.offset=0):t=null}}break;case"remove_text":var{path:H,offset:q,text:X}=n;if(0===X.length)break;var G=Fk.leaf(e,H),Y=G.text.slice(0,q),K=G.text.slice(q+X.length);if(G.text=Y+K,t)for(var[Z,J]of Gk.points(t))t[J]=Uk.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Fk.get(e,Q);for(var oe in te){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var re=te[oe];null==re?delete ne[oe]:ne[oe]=re}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Gk.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Zk.stringify(ae)," when there is no current selection."));t=iT({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:pe}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var de,fe=Fk.get(e,ce),he=Fk.parent(e,ce),me=ce[ce.length-1];if(oT.isText(fe)){var ve=fe.text.slice(0,ue),ge=fe.text.slice(ue);fe.text=ve,de=iT(iT({},pe),{},{text:ge})}else{var xe=fe.children.slice(0,ue),be=fe.children.slice(ue);fe.children=xe,de=iT(iT({},pe),{},{children:be})}if(he.children.splice(me+1,0,de),t)for(var[ye,we]of Gk.points(t))t[we]=Uk.transform(ye,n)}return t})(e,n,t)}finally{e.children=IS(e.children),e.selection=n?VD(n)?IS(n):n:null}}},sT=["text"],lT=["children"];function cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pT={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Fk.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Ak.end(e,[]):[0],l=!0),null==l&&(l=!1),Gk.isRange(a))if(o||(a=Ak.unhangRange(e,a)),Gk.isCollapsed(a))a=a.anchor;else{var[,u]=Gk.edges(a),p=Ak.pointRef(e,u);wT.delete(e,{at:a}),a=p.unref()}if(Uk.isPoint(a)){null==s&&(s=oT.isText(c)?e=>oT.isText(e):e.isInline(c)?t=>oT.isText(t)||Ak.isInline(e,t):t=>Ak.isBlock(e,t));var[d]=Ak.nodes(e,{at:a.path,match:s,mode:i,voids:r});if(!d)return;var[,f]=d,h=Ak.pathRef(e,f),m=Ak.isEnd(e,a,f);wT.splitNodes(e,{at:a,match:s,mode:i,voids:r});var v=h.unref();a=m?$k.next(v):v}var g=$k.parent(a),x=a[a.length-1];if(r||!Ak.void(e,{at:g})){for(var b of t){var y=g.concat(x);x++,e.apply({type:"insert_node",path:y,node:b}),a=$k.next(a)}if(a=$k.previous(a),l){var w=Ak.end(e,a);w&&wT.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:o="lowest",voids:r=!1}=t,{match:i}=t;if(null==i&&(i=$k.isPath(n)?hT(e,n):t=>Ak.isBlock(e,t)),n){var a=Ak.nodes(e,{at:n,match:i,mode:o,voids:r}),s=Array.from(a,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=Ak.node(e,$k.parent(c)),[p,d]=u,f=c[c.length-1],{length:h}=p.children;if(1===h){var m=$k.next(d);wT.moveNodes(e,{at:c,to:m,voids:r}),wT.removeNodes(e,{at:d,voids:r})}else if(0===f)wT.moveNodes(e,{at:c,to:d,voids:r});else if(f===h-1){var v=$k.next(d);wT.moveNodes(e,{at:c,to:v,voids:r})}else{var g=$k.next(c),x=$k.next(d);wT.splitNodes(e,{at:g,voids:r}),wT.moveNodes(e,{at:c,to:x,voids:r})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{match:n,at:o=e.selection}=t,{hanging:r=!1,voids:i=!1,mode:a="lowest"}=t;if(o){if(null==n)if($k.isPath(o)){var[s]=Ak.parent(e,o);n=e=>s.children.includes(e)}else n=t=>Ak.isBlock(e,t);if(!r&&Gk.isRange(o)&&(o=Ak.unhangRange(e,o)),Gk.isRange(o))if(Gk.isCollapsed(o))o=o.anchor;else{var[,l]=Gk.edges(o),c=Ak.pointRef(e,l);wT.delete(e,{at:o}),o=c.unref(),null==t.at&&wT.select(e,o)}var[u]=Ak.nodes(e,{at:o,match:n,voids:i,mode:a}),p=Ak.previous(e,{at:o,match:n,voids:i,mode:a});if(u&&p){var[d,f]=u,[h,m]=p;if(0!==f.length&&0!==m.length){var v,g,x=$k.next(m),b=$k.common(f,m),y=$k.isSibling(f,m),w=Array.from(Ak.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=Ak.above(e,{at:f,mode:"highest",match:t=>w.includes(t)&&dT(e,t)}),E=C&&Ak.pathRef(e,C[1]);if(oT.isText(d)&&oT.isText(h)){var O=KS(d,sT);g=h.text.length,v=O}else{if(!Dk.isElement(d)||!Dk.isElement(h))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(Zk.stringify(d)," ").concat(Zk.stringify(h)));O=KS(d,lT);g=h.children.length,v=O}y||wT.moveNodes(e,{at:f,to:x,voids:i}),E&&wT.removeNodes(e,{at:E.current,voids:i}),Dk.isElement(h)&&Ak.isEmpty(e,h)||oT.isText(h)&&""===h.text&&0!==m[m.length-1]?wT.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:x,position:g,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){Ak.withoutNormalizing(e,(()=>{var{to:n,at:o=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(o){null==a&&(a=$k.isPath(o)?hT(e,o):t=>Ak.isBlock(e,t));var s=Ak.pathRef(e,n),l=Ak.nodes(e,{at:o,match:a,mode:r,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var u of c){var p=u.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d}),s.current&&$k.isSibling(d,p)&&$k.isAfter(d,p)&&(s.current=$k.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1,mode:r="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$k.isPath(i)?hT(e,i):t=>Ak.isBlock(e,t)),!n&&Gk.isRange(i)&&(i=Ak.unhangRange(e,i));var s=Ak.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Ak.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[p]=Ak.node(e,u);e.apply({type:"remove_node",path:u,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{match:o,at:r=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(r){if(null==o&&(o=$k.isPath(r)?hT(e,r):t=>Ak.isBlock(e,t)),!s&&Gk.isRange(r)&&(r=Ak.unhangRange(e,r)),c&&Gk.isRange(r)){if(Gk.isCollapsed(r)&&Ak.leaf(e,r.anchor)[0].text.length>0)return;var p=Ak.rangeRef(e,r,{affinity:"inward"}),[d,f]=Gk.edges(r),h="lowest"===l?"lowest":"highest",m=Ak.isEnd(e,f,f.path);wT.splitNodes(e,{at:f,match:o,mode:h,voids:u,always:!m});var v=Ak.isStart(e,d,d.path);wT.splitNodes(e,{at:d,match:o,mode:h,voids:u,always:!v}),r=p.unref(),null==n.at&&wT.select(e,r)}for(var[g,x]of(i||(i=(e,t)=>e!==t),Ak.nodes(e,{at:r,match:o,mode:l,voids:u}))){var b={},y={};if(0!==x.length){var w=!1;for(var C in t)"children"!==C&&"text"!==C&&i(t[C],g[C])&&(w=!0,g.hasOwnProperty(C)&&(b[C]=g[C]),a?null!=t[C]&&(y[C]=a(g[C],t[C])):null!=t[C]&&(y[C]=t[C]));w&&e.apply({type:"set_node",path:x,properties:b,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:o=!1}=t,{match:r,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==r&&(r=t=>Ak.isBlock(e,t)),Gk.isRange(i)&&(i=fT(e,i)),$k.isPath(i)){var l=i,c=Ak.point(e,l),[u]=Ak.parent(e,l);r=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var p,d=Ak.pointRef(e,i,{affinity:"backward"});try{var[f]=Ak.nodes(e,{at:i,match:r,mode:n,voids:o});if(!f)return;var h=Ak.void(e,{at:i,mode:"highest"});if(!o&&h){var[m,v]=h;if(Dk.isElement(m)&&e.isInline(m)){var g=Ak.after(e,v);if(!g){var x=$k.next(v);wT.insertNodes(e,{text:""},{at:x,voids:o}),g=Ak.point(e,x)}i=g,s=!0}a=i.path.length-v.length+1,s=!0}p=Ak.pointRef(e,i);var b=i.path.length-a,[,y]=f,w=i.path.slice(0,b),C=0===a?i.offset:i.path[b]+0;for(var[E,O]of Ak.levels(e,{at:w,reverse:!0,voids:o})){var D=!1;if(O.length<y.length||0===O.length||!o&&Ak.isVoid(e,E))break;var S=d.current,k=Ak.isEnd(e,S,O);if(s||!d||!Ak.isEdge(e,S,O)){D=!0;var T=Fk.extractProps(E);e.apply({type:"split_node",path:O,position:C,properties:T})}C=O[O.length-1]+(D||k?1:0)}if(null==t.at){var j=p.current||Ak.end(e,[]);wT.select(e,j)}}finally{var M;d.unref(),null===(M=p)||void 0===M||M.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var o={};for(var r of t)o[r]=null;wT.setNodes(e,o,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:o=!1,voids:r=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=$k.isPath(i)?hT(e,i):t=>Ak.isBlock(e,t)),$k.isPath(i)&&(i=Ak.range(e,i));var s=Gk.isRange(i)?Ak.rangeRef(e,i):null,l=Ak.nodes(e,{at:i,match:a,mode:n,voids:r}),c=Array.from(l,(t=>{var[,n]=t;return Ak.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[i]=Ak.node(e,n),a=Ak.range(e,n);o&&s&&(a=Gk.intersection(s.current,a)),wT.liftNodes(e,{at:a,match:e=>Dk.isAncestor(i)&&i.children.includes(e),voids:r})};for(var p of c)u(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{mode:o="lowest",split:r=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=$k.isPath(s)?hT(e,s):e.isInline(t)?t=>Ak.isInline(e,t)||oT.isText(t):t=>Ak.isBlock(e,t)),r&&Gk.isRange(s)){var[l,c]=Gk.edges(s),u=Ak.rangeRef(e,s,{affinity:"inward"});wT.splitNodes(e,{at:c,match:a,voids:i}),wT.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&wT.select(e,s)}var p=Array.from(Ak.nodes(e,{at:s,match:e.isInline(t)?t=>Ak.isBlock(e,t):e=>Ak.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=Gk.isRange(s)?Gk.intersection(s,Ak.range(e,d)):s;if(f){var h=Array.from(Ak.nodes(e,{at:f,match:a,mode:o,voids:i}));if(h.length>0){var m=function(){var[n]=h,o=h[h.length-1],[,r]=n,[,a]=o;if(0===r.length&&0===a.length)return"continue";var s=$k.equals(r,a)?$k.parent(r):$k.common(r,a),l=Ak.range(e,r,a),c=Ak.node(e,s),[u]=c,p=s.length+1,d=$k.next(a.slice(0,p)),f=uT(uT({},t),{},{children:[]});wT.insertNodes(e,f,{at:d,voids:i}),wT.moveNodes(e,{at:l,match:e=>Dk.isAncestor(u)&&u.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===m)continue}}}}}))}},dT=(e,t)=>{if(Dk.isElement(t)){var n=t;return!!Ak.isVoid(e,t)||1===n.children.length&&dT(e,n.children[0])}return!Ak.isEditor(t)},fT=(e,t)=>{if(Gk.isCollapsed(t))return t.anchor;var[,n]=Gk.edges(t),o=Ak.pointRef(e,n);return wT.delete(e,{at:t}),o.unref()},hT=(e,t)=>{var[n]=Ak.node(e,t);return e=>e===n};function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gT={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:o}=e;if(o)if("anchor"===n)wT.select(e,o.anchor);else if("focus"===n)wT.select(e,o.focus);else if("start"===n){var[r]=Gk.edges(o);wT.select(e,r)}else if("end"===n){var[,i]=Gk.edges(o);wT.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:o=1,unit:r="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Gk.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Gk.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:o,unit:r},u={};if(null==a||"anchor"===a){var p=i?Ak.before(e,s,c):Ak.after(e,s,c);p&&(u.anchor=p)}if(null==a||"focus"===a){var d=i?Ak.before(e,l,c):Ak.after(e,l,c);d&&(u.focus=d)}wT.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=Ak.range(e,t),n)wT.setSelection(e,t);else{if(!Gk.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Zk.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:o}=e,{edge:r="both"}=n;if(o){"start"===r&&(r=Gk.isBackward(o)?"focus":"anchor"),"end"===r&&(r=Gk.isBackward(o)?"anchor":"focus");var{anchor:i,focus:a}=o,s="anchor"===r?i:a;wT.setSelection(e,{["anchor"===r?"anchor":"focus"]:vT(vT({},s),t)})}},setSelection(e,t){var{selection:n}=e,o={},r={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Uk.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Uk.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(o[i]=n[i],r[i]=t[i]);Object.keys(o).length>0&&e.apply({type:"set_selection",properties:o,newProperties:r})}}},xT={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ak.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:o="character",distance:r=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){var l=!1;if(Gk.isRange(a)&&Gk.isCollapsed(a)&&(l=!0,a=a.anchor),Uk.isPoint(a)){var c=Ak.void(e,{at:a,mode:"highest"});if(!i&&c){var[,u]=c;a=u}else{var p={unit:o,distance:r};a={anchor:a,focus:n?Ak.before(e,a,p)||Ak.start(e,[]):Ak.after(e,a,p)||Ak.end(e,[])},s=!0}}if($k.isPath(a))wT.removeNodes(e,{at:a,voids:i});else if(!Gk.isCollapsed(a)){if(!s){var[,d]=Gk.edges(a),f=Ak.end(e,[]);Uk.equals(d,f)||(a=Ak.unhangRange(e,a,{voids:i}))}var[h,m]=Gk.edges(a),v=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:h,voids:i}),g=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:m,voids:i}),x=v&&g&&!$k.equals(v[1],g[1]),b=$k.equals(h.path,m.path),y=i?null:Ak.void(e,{at:h,mode:"highest"}),w=i?null:Ak.void(e,{at:m,mode:"highest"});if(y){var C=Ak.before(e,h);C&&v&&$k.isAncestor(v[1],C.path)&&(h=C)}if(w){var E=Ak.after(e,m);E&&g&&$k.isAncestor(g[1],E.path)&&(m=E)}var O,D=[];for(var S of Ak.nodes(e,{at:a,voids:i})){var[k,T]=S;O&&0===$k.compare(T,O)||(!i&&Ak.isVoid(e,k)||!$k.isCommon(T,h.path)&&!$k.isCommon(T,m.path))&&(D.push(S),O=T)}var j=Array.from(D,(t=>{var[,n]=t;return Ak.pathRef(e,n)})),M=Ak.pointRef(e,h),A=Ak.pointRef(e,m),N="";if(!b&&!y){var P=M.current,[R]=Ak.leaf(e,P),{path:B}=P,{offset:F}=h,_=R.text.slice(F);_.length>0&&(e.apply({type:"remove_text",path:B,offset:F,text:_}),N=_)}if(j.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>wT.removeNodes(e,{at:t,voids:i}))),!w){var L=A.current,[I]=Ak.leaf(e,L),{path:$}=L,z=b?h.offset:0,V=I.text.slice(z,m.offset);V.length>0&&(e.apply({type:"remove_text",path:$,offset:z,text:V}),N=V)}!b&&x&&A.current&&M.current&&wT.mergeNodes(e,{at:A.current,hanging:!0,voids:i}),l&&n&&"character"===o&&N.length>1&&N.match(/[\u0E00-\u0E7F]+/)&&wT.insertText(e,N.slice(0,N.length-r));var W=M.unref(),U=A.unref(),H=n?W||U:U||W;null==t.at&&H&&wT.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{hanging:o=!1,voids:r=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Gk.isRange(i))if(o||(i=Ak.unhangRange(e,i)),Gk.isCollapsed(i))i=i.anchor;else{var[,a]=Gk.edges(i);if(!r&&Ak.void(e,{at:a}))return;var s=Ak.pointRef(e,a);wT.delete(e,{at:i}),i=s.unref()}else $k.isPath(i)&&(i=Ak.start(e,i));if(r||!Ak.void(e,{at:i})){var l=Ak.above(e,{at:i,match:t=>Ak.isInline(e,t),mode:"highest",voids:r});if(l){var[,c]=l;if(Ak.isEnd(e,i,c))i=Ak.after(e,c);else if(Ak.isStart(e,i,c)){i=Ak.before(e,c)}}var u=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:i,voids:r}),[,p]=u,d=Ak.isStart(e,i,p),f=Ak.isEnd(e,i,p),h=d&&f,m=!d||d&&f,v=!f,[,g]=Fk.first({children:t},[]),[,x]=Fk.last({children:t},[]),b=[],y=t=>{var[n,o]=t;return!(0===o.length)&&(!!h||!(m&&$k.isAncestor(o,g)&&Dk.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&$k.isAncestor(o,x)&&Dk.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Fk.nodes({children:t},{pass:y}))y(w)&&b.push(w);var C=[],E=[],O=[],D=!0,S=!1;for(var[k]of b)Dk.isElement(k)&&!e.isInline(k)?(D=!1,S=!0,E.push(k)):D?C.push(k):O.push(k);var[T]=Ak.nodes(e,{at:i,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),[,j]=T,M=Ak.isStart(e,i,j),A=Ak.isEnd(e,i,j),N=Ak.pathRef(e,f&&!O.length?$k.next(p):p),P=Ak.pathRef(e,A?$k.next(j):j);wT.splitNodes(e,{at:i,match:t=>S?Ak.isBlock(e,t):oT.isText(t)||Ak.isInline(e,t),mode:S?"lowest":"highest",always:S&&(!d||C.length>0)&&(!f||O.length>0),voids:r});var R,B=Ak.pathRef(e,!M||M&&A?$k.next(j):j);if(wT.insertNodes(e,C,{at:B.current,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),h&&!C.length&&E.length&&!O.length&&wT.delete(e,{at:p,voids:r}),wT.insertNodes(e,E,{at:N.current,match:t=>Ak.isBlock(e,t),mode:"lowest",voids:r}),wT.insertNodes(e,O,{at:P.current,match:t=>oT.isText(t)||Ak.isInline(e,t),mode:"highest",voids:r}),!n.at)if(O.length>0&&P.current?R=$k.previous(P.current):E.length>0&&N.current?R=$k.previous(N.current):B.current&&(R=$k.previous(B.current)),R){var F=Ak.end(e,R);wT.select(e,F)}B.unref(),N.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ak.withoutNormalizing(e,(()=>{var{voids:o=!1}=n,{at:r=e.selection}=n;if(r){if($k.isPath(r)&&(r=Ak.range(e,r)),Gk.isRange(r))if(Gk.isCollapsed(r))r=r.anchor;else{var i=Gk.end(r);if(!o&&Ak.void(e,{at:i}))return;var a=Gk.start(r),s=Ak.pointRef(e,a),l=Ak.pointRef(e,i);wT.delete(e,{at:r,voids:o});var c=s.unref(),u=l.unref();r=c||u,wT.setSelection(e,{anchor:r,focus:r})}if(o||!Ak.void(e,{at:r})){var{path:p,offset:d}=r;t.length>0&&e.apply({type:"insert_text",path:p,offset:d,text:t})}}}))}};function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function yT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bT(Object(n),!0).forEach((function(t){$S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wT=yT(yT(yT(yT({},aT),pT),gT),xT),CT=function(e){if(e=String(e||""),OT.test(e))return"rtl";if(DT.test(e))return"ltr";return"neutral"},ET="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",OT=new RegExp("^[^"+ET+"]*[֑-߿יִ-﷽ﹰ-ﻼ]"),DT=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*["+ET+"]");var ST=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},kT="object"==typeof he&&he&&he.Object===Object&&he,TT=kT,jT="object"==typeof self&&self&&self.Object===Object&&self,MT=TT||jT||Function("return this")(),AT=MT,NT=function(){return AT.Date.now()},PT=/\s/;var RT=function(e){for(var t=e.length;t--&&PT.test(e.charAt(t)););return t},BT=RT,FT=/^\s+/;var _T=function(e){return e?e.slice(0,BT(e)+1).replace(FT,""):e},LT=MT.Symbol,IT=LT,$T=Object.prototype,zT=$T.hasOwnProperty,VT=$T.toString,WT=IT?IT.toStringTag:void 0;var UT=function(e){var t=zT.call(e,WT),n=e[WT];try{e[WT]=void 0;var o=!0}catch(e){}var r=VT.call(e);return o&&(t?e[WT]=n:delete e[WT]),r},HT=Object.prototype.toString;var qT=UT,XT=function(e){return HT.call(e)},GT=LT?LT.toStringTag:void 0;var YT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":GT&> in Object(e)?qT(e):XT(e)};var KT=function(e){return null!=e&&"object"==typeof e},ZT=YT,JT=KT;var QT=function(e){return"symbol"==typeof e||JT(e)&&"[object Symbol]"==ZT(e)},ej=_T,tj=ST,nj=QT,oj=/^[-+]0x[0-9a-f]+$/i,rj=/^0b[01]+$/i,ij=/^0o[0-7]+$/i,aj=parseInt;var sj=function(e){if("number"==typeof e)return e;if(nj(e))return NaN;if(tj(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tj(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ej(e);var n=rj.test(e);return n||ij.test(e)?aj(e.slice(2),n?2:8):oj.test(e)?NaN:+e},lj=ST,cj=NT,uj=sj,pj=Math.max,dj=Math.min;var fj=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function v(){var e=cj();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-l);return p?dj(n,i-(e-c)):n}(e))}function g(e){return s=void 0,d&&o?f(e):(o=r=void 0,a)}function x(){var e=cj(),n=m(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return h(l);if(p)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=uj(t)||0,lj(n)&&(u=!!n.leading,i=(p="maxWait"in n)?pj(uj(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},x.flush=function(){return void 0===s?a:g(cj())},x},hj=fj,mj=ST;var vj=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return mj(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),hj(e,t,{leading:o,maxWait:t,trailing:r})};function gj(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function xj(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function bj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xj(n.overflowY,t)||xj(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function yj(e,t,n,o,r,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0}function wj(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!gj(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],p=e;gj(p)&&l(p);){if((p=p.parentElement)===c){u.push(p);break}null!=p&&p===document.body&&bj(p)&&!bj(document.documentElement)||null!=p&&bj(p,s)&&u.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,x=v.width,b=v.top,y=v.right,w=v.bottom,C=v.left,E="start"===r||"nearest"===r?b:"end"===r?w:b+g/2,O="center"===i?C+x/2:"end"===i?y:C,D=[],S=0;S<u.length;S++){var k=u[S],T=k.getBoundingClientRect(),j=T.height,M=T.width,A=T.top,N=T.right,P=T.bottom,R=T.left;if("if-needed"===o&&b>=0&&C>=0&&w<=f&&y<=d&&b>=A&&w<=P&&C>=R&&y<=N)return D;var B=getComputedStyle(k),F=parseInt(B.borderLeftWidth,10),_=parseInt(B.borderTopWidth,10),L=parseInt(B.borderRightWidth,10),I=parseInt(B.borderBottomWidth,10),$=0,z=0,V="offsetWidth"in k?k.offsetWidth-k.clientWidth-F-L:0,W="offsetHeight"in k?k.offsetHeight-k.clientHeight-_-I:0;if(c===k)$="start"===r?E:"end"===r?E-f:"nearest"===r?yj(m,m+f,f,_,I,m+E,m+E+g,g):E-f/2,z="start"===i?O:"center"===i?O-d/2:"end"===i?O-d:yj(h,h+d,d,F,L,h+O,h+O+x,x),$=Math.max(0,$+m),z=Math.max(0,z+h);else{$="start"===r?E-A-_:"end"===r?E-P+I+W:"nearest"===r?yj(A,P,j,_,I+W,E,E+g,g):E-(A+j/2)+W/2,z="start"===i?O-R-F:"center"===i?O-(R+M/2)+V/2:"end"===i?O-N+L+V:yj(R,N,M,F,L+V,O,O+x,x);var U=k.scrollLeft,H=k.scrollTop;E+=H-($=Math.max(0,Math.min(H+$,k.scrollHeight-j+W))),O+=U-(z=Math.max(0,Math.min(U+z,k.scrollWidth-M+V)))}D.push({el:k,top:$,left:z})}return D}function Cj(e){return e===Object(e)&&0!==Object.keys(e).length}function Ej(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Cj(t)&&"function"==typeof t.behavior)return t.behavior(n?wj(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:Cj(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(wj(e,o),o.behavior)}}var Oj={};Object.defineProperty(Oj,"__esModule",{value:!0});for(var Dj="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Sj={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Dj?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Tj={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},jj=1;jj<20;jj++)Tj["f"+jj]=111+jj;function Mj(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map((function(e){return Aj(e,t)})),r=function(e){return o.some((function(t){return Nj(t,e)}))};return null==n?r:r(n)}function Aj(e,t){var n=t&&t.byKey,o={},r=(e=e.replace("++","+add")).split("+"),i=r.length;for(var a in Sj)o[Sj[a]]=!1;var s=!0,l=!1,c=void 0;try{for(var u,p=r[Symbol.iterator]();!(s=(u=p.next()).done);s=!0){var d=u.value,f=d.endsWith("?")&&d.length>1;f&&(d=d.slice(0,-1));var h=Rj(d),m=Sj[h];1!==i&&m||(n?o.key=h:o.which=Pj(d)),m&&(o[m]=!f||null)}}catch(e){l=!0,c=e}finally{try{!s&&p.return&&p.return()}finally{if(l)throw c}}return o}function Nj(e,t){for(var n in e){var o=e[n],r=void 0;if(null!=o&&((null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===o&&93===t.which?91:t.which:t[n])||!1!==o)&&r!==o))return!1}return!0}function Pj(e){return e=Rj(e),Tj[e]||e.toUpperCase().charCodeAt(0)}function Rj(e){return e=e.toLowerCase(),e=kj[e]||e}Oj.default=Mj,Oj.isHotkey=Mj,Oj.isCodeHotkey=function(e,t){return Mj(e,t)};var Bj=Oj.isKeyHotkey=function(e,t){return Mj(e,{byKey:!0},t)};function Fj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _j(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Oj.parseHotkey=Aj,Oj.compareHotkey=Nj,Oj.toKeyCode=Pj,Oj.toKeyName=Rj;var Lj=0;class Ij{constructor(){this.id="".concat(Lj++)}}var $j=new WeakMap,zj=new WeakMap,Vj=new WeakMap,Wj=new WeakMap,Uj=new WeakMap,Hj=new WeakMap,qj=new WeakMap,Xj=new WeakMap,Gj=new WeakMap,Yj=new WeakMap,Kj=new WeakMap,Zj=new WeakMap,Jj=new WeakMap,Qj=new WeakMap,eM=new WeakMap,tM=new WeakMap,nM=new WeakMap,oM=new WeakMap,rM=new WeakMap,iM=new WeakMap,aM=new WeakMap,sM=Symbol("placeholder"),lM=Symbol("mark-placeholder"),cM=globalThis.Text,uM=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,pM=e=>dM(e)&&1===e.nodeType,dM=e=>{var t=uM(e);return!!t&&e instanceof t.Node},fM=e=>{var t=e&&e.anchorNode&&uM(e.anchorNode);return!!t&&e instanceof t.Selection},hM=e=>dM(e)&&3===e.nodeType,mM=(e,t,n)=>{for(var o,{childNodes:r}=e,i=r[t],a=t,s=!1,l=!1;(dM(o=i)&&8===o.nodeType||pM(i)&&0===i.childNodes.length||pM(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=r.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=r[a],t=a,a+="forward"===n?1:-1);return[i,t]},vM=(e,t,n)=>{var[o]=mM(e,t,n);return o},gM=e=>{var t="";if(hM(e)&&e.nodeValue)return e.nodeValue;if(pM(e)){for(var n of Array.from(e.childNodes))t+=gM(n);var o=getComputedStyle(e).getPropertyValue("display");"block"!==o&&"list"!==o&&"BR"!==e.tagName||(t+="\n")}return t},xM=/data-slate-fragment="(.+?)"/m,bM=(e,t,n)=>{var{target:o}=t;if(pM(o)&&o.matches('[contentEditable="false"]'))return!1;var{document:r}=BM.getWindow(e);if(r.contains(o))return BM.hasDOMNode(e,o,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var r of t)if(r===o||r.contains(o))return!0;for(var i of n)if(i===o||i.contains(o))return!0}));return!(!i||i===t)&&bM(e,i,n)},yM=parseInt(u.default.version.split(".")[0],10)>=17,wM="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,CM="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),EM="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),OM="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),DM="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),SM="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),kM="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),TM="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jM="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),MM="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),AM="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),NM="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),PM=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),RM=!TM&&!SM&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,BM={isComposing:e=>!!Zj.get(e),getWindow(e){var t=Vj.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=Xj.get(t);return n||(n=new Ij,Xj.set(t,n)),n},findPath(e,t){for(var n=[],o=t;;){var r=zj.get(o);if(null==r){if(Ak.isEditor(o))return n;break}var i=$j.get(o);if(null==i)break;n.unshift(i),o=r}throw new Error("Unable to find the path for Slate node: ".concat(Zk.stringify(t)))},findDocumentOrShadowRoot(e){var t=BM.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!Kj.get(e),isReadOnly:e=>!!Yj.get(e),blur(e){var t=BM.toDOMNode(e,e),n=BM.findDocumentOrShadowRoot(e);Kj.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=BM.toDOMNode(e,e),n=BM.findDocumentOrShadowRoot(e);Kj.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=BM.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&wT.deselect(e)},hasDOMNode(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:r=!1}=o,i=BM.toDOMNode(e,e);try{n=pM(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||r&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=Gj.get(e),o=Ak.isEditor(t)?Wj.get(e):null==n?void 0:n.get(BM.findKey(e,t));if(!o)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Zk.stringify(t)));return o},toDOMPoint(e,t){var n,[o]=Ak.node(e,t.path),r=BM.toDOMNode(e,o);Ak.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,p=l.getAttribute("data-slate-length"),d=a+(null==p?u:parseInt(p,10)),f=i[s+1];if(t.offset===d&&null!=f&&f.hasAttribute("data-slate-mark-placeholder")){var h,m=f.childNodes[0];n=[m instanceof cM?m:f,null!==(h=f.textContent)&&void 0!==h&&h.startsWith("\ufeff")?1:0];break}if(t.offset<=d){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=d}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Zk.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:o}=t,r=Gk.isBackward(t),i=BM.toDOMPoint(e,n),a=Gk.isCollapsed(t)?i:BM.toDOMPoint(e,o),s=BM.getWindow(e).document.createRange(),[l,c]=r?a:i,[u,p]=r?i:a,d=!!(pM(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),f=!!(pM(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,d?1:c),s.setEnd(u,f?1:p),s},toSlateNode(e,t){var n=pM(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var o=n?Hj.get(n):null;if(!o)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return o},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:o,target:r}=t;if(null==n||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=BM.toSlateNode(e,t.target),s=BM.findPath(e,a);if(Ak.isVoid(e,a)){var l=r.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:o-l.top<l.top+l.height-o,u=Ak.point(e,s,{edge:c?"start":"end"}),p=c?Ak.before(e,u):Ak.after(e,u);if(p)return Ak.range(e,p)}var{document:d}=BM.getWindow(e);if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,o);else{var f=d.caretPositionFromPoint(n,o);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return BM.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:o,suppressThrow:r}=n,[i,a]=o?t:(e=>{var[t,n]=e;if(pM(t)&&t.childNodes.length){var o=n===t.childNodes.length,r=o?n-1:n;for([t,r]=mM(t,r,o?"backward":"forward"),o=r<n;pM(t)&&t.childNodes.length;){var i=o?t.childNodes.length-1:0;t=vM(t,i,o?"backward":"forward")}n=o&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,p,d=BM.toDOMNode(e,e),f=s.closest('[data-slate-void="true"]'),h=f&&d.contains(f)?f:null,m=s.closest("[data-slate-leaf]"),v=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var g=BM.getWindow(e).document.createRange();g.setStart(l,0),g.setEnd(i,a);var x=g.cloneContents();[...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))].forEach((e=>{EM&&!o&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=x.textContent.length,v=l}}else if(h){for(var b=h.querySelectorAll("[data-slate-leaf]"),y=0;y<b.length;y++){var w=b[y];if(BM.hasDOMNode(e,w)){m=w;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(v=m).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}v&&c===v.textContent.length&&EM&&"z"===v.getAttribute("data-slate-zero-width")&&null!==(u=v.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||OM&&null!==(p=v.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&c--}if(EM&&!l&&!o){var C=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(C&&BM.hasDOMNode(e,C,{editable:!0})){var E=BM.toSlateNode(e,C),{path:O,offset:D}=Ak.start(e,BM.findPath(e,E));return C.querySelector("[data-slate-leaf]")||(D=a),{path:O,offset:D}}}if(!l){if(r)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var S=BM.toSlateNode(e,l);return{path:BM.findPath(e,S),offset:c}},toSlateRange(e,t,n){var o,r,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((fM(t)?t.anchorNode:t.startContainer)&&(fM(t)?(o=t.anchorNode,r=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=kM&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(o=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==o||null==i||null==r||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=BM.toSlatePoint(e,[o,r],{exactMatch:l,suppressThrow:c});if(!u)return null;var p=s?u:BM.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!p)return null;var d={anchor:u,focus:p};return Gk.isExpanded(d)&&Gk.isForward(d)&&pM(i)&&Ak.void(e,{at:d.focus,mode:"highest"})&&(d=Ak.unhangRange(e,d,{voids:!0})),d},hasRange(e,t){var{anchor:n,focus:o}=t;return Ak.hasPath(e,n.path)&&Ak.hasPath(e,o.path)},androidScheduleFlush(e){var t;null===(t=eM.get(e))||void 0===t||t()},androidPendingDiffs:e=>oM.get(e)},FM=PM?n.useLayoutEffect:n.useEffect,_M=["anchor","focus"],LM=["anchor","focus"],IM=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>t.hasOwnProperty(n)&&e[n]===t[n])),$M=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var o=e[n],r=t[n],i=_j(o,_M),a=_j(r,LM);if(!Gk.equals(o,r)||o[sM]!==r[sM]||!IM(i,a))return!1}return!0},zM=e=>{var{isLast:t,leaf:n,parent:o,text:r}=e,i=HM(),a=BM.findPath(i,r),s=$k.parent(a),l=!0===n[lM];return i.isVoid(o)?u.default.createElement(WM,{length:Fk.string(o).length}):""!==n.text||o.children[o.children.length-1]!==r||i.isInline(o)||""!==Ak.string(i,s)?""===n.text?u.default.createElement(WM,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?u.default.createElement(VM,{isTrailing:!0,text:n.text}):u.default.createElement(VM,{text:n.text}):u.default.createElement(WM,{isLineBreak:!0,isMarkPlaceholder:l})},VM=e=>{var{text:t,isTrailing:o=!1}=e,r=n.useRef(null),i=()=>"".concat(null!=t?t:"").concat(o?"\n":"");return FM((()=>{var e=i();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?u.default.createElement("span",{"data-slate-string":!0,ref:r}):u.default.createElement("span",{"data-slate-string":!0,ref:r},i())},WM=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:o=!1}=e,r={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return o&&(r["data-slate-mark-placeholder"]=!0),u.default.createElement("span",Object.assign({},r),EM&&n?null:"\ufeff",n?u.default.createElement("br",null):null)},UM=n.createContext(null),HM=()=>{var e=n.useContext(UM);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},qM=e=>{var{leaf:t,isLast:o,text:r,parent:i,renderPlaceholder:a,renderLeaf:s=(e=>u.default.createElement(GM,Object.assign({},e)))}=e,l=n.useRef(null),c=HM();n.useEffect((()=>{var e=null==l?void 0:l.current,t=BM.toDOMNode(c,c);if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),Uj.set(c,e),()=>{t.style.minHeight="auto",Uj.delete(c)}}),[l,t]);var p=u.default.createElement(zM,{isLast:o,leaf:t,parent:i,text:r});if(t[sM]){var d={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=u.default.createElement(u.default.Fragment,null,a(d),p)}return s({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},XM=u.default.memo(qM,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&oT.equals(t.leaf,e.leaf)&&t.leaf[sM]===e.leaf[sM])),GM=e=>{var{attributes:t,children:n}=e;return u.default.createElement("span",Object.assign({},t),n)},YM=e=>{for(var{decorations:t,isLast:o,parent:r,renderPlaceholder:i,renderLeaf:a,text:s}=e,l=HM(),c=n.useRef(null),p=oT.decorations(s,t),d=BM.findKey(l,s),f=[],h=0;h<p.length;h++){var m=p[h];f.push(u.default.createElement(XM,{isLast:o&&h===p.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:i,leaf:m,text:s,parent:r,renderLeaf:a}))}return FM((()=>{var e=Gj.get(l);c.current?(null==e||e.set(d,c.current),qj.set(s,c.current),Hj.set(c.current,s)):(null==e||e.delete(d),qj.delete(s))})),u.default.createElement("span",{"data-slate-node":"text",ref:c},f)},KM=u.default.memo(YM,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&$M(t.decorations,e.decorations))),ZM=e=>{var{decorations:t,element:o,renderElement:r=(e=>u.default.createElement(QM,Object.assign({},e))),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=HM(),c=rA(),p=l.isInline(o),d=BM.findKey(l,o),f=n.useCallback((e=>{var t=Gj.get(l);e?(null==t||t.set(d,e),qj.set(o,e),Hj.set(e,o)):(null==t||t.delete(d),qj.delete(o))}),[l,d,o]),h=nA({decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:f};if(p&&(m["data-slate-inline"]=!0),!p&&Ak.hasInlines(l,o)){var v=Fk.string(o),g=CT(v);"rtl"===g&&(m.dir=g)}if(Ak.isVoid(l,o)){m["data-slate-void"]=!0,!c&&p&&(m.contentEditable=!1);var x=p?"span":"div",[[b]]=Fk.texts(o);h=u.default.createElement(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},u.default.createElement(KM,{renderPlaceholder:i,decorations:[],isLast:!1,parent:o,text:b})),$j.set(b,0),zj.set(b,o)}return r({attributes:m,children:h,element:o})},JM=u.default.memo(ZM,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&$M(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Gk.equals(e.selection,t.selection)))),QM=e=>{var{attributes:t,children:n,element:o}=e,r=HM().isInline(o)?"span":"div";return u.default.createElement(r,Object.assign({},t,{style:{position:"relative"}}),n)},eA=n.createContext((()=>[])),tA=n.createContext(!1),nA=e=>{for(var{decorations:t,node:o,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=n.useContext(eA),c=HM(),p=BM.findPath(c,o),d=[],f=Dk.isElement(o)&&!c.isInline(o)&&Ak.hasInlines(c,o),h=0;h<o.children.length;h++){var m=p.concat(h),v=o.children[h],g=BM.findKey(c,v),x=Ak.range(c,m),b=s&&Gk.intersection(x,s),y=l([v,m]);for(var w of t){var C=Gk.intersection(w,x);C&&y.push(C)}Dk.isElement(v)?d.push(u.default.createElement(tA.Provider,{key:"provider-".concat(g.id),value:!!b},u.default.createElement(JM,{decorations:y,element:v,key:g.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:b}))):d.push(u.default.createElement(KM,{decorations:y,key:g.id,isLast:f&&h===o.children.length-1,parent:o,renderPlaceholder:i,renderLeaf:a,text:v})),$j.set(v,h),zj.set(v,o)}return d},oA=n.createContext(!1),rA=()=>n.useContext(oA),iA=n.createContext(null),aA={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},sA={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},lA={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},cA=e=>{var t=aA[e],n=sA[e],o=lA[e],r=t&&Bj(t),i=n&&Bj(n),a=o&&Bj(o);return e=>!(!r||!r(e))||(!!(CM&&i&&i(e))||!(CM||!a||!a(e)))},uA={isBold:cA("bold"),isCompose:cA("compose"),isMoveBackward:cA("moveBackward"),isMoveForward:cA("moveForward"),isDeleteBackward:cA("deleteBackward"),isDeleteForward:cA("deleteForward"),isDeleteLineBackward:cA("deleteLineBackward"),isDeleteLineForward:cA("deleteLineForward"),isDeleteWordBackward:cA("deleteWordBackward"),isDeleteWordForward:cA("deleteWordForward"),isExtendBackward:cA("extendBackward"),isExtendForward:cA("extendForward"),isExtendLineBackward:cA("extendLineBackward"),isExtendLineForward:cA("extendLineForward"),isItalic:cA("italic"),isMoveLineBackward:cA("moveLineBackward"),isMoveLineForward:cA("moveLineForward"),isMoveWordBackward:cA("moveWordBackward"),isMoveWordForward:cA("moveWordForward"),isRedo:cA("redo"),isSoftBreak:cA("insertSoftBreak"),isSplitBlock:cA("splitBlock"),isTransposeCharacter:cA("transposeCharacter"),isUndo:cA("undo")},pA={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class dA extends n.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,pA)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],o=()=>{n=[]};return{registerMutations:o=>{if(t.current){var r=o.filter((t=>bM(e,t,o)));n.push(...r)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),o()},clear:o}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,o,r=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=r&&r.length&&(null===(o=this.manager)||void 0===o||o.registerMutations(r));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}dA.contextType=UM;var fA=EM?dA:e=>{var{children:t}=e;return u.default.createElement(u.default.Fragment,null,t)};function hA(e,t){var{path:n,diff:o}=t;if(!Ak.hasPath(e,n))return!1;var r=Fk.get(e,n);if(!oT.isText(r))return!1;if(o.start!==r.text.length||0===o.text.length)return r.text.slice(o.start,o.start+o.text.length)===o.text;var i=$k.next(n);if(!Ak.hasPath(e,i))return!1;var a=Fk.get(e,i);return oT.isText(a)&&a.text.startsWith(o.text)}function mA(e,t){var{start:n,end:o,text:r}=t,i=e.slice(n,o),a=function(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)if(e.charAt(o)!==t.charAt(o))return o;return n}(i,r),s=function(e,t,n){for(var o=Math.min(e.length,t.length,n),r=0;r<o;r++)if(e.charAt(e.length-r-1)!==t.charAt(t.length-r-1))return r;return o}(i,r,Math.min(i.length-a,r.length-a)),l={start:n+a,end:o-s,text:r.slice(a,r.length-s)};return l.start===l.end&&0===l.text.length?null:l}function vA(e,t,n){var o=Math.min(t.start,n.start),r=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-r),s=i.slice(o,a);return mA(e,{start:o,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function gA(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function xA(e,t){var{path:n,offset:o}=t;if(!Ak.hasPath(e,n))return null;var r=Fk.get(e,n);if(!oT.isText(r))return null;var i=Ak.above(e,{match:t=>Ak.isBlock(e,t),at:n});if(!i)return null;for(;o>r.text.length;){var a=Ak.next(e,{at:n,match:oT.isText});if(!a||!$k.isDescendant(a[1],i[1]))return null;o-=r.text.length,r=a[0],n=a[1]}return{path:n,offset:o}}function bA(e,t){var n=xA(e,t.anchor);if(!n)return null;if(Gk.isCollapsed(t))return{anchor:n,focus:n};var o=xA(e,t.focus);return o?{anchor:n,focus:o}:null}function yA(e,t,n){var o=oM.get(e),r=null==o?void 0:o.find((e=>{var{path:n}=e;return $k.equals(n,t.path)}));if(!r||t.offset<=r.diff.start)return Uk.transform(t,n,{affinity:"backward"});var{diff:i}=r;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=Uk.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=Uk.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&$k.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function wA(e,t,n){var o=yA(e,t.anchor,n);if(!o)return null;if(Gk.isCollapsed(t))return{anchor:o,focus:o};var r=yA(e,t.focus,n);return r?{anchor:o,focus:r}:null}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OA(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:o}=e,r=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=iM.get(t);if(iM.delete(t),e){var{selection:n}=t,o=bA(t,e);!o||n&&Gk.equals(o,n)||wT.select(t,o)}},p=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),v()||m()){r||(r=!0,setTimeout((()=>r=!1))),m()&&(r="action");var i=t.selection&&Ak.rangeRef(t,t.selection,{affinity:"forward"});nM.set(t,t.marks),rM.get(t),oM.get(t);for(var l,p=!(null===(e=oM.get(t))||void 0===e||!e.length);l=null===(d=oM.get(t))||void 0===d?void 0:d[0];){var d,f,h=tM.get(t);void 0!==h&&(tM.delete(t),t.marks=h),h&&!1===c&&(c=null);var g=gA(l);t.selection&&Gk.equals(t.selection,g)||wT.select(t,g),l.diff.text?Ak.insertText(t,l.diff.text):Ak.deleteFragment(t),oM.set(t,null===(f=oM.get(t))||void 0===f?void 0:f.filter((e=>{var{id:t}=e;return t!==l.id}))),hA(t,l)||(p=!1,rM.delete(t),nM.delete(t),r="action",iM.delete(t),n.cancel(),o.cancel(),null==i||i.unref())}var x=null==i?void 0:i.unref();if(!x||iM.get(t)||t.selection&&Gk.equals(x,t.selection)||wT.select(t,x),m())(()=>{var e=rM.get(t);if(rM.delete(t),e){if(e.at){var n=Uk.isPoint(e.at)?xA(t,e.at):bA(t,e.at);if(!n)return;var o=Ak.range(t,n);t.selection&&Gk.equals(t.selection,o)||wT.select(t,n)}e.run()}})();else{p&&n(),n.flush(),o.flush(),u();var b=nM.get(t);nM.delete(t),void 0!==b&&(t.marks=b,t.onChange())}}else u()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Uj.get(t);n&&(v()||e?n.style.display="none":n.style.removeProperty("display"))},f=(e,n)=>{var o,r=null!==(o=oM.get(t))&&void 0!==o?o:[];oM.set(t,r);var i=Fk.leaf(t,e),a=r.findIndex((t=>$k.equals(t.path,e)));if(a<0)return mA(i.text,n)&&r.push({path:e,diff:n,id:l++}),void d();var s=vA(i.text,r[a].diff,n);if(!s)return r.splice(a,1),void d();r[a]=EA(EA({},r[a]),{},{diff:s})},h=function(e){var{at:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,iM.delete(t),n.cancel(),o.cancel(),m()&&p(),rM.set(t,{at:r,run:e}),s=setTimeout(p)},m=()=>!!rM.get(t),v=()=>{var e;return!(null===(e=oM.get(t))||void 0===e||!e.length)},g=()=>{m()||(s=setTimeout(p))};return{flush:p,scheduleFlush:g,hasPendingDiffs:v,hasPendingAction:m,hasPendingChanges:()=>m()||v(),isFlushing:()=>r,handleUserSelect:e=>{iM.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var o=!n||!$k.equals(n.anchor.path,e.anchor.path),r=!n||!$k.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(o&&c||r)&&(c=!1),!o&&v()||(a=setTimeout(p,200))}},handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{Zj.set(t,!1),p()}),25)},handleCompositionStart:e=>{Zj.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:o}=e,r=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==o&&"insertCompositionText"!==o&&(c=!1);var[s]=e.getTargetRanges();s&&(r=BM.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=BM.getWindow(t).getSelection();if(!r&&l&&(s=l,r=BM.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),r=null!==(n=r)&&void 0!==n?n:t.selection){if(Gk.isExpanded(r)&&o.startsWith("delete")){var[u,p]=Gk.edges(r);if(Fk.leaf(t,u.path).text.length===u.offset&&0===p.offset){var d=Ak.next(t,{at:u.path,match:oT.isText});d&&$k.equals(d[1],p.path)&&(r={anchor:p,focus:p})}}if(Gk.isExpanded(r)&&o.startsWith("delete")){if($k.equals(r.anchor.path,r.focus.path)){var[m,v]=Gk.edges(r);return f(r.anchor.path,{text:"",end:v.offset,start:m.offset})}var x=o.endsWith("Backward")?"backward":"forward";return h((()=>Ak.deleteFragment(t,{direction:x})),{at:r})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h((()=>Ak.deleteFragment(t)),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:b}=r;if(Gk.isCollapsed(r)){var y=Fk.leaf(t,b.path);if(b.offset<y.text.length)return f(b.path,{text:"",start:b.offset,end:b.offset+1})}return h((()=>Ak.deleteForward(t)),{at:r});case"deleteContentBackward":var w,{anchor:C}=r;return(fM(s)?s.isCollapsed:!(null===(w=s)||void 0===w||!w.collapsed))&&Gk.isCollapsed(r)&&C.offset>0?f(C.path,{text:"",start:C.offset-1,end:C.offset}):h((()=>Ak.deleteBackward(t)),{at:r});case"deleteEntireSoftLine":return h((()=>{Ak.deleteBackward(t,{unit:"line"}),Ak.deleteForward(t,{unit:"line"})}),{at:r});case"deleteHardLineBackward":return h((()=>Ak.deleteBackward(t,{unit:"block"})),{at:r});case"deleteSoftLineBackward":return h((()=>Ak.deleteBackward(t,{unit:"line"})),{at:r});case"deleteHardLineForward":return h((()=>Ak.deleteForward(t,{unit:"block"})),{at:r});case"deleteSoftLineForward":return h((()=>Ak.deleteForward(t,{unit:"line"})),{at:r});case"deleteWordBackward":return h((()=>Ak.deleteBackward(t,{unit:"word"})),{at:r});case"deleteWordForward":return h((()=>Ak.deleteForward(t,{unit:"word"})),{at:r});case"insertLineBreak":return h((()=>Ak.insertSoftBreak(t)),{at:r});case"insertParagraph":return h((()=>Ak.insertBreak(t)),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return h((()=>BM.insertData(t,i)),{at:r});if("string"==typeof i&&i.includes("\n"))return h((()=>Ak.insertSoftBreak(t)),{at:Gk.end(r)});var E=null!=i?i:"";if(tM.get(t)&&(E=E.replace("\ufeff","")),$k.equals(r.anchor.path,r.focus.path)){var[O,D]=Gk.edges(r),S={start:O.offset,end:D.offset,text:E};if(E&&c&&"insertCompositionText"===o){var k=c.start+c.text.search(/\S|$/);S.start+S.text.search(/\S|$/)===k+1&&S.end===c.start+c.text.length?(S.start-=1,c=null,g()):c=!1}else c="insertText"===o&&(null===c?S:!(!c||!Gk.isCollapsed(r)||c.end+c.text.length!==O.offset)&&EA(EA({},c),{},{text:c.text+E}));return void f(O.path,S)}return h((()=>Ak.insertText(t,E)),{at:r})}}},handleKeyDown:e=>{v()||(d(!0),setTimeout(d))},handleDomMutations:e=>{var n;v()||m()||e.some((n=>bM(t,n,e)))&&(null===(n=aM.get(t))||void 0===n||n())},handleInput:()=>{!m()&&v()||p()}}}var DA=["node"];function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var kA={subtree:!0,childList:!0,characterData:!0};function TA(e){var{node:t}=e,o=_j(e,DA);if(!EM)return null;var r,i=HM(),a=(r=n.useRef(!1),n.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[s]=n.useState((()=>OA(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:i},o))));return function(e,t,o){var[r]=n.useState((()=>new MutationObserver(t)));FM((()=>{r.takeRecords()})),n.useEffect((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,o),()=>r.disconnect()}),[])}(t,s.handleDomMutations,kA),eM.set(i,s.scheduleFlush),a&&s.flush(),s}var jA=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],MA=["text"];function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function NA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var PA=e=>u.default.createElement(u.default.Fragment,null,nA(e)),RA=e=>{var{autoFocus:t,decorate:o=FA,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:l,renderPlaceholder:c=(e=>u.default.createElement(BA,Object.assign({},e))),scrollSelectionIntoView:p=_A,style:d={},as:f="div"}=e,h=_j(e,jA),m=(()=>{var e=n.useContext(iA);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[v,g]=n.useState(!1),x=n.useRef(null),b=n.useRef([]),{onUserInput:y,receivedUserInput:w}=function(){var e=HM(),t=n.useRef(!1),o=n.useRef(0),r=n.useCallback((()=>{if(!t.current){t.current=!0;var n=BM.getWindow(e);n.cancelAnimationFrame(o.current),o.current=n.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return n.useEffect((()=>()=>cancelAnimationFrame(o.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,C]=n.useReducer((e=>e+1),0);aM.set(m,C),Yj.set(m,a);var E=n.useMemo((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);n.useEffect((()=>{x.current&&t&&x.current.focus()}),[t]);var O=n.useCallback(vj((()=>{if((EM||!BM.isComposing(m))&&(!E.isUpdatingSelection||null!=S&&S.isFlushing())&&!E.isDraggingInternally){var e=BM.findDocumentOrShadowRoot(m),{activeElement:t}=e,n=BM.toDOMNode(m,m),o=e.getSelection();if(t===n?(E.latestElement=t,Kj.set(m,!0)):Kj.delete(m),!o)return wT.deselect(m);var{anchorNode:r,focusNode:i}=o,s=IA(m,r)||$A(m,r),l=IA(m,i)||$A(m,i);if(s&&l){var c=BM.toSlateRange(m,o,{exactMatch:!1,suppressThrow:!0});c&&(BM.isComposing(m)||null!=S&&S.hasPendingChanges()||null!=S&&S.isFlushing()?null==S||S.handleUserSelect(c):wT.select(m,c))}!a||s&&l||wT.deselect(m)}}),100),[a]),D=n.useMemo((()=>fj(O,0)),[O]),S=TA({node:x,onDOMSelectionChange:O,scheduleOnDOMSelectionChange:D});FM((()=>{var e;x.current&&(e=uM(x.current))?(Vj.set(m,e),Wj.set(m,x.current),qj.set(m,x.current),Hj.set(x.current,m)):qj.delete(m);var{selection:t}=m,n=BM.findDocumentOrShadowRoot(m).getSelection();if(n&&BM.isFocused(m)&&(null==S||!S.hasPendingAction())){var o=e=>{var o="None"!==n.type;if(t||o){var r=Wj.get(m),i=!1;if(r.contains(n.anchorNode)&&r.contains(n.focusNode)&&(i=!0),o&&i&&t&&!e){var a=BM.toSlateRange(m,n,{exactMatch:!0,suppressThrow:!0});if(a&&Gk.equals(a,t)){var s;if(!E.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||BM.hasRange(m,t)){E.isUpdatingSelection=!0;var c=t&&BM.toDOMRange(m,t);return c?(Gk.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p(m,c)):n.removeAllRanges(),c}m.selection=BM.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!0})}},r=o(),i="action"===(null==S?void 0:S.isFlushing());if(EM&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{BM.toDOMNode(m,m).focus(),o(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),E.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{r&&OM&&BM.toDOMNode(m,m).focus();E.isUpdatingSelection=!1}))}}));var k=n.useCallback((e=>{if(y(),!a&&IA(m,e.target)&&!VA(e,r)){var t;if(S)return S.handleDOMBeforeInput(e);D.flush(),O.flush();var{selection:n}=m,{inputType:o}=e,i=e.dataTransfer||e.data||void 0,s="insertCompositionText"===o||"deleteCompositionText"===o;if(s&&BM.isComposing(m))return;var l=!1;if("insertText"===o&&n&&Gk.isCollapsed(n)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==n.anchor.offset){var c,u;l=!0,m.marks&&(l=!1);var{anchor:p}=n,[d,f]=BM.toDOMPoint(m,p),h=null===(c=d.parentElement)||void 0===c?void 0:c.closest("a"),v=BM.getWindow(m);if(l&&h&&BM.hasDOMNode(m,h)){var x,w=null==v?void 0:v.document.createTreeWalker(h,NodeFilter.SHOW_TEXT).lastChild();w===d&&(null===(x=w.textContent)||void 0===x?void 0:x.length)===f&&(l=!1)}if(l&&d.parentElement&&"pre"===(null==v||null===(u=v.getComputedStyle(d.parentElement))||void 0===u?void 0:u.whiteSpace)){var C=Ak.above(m,{at:p.path,match:e=>Ak.isBlock(m,e)});C&&Fk.string(C[0]).includes("\t")&&(l=!1)}}if(!o.startsWith("delete")||o.startsWith("deleteBy")){var[E]=e.getTargetRanges();if(E){var k=BM.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!1});if(!n||!Gk.equals(n,k)){l=!1;var T=!s&&m.selection&&Ak.rangeRef(m,m.selection);wT.select(m,k),T&&Jj.set(m,T)}}}if(s)return;if(l||e.preventDefault(),n&&Gk.isExpanded(n)&&o.startsWith("delete")){var j=o.endsWith("Backward")?"backward":"forward";return void Ak.deleteFragment(m,{direction:j})}switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ak.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":Ak.deleteForward(m);break;case"deleteContentBackward":Ak.deleteBackward(m);break;case"deleteEntireSoftLine":Ak.deleteBackward(m,{unit:"line"}),Ak.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":Ak.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":Ak.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":Ak.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":Ak.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":Ak.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":Ak.deleteForward(m,{unit:"word"});break;case"insertLineBreak":Ak.insertSoftBreak(m);break;case"insertParagraph":Ak.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===o&&BM.isComposing(m)&&(g(!1),Zj.set(m,!1)),"DataTransfer"===(null==i?void 0:i.constructor.name)?BM.insertData(m,i):"string"==typeof i&&(l?b.current.push((()=>Ak.insertText(m,i))):Ak.insertText(m,i))}var M=null===(t=Jj.get(m))||void 0===t?void 0:t.unref();Jj.delete(m),!M||m.selection&&Gk.equals(m.selection,M)||wT.select(m,M)}}),[a,r]);FM((()=>(x.current&&RM&&x.current.addEventListener("beforeinput",k),()=>{x.current&&RM&&x.current.removeEventListener("beforeinput",k)})),[k]),FM((()=>{var e=BM.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var T=o([m,[]]);if(i&&1===m.children.length&&1===Array.from(Fk.texts(m)).length&&""===Fk.string(m)&&!v){var j=Ak.start(m,[]);T.push({[sM]:!0,placeholder:i,anchor:j,focus:j})}var{marks:M}=m;if(E.hasMarkPlaceholder=!1,m.selection&&Gk.isCollapsed(m.selection)&&M){var{anchor:A}=m.selection,N=Fk.leaf(m,A.path),P=_j(N,MA);if(!oT.equals(N,M,{loose:!0})){E.hasMarkPlaceholder=!0;var R=Object.fromEntries(Object.keys(P).map((e=>[e,null])));T.push(NA(NA(NA({[lM]:!0},R),M),{},{anchor:A,focus:A}))}}return n.useEffect((()=>{setTimeout((()=>{var{selection:e}=m;if(e){var{anchor:t}=e,n=Fk.leaf(m,t.path);if(M&&!oT.equals(n,M,{loose:!0}))return void tM.set(m,M)}tM.delete(m)}))})),u.default.createElement(oA.Provider,{value:a},u.default.createElement(eA.Provider,{value:o},u.default.createElement(fA,{node:x,receivedUserInput:w},u.default.createElement(f,Object.assign({role:a?void 0:"textbox","aria-multiline":!a||void 0},h,{spellCheck:!(!RM&&PM)&&h.spellCheck,autoCorrect:RM||!PM?h.autoCorrect:"false",autoCapitalize:RM||!PM?h.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:x,style:NA({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:n.useCallback((e=>{if(!RM&&!a&&!zA(e,h.onBeforeInput)&&IA(m,e.target)&&(e.preventDefault(),!BM.isComposing(m))){var t=e.data;Ak.insertText(m,t)}}),[a]),onInput:n.useCallback((e=>{if(S)S.handleInput();else{for(var t of b.current)t();b.current=[]}}),[]),onBlur:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&IA(m,e.target)&&!zA(e,h.onBlur)){var t=BM.findDocumentOrShadowRoot(m);if(E.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===BM.toDOMNode(m,m)||pM(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&dM(n)&&BM.hasDOMNode(m,n)){var o=BM.toSlateNode(m,n);if(Dk.isElement(o)&&!m.isVoid(o))return}if(DM){var r=t.getSelection();null==r||r.removeAllRanges()}Kj.delete(m)}}}}),[a,h.onBlur]),onClick:n.useCallback((e=>{if(LA(m,e.target)&&!zA(e,h.onClick)&&dM(e.target)){var t=BM.toSlateNode(m,e.target),n=BM.findPath(m,t);if(!Ak.hasPath(m,n)||Fk.get(m,n)!==t)return;if(3===e.detail&&n.length>=1){var o=n;if(!Ak.isBlock(m,t)){var r,i=Ak.above(m,{match:e=>Ak.isBlock(m,e),at:n});o=null!==(r=null==i?void 0:i[1])&&void 0!==r?r:n.slice(0,1)}var s=Ak.range(m,o);return void wT.select(m,s)}if(a)return;var l=Ak.start(m,n),c=Ak.end(m,n),u=Ak.void(m,{at:l}),p=Ak.void(m,{at:c});if(u&&p&&$k.equals(u[1],p[1])){var d=Ak.range(m,l);wT.select(m,d)}}}),[a,h.onClick]),onCompositionEnd:n.useCallback((e=>{if(IA(m,e.target)){if(BM.isComposing(m)&&(g(!1),Zj.set(m,!1)),null==S||S.handleCompositionEnd(e),zA(e,h.onCompositionEnd)||EM)return;if(!DM&&!jM&&!wM&&!MM&&!NM&&!AM&&e.data){var t=tM.get(m);tM.delete(m),void 0!==t&&(nM.set(m,m.marks),m.marks=t),Ak.insertText(m,e.data);var n=nM.get(m);nM.delete(m),void 0!==n&&(m.marks=n)}}}),[h.onCompositionEnd]),onCompositionUpdate:n.useCallback((e=>{IA(m,e.target)&&!zA(e,h.onCompositionUpdate)&&(BM.isComposing(m)||(g(!0),Zj.set(m,!0)))}),[h.onCompositionUpdate]),onCompositionStart:n.useCallback((e=>{if(IA(m,e.target)){if(null==S||S.handleCompositionStart(e),zA(e,h.onCompositionStart)||EM)return;g(!0);var{selection:t}=m;if(t){if(Gk.isExpanded(t))return void Ak.deleteFragment(m);var n=Ak.above(m,{match:e=>Ak.isInline(m,e),mode:"highest"});if(n){var[,o]=n;if(Ak.isEnd(m,t.anchor,o)){var r=Ak.after(m,o);wT.setSelection(m,{anchor:r,focus:r})}}}}}),[h.onCompositionStart]),onCopy:n.useCallback((e=>{IA(m,e.target)&&!zA(e,h.onCopy)&&(e.preventDefault(),BM.setFragmentData(m,e.clipboardData,"copy"))}),[h.onCopy]),onCut:n.useCallback((e=>{if(!a&&IA(m,e.target)&&!zA(e,h.onCut)){e.preventDefault(),BM.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(Gk.isExpanded(t))Ak.deleteFragment(m);else{var n=Fk.parent(m,t.anchor.path);Ak.isVoid(m,n)&&wT.delete(m)}}}),[a,h.onCut]),onDragOver:n.useCallback((e=>{if(LA(m,e.target)&&!zA(e,h.onDragOver)){var t=BM.toSlateNode(m,e.target);Ak.isVoid(m,t)&&e.preventDefault()}}),[h.onDragOver]),onDragStart:n.useCallback((e=>{if(!a&&LA(m,e.target)&&!zA(e,h.onDragStart)){var t=BM.toSlateNode(m,e.target),n=BM.findPath(m,t);if(Ak.isVoid(m,t)||Ak.void(m,{at:n,voids:!0})){var o=Ak.range(m,n);wT.select(m,o)}E.isDraggingInternally=!0,BM.setFragmentData(m,e.dataTransfer,"drag")}}),[a,h.onDragStart]),onDrop:n.useCallback((e=>{if(!a&&LA(m,e.target)&&!zA(e,h.onDrop)){e.preventDefault();var t=m.selection,n=BM.findEventRange(m,e),o=e.dataTransfer;wT.select(m,n),E.isDraggingInternally&&(!t||Gk.equals(t,n)||Ak.void(m,{at:n,voids:!0})||wT.delete(m,{at:t})),BM.insertData(m,o),BM.isFocused(m)||BM.focus(m)}E.isDraggingInternally=!1}),[a,h.onDrop]),onDragEnd:n.useCallback((e=>{!a&&E.isDraggingInternally&&h.onDragEnd&&LA(m,e.target)&&h.onDragEnd(e),E.isDraggingInternally=!1}),[a,h.onDragEnd]),onFocus:n.useCallback((e=>{if(!a&&!E.isUpdatingSelection&&IA(m,e.target)&&!zA(e,h.onFocus)){var t=BM.toDOMNode(m,m),n=BM.findDocumentOrShadowRoot(m);if(E.latestElement=n.activeElement,OM&&e.target!==t)return void t.focus();Kj.set(m,!0)}}),[a,h.onFocus]),onKeyDown:n.useCallback((e=>{if(!a&&IA(m,e.target)){null==S||S.handleKeyDown(e);var{nativeEvent:t}=e;if(BM.isComposing(m)&&!1===t.isComposing&&(Zj.set(m,!1),g(!1)),zA(e,h.onKeyDown)||BM.isComposing(m))return;var{selection:n}=m,o=m.children[null!==n?n.focus.path[0]:0],r="rtl"===CT(Fk.string(o));if(uA.isRedo(t)){e.preventDefault();var i=m;return void("function"==typeof i.redo&&i.redo())}if(uA.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(uA.isMoveLineBackward(t))return e.preventDefault(),void wT.move(m,{unit:"line",reverse:!0});if(uA.isMoveLineForward(t))return e.preventDefault(),void wT.move(m,{unit:"line"});if(uA.isExtendLineBackward(t))return e.preventDefault(),void wT.move(m,{unit:"line",edge:"focus",reverse:!0});if(uA.isExtendLineForward(t))return e.preventDefault(),void wT.move(m,{unit:"line",edge:"focus"});if(uA.isMoveBackward(t))return e.preventDefault(),void(n&&Gk.isCollapsed(n)?wT.move(m,{reverse:!r}):wT.collapse(m,{edge:"start"}));if(uA.isMoveForward(t))return e.preventDefault(),void(n&&Gk.isCollapsed(n)?wT.move(m,{reverse:r}):wT.collapse(m,{edge:"end"}));if(uA.isMoveWordBackward(t))return e.preventDefault(),n&&Gk.isExpanded(n)&&wT.collapse(m,{edge:"focus"}),void wT.move(m,{unit:"word",reverse:!r});if(uA.isMoveWordForward(t))return e.preventDefault(),n&&Gk.isExpanded(n)&&wT.collapse(m,{edge:"focus"}),void wT.move(m,{unit:"word",reverse:r});if(RM){if((kM||DM)&&n&&(uA.isDeleteBackward(t)||uA.isDeleteForward(t))&&Gk.isCollapsed(n)){var l=Fk.parent(m,n.anchor.path);if(Dk.isElement(l)&&Ak.isVoid(m,l)&&(Ak.isInline(m,l)||Ak.isBlock(m,l)))return e.preventDefault(),void Ak.deleteBackward(m,{unit:"block"})}}else{if(uA.isBold(t)||uA.isItalic(t)||uA.isTransposeCharacter(t))return void e.preventDefault();if(uA.isSoftBreak(t))return e.preventDefault(),void Ak.insertSoftBreak(m);if(uA.isSplitBlock(t))return e.preventDefault(),void Ak.insertBreak(m);if(uA.isDeleteBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m));if(uA.isDeleteForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m));if(uA.isDeleteLineBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m,{unit:"line"}));if(uA.isDeleteLineForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m,{unit:"line"}));if(uA.isDeleteWordBackward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"backward"}):Ak.deleteBackward(m,{unit:"word"}));if(uA.isDeleteWordForward(t))return e.preventDefault(),void(n&&Gk.isExpanded(n)?Ak.deleteFragment(m,{direction:"forward"}):Ak.deleteForward(m,{unit:"word"}))}}}),[a,h.onKeyDown]),onPaste:n.useCallback((e=>{a||!IA(m,e.target)||zA(e,h.onPaste)||RM&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),BM.insertData(m,e.clipboardData))}),[a,h.onPaste])}),u.default.createElement(PA,{decorations:T,node:m,renderElement:s,renderPlaceholder:c,renderLeaf:l,selection:m.selection})))))},BA=e=>{var{attributes:t,children:n}=e;return u.default.createElement("span",Object.assign({},t),n,EM&&u.default.createElement("br",null))},FA=()=>[],_A=(e,t)=>{if(!e.selection||e.selection&&Gk.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Ej(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},LA=(e,t)=>dM(t)&&BM.hasDOMNode(e,t),IA=(e,t)=>dM(t)&&BM.hasDOMNode(e,t,{editable:!0}),$A=(e,t)=>{if(Yj.get(e))return!1;var n=LA(e,t)&&BM.toSlateNode(e,t);return Ak.isVoid(e,n)},zA=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},VA=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},WA=n.createContext(!1),UA=n.createContext({});var HA=["editor","children","onChange","value"],qA=e=>{var{editor:t,children:o,onChange:r,value:i}=e,a=_j(e,HA),s=n.useRef(!1),[l,c]=u.default.useState((()=>{if(!Fk.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(Zk.stringify(i)));if(!Ak.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(Zk.stringify(t)));return t.children=i,Object.assign(t,a),{v:0,editor:t}})),{selectorContext:p,onChange:d}=function(e){var t=n.useRef([]).current,o=n.useRef({editor:e}).current,r=n.useCallback((e=>{o.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:n.useMemo((()=>({getSlate:()=>o.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,o]),onChange:r}}(t),f=n.useCallback((()=>{r&&r(t.children),c((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);Qj.set(t,f),n.useEffect((()=>()=>{Qj.set(t,(()=>{})),s.current=!0}),[]);var[h,m]=n.useState(BM.isFocused(t));return n.useEffect((()=>{m(BM.isFocused(t))})),FM((()=>{var e=()=>m(BM.isFocused(t));return yM?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),u.default.createElement(UA.Provider,{value:p},u.default.createElement(iA.Provider,{value:l},u.default.createElement(UM.Provider,{value:l.editor},u.default.createElement(WA.Provider,{value:h},o))))},XA=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},GA=(e,t,n)=>{var o=BM.toDOMRange(e,t).getBoundingClientRect(),r=BM.toDOMRange(e,n).getBoundingClientRect();return XA(o,r)&&XA(r,o)};function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YA(Object(n),!0).forEach((function(t){Fj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZA,JA,QA=e=>{var t=e,{apply:n,onChange:o,deleteBackward:r,addMark:i,removeMark:a}=t;return Gj.set(t,new WeakMap),t.addMark=(e,n)=>{var o,r;null===(o=eM.get(t))||void 0===o||o(),!tM.get(t)&&null!==(r=oM.get(t))&&void 0!==r&&r.length&&tM.set(t,null),nM.delete(t),i(e,n)},t.removeMark=e=>{var n;!tM.get(t)&&null!==(n=oM.get(t))&&void 0!==n&&n.length&&tM.set(t,null),nM.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return r(e);if(t.selection&&Gk.isCollapsed(t.selection)){var n=Ak.above(t,{match:e=>Ak.isBlock(t,e),at:t.selection});if(n){var[,o]=n,i=Ak.range(t,o,t.selection.anchor),a=((e,t)=>{var n=Ak.range(e,Gk.end(t)),o=Array.from(Ak.positions(e,{at:t})),r=0,i=o.length,a=Math.floor(i/2);if(GA(e,Ak.range(e,o[r]),n))return Ak.range(e,o[r],n);if(o.length<2)return Ak.range(e,o[o.length-1],n);for(;a!==o.length&&a!==r;)GA(e,Ak.range(e,o[a]),n)?i=a:r=a,a=Math.floor((r+i)/2);return Ak.range(e,o[i],n)})(t,i);Gk.isCollapsed(a)||wT.delete(t,{at:a})}}},t.apply=e=>{var o=[],r=oM.get(t);if(null!=r&&r.length){var i=r.map((t=>function(e,t){var{path:n,diff:o,id:r}=e;switch(t.type){case"insert_text":return!$k.equals(t.path,n)||t.offset>=o.end?e:t.offset<=o.start?{diff:{start:t.text.length+o.start,end:t.text.length+o.end,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end+t.text.length,text:o.text},id:r,path:n};case"remove_text":return!$k.equals(t.path,n)||t.offset>=o.end?e:t.offset+t.text.length<=o.start?{diff:{start:o.start-t.text.length,end:o.end-t.text.length,text:o.text},id:r,path:n}:{diff:{start:o.start,end:o.end-t.text.length,text:o.text},id:r,path:n};case"split_node":return!$k.equals(t.path,n)||t.position>=o.end?{diff:o,id:r,path:$k.transform(n,t,{affinity:"backward"})}:t.position>o.start?{diff:{start:o.start,end:Math.min(t.position,o.end),text:o.text},id:r,path:n}:{diff:{start:o.start-t.position,end:o.end-t.position,text:o.text},id:r,path:$k.transform(n,t,{affinity:"forward"})};case"merge_node":return $k.equals(t.path,n)?{diff:{start:o.start+t.position,end:o.end+t.position,text:o.text},id:r,path:$k.transform(n,t)}:{diff:o,id:r,path:$k.transform(n,t)}}var i=$k.transform(n,t);return i?{diff:o,path:i,id:r}:null}(t,e))).filter(Boolean);oM.set(t,i)}var a=iM.get(t);a&&iM.set(t,wA(t,a,e));var s=rM.get(t);if(null!=s&&s.at){var l=Uk.isPoint(null==s?void 0:s.at)?yA(t,s.at,e):wA(t,s.at,e);rM.set(t,l?KA(KA({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...eN(t,e.path));break;case"set_selection":var c;null===(c=Jj.get(t))||void 0===c||c.unref(),Jj.delete(t);break;case"insert_node":case"remove_node":o.push(...eN(t,$k.parent(e.path)));break;case"merge_node":var u=$k.previous(e.path);o.push(...eN(t,u));break;case"move_node":var p=$k.common($k.parent(e.path),$k.parent(e.newPath));o.push(...eN(t,p))}for(var[d,f]of(n(e),o)){var[h]=Ak.node(t,d);Xj.set(h,f)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[o,r]=Gk.edges(n),i=Ak.void(t,{at:o.path}),a=Ak.void(t,{at:r.path});if(!Gk.isCollapsed(n)||i){var s=BM.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[u]=a,p=s.cloneRange(),d=BM.toDOMNode(t,u);p.setEndAfter(d),l=p.cloneContents()}if(i&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),hM(c)){var f=c.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),l.appendChild(f),c=f}var h=t.getFragment(),m=JSON.stringify(h),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var g=l.ownerDocument.createElement("div");return g.appendChild(l),g.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(g),e.setData("text/html",g.innerHTML),e.setData("text/plain",gM(g)),l.ownerDocument.body.removeChild(g),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var n=e.getData("application/x-slate-fragment")||(e=>{var t=e.getData("text/html"),[,n]=t.match(xM)||[];return n})(e);if(n){var o=decodeURIComponent(window.atob(n)),r=JSON.parse(o);return t.insertFragment(r),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var o=n.split(/\r\n|\r|\n/),r=!1;for(var i of o)r&&wT.splitNodes(t,{always:!0}),t.insertText(i),r=!0;return!0}return!1},t.onChange=()=>{d.default.unstable_batchedUpdates((()=>{var e=Qj.get(t);e&&e(),o()}))},t},eN=(e,t)=>{var n=[];for(var[o,r]of Ak.levels(e,{at:t})){var i=BM.findKey(e,o);n.push([r,i])}return n},tN=function(e){var n=e.element,o=e.children,r=e.attributes;switch(n.type){case"list-item":return t.jsx("li",f({},r,{children:o}));case"numbered-list":return t.jsx(nN,f({type:"1"},r,{children:o}));case"bulleted-list":return t.jsx(oN,f({},r,{children:o}));default:return t.jsx("p",f({},r,{children:o}))}},nN=l.default.ol(ZA||(ZA=x(["\n list-style: decimal;\n list-style-position: inside;\n"],["\n list-style: decimal;\n list-style-position: inside;\n"]))),oN=l.default.ul(JA||(JA=x(["\n list-style: disc;\n list-style-position: inside;\n"],["\n list-style: disc;\n list-style-position: inside;\n"]))),rN=n.createContext({isMLRReview:!1,annotationsList:{links:[],tags:[]},showAnnotations:!1}),iN=function(){return n.useContext(rN)},aN="webpageId",sN="applicationId",lN="viewApplicationId",cN="selected-webpage-id",uN="selectedWebpageId",pN={exports:{}};pN.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return o(r).default}});var i=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return o(i).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return o(a).default}})},function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minYear,i=void 0===n?1:n,a=t.maxYear,s=void 0===a?9999:a,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return r.indexOf(e)-r.indexOf(t)}));return function(t){var n=[],r={dd:31,mm:12,yy:99,yyyy:s,HH:23,MM:59,SS:59},a={dd:1,mm:1,yy:0,yyyy:i,HH:0,MM:0,SS:0},c=t.split("");l.forEach((function(t){var o=e.indexOf(t),i=parseInt(r[t].toString().substr(0,1),10);parseInt(c[o],10)>i&&(c[o+1]=c[o],c[o]=0,n.push(o))}));var u=0,p=l.some((function(n){var l=e.indexOf(n),c=n.length,p=t.substr(l,c).replace(/\D/g,""),d=parseInt(p,10);"mm"===n&&(u=d||0);var f="dd"===n?o[u]:r[n];if("yyyy"===n&&(1!==i||9999!==s)){var h=parseInt(r[n].toString().substring(0,p.length),10);return d<parseInt(a[n].toString().substring(0,p.length),10)||d>h}return d>f||p.length===c&&d<a[n]}));return!p&&{value:c.join(""),indexesOfPipedChars:n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=[31,31,29,31,30,31,30,31,31,30,31,30,31],r=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){function n(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=e.length;if(e===s||e[0]===v[0]&&1===t)return v.split(s).concat([h]).concat(x.split(s));if(e===S&&O)return v.split(s).concat(["0",S,h]).concat(x.split(s));var n=e[0]===u&&N;n&&(e=e.toString().substr(1));var a=e.lastIndexOf(S),l=-1!==a,c=void 0,g=void 0,b=void 0;if(e.slice(-1*L)===x&&(e=e.slice(0,-1*L)),l&&(O||M)?(c=e.slice(e.slice(0,_)===v?_:0,a),g=o((g=e.slice(a+1,t)).replace(d,s))):c=e.slice(0,_)===v?e.slice(_):e,F&&(void 0===F?"undefined":i(F))===f){var w="."===C?"[.]":""+C,E=(c.match(new RegExp(w,"g"))||[]).length;c=c.slice(0,F+E*I)}return c=c.replace(d,s),R||(c=c.replace(/^0+(0$|[^0])/,"$1")),b=o(c=y?r(c,C):c),(l&&O||!0===M)&&(e[a-1]!==S&&b.push(m),b.push(S,m),g&&((void 0===T?"undefined":i(T))===f&&(g=g.slice(0,T)),b=b.concat(g)),!0===M&&e[a-1]===S&&b.push(h)),_>0&&(b=v.split(s).concat(b)),n&&(b.length===_&&b.push(h),b=[p].concat(b)),x.length>0&&(b=b.concat(x.split(s))),b}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,v=void 0===n?a:n,g=t.suffix,x=void 0===g?s:g,b=t.includeThousandsSeparator,y=void 0===b||b,w=t.thousandsSeparatorSymbol,C=void 0===w?l:w,E=t.allowDecimal,O=void 0!==E&&E,D=t.decimalSymbol,S=void 0===D?c:D,k=t.decimalLimit,T=void 0===k?2:k,j=t.requireDecimal,M=void 0!==j&&j,A=t.allowNegative,N=void 0!==A&&A,P=t.allowLeadingZeroes,R=void 0!==P&&P,B=t.integerLimit,F=void 0===B?null:B,_=v&&v.length||0,L=x&&x.length||0,I=C&&C.length||0;return e.instanceOf="createNumberMask",e}function o(e){return e.split(s).map((function(e){return h.test(e)?h:e}))}function r(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__esModule",{value:!0});var i="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.default=n;var a="$",s="",l=",",c=".",u="-",p=/-/,d=/\D+/g,f="number",h=/\d/,m="[]"},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e=e.replace(y,f);var n=t.placeholderChar,o=t.currentCaretPosition,r=e.indexOf(h),u=e.lastIndexOf(d),p=u<r?-1:u,m=i(e,r+1,h),v=i(e,p-1,d),g=a(e,r),x=s(e,r,p,n),b=l(e,p,n,o);return g=c(g),x=c(x),b=c(b,!0),g.concat(m).concat(x).concat(v).concat(b)}function i(e,t,n){var o=[];return e[t]===n?o.push(n):o.push(m,n),o.push(m),o}function a(e,t){return-1===t?e:e.slice(0,t)}function s(e,t,n,o){var r=f;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+o+"]",g),f))===h?p:r.length<1?v:r[r.length-1]===d?r.slice(0,r.length-1):r}function l(e,t,n,o){var r=f;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",g),f)).length?e[t-1]===d&&o!==e.length?p:f:r}function c(e,t){return e.split(f).map((function(e){return e===v?e:t?b:x}))}Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(4)),p="*",d=".",f="",h="@",m="[]",v=" ",g="g",x=/[^\s]/,b=/[^.\s]/,y=/\s/g;t.default={mask:r,pipe:u.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,d=t.previousConformedValue,f=t.placeholderChar,h=e,m=(h=o(h)).indexOf(s);if(null===i.match(new RegExp("[^@\\s."+f+"]")))return a;if(-1!==h.indexOf(c)||-1!==m&&n!==m+1||-1===i.indexOf(r)&&d!==a&&-1!==i.indexOf(l))return!1;var v=h.indexOf(r);return(h.slice(v+1,h.length).match(p)||u).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function o(e){var t=0;return e.replace(i,(function(){return 1==++t?r:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r="@",i=/@/g,a="",s="@.",l=".",c="..",u=[],p=/\./g}]);var dN,fN,hN,mN,vN,gN,xN,bN,yN,wN,CN,EN,ON,DN,SN,kN,TN,jN,MN,AN,NN,PN,RN,BN,FN,_N,LN,IN,$N,zN,VN,WN,UN,HN,qN,XN,GN,YN,KN,ZN,JN=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/im,QN=/^[0-9]*$/,eP=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,tP=/^[a-zA-Z]+$/,nP=/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/(19[3-9]\d|20\d\d)$/,oP=/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,rP=/^(0[1-9]|1[0-2])\/(19[3-9]\d|20\d\d)$/,iP=/^(19[3-9]\d|20\d\d)\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])$/,aP=/^\d{5}$/,sP=/^[a-zA-Z0-9\-_]+$/,lP=function(e){switch(e){case"email":return{value:eP,message:"Please enter an email address into this field"};case"month_year_date":return{value:rP,message:"Please enter correct date into this field"};case"day_month_year_date":return{value:oP,message:"Please enter correct date into this field"};case"month_day_year_date":return{value:nP,message:"Please enter correct date into this field"};case"year_month_day_date":return{value:iP,message:"Please enter correct date into this field"};case"phone_number":return{value:JN,message:"Please only enter correct phone number into this field"};case"numerical":return{value:QN,message:"Please only enter numbers into this field"};case"text":return{value:tP,message:"Please only enter alphabetic letters into this field"};case"us_zip_code":return{value:aP,message:"Please only correct zip code into this field"};case"username":return{value:sP,message:'Please only enter "-", "_" characters, alphabetic letters and numbers into this field'};default:return}},cP=[/\d/,/\d/,/\d/,/\d/,/\d/],uP=[/\d/,/\d/,/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/],pP=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],dP=[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],fP=[/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/],hP=["(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/],mP=pN.exports.createNumberMask({prefix:"",includeThousandsSeparator:!1}),vP=pN.exports.createNumberMask({prefix:"",allowDecimal:!0,includeThousandsSeparator:!1}),gP=function(e,t){var n=t.match(new RegExp("".concat(e,"=([^/]+)")));return n?decodeURIComponent(n[1]):""},xP=function(e,t){if(!t)return e;var n=gP(aN,t),o=gP(sN,t);if(!n||!o)return e;var r=new URLSearchParams(e.toString());return e.has(lN)&&r.set(lN,o),e.has(cN)&&r.set(cN,n),e.has(uN)&&r.set(uN,n),r},bP=function(e){if(e){var t=e.match(/^http[s]?:\/\//)?e:"http://".concat(e);window.open(t,"_blank")}},yP=function(e){return!!e&&"internalLink"===(null==e?void 0:e.type)},wP=function(e){if(!e)return"";var t=new URL(window.location.href),n=xP(t.searchParams,e);return t.search=n.toString(),t.toString()},CP=function(e){return yP(e)?wP(null==e?void 0:e.internalLink):(null==e?void 0:e.externalLink)||""},EP=function(e){var t=null==e?void 0:e.replace(/\\/g,"");try{return JSON.parse(e)}catch(e){try{return JSON.parse(t)}catch(e){return SP}}},OP=function(e){var n,o,r,i=e.leaf,a=e.children,s=e.attributes,l=iN(),c=l.showAnnotations,u=l.annotationsList,p=l.isMLRReview;if(i.tag){var d=u.tags.findIndex((function(e){var t,n=e.id;return(null===(t=i.tag)||void 0===t?void 0:t.id)===n}))+1;p&&c&&d&&(a=t.jsxs(Bw,f({component:"span",display:"inline-flex",direction:"row",alignItems:"center",gap:.5,id:kP},((n={})["data-".concat(jP)]=null===(r=i.tag)||void 0===r?void 0:r.id,n),{children:[t.jsx("span",f({style:{backgroundColor:"#FFF0D0B5"}},{children:a})),t.jsx(a8,{index:u.tags.findIndex((function(e){var t,n,o=e.id,r=e.label;return(null===(t=i.tag)||void 0===t?void 0:t.id)===o||(null===(n=i.tag)||void 0===n?void 0:n.label)===r}))+1,type:"message"})]})))}if(i.bold&&(a=t.jsx("span",f({style:{fontWeight:"bold"}},{children:a}))),i.strikethrough&&(a=t.jsx("s",{children:a})),i.italic&&(a=t.jsx("span",f({style:{fontStyle:"italic"}},{children:a}))),i.underline&&(a=t.jsx("u",{children:a})),i.variable&&(a=t.jsxs(DP,{children:[t.jsx("span",f({style:{left:0},contentEditable:!1},{children:"["})),t.jsx("span",{children:a}),t.jsx("span",f({style:{right:0},contentEditable:!1},{children:"]"}))]})),i.communicationLink){var h=i.communicationLink,m=h.type,v=h.url,g="internalLink"===m,x=g?wP(v):v,b=u.links.findIndex((function(e){return v===e.url&&i.text===e.text}))+1;a=t.jsx(t.Fragment,{children:p&&c&&b?t.jsxs(Bw,f({component:"span",display:"inline-flex",alignItems:"center",gap:.2,marginBottom:.2,id:TP},(o={},o["data-".concat(MP)]=v,o["data-".concat(AP)]=i.text,o),{children:[t.jsx("a",f({style:{color:S.colors.blue}},s,{href:x,target:g?"_self":"_blank"},{children:a})),t.jsx(a8,{index:b,type:"link"})]})):t.jsx("a",f({style:{color:S.colors.blue}},s,{href:x,target:g?"_self":"_blank"},{children:a}))})}return t.jsx("span",f({},s,{children:a}))},DP=l.default.span(dN||(dN=x(["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"],["\n position: relative;\n white-space: nowrap;\n padding: 0;\n"]))),SP=[{type:"paragraph",children:[{text:""}]}],kP="matrix-message",TP="communication-link",jP="matrix-message-id",MP="communication-link-url",AP="communication-link-text",NP=function(e){var o=e.value,r=e.color,i=void 0===r?"gray1":r,a=e.textStyles,s=e.font,l=void 0===s?"XS":s,c=e.numberOfLines,u=e.extraTextProps,p=e.renderElementWrapperComponent,d=e.renderElementWrapperProps,h=e.htmlElementId,m=n.useState((function(){return QA((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ak.pathRefs(e))zk.transform(n,t);for(var o of Ak.pointRefs(e))Hk.transform(o,t);for(var r of Ak.rangeRefs(e))Yk.transform(r,t);var i,a,s=zS.get(e)||[],l=VS.get(e)||new Set,c=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),i.push(e))}};if($k.operationCanTransformPath(t))for(var u of(i=[],a=new Set,s))c($k.transform(u,t));else i=s,a=l;var p=e.getDirtyPaths(t);for(var d of p)c(d);zS.set(e,i),VS.set(e,a),wT.transform(e,t),e.operations.push(t),Ak.normalize(e),"set_selection"===t.type&&(e.marks=null),WS.get(e)||(WS.set(e,!0),Promise.resolve().then((()=>{WS.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:o,markableVoid:r}=e;if(o){var i=(t,n)=>{if(!oT.isText(t))return!1;var[o,r]=Ak.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},a=Gk.isExpanded(o),s=!1;if(!a){var[l,c]=Ak.node(e,o);if(l&&i(l,c)){var[u]=Ak.parent(e,c);s=u&&e.markableVoid(u)}}if(a||s)wT.setNodes(e,{[t]:n},{match:i,split:!0,voids:!0});else{var p=YS(YS({},Ak.marks(e)||{}),{},{[t]:n});e.marks=p,WS.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&Gk.isCollapsed(n)&&wT.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Gk.isCollapsed(n)&&wT.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Gk.isExpanded(n)&&wT.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Fk.fragment(e,t):[]},insertBreak:()=>{wT.splitNodes(e,{always:!0})},insertSoftBreak:()=>{wT.splitNodes(e,{always:!0})},insertFragment:t=>{wT.insertFragment(e,t)},insertNode:t=>{wT.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:o}=e;if(n){if(o){var r=YS({text:t},o);wT.insertNodes(e,r)}else wT.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,o]=t;if(!oT.isText(n))if(Dk.isElement(n)&&0===n.children.length)wT.insertNodes(e,{text:""},{at:o.concat(0),voids:!0});else for(var r=!Ak.isEditor(n)&&Dk.isElement(n)&&(e.isInline(n)||0===n.children.length||oT.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=Fk.get(e,o);if(!oT.isText(s)){var l=n.children[a],c=s.children[i-1],u=a===n.children.length-1;(oT.isText(l)||Dk.isElement(l)&&e.isInline(l))!==r?(wT.removeNodes(e,{at:o.concat(i),voids:!0}),i--):Dk.isElement(l)?e.isInline(l)&&(null!=c&&oT.isText(c)?u&&(wT.insertNodes(e,{text:""},{at:o.concat(i+1),voids:!0}),i++):(wT.insertNodes(e,{text:""},{at:o.concat(i),voids:!0}),i++)):null!=c&&oT.isText(c)&&(oT.equals(l,c,{loose:!0})?(wT.mergeNodes(e,{at:o.concat(i),voids:!0}),i--):""===c.text?(wT.removeNodes(e,{at:o.concat(i-1),voids:!0}),i--):""===l.text&&(wT.removeNodes(e,{at:o.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n){var o=(t,n)=>{if(!oT.isText(t))return!1;var[o,r]=Ak.parent(e,n);return!e.isVoid(o)||e.markableVoid(o)},r=Gk.isExpanded(n),i=!1;if(!r){var[a,s]=Ak.node(e,n);if(a&&o(a,s)){var[l]=Ak.parent(e,s);i=l&&e.markableVoid(l)}}if(r||i)wT.unsetNodes(e,t,{match:o,split:!0,voids:!0});else{var c=YS({},Ak.marks(e)||{});delete c[t],e.marks=c,WS.get(e)||e.onChange()}}},getDirtyPaths:e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return $k.levels(t);case"insert_node":var{node:n,path:o}=e,r=$k.levels(o),i=oT.isText(n)?[]:Array.from(Fk.nodes(n),(e=>{var[,t]=e;return o.concat(t)}));return[...r,...i];case"merge_node":var{path:a}=e;return[...$k.ancestors(a),$k.previous(a)];case"move_node":var{path:s,newPath:l}=e;if($k.equals(s,l))return[];var c=[],u=[];for(var p of $k.ancestors(s)){var d=$k.transform(p,e);c.push(d)}for(var f of $k.ancestors(l)){var h=$k.transform(f,e);u.push(h)}var m=u[u.length-1],v=l[l.length-1],g=m.concat(v);return[...c,...u,g];case"remove_node":var{path:x}=e;return[...$k.ancestors(x)];case"split_node":var{path:b}=e;return[...$k.levels(b),$k.next(b)];default:return[]}}};return e})())}))[0],v=p||BP;if(void 0===o)return null;var g=SP,x=o.replace(/\\/g,"");try{g=JSON.parse(o)}catch(e){console.error(e,"Value was parsed incorrectly. Trying to parse it...");try{g=JSON.parse(x)}catch(t){console.error(e,"Most probably that it's not possible to parse this value")}}return t.jsx(PP,f({id:h,font:l,color:i},{children:t.jsx(qA,f({editor:m,value:g},{children:t.jsx(RA,{readOnly:!0,renderElement:function(e){return t.jsx(v,f({numberOfLines:c,styles:a,color:i,variant:l},u,d,{children:t.jsx(tN,f({},e))}))},renderLeaf:function(e){return t.jsx(OP,f({},e))}})}),JSON.stringify(g))}))},PP=l.default(bd)(hN||(hN=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.color,a=void 0===i?"gray1":i,s=t.font,l=void 0===s?"XS":s;return e.css(fN||(fN=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o[a],r[l])})),RP=l.default.div(vN||(vN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.height,r=void 0===o?0:o,i=t.width,a=void 0===i?0:i,s=t.layout,l=void 0===s?"div":s;return e.css(mN||(mN=x(["\n height: ","px;\n width: ","px;\n display: ",";\n "],["\n height: ","px;\n width: ","px;\n display: ",";\n "])),"string"==typeof r?n[r]:r,"string"==typeof a?n[a]:a,"span"===l?"inline-flex":"block")})),BP=function(e){var n=e.children,o=e.seoTag,r=void 0===o?"div":o,i=h(e,["children","seoTag"]);return t.jsx(FP,f({},i,{as:r},{children:n}))},FP=l.default.div(bN||(bN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.layout,a=void 0===i?"div":i,s=t.variant,l=void 0===s?"L":s,c=t.styles,u=t.color,p=t.type,d=t.numberOfLines,f=t.textAlign,h=void 0===f?"left":f,m=t.behaveAs,v=void 0===m?"text":m;return e.css(xN||(xN=x(["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "],["\n display: ",";\n ","\n ",";\n ",";\n color: ",";\n text-align: ",";\n &:hover {\n cursor: ",";\n }\n "])),"span"===a?"inline-flex":"block",r[l],c,function(t){return e.css(gN||(gN=x(["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"],["\n overflow: ",";\n text-overflow: ellipsis;\n display: ",";\n -webkit-line-clamp: ","; /* number of lines to show */\n line-clamp: ",";\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-wrap: break-word;\n"])),t?"hidden":"unset",t?"-webkit-box":"unset",t?"".concat(t):"unset",t?"".concat(t):"unset")}(d),o[null!=u?u:p]||u||o.gray1,h,"button"===v?"pointer":"auto")})),_P=function(e){var n=e.text;return t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:"XS"}),t.jsx(BP,f({variant:"XS",color:"red"},{children:n}))]})},LP={selected:"primary",disabled:"gray4",default:"white",error:"white"},IP={selected:"primary",disabled:"gray4",default:"gray3",error:"red"},$P={selected:"white",disabled:"gray2",default:"white",error:"red"},zP={selected:"gray1",disabled:"gray3",default:"gray1",error:"red"},VP=function(o){var r=o.id,i=o.onClick,a=o.label,s=o.isError,l=o.disabled,c=o.isEditMode,u=void 0===c||c,p=o.isSelected,d=void 0!==p&&p,h=o.isRichText,m=o.internalConfig,v=n.useState(!1),g=v[0],b=v[1],y=function(t,n,o){var r=o||{},i=r.selectedCheckboxBackgroundColor,a=void 0===i?LP.selected:i,s=r.selectedCheckboxIconColor,l=void 0===s?$P.default:s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=void 0===p?0:p,f=r.buttonPadding,h=void 0===f?0:f,m="selected"===n?S.colors[l]||l:S.colors[$P[n]||$P.default],v=e.css((function(e){var o=e.theme.colors;return"\n border-color: ".concat(t?o.gray2:o[IP[n]||IP.default],";\n background-color: ").concat("selected"===n?o[a]||a:o[LP[n]||LP.default],";\n ")})),g=e.css((function(e){var o=e.theme.colors;return"\n color: ".concat(t?o.gray2:o[zP[n]||zP.default]," !important;\n padding: ").concat(d,"px; \n ")}));return{checkboxIconWrapperColor:v,checkboxIconColor:m,checkboxTextStyles:g,checkboxWrapperStyles:e.css(yN||(yN=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),h,c,u)}}(g,s?"error":l?"disabled":d?"selected":"default",m),w=y.checkboxIconWrapperColor,C=y.checkboxIconColor,E=y.checkboxWrapperStyles,O=y.checkboxTextStyles,D=a?t.jsx("div",{children:h?t.jsx(NP,{extraTextProps:{behaveAs:l?"text":"button"},textStyles:O,value:a,font:"M"}):t.jsx(BP,f({styles:O,behaveAs:l?"text":"button",variant:"M"},{children:a}))}):null;return t.jsx(t.Fragment,{children:t.jsxs(WP,f({activeOpacity:.8,disabled:l,$styles:E},!l&&u&&{onClick:function(){return i(r)},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[t.jsx(HP,f({$styles:w},{children:d&&t.jsx(UP,{color:C,name:"Check"})})),t.jsx(RP,{width:"S"}),D]}))})},WP=l.default(w)(wN||(wN=x(["\n display: flex;\n width: max-content;\n align-items: center;\n ","\n"],["\n display: flex;\n width: max-content;\n align-items: center;\n ","\n"])),(function(e){return e.$styles})),UP=l.default(LD)(CN||(CN=x(["\n display: flex;\n"],["\n display: flex;\n"]))),HP=l.default.div(ON||(ON=x(["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"],["\n display: flex;\n border-width: 1px;\n align-items: center;\n justify-content: center;\n border-style: solid;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$styles;return e.css(EN||(EN=x(["\n border-radius: ","px;\n ",";\n ","\n "],["\n border-radius: ","px;\n ",";\n ","\n "])),n.XS,C(n.M),o)})),qP=function(e){return e.map((function(e){return Fk.string(e)})).join("\n")},XP=l.default.div(DN||(DN=x(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),(function(e){var t=e.theme,n=t.colors;t.fonts;var o=t.sizes,r=e.hasError;e.hasValue;var i=e.disabled,a=e.isOpen,s=e.isEditMode;return"\n .select-wrapper {\n text-align: left;\n border: ".concat(s?"1px solid ".concat(n.gray3):"none",";\n position: relative;\n border-radius: ").concat(o.S,"px;\n &:hover,\n :active,\n :focus {\n border-color: ").concat(n.gray2,";\n }\n\n .select-input {\n padding: ").concat(s?"10px ".concat(o.S,"px 10px ").concat(o.M,"px}"):0,";\n display: flex;\n align-items: center;\n justify-content: space-between;\n user-select: none;\n cursor: ").concat(s?"pointer":"default",";\n\n .icon-container {\n max-height: 33px;\n transition: transform 0.2s ease-in-out;\n transform: rotate(0deg);\n ").concat(a&&"transform: rotate(180deg);","\n }\n }\n\n ").concat(i&&"\n border-color: ".concat(n.gray4," !important;\n cursor: not-allowed;\n .select-input {\n background-color: ").concat(n.gray4,";\n pointer-events: none;\n .selected-text-value {\n color: ").concat(n.gray3,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.gray3,";\n }\n }\n }\n "),"\n }\n ").concat(r&&"\n .select-wrapper {\n border-color: ".concat(n.red," !important;\n .select-input {\n .selected-text-value {\n color: ").concat(n.red,";\n }\n .icon-container {\n svg path {\n stroke: ").concat(n.red,";\n }\n }\n }\n }\n "),"\n ")}),(function(e){return e.$styles})),GP=l.default.div(SN||(SN=x(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme,n=t.colors,o=t.sizes;return"\n position: absolute;\n width: 100%;\n border-radius: ".concat(o.S,"px;\n padding: ").concat(o.L,"px ").concat(o.M,"px;\n box-shadow: 0 0 ").concat(o.XL,"px 0 #0000001a;\n overflow: auto;\n max-height: 150px;\n z-index: 10;\n transform: translateY(").concat(o.S,"px);\n background-color: ").concat(n.white,";\n ")})),YP=l.default.div(kN||(kN=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(e){var t=e.theme,n=t.sizes,o=t.colors,r=t.fonts,i=e.$selected;return"\n border-radius: ".concat(n.S,"px;\n &:hover {\n background-color: ").concat(o.gray5,";\n }\n padding: ").concat(n.S,"px ").concat(n.M,"px;\n ").concat(r.M,";\n color: ").concat(o.gray2,";\n ").concat(i&&"\n background-color: ".concat(o.gray4," !important;\n color: ").concat(o.black,";\n "),";\n ")})),KP=function(t,n){void 0===n&&(n=!1);var o=t||{},r=o.horizontalPadding,i=void 0===r?0:r,a=o.verticalPadding,s=void 0===a?0:a,l=o.selectedTextColor,c=o.selectedTextFontSize,u=o.placeholderTextColor,p=o.placeholderTextFontSize,d=o.styles,f=o.wrapperStyles;return e.css(jN||(jN=x(["\n ",";\n "],["\n ",";\n "])),(function(t){var o=t.theme.colors;return e.css(TN||(TN=x(["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "],["\n .select-wrapper {\n .select-input {\n ",";\n .selected-text-value {\n ",";\n }\n ",";\n }\n ",";\n }\n "])),s||i?"padding: ".concat(s,"px ").concat(i,"px;"):"",n?"\n ".concat(l?"color: ".concat(o[l]||l,";"):"",";\n ").concat(c?"font-size: ".concat(c,"px;"):"",";\n "):"\n ".concat(u?"color: ".concat(o[u]||u,";"):"",";\n ").concat(p?"font-size: ".concat(p,"px;"):"",";\n "),d,f)}))},ZP=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.value,s=e.placeholder,l=e.options,c=void 0===l?[]:l,u=e.disabled,p=void 0!==u&&u,d=e.optionsPresentation,h=void 0!==d&&d,m=e.isError,v=e.isEditMode,g=void 0===v||v,x=e.selectInternalConfig,b=e.isRichText,y=void 0!==b&&b,w=n.useState(h),C=w[0],E=w[1],O=n.useState(a),D=O[0],S=O[1],k=null==c?void 0:c.find((function(e){return e.id===D}));n.useEffect((function(){var e=function(){return!h&&E(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}})),n.useEffect((function(){return E(h)}),[h]),n.useEffect((function(){return S(a)}),[a]);var T=function(e){return e===D};return t.jsx(XP,f({ref:o,tabIndex:0,onBlur:r,disabled:p,isEditMode:g,hasValue:!!k,isOpen:C,hasError:!!m,$styles:KP(x,!!k)},{children:t.jsxs("div",f({className:"select-wrapper"},{children:[t.jsxs("div",f({className:"select-input",onClick:function(e){h||(e.stopPropagation(),E((function(e){return!e})))}},{children:[k?y?t.jsx(NP,{value:k.label,extraTextProps:{color:"gray1",variant:"M"}}):t.jsx(BP,f({variant:"M",color:"gray1"},{children:k.label})):t.jsx(BP,f({variant:"M",color:"gray3"},{children:s})),g&&t.jsx("div",f({className:"icon-container"},{children:t.jsx(LD,{name:"CaretDown"})}))]})),C&&g&&t.jsx(GP,{children:c.map((function(e){var n=e.id,o=e.label;return t.jsx(YP,f({$selected:T(n),onClick:function(){return function(e){S(e),null==i||i(e)}(n)}},{children:y?qP(JSON.parse(o)):o}),n)}))})]}))}))},JP={exports:{}},QP=me(JP.exports=function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return o(u).default}});var p=o(n(11)),d=o(n(9)),f=o(n(5)),h=n(2),m=function(e){function t(){var e;i(this,t);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var s=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return s.setRef=s.setRef.bind(s),s.onBlur=s.onBlur.bind(s),s.onChange=s.onChange.bind(s),s}return s(t,e),c(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,f.default)(l({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.pipe,r=t.mask,i={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof o&&"function"==typeof e.pipe?o.toString()!==e.pipe.toString():(0,h.isNil)(o)&&!(0,h.isNil)(e.pipe)||!(0,h.isNil)(o)&&(0,h.isNil)(e.pipe),s=r.toString()!==e.mask.toString(),l=Object.keys(i).some((function(t){return i[t]!==e[t]}))||s||a;(n!==this.inputElement.value||l)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=r(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,l({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(p.default.PureComponent);t.default=m,m.propTypes={mask:d.default.oneOfType([d.default.array,d.default.func,d.default.bool,d.default.shape({mask:d.default.oneOfType([d.default.array,d.default.func]),pipe:d.default.func})]).isRequired,guide:d.default.bool,value:d.default.oneOfType([d.default.string,d.default.number]),pipe:d.default.func,placeholderChar:d.default.string,keepCharPositions:d.default.bool,showMask:d.default.bool},m.defaultProps={render:function(e,t){return p.default.createElement("input",l({ref:e},t))}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function i(e){return"string"==typeof e||e instanceof String}function a(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function s(e){return null==e}function l(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(p));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=o,t.isArray=r,t.isString=i,t.isNumber=a,t.isNil=s,t.processCaretTraps=l;var c=n(1),u=[],p="[]"},function(e,t,n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((void 0===t?"undefined":r(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var o=n.guide,c=void 0===o||o,u=n.previousConformedValue,p=void 0===u?l:u,d=n.placeholderChar,f=void 0===d?a.placeholderChar:d,h=n.placeholder,m=void 0===h?(0,i.convertMaskToPlaceholder)(t,f):h,v=n.currentCaretPosition,g=n.keepCharPositions,x=!1===c&&void 0!==p,b=e.length,y=p.length,w=m.length,C=t.length,E=b-y,O=E>0,D=v+(O?-E:0),S=D+Math.abs(E);if(!0===g&&!O){for(var k=l,T=D;T<S;T++)m[T]===f&&(k+=f);e=e.slice(0,D)+k+e.slice(D,b)}for(var j=e.split(l).map((function(e,t){return{char:e,isNew:t>=D&&t<S}})),M=b-1;M>=0;M--){var A=j[M].char;A!==f&&A===m[M>=D&&y===C?M-E:M]&&j.splice(M,1)}var N=l,P=!1;e:for(var R=0;R<w;R++){var B=m[R];if(B===f){if(j.length>0)for(;j.length>0;){var F=j.shift(),_=F.char,L=F.isNew;if(_===f&&!0!==x){N+=f;continue e}if(t[R].test(_)){if(!0===g&&!1!==L&&p!==l&&!1!==c&&O){for(var I=j.length,$=null,z=0;z<I;z++){var V=j[z];if(V.char!==f&&!1===V.isNew)break;if(V.char===f){$=z;break}}null!==$?(N+=_,j.splice($,1)):R--}else N+=_;continue e}P=!0}!1===x&&(N+=m.substr(R,w));break}N+=B}if(x&&!1===O){for(var W=null,U=0;U<N.length;U++)m[U]===f&&(W=U);N=null!==W?N.substr(0,W+1):l}return{conformedValue:N,meta:{someCharsRejected:P}}}Object.defineProperty(t,"__esModule",{value:!0});var r="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.default=o;var i=n(2),a=n(1),s=[],l=""},function(e,t){function n(e){var t=e.previousConformedValue,n=void 0===t?r:t,i=e.previousPlaceholder,a=void 0===i?r:i,s=e.currentCaretPosition,l=void 0===s?0:s,c=e.conformedValue,u=e.rawValue,p=e.placeholderChar,d=e.placeholder,f=e.indexesOfPipedChars,h=void 0===f?o:f,m=e.caretTrapIndexes,v=void 0===m?o:m;if(0===l||!u.length)return 0;var g=u.length,x=n.length,b=d.length,y=c.length,w=g-x,C=w>0;if(w>1&&!C&&0!==x)return l;var E=0,O=void 0,D=void 0;if(!C||n!==c&&c!==d){var S=c.toLowerCase(),k=u.toLowerCase().substr(0,l).split(r).filter((function(e){return-1!==S.indexOf(e)}));D=k[k.length-1];var T=a.substr(0,k.length).split(r).filter((function(e){return e!==p})).length,j=d.substr(0,k.length).split(r).filter((function(e){return e!==p})).length,M=j!==T,A=void 0!==a[k.length-1]&&void 0!==d[k.length-2]&&a[k.length-1]!==p&&a[k.length-1]!==d[k.length-1]&&a[k.length-1]===d[k.length-2];!C&&(M||A)&&T>0&&d.indexOf(D)>-1&&void 0!==u[l]&&(O=!0,D=u[l]);for(var N=h.map((function(e){return S[e]})),P=N.filter((function(e){return e===D})).length,R=k.filter((function(e){return e===D})).length,B=d.substr(0,d.indexOf(p)).split(r).filter((function(e,t){return e===D&&u[t]!==e})).length,F=B+R+P+(O?1:0),_=0,L=0;L<y&&(E=L+1,S[L]===D&&_++,!(_>=F));L++);}else E=l-w;if(C){for(var I=E,$=E;$<=b;$++)if(d[$]===p&&(I=$),d[$]===p||-1!==v.indexOf($)||$===b)return I}else if(O){for(var z=E-1;z>=0;z--)if(c[z]===D||-1!==v.indexOf(z)||0===z)return z}else for(var V=E;V>=0;V--)if(d[V-1]===p||-1!==v.indexOf(V)||0===V)return V}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=[],r=""},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=o.inputElement,h=o.mask,v=o.guide,g=o.pipe,x=o.placeholderChar,b=void 0===x?d.placeholderChar:x,y=o.keepCharPositions,w=void 0!==y&&y,C=o.showMask,E=void 0!==C&&C;if(void 0===n&&(n=r.value),n!==t.previousConformedValue){(void 0===h?"undefined":l(h))===m&&void 0!==h.pipe&&void 0!==h.mask&&(g=h.pipe,h=h.mask);var O=void 0,D=void 0;if(h instanceof Array&&(O=(0,p.convertMaskToPlaceholder)(h,b)),!1!==h){var S=a(n),k=r.selectionEnd,T=t.previousConformedValue,j=t.previousPlaceholder,M=void 0;if((void 0===h?"undefined":l(h))===d.strFunction){if(!1===(D=h(S,{currentCaretPosition:k,previousConformedValue:T,placeholderChar:b})))return;var A=(0,p.processCaretTraps)(D);D=A.maskWithoutCaretTraps,M=A.indexes,O=(0,p.convertMaskToPlaceholder)(D,b)}else D=h;var N={previousConformedValue:T,guide:v,placeholderChar:b,pipe:g,placeholder:O,currentCaretPosition:k,keepCharPositions:w},P=(0,u.default)(S,D,N).conformedValue,R=(void 0===g?"undefined":l(g))===d.strFunction,B={};R&&(!1===(B=g(P,s({rawValue:S},N)))?B={value:T,rejected:!0}:(0,p.isString)(B)&&(B={value:B}));var F=R?B.value:P,_=(0,c.default)({previousConformedValue:T,previousPlaceholder:j,conformedValue:F,placeholder:O,rawValue:S,currentCaretPosition:k,placeholderChar:b,indexesOfPipedChars:B.indexesOfPipedChars,caretTrapIndexes:M}),L=F===O&&0===_?E?O:f:F;t.previousConformedValue=L,t.previousPlaceholder=O,r.value!==L&&(r.value=L,i(r,_))}}}}}function i(e,t){document.activeElement===e&&(v?g((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}function a(e){if((0,p.isString)(e))return e;if((0,p.isNumber)(e))return String(e);if(null==e)return f;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l="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.default=r;var c=o(n(4)),u=o(n(3)),p=n(2),d=n(1),f="",h="none",m="object",v="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){function o(e,t,n,o,r,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=o},function(e,t,n){var o=n(6),r=n(7),i=n(10);e.exports=function(){function e(e,t,n,o,a,s){s!==i&&r(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){e.exports=n(8)()},function(e,t){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(t,n){t.exports=e}])}(u.default)),eR={exports:{}},tR=me(eR.exports=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(3)},,,function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){e=e.replace(y,f);var n=t.placeholderChar,o=t.currentCaretPosition,r=e.indexOf(h),u=e.lastIndexOf(d),p=u<r?-1:u,m=i(e,r+1,h),v=i(e,p-1,d),g=a(e,r),x=s(e,r,p,n),b=l(e,p,n,o);return g=c(g),x=c(x),b=c(b,!0),g.concat(m).concat(x).concat(v).concat(b)}function i(e,t,n){var o=[];return e[t]===n?o.push(n):o.push(m,n),o.push(m),o}function a(e,t){return-1===t?e:e.slice(0,t)}function s(e,t,n,o){var r=f;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+o+"]",g),f))===h?p:r.length<1?v:r[r.length-1]===d?r.slice(0,r.length-1):r}function l(e,t,n,o){var r=f;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",g),f)).length?e[t-1]===d&&o!==e.length?p:f:r}function c(e,t){return e.split(f).map((function(e){return e===v?e:t?b:x}))}Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(4)),p="*",d=".",f="",h="@",m="[]",v=" ",g="g",x=/[^\s]/,b=/[^.\s]/,y=/\s/g;t.default={mask:r,pipe:u.default}},function(e,t){function n(e,t){var n=t.currentCaretPosition,i=t.rawValue,d=t.previousConformedValue,f=t.placeholderChar,h=e,m=(h=o(h)).indexOf(s);if(null===i.match(new RegExp("[^@\\s."+f+"]")))return a;if(-1!==h.indexOf(c)||-1!==m&&n!==m+1||-1===i.indexOf(r)&&d!==a&&-1!==i.indexOf(l))return!1;var v=h.indexOf(r);return(h.slice(v+1,h.length).match(p)||u).length>1&&h.substr(-1)===l&&n!==i.length&&(h=h.slice(0,h.length-1)),h}function o(e){var t=0;return e.replace(i,(function(){return 1==++t?r:a}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r="@",i=/@/g,a="",s="@.",l=".",c="..",u=[],p=/\./g}])),nR={minYear:1930,maxYear:2123},oR=function(e,t){e.stopPropagation(),null==t||t()},rR=function(o){var r=o.value,i=o.leftIcon,a=o.rightIcon,s=o.onChange,l=o.onBlur,c=o.disabled,u=o.isError,p=o.placeholder,d=o.isEditMode,m=void 0===d||d,v=o.type,g=void 0===v?"text":v,b=o.internalConfig,y=o.config,w=h(o,["value","leftIcon","rightIcon","onChange","onBlur","disabled","isError","placeholder","isEditMode","type","internalConfig","config"]),C=n.useState(!1),E=C[0],O=C[1],D=n.useRef(null),S=function(e){switch(e){case"text":return{type:"text",inputMode:"text"};case"phone_number":return{type:"tel",inputMode:"tel"};case"password":return{type:"password",inputMode:"text"};default:return{}}}(g),k=function(e,t){var n=(t||{}).maskPlaceholder;switch(e){case"month_year_date":return{keepCharPositions:!0,mask:fP,placeholder:n||"09/1970",pipe:pN.exports.createAutoCorrectedDatePipe("mm/yyyy",nR)};case"day_month_year_date":return{keepCharPositions:!0,mask:dP,placeholder:n||"25/09/1970",pipe:pN.exports.createAutoCorrectedDatePipe("dd/mm/yyyy",nR)};case"month_day_year_date":return{keepCharPositions:!0,mask:pP,placeholder:n||"09/25/1970",pipe:pN.exports.createAutoCorrectedDatePipe("mm/dd/yyyy",nR)};case"year_month_day_date":return{keepCharPositions:!0,mask:uP,placeholder:n||"1970/09/25",pipe:pN.exports.createAutoCorrectedDatePipe("yyyy/mm/dd",nR)};case"phone_number":return{keepCharPositions:!0,mask:hP,placeholder:n||"(555) 495-3947"};case"email":return{mask:tR,placeholder:n||"example@mail.com"};case"us_zip_code":return{keepCharPositions:!0,mask:cP,placeholder:n||"12345"};case"integer":return{mask:mP,placeholder:n||"123"};case"numerical":return{mask:vP,placeholder:n||"123.45"};default:return{mask:!1}}}(g,y),T=e.useTheme().colors,j=T[function(e){var t=e.isEditMode,n=e.isFocused,o=e.isError,r=e.disabled;return t?r?"gray3":o?"red":n?"gray1":"gray3":"gray1"}({isFocused:E,isError:u,disabled:c,isEditMode:m})],M=b||{},A=M.horizontalPadding,N=void 0===A?0:A,P=M.verticalPadding,R=void 0===P?0:P,B=M.placeholderTextColor,F=M.placeholderTextFontSize,_=M.textColor,L=M.textFontSize,I=M.styles,$=M.wrapperStyles,z=e.css(MN||(MN=x(["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "],["\n ",";\n ",";\n ",";\n &::placeholder {\n ",";\n ",";\n }\n ",";\n "])),_?"color: ".concat(T[_]||_,";"):"",L?"font-size: ".concat(L,"px;"):"",N||R?"padding: ".concat(R,"px ").concat(N,"px;"):"",F?"font-size: ".concat(F,"px;"):"",B?"color: ".concat(T[B]||B,";"):"",I);return t.jsxs(iR,f({withoutOpacityEffect:!0,disabled:!m||c,isEditMode:m,isFocused:E,isError:u,$styles:$,onClick:function(){var e;return null===(e=D.current)||void 0===e?void 0:e.inputElement.focus()}},{children:[!!i&&t.jsx(lR,f({withoutOpacityEffect:!i.onClick,onClick:function(e){return oR(e,i.onClick)}},{children:t.jsx(LD,{name:i.name,color:j})})),t.jsx(aR,f({value:r,$styles:z,onChange:function(e){return null==s?void 0:s(e.target.value)},onFocus:function(){return O(!0)},onBlur:function(){O(!1),null==l||l()},ref:D,isError:u,disabled:!m||c,placeholder:p,isEditMode:m,autoComplete:"off"},w,S,k)),!!a&&t.jsx(cR,f({withoutOpacityEffect:!a.onClick,onClick:function(e){return oR(e,a.onClick)}},{children:t.jsx(LD,{name:a.name,color:j})}))]}))},iR=l.default(w)(PN||(PN=x(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"],["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition: 0.25s;\n\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isEditMode,a=t.disabled,s=t.isFocused,l=t.isError,c=t.$styles,u=r.gray3,p="1px",d="53px",f="transparent";return i?a?(u="transparent",f=r.gray4):l?u=r.red:s&&(u=r.gray1):(u="transparent",p="0",d="auto"),e.css(NN||(NN=x(["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "],["\n border: "," solid ",";\n border-radius: ","px;\n height: ",";\n padding: ","px;\n cursor: ",";\n background-color: ",";\n\n ","\n ",";\n "])),p,u,o.S,d,i?o.M:0,i&&!a?"text":"unset",f,i&&!a&&e.css(AN||(AN=x(["\n &:hover {\n border-color: ",";\n }\n "],["\n &:hover {\n border-color: ",";\n }\n "])),r.gray1),c)})),aR=l.default(QP)(BN||(BN=x(["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"],["\n width: 100%;\n height: 100%;\n outline: none;\n border: none;\n transition: 0.25s;\n padding: 0;\n ","\n"])),(function(t){var n=t.theme,o=n.fonts,r=n.colors,i=t.isError,a=t.disabled,s=t.isEditMode,l=t.state,c=t.$styles,u=r.gray1,p=r.gray3,d=s?r.gray4:"transparent";return s?a?(u=r.gray3,p=r.gray3):i?(u=r.red,p=r.red):"success"===l&&(p=r.gray1):(u=r.gray1,p=r.gray3),e.css(RN||(RN=x(["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "],["\n ",";\n color: ",";\n &::placeholder {\n ","\n color: ",";\n }\n background-color: transparent;\n\n &:disabled {\n background-color: ",";\n }\n ","\n "])),o.M,u,o.M,p,d,c)})),sR=l.default(w)(FN||(FN=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),lR=l.default(sR)(_N||(_N=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes.S})),cR=l.default(sR)(LN||(LN=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),uR=e.keyframes(IN||(IN=x(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),pR=l.default.div($N||($N=x(["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"],["\n border: 0.2em solid rgba(0, 0, 0, 0.1);\n border-top: 0.2em solid ",";\n border-radius: 50%;\n width: ","px;\n height: ","px;\n animation: "," 0.6s linear infinite;\n"])),(function(e){var t=e.theme,n=e.color,o=void 0===n?"secondary":n;return t.colors[o]}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),(function(e){var t=e.theme,n=e.size;return n?t.sizes[n]:12}),uR),dR=l.default.img(VN||(VN=x(["\n display: block;\n ","\n"],["\n display: block;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(zN||(zN=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),fR=l.default(dR)(UN||(UN=x(["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"],["\n object-fit: cover;\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 0;\n ","\n"])),(function(t){var n=t.height,o=void 0===n?"100%":n,r=t.width,i=void 0===r?"100%":r,a=t.cornerRadius,s=void 0===a?0:a,l=t.$styles;return e.css(WN||(WN=x(["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "],["\n width: ",";\n height: ",";\n border-radius: ","px;\n ","\n "])),"number"==typeof i?"".concat(i,"px"):i,"number"==typeof o?"".concat(o,"px"):o,s,l)})),hR=l.default.a.attrs({target:"_blank"})(YN||(YN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=t.disabled,a=t.size,s=void 0===a?"medium":a,l=t.colorTheme,c=void 0===l?"light":l,u=t.$styles,p=t.$variant,d=void 0===p?"link":p,f=o["light"===c?"blue":"gray4"],h=o["light"===c?"blueShade":"white"],m=o["light"===c?"gray4":"indigoTint2"],v=o["light"===c?"blue":"white"],g=o["light"===c?"blueShade":"gray4"],b=e.css(HN||(HN=x(["\n ","\n\n &:visited {\n ","\n }\n "],["\n ","\n\n &:visited {\n ","\n }\n "])),u,u);return e.css(GN||(GN=x(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n \n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n \n ","\n "])),r["medium"===s?"M":"S"],f,f,g,h,v,m,"small"===s&&e.css(qN||(qN=x(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),o.gray2,o.gray2,o.gray3,o.gray1,o.gray4,o.gray1),i&&e.css(XN||(XN=x(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),o.gray3,o.gray3,o.gray3),"custom"===d&&u&&b)})),mR={DEFAULT:"Minus",ERROR:"Close",SUCCESS:"Check"},vR=function(n){var o=n.text,r=n.status,i=function(t){var n=e.useTheme().colors;switch(t){case"SUCCESS":return{color:n.greenShade,backgroundColor:n.greenTint,borderColor:"transparent"};case"ERROR":return{color:n.redShade,backgroundColor:n.redTint,borderColor:"transparent"};default:return{color:n.gray2,backgroundColor:"transparent",borderColor:n.gray3}}}(r),a=i.backgroundColor,s=i.color,l=i.borderColor,c=e.useTheme().sizes;return t.jsxs(gR,f({style:{backgroundColor:a,borderColor:l}},{children:[t.jsx(LD,{size:c.M,name:mR[r],color:s}),t.jsx(RP,{width:"S"}),t.jsx(BP,f({variant:"M",color:s},{children:o}))]}))},gR=l.default.div(ZN||(ZN=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(KN||(KN=x(["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "],["\n display: flex;\n width: fit-content;\n align-items: center;\n border-radius: ","px;\n border: 1.5px solid transparent;\n padding: ","px ","px ","px ","px;\n "])),n.M,n.XS,n.M,n.XS,n.S)}));function xR(e){return xR="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},xR(e)}function bR(e){var t=function(e,t){if("object"!==xR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==xR(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xR(t)?t:String(t)}function yR(e,t,n){return(t=bR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function CR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wR(Object(n),!0).forEach((function(t){yR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ER(e,t){if(null==e)return{};var n,o,r=jl(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,bR(o.key),o)}}function SR(e,t,n){return t&&DR(e.prototype,t),n&&DR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ml(e,t)}function TR(e){return TR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TR(e)}function jR(e,t){if(t&&("object"===xR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hl(e)}function MR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=TR(e);if(t){var r=TR(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return jR(this,n)}}var AR=function(e){return+setTimeout(e,16)},NR=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(AR=function(e){return window.requestAnimationFrame(e)},NR=function(e){return window.cancelAnimationFrame(e)});var PR=0,RR=new Map;function BR(e){RR.delete(e)}function FR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=PR+=1;function o(t){if(0===t)BR(n),e();else{var r=AR((function(){o(t-1)}));RR.set(n,r)}}return o(t),n}function _R(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function LR(e){return e instanceof HTMLElement?e:d.default.findDOMNode(e)}FR.cancel=function(e){var t=RR.get(e);return BR(t),NR(t)};var IR,$R={exports:{}},zR={};var VR,WR={};
|
242
242
|
/** @license React v16.13.1
|
243
243
|
* react-is.development.js
|
244
244
|
*
|
@@ -246,16 +246,16 @@ function ID(e){return"[object Object]"===Object.prototype.toString.call(e)}funct
|
|
246
246
|
*
|
247
247
|
* This source code is licensed under the MIT license found in the
|
248
248
|
* LICENSE file in the root directory of this source tree.
|
249
|
-
*/function
|
249
|
+
*/function UR(e,t){"function"==typeof e?e(t):"object"===xR(e)&&e&&"current"in e&&(e.current=t)}function HR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter((function(e){return e}));return o.length<=1?o[0]:function(e){t.forEach((function(t){UR(t,e)}))}}function qR(e){var t,n,o=$R.exports.isMemo(e)?e.type.type:e.type;return!("function"==typeof o&&!(null===(t=o.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}function XR(e,t,n,o){var r=d.default.unstable_batchedUpdates?function(e){d.default.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,r,o)}}}function GR(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(IR)return zR;IR=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case o:case i:case r:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return d}}case n:return d}}}function y(e){return b(e)===c}return zR.AsyncMode=l,zR.ConcurrentMode=c,zR.ContextConsumer=s,zR.ContextProvider=a,zR.Element=t,zR.ForwardRef=u,zR.Fragment=o,zR.Lazy=h,zR.Memo=f,zR.Portal=n,zR.Profiler=i,zR.StrictMode=r,zR.Suspense=p,zR.isAsyncMode=function(e){return y(e)||b(e)===l},zR.isConcurrentMode=y,zR.isContextConsumer=function(e){return b(e)===s},zR.isContextProvider=function(e){return b(e)===a},zR.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zR.isForwardRef=function(e){return b(e)===u},zR.isFragment=function(e){return b(e)===o},zR.isLazy=function(e){return b(e)===h},zR.isMemo=function(e){return b(e)===f},zR.isPortal=function(e){return b(e)===n},zR.isProfiler=function(e){return b(e)===i},zR.isStrictMode=function(e){return b(e)===r},zR.isSuspense=function(e){return b(e)===p},zR.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===x||e.$$typeof===m)},zR.typeOf=b,zR}():e.exports=(VR||(VR=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var m=e.type;switch(m){case l:case c:case o:case i:case r:case p:return m;default:var v=m&&m.$$typeof;switch(v){case s:case u:case h:case f:case a:return v;default:return d}}case n:return d}}}var y=l,w=c,C=s,E=a,O=t,D=u,S=o,k=h,T=f,j=n,M=i,A=r,N=p,P=!1;function R(e){return b(e)===c}WR.AsyncMode=y,WR.ConcurrentMode=w,WR.ContextConsumer=C,WR.ContextProvider=E,WR.Element=O,WR.ForwardRef=D,WR.Fragment=S,WR.Lazy=k,WR.Memo=T,WR.Portal=j,WR.Profiler=M,WR.StrictMode=A,WR.Suspense=N,WR.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||b(e)===l},WR.isConcurrentMode=R,WR.isContextConsumer=function(e){return b(e)===s},WR.isContextProvider=function(e){return b(e)===a},WR.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},WR.isForwardRef=function(e){return b(e)===u},WR.isFragment=function(e){return b(e)===o},WR.isLazy=function(e){return b(e)===h},WR.isMemo=function(e){return b(e)===f},WR.isPortal=function(e){return b(e)===n},WR.isProfiler=function(e){return b(e)===i},WR.isStrictMode=function(e){return b(e)===r},WR.isSuspense=function(e){return b(e)===p},WR.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===x||e.$$typeof===m)},WR.typeOf=b}()),WR)}($R);var YR=n.forwardRef((function(e,t){var o=e.didUpdate,r=e.getContainer,i=e.children,a=n.useRef(),s=n.useRef();n.useImperativeHandle(t,(function(){return{}}));var l=n.useRef(!1);return!l.current&&GR()&&(s.current=r(),a.current=s.current.parentNode,l.current=!0),n.useEffect((function(){null==o||o(e)})),n.useEffect((function(){return null===s.current.parentNode&&null!==a.current&&a.current.appendChild(s.current),function(){var e,t;null===(e=s.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(s.current)}}),[]),s.current?d.default.createPortal(i,s.current):null})),KR={exports:{}};
|
250
250
|
/*!
|
251
251
|
Copyright (c) 2018 Jed Watson.
|
252
252
|
Licensed under the MIT License (MIT), see
|
253
253
|
http://jedwatson.github.io/classnames
|
254
254
|
*/
|
255
|
-
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)t.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(YR);var KR=YR.exports;function ZR(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function JR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function QR(e,t){if(e){if("string"==typeof e)return JR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JR(e,t):void 0}}function eB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||QR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tB(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var nB,oB,rB,iB=(nB=XR(),oB="undefined"!=typeof window?window:{},rB={animationend:tB("Animation","AnimationEnd"),transitionend:tB("Transition","TransitionEnd")},nB&&("AnimationEvent"in oB||delete rB.animationend.animation,"TransitionEvent"in oB||delete rB.transitionend.transition),rB),aB={};if(XR()){var sB=document.createElement("div");aB=sB.style}var lB={};function cB(e){if(lB[e])return lB[e];var t=iB[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in aB)return lB[e]=t[i],lB[e]}return""}var uB=cB("animationend"),pB=cB("transitionend"),dB=!(!uB||!pB),fB=uB||"animationend",hB=pB||"transitionend";function mB(e,t){if(!e)return null;if("object"===gR(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}function vB(e){var t=c.useRef(!1),n=eB(c.useState(e),2),o=n[0],r=n[1];return c.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||r(e)}]}var gB=XR()?n.useLayoutEffect:n.useEffect,xB=["prepare","start","active","end"];function bB(e){return"active"===e||"end"===e}var yB=function(e,t){var n=eB(vB("none"),2),o=n[0],r=n[1],i=function(){var e=c.useRef(null);function t(){BR.cancel(e.current)}return c.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=BR((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),a=eB(i,2),s=a[0],l=a[1];return gB((function(){if("none"!==o&&"end"!==o){var e=xB.indexOf(o),n=xB[e+1],i=t(o);false===i?r(n,!0):s((function(e){function t(){e.isCanceled()||r(n,!0)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,o]),c.useEffect((function(){return function(){l()}}),[]),[function(){r("prepare",!0)},o]};function wB(e,t,o,r){var i=r.motionEnter,a=void 0===i||i,s=r.motionAppear,l=void 0===s||s,u=r.motionLeave,p=void 0===u||u,d=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,x=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,C=r.onLeaveActive,E=r.onAppearEnd,O=r.onEnterEnd,D=r.onLeaveEnd,S=r.onVisibleChanged,k=eB(vB(),2),T=k[0],j=k[1],M=eB(vB("none"),2),A=M[0],N=M[1],P=eB(vB(null),2),R=P[0],B=P[1],F=n.useRef(!1),_=n.useRef(null);function L(){return o()}var I=n.useRef(!1);function $(e){var t=L();if(!e||e.deadline||e.target===t){var n,o=I.current;"appear"===A&&o?n=null==E?void 0:E(t,e):"enter"===A&&o?n=null==O?void 0:O(t,e):"leave"===A&&o&&(n=null==D?void 0:D(t,e)),"none"!==A&&o&&!1!==n&&(N("none",!0),B(null,!0))}}var z=function(e){var t=n.useRef(),o=n.useRef(e);o.current=e;var r=c.useCallback((function(e){o.current(e)}),[]);function i(e){e&&(e.removeEventListener(hB,r),e.removeEventListener(fB,r))}return c.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(hB,r),e.addEventListener(fB,r),t.current=e)},i]}($),V=eB(z,1)[0],W=c.useMemo((function(){var e,t,n;switch(A){case"appear":return bR(e={},"prepare",h),bR(e,"start",g),bR(e,"active",y),e;case"enter":return bR(t={},"prepare",m),bR(t,"start",x),bR(t,"active",w),t;case"leave":return bR(n={},"prepare",v),bR(n,"start",b),bR(n,"active",C),n;default:return{}}}),[A]),U=eB(yB(A,(function(e){if("prepare"===e){var t=W.prepare;return!!t&&t(L())}var n;q in W&&B((null===(n=W[q])||void 0===n?void 0:n.call(W,L(),null))||null);return"active"===q&&(V(L()),d>0&&(clearTimeout(_.current),_.current=setTimeout((function(){$({deadline:!0})}),d))),true})),2),H=U[0],q=U[1],X=bB(q);I.current=X,gB((function(){j(t);var n,o=F.current;(F.current=!0,e)&&(!o&&t&&l&&(n="appear"),o&&t&&a&&(n="enter"),(o&&!t&&p||!o&&f&&!t&&p)&&(n="leave"),n&&(N(n),H()))}),[t]),n.useEffect((function(){("appear"===A&&!l||"enter"===A&&!a||"leave"===A&&!p)&&N("none")}),[l,a,p]),n.useEffect((function(){return function(){F.current=!1,clearTimeout(_.current)}}),[]);var G=c.useRef(!1);n.useEffect((function(){T&&(G.current=!0),void 0!==T&&"none"===A&&((G.current||T)&&(null==S||S(T)),G.current=!0)}),[T,A]);var Y=R;return W.prepare&&"start"===q&&(Y=wR({transition:"none"},Y)),[A,q,Y,null!=T?T:t]}var CB=function(e){SR(n,c.Component);var t=jR(n);function n(){return ER(this,n),t.apply(this,arguments)}return DR(n,[{key:"render",value:function(){return this.props.children}}]),n}();var EB=function(e){var t=e;function o(e){return!(!e.motionName||!t)}"object"===gR(e)&&(t=e.transitionSupport);var r=c.forwardRef((function(e,t){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,s=void 0===a||a,l=e.forceRender,u=e.children,p=e.motionName,d=e.leavedClassName,f=e.eventProps,h=o(e),m=n.useRef(),v=n.useRef();var g=eB(wB(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:_R(v.current)}catch(e){return null}}),e),4),x=g[0],b=g[1],y=g[2],w=g[3],C=c.useRef(w);w&&(C.current=!0);var E,O=c.useCallback((function(e){m.current=e,WR(t,e)}),[t]),D=wR(wR({},f),{},{visible:i});if(u)if("none"!==x&&o(e)){var S,k;"prepare"===b?k="prepare":bB(b)?k="active":"start"===b&&(k="start"),E=u(wR(wR({},D),{},{className:KR(mB(p,x),(S={},bR(S,mB(p,"".concat(x,"-").concat(k)),k),bR(S,p,"string"==typeof p),S)),style:y}),O)}else E=w?u(wR({},D),O):!s&&C.current?u(wR(wR({},D),{},{className:d}),O):l?u(wR(wR({},D),{},{style:{display:"none"}}),O):null;else E=null;c.isValidElement(E)&&HR(E)&&(E.ref||(E=c.cloneElement(E,{ref:O})));return c.createElement(CB,{ref:v},E)}));return r.displayName="CSSMotion",r}(dB);function OB(e){var t;return wR(wR({},t=e&&"object"===gR(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function DB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(OB)}function SB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=DB(e),a=DB(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return wR(wR({},e),{},{status:"add"})}))),o=i),n.push(wR(wR({},s),{},{status:"keep"})),o+=1,t=!0;break}}t||n.push(wR(wR({},e),{},{status:"remove"}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return wR(wR({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||"remove"!==o}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var kB=["component","children","onVisibleChanged","onAllRemoved"],TB=["status"],jB=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var MB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EB,n=function(e){SR(o,c.Component);var n=jR(o);function o(){var e;ER(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:wR(wR({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return DR(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,a=o.onVisibleChanged,s=o.onAllRemoved,l=CR(o,kB),u=r||c.Fragment,p={};return jB.forEach((function(e){p[e]=l[e],delete l[e]})),delete l.keys,c.createElement(u,l,n.map((function(n){var o=n.status,r=CR(n,TB),l="add"===o||"keep"===o;return c.createElement(t,Tl({},p,{key:r.key,visible:l,eventProps:r,onVisibleChanged:function(t){(null==a||a(t,{key:r.key}),t)||0===e.removeKey(r.key)&&s&&s()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=DB(n);return{keyEntities:SB(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}();return n.defaultProps={component:"div"},n}(dB);function AB(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function NB(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,r=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!r)return null;var l={};return(i||s||a)&&(l=wR({motionAppear:!0},AB({motion:i,prefixCls:t,transitionName:s,animation:a}))),c.createElement(EB,Tl({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:KR("".concat(t,"-mask"),n)})}))}var PB,RB=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}return!1};function BB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function FB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BB(Object(n),!0).forEach((function(t){LB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _B(e){return _B="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},_B(e)}function LB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IB={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function $B(){if(void 0!==PB)return PB;PB="";var e=document.createElement("p").style;for(var t in IB)t+"Transform"in e&&(PB=t);return PB}function zB(){return $B()?"".concat($B(),"TransitionProperty"):"transitionProperty"}function VB(){return $B()?"".concat($B(),"Transform"):"transform"}function WB(e,t){var n=zB();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function UB(e,t){var n=VB();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var HB,qB=/matrix\((.*)\)/,XB=/matrix3d\((.*)\)/;function GB(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function YB(e,t,n){var o=n;if("object"!==_B(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):HB(e,t);for(var r in t)t.hasOwnProperty(r)&&YB(e,r,t[r])}function KB(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function ZB(e){return KB(e)}function JB(e){return KB(e,!0)}function QB(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=ZB(o),t.top+=JB(o),t}function eF(e){return null!=e&&e==e.window}function tF(e){return eF(e)?e.document:9===e.nodeType?e:e.ownerDocument}var nF=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),oF=/^(top|right|bottom|left)$/;function rF(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function iF(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function aF(e,t,n){"static"===YB(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=rF("left",n),a=rF("top",n),s=iF(i),l=iF(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var c,u="",p=QB(e);("left"in t||"top"in t)&&(u=(c=e).style.transitionProperty||c.style[zB()]||"",WB(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(r,"px")),GB(e);var d=QB(e),f={};for(var h in t)if(t.hasOwnProperty(h)){var m=rF(h,n),v="left"===h?o:r,g=p[h]-d[h];f[m]=m===h?v+g:v-g}YB(e,f),GB(e),("left"in t||"top"in t)&&WB(e,u);var x={};for(var b in t)if(t.hasOwnProperty(b)){var y=rF(b,n),w=t[b]-p[b];x[y]=b===y?f[y]+w:f[y]-w}YB(e,x)}function sF(e,t){var n=QB(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(VB());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(VB());if(o&&"none"!==o){var r,i=o.match(qB);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,UB(e,"matrix(".concat(r.join(","),")"))):((r=o.match(XB)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,UB(e,"matrix3d(".concat(r.join(","),")")))}else UB(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function lF(e,t){for(var n=0;n<e.length;n++)t(e[n])}function cF(e){return"border-box"===HB(e,"boxSizing")}"undefined"!=typeof window&&(HB=window.getComputedStyle?function(e,t,n){var o=n,r="",i=tF(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(nF.test(n)&&!oF.test(t)){var o=e.style,r=o.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=r,e.runtimeStyle.left=i}return""===n?"auto":n});var uF=["margin","border","padding"];function pF(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}function dF(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var s=void 0;s="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(HB(e,s))||0}return a}var fF={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function hF(e,t,n){var o=n;if(eF(e))return"width"===t?fF.viewportWidth(e):fF.viewportHeight(e);if(9===e.nodeType)return"width"===t?fF.docWidth(e):fF.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=cF(e),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=HB(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===o&&(o=a?1:-1);var l=void 0!==i||a,c=i||s;return-1===o?l?c-dF(e,["border","padding"],r):s:l?1===o?c:c+(2===o?-dF(e,["border"],r):dF(e,["margin"],r)):s+dF(e,uF.slice(o),r)}lF(["Width","Height"],(function(e){fF["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],fF["viewport".concat(e)](n))},fF["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var mF={position:"absolute",visibility:"hidden",display:"block"};function vF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=hF.apply(void 0,t):pF(r,mF,(function(){o=hF.apply(void 0,t)})),o}function gF(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}lF(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);fF["outer".concat(t)]=function(t,n){return t&&vF(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];fF[e]=function(t,o){var r=o;return void 0!==r?t?(cF(t)&&(r+=dF(t,["padding","border"],n)),YB(t,e,r)):void 0:t&&vF(t,e,-1)}}));var xF={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:tF,offset:function(e,t,n){if(void 0===t)return QB(e);!function(e,t,n){if(n.ignoreShake){var o=QB(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(r===a&&i===s)return}n.useCssRight||n.useCssBottom?aF(e,t,n):n.useCssTransform&&VB()in document.body.style?sF(e,t):aF(e,t,n)}(e,t,n||{})},isWindow:eF,each:lF,css:YB,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:gF,getWindowScrollLeft:function(e){return ZB(e)},getWindowScrollTop:function(e){return JB(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)xF.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};gF(xF,fF);var bF=xF.getParent;function yF(e){if(xF.isWindow(e)||9===e.nodeType)return null;var t,n=xF.getDocument(e).body,o=xF.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:bF(e);for(t=bF(e);t&&t!==n&&9!==t.nodeType;t=bF(t))if("static"!==(o=xF.css(t,"position")))return t;return null}var wF=xF.getParent;function CF(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=yF(e),r=xF.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,s=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===s||"visible"===xF.css(o,"overflow")){if(o===a||o===s)break}else{var l=xF.offset(o);l.left+=o.clientLeft,l.top+=o.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+o.clientWidth),n.bottom=Math.min(n.bottom,l.top+o.clientHeight),n.left=Math.max(n.left,l.left)}o=yF(o)}var c=null;xF.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===xF.css(e,"position")&&(e.style.position="fixed"));var u=xF.getWindowScrollLeft(i),p=xF.getWindowScrollTop(i),d=xF.viewportWidth(i),f=xF.viewportHeight(i),h=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(xF.isWindow(e)||9===e.nodeType)return!1;var t=xF.getDocument(e),n=t.body,o=null;for(o=wF(e);o&&o!==n&&o!==t;o=wF(o))if("fixed"===xF.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,p),n.right=Math.min(n.right,u+d),n.bottom=Math.min(n.bottom,p+f);else{var g=Math.max(h,u+d);n.right=Math.min(n.right,g);var x=Math.max(m,p+f);n.bottom=Math.min(n.bottom,x)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function EF(e){var t,n,o;if(xF.isWindow(e)||9===e.nodeType){var r=xF.getWindow(e);t={left:xF.getWindowScrollLeft(r),top:xF.getWindowScrollTop(r)},n=xF.viewportWidth(r),o=xF.viewportHeight(r)}else t=xF.offset(e),n=xF.outerWidth(e),o=xF.outerHeight(e);return t.width=n,t.height=o,t}function OF(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:s}}function DF(e,t,n,o,r){var i=OF(t,n[1]),a=OF(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+o[0]-r[0]),top:Math.round(e.top-s[1]+o[1]-r[1])}}function SF(e,t,n){return e.left<n.left||e.left+t.width>n.right}function kF(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function TF(e,t,n){var o=[];return xF.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function jF(e,t){return e[t]=-e[t],e}function MF(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function AF(e,t){e[0]=MF(e[0],t.width),e[1]=MF(e[1],t.height)}function NF(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var c={},u=0,p=CF(l,!(!(s=s||{})||!s.alwaysByViewport)),d=EF(l);AF(i,d),AF(a,t);var f=DF(d,t,r,i,a),h=xF.merge(d,f);if(p&&(s.adjustX||s.adjustY)&&o){if(s.adjustX&&SF(f,d,p)){var m=TF(r,/[lr]/gi,{l:"r",r:"l"}),v=jF(i,0),g=jF(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(DF(d,t,m,v,g),d,p)||(u=1,r=m,i=v,a=g)}if(s.adjustY&&kF(f,d,p)){var x=TF(r,/[tb]/gi,{t:"b",b:"t"}),b=jF(i,1),y=jF(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(DF(d,t,x,b,y),d,p)||(u=1,r=x,i=b,a=y)}u&&(f=DF(d,t,r,i,a),xF.mix(h,f));var w=SF(f,d,p),C=kF(f,d,p);if(w||C){var E=r;w&&(E=TF(r,/[lr]/gi,{l:"r",r:"l"})),C&&(E=TF(r,/[tb]/gi,{t:"b",b:"t"})),r=E,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&w,c.adjustY=s.adjustY&&C,(c.adjustX||c.adjustY)&&(h=function(e,t,n,o){var r=xF.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),xF.mix(r,i)}(f,d,p,c))}return h.width!==d.width&&xF.css(l,"width",xF.width(l)+h.width-d.width),h.height!==d.height&&xF.css(l,"height",xF.height(l)+h.height-d.height),xF.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:c}}function PF(e,t,n){var o=n.target||t,r=EF(o),i=!function(e,t){var n=CF(e,t),o=EF(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return NF(e,r,n,i)}PF.__getOffsetParent=yF,PF.__getVisibleRectForElement=CF;var RF=function(){this.__data__=[],this.size=0};var BF=function(e,t){return e===t||e!=e&&t!=t},FF=BF;var _F=function(e,t){for(var n=e.length;n--;)if(FF(e[n][0],t))return n;return-1},LF=_F,IF=Array.prototype.splice;var $F=function(e){var t=this.__data__,n=LF(t,e);return!(n<0)&&(n==t.length-1?t.pop():IF.call(t,n,1),--this.size,!0)},zF=_F;var VF=function(e){var t=this.__data__,n=zF(t,e);return n<0?void 0:t[n][1]},WF=_F;var UF=_F;var HF=function(e,t){var n=this.__data__,o=UF(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},qF=RF,XF=$F,GF=VF,YF=function(e){return WF(this.__data__,e)>-1},KF=HF;function ZF(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ZF.prototype.clear=qF,ZF.prototype.delete=XF,ZF.prototype.get=GF,ZF.prototype.has=YF,ZF.prototype.set=KF;var JF=ZF,QF=JF;var e_=function(){this.__data__=new QF,this.size=0};var t_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var n_=function(e){return this.__data__.get(e)};var o_=function(e){return this.__data__.has(e)},r_=YT,i_=ST;var a_=function(e){if(!i_(e))return!1;var t=r_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},s_=MT["__core-js_shared__"],l_=function(){var e=/[^.]+$/.exec(s_&&s_.keys&&s_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var c_=function(e){return!!l_&&l_ in e},u_=Function.prototype.toString;var p_=function(e){if(null!=e){try{return u_.call(e)}catch(e){}try{return e+""}catch(e){}}return""},d_=a_,f_=c_,h_=ST,m_=p_,v_=/^\[object .+?Constructor\]$/,g_=Function.prototype,x_=Object.prototype,b_=g_.toString,y_=x_.hasOwnProperty,w_=RegExp("^"+b_.call(y_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var C_=function(e){return!(!h_(e)||f_(e))&&(d_(e)?w_:v_).test(m_(e))},E_=function(e,t){return null==e?void 0:e[t]};var O_=function(e,t){var n=E_(e,t);return C_(n)?n:void 0},D_=O_(MT,"Map"),S_=O_(Object,"create"),k_=S_;var T_=function(){this.__data__=k_?k_(null):{},this.size=0};var j_=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},M_=S_,A_=Object.prototype.hasOwnProperty;var N_=function(e){var t=this.__data__;if(M_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return A_.call(t,e)?t[e]:void 0},P_=S_,R_=Object.prototype.hasOwnProperty;var B_=S_;var F_=T_,__=j_,L_=N_,I_=function(e){var t=this.__data__;return P_?void 0!==t[e]:R_.call(t,e)},$_=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=B_&&void 0===t?"__lodash_hash_undefined__":t,this};function z_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}z_.prototype.clear=F_,z_.prototype.delete=__,z_.prototype.get=L_,z_.prototype.has=I_,z_.prototype.set=$_;var V_=z_,W_=JF,U_=D_;var H_=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var q_=function(e,t){var n=e.__data__;return H_(t)?n["string"==typeof t?"string":"hash"]:n.map},X_=q_;var G_=function(e){var t=X_(this,e).delete(e);return this.size-=t?1:0,t},Y_=q_;var K_=q_;var Z_=q_;var J_=function(){this.size=0,this.__data__={hash:new V_,map:new(U_||W_),string:new V_}},Q_=G_,eL=function(e){return Y_(this,e).get(e)},tL=function(e){return K_(this,e).has(e)},nL=function(e,t){var n=Z_(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function oL(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}oL.prototype.clear=J_,oL.prototype.delete=Q_,oL.prototype.get=eL,oL.prototype.has=tL,oL.prototype.set=nL;var rL=oL,iL=JF,aL=D_,sL=rL;var lL=JF,cL=e_,uL=t_,pL=n_,dL=o_,fL=function(e,t){var n=this.__data__;if(n instanceof iL){var o=n.__data__;if(!aL||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new sL(o)}return n.set(e,t),this.size=n.size,this};function hL(e){var t=this.__data__=new lL(e);this.size=t.size}hL.prototype.clear=cL,hL.prototype.delete=uL,hL.prototype.get=pL,hL.prototype.has=dL,hL.prototype.set=fL;var mL=hL;var vL=rL,gL=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},xL=function(e){return this.__data__.has(e)};function bL(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vL;++t<n;)this.add(e[t])}bL.prototype.add=bL.prototype.push=gL,bL.prototype.has=xL;var yL=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var wL=bL,CL=yL,EL=function(e,t){return e.has(t)};var OL=function(e,t,n,o,r,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,f=2&n?new wL:void 0;for(i.set(e,t),i.set(t,e);++p<s;){var h=e[p],m=t[p];if(o)var v=a?o(m,h,p,t,e,i):o(h,m,p,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!CL(t,(function(e,t){if(!EL(f,t)&&(h===e||r(h,e,n,o,i)))return f.push(t)}))){d=!1;break}}else if(h!==m&&!r(h,m,n,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var DL=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var SL=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},kL=MT.Uint8Array,TL=BF,jL=OL,ML=DL,AL=SL,NL=LT?LT.prototype:void 0,PL=NL?NL.valueOf:void 0;var RL=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new kL(e),new kL(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return TL(+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 s=ML;case"[object Set]":var l=1&o;if(s||(s=AL),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var u=jL(s(e),s(t),o,r,i,a);return a.delete(e),u;case"[object Symbol]":if(PL)return PL.call(e)==PL.call(t)}return!1};var BL=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},FL=Array.isArray,_L=BL,LL=FL;var IL=function(e,t,n){var o=t(e);return LL(e)?o:_L(o,n(e))};var $L=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var zL=$L,VL=function(){return[]},WL=Object.prototype.propertyIsEnumerable,UL=Object.getOwnPropertySymbols,HL=UL?function(e){return null==e?[]:(e=Object(e),zL(UL(e),(function(t){return WL.call(e,t)})))}:VL,qL=HL;var XL=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},GL=YT,YL=KT;var KL=function(e){return YL(e)&&"[object Arguments]"==GL(e)},ZL=KT,JL=Object.prototype,QL=JL.hasOwnProperty,eI=JL.propertyIsEnumerable,tI=KL(function(){return arguments}())?KL:function(e){return ZL(e)&&QL.call(e,"callee")&&!eI.call(e,"callee")},nI={exports:{}};var oI=function(){return!1};!function(e,t){var n=MT,o=oI,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o;e.exports=s}(nI,nI.exports);var rI=/^(?:0|[1-9]\d*)$/;var iI=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&rI.test(e))&&e>-1&&e%1==0&&e<t};var aI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},sI=YT,lI=aI,cI=KT,uI={};uI["[object Float32Array]"]=uI["[object Float64Array]"]=uI["[object Int8Array]"]=uI["[object Int16Array]"]=uI["[object Int32Array]"]=uI["[object Uint8Array]"]=uI["[object Uint8ClampedArray]"]=uI["[object Uint16Array]"]=uI["[object Uint32Array]"]=!0,uI["[object Arguments]"]=uI["[object Array]"]=uI["[object ArrayBuffer]"]=uI["[object Boolean]"]=uI["[object DataView]"]=uI["[object Date]"]=uI["[object Error]"]=uI["[object Function]"]=uI["[object Map]"]=uI["[object Number]"]=uI["[object Object]"]=uI["[object RegExp]"]=uI["[object Set]"]=uI["[object String]"]=uI["[object WeakMap]"]=!1;var pI=function(e){return cI(e)&&lI(e.length)&&!!uI[sI(e)]};var dI=function(e){return function(t){return e(t)}},fI={exports:{}};!function(e,t){var n=kT,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(fI,fI.exports);var hI=pI,mI=dI,vI=fI.exports,gI=vI&&vI.isTypedArray,xI=gI?mI(gI):hI,bI=XL,yI=tI,wI=FL,CI=nI.exports,EI=iI,OI=xI,DI=Object.prototype.hasOwnProperty;var SI=function(e,t){var n=wI(e),o=!n&&yI(e),r=!n&&!o&&CI(e),i=!n&&!o&&!r&&OI(e),a=n||o||r||i,s=a?bI(e.length,String):[],l=s.length;for(var c in e)!t&&!DI.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||EI(c,l))||s.push(c);return s},kI=Object.prototype;var TI=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||kI)};var jI=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),MI=TI,AI=jI,NI=Object.prototype.hasOwnProperty;var PI=function(e){if(!MI(e))return AI(e);var t=[];for(var n in Object(e))NI.call(e,n)&&"constructor"!=n&&t.push(n);return t},RI=a_,BI=aI;var FI=function(e){return null!=e&&BI(e.length)&&!RI(e)},_I=SI,LI=PI,II=FI;var $I=function(e){return II(e)?_I(e):LI(e)},zI=IL,VI=qL,WI=$I;var UI=function(e){return zI(e,WI,VI)},HI=Object.prototype.hasOwnProperty;var qI=function(e,t,n,o,r,i){var a=1&n,s=UI(e),l=s.length;if(l!=UI(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:HI.call(t,u)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var m=e[u=s[c]],v=t[u];if(o)var g=a?o(v,m,u,t,e,i):o(m,v,u,e,t,i);if(!(void 0===g?m===v||r(m,v,n,o,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var x=e.constructor,b=t.constructor;x==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f},XI=O_(MT,"DataView"),GI=O_(MT,"Promise"),YI=O_(MT,"Set"),KI=O_(MT,"WeakMap"),ZI=XI,JI=D_,QI=GI,e$=YI,t$=KI,n$=YT,o$=p_,r$=o$(ZI),i$=o$(JI),a$=o$(QI),s$=o$(e$),l$=o$(t$),c$=n$;(ZI&&"[object DataView]"!=c$(new ZI(new ArrayBuffer(1)))||JI&&"[object Map]"!=c$(new JI)||QI&&"[object Promise]"!=c$(QI.resolve())||e$&&"[object Set]"!=c$(new e$)||t$&&"[object WeakMap]"!=c$(new t$))&&(c$=function(e){var t=n$(e),n="[object Object]"==t?e.constructor:void 0,o=n?o$(n):"";if(o)switch(o){case r$:return"[object DataView]";case i$:return"[object Map]";case a$:return"[object Promise]";case s$:return"[object Set]";case l$:return"[object WeakMap]"}return t});var u$=mL,p$=OL,d$=RL,f$=qI,h$=c$,m$=FL,v$=nI.exports,g$=xI,x$="[object Object]",b$=Object.prototype.hasOwnProperty;var y$=function(e,t,n,o,r,i){var a=m$(e),s=m$(t),l=a?"[object Array]":h$(e),c=s?"[object Array]":h$(t),u=(l="[object Arguments]"==l?x$:l)==x$,p=(c="[object Arguments]"==c?x$:c)==x$,d=l==c;if(d&&v$(e)){if(!v$(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new u$),a||g$(e)?p$(e,t,n,o,r,i):d$(e,t,l,n,o,r,i);if(!(1&n)){var f=u&&b$.call(e,"__wrapped__"),h=p&&b$.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new u$),r(m,v,n,o,i)}}return!!d&&(i||(i=new u$),f$(e,t,n,o,r,i))},w$=KT;var C$=function e(t,n,o,r,i){return t===n||(null==t||null==n||!w$(t)&&!w$(n)?t!=t&&n!=n:y$(t,n,o,r,e,i))},E$=C$;var O$=function(e,t){return E$(e,t)},D$=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),S$="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,k$="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),T$="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(k$):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var j$=["top","right","bottom","left","width","height","size","weight"],M$="undefined"!=typeof MutationObserver,A$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){T$(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){S$&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),M$?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){S$&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;j$.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N$=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},P$=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||k$},R$=$$(0,0,0,0);function B$(e){return parseFloat(e)||0}function F$(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+B$(e["border-"+n+"-width"])}),0)}function _$(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return R$;var o=P$(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=B$(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=B$(o.width),l=B$(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=F$(o,"left","right")+i),Math.round(l+a)!==n&&(l-=F$(o,"top","bottom")+a)),!function(e){return e===P$(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return $$(r.left,r.top,s,l)}var L$="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof P$(e).SVGGraphicsElement}:function(e){return e instanceof P$(e).SVGElement&&"function"==typeof e.getBBox};function I$(e){return S$?L$(e)?function(e){var t=e.getBBox();return $$(0,0,t.width,t.height)}(e):_$(e):R$}function $$(e,t,n,o){return{x:e,y:t,width:n,height:o}}var z$=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$$(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=I$(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),V$=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return N$(a,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),a}(t);N$(this,{target:e,contentRect:n})},W$=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new D$,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof P$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new z$(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof P$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new V$(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),U$="undefined"!=typeof WeakMap?new WeakMap:new D$,H$=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=A$.getInstance(),o=new W$(t,n,this);U$.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){H$.prototype[e]=function(){var t;return(t=U$.get(this))[e].apply(t,arguments)}}));var q$=void 0!==k$.ResizeObserver?k$.ResizeObserver:H$;function X$(e,t){var n=null,o=null;var r=new q$((function(e){var r=eB(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),c=Math.floor(s);n===l&&o===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,o=c}}));return e&&r.observe(e),function(){r.disconnect()}}function G$(e){return"function"!=typeof e?null:e()}function Y$(e){return"object"===gR(e)&&e?e:null}var K$=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,p=u.default.useRef({}),d=u.default.useRef(),f=u.default.Children.only(n),h=u.default.useRef({});h.current.disabled=o,h.current.target=r,h.current.align=i,h.current.onAlign=a;var m=function(e,t){var n=u.default.useRef(!1),o=u.default.useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign;if(!t&&n){var i,a=d.current,s=G$(n),l=Y$(n);p.current.element=s,p.current.point=l,p.current.align=o;var c=document.activeElement;return s&&RB(s)?i=PF(a,s,o):l&&(i=function(e,t,n){var o,r,i=xF.getDocument(e),a=i.defaultView||i.parentWindow,s=xF.getWindowScrollLeft(a),l=xF.getWindowScrollTop(a),c=xF.viewportWidth(a),u=xF.viewportHeight(a),p={left:o="pageX"in t?t.pageX:s+t.clientX,top:r="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=o>=0&&o<=s+c&&r>=0&&r<=l+u,f=[n.points[0],"cc"];return NF(e,p,FB(FB({},n),{},{points:f}),d)}(a,l,o)),function(e,t){e!==document.activeElement&&FR(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),r&&i&&r(a,i),!0}return!1}),c),v=eB(m,2),g=v[0],x=v[1],b=u.default.useRef({cancel:function(){}}),y=u.default.useRef({cancel:function(){}});u.default.useEffect((function(){var e,t,n=G$(r),o=Y$(r);d.current!==y.current.element&&(y.current.cancel(),y.current.element=d.current,y.current.cancel=X$(d.current,g)),p.current.element===n&&((e=p.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&O$(p.current.align,i)||(g(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=X$(n,g)))})),u.default.useEffect((function(){o?x():g()}),[o]);var w=u.default.useRef(null);return u.default.useEffect((function(){s?w.current||(w.current=qR(window,"resize",g)):w.current&&(w.current.remove(),w.current=null)}),[s]),u.default.useEffect((function(){return function(){b.current.cancel(),y.current.cancel(),w.current&&w.current.remove(),x()}}),[]),u.default.useImperativeHandle(t,(function(){return{forceAlign:function(){return g(!0)}}})),u.default.isValidElement(f)&&(f=u.default.cloneElement(f,{ref:UR(f.ref,d)})),f},Z$=u.default.forwardRef(K$);Z$.displayName="Align";var J$="test"!==process.env.NODE_ENV&&XR()?c.useLayoutEffect:c.useEffect;function Q$(){Q$=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new D(r||[]);return o(a,"_invoke",{value:w(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function f(){}function h(){}var m={};l(m,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,i)&&(m=g);var x=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==gR(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function w(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return k()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=u(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=h,o(x,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},b(y.prototype),l(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new y(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=S,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function ez(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function tz(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ez(i,o,r,a,s,"next",e)}function s(e){ez(i,o,r,a,s,"throw",e)}a(void 0)}))}}var nz=["measure","alignPre","align",null,"motion"],oz=c.forwardRef((function(e,t){var o=e.visible,r=e.prefixCls,i=e.className,a=e.style,s=e.children,l=e.zIndex,u=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,f=e.align,h=e.point,m=e.getRootDomNode,v=e.getClassNameFromAlign,g=e.onAlign,x=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,w=e.onTouchStart,C=e.onClick,E=n.useRef(),O=n.useRef(),D=eB(n.useState(),2),S=D[0],k=D[1],T=function(e){var t=eB(c.useState({width:0,height:0}),2),n=t[0],o=t[1],r=c.useMemo((function(){var t={};if(e){var o=n.width,r=n.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&o?t.width=o:-1!==e.indexOf("minWidth")&&o&&(t.minWidth=o)}return t}),[e,n]);return[r,function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(u),j=eB(T,2),M=j[0],A=j[1];var N=function(e,t){var o=eB(vB(null),2),r=o[0],i=o[1],a=n.useRef();function s(e){i(e,!0)}function l(){BR.cancel(a.current)}return n.useEffect((function(){s("measure")}),[e]),n.useEffect((function(){"measure"===r&&t(),r&&(a.current=BR(tz(Q$().mark((function e(){var t,n;return Q$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=nz.indexOf(r),(n=nz[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),n.useEffect((function(){return function(){l()}}),[]),[r,function(e){l(),a.current=BR((function(){s((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(o,(function(){u&&A(m())})),P=eB(N,2),R=P[0],B=P[1],F=eB(n.useState(0),2),_=F[0],L=F[1],I=n.useRef();function $(){var e;null===(e=E.current)||void 0===e||e.forceAlign()}function z(e,t){var n=v(t);S!==n&&k(n),L((function(e){return e+1})),"align"===R&&(null==g||g(e,t))}J$((function(){"alignPre"===R&&L(0)}),[R]),J$((function(){"align"===R&&(_<2?$():B((function(){var e;null===(e=I.current)||void 0===e||e.call(I)})))}),[_]);var V=wR({},AB(e));function W(){return new Promise((function(e){I.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=V[e];V[e]=function(e,n){return B(),null==t?void 0:t(e,n)}})),c.useEffect((function(){V.motionName||"motion"!==R||B()}),[V.motionName,R]),c.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return O.current}}}));var U=wR(wR({},M),{},{zIndex:l,opacity:"motion"!==R&&"stable"!==R&&o?0:void 0,pointerEvents:o||"stable"===R?void 0:"none"},a),H=!0;!(null==f?void 0:f.points)||"align"!==R&&"stable"!==R||(H=!1);var q=s;return c.Children.count(s)>1&&(q=c.createElement("div",{className:"".concat(r,"-content")},s)),c.createElement(EB,Tl({visible:o,ref:O,leavedClassName:"".concat(r,"-hidden")},V,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,a=KR(r,i,S,n);return c.createElement(Z$,{target:h||m,key:"popup",ref:E,monitorWindowResize:!0,disabled:H,align:f,onAlign:z},c.createElement("div",{ref:t,className:a,onMouseEnter:x,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:w,onClick:C,style:wR(wR({},o),U)},q))}))}));oz.displayName="PopupInner";var rz=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,r=e.zIndex,i=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,u=a.popupMotion,p=void 0===u?{}:u,d=a.popupRender,f=e.onClick,h=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=wR({zIndex:r},l),v=i;return c.Children.count(i)>1&&(v=c.createElement("div",{className:"".concat(n,"-content")},i)),d&&(v=d(v)),c.createElement(EB,Tl({visible:o,ref:h,removeOnLeave:!0},p),(function(e,t){var o=e.className,r=e.style,i=KR(n,s,o);return c.createElement("div",{ref:t,className:i,onClick:f,style:wR(wR({},r),m)},v)}))}));rz.displayName="MobilePopupInner";var iz=["visible","mobile"],az=c.forwardRef((function(e,t){var o=e.visible,r=e.mobile,i=CR(e,iz),a=eB(n.useState(o),2),s=a[0],l=a[1],u=eB(n.useState(!1),2),p=u[0],d=u[1],f=wR(wR({},i),{},{visible:s});n.useEffect((function(){l(o),o&&r&&d(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[o,r]);var h=p?c.createElement(rz,Tl({},f,{mobile:r,ref:t})):c.createElement(oz,Tl({},f,{ref:t}));return c.createElement("div",null,c.createElement(NB,f),h)}));az.displayName="Popup";var sz=c.createContext(null);function lz(){}function cz(){return""}function uz(e){return e?e.ownerDocument:window.document}var pz=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var dz=function(e){var t=function(t){SR(o,c.Component);var n=jR(o);function o(e){var t,r;return ER(this,o),(t=n.call(this,e)).popupRef=c.createRef(),t.triggerRef=c.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&FR(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var o=!t.state.popupVisible;(t.isClickToHide()&&!o||o&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),r=t.getPopupDomNode();FR(o,n)&&!t.isContextMenuOnly()||FR(r,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=_R(t.triggerRef.current);if(n)return n}catch(e){}return d.default.findDOMNode(Hl(t))},t.getPopupClassNameFromAlign=function(e){var n=[],o=t.props,r=o.popupPlacement,i=o.builtinPlacements,a=o.prefixCls,s=o.alignPoint,l=o.getPopupClassNameFromAlign;return r&&i&&n.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(ZR(e[s].points,r,o))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&n.push(l(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,r=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,p=e.mask,d=e.maskAnimation,f=e.maskTransitionName,h=e.maskMotion,m=e.zIndex,v=e.popup,g=e.stretch,x=e.alignPoint,b=e.mobile,y=e.forceRender,w=e.onPopupClick,C=t.state,E=C.popupVisible,O=C.point,D=t.getPopupAlign(),S={};return t.isMouseEnterToShow()&&(S.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(S.onMouseLeave=t.onPopupMouseLeave),S.onMouseDown=t.onPopupMouseDown,S.onTouchStart=t.onPopupMouseDown,c.createElement(az,Tl({prefixCls:n,destroyPopupOnHide:o,visible:E,point:x&&O,className:r,align:D,onAlign:i,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},S,{stretch:g,getRootDomNode:t.getRootDomNode,style:u,mask:p,zIndex:m,transitionName:l,maskAnimation:d,maskTransitionName:f,maskMotion:h,ref:t.popupRef,motion:a,mobile:b,forceRender:y,onClick:w}),"function"==typeof v?v():v)},t.attachParent=function(e){BR.cancel(t.attachId);var n,o=t.props,r=o.getPopupContainer,i=o.getDocument,a=t.getRootDomNode();r?(a||0===r.length)&&(n=r(a)):n=i(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=BR((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},r="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:r,popupVisible:r},pz.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return DR(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=qR(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=qR(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=qR(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=qR(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),BR.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){return wR(wR({},e[t]||{}),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,o=n.children,r=n.forceRender,i=n.alignPoint,a=n.className,s=n.autoDestroy,l=c.Children.only(o),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,i&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var p=KR(l&&l.props&&l.props.className,a);p&&(u.className=p);var d=wR({},u);HR(l)&&(d.ref=UR(this.triggerRef,l.ref));var f,h=c.cloneElement(l,d);return(t||this.popupRef.current||r)&&(f=c.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(f=null),c.createElement(sz.Provider,{value:this.triggerContextValue},h,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),o}();return t.contextType=sz,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:cz,getDocument:uz,onPopupVisibleChange:lz,afterPopupVisibleChange:lz,onPopupAlign:lz,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(GR),fz={adjustX:1,adjustY:1},hz=[0,0],mz={left:{points:["cr","cl"],overflow:fz,offset:[-4,0],targetOffset:hz},right:{points:["cl","cr"],overflow:fz,offset:[4,0],targetOffset:hz},top:{points:["bc","tc"],overflow:fz,offset:[0,-4],targetOffset:hz},bottom:{points:["tc","bc"],overflow:fz,offset:[0,4],targetOffset:hz},topLeft:{points:["bl","tl"],overflow:fz,offset:[0,-4],targetOffset:hz},leftTop:{points:["tr","tl"],overflow:fz,offset:[-4,0],targetOffset:hz},topRight:{points:["br","tr"],overflow:fz,offset:[0,-4],targetOffset:hz},rightTop:{points:["tl","tr"],overflow:fz,offset:[4,0],targetOffset:hz},bottomRight:{points:["tr","br"],overflow:fz,offset:[0,4],targetOffset:hz},rightBottom:{points:["bl","br"],overflow:fz,offset:[4,0],targetOffset:hz},bottomLeft:{points:["tl","bl"],overflow:fz,offset:[0,4],targetOffset:hz},leftBottom:{points:["br","bl"],overflow:fz,offset:[-4,0],targetOffset:hz}};function vz(e){var t=e.showArrow,n=e.arrowContent,o=e.children,r=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return c.createElement("div",{className:KR("".concat(r,"-content"),s),style:l},!1!==t&&c.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),c.createElement("div",{className:"".concat(r,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof o?o():o))}var gz,xz,bz,yz=function(e,t){var o=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,u=void 0===l?.1:l,p=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,h=e.children,m=e.onVisibleChange,v=e.afterVisibleChange,g=e.transitionName,x=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,C=e.align,E=void 0===C?{}:C,O=e.destroyTooltipOnHide,D=void 0!==O&&O,S=e.defaultVisible,k=e.getTooltipContainer,T=e.overlayInnerStyle,j=e.arrowContent,M=e.overlay,A=e.id,N=e.showArrow,P=CR(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),R=n.useRef(null);n.useImperativeHandle(t,(function(){return R.current}));var B=wR({},P);"visible"in e&&(B.popupVisible=e.visible);var F=!1,_=!1;if("boolean"==typeof D)F=D;else if(D&&"object"===gR(D)){var L=D.keepParent;F=!0===L,_=!1===L}return c.createElement(dz,Tl({popupClassName:o,prefixCls:f,popup:function(){return c.createElement(vz,{showArrow:N,arrowContent:j,key:"content",prefixCls:f,id:A,overlayInnerStyle:T},M)},action:i,builtinPlacements:mz,popupPlacement:w,ref:R,popupAlign:E,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:x,popupMotion:b,defaultPopupVisible:S,destroyPopupOnHide:F,autoDestroy:_,mouseLeaveDelay:u,popupStyle:p,mouseEnterDelay:s},B),h)},wz=n.forwardRef(yz),Cz=l.default.div(xz||(xz=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.$styles;return e.css(gz||(gz=x(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S,a)})),Ez=function(e){var o=e.trigger,r=void 0===o?"hover":o,i=e.placement,a=void 0===i?"top":i,s=e.styles,l=h(e,["trigger","placement","styles"]),c=n.useRef(null);return t.jsx(Cz,f({ref:c,$styles:s},{children:t.jsx(wz,f({},l,{getTooltipContainer:function(){return c.current},trigger:r,placement:a}))}))},Oz=wR({},p),Dz=Oz.version,Sz=Oz.render,kz=Oz.unmountComponentAtNode;try{Number((Dz||"").split(".")[0])>=18&&(bz=Oz.createRoot)}catch(xj){}function Tz(e){var t=Oz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===gR(t)&&(t.usingClientEntryPoint=e)}var jz="__rc_react_root__";function Mz(e,t){bz?function(e,t){Tz(!0);var n=t[jz]||bz(t);Tz(!1),n.render(e),t[jz]=n}(e,t):function(e,t){Sz(e,t)}(e,t)}function Az(e){return Nz.apply(this,arguments)}function Nz(){return(Nz=tz(Q$().mark((function e(t){return Q$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[jz])||void 0===e||e.unmount(),delete t[jz]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pz(e){kz(e)}function Rz(){return(Rz=tz(Q$().mark((function e(t){return Q$().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===bz){e.next=2;break}return e.abrupt("return",Az(t));case 2:Pz(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Bz=function(e){SR(o,n.Component);var t=jR(o);function o(){var e;ER(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,o=n.onClose,r=n.noticeKey;o&&o(r)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return DR(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,r=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,l=t.children,u=t.holder,p="".concat(n,"-notice"),f=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),h=c.createElement("div",Tl({className:KR(p,o,bR({},"".concat(p,"-closable"),r)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},f),c.createElement("div",{className:"".concat(p,"-content")},l),r?c.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(p,"-close")},i||c.createElement("span",{className:"".concat(p,"-close-x")})):null);return u?d.default.createPortal(h,u):h}}]),o}();function Fz(e){return function(e){if(Array.isArray(e))return JR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||QR(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Bz.defaultProps={onClose:function(){},duration:1.5};var _z=["getContainer"],Lz=0,Iz=Date.now();function $z(){var e=Lz;return Lz+=1,"rcNotification_".concat(Iz,"_").concat(e)}var zz=function(e){SR(o,n.Component);var t=jR(o);function o(){var e;ER(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var o=t.key||$z(),r=wR(wR({},t),{},{key:o}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(o),s=t.concat();return-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&t.length>=i&&(r.key=s[0].notice.key,r.updateMark=$z(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,o=n.key;return(n.userPassKey||o)!==t}))}}))},e.noticePropsMap={},e}return DR(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,o=this.props.transitionName;return!o&&n&&(o="".concat(t,"-").concat(n)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,o=n.prefixCls,r=n.className,i=n.closeIcon,a=n.style,s=[];return t.forEach((function(n,r){var a=n.notice,l=n.holderCallback,c=r===t.length-1?a.updateMark:void 0,u=a.key,p=a.userPassKey,d=wR(wR(wR({prefixCls:o,closeIcon:i},a),a.props),{},{key:u,noticeKey:p||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(u),e.noticePropsMap[u]={props:d,holderCallback:l}})),c.createElement("div",{className:KR(o,r),style:a},c.createElement(MB,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var o=n.key;t||delete e.noticePropsMap[o]}},(function(t){var n=t.key,r=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[n],l=s.props,u=s.holderCallback;return u?c.createElement("div",{key:n,className:KR(r,"".concat(o,"-hook-holder")),style:wR({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),u(t,l)):e.hookRefs.delete(n))}}):c.createElement(Bz,Tl({},l,{className:KR(r,null==l?void 0:l.className),style:wR(wR({},i),null==l?void 0:l.style),visible:a}))})))}}]),o}();zz.newInstance=void 0,zz.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},zz.newInstance=function(e,t){var n=e||{},o=n.getContainer,r=CR(n,_z),i=document.createElement("div");o?o().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){Rz.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,n=c.useRef({}),o=eB(c.useState([]),2),r=o[0],i=o[1],[function(e){var o=!0;t.add(e,(function(e,t){var r=t.key;if(e&&(!n.current[r]||o)){var a=c.createElement(Bz,Tl({},t,{holder:e}));n.current[r]=a,i((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat(Fz(e),[a]);var o=Fz(e);return o[n]=a,o}))}o=!1}))},c.createElement(c.Fragment,null,r)];var t,n,o,r,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(c.createElement(zz,Tl({},r,{ref:s}))):Mz(c.createElement(zz,Tl({},r,{ref:s})),i)};var Vz,Wz,Uz,Hz=S.colors,qz=S.fonts,Xz=S.sizes,Gz=l.default.span(Vz||(Vz=x(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),qz.L),Yz=l.default.div(Wz||(Wz=x(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),Xz.XL,Xz.M,Xz.XL),Kz=l.default.div(Uz||(Uz=x(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),C(Xz.XL),(function(e){return e.backgroundColor})),Zz=function(e){var n=e.type,o=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:Hz.green,textColor:Hz.greenShade};case"error":return{icon:"Close",backgroundColor:Hz.red,textColor:Hz.redShade};case"warning":return{icon:"Warning",backgroundColor:Hz.yellow,textColor:Hz.yellowShade,iconColor:Hz.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:Hz.blue,textColor:Hz.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:Hz.gray2,textColor:D(Hz.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:Hz.blue,textColor:Hz.blueShade}}}(n),i=r.icon,a=r.iconColor,s=r.textColor,l=r.backgroundColor,c=r.iconSize;return t.jsxs(Yz,{children:[t.jsx(Kz,f({backgroundColor:l},{children:t.jsx(LD,{size:c||32,name:i,color:a||Hz.white})})),t.jsx(Gz,f({textColor:s},{children:o}))]})},Jz=null;zz.newInstance({maxCount:2},(function(e){return Jz=e}));var Qz,eV,tV,nV,oV,rV,iV,aV,sV,lV,cV,uV,pV,dV,fV,hV,mV,vV,gV=function(e){var n=e.message,o=e.type,r=void 0===o?"success":o,i=e.duration,a=void 0===i?2.5:i;return null==Jz?void 0:Jz.notice({content:t.jsx(Zz,{message:n,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:t.jsx(LD,{name:"Close"}),duration:a})},xV=function(e){var n=e.onClick,o=e.disabled,r=e.buttonOptions,i=e.selectedButtonId,a=e.error,s=(null==r?void 0:r.slice(0,2))||[];return t.jsx(bV,f({error:a,disabled:o},{children:s.map((function(e){var o=e.value,r=e.id;return t.jsx(yV,f({isActive:r===i,onClick:function(){return n(r)}},{children:o}),r)}))}))},bV=l.default.div(eV||(eV=x(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.disabled,a=t.error,s="transparent",l=r.gray4;return i?l=r.gray5:s=a?r.red:r.gray4,e.css(Qz||(Qz=x(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),o.XL,o.XS,s,l)})),yV=l.default(w)(nV||(nV=x(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isActive,a=i?r.white:"transparent";return e.css(tV||(tV=x(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),a,o.XS,i?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),wV=function(n){var o=n.size,r=void 0===o?"XL":o,i=n.withShadow,a=n.label,s=n.backgroundColor,l=n.onPress,c=n.content,u=c.initials,p=c.iconName,d=c.imageUrl,h=n.textConfig,m=void 0===h?{}:h,v=m.color,g=void 0===v?"white":v,x=m.font,b=void 0===x?"L":x,y=e.useTheme().sizes,w="number"==typeof r?r:y[r],C=u?t.jsx(DV,f({variant:b,color:g,avatarSize:w},{children:u})):p?t.jsx(LD,{name:p,color:"white",size:w/1.5}):d?t.jsx(SV,{avatarSize:w,src:d}):null;return t.jsxs(CV,{children:[t.jsx(OV,f({clickable:!!l,onClick:l,withShadow:i,backgroundColor:d?"white":s,avatarSize:w},{children:C})),!!a&&t.jsx(EV,f({variant:"L"},{children:a}))]})},CV=l.default.div(oV||(oV=x(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),EV=l.default(RP)(rV||(rV=x(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),OV=l.default.div(lV||(lV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.avatarSize,a=t.withShadow,s=t.backgroundColor,l=t.clickable;return e.css(sV||(sV=x(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),o[s||"indigoTint2"],o.white,Math.round(i/r["2XL"]),o.white,i/2,C(i),a&&e.css(iV||(iV=x(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),l&&e.css(aV||(aV=x(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),O(o[s||"indigoTint2"]),o[s||"indigoTint2"]))})),DV=l.default(RP)(uV||(uV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(cV||(cV=x(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),n/2)})),SV=l.default(pR)(dV||(dV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(pV||(pV=x(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),C(n))})),kV=l.default.div(fV||(fV=x(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),TV=l.default.div(hV||(hV=x(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),jV=l.default.div(vV||(vV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.color,a=void 0===i?"gray4":i,s=t.type,l=void 0===s?"horizontal":s,c=t.weight,u=void 0===c?1:c,p=t.marginHorizontal,d=t.marginVertical;return e.css(mV||(mV=x(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(u,"px"):"100%","horizontal"===l?"".concat(u,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof p?p:r[p]||0)})),MV={},AV={},NV={__esModule:!0,default:function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},PV={exports:{}},RV=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},BV=RV,FV=function(e){return Object(BV(e))},_V={}.hasOwnProperty,LV=function(e,t){return _V.call(e,t)},IV={exports:{}},$V={exports:{}},zV=$V.exports={version:"2.6.12"};"number"==typeof __e&&(__e=zV);var VV={exports:{}},WV=VV.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=WV);var UV=$V.exports,HV=VV.exports,qV=HV["__core-js_shared__"]||(HV["__core-js_shared__"]={});(IV.exports=function(e,t){return qV[e]||(qV[e]=void 0!==t?t:{})})("versions",[]).push({version:UV.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var XV,GV,YV=0,KV=Math.random(),ZV=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++YV+KV).toString(36))},JV=IV.exports("keys"),QV=ZV,eW=function(e){return JV[e]||(JV[e]=QV(e))},tW=LV,nW=FV,oW=eW("IE_PROTO"),rW=Object.prototype,iW=Object.getPrototypeOf||function(e){return e=nW(e),tW(e,oW)?e[oW]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?rW:null},aW=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},sW=function(e,t,n){if(aW(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},lW={},cW=function(e){return"object"==typeof e?null!==e:"function"==typeof e},uW=cW,pW=function(e){if(!uW(e))throw TypeError(e+" is not an object!");return e},dW=function(e){try{return!!e()}catch(e){return!0}},fW=!dW((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function hW(){if(GV)return XV;GV=1;var e=cW,t=VV.exports.document,n=e(t)&&e(t.createElement);return XV=function(e){return n?t.createElement(e):{}}}var mW=!fW&&!dW((function(){return 7!=Object.defineProperty(hW()("div"),"a",{get:function(){return 7}}).a})),vW=cW,gW=function(e,t){if(!vW(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!vW(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!vW(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!vW(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},xW=pW,bW=mW,yW=gW,wW=Object.defineProperty;lW.f=fW?Object.defineProperty:function(e,t,n){if(xW(e),t=yW(t,!0),xW(n),bW)try{return wW(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var CW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EW=lW,OW=CW,DW=fW?function(e,t,n){return EW.f(e,t,OW(1,n))}:function(e,t,n){return e[t]=n,e},SW=VV.exports,kW=$V.exports,TW=sW,jW=DW,MW=LV,AW=function(e,t,n){var o,r,i,a=e&AW.F,s=e&AW.G,l=e&AW.S,c=e&AW.P,u=e&AW.B,p=e&AW.W,d=s?kW:kW[t]||(kW[t]={}),f=d.prototype,h=s?SW:l?SW[t]:(SW[t]||{}).prototype;for(o in s&&(n=t),n)(r=!a&&h&&void 0!==h[o])&&MW(d,o)||(i=r?h[o]:n[o],d[o]=s&&"function"!=typeof h[o]?n[o]:u&&r?TW(i,SW):p&&h[o]==i?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(i):c&&"function"==typeof i?TW(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[o]=i,e&AW.R&&f&&!f[o]&&jW(f,o,i)))};AW.F=1,AW.G=2,AW.S=4,AW.P=8,AW.B=16,AW.W=32,AW.U=64,AW.R=128;var NW=AW,PW=NW,RW=$V.exports,BW=dW,FW=FV,_W=iW;!function(e,t){var n=(RW.Object||{})[e]||Object[e],o={};o[e]=t(n),PW(PW.S+PW.F*BW((function(){n(1)})),"Object",o)}("getPrototypeOf",(function(){return function(e){return _W(FW(e))}}));var LW=$V.exports.Object.getPrototypeOf;PV.exports={default:LW,__esModule:!0};var IW={__esModule:!0,default:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},$W={},zW={exports:{}},VW=NW;VW(VW.S+VW.F*!fW,"Object",{defineProperty:lW.f});var WW=$V.exports.Object;zW.exports={default:function(e,t,n){return WW.defineProperty(e,t,n)},__esModule:!0},$W.__esModule=!0;var UW,HW=(UW=zW.exports)&&UW.__esModule?UW:{default:UW};$W.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,HW.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var qW={},XW={},GW={exports:{}},YW=Math.ceil,KW=Math.floor,ZW=function(e){return isNaN(e=+e)?0:(e>0?KW:YW)(e)},JW=ZW,QW=RV,eU={exports:{}};eU.exports=DW;var tU,nU,oU,rU={},iU={}.toString,aU=function(e){return iU.call(e).slice(8,-1)},sU=aU,lU=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==sU(e)?e.split(""):Object(e)},cU=lU,uU=RV,pU=function(e){return cU(uU(e))},dU=ZW,fU=Math.min,hU=function(e){return e>0?fU(dU(e),9007199254740991):0},mU=ZW,vU=Math.max,gU=Math.min,xU=pU,bU=hU,yU=function(e,t){return(e=mU(e))<0?vU(e+t,0):gU(e,t)},wU=LV,CU=pU,EU=(tU=!1,function(e,t,n){var o,r=xU(e),i=bU(r.length),a=yU(n,i);if(tU&&t!=t){for(;i>a;)if((o=r[a++])!=o)return!0}else for(;i>a;a++)if((tU||a in r)&&r[a]===t)return tU||a||0;return!tU&&-1}),OU=eW("IE_PROTO"),DU=function(e,t){var n,o=CU(e),r=0,i=[];for(n in o)n!=OU&&wU(o,n)&&i.push(n);for(;t.length>r;)wU(o,n=t[r++])&&(~EU(i,n)||i.push(n));return i},SU="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),kU=DU,TU=SU,jU=Object.keys||function(e){return kU(e,TU)},MU=lW,AU=pW,NU=jU,PU=fW?Object.defineProperties:function(e,t){AU(e);for(var n,o=NU(t),r=o.length,i=0;r>i;)MU.f(e,n=o[i++],t[n]);return e};var RU=pW,BU=PU,FU=SU,_U=eW("IE_PROTO"),LU=function(){},IU=function(){var e,t=hW()("iframe"),n=FU.length;for(t.style.display="none",function(){if(oU)return nU;oU=1;var e=VV.exports.document;return nU=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),IU=e.F;n--;)delete IU.prototype[FU[n]];return IU()},$U=Object.create||function(e,t){var n;return null!==e?(LU.prototype=RU(e),n=new LU,LU.prototype=null,n[_U]=e):n=IU(),void 0===t?n:BU(n,t)},zU={exports:{}},VU=IV.exports("wks"),WU=ZV,UU=VV.exports.Symbol,HU="function"==typeof UU;(zU.exports=function(e){return VU[e]||(VU[e]=HU&&UU[e]||(HU?UU:WU)("Symbol."+e))}).store=VU;var qU=lW.f,XU=LV,GU=zU.exports("toStringTag"),YU=function(e,t,n){e&&!XU(e=n?e:e.prototype,GU)&&qU(e,GU,{configurable:!0,value:t})},KU=$U,ZU=CW,JU=YU,QU={};DW(QU,zU.exports("iterator"),(function(){return this}));var eH,tH=NW,nH=eU.exports,oH=DW,rH=rU,iH=function(e,t,n){e.prototype=KU(QU,{next:ZU(1,n)}),JU(e,t+" Iterator")},aH=YU,sH=iW,lH=zU.exports("iterator"),cH=!([].keys&&"next"in[].keys()),uH=function(){return this},pH=function(e,t,n,o,r,i,a){iH(n,t,o);var s,l,c,u=function(e){if(!cH&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},p=t+" Iterator",d="values"==r,f=!1,h=e.prototype,m=h[lH]||h["@@iterator"]||r&&h[r],v=m||u(r),g=r?d?u("entries"):v:void 0,x="Array"==t&&h.entries||m;if(x&&(c=sH(x.call(new e)))!==Object.prototype&&c.next&&aH(c,p,!0),d&&m&&"values"!==m.name&&(f=!0,v=function(){return m.call(this)}),a&&(cH||f||!h[lH])&&oH(h,lH,v),rH[t]=v,rH[p]=uH,r)if(s={values:d?v:u("values"),keys:i?v:u("keys"),entries:g},a)for(l in s)l in h||nH(h,l,s[l]);else tH(tH.P+tH.F*(cH||f),t,s);return s},dH=(eH=!0,function(e,t){var n,o,r=String(QW(e)),i=JW(t),a=r.length;return i<0||i>=a?eH?"":void 0:(n=r.charCodeAt(i))<55296||n>56319||i+1===a||(o=r.charCodeAt(i+1))<56320||o>57343?eH?r.charAt(i):n:eH?r.slice(i,i+2):o-56320+(n-55296<<10)+65536});pH(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=dH(t,n),this._i+=e.length,{value:e,done:!1})}));var fH=function(e,t){return{value:t,done:!!e}},hH=rU,mH=pU;pH(Array,"Array",(function(e,t){this._t=mH(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,fH(1)):fH(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),hH.Arguments=hH.Array;for(var vH=VV.exports,gH=DW,xH=rU,bH=zU.exports("toStringTag"),yH="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),wH=0;wH<yH.length;wH++){var CH=yH[wH],EH=vH[CH],OH=EH&&EH.prototype;OH&&!OH[bH]&&gH(OH,bH,CH),xH[CH]=xH.Array}var DH={};DH.f=zU.exports;var SH=DH.f("iterator");GW.exports={default:SH,__esModule:!0};var kH={exports:{}},TH={exports:{}},jH=ZV("meta"),MH=cW,AH=LV,NH=lW.f,PH=0,RH=Object.isExtensible||function(){return!0},BH=!dW((function(){return RH(Object.preventExtensions({}))})),FH=function(e){NH(e,jH,{value:{i:"O"+ ++PH,w:{}}})},_H=TH.exports={KEY:jH,NEED:!1,fastKey:function(e,t){if(!MH(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!AH(e,jH)){if(!RH(e))return"F";if(!t)return"E";FH(e)}return e[jH].i},getWeak:function(e,t){if(!AH(e,jH)){if(!RH(e))return!0;if(!t)return!1;FH(e)}return e[jH].w},onFreeze:function(e){return BH&&_H.NEED&&RH(e)&&!AH(e,jH)&&FH(e),e}},LH=$V.exports,IH=DH,$H=lW.f,zH=function(e){var t=LH.Symbol||(LH.Symbol={});"_"==e.charAt(0)||e in t||$H(t,e,{value:IH.f(e)})},VH={};VH.f=Object.getOwnPropertySymbols;var WH={};WH.f={}.propertyIsEnumerable;var UH=jU,HH=VH,qH=WH,XH=aU,GH=Array.isArray||function(e){return"Array"==XH(e)},YH={},KH={},ZH=DU,JH=SU.concat("length","prototype");KH.f=Object.getOwnPropertyNames||function(e){return ZH(e,JH)};var QH=pU,eq=KH.f,tq={}.toString,nq="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];YH.f=function(e){return nq&&"[object Window]"==tq.call(e)?function(e){try{return eq(e)}catch(e){return nq.slice()}}(e):eq(QH(e))};var oq={},rq=WH,iq=CW,aq=pU,sq=gW,lq=LV,cq=mW,uq=Object.getOwnPropertyDescriptor;oq.f=fW?uq:function(e,t){if(e=aq(e),t=sq(t,!0),cq)try{return uq(e,t)}catch(e){}if(lq(e,t))return iq(!rq.f.call(e,t),e[t])};var pq=VV.exports,dq=LV,fq=fW,hq=NW,mq=eU.exports,vq=TH.exports.KEY,gq=dW,xq=IV.exports,bq=YU,yq=ZV,wq=zU.exports,Cq=DH,Eq=zH,Oq=function(e){var t=UH(e),n=HH.f;if(n)for(var o,r=n(e),i=qH.f,a=0;r.length>a;)i.call(e,o=r[a++])&&t.push(o);return t},Dq=GH,Sq=pW,kq=cW,Tq=FV,jq=pU,Mq=gW,Aq=CW,Nq=$U,Pq=YH,Rq=oq,Bq=VH,Fq=lW,_q=jU,Lq=Rq.f,Iq=Fq.f,$q=Pq.f,zq=pq.Symbol,Vq=pq.JSON,Wq=Vq&&Vq.stringify,Uq=wq("_hidden"),Hq=wq("toPrimitive"),qq={}.propertyIsEnumerable,Xq=xq("symbol-registry"),Gq=xq("symbols"),Yq=xq("op-symbols"),Kq=Object.prototype,Zq="function"==typeof zq&&!!Bq.f,Jq=pq.QObject,Qq=!Jq||!Jq.prototype||!Jq.prototype.findChild,eX=fq&&gq((function(){return 7!=Nq(Iq({},"a",{get:function(){return Iq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=Lq(Kq,t);o&&delete Kq[t],Iq(e,t,n),o&&e!==Kq&&Iq(Kq,t,o)}:Iq,tX=function(e){var t=Gq[e]=Nq(zq.prototype);return t._k=e,t},nX=Zq&&"symbol"==typeof zq.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof zq},oX=function(e,t,n){return e===Kq&&oX(Yq,t,n),Sq(e),t=Mq(t,!0),Sq(n),dq(Gq,t)?(n.enumerable?(dq(e,Uq)&&e[Uq][t]&&(e[Uq][t]=!1),n=Nq(n,{enumerable:Aq(0,!1)})):(dq(e,Uq)||Iq(e,Uq,Aq(1,{})),e[Uq][t]=!0),eX(e,t,n)):Iq(e,t,n)},rX=function(e,t){Sq(e);for(var n,o=Oq(t=jq(t)),r=0,i=o.length;i>r;)oX(e,n=o[r++],t[n]);return e},iX=function(e){var t=qq.call(this,e=Mq(e,!0));return!(this===Kq&&dq(Gq,e)&&!dq(Yq,e))&&(!(t||!dq(this,e)||!dq(Gq,e)||dq(this,Uq)&&this[Uq][e])||t)},aX=function(e,t){if(e=jq(e),t=Mq(t,!0),e!==Kq||!dq(Gq,t)||dq(Yq,t)){var n=Lq(e,t);return!n||!dq(Gq,t)||dq(e,Uq)&&e[Uq][t]||(n.enumerable=!0),n}},sX=function(e){for(var t,n=$q(jq(e)),o=[],r=0;n.length>r;)dq(Gq,t=n[r++])||t==Uq||t==vq||o.push(t);return o},lX=function(e){for(var t,n=e===Kq,o=$q(n?Yq:jq(e)),r=[],i=0;o.length>i;)!dq(Gq,t=o[i++])||n&&!dq(Kq,t)||r.push(Gq[t]);return r};Zq||(mq((zq=function(){if(this instanceof zq)throw TypeError("Symbol is not a constructor!");var e=yq(arguments.length>0?arguments[0]:void 0),t=function(n){this===Kq&&t.call(Yq,n),dq(this,Uq)&&dq(this[Uq],e)&&(this[Uq][e]=!1),eX(this,e,Aq(1,n))};return fq&&Qq&&eX(Kq,e,{configurable:!0,set:t}),tX(e)}).prototype,"toString",(function(){return this._k})),Rq.f=aX,Fq.f=oX,KH.f=Pq.f=sX,WH.f=iX,Bq.f=lX,Cq.f=function(e){return tX(wq(e))}),hq(hq.G+hq.W+hq.F*!Zq,{Symbol:zq});for(var cX="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),uX=0;cX.length>uX;)wq(cX[uX++]);for(var pX=_q(wq.store),dX=0;pX.length>dX;)Eq(pX[dX++]);hq(hq.S+hq.F*!Zq,"Symbol",{for:function(e){return dq(Xq,e+="")?Xq[e]:Xq[e]=zq(e)},keyFor:function(e){if(!nX(e))throw TypeError(e+" is not a symbol!");for(var t in Xq)if(Xq[t]===e)return t},useSetter:function(){Qq=!0},useSimple:function(){Qq=!1}}),hq(hq.S+hq.F*!Zq,"Object",{create:function(e,t){return void 0===t?Nq(e):rX(Nq(e),t)},defineProperty:oX,defineProperties:rX,getOwnPropertyDescriptor:aX,getOwnPropertyNames:sX,getOwnPropertySymbols:lX});var fX=gq((function(){Bq.f(1)}));hq(hq.S+hq.F*fX,"Object",{getOwnPropertySymbols:function(e){return Bq.f(Tq(e))}}),Vq&&hq(hq.S+hq.F*(!Zq||gq((function(){var e=zq();return"[null]"!=Wq([e])||"{}"!=Wq({a:e})||"{}"!=Wq(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(kq(t)||void 0!==e)&&!nX(e))return Dq(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!nX(t))return t}),o[1]=t,Wq.apply(Vq,o)}}),zq.prototype[Hq]||DW(zq.prototype,Hq,zq.prototype.valueOf),bq(zq,"Symbol"),bq(Math,"Math",!0),bq(pq.JSON,"JSON",!0),zH("asyncIterator"),zH("observable");var hX=$V.exports.Symbol;kH.exports={default:hX,__esModule:!0},XW.__esModule=!0;var mX=xX(GW.exports),vX=xX(kH.exports),gX="function"==typeof vX.default&&"symbol"==typeof mX.default?function(e){return typeof e}:function(e){return e&&"function"==typeof vX.default&&e.constructor===vX.default&&e!==vX.default.prototype?"symbol":typeof e};function xX(e){return e&&e.__esModule?e:{default:e}}XW.default="function"==typeof vX.default&&"symbol"===gX(mX.default)?function(e){return void 0===e?"undefined":gX(e)}:function(e){return e&&"function"==typeof vX.default&&e.constructor===vX.default&&e!==vX.default.prototype?"symbol":void 0===e?"undefined":gX(e)},qW.__esModule=!0;var bX=function(e){return e&&e.__esModule?e:{default:e}}(XW);qW.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,bX.default)(t))&&"function"!=typeof t?e:t};var yX,wX,CX={},EX={exports:{}};NW(NW.S,"Object",{setPrototypeOf:function(){if(wX)return yX;wX=1;var e=cW,t=pW,n=function(n,o){if(t(n),!e(o)&&null!==o)throw TypeError(o+": can't set as prototype!")};return yX={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=sW(Function.call,oq.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return n(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:n},yX}().set});var OX=$V.exports.Object.setPrototypeOf;EX.exports={default:OX,__esModule:!0};var DX={exports:{}};NW(NW.S,"Object",{create:$U});var SX=$V.exports.Object,kX=function(e,t){return SX.create(e,t)};DX.exports={default:kX,__esModule:!0},CX.__esModule=!0;var TX=AX(EX.exports),jX=AX(DX.exports),MX=AX(XW);function AX(e){return e&&e.__esModule?e:{default:e}}CX.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,MX.default)(t)));e.prototype=(0,jX.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(TX.default?(0,TX.default)(e,t):e.__proto__=t)};var NX=function(e){return e};var PX=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},RX=PX,BX=Math.max;var FX=function(e,t,n){return t=BX(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=BX(o.length-t,0),a=Array(i);++r<i;)a[r]=o[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=o[r];return s[t]=n(a),RX(e,this,s)}};var _X=function(e){return function(){return e}},LX=O_,IX=function(){try{var e=LX(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$X=_X,zX=IX,VX=zX?function(e,t){return zX(e,"toString",{configurable:!0,enumerable:!1,value:$X(t),writable:!0})}:NX,WX=Date.now;var UX=function(e){var t=0,n=0;return function(){var o=WX(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},HX=UX(VX),qX=NX,XX=FX,GX=HX;var YX=function(e,t){return GX(XX(e,t,qX),e+"")},KX=KI&&new KI,ZX=KX,JX=ZX?function(e,t){return ZX.set(e,t),e}:NX,QX=ST,eG=Object.create,tG=function(){function e(){}return function(t){if(!QX(t))return{};if(eG)return eG(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),nG=tG,oG=nG,rG=ST;var iG=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=oG(e.prototype),o=e.apply(n,t);return rG(o)?o:n}},aG=iG,sG=MT;var lG=function(e,t,n){var o=1&t,r=aG(e);return function t(){var i=this&&this!==sG&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}},cG=Math.max;var uG=function(e,t,n,o){for(var r=-1,i=e.length,a=n.length,s=-1,l=t.length,c=cG(i-a,0),u=Array(l+c),p=!o;++s<l;)u[s]=t[s];for(;++r<a;)(p||r<i)&&(u[n[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u},pG=Math.max;var dG=function(e,t,n,o){for(var r=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=pG(i-s,0),p=Array(u+c),d=!o;++r<u;)p[r]=e[r];for(var f=r;++l<c;)p[f+l]=t[l];for(;++a<s;)(d||r<i)&&(p[f+n[a]]=e[r++]);return p};var fG=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o};var hG=function(){},mG=nG,vG=hG;function gG(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}gG.prototype=mG(vG.prototype),gG.prototype.constructor=gG;var xG=gG;var bG=KX,yG=bG?function(e){return bG.get(e)}:function(){},wG={},CG=Object.prototype.hasOwnProperty;var EG=function(e){for(var t=e.name+"",n=wG[t],o=CG.call(wG,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t},OG=nG,DG=hG;function SG(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}SG.prototype=OG(DG.prototype),SG.prototype.constructor=SG;var kG=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},TG=xG,jG=SG,MG=kG;var AG=function(e){if(e instanceof TG)return e.clone();var t=new jG(e.__wrapped__,e.__chain__);return t.__actions__=MG(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},NG=xG,PG=SG,RG=hG,BG=FL,FG=KT,_G=AG,LG=Object.prototype.hasOwnProperty;function IG(e){if(FG(e)&&!BG(e)&&!(e instanceof NG)){if(e instanceof PG)return e;if(LG.call(e,"__wrapped__"))return _G(e)}return new PG(e)}IG.prototype=RG.prototype,IG.prototype.constructor=IG;var $G=xG,zG=yG,VG=EG,WG=IG;var UG=function(e){var t=VG(e),n=WG[t];if("function"!=typeof n||!(t in $G.prototype))return!1;if(e===n)return!0;var o=zG(n);return!!o&&e===o[0]},HG=UX(JX),qG=/\{\n\/\* \[wrapped with (.+)\] \*/,XG=/,? & /;var GG=function(e){var t=e.match(qG);return t?t[1].split(XG):[]},YG=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var KG=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};var ZG=function(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1};var JG=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1},QG=ZG,eY=function(e){return e!=e},tY=JG;var nY=function(e,t,n){return t==t?tY(e,t,n):QG(e,eY,n)};var oY=KG,rY=function(e,t){return!!(null==e?0:e.length)&&nY(e,t,0)>-1},iY=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var aY=GG,sY=function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(YG,"{\n/* [wrapped with "+t+"] */\n")},lY=HX,cY=function(e,t){return oY(iY,(function(n){var o="_."+n[0];t&n[1]&&!rY(e,o)&&e.push(o)})),e.sort()};var uY=function(e,t,n){var o=t+"";return lY(e,sY(o,cY(aY(o),n)))},pY=UG,dY=HG,fY=uY;var hY=function(e,t,n,o,r,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var p=[e,t,r,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],d=n.apply(void 0,p);return pY(e)&&dY(d,p),d.placeholder=o,fY(d,e,t)};var mY=function(e){return e.placeholder},vY=kG,gY=iI,xY=Math.min;var bY=function(e,t){for(var n=e.length,o=xY(t.length,n),r=vY(e);o--;){var i=t[o];e[o]=gY(i,n)?r[i]:void 0}return e};var yY=function(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[r++]=n)}return i},wY=uG,CY=dG,EY=fG,OY=iG,DY=hY,SY=mY,kY=bY,TY=yY,jY=MT;var MY=function e(t,n,o,r,i,a,s,l,c,u){var p=128&n,d=1&n,f=2&n,h=24&n,m=512&n,v=f?void 0:OY(t);return function g(){for(var x=arguments.length,b=Array(x),y=x;y--;)b[y]=arguments[y];if(h)var w=SY(g),C=EY(b,w);if(r&&(b=wY(b,r,i,h)),a&&(b=CY(b,a,s,h)),x-=C,h&&x<u){var E=TY(b,w);return DY(t,n,e,g.placeholder,o,b,E,l,c,u-x)}var O=d?o:this,D=f?O[t]:t;return x=b.length,l?b=kY(b,l):m&&x>1&&b.reverse(),p&&c<x&&(b.length=c),this&&this!==jY&&this instanceof g&&(D=v||OY(D)),D.apply(O,b)}},AY=PX,NY=iG,PY=MY,RY=hY,BY=mY,FY=yY,_Y=MT;var LY=function(e,t,n){var o=NY(e);return function r(){for(var i=arguments.length,a=Array(i),s=i,l=BY(r);s--;)a[s]=arguments[s];var c=i<3&&a[0]!==l&&a[i-1]!==l?[]:FY(a,l);if((i-=c.length)<n)return RY(e,t,PY,r.placeholder,void 0,a,c,void 0,void 0,n-i);var u=this&&this!==_Y&&this instanceof r?o:e;return AY(u,this,a)}},IY=PX,$Y=iG,zY=MT;var VY=function(e,t,n,o){var r=1&t,i=$Y(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=o.length,u=Array(c+s),p=this&&this!==zY&&this instanceof t?i:e;++l<c;)u[l]=o[l];for(;s--;)u[l++]=arguments[++a];return IY(p,r?n:this,u)}},WY=uG,UY=dG,HY=yY,qY=Math.min;var XY=sj;var GY=function(e){return e?Infinity===(e=XY(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var YY=function(e){var t=GY(e),n=t%1;return t==t?n?t-n:t:0},KY=JX,ZY=lG,JY=LY,QY=MY,eK=VY,tK=yG,nK=function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?WY(l,s,t[4]):s,e[4]=l?HY(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?UY(l,s,t[6]):s,e[6]=l?HY(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&o&&(e[8]=null==e[8]?t[8]:qY(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e},oK=HG,rK=uY,iK=YY,aK=Math.max;var sK=function(e,t,n,o,r,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=o?o.length:0;if(c||(t&=-97,o=r=void 0),a=void 0===a?a:aK(iK(a),0),s=void 0===s?s:iK(s),c-=r?r.length:0,64&t){var u=o,p=r;o=r=void 0}var d=l?void 0:tK(e),f=[e,t,n,o,r,u,p,i,a,s];if(d&&nK(f,d),e=f[0],t=f[1],n=f[2],o=f[3],r=f[4],!(s=f[9]=void 0===f[9]?l?0:e.length:aK(f[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?JY(e,t,s):32!=t&&33!=t||r.length?QY.apply(void 0,f):eK(e,t,n,o);else var h=ZY(e,t,n);return rK((d?KY:oK)(h,f),e,t)},lK=sK,cK=mY,uK=yY,pK=YX((function(e,t,n){var o=1;if(n.length){var r=uK(n,cK(pK));o|=32}return lK(e,o,t,n,r)}));pK.placeholder={};var dK=pK,fK=process.env.NODE_ENV,hK=function(e,t,n,o,r,i,a,s){if("production"!==fK&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},mK=!("undefined"==typeof window||!window.document||!window.document.createElement),vK={},gK=Object.prototype.hasOwnProperty;function xK(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var bK=function(e,t){if(xK(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!gK.call(t,n[r])||!xK(e[n[r]],t[n[r]]))return!1;return!0},yK={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CK=Object.defineProperty,EK=Object.getOwnPropertyNames,OK=Object.getOwnPropertySymbols,DK=Object.getOwnPropertyDescriptor,SK=Object.getPrototypeOf,kK=SK&&SK(Object);var TK=function e(t,n,o){if("string"!=typeof n){if(kK){var r=SK(n);r&&r!==kK&&e(t,r,o)}var i=EK(n);OK&&(i=i.concat(OK(n)));for(var a=0;a<i.length;++a){var s=i[a];if(!(yK[s]||wK[s]||o&&o[s])){var l=DK(n,s);try{CK(t,s,l)}catch(e){}}}return t}return t},jK={};Object.defineProperty(jK,"__esModule",{value:!0}),jK.createChangeEmitter=function(){var e=[],t=e;function n(){t===e&&(t=e.slice())}return{listen:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var o=!0;return n(),t.push(e),function(){if(o){o=!1,n();var r=t.indexOf(e);t.splice(r,1)}}},emit:function(){for(var n=e=t,o=0;o<n.length;o++)n[o].apply(n,arguments)}}};var MK=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),AK=ve(Object.freeze({__proto__:null,default:MK}));function NK(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(vK,"__esModule",{value:!0});var PK=u.default,RK=NK(PK),BK=NK(bK),FK=NK(TK),_K=jK,LK=NK(AK),IK=function(e,t){return function(n){return n[e]=t,n}},$K=function(e){return IK("displayName",e)},zK=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0},VK=function(e,t){return t+"("+zK(e)+")"},WK=function(e){return function(t){var n=PK.createFactory(t),o=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?$K(VK(t,"mapProps"))(o):o}},UK=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},HK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qK=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},XK=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},GK=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},YK=function(e,t){for(var n={},o=0;o<t.length;o++){var r=t[o];e.hasOwnProperty(r)&&(n[r]=e[r])}return n},KK=function(e,t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o],o));return n},ZK=function(e,t){for(var n=XK(e,[]),o=0;o<t.length;o++){var r=t[o];n.hasOwnProperty(r)&&delete n[r]}return n},JK=Object.keys,QK=function(e){return e},eZ=function(e){function t(){return UK(this,t),GK(this,e.apply(this,arguments))}return qK(t,e),t.prototype.render=function(){return null},t}(PK.Component),tZ=function(e){return function(t){var n=PK.createFactory(t),o=function(t){function o(){return UK(this,o),GK(this,t.apply(this,arguments))}return qK(o,t),o.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},o.prototype.render=function(){return n(this.props)},o}(PK.Component);return"production"!==process.env.NODE_ENV?$K(VK(t,"shouldUpdate"))(o):o}},nZ=function(e){var t=tZ((function(t,n){return!BK(YK(n,e),YK(t,e))}));return"production"!==process.env.NODE_ENV?function(e){return $K(VK(e,"onlyUpdateForKeys"))(t(e))}:t},oZ=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)};var rZ={fromESObservable:null,toESObservable:null},iZ={fromESObservable:function(e){return"function"==typeof rZ.fromESObservable?rZ.fromESObservable(e):e},toESObservable:function(e){return"function"==typeof rZ.toESObservable?rZ.toESObservable(e):e}},aZ=function(e){return function(t){return function(n){function o(){var r,i,a;UK(this,o);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=GK(this,n.call.apply(n,[this].concat(l))),a.state={vdom:null},a.propsEmitter=_K.createChangeEmitter(),a.props$=e.fromESObservable(((r={subscribe:function(e){return{unsubscribe:a.propsEmitter.listen((function(t){t?e.next(t):e.complete()}))}}})[LK]=function(){return this},r)),a.vdom$=e.toESObservable(t(a.props$)),GK(a,i)}return qK(o,n),o.prototype.componentWillMount=function(){var e=this;this.subscription=this.vdom$.subscribe({next:function(t){e.setState({vdom:t})}}),this.propsEmitter.emit(this.props)},o.prototype.componentWillReceiveProps=function(e){this.propsEmitter.emit(e)},o.prototype.shouldComponentUpdate=function(e,t){return t.vdom!==this.state.vdom},o.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},o.prototype.render=function(){return this.state.vdom},o}(PK.Component)}},sZ=function(e){return e},lZ=function(e){var t=aZ({fromESObservable:sZ,toESObservable:sZ});return function(n){return function(o){var r=PK.createFactory(o),i=e.fromESObservable,a=e.toESObservable;return t((function(e){var t;return(t={subscribe:function(t){var o=a(n(i(e))).subscribe({next:function(e){return t.next(r(e))}});return{unsubscribe:function(){return o.unsubscribe()}}}})[LK]=function(){return this},t}))}}},cZ=function(e){return function(){var t,n=_K.createChangeEmitter(),o=e.fromESObservable(((t={subscribe:function(e){return{unsubscribe:n.listen((function(t){return e.next(t)}))}}})[LK]=function(){return this},t));return{handler:n.emit,stream:o}}},uZ=cZ(iZ);vK.mapProps=WK,vK.withProps=function(e){var t=WK((function(t){return HK({},t,"function"==typeof e?e(t):e)}));return"production"!==process.env.NODE_ENV?function(e){return $K(VK(e,"withProps"))(t(e))}:t},vK.withPropsOnChange=function(e,t){return function(n){var o=PK.createFactory(n),r="function"==typeof e?e:function(t,n){return!BK(YK(t,e),YK(n,e))},i=function(e){function n(){var o,r;UK(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=GK(this,e.call.apply(e,[this].concat(a))),r.computedProps=t(r.props),GK(r,o)}return qK(n,e),n.prototype.componentWillReceiveProps=function(e){r(this.props,e)&&(this.computedProps=t(e))},n.prototype.render=function(){return o(HK({},this.props,this.computedProps))},n}(PK.Component);return"production"!==process.env.NODE_ENV?$K(VK(n,"withPropsOnChange"))(i):i}},vK.withHandlers=function(e){return function(t){var n=PK.createFactory(t),o=function(e){function t(){var n,o;UK(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=GK(this,e.call.apply(e,[this].concat(a))),r.call(o),GK(o,n)}return qK(t,e),t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return n(HK({},this.props,this.handlers))},t}(PK.Component),r=function(){var t=this;this.cachedHandlers={},this.handlers=KK("function"==typeof e?e(this.props):e,(function(e,n){return function(){var o=t.cachedHandlers[n];if(o)return o.apply(void 0,arguments);var r=e(t.props);return t.cachedHandlers[n]=r,"production"!==process.env.NODE_ENV&&"function"!=typeof r&&console.error("withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."),r.apply(void 0,arguments)}}))};return"production"!==process.env.NODE_ENV?$K(VK(t,"withHandlers"))(o):o}},vK.defaultProps=function(e){return function(t){var n=PK.createFactory(t),o=function(e){return n(e)};return o.defaultProps=e,"production"!==process.env.NODE_ENV?$K(VK(t,"defaultProps"))(o):o}},vK.renameProp=function(e,t){var n=WK((function(n){var o;return HK({},ZK(n,[e]),((o={})[t]=n[e],o))}));return"production"!==process.env.NODE_ENV?function(e){return $K(VK(e,"renameProp"))(n(e))}:n},vK.renameProps=function(e){var t=WK((function(t){return HK({},ZK(t,JK(e)),function(e,t){return JK(e).reduce((function(n,o){var r=e[o];return n[t(r,o)]=r,n}),{})}(YK(t,JK(e)),(function(t,n){return e[n]})))}));return"production"!==process.env.NODE_ENV?function(e){return $K(VK(e,"renameProps"))(t(e))}:t},vK.flattenProp=function(e){return function(t){var n=PK.createFactory(t),o=function(t){return n(HK({},t,t[e]))};return"production"!==process.env.NODE_ENV?$K(VK(t,"flattenProp"))(o):o}},vK.withState=function(e,t,n){return function(o){var r=PK.createFactory(o),i=function(o){function i(){var e,t;UK(this,i);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t=GK(this,o.call.apply(o,[this].concat(a))),t.state={stateValue:"function"==typeof n?n(t.props):n},t.updateStateValue=function(e,n){return t.setState((function(t){var n=t.stateValue;return{stateValue:"function"==typeof e?e(n):e}}),n)},GK(t,e)}return qK(i,o),i.prototype.render=function(){var n;return r(HK({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},i}(PK.Component);return"production"!==process.env.NODE_ENV?$K(VK(o,"withState"))(i):i}},vK.withStateHandlers=function(e,t){return function(n){var o=PK.createFactory(n),r=function(e){function t(){var n,o;UK(this,t);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=GK(this,e.call.apply(e,[this].concat(a))),i.call(o),GK(o,n)}return qK(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e!==this.props,o=!BK(t,this.state);return n||o},t.prototype.render=function(){return o(HK({},this.props,this.state,this.stateUpdaters))},t}(PK.Component),i=function(){var n=this;this.state="function"==typeof e?e(this.props):e,this.stateUpdaters=KK(t,(function(e){return function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t&&"function"==typeof t.persist&&t.persist(),n.setState((function(n,o){return e(n,o).apply(void 0,[t].concat(r))}))}}))};return"production"!==process.env.NODE_ENV?$K(VK(n,"withStateHandlers"))(r):r}},vK.withReducer=function(e,t,n,o){return function(r){var i=PK.createFactory(r),a=function(r){function a(){var e,t;UK(this,a);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return e=t=GK(this,r.call.apply(r,[this].concat(i))),t.state={stateValue:t.initializeStateValue()},t.dispatch=function(e){return t.setState((function(t){var o=t.stateValue;return{stateValue:n(o,e)}}))},GK(t,e)}return qK(a,r),a.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:n(void 0,{type:"@@recompose/INIT"})},a.prototype.render=function(){var n;return i(HK({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.dispatch,n)))},a}(PK.Component);return"production"!==process.env.NODE_ENV?$K(VK(r,"withReducer"))(a):a}},vK.branch=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:QK;return function(o){var r=void 0,i=void 0,a=function(a){return e(a)?(r=r||PK.createFactory(t(o)))(a):(i=i||PK.createFactory(n(o)))(a)};return"production"!==process.env.NODE_ENV?$K(VK(o,"branch"))(a):a}},vK.renderComponent=function(e){return function(t){var n=PK.createFactory(e),o=function(e){return n(e)};return"production"!==process.env.NODE_ENV&&(o.displayName=VK(e,"renderComponent")),o}},vK.renderNothing=function(e){return eZ},vK.shouldUpdate=tZ,vK.pure=function(e){var t=tZ((function(e,t){return!BK(e,t)}));return"production"!==process.env.NODE_ENV?$K(VK(e,"pure"))(t(e)):t(e)},vK.onlyUpdateForKeys=nZ,vK.onlyUpdateForPropTypes=function(e){var t=e.propTypes;"production"!==process.env.NODE_ENV&&(t||console.error('A component without any `propTypes` was passed to `onlyUpdateForPropTypes()`. Check the implementation of the component with display name "'+zK(e)+'".'));var n=Object.keys(t||{}),o=nZ(n)(e);return"production"!==process.env.NODE_ENV?$K(VK(e,"onlyUpdateForPropTypes"))(o):o},vK.withContext=function(e,t){return function(n){var o=PK.createFactory(n),r=function(e){function n(){var o,r;UK(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=GK(this,e.call.apply(e,[this].concat(a))),r.getChildContext=function(){return t(r.props)},GK(r,o)}return qK(n,e),n.prototype.render=function(){return o(this.props)},n}(PK.Component);return r.childContextTypes=e,"production"!==process.env.NODE_ENV?$K(VK(n,"withContext"))(r):r}},vK.getContext=function(e){return function(t){var n=PK.createFactory(t),o=function(e,t){return n(HK({},e,t))};return o.contextTypes=e,"production"!==process.env.NODE_ENV?$K(VK(t,"getContext"))(o):o}},vK.lifecycle=function(e){return function(t){var n=PK.createFactory(t);"production"!==process.env.NODE_ENV&&e.hasOwnProperty("render")&&console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");var o=function(e){function t(){return UK(this,t),GK(this,e.apply(this,arguments))}return qK(t,e),t.prototype.render=function(){return n(HK({},this.props,this.state))},t}(PK.Component);return Object.keys(e).forEach((function(t){return o.prototype[t]=e[t]})),"production"!==process.env.NODE_ENV?$K(VK(t,"lifecycle"))(o):o}},vK.toClass=function(e){if(oZ(e))return e;var t=function(t){function n(){return UK(this,n),GK(this,t.apply(this,arguments))}return qK(n,t),n.prototype.render=function(){return"string"==typeof e?RK.createElement(e,this.props):e(this.props,this.context)},n}(PK.Component);return t.displayName=zK(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t},vK.setStatic=IK,vK.setPropTypes=function(e){return IK("propTypes",e)},vK.setDisplayName=$K,vK.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))},vK.getDisplayName=zK,vK.wrapDisplayName=VK,vK.shallowEqual=BK,vK.isClassComponent=oZ,vK.createSink=function(e){return function(t){function n(){return UK(this,n),GK(this,t.apply(this,arguments))}return qK(n,t),n.prototype.componentWillMount=function(){e(this.props)},n.prototype.componentWillReceiveProps=function(t){e(t)},n.prototype.render=function(){return null},n}(PK.Component)},vK.componentFromProp=function(e){var t=function(t){return PK.createElement(t[e],ZK(t,[e]))};return t.displayName="componentFromProp("+e+")",t},vK.nest=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.map(PK.createFactory),r=function(e){var t=XK(e,[]),n=e.children;return o.reduceRight((function(e,n){return n(t,e)}),n)};if("production"!==process.env.NODE_ENV){var i=t.map(zK);r.displayName="nest("+i.join(", ")+")"}return r},vK.hoistStatics=function(e){return function(t){var n=e(t);return FK(n,t),n}},vK.componentFromStream=function(e){return aZ(iZ)(e)},vK.componentFromStreamWithConfig=aZ,vK.mapPropsStream=function(e){var t=lZ(iZ)(e);return"production"!==process.env.NODE_ENV?function(e){return $K(VK(e,"mapPropsStream"))(t(e))}:t},vK.mapPropsStreamWithConfig=lZ,vK.createEventHandler=uZ,vK.createEventHandlerWithConfig=cZ,vK.setObservableConfig=function(e){rZ=e};var pZ,dZ={exports:{}};
|
255
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)t.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(KR);var ZR=KR.exports;function JR(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function QR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function eB(e,t){if(e){if("string"==typeof e)return QR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QR(e,t):void 0}}function tB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||eB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nB(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var oB,rB,iB,aB=(oB=GR(),rB="undefined"!=typeof window?window:{},iB={animationend:nB("Animation","AnimationEnd"),transitionend:nB("Transition","TransitionEnd")},oB&&("AnimationEvent"in rB||delete iB.animationend.animation,"TransitionEvent"in rB||delete iB.transitionend.transition),iB),sB={};if(GR()){var lB=document.createElement("div");sB=lB.style}var cB={};function uB(e){if(cB[e])return cB[e];var t=aB[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sB)return cB[e]=t[i],cB[e]}return""}var pB=uB("animationend"),dB=uB("transitionend"),fB=!(!pB||!dB),hB=pB||"animationend",mB=dB||"transitionend";function vB(e,t){if(!e)return null;if("object"===xR(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}function gB(e){var t=c.useRef(!1),n=tB(c.useState(e),2),o=n[0],r=n[1];return c.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||r(e)}]}var xB=GR()?n.useLayoutEffect:n.useEffect,bB=["prepare","start","active","end"];function yB(e){return"active"===e||"end"===e}var wB=function(e,t){var n=tB(gB("none"),2),o=n[0],r=n[1],i=function(){var e=c.useRef(null);function t(){FR.cancel(e.current)}return c.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=FR((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),a=tB(i,2),s=a[0],l=a[1];return xB((function(){if("none"!==o&&"end"!==o){var e=bB.indexOf(o),n=bB[e+1],i=t(o);false===i?r(n,!0):s((function(e){function t(){e.isCanceled()||r(n,!0)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,o]),c.useEffect((function(){return function(){l()}}),[]),[function(){r("prepare",!0)},o]};function CB(e,t,o,r){var i=r.motionEnter,a=void 0===i||i,s=r.motionAppear,l=void 0===s||s,u=r.motionLeave,p=void 0===u||u,d=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,x=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,C=r.onLeaveActive,E=r.onAppearEnd,O=r.onEnterEnd,D=r.onLeaveEnd,S=r.onVisibleChanged,k=tB(gB(),2),T=k[0],j=k[1],M=tB(gB("none"),2),A=M[0],N=M[1],P=tB(gB(null),2),R=P[0],B=P[1],F=n.useRef(!1),_=n.useRef(null);function L(){return o()}var I=n.useRef(!1);function $(e){var t=L();if(!e||e.deadline||e.target===t){var n,o=I.current;"appear"===A&&o?n=null==E?void 0:E(t,e):"enter"===A&&o?n=null==O?void 0:O(t,e):"leave"===A&&o&&(n=null==D?void 0:D(t,e)),"none"!==A&&o&&!1!==n&&(N("none",!0),B(null,!0))}}var z=function(e){var t=n.useRef(),o=n.useRef(e);o.current=e;var r=c.useCallback((function(e){o.current(e)}),[]);function i(e){e&&(e.removeEventListener(mB,r),e.removeEventListener(hB,r))}return c.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(mB,r),e.addEventListener(hB,r),t.current=e)},i]}($),V=tB(z,1)[0],W=c.useMemo((function(){var e,t,n;switch(A){case"appear":return yR(e={},"prepare",h),yR(e,"start",g),yR(e,"active",y),e;case"enter":return yR(t={},"prepare",m),yR(t,"start",x),yR(t,"active",w),t;case"leave":return yR(n={},"prepare",v),yR(n,"start",b),yR(n,"active",C),n;default:return{}}}),[A]),U=tB(wB(A,(function(e){if("prepare"===e){var t=W.prepare;return!!t&&t(L())}var n;q in W&&B((null===(n=W[q])||void 0===n?void 0:n.call(W,L(),null))||null);return"active"===q&&(V(L()),d>0&&(clearTimeout(_.current),_.current=setTimeout((function(){$({deadline:!0})}),d))),true})),2),H=U[0],q=U[1],X=yB(q);I.current=X,xB((function(){j(t);var n,o=F.current;(F.current=!0,e)&&(!o&&t&&l&&(n="appear"),o&&t&&a&&(n="enter"),(o&&!t&&p||!o&&f&&!t&&p)&&(n="leave"),n&&(N(n),H()))}),[t]),n.useEffect((function(){("appear"===A&&!l||"enter"===A&&!a||"leave"===A&&!p)&&N("none")}),[l,a,p]),n.useEffect((function(){return function(){F.current=!1,clearTimeout(_.current)}}),[]);var G=c.useRef(!1);n.useEffect((function(){T&&(G.current=!0),void 0!==T&&"none"===A&&((G.current||T)&&(null==S||S(T)),G.current=!0)}),[T,A]);var Y=R;return W.prepare&&"start"===q&&(Y=CR({transition:"none"},Y)),[A,q,Y,null!=T?T:t]}var EB=function(e){kR(n,c.Component);var t=MR(n);function n(){return OR(this,n),t.apply(this,arguments)}return SR(n,[{key:"render",value:function(){return this.props.children}}]),n}();var OB=function(e){var t=e;function o(e){return!(!e.motionName||!t)}"object"===xR(e)&&(t=e.transitionSupport);var r=c.forwardRef((function(e,t){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,s=void 0===a||a,l=e.forceRender,u=e.children,p=e.motionName,d=e.leavedClassName,f=e.eventProps,h=o(e),m=n.useRef(),v=n.useRef();var g=tB(CB(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:LR(v.current)}catch(e){return null}}),e),4),x=g[0],b=g[1],y=g[2],w=g[3],C=c.useRef(w);w&&(C.current=!0);var E,O=c.useCallback((function(e){m.current=e,UR(t,e)}),[t]),D=CR(CR({},f),{},{visible:i});if(u)if("none"!==x&&o(e)){var S,k;"prepare"===b?k="prepare":yB(b)?k="active":"start"===b&&(k="start"),E=u(CR(CR({},D),{},{className:ZR(vB(p,x),(S={},yR(S,vB(p,"".concat(x,"-").concat(k)),k),yR(S,p,"string"==typeof p),S)),style:y}),O)}else E=w?u(CR({},D),O):!s&&C.current?u(CR(CR({},D),{},{className:d}),O):l?u(CR(CR({},D),{},{style:{display:"none"}}),O):null;else E=null;c.isValidElement(E)&&qR(E)&&(E.ref||(E=c.cloneElement(E,{ref:O})));return c.createElement(EB,{ref:v},E)}));return r.displayName="CSSMotion",r}(fB);function DB(e){var t;return CR(CR({},t=e&&"object"===xR(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function SB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(DB)}function kB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=SB(e),a=SB(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return CR(CR({},e),{},{status:"add"})}))),o=i),n.push(CR(CR({},s),{},{status:"keep"})),o+=1,t=!0;break}}t||n.push(CR(CR({},e),{},{status:"remove"}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return CR(CR({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||"remove"!==o}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var TB=["component","children","onVisibleChanged","onAllRemoved"],jB=["status"],MB=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var AB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OB,n=function(e){kR(o,c.Component);var n=MR(o);function o(){var e;OR(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:CR(CR({},e),{},{status:"removed"})}));return e.setState({keyEntities:n}),n.filter((function(e){return"removed"!==e.status})).length},e}return SR(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,a=o.onVisibleChanged,s=o.onAllRemoved,l=ER(o,TB),u=r||c.Fragment,p={};return MB.forEach((function(e){p[e]=l[e],delete l[e]})),delete l.keys,c.createElement(u,l,n.map((function(n){var o=n.status,r=ER(n,jB),l="add"===o||"keep"===o;return c.createElement(t,Tl({},p,{key:r.key,visible:l,eventProps:r,onVisibleChanged:function(t){(null==a||a(t,{key:r.key}),t)||0===e.removeKey(r.key)&&s&&s()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=SB(n);return{keyEntities:kB(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}();return n.defaultProps={component:"div"},n}(fB);function NB(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function PB(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,r=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!r)return null;var l={};return(i||s||a)&&(l=CR({motionAppear:!0},NB({motion:i,prefixCls:t,transitionName:s,animation:a}))),c.createElement(OB,Tl({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:ZR("".concat(t,"-mask"),n)})}))}var RB,BB=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}return!1};function FB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FB(Object(n),!0).forEach((function(t){IB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LB(e){return LB="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},LB(e)}function IB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $B={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function zB(){if(void 0!==RB)return RB;RB="";var e=document.createElement("p").style;for(var t in $B)t+"Transform"in e&&(RB=t);return RB}function VB(){return zB()?"".concat(zB(),"TransitionProperty"):"transitionProperty"}function WB(){return zB()?"".concat(zB(),"Transform"):"transform"}function UB(e,t){var n=VB();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function HB(e,t){var n=WB();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var qB,XB=/matrix\((.*)\)/,GB=/matrix3d\((.*)\)/;function YB(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function KB(e,t,n){var o=n;if("object"!==LB(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):qB(e,t);for(var r in t)t.hasOwnProperty(r)&&KB(e,r,t[r])}function ZB(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function JB(e){return ZB(e)}function QB(e){return ZB(e,!0)}function eF(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=JB(o),t.top+=QB(o),t}function tF(e){return null!=e&&e==e.window}function nF(e){return tF(e)?e.document:9===e.nodeType?e:e.ownerDocument}var oF=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),rF=/^(top|right|bottom|left)$/;function iF(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function aF(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function sF(e,t,n){"static"===KB(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=iF("left",n),a=iF("top",n),s=aF(i),l=aF(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var c,u="",p=eF(e);("left"in t||"top"in t)&&(u=(c=e).style.transitionProperty||c.style[VB()]||"",UB(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(r,"px")),YB(e);var d=eF(e),f={};for(var h in t)if(t.hasOwnProperty(h)){var m=iF(h,n),v="left"===h?o:r,g=p[h]-d[h];f[m]=m===h?v+g:v-g}KB(e,f),YB(e),("left"in t||"top"in t)&&UB(e,u);var x={};for(var b in t)if(t.hasOwnProperty(b)){var y=iF(b,n),w=t[b]-p[b];x[y]=b===y?f[y]+w:f[y]-w}KB(e,x)}function lF(e,t){var n=eF(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(WB());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(WB());if(o&&"none"!==o){var r,i=o.match(XB);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,HB(e,"matrix(".concat(r.join(","),")"))):((r=o.match(GB)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,HB(e,"matrix3d(".concat(r.join(","),")")))}else HB(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function cF(e,t){for(var n=0;n<e.length;n++)t(e[n])}function uF(e){return"border-box"===qB(e,"boxSizing")}"undefined"!=typeof window&&(qB=window.getComputedStyle?function(e,t,n){var o=n,r="",i=nF(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(oF.test(n)&&!rF.test(t)){var o=e.style,r=o.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=r,e.runtimeStyle.left=i}return""===n?"auto":n});var pF=["margin","border","padding"];function dF(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}function fF(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var s=void 0;s="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(qB(e,s))||0}return a}var hF={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function mF(e,t,n){var o=n;if(tF(e))return"width"===t?hF.viewportWidth(e):hF.viewportHeight(e);if(9===e.nodeType)return"width"===t?hF.docWidth(e):hF.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=uF(e),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=qB(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===o&&(o=a?1:-1);var l=void 0!==i||a,c=i||s;return-1===o?l?c-fF(e,["border","padding"],r):s:l?1===o?c:c+(2===o?-fF(e,["border"],r):fF(e,["margin"],r)):s+fF(e,pF.slice(o),r)}cF(["Width","Height"],(function(e){hF["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],hF["viewport".concat(e)](n))},hF["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var vF={position:"absolute",visibility:"hidden",display:"block"};function gF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=mF.apply(void 0,t):dF(r,vF,(function(){o=mF.apply(void 0,t)})),o}function xF(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}cF(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);hF["outer".concat(t)]=function(t,n){return t&&gF(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];hF[e]=function(t,o){var r=o;return void 0!==r?t?(uF(t)&&(r+=fF(t,["padding","border"],n)),KB(t,e,r)):void 0:t&&gF(t,e,-1)}}));var bF={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:nF,offset:function(e,t,n){if(void 0===t)return eF(e);!function(e,t,n){if(n.ignoreShake){var o=eF(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(r===a&&i===s)return}n.useCssRight||n.useCssBottom?sF(e,t,n):n.useCssTransform&&WB()in document.body.style?lF(e,t):sF(e,t,n)}(e,t,n||{})},isWindow:tF,each:cF,css:KB,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:xF,getWindowScrollLeft:function(e){return JB(e)},getWindowScrollTop:function(e){return QB(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)bF.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};xF(bF,hF);var yF=bF.getParent;function wF(e){if(bF.isWindow(e)||9===e.nodeType)return null;var t,n=bF.getDocument(e).body,o=bF.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:yF(e);for(t=yF(e);t&&t!==n&&9!==t.nodeType;t=yF(t))if("static"!==(o=bF.css(t,"position")))return t;return null}var CF=bF.getParent;function EF(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=wF(e),r=bF.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,s=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===s||"visible"===bF.css(o,"overflow")){if(o===a||o===s)break}else{var l=bF.offset(o);l.left+=o.clientLeft,l.top+=o.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+o.clientWidth),n.bottom=Math.min(n.bottom,l.top+o.clientHeight),n.left=Math.max(n.left,l.left)}o=wF(o)}var c=null;bF.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===bF.css(e,"position")&&(e.style.position="fixed"));var u=bF.getWindowScrollLeft(i),p=bF.getWindowScrollTop(i),d=bF.viewportWidth(i),f=bF.viewportHeight(i),h=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(bF.isWindow(e)||9===e.nodeType)return!1;var t=bF.getDocument(e),n=t.body,o=null;for(o=CF(e);o&&o!==n&&o!==t;o=CF(o))if("fixed"===bF.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,p),n.right=Math.min(n.right,u+d),n.bottom=Math.min(n.bottom,p+f);else{var g=Math.max(h,u+d);n.right=Math.min(n.right,g);var x=Math.max(m,p+f);n.bottom=Math.min(n.bottom,x)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function OF(e){var t,n,o;if(bF.isWindow(e)||9===e.nodeType){var r=bF.getWindow(e);t={left:bF.getWindowScrollLeft(r),top:bF.getWindowScrollTop(r)},n=bF.viewportWidth(r),o=bF.viewportHeight(r)}else t=bF.offset(e),n=bF.outerWidth(e),o=bF.outerHeight(e);return t.width=n,t.height=o,t}function DF(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:s}}function SF(e,t,n,o,r){var i=DF(t,n[1]),a=DF(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+o[0]-r[0]),top:Math.round(e.top-s[1]+o[1]-r[1])}}function kF(e,t,n){return e.left<n.left||e.left+t.width>n.right}function TF(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function jF(e,t,n){var o=[];return bF.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function MF(e,t){return e[t]=-e[t],e}function AF(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function NF(e,t){e[0]=AF(e[0],t.width),e[1]=AF(e[1],t.height)}function PF(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var c={},u=0,p=EF(l,!(!(s=s||{})||!s.alwaysByViewport)),d=OF(l);NF(i,d),NF(a,t);var f=SF(d,t,r,i,a),h=bF.merge(d,f);if(p&&(s.adjustX||s.adjustY)&&o){if(s.adjustX&&kF(f,d,p)){var m=jF(r,/[lr]/gi,{l:"r",r:"l"}),v=MF(i,0),g=MF(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(SF(d,t,m,v,g),d,p)||(u=1,r=m,i=v,a=g)}if(s.adjustY&&TF(f,d,p)){var x=jF(r,/[tb]/gi,{t:"b",b:"t"}),b=MF(i,1),y=MF(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(SF(d,t,x,b,y),d,p)||(u=1,r=x,i=b,a=y)}u&&(f=SF(d,t,r,i,a),bF.mix(h,f));var w=kF(f,d,p),C=TF(f,d,p);if(w||C){var E=r;w&&(E=jF(r,/[lr]/gi,{l:"r",r:"l"})),C&&(E=jF(r,/[tb]/gi,{t:"b",b:"t"})),r=E,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&w,c.adjustY=s.adjustY&&C,(c.adjustX||c.adjustY)&&(h=function(e,t,n,o){var r=bF.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),bF.mix(r,i)}(f,d,p,c))}return h.width!==d.width&&bF.css(l,"width",bF.width(l)+h.width-d.width),h.height!==d.height&&bF.css(l,"height",bF.height(l)+h.height-d.height),bF.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:c}}function RF(e,t,n){var o=n.target||t,r=OF(o),i=!function(e,t){var n=EF(e,t),o=OF(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return PF(e,r,n,i)}RF.__getOffsetParent=wF,RF.__getVisibleRectForElement=EF;var BF=function(){this.__data__=[],this.size=0};var FF=function(e,t){return e===t||e!=e&&t!=t},_F=FF;var LF=function(e,t){for(var n=e.length;n--;)if(_F(e[n][0],t))return n;return-1},IF=LF,$F=Array.prototype.splice;var zF=function(e){var t=this.__data__,n=IF(t,e);return!(n<0)&&(n==t.length-1?t.pop():$F.call(t,n,1),--this.size,!0)},VF=LF;var WF=function(e){var t=this.__data__,n=VF(t,e);return n<0?void 0:t[n][1]},UF=LF;var HF=LF;var qF=function(e,t){var n=this.__data__,o=HF(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},XF=BF,GF=zF,YF=WF,KF=function(e){return UF(this.__data__,e)>-1},ZF=qF;function JF(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}JF.prototype.clear=XF,JF.prototype.delete=GF,JF.prototype.get=YF,JF.prototype.has=KF,JF.prototype.set=ZF;var QF=JF,e_=QF;var t_=function(){this.__data__=new e_,this.size=0};var n_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var o_=function(e){return this.__data__.get(e)};var r_=function(e){return this.__data__.has(e)},i_=YT,a_=ST;var s_=function(e){if(!a_(e))return!1;var t=i_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},l_=MT["__core-js_shared__"],c_=function(){var e=/[^.]+$/.exec(l_&&l_.keys&&l_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var u_=function(e){return!!c_&&c_ in e},p_=Function.prototype.toString;var d_=function(e){if(null!=e){try{return p_.call(e)}catch(e){}try{return e+""}catch(e){}}return""},f_=s_,h_=u_,m_=ST,v_=d_,g_=/^\[object .+?Constructor\]$/,x_=Function.prototype,b_=Object.prototype,y_=x_.toString,w_=b_.hasOwnProperty,C_=RegExp("^"+y_.call(w_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var E_=function(e){return!(!m_(e)||h_(e))&&(f_(e)?C_:g_).test(v_(e))},O_=function(e,t){return null==e?void 0:e[t]};var D_=function(e,t){var n=O_(e,t);return E_(n)?n:void 0},S_=D_(MT,"Map"),k_=D_(Object,"create"),T_=k_;var j_=function(){this.__data__=T_?T_(null):{},this.size=0};var M_=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},A_=k_,N_=Object.prototype.hasOwnProperty;var P_=function(e){var t=this.__data__;if(A_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return N_.call(t,e)?t[e]:void 0},R_=k_,B_=Object.prototype.hasOwnProperty;var F_=k_;var __=j_,L_=M_,I_=P_,$_=function(e){var t=this.__data__;return R_?void 0!==t[e]:B_.call(t,e)},z_=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F_&&void 0===t?"__lodash_hash_undefined__":t,this};function V_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}V_.prototype.clear=__,V_.prototype.delete=L_,V_.prototype.get=I_,V_.prototype.has=$_,V_.prototype.set=z_;var W_=V_,U_=QF,H_=S_;var q_=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var X_=function(e,t){var n=e.__data__;return q_(t)?n["string"==typeof t?"string":"hash"]:n.map},G_=X_;var Y_=function(e){var t=G_(this,e).delete(e);return this.size-=t?1:0,t},K_=X_;var Z_=X_;var J_=X_;var Q_=function(){this.size=0,this.__data__={hash:new W_,map:new(H_||U_),string:new W_}},eL=Y_,tL=function(e){return K_(this,e).get(e)},nL=function(e){return Z_(this,e).has(e)},oL=function(e,t){var n=J_(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function rL(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}rL.prototype.clear=Q_,rL.prototype.delete=eL,rL.prototype.get=tL,rL.prototype.has=nL,rL.prototype.set=oL;var iL=rL,aL=QF,sL=S_,lL=iL;var cL=QF,uL=t_,pL=n_,dL=o_,fL=r_,hL=function(e,t){var n=this.__data__;if(n instanceof aL){var o=n.__data__;if(!sL||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new lL(o)}return n.set(e,t),this.size=n.size,this};function mL(e){var t=this.__data__=new cL(e);this.size=t.size}mL.prototype.clear=uL,mL.prototype.delete=pL,mL.prototype.get=dL,mL.prototype.has=fL,mL.prototype.set=hL;var vL=mL;var gL=iL,xL=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bL=function(e){return this.__data__.has(e)};function yL(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new gL;++t<n;)this.add(e[t])}yL.prototype.add=yL.prototype.push=xL,yL.prototype.has=bL;var wL=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var CL=yL,EL=wL,OL=function(e,t){return e.has(t)};var DL=function(e,t,n,o,r,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,f=2&n?new CL:void 0;for(i.set(e,t),i.set(t,e);++p<s;){var h=e[p],m=t[p];if(o)var v=a?o(m,h,p,t,e,i):o(h,m,p,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!EL(t,(function(e,t){if(!OL(f,t)&&(h===e||r(h,e,n,o,i)))return f.push(t)}))){d=!1;break}}else if(h!==m&&!r(h,m,n,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var SL=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var kL=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},TL=MT.Uint8Array,jL=FF,ML=DL,AL=SL,NL=kL,PL=LT?LT.prototype:void 0,RL=PL?PL.valueOf:void 0;var BL=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new TL(e),new TL(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jL(+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 s=AL;case"[object Set]":var l=1&o;if(s||(s=NL),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var u=ML(s(e),s(t),o,r,i,a);return a.delete(e),u;case"[object Symbol]":if(RL)return RL.call(e)==RL.call(t)}return!1};var FL=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},_L=Array.isArray,LL=FL,IL=_L;var $L=function(e,t,n){var o=t(e);return IL(e)?o:LL(o,n(e))};var zL=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var VL=zL,WL=function(){return[]},UL=Object.prototype.propertyIsEnumerable,HL=Object.getOwnPropertySymbols,qL=HL?function(e){return null==e?[]:(e=Object(e),VL(HL(e),(function(t){return UL.call(e,t)})))}:WL,XL=qL;var GL=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},YL=YT,KL=KT;var ZL=function(e){return KL(e)&&"[object Arguments]"==YL(e)},JL=KT,QL=Object.prototype,eI=QL.hasOwnProperty,tI=QL.propertyIsEnumerable,nI=ZL(function(){return arguments}())?ZL:function(e){return JL(e)&&eI.call(e,"callee")&&!tI.call(e,"callee")},oI={exports:{}};var rI=function(){return!1};!function(e,t){var n=MT,o=rI,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o;e.exports=s}(oI,oI.exports);var iI=/^(?:0|[1-9]\d*)$/;var aI=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&iI.test(e))&&e>-1&&e%1==0&&e<t};var sI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},lI=YT,cI=sI,uI=KT,pI={};pI["[object Float32Array]"]=pI["[object Float64Array]"]=pI["[object Int8Array]"]=pI["[object Int16Array]"]=pI["[object Int32Array]"]=pI["[object Uint8Array]"]=pI["[object Uint8ClampedArray]"]=pI["[object Uint16Array]"]=pI["[object Uint32Array]"]=!0,pI["[object Arguments]"]=pI["[object Array]"]=pI["[object ArrayBuffer]"]=pI["[object Boolean]"]=pI["[object DataView]"]=pI["[object Date]"]=pI["[object Error]"]=pI["[object Function]"]=pI["[object Map]"]=pI["[object Number]"]=pI["[object Object]"]=pI["[object RegExp]"]=pI["[object Set]"]=pI["[object String]"]=pI["[object WeakMap]"]=!1;var dI=function(e){return uI(e)&&cI(e.length)&&!!pI[lI(e)]};var fI=function(e){return function(t){return e(t)}},hI={exports:{}};!function(e,t){var n=kT,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(hI,hI.exports);var mI=dI,vI=fI,gI=hI.exports,xI=gI&&gI.isTypedArray,bI=xI?vI(xI):mI,yI=GL,wI=nI,CI=_L,EI=oI.exports,OI=aI,DI=bI,SI=Object.prototype.hasOwnProperty;var kI=function(e,t){var n=CI(e),o=!n&&wI(e),r=!n&&!o&&EI(e),i=!n&&!o&&!r&&DI(e),a=n||o||r||i,s=a?yI(e.length,String):[],l=s.length;for(var c in e)!t&&!SI.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||OI(c,l))||s.push(c);return s},TI=Object.prototype;var jI=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||TI)};var MI=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),AI=jI,NI=MI,PI=Object.prototype.hasOwnProperty;var RI=function(e){if(!AI(e))return NI(e);var t=[];for(var n in Object(e))PI.call(e,n)&&"constructor"!=n&&t.push(n);return t},BI=s_,FI=sI;var _I=function(e){return null!=e&&FI(e.length)&&!BI(e)},LI=kI,II=RI,$I=_I;var zI=function(e){return $I(e)?LI(e):II(e)},VI=$L,WI=XL,UI=zI;var HI=function(e){return VI(e,UI,WI)},qI=Object.prototype.hasOwnProperty;var XI=function(e,t,n,o,r,i){var a=1&n,s=HI(e),l=s.length;if(l!=HI(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:qI.call(t,u)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var m=e[u=s[c]],v=t[u];if(o)var g=a?o(v,m,u,t,e,i):o(m,v,u,e,t,i);if(!(void 0===g?m===v||r(m,v,n,o,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var x=e.constructor,b=t.constructor;x==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f},GI=D_(MT,"DataView"),YI=D_(MT,"Promise"),KI=D_(MT,"Set"),ZI=D_(MT,"WeakMap"),JI=GI,QI=S_,e$=YI,t$=KI,n$=ZI,o$=YT,r$=d_,i$=r$(JI),a$=r$(QI),s$=r$(e$),l$=r$(t$),c$=r$(n$),u$=o$;(JI&&"[object DataView]"!=u$(new JI(new ArrayBuffer(1)))||QI&&"[object Map]"!=u$(new QI)||e$&&"[object Promise]"!=u$(e$.resolve())||t$&&"[object Set]"!=u$(new t$)||n$&&"[object WeakMap]"!=u$(new n$))&&(u$=function(e){var t=o$(e),n="[object Object]"==t?e.constructor:void 0,o=n?r$(n):"";if(o)switch(o){case i$:return"[object DataView]";case a$:return"[object Map]";case s$:return"[object Promise]";case l$:return"[object Set]";case c$:return"[object WeakMap]"}return t});var p$=vL,d$=DL,f$=BL,h$=XI,m$=u$,v$=_L,g$=oI.exports,x$=bI,b$="[object Object]",y$=Object.prototype.hasOwnProperty;var w$=function(e,t,n,o,r,i){var a=v$(e),s=v$(t),l=a?"[object Array]":m$(e),c=s?"[object Array]":m$(t),u=(l="[object Arguments]"==l?b$:l)==b$,p=(c="[object Arguments]"==c?b$:c)==b$,d=l==c;if(d&&g$(e)){if(!g$(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new p$),a||x$(e)?d$(e,t,n,o,r,i):f$(e,t,l,n,o,r,i);if(!(1&n)){var f=u&&y$.call(e,"__wrapped__"),h=p&&y$.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return i||(i=new p$),r(m,v,n,o,i)}}return!!d&&(i||(i=new p$),h$(e,t,n,o,r,i))},C$=KT;var E$=function e(t,n,o,r,i){return t===n||(null==t||null==n||!C$(t)&&!C$(n)?t!=t&&n!=n:w$(t,n,o,r,e,i))},O$=E$;var D$=function(e,t){return O$(e,t)},S$=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),k$="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,T$="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),j$="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(T$):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var M$=["top","right","bottom","left","width","height","size","weight"],A$="undefined"!=typeof MutationObserver,N$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){j$(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k$&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A$?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k$&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;M$.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),P$=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},R$=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||T$},B$=z$(0,0,0,0);function F$(e){return parseFloat(e)||0}function _$(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+F$(e["border-"+n+"-width"])}),0)}function L$(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return B$;var o=R$(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=F$(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=F$(o.width),l=F$(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=_$(o,"left","right")+i),Math.round(l+a)!==n&&(l-=_$(o,"top","bottom")+a)),!function(e){return e===R$(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return z$(r.left,r.top,s,l)}var I$="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof R$(e).SVGGraphicsElement}:function(e){return e instanceof R$(e).SVGElement&&"function"==typeof e.getBBox};function $$(e){return k$?I$(e)?function(e){var t=e.getBBox();return z$(0,0,t.width,t.height)}(e):L$(e):B$}function z$(e,t,n,o){return{x:e,y:t,width:n,height:o}}var V$=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z$(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=$$(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),W$=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return P$(a,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),a}(t);P$(this,{target:e,contentRect:n})},U$=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new S$,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof R$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new V$(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof R$(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new W$(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),H$="undefined"!=typeof WeakMap?new WeakMap:new S$,q$=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N$.getInstance(),o=new U$(t,n,this);H$.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){q$.prototype[e]=function(){var t;return(t=H$.get(this))[e].apply(t,arguments)}}));var X$=void 0!==T$.ResizeObserver?T$.ResizeObserver:q$;function G$(e,t){var n=null,o=null;var r=new X$((function(e){var r=tB(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),c=Math.floor(s);n===l&&o===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,o=c}}));return e&&r.observe(e),function(){r.disconnect()}}function Y$(e){return"function"!=typeof e?null:e()}function K$(e){return"object"===xR(e)&&e?e:null}var Z$=function(e,t){var n=e.children,o=e.disabled,r=e.target,i=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,p=u.default.useRef({}),d=u.default.useRef(),f=u.default.Children.only(n),h=u.default.useRef({});h.current.disabled=o,h.current.target=r,h.current.align=i,h.current.onAlign=a;var m=function(e,t){var n=u.default.useRef(!1),o=u.default.useRef(null);function r(){window.clearTimeout(o.current)}return[function i(a){if(r(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,r()}]}((function(){var e=h.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign;if(!t&&n){var i,a=d.current,s=Y$(n),l=K$(n);p.current.element=s,p.current.point=l,p.current.align=o;var c=document.activeElement;return s&&BB(s)?i=RF(a,s,o):l&&(i=function(e,t,n){var o,r,i=bF.getDocument(e),a=i.defaultView||i.parentWindow,s=bF.getWindowScrollLeft(a),l=bF.getWindowScrollTop(a),c=bF.viewportWidth(a),u=bF.viewportHeight(a),p={left:o="pageX"in t?t.pageX:s+t.clientX,top:r="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=o>=0&&o<=s+c&&r>=0&&r<=l+u,f=[n.points[0],"cc"];return PF(e,p,_B(_B({},n),{},{points:f}),d)}(a,l,o)),function(e,t){e!==document.activeElement&&_R(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),r&&i&&r(a,i),!0}return!1}),c),v=tB(m,2),g=v[0],x=v[1],b=u.default.useRef({cancel:function(){}}),y=u.default.useRef({cancel:function(){}});u.default.useEffect((function(){var e,t,n=Y$(r),o=K$(r);d.current!==y.current.element&&(y.current.cancel(),y.current.element=d.current,y.current.cancel=G$(d.current,g)),p.current.element===n&&((e=p.current.point)===(t=o)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&D$(p.current.align,i)||(g(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=G$(n,g)))})),u.default.useEffect((function(){o?x():g()}),[o]);var w=u.default.useRef(null);return u.default.useEffect((function(){s?w.current||(w.current=XR(window,"resize",g)):w.current&&(w.current.remove(),w.current=null)}),[s]),u.default.useEffect((function(){return function(){b.current.cancel(),y.current.cancel(),w.current&&w.current.remove(),x()}}),[]),u.default.useImperativeHandle(t,(function(){return{forceAlign:function(){return g(!0)}}})),u.default.isValidElement(f)&&(f=u.default.cloneElement(f,{ref:HR(f.ref,d)})),f},J$=u.default.forwardRef(Z$);J$.displayName="Align";var Q$="test"!==process.env.NODE_ENV&&GR()?c.useLayoutEffect:c.useEffect;function ez(){ez=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new D(r||[]);return o(a,"_invoke",{value:w(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function d(){}function f(){}function h(){}var m={};l(m,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==t&&n.call(g,i)&&(m=g);var x=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==xR(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function w(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return k()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=u(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=u(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=h,o(x,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},b(y.prototype),l(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new y(c(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=S,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return a.type="throw",a.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function tz(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function nz(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){tz(i,o,r,a,s,"next",e)}function s(e){tz(i,o,r,a,s,"throw",e)}a(void 0)}))}}var oz=["measure","alignPre","align",null,"motion"],rz=c.forwardRef((function(e,t){var o=e.visible,r=e.prefixCls,i=e.className,a=e.style,s=e.children,l=e.zIndex,u=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,f=e.align,h=e.point,m=e.getRootDomNode,v=e.getClassNameFromAlign,g=e.onAlign,x=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,w=e.onTouchStart,C=e.onClick,E=n.useRef(),O=n.useRef(),D=tB(n.useState(),2),S=D[0],k=D[1],T=function(e){var t=tB(c.useState({width:0,height:0}),2),n=t[0],o=t[1],r=c.useMemo((function(){var t={};if(e){var o=n.width,r=n.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&o?t.width=o:-1!==e.indexOf("minWidth")&&o&&(t.minWidth=o)}return t}),[e,n]);return[r,function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(u),j=tB(T,2),M=j[0],A=j[1];var N=function(e,t){var o=tB(gB(null),2),r=o[0],i=o[1],a=n.useRef();function s(e){i(e,!0)}function l(){FR.cancel(a.current)}return n.useEffect((function(){s("measure")}),[e]),n.useEffect((function(){"measure"===r&&t(),r&&(a.current=FR(nz(ez().mark((function e(){var t,n;return ez().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=oz.indexOf(r),(n=oz[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),n.useEffect((function(){return function(){l()}}),[]),[r,function(e){l(),a.current=FR((function(){s((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(o,(function(){u&&A(m())})),P=tB(N,2),R=P[0],B=P[1],F=tB(n.useState(0),2),_=F[0],L=F[1],I=n.useRef();function $(){var e;null===(e=E.current)||void 0===e||e.forceAlign()}function z(e,t){var n=v(t);S!==n&&k(n),L((function(e){return e+1})),"align"===R&&(null==g||g(e,t))}Q$((function(){"alignPre"===R&&L(0)}),[R]),Q$((function(){"align"===R&&(_<2?$():B((function(){var e;null===(e=I.current)||void 0===e||e.call(I)})))}),[_]);var V=CR({},NB(e));function W(){return new Promise((function(e){I.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=V[e];V[e]=function(e,n){return B(),null==t?void 0:t(e,n)}})),c.useEffect((function(){V.motionName||"motion"!==R||B()}),[V.motionName,R]),c.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return O.current}}}));var U=CR(CR({},M),{},{zIndex:l,opacity:"motion"!==R&&"stable"!==R&&o?0:void 0,pointerEvents:o||"stable"===R?void 0:"none"},a),H=!0;!(null==f?void 0:f.points)||"align"!==R&&"stable"!==R||(H=!1);var q=s;return c.Children.count(s)>1&&(q=c.createElement("div",{className:"".concat(r,"-content")},s)),c.createElement(OB,Tl({visible:o,ref:O,leavedClassName:"".concat(r,"-hidden")},V,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,a=ZR(r,i,S,n);return c.createElement(J$,{target:h||m,key:"popup",ref:E,monitorWindowResize:!0,disabled:H,align:f,onAlign:z},c.createElement("div",{ref:t,className:a,onMouseEnter:x,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:w,onClick:C,style:CR(CR({},o),U)},q))}))}));rz.displayName="PopupInner";var iz=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,r=e.zIndex,i=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,u=a.popupMotion,p=void 0===u?{}:u,d=a.popupRender,f=e.onClick,h=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=CR({zIndex:r},l),v=i;return c.Children.count(i)>1&&(v=c.createElement("div",{className:"".concat(n,"-content")},i)),d&&(v=d(v)),c.createElement(OB,Tl({visible:o,ref:h,removeOnLeave:!0},p),(function(e,t){var o=e.className,r=e.style,i=ZR(n,s,o);return c.createElement("div",{ref:t,className:i,onClick:f,style:CR(CR({},r),m)},v)}))}));iz.displayName="MobilePopupInner";var az=["visible","mobile"],sz=c.forwardRef((function(e,t){var o=e.visible,r=e.mobile,i=ER(e,az),a=tB(n.useState(o),2),s=a[0],l=a[1],u=tB(n.useState(!1),2),p=u[0],d=u[1],f=CR(CR({},i),{},{visible:s});n.useEffect((function(){l(o),o&&r&&d(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[o,r]);var h=p?c.createElement(iz,Tl({},f,{mobile:r,ref:t})):c.createElement(rz,Tl({},f,{ref:t}));return c.createElement("div",null,c.createElement(PB,f),h)}));sz.displayName="Popup";var lz=c.createContext(null);function cz(){}function uz(){return""}function pz(e){return e?e.ownerDocument:window.document}var dz=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var fz=function(e){var t=function(t){kR(o,c.Component);var n=MR(o);function o(e){var t,r;return OR(this,o),(t=n.call(this,e)).popupRef=c.createRef(),t.triggerRef=c.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&_R(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var o=!t.state.popupVisible;(t.isClickToHide()&&!o||o&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),r=t.getPopupDomNode();_R(o,n)&&!t.isContextMenuOnly()||_R(r,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=LR(t.triggerRef.current);if(n)return n}catch(e){}return d.default.findDOMNode(Hl(t))},t.getPopupClassNameFromAlign=function(e){var n=[],o=t.props,r=o.popupPlacement,i=o.builtinPlacements,a=o.prefixCls,s=o.alignPoint,l=o.getPopupClassNameFromAlign;return r&&i&&n.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(JR(e[s].points,r,o))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&n.push(l(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,r=e.popupClassName,i=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,p=e.mask,d=e.maskAnimation,f=e.maskTransitionName,h=e.maskMotion,m=e.zIndex,v=e.popup,g=e.stretch,x=e.alignPoint,b=e.mobile,y=e.forceRender,w=e.onPopupClick,C=t.state,E=C.popupVisible,O=C.point,D=t.getPopupAlign(),S={};return t.isMouseEnterToShow()&&(S.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(S.onMouseLeave=t.onPopupMouseLeave),S.onMouseDown=t.onPopupMouseDown,S.onTouchStart=t.onPopupMouseDown,c.createElement(sz,Tl({prefixCls:n,destroyPopupOnHide:o,visible:E,point:x&&O,className:r,align:D,onAlign:i,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},S,{stretch:g,getRootDomNode:t.getRootDomNode,style:u,mask:p,zIndex:m,transitionName:l,maskAnimation:d,maskTransitionName:f,maskMotion:h,ref:t.popupRef,motion:a,mobile:b,forceRender:y,onClick:w}),"function"==typeof v?v():v)},t.attachParent=function(e){FR.cancel(t.attachId);var n,o=t.props,r=o.getPopupContainer,i=o.getDocument,a=t.getRootDomNode();r?(a||0===r.length)&&(n=r(a)):n=i(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=FR((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},r="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:r,popupVisible:r},dz.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return SR(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=XR(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=XR(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=XR(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=XR(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),FR.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){return CR(CR({},e[t]||{}),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,o=n.children,r=n.forceRender,i=n.alignPoint,a=n.className,s=n.autoDestroy,l=c.Children.only(o),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,i&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var p=ZR(l&&l.props&&l.props.className,a);p&&(u.className=p);var d=CR({},u);qR(l)&&(d.ref=HR(this.triggerRef,l.ref));var f,h=c.cloneElement(l,d);return(t||this.popupRef.current||r)&&(f=c.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(f=null),c.createElement(lz.Provider,{value:this.triggerContextValue},h,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),o}();return t.contextType=lz,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:uz,getDocument:pz,onPopupVisibleChange:cz,afterPopupVisibleChange:cz,onPopupAlign:cz,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}(YR),hz={adjustX:1,adjustY:1},mz=[0,0],vz={left:{points:["cr","cl"],overflow:hz,offset:[-4,0],targetOffset:mz},right:{points:["cl","cr"],overflow:hz,offset:[4,0],targetOffset:mz},top:{points:["bc","tc"],overflow:hz,offset:[0,-4],targetOffset:mz},bottom:{points:["tc","bc"],overflow:hz,offset:[0,4],targetOffset:mz},topLeft:{points:["bl","tl"],overflow:hz,offset:[0,-4],targetOffset:mz},leftTop:{points:["tr","tl"],overflow:hz,offset:[-4,0],targetOffset:mz},topRight:{points:["br","tr"],overflow:hz,offset:[0,-4],targetOffset:mz},rightTop:{points:["tl","tr"],overflow:hz,offset:[4,0],targetOffset:mz},bottomRight:{points:["tr","br"],overflow:hz,offset:[0,4],targetOffset:mz},rightBottom:{points:["bl","br"],overflow:hz,offset:[4,0],targetOffset:mz},bottomLeft:{points:["tl","bl"],overflow:hz,offset:[0,4],targetOffset:mz},leftBottom:{points:["br","bl"],overflow:hz,offset:[-4,0],targetOffset:mz}};function gz(e){var t=e.showArrow,n=e.arrowContent,o=e.children,r=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return c.createElement("div",{className:ZR("".concat(r,"-content"),s),style:l},!1!==t&&c.createElement("div",{className:"".concat(r,"-arrow"),key:"arrow"},n),c.createElement("div",{className:"".concat(r,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof o?o():o))}var xz,bz,yz,wz=function(e,t){var o=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,u=void 0===l?.1:l,p=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,h=e.children,m=e.onVisibleChange,v=e.afterVisibleChange,g=e.transitionName,x=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,C=e.align,E=void 0===C?{}:C,O=e.destroyTooltipOnHide,D=void 0!==O&&O,S=e.defaultVisible,k=e.getTooltipContainer,T=e.overlayInnerStyle,j=e.arrowContent,M=e.overlay,A=e.id,N=e.showArrow,P=ER(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),R=n.useRef(null);n.useImperativeHandle(t,(function(){return R.current}));var B=CR({},P);"visible"in e&&(B.popupVisible=e.visible);var F=!1,_=!1;if("boolean"==typeof D)F=D;else if(D&&"object"===xR(D)){var L=D.keepParent;F=!0===L,_=!1===L}return c.createElement(fz,Tl({popupClassName:o,prefixCls:f,popup:function(){return c.createElement(gz,{showArrow:N,arrowContent:j,key:"content",prefixCls:f,id:A,overlayInnerStyle:T},M)},action:i,builtinPlacements:vz,popupPlacement:w,ref:R,popupAlign:E,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:x,popupMotion:b,defaultPopupVisible:S,destroyPopupOnHide:F,autoDestroy:_,mouseLeaveDelay:u,popupStyle:p,mouseEnterDelay:s},B),h)},Cz=n.forwardRef(wz),Ez=l.default.div(bz||(bz=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.$styles;return e.css(xz||(xz=x(["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "],["\n .rc-tooltip {\n &-arrow {\n display: none;\n }\n &-inner {\n min-height: unset;\n padding: ","px;\n background-color: ",";\n color: ",";\n border-radius: ","px;\n ",";\n ",";\n }\n }\n "])),r.S,o.indigo,o.white,r.S,i.S,a)})),Oz=function(e){var o=e.trigger,r=void 0===o?"hover":o,i=e.placement,a=void 0===i?"top":i,s=e.styles,l=h(e,["trigger","placement","styles"]),c=n.useRef(null);return t.jsx(Ez,f({ref:c,$styles:s},{children:t.jsx(Cz,f({},l,{getTooltipContainer:function(){return c.current},trigger:r,placement:a}))}))},Dz=CR({},p),Sz=Dz.version,kz=Dz.render,Tz=Dz.unmountComponentAtNode;try{Number((Sz||"").split(".")[0])>=18&&(yz=Dz.createRoot)}catch(xj){}function jz(e){var t=Dz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===xR(t)&&(t.usingClientEntryPoint=e)}var Mz="__rc_react_root__";function Az(e,t){yz?function(e,t){jz(!0);var n=t[Mz]||yz(t);jz(!1),n.render(e),t[Mz]=n}(e,t):function(e,t){kz(e,t)}(e,t)}function Nz(e){return Pz.apply(this,arguments)}function Pz(){return(Pz=nz(ez().mark((function e(t){return ez().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Mz])||void 0===e||e.unmount(),delete t[Mz]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rz(e){Tz(e)}function Bz(){return(Bz=nz(ez().mark((function e(t){return ez().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===yz){e.next=2;break}return e.abrupt("return",Nz(t));case 2:Rz(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Fz=function(e){kR(o,n.Component);var t=MR(o);function o(){var e;OR(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,o=n.onClose,r=n.noticeKey;o&&o(r)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return SR(o,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.className,r=t.closable,i=t.closeIcon,a=t.style,s=t.onClick,l=t.children,u=t.holder,p="".concat(n,"-notice"),f=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),h=c.createElement("div",Tl({className:ZR(p,o,yR({},"".concat(p,"-closable"),r)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},f),c.createElement("div",{className:"".concat(p,"-content")},l),r?c.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(p,"-close")},i||c.createElement("span",{className:"".concat(p,"-close-x")})):null);return u?d.default.createPortal(h,u):h}}]),o}();function _z(e){return function(e){if(Array.isArray(e))return QR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Fz.defaultProps={onClose:function(){},duration:1.5};var Lz=["getContainer"],Iz=0,$z=Date.now();function zz(){var e=Iz;return Iz+=1,"rcNotification_".concat($z,"_").concat(e)}var Vz=function(e){kR(o,n.Component);var t=MR(o);function o(){var e;OR(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var o=t.key||zz(),r=CR(CR({},t),{},{key:o}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(o),s=t.concat();return-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&t.length>=i&&(r.key=s[0].notice.key,r.updateMark=zz(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,o=n.key;return(n.userPassKey||o)!==t}))}}))},e.noticePropsMap={},e}return SR(o,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,o=this.props.transitionName;return!o&&n&&(o="".concat(t,"-").concat(n)),o}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,o=n.prefixCls,r=n.className,i=n.closeIcon,a=n.style,s=[];return t.forEach((function(n,r){var a=n.notice,l=n.holderCallback,c=r===t.length-1?a.updateMark:void 0,u=a.key,p=a.userPassKey,d=CR(CR(CR({prefixCls:o,closeIcon:i},a),a.props),{},{key:u,noticeKey:p||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(u),e.noticePropsMap[u]={props:d,holderCallback:l}})),c.createElement("div",{className:ZR(o,r),style:a},c.createElement(AB,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var o=n.key;t||delete e.noticePropsMap[o]}},(function(t){var n=t.key,r=t.className,i=t.style,a=t.visible,s=e.noticePropsMap[n],l=s.props,u=s.holderCallback;return u?c.createElement("div",{key:n,className:ZR(r,"".concat(o,"-hook-holder")),style:CR({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),u(t,l)):e.hookRefs.delete(n))}}):c.createElement(Fz,Tl({},l,{className:ZR(r,null==l?void 0:l.className),style:CR(CR({},i),null==l?void 0:l.style),visible:a}))})))}}]),o}();Vz.newInstance=void 0,Vz.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Vz.newInstance=function(e,t){var n=e||{},o=n.getContainer,r=ER(n,Lz),i=document.createElement("div");o?o().appendChild(i):document.body.appendChild(i);var a=!1;function s(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){!function(e){Bz.apply(this,arguments)}(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return t=e,n=c.useRef({}),o=tB(c.useState([]),2),r=o[0],i=o[1],[function(e){var o=!0;t.add(e,(function(e,t){var r=t.key;if(e&&(!n.current[r]||o)){var a=c.createElement(Fz,Tl({},t,{holder:e}));n.current[r]=a,i((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat(_z(e),[a]);var o=_z(e);return o[n]=a,o}))}o=!1}))},c.createElement(c.Fragment,null,r)];var t,n,o,r,i}}))}"test"===process.env.NODE_ENV&&e.TEST_RENDER?e.TEST_RENDER(c.createElement(Vz,Tl({},r,{ref:s}))):Az(c.createElement(Vz,Tl({},r,{ref:s})),i)};var Wz,Uz,Hz,qz=S.colors,Xz=S.fonts,Gz=S.sizes,Yz=l.default.span(Wz||(Wz=x(["\n color: ",";\n ",";\n"],["\n color: ",";\n ",";\n"])),(function(e){return e.textColor}),Xz.L),Kz=l.default.div(Uz||(Uz=x(["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"],["\n display: flex;\n height: ","px;\n column-gap: ","px;\n align-items: center;\n padding-right: ","px;\n"])),Gz.XL,Gz.M,Gz.XL),Zz=l.default.div(Hz||(Hz=x(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"],["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: ",";\n"])),C(Gz.XL),(function(e){return e.backgroundColor})),Jz=function(e){var n=e.type,o=e.message,r=function(e){switch(e){case"success":return{icon:"Check",backgroundColor:qz.green,textColor:qz.greenShade};case"error":return{icon:"Close",backgroundColor:qz.red,textColor:qz.redShade};case"warning":return{icon:"Warning",backgroundColor:qz.yellow,textColor:qz.yellowShade,iconColor:qz.yellowShade,iconSize:18};case"infoTierOne":return{icon:"Bell",backgroundColor:qz.blue,textColor:qz.blueShade,iconSize:18};case"infoTierTwo":return{icon:"Bell",backgroundColor:qz.gray2,textColor:D(qz.gray2),iconSize:18};default:return{icon:"Bell",backgroundColor:qz.blue,textColor:qz.blueShade}}}(n),i=r.icon,a=r.iconColor,s=r.textColor,l=r.backgroundColor,c=r.iconSize;return t.jsxs(Kz,{children:[t.jsx(Zz,f({backgroundColor:l},{children:t.jsx(LD,{size:c||32,name:i,color:a||qz.white})})),t.jsx(Yz,f({textColor:s},{children:o}))]})},Qz=null;Vz.newInstance({maxCount:2},(function(e){return Qz=e}));var eV,tV,nV,oV,rV,iV,aV,sV,lV,cV,uV,pV,dV,fV,hV,mV,vV,gV,xV=function(e){var n=e.message,o=e.type,r=void 0===o?"success":o,i=e.duration,a=void 0===i?2.5:i;return null==Qz?void 0:Qz.notice({content:t.jsx(Jz,{message:n,type:r}),className:"toast-".concat(r),closable:!0,closeIcon:t.jsx(LD,{name:"Close"}),duration:a})},bV=function(e){var n=e.onClick,o=e.disabled,r=e.buttonOptions,i=e.selectedButtonId,a=e.error,s=(null==r?void 0:r.slice(0,2))||[];return t.jsx(yV,f({error:a,disabled:o},{children:s.map((function(e){var o=e.value,r=e.id;return t.jsx(wV,f({isActive:r===i,onClick:function(){return n(r)}},{children:o}),r)}))}))},yV=l.default.div(tV||(tV=x(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-width: 0.2px;\n border-style: solid;\n padding: 1px;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.disabled,a=t.error,s="transparent",l=r.gray4;return i?l=r.gray5:s=a?r.red:r.gray4,e.css(eV||(eV=x(["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "],["\n height: ","px;\n border-radius: ","px;\n border-color: ",";\n background-color: ",";\n "])),o.XL,o.XS,s,l)})),wV=l.default(w)(oV||(oV=x(["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"],["\n display: flex;\n text-align: center;\n align-items: center;\n justify-content: center;\n padding: 10px;\n height: 100%;\n width: 50%;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isActive,a=i?r.white:"transparent";return e.css(nV||(nV=x(["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "],["\n background-color: ",";\n border-radius: ","px;\n box-shadow: ",";\n transition: background-color 0.4s ease-out;\n "])),a,o.XS,i?"0 0 5px rgba(0, 0, 0, 0.15)":"none")})),CV=function(n){var o=n.size,r=void 0===o?"XL":o,i=n.withShadow,a=n.label,s=n.backgroundColor,l=n.onPress,c=n.content,u=c.initials,p=c.iconName,d=c.imageUrl,h=n.textConfig,m=void 0===h?{}:h,v=m.color,g=void 0===v?"white":v,x=m.font,b=void 0===x?"L":x,y=e.useTheme().sizes,w="number"==typeof r?r:y[r],C=u?t.jsx(SV,f({variant:b,color:g,avatarSize:w},{children:u})):p?t.jsx(LD,{name:p,color:"white",size:w/1.5}):d?t.jsx(kV,{avatarSize:w,src:d}):null;return t.jsxs(EV,{children:[t.jsx(DV,f({clickable:!!l,onClick:l,withShadow:i,backgroundColor:d?"white":s,avatarSize:w},{children:C})),!!a&&t.jsx(OV,f({variant:"L"},{children:a}))]})},EV=l.default.div(rV||(rV=x(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]))),OV=l.default(BP)(iV||(iV=x(["\n margin-left: 14px;\n color: ",";\n"],["\n margin-left: 14px;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),DV=l.default.div(cV||(cV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.avatarSize,a=t.withShadow,s=t.backgroundColor,l=t.clickable;return e.css(lV||(lV=x(["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "],["\n display: flex;\n justify-content: center;\n overflow: hidden;\n align-items: center;\n transition: 0.1s;\n background-color: ",";\n color: ",";\n border: ","px solid ",";\n border-radius: ","px;\n ",";\n ","\n ","\n "])),o[s||"indigoTint2"],o.white,Math.round(i/r["2XL"]),o.white,i/2,C(i),a&&e.css(aV||(aV=x(["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "],["\n filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));\n "]))),l&&e.css(sV||(sV=x(["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "],["\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n "])),O(o[s||"indigoTint2"]),o[s||"indigoTint2"]))})),SV=l.default(BP)(pV||(pV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(uV||(uV=x(["\n user-select: none;\n font-size: ","px;\n "],["\n user-select: none;\n font-size: ","px;\n "])),n/2)})),kV=l.default(dR)(fV||(fV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.avatarSize;return e.css(dV||(dV=x(["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "],["\n ",";\n object-fit: cover;\n transition: 0.1s;\n\n &:hover {\n opacity: 0.7;\n }\n &:active {\n opacity: 1;\n }\n "])),C(n))})),TV=l.default.div(hV||(hV=x(["\n padding: 0\n ","px;\n"],["\n padding: 0\n ","px;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),jV=l.default.div(mV||(mV=x(["\n padding: ","px\n 0;\n"],["\n padding: ","px\n 0;\n"])),(function(e){var t=e.theme,n=e.padding;return"number"==typeof n?n:t.sizes[n]})),MV=l.default.div(gV||(gV=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.color,a=void 0===i?"gray4":i,s=t.type,l=void 0===s?"horizontal":s,c=t.weight,u=void 0===c?1:c,p=t.marginHorizontal,d=t.marginVertical;return e.css(vV||(vV=x(["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "],["\n width: ",";\n height: ",";\n background-color: ",";\n margin: ","px\n ","px;\n "])),"vertical"===l?"".concat(u,"px"):"100%","horizontal"===l?"".concat(u,"px"):"100%",o[a]||a,"number"==typeof d?d:r[d]||0,"number"==typeof p?p:r[p]||0)})),AV={},NV={},PV={__esModule:!0,default:function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},RV={exports:{}},BV=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},FV=BV,_V=function(e){return Object(FV(e))},LV={}.hasOwnProperty,IV=function(e,t){return LV.call(e,t)},$V={exports:{}},zV={exports:{}},VV=zV.exports={version:"2.6.12"};"number"==typeof __e&&(__e=VV);var WV={exports:{}},UV=WV.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=UV);var HV=zV.exports,qV=WV.exports,XV=qV["__core-js_shared__"]||(qV["__core-js_shared__"]={});($V.exports=function(e,t){return XV[e]||(XV[e]=void 0!==t?t:{})})("versions",[]).push({version:HV.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var GV,YV,KV,ZV,JV,QV,eW=0,tW=Math.random(),nW=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++eW+tW).toString(36))},oW=$V.exports("keys"),rW=nW,iW=function(e){return oW[e]||(oW[e]=rW(e))},aW=IV,sW=_V,lW=iW("IE_PROTO"),cW=Object.prototype,uW=Object.getPrototypeOf||function(e){return e=sW(e),aW(e,lW)?e[lW]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?cW:null},pW=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},dW=function(e,t,n){if(pW(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},fW={},hW=function(e){return"object"==typeof e?null!==e:"function"==typeof e},mW=hW,vW=function(e){if(!mW(e))throw TypeError(e+" is not an object!");return e},gW=function(e){try{return!!e()}catch(e){return!0}};function xW(){return YV?GV:(YV=1,GV=!gW((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})))}function bW(){if(ZV)return KV;ZV=1;var e=hW,t=WV.exports.document,n=e(t)&&e(t.createElement);return KV=function(e){return n?t.createElement(e):{}}}function yW(){return QV?JV:(QV=1,JV=!xW()&&!gW((function(){return 7!=Object.defineProperty(bW()("div"),"a",{get:function(){return 7}}).a})))}var wW,CW=hW,EW=function(e,t){if(!CW(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!CW(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!CW(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!CW(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")};function OW(){if(wW)return fW;wW=1;var e=vW,t=yW(),n=EW,o=Object.defineProperty;return fW.f=xW()?Object.defineProperty:function(r,i,a){if(e(r),i=n(i,!0),e(a),t)try{return o(r,i,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(r[i]=a.value),r},fW}var DW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SW=OW(),kW=DW,TW=xW()?function(e,t,n){return SW.f(e,t,kW(1,n))}:function(e,t,n){return e[t]=n,e},jW=WV.exports,MW=zV.exports,AW=dW,NW=TW,PW=IV,RW=function(e,t,n){var o,r,i,a=e&RW.F,s=e&RW.G,l=e&RW.S,c=e&RW.P,u=e&RW.B,p=e&RW.W,d=s?MW:MW[t]||(MW[t]={}),f=d.prototype,h=s?jW:l?jW[t]:(jW[t]||{}).prototype;for(o in s&&(n=t),n)(r=!a&&h&&void 0!==h[o])&&PW(d,o)||(i=r?h[o]:n[o],d[o]=s&&"function"!=typeof h[o]?n[o]:u&&r?AW(i,jW):p&&h[o]==i?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(i):c&&"function"==typeof i?AW(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[o]=i,e&RW.R&&f&&!f[o]&&NW(f,o,i)))};RW.F=1,RW.G=2,RW.S=4,RW.P=8,RW.B=16,RW.W=32,RW.U=64,RW.R=128;var BW=RW,FW=BW,_W=zV.exports,LW=gW,IW=_V,$W=uW;!function(e,t){var n=(_W.Object||{})[e]||Object[e],o={};o[e]=t(n),FW(FW.S+FW.F*LW((function(){n(1)})),"Object",o)}("getPrototypeOf",(function(){return function(e){return $W(IW(e))}}));var zW=zV.exports.Object.getPrototypeOf;RV.exports={default:zW,__esModule:!0};var VW={__esModule:!0,default:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},WW={},UW={exports:{}},HW=BW;HW(HW.S+HW.F*!xW(),"Object",{defineProperty:OW().f});var qW=zV.exports.Object;UW.exports={default:function(e,t,n){return qW.defineProperty(e,t,n)},__esModule:!0},WW.__esModule=!0;var XW,GW=(XW=UW.exports)&&XW.__esModule?XW:{default:XW};WW.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,GW.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var YW={},KW={},ZW={exports:{}},JW=Math.ceil,QW=Math.floor,eU=function(e){return isNaN(e=+e)?0:(e>0?QW:JW)(e)},tU=eU,nU=BV,oU={exports:{}};oU.exports=TW;var rU,iU,aU,sU={},lU={}.toString,cU=function(e){return lU.call(e).slice(8,-1)},uU=cU,pU=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==uU(e)?e.split(""):Object(e)},dU=pU,fU=BV,hU=function(e){return dU(fU(e))},mU=eU,vU=Math.min,gU=function(e){return e>0?vU(mU(e),9007199254740991):0},xU=eU,bU=Math.max,yU=Math.min,wU=hU,CU=gU,EU=function(e,t){return(e=xU(e))<0?bU(e+t,0):yU(e,t)},OU=IV,DU=hU,SU=(rU=!1,function(e,t,n){var o,r=wU(e),i=CU(r.length),a=EU(n,i);if(rU&&t!=t){for(;i>a;)if((o=r[a++])!=o)return!0}else for(;i>a;a++)if((rU||a in r)&&r[a]===t)return rU||a||0;return!rU&&-1}),kU=iW("IE_PROTO"),TU=function(e,t){var n,o=DU(e),r=0,i=[];for(n in o)n!=kU&&OU(o,n)&&i.push(n);for(;t.length>r;)OU(o,n=t[r++])&&(~SU(i,n)||i.push(n));return i},jU="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),MU=TU,AU=jU,NU=Object.keys||function(e){return MU(e,AU)},PU=OW(),RU=vW,BU=NU,FU=xW()?Object.defineProperties:function(e,t){RU(e);for(var n,o=BU(t),r=o.length,i=0;r>i;)PU.f(e,n=o[i++],t[n]);return e};var _U=vW,LU=FU,IU=jU,$U=iW("IE_PROTO"),zU=function(){},VU=function(){var e,t=bW()("iframe"),n=IU.length;for(t.style.display="none",function(){if(aU)return iU;aU=1;var e=WV.exports.document;return iU=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),VU=e.F;n--;)delete VU.prototype[IU[n]];return VU()},WU=Object.create||function(e,t){var n;return null!==e?(zU.prototype=_U(e),n=new zU,zU.prototype=null,n[$U]=e):n=VU(),void 0===t?n:LU(n,t)},UU={exports:{}},HU=$V.exports("wks"),qU=nW,XU=WV.exports.Symbol,GU="function"==typeof XU;(UU.exports=function(e){return HU[e]||(HU[e]=GU&&XU[e]||(GU?XU:qU)("Symbol."+e))}).store=HU;var YU=OW().f,KU=IV,ZU=UU.exports("toStringTag"),JU=function(e,t,n){e&&!KU(e=n?e:e.prototype,ZU)&&YU(e,ZU,{configurable:!0,value:t})},QU=WU,eH=DW,tH=JU,nH={};TW(nH,UU.exports("iterator"),(function(){return this}));var oH,rH=BW,iH=oU.exports,aH=TW,sH=sU,lH=function(e,t,n){e.prototype=QU(nH,{next:eH(1,n)}),tH(e,t+" Iterator")},cH=JU,uH=uW,pH=UU.exports("iterator"),dH=!([].keys&&"next"in[].keys()),fH=function(){return this},hH=function(e,t,n,o,r,i,a){lH(n,t,o);var s,l,c,u=function(e){if(!dH&&e in h)return h[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},p=t+" Iterator",d="values"==r,f=!1,h=e.prototype,m=h[pH]||h["@@iterator"]||r&&h[r],v=m||u(r),g=r?d?u("entries"):v:void 0,x="Array"==t&&h.entries||m;if(x&&(c=uH(x.call(new e)))!==Object.prototype&&c.next&&cH(c,p,!0),d&&m&&"values"!==m.name&&(f=!0,v=function(){return m.call(this)}),a&&(dH||f||!h[pH])&&aH(h,pH,v),sH[t]=v,sH[p]=fH,r)if(s={values:d?v:u("values"),keys:i?v:u("keys"),entries:g},a)for(l in s)l in h||iH(h,l,s[l]);else rH(rH.P+rH.F*(dH||f),t,s);return s},mH=(oH=!0,function(e,t){var n,o,r=String(nU(e)),i=tU(t),a=r.length;return i<0||i>=a?oH?"":void 0:(n=r.charCodeAt(i))<55296||n>56319||i+1===a||(o=r.charCodeAt(i+1))<56320||o>57343?oH?r.charAt(i):n:oH?r.slice(i,i+2):o-56320+(n-55296<<10)+65536});hH(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=mH(t,n),this._i+=e.length,{value:e,done:!1})}));var vH=function(e,t){return{value:t,done:!!e}},gH=sU,xH=hU;hH(Array,"Array",(function(e,t){this._t=xH(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,vH(1)):vH(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),gH.Arguments=gH.Array;for(var bH=WV.exports,yH=TW,wH=sU,CH=UU.exports("toStringTag"),EH="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),OH=0;OH<EH.length;OH++){var DH=EH[OH],SH=bH[DH],kH=SH&&SH.prototype;kH&&!kH[CH]&&yH(kH,CH,DH),wH[DH]=wH.Array}var TH={};TH.f=UU.exports;var jH=TH.f("iterator");ZW.exports={default:jH,__esModule:!0};var MH={exports:{}},AH={exports:{}},NH=nW("meta"),PH=hW,RH=IV,BH=OW().f,FH=0,_H=Object.isExtensible||function(){return!0},LH=!gW((function(){return _H(Object.preventExtensions({}))})),IH=function(e){BH(e,NH,{value:{i:"O"+ ++FH,w:{}}})},$H=AH.exports={KEY:NH,NEED:!1,fastKey:function(e,t){if(!PH(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!RH(e,NH)){if(!_H(e))return"F";if(!t)return"E";IH(e)}return e[NH].i},getWeak:function(e,t){if(!RH(e,NH)){if(!_H(e))return!0;if(!t)return!1;IH(e)}return e[NH].w},onFreeze:function(e){return LH&&$H.NEED&&_H(e)&&!RH(e,NH)&&IH(e),e}},zH=zV.exports,VH=TH,WH=OW().f,UH=function(e){var t=zH.Symbol||(zH.Symbol={});"_"==e.charAt(0)||e in t||WH(t,e,{value:VH.f(e)})},HH={};HH.f=Object.getOwnPropertySymbols;var qH={};qH.f={}.propertyIsEnumerable;var XH=NU,GH=HH,YH=qH,KH=cU,ZH=Array.isArray||function(e){return"Array"==KH(e)},JH={},QH={},eq=TU,tq=jU.concat("length","prototype");QH.f=Object.getOwnPropertyNames||function(e){return eq(e,tq)};var nq=hU,oq=QH.f,rq={}.toString,iq="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];JH.f=function(e){return iq&&"[object Window]"==rq.call(e)?function(e){try{return oq(e)}catch(e){return iq.slice()}}(e):oq(nq(e))};var aq={},sq=qH,lq=DW,cq=hU,uq=EW,pq=IV,dq=yW(),fq=Object.getOwnPropertyDescriptor;aq.f=xW()?fq:function(e,t){if(e=cq(e),t=uq(t,!0),dq)try{return fq(e,t)}catch(e){}if(pq(e,t))return lq(!sq.f.call(e,t),e[t])};var hq=WV.exports,mq=IV,vq=xW(),gq=BW,xq=oU.exports,bq=AH.exports.KEY,yq=gW,wq=$V.exports,Cq=JU,Eq=nW,Oq=UU.exports,Dq=TH,Sq=UH,kq=function(e){var t=XH(e),n=GH.f;if(n)for(var o,r=n(e),i=YH.f,a=0;r.length>a;)i.call(e,o=r[a++])&&t.push(o);return t},Tq=ZH,jq=vW,Mq=hW,Aq=_V,Nq=hU,Pq=EW,Rq=DW,Bq=WU,Fq=JH,_q=aq,Lq=HH,Iq=OW(),$q=NU,zq=_q.f,Vq=Iq.f,Wq=Fq.f,Uq=hq.Symbol,Hq=hq.JSON,qq=Hq&&Hq.stringify,Xq=Oq("_hidden"),Gq=Oq("toPrimitive"),Yq={}.propertyIsEnumerable,Kq=wq("symbol-registry"),Zq=wq("symbols"),Jq=wq("op-symbols"),Qq=Object.prototype,eX="function"==typeof Uq&&!!Lq.f,tX=hq.QObject,nX=!tX||!tX.prototype||!tX.prototype.findChild,oX=vq&&yq((function(){return 7!=Bq(Vq({},"a",{get:function(){return Vq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=zq(Qq,t);o&&delete Qq[t],Vq(e,t,n),o&&e!==Qq&&Vq(Qq,t,o)}:Vq,rX=function(e){var t=Zq[e]=Bq(Uq.prototype);return t._k=e,t},iX=eX&&"symbol"==typeof Uq.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof Uq},aX=function(e,t,n){return e===Qq&&aX(Jq,t,n),jq(e),t=Pq(t,!0),jq(n),mq(Zq,t)?(n.enumerable?(mq(e,Xq)&&e[Xq][t]&&(e[Xq][t]=!1),n=Bq(n,{enumerable:Rq(0,!1)})):(mq(e,Xq)||Vq(e,Xq,Rq(1,{})),e[Xq][t]=!0),oX(e,t,n)):Vq(e,t,n)},sX=function(e,t){jq(e);for(var n,o=kq(t=Nq(t)),r=0,i=o.length;i>r;)aX(e,n=o[r++],t[n]);return e},lX=function(e){var t=Yq.call(this,e=Pq(e,!0));return!(this===Qq&&mq(Zq,e)&&!mq(Jq,e))&&(!(t||!mq(this,e)||!mq(Zq,e)||mq(this,Xq)&&this[Xq][e])||t)},cX=function(e,t){if(e=Nq(e),t=Pq(t,!0),e!==Qq||!mq(Zq,t)||mq(Jq,t)){var n=zq(e,t);return!n||!mq(Zq,t)||mq(e,Xq)&&e[Xq][t]||(n.enumerable=!0),n}},uX=function(e){for(var t,n=Wq(Nq(e)),o=[],r=0;n.length>r;)mq(Zq,t=n[r++])||t==Xq||t==bq||o.push(t);return o},pX=function(e){for(var t,n=e===Qq,o=Wq(n?Jq:Nq(e)),r=[],i=0;o.length>i;)!mq(Zq,t=o[i++])||n&&!mq(Qq,t)||r.push(Zq[t]);return r};eX||(xq((Uq=function(){if(this instanceof Uq)throw TypeError("Symbol is not a constructor!");var e=Eq(arguments.length>0?arguments[0]:void 0),t=function(n){this===Qq&&t.call(Jq,n),mq(this,Xq)&&mq(this[Xq],e)&&(this[Xq][e]=!1),oX(this,e,Rq(1,n))};return vq&&nX&&oX(Qq,e,{configurable:!0,set:t}),rX(e)}).prototype,"toString",(function(){return this._k})),_q.f=cX,Iq.f=aX,QH.f=Fq.f=uX,qH.f=lX,Lq.f=pX,Dq.f=function(e){return rX(Oq(e))}),gq(gq.G+gq.W+gq.F*!eX,{Symbol:Uq});for(var dX="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fX=0;dX.length>fX;)Oq(dX[fX++]);for(var hX=$q(Oq.store),mX=0;hX.length>mX;)Sq(hX[mX++]);gq(gq.S+gq.F*!eX,"Symbol",{for:function(e){return mq(Kq,e+="")?Kq[e]:Kq[e]=Uq(e)},keyFor:function(e){if(!iX(e))throw TypeError(e+" is not a symbol!");for(var t in Kq)if(Kq[t]===e)return t},useSetter:function(){nX=!0},useSimple:function(){nX=!1}}),gq(gq.S+gq.F*!eX,"Object",{create:function(e,t){return void 0===t?Bq(e):sX(Bq(e),t)},defineProperty:aX,defineProperties:sX,getOwnPropertyDescriptor:cX,getOwnPropertyNames:uX,getOwnPropertySymbols:pX});var vX=yq((function(){Lq.f(1)}));gq(gq.S+gq.F*vX,"Object",{getOwnPropertySymbols:function(e){return Lq.f(Aq(e))}}),Hq&&gq(gq.S+gq.F*(!eX||yq((function(){var e=Uq();return"[null]"!=qq([e])||"{}"!=qq({a:e})||"{}"!=qq(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(Mq(t)||void 0!==e)&&!iX(e))return Tq(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!iX(t))return t}),o[1]=t,qq.apply(Hq,o)}}),Uq.prototype[Gq]||TW(Uq.prototype,Gq,Uq.prototype.valueOf),Cq(Uq,"Symbol"),Cq(Math,"Math",!0),Cq(hq.JSON,"JSON",!0),UH("asyncIterator"),UH("observable");var gX=zV.exports.Symbol;MH.exports={default:gX,__esModule:!0},KW.__esModule=!0;var xX=wX(ZW.exports),bX=wX(MH.exports),yX="function"==typeof bX.default&&"symbol"==typeof xX.default?function(e){return typeof e}:function(e){return e&&"function"==typeof bX.default&&e.constructor===bX.default&&e!==bX.default.prototype?"symbol":typeof e};function wX(e){return e&&e.__esModule?e:{default:e}}KW.default="function"==typeof bX.default&&"symbol"===yX(xX.default)?function(e){return void 0===e?"undefined":yX(e)}:function(e){return e&&"function"==typeof bX.default&&e.constructor===bX.default&&e!==bX.default.prototype?"symbol":void 0===e?"undefined":yX(e)},YW.__esModule=!0;var CX=function(e){return e&&e.__esModule?e:{default:e}}(KW);YW.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,CX.default)(t))&&"function"!=typeof t?e:t};var EX,OX,DX={},SX={exports:{}};BW(BW.S,"Object",{setPrototypeOf:function(){if(OX)return EX;OX=1;var e=hW,t=vW,n=function(n,o){if(t(n),!e(o)&&null!==o)throw TypeError(o+": can't set as prototype!")};return EX={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=dW(Function.call,aq.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return n(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:n},EX}().set});var kX=zV.exports.Object.setPrototypeOf;SX.exports={default:kX,__esModule:!0};var TX={exports:{}};BW(BW.S,"Object",{create:WU});var jX=zV.exports.Object,MX=function(e,t){return jX.create(e,t)};TX.exports={default:MX,__esModule:!0},DX.__esModule=!0;var AX=RX(SX.exports),NX=RX(TX.exports),PX=RX(KW);function RX(e){return e&&e.__esModule?e:{default:e}}DX.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,PX.default)(t)));e.prototype=(0,NX.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(AX.default?(0,AX.default)(e,t):e.__proto__=t)};var BX=function(e){return e};var FX=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},_X=FX,LX=Math.max;var IX=function(e,t,n){return t=LX(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=LX(o.length-t,0),a=Array(i);++r<i;)a[r]=o[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=o[r];return s[t]=n(a),_X(e,this,s)}};var $X=function(e){return function(){return e}},zX=D_,VX=function(){try{var e=zX(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),WX=$X,UX=VX,HX=UX?function(e,t){return UX(e,"toString",{configurable:!0,enumerable:!1,value:WX(t),writable:!0})}:BX,qX=Date.now;var XX=function(e){var t=0,n=0;return function(){var o=qX(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},GX=XX(HX),YX=BX,KX=IX,ZX=GX;var JX=function(e,t){return ZX(KX(e,t,YX),e+"")},QX=ZI&&new ZI,eG=QX,tG=eG?function(e,t){return eG.set(e,t),e}:BX,nG=ST,oG=Object.create,rG=function(){function e(){}return function(t){if(!nG(t))return{};if(oG)return oG(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),iG=rG,aG=iG,sG=ST;var lG=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=aG(e.prototype),o=e.apply(n,t);return sG(o)?o:n}},cG=lG,uG=MT;var pG=function(e,t,n){var o=1&t,r=cG(e);return function t(){var i=this&&this!==uG&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}},dG=Math.max;var fG=function(e,t,n,o){for(var r=-1,i=e.length,a=n.length,s=-1,l=t.length,c=dG(i-a,0),u=Array(l+c),p=!o;++s<l;)u[s]=t[s];for(;++r<a;)(p||r<i)&&(u[n[r]]=e[r]);for(;c--;)u[s++]=e[r++];return u},hG=Math.max;var mG=function(e,t,n,o){for(var r=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=hG(i-s,0),p=Array(u+c),d=!o;++r<u;)p[r]=e[r];for(var f=r;++l<c;)p[f+l]=t[l];for(;++a<s;)(d||r<i)&&(p[f+n[a]]=e[r++]);return p};var vG=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o};var gG=function(){},xG=iG,bG=gG;function yG(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}yG.prototype=xG(bG.prototype),yG.prototype.constructor=yG;var wG=yG;var CG=QX,EG=CG?function(e){return CG.get(e)}:function(){},OG={},DG=Object.prototype.hasOwnProperty;var SG=function(e){for(var t=e.name+"",n=OG[t],o=DG.call(OG,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t},kG=iG,TG=gG;function jG(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}jG.prototype=kG(TG.prototype),jG.prototype.constructor=jG;var MG=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},AG=wG,NG=jG,PG=MG;var RG=function(e){if(e instanceof AG)return e.clone();var t=new NG(e.__wrapped__,e.__chain__);return t.__actions__=PG(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},BG=wG,FG=jG,_G=gG,LG=_L,IG=KT,$G=RG,zG=Object.prototype.hasOwnProperty;function VG(e){if(IG(e)&&!LG(e)&&!(e instanceof BG)){if(e instanceof FG)return e;if(zG.call(e,"__wrapped__"))return $G(e)}return new FG(e)}VG.prototype=_G.prototype,VG.prototype.constructor=VG;var WG=wG,UG=EG,HG=SG,qG=VG;var XG=function(e){var t=HG(e),n=qG[t];if("function"!=typeof n||!(t in WG.prototype))return!1;if(e===n)return!0;var o=UG(n);return!!o&&e===o[0]},GG=XX(tG),YG=/\{\n\/\* \[wrapped with (.+)\] \*/,KG=/,? & /;var ZG=function(e){var t=e.match(YG);return t?t[1].split(KG):[]},JG=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var QG=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};var eY=function(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1};var tY=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1},nY=eY,oY=function(e){return e!=e},rY=tY;var iY=function(e,t,n){return t==t?rY(e,t,n):nY(e,oY,n)};var aY=QG,sY=function(e,t){return!!(null==e?0:e.length)&&iY(e,t,0)>-1},lY=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var cY=ZG,uY=function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(JG,"{\n/* [wrapped with "+t+"] */\n")},pY=GX,dY=function(e,t){return aY(lY,(function(n){var o="_."+n[0];t&n[1]&&!sY(e,o)&&e.push(o)})),e.sort()};var fY=function(e,t,n){var o=t+"";return pY(e,uY(o,dY(cY(o),n)))},hY=XG,mY=GG,vY=fY;var gY=function(e,t,n,o,r,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var p=[e,t,r,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],d=n.apply(void 0,p);return hY(e)&&mY(d,p),d.placeholder=o,vY(d,e,t)};var xY=function(e){return e.placeholder},bY=MG,yY=aI,wY=Math.min;var CY=function(e,t){for(var n=e.length,o=wY(t.length,n),r=bY(e);o--;){var i=t[o];e[o]=yY(i,n)?r[i]:void 0}return e};var EY=function(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[r++]=n)}return i},OY=fG,DY=mG,SY=vG,kY=lG,TY=gY,jY=xY,MY=CY,AY=EY,NY=MT;var PY=function e(t,n,o,r,i,a,s,l,c,u){var p=128&n,d=1&n,f=2&n,h=24&n,m=512&n,v=f?void 0:kY(t);return function g(){for(var x=arguments.length,b=Array(x),y=x;y--;)b[y]=arguments[y];if(h)var w=jY(g),C=SY(b,w);if(r&&(b=OY(b,r,i,h)),a&&(b=DY(b,a,s,h)),x-=C,h&&x<u){var E=AY(b,w);return TY(t,n,e,g.placeholder,o,b,E,l,c,u-x)}var O=d?o:this,D=f?O[t]:t;return x=b.length,l?b=MY(b,l):m&&x>1&&b.reverse(),p&&c<x&&(b.length=c),this&&this!==NY&&this instanceof g&&(D=v||kY(D)),D.apply(O,b)}},RY=FX,BY=lG,FY=PY,_Y=gY,LY=xY,IY=EY,$Y=MT;var zY=function(e,t,n){var o=BY(e);return function r(){for(var i=arguments.length,a=Array(i),s=i,l=LY(r);s--;)a[s]=arguments[s];var c=i<3&&a[0]!==l&&a[i-1]!==l?[]:IY(a,l);if((i-=c.length)<n)return _Y(e,t,FY,r.placeholder,void 0,a,c,void 0,void 0,n-i);var u=this&&this!==$Y&&this instanceof r?o:e;return RY(u,this,a)}},VY=FX,WY=lG,UY=MT;var HY=function(e,t,n,o){var r=1&t,i=WY(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=o.length,u=Array(c+s),p=this&&this!==UY&&this instanceof t?i:e;++l<c;)u[l]=o[l];for(;s--;)u[l++]=arguments[++a];return VY(p,r?n:this,u)}},qY=fG,XY=mG,GY=EY,YY=Math.min;var KY=sj;var ZY=function(e){return e?Infinity===(e=KY(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var JY=function(e){var t=ZY(e),n=t%1;return t==t?n?t-n:t:0},QY=tG,eK=pG,tK=zY,nK=PY,oK=HY,rK=EG,iK=function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?qY(l,s,t[4]):s,e[4]=l?GY(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?XY(l,s,t[6]):s,e[6]=l?GY(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&o&&(e[8]=null==e[8]?t[8]:YY(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e},aK=GG,sK=fY,lK=JY,cK=Math.max;var uK=function(e,t,n,o,r,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=o?o.length:0;if(c||(t&=-97,o=r=void 0),a=void 0===a?a:cK(lK(a),0),s=void 0===s?s:lK(s),c-=r?r.length:0,64&t){var u=o,p=r;o=r=void 0}var d=l?void 0:rK(e),f=[e,t,n,o,r,u,p,i,a,s];if(d&&iK(f,d),e=f[0],t=f[1],n=f[2],o=f[3],r=f[4],!(s=f[9]=void 0===f[9]?l?0:e.length:cK(f[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?tK(e,t,s):32!=t&&33!=t||r.length?nK.apply(void 0,f):oK(e,t,n,o);else var h=eK(e,t,n);return sK((d?QY:aK)(h,f),e,t)},pK=uK,dK=xY,fK=EY,hK=JX((function(e,t,n){var o=1;if(n.length){var r=fK(n,dK(hK));o|=32}return pK(e,o,t,n,r)}));hK.placeholder={};var mK=hK,vK=process.env.NODE_ENV,gK=function(e,t,n,o,r,i,a,s){if("production"!==vK&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},xK=!("undefined"==typeof window||!window.document||!window.document.createElement),bK={},yK=Object.prototype.hasOwnProperty;function wK(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var CK=function(e,t){if(wK(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!yK.call(t,n[r])||!wK(e[n[r]],t[n[r]]))return!1;return!0},EK={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},OK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},DK=Object.defineProperty,SK=Object.getOwnPropertyNames,kK=Object.getOwnPropertySymbols,TK=Object.getOwnPropertyDescriptor,jK=Object.getPrototypeOf,MK=jK&&jK(Object);var AK=function e(t,n,o){if("string"!=typeof n){if(MK){var r=jK(n);r&&r!==MK&&e(t,r,o)}var i=SK(n);kK&&(i=i.concat(kK(n)));for(var a=0;a<i.length;++a){var s=i[a];if(!(EK[s]||OK[s]||o&&o[s])){var l=TK(n,s);try{DK(t,s,l)}catch(e){}}}return t}return t},NK={};Object.defineProperty(NK,"__esModule",{value:!0}),NK.createChangeEmitter=function(){var e=[],t=e;function n(){t===e&&(t=e.slice())}return{listen:function(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var o=!0;return n(),t.push(e),function(){if(o){o=!1,n();var r=t.indexOf(e);t.splice(r,1)}}},emit:function(){for(var n=e=t,o=0;o<n.length;o++)n[o].apply(n,arguments)}}};var PK=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),RK=ve(Object.freeze({__proto__:null,default:PK}));function BK(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(bK,"__esModule",{value:!0});var FK=u.default,_K=BK(FK),LK=BK(CK),IK=BK(AK),$K=NK,zK=BK(RK),VK=function(e,t){return function(n){return n[e]=t,n}},WK=function(e){return VK("displayName",e)},UK=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0},HK=function(e,t){return t+"("+UK(e)+")"},qK=function(e){return function(t){var n=FK.createFactory(t),o=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?WK(HK(t,"mapProps"))(o):o}},XK=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},GK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},YK=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},KK=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},ZK=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},JK=function(e,t){for(var n={},o=0;o<t.length;o++){var r=t[o];e.hasOwnProperty(r)&&(n[r]=e[r])}return n},QK=function(e,t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=t(e[o],o));return n},eZ=function(e,t){for(var n=KK(e,[]),o=0;o<t.length;o++){var r=t[o];n.hasOwnProperty(r)&&delete n[r]}return n},tZ=Object.keys,nZ=function(e){return e},oZ=function(e){function t(){return XK(this,t),ZK(this,e.apply(this,arguments))}return YK(t,e),t.prototype.render=function(){return null},t}(FK.Component),rZ=function(e){return function(t){var n=FK.createFactory(t),o=function(t){function o(){return XK(this,o),ZK(this,t.apply(this,arguments))}return YK(o,t),o.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},o.prototype.render=function(){return n(this.props)},o}(FK.Component);return"production"!==process.env.NODE_ENV?WK(HK(t,"shouldUpdate"))(o):o}},iZ=function(e){var t=rZ((function(t,n){return!LK(JK(n,e),JK(t,e))}));return"production"!==process.env.NODE_ENV?function(e){return WK(HK(e,"onlyUpdateForKeys"))(t(e))}:t},aZ=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)};var sZ={fromESObservable:null,toESObservable:null},lZ={fromESObservable:function(e){return"function"==typeof sZ.fromESObservable?sZ.fromESObservable(e):e},toESObservable:function(e){return"function"==typeof sZ.toESObservable?sZ.toESObservable(e):e}},cZ=function(e){return function(t){return function(n){function o(){var r,i,a;XK(this,o);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a=ZK(this,n.call.apply(n,[this].concat(l))),a.state={vdom:null},a.propsEmitter=$K.createChangeEmitter(),a.props$=e.fromESObservable(((r={subscribe:function(e){return{unsubscribe:a.propsEmitter.listen((function(t){t?e.next(t):e.complete()}))}}})[zK]=function(){return this},r)),a.vdom$=e.toESObservable(t(a.props$)),ZK(a,i)}return YK(o,n),o.prototype.componentWillMount=function(){var e=this;this.subscription=this.vdom$.subscribe({next:function(t){e.setState({vdom:t})}}),this.propsEmitter.emit(this.props)},o.prototype.componentWillReceiveProps=function(e){this.propsEmitter.emit(e)},o.prototype.shouldComponentUpdate=function(e,t){return t.vdom!==this.state.vdom},o.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},o.prototype.render=function(){return this.state.vdom},o}(FK.Component)}},uZ=function(e){return e},pZ=function(e){var t=cZ({fromESObservable:uZ,toESObservable:uZ});return function(n){return function(o){var r=FK.createFactory(o),i=e.fromESObservable,a=e.toESObservable;return t((function(e){var t;return(t={subscribe:function(t){var o=a(n(i(e))).subscribe({next:function(e){return t.next(r(e))}});return{unsubscribe:function(){return o.unsubscribe()}}}})[zK]=function(){return this},t}))}}},dZ=function(e){return function(){var t,n=$K.createChangeEmitter(),o=e.fromESObservable(((t={subscribe:function(e){return{unsubscribe:n.listen((function(t){return e.next(t)}))}}})[zK]=function(){return this},t));return{handler:n.emit,stream:o}}},fZ=dZ(lZ);bK.mapProps=qK,bK.withProps=function(e){var t=qK((function(t){return GK({},t,"function"==typeof e?e(t):e)}));return"production"!==process.env.NODE_ENV?function(e){return WK(HK(e,"withProps"))(t(e))}:t},bK.withPropsOnChange=function(e,t){return function(n){var o=FK.createFactory(n),r="function"==typeof e?e:function(t,n){return!LK(JK(t,e),JK(n,e))},i=function(e){function n(){var o,r;XK(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=ZK(this,e.call.apply(e,[this].concat(a))),r.computedProps=t(r.props),ZK(r,o)}return YK(n,e),n.prototype.componentWillReceiveProps=function(e){r(this.props,e)&&(this.computedProps=t(e))},n.prototype.render=function(){return o(GK({},this.props,this.computedProps))},n}(FK.Component);return"production"!==process.env.NODE_ENV?WK(HK(n,"withPropsOnChange"))(i):i}},bK.withHandlers=function(e){return function(t){var n=FK.createFactory(t),o=function(e){function t(){var n,o;XK(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=ZK(this,e.call.apply(e,[this].concat(a))),r.call(o),ZK(o,n)}return YK(t,e),t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return n(GK({},this.props,this.handlers))},t}(FK.Component),r=function(){var t=this;this.cachedHandlers={},this.handlers=QK("function"==typeof e?e(this.props):e,(function(e,n){return function(){var o=t.cachedHandlers[n];if(o)return o.apply(void 0,arguments);var r=e(t.props);return t.cachedHandlers[n]=r,"production"!==process.env.NODE_ENV&&"function"!=typeof r&&console.error("withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."),r.apply(void 0,arguments)}}))};return"production"!==process.env.NODE_ENV?WK(HK(t,"withHandlers"))(o):o}},bK.defaultProps=function(e){return function(t){var n=FK.createFactory(t),o=function(e){return n(e)};return o.defaultProps=e,"production"!==process.env.NODE_ENV?WK(HK(t,"defaultProps"))(o):o}},bK.renameProp=function(e,t){var n=qK((function(n){var o;return GK({},eZ(n,[e]),((o={})[t]=n[e],o))}));return"production"!==process.env.NODE_ENV?function(e){return WK(HK(e,"renameProp"))(n(e))}:n},bK.renameProps=function(e){var t=qK((function(t){return GK({},eZ(t,tZ(e)),function(e,t){return tZ(e).reduce((function(n,o){var r=e[o];return n[t(r,o)]=r,n}),{})}(JK(t,tZ(e)),(function(t,n){return e[n]})))}));return"production"!==process.env.NODE_ENV?function(e){return WK(HK(e,"renameProps"))(t(e))}:t},bK.flattenProp=function(e){return function(t){var n=FK.createFactory(t),o=function(t){return n(GK({},t,t[e]))};return"production"!==process.env.NODE_ENV?WK(HK(t,"flattenProp"))(o):o}},bK.withState=function(e,t,n){return function(o){var r=FK.createFactory(o),i=function(o){function i(){var e,t;XK(this,i);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t=ZK(this,o.call.apply(o,[this].concat(a))),t.state={stateValue:"function"==typeof n?n(t.props):n},t.updateStateValue=function(e,n){return t.setState((function(t){var n=t.stateValue;return{stateValue:"function"==typeof e?e(n):e}}),n)},ZK(t,e)}return YK(i,o),i.prototype.render=function(){var n;return r(GK({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},i}(FK.Component);return"production"!==process.env.NODE_ENV?WK(HK(o,"withState"))(i):i}},bK.withStateHandlers=function(e,t){return function(n){var o=FK.createFactory(n),r=function(e){function t(){var n,o;XK(this,t);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=ZK(this,e.call.apply(e,[this].concat(a))),i.call(o),ZK(o,n)}return YK(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e!==this.props,o=!LK(t,this.state);return n||o},t.prototype.render=function(){return o(GK({},this.props,this.state,this.stateUpdaters))},t}(FK.Component),i=function(){var n=this;this.state="function"==typeof e?e(this.props):e,this.stateUpdaters=QK(t,(function(e){return function(t){for(var o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t&&"function"==typeof t.persist&&t.persist(),n.setState((function(n,o){return e(n,o).apply(void 0,[t].concat(r))}))}}))};return"production"!==process.env.NODE_ENV?WK(HK(n,"withStateHandlers"))(r):r}},bK.withReducer=function(e,t,n,o){return function(r){var i=FK.createFactory(r),a=function(r){function a(){var e,t;XK(this,a);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return e=t=ZK(this,r.call.apply(r,[this].concat(i))),t.state={stateValue:t.initializeStateValue()},t.dispatch=function(e){return t.setState((function(t){var o=t.stateValue;return{stateValue:n(o,e)}}))},ZK(t,e)}return YK(a,r),a.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:n(void 0,{type:"@@recompose/INIT"})},a.prototype.render=function(){var n;return i(GK({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.dispatch,n)))},a}(FK.Component);return"production"!==process.env.NODE_ENV?WK(HK(r,"withReducer"))(a):a}},bK.branch=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nZ;return function(o){var r=void 0,i=void 0,a=function(a){return e(a)?(r=r||FK.createFactory(t(o)))(a):(i=i||FK.createFactory(n(o)))(a)};return"production"!==process.env.NODE_ENV?WK(HK(o,"branch"))(a):a}},bK.renderComponent=function(e){return function(t){var n=FK.createFactory(e),o=function(e){return n(e)};return"production"!==process.env.NODE_ENV&&(o.displayName=HK(e,"renderComponent")),o}},bK.renderNothing=function(e){return oZ},bK.shouldUpdate=rZ,bK.pure=function(e){var t=rZ((function(e,t){return!LK(e,t)}));return"production"!==process.env.NODE_ENV?WK(HK(e,"pure"))(t(e)):t(e)},bK.onlyUpdateForKeys=iZ,bK.onlyUpdateForPropTypes=function(e){var t=e.propTypes;"production"!==process.env.NODE_ENV&&(t||console.error('A component without any `propTypes` was passed to `onlyUpdateForPropTypes()`. Check the implementation of the component with display name "'+UK(e)+'".'));var n=Object.keys(t||{}),o=iZ(n)(e);return"production"!==process.env.NODE_ENV?WK(HK(e,"onlyUpdateForPropTypes"))(o):o},bK.withContext=function(e,t){return function(n){var o=FK.createFactory(n),r=function(e){function n(){var o,r;XK(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r=ZK(this,e.call.apply(e,[this].concat(a))),r.getChildContext=function(){return t(r.props)},ZK(r,o)}return YK(n,e),n.prototype.render=function(){return o(this.props)},n}(FK.Component);return r.childContextTypes=e,"production"!==process.env.NODE_ENV?WK(HK(n,"withContext"))(r):r}},bK.getContext=function(e){return function(t){var n=FK.createFactory(t),o=function(e,t){return n(GK({},e,t))};return o.contextTypes=e,"production"!==process.env.NODE_ENV?WK(HK(t,"getContext"))(o):o}},bK.lifecycle=function(e){return function(t){var n=FK.createFactory(t);"production"!==process.env.NODE_ENV&&e.hasOwnProperty("render")&&console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");var o=function(e){function t(){return XK(this,t),ZK(this,e.apply(this,arguments))}return YK(t,e),t.prototype.render=function(){return n(GK({},this.props,this.state))},t}(FK.Component);return Object.keys(e).forEach((function(t){return o.prototype[t]=e[t]})),"production"!==process.env.NODE_ENV?WK(HK(t,"lifecycle"))(o):o}},bK.toClass=function(e){if(aZ(e))return e;var t=function(t){function n(){return XK(this,n),ZK(this,t.apply(this,arguments))}return YK(n,t),n.prototype.render=function(){return"string"==typeof e?_K.createElement(e,this.props):e(this.props,this.context)},n}(FK.Component);return t.displayName=UK(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t},bK.setStatic=VK,bK.setPropTypes=function(e){return VK("propTypes",e)},bK.setDisplayName=WK,bK.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))},bK.getDisplayName=UK,bK.wrapDisplayName=HK,bK.shallowEqual=LK,bK.isClassComponent=aZ,bK.createSink=function(e){return function(t){function n(){return XK(this,n),ZK(this,t.apply(this,arguments))}return YK(n,t),n.prototype.componentWillMount=function(){e(this.props)},n.prototype.componentWillReceiveProps=function(t){e(t)},n.prototype.render=function(){return null},n}(FK.Component)},bK.componentFromProp=function(e){var t=function(t){return FK.createElement(t[e],eZ(t,[e]))};return t.displayName="componentFromProp("+e+")",t},bK.nest=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.map(FK.createFactory),r=function(e){var t=KK(e,[]),n=e.children;return o.reduceRight((function(e,n){return n(t,e)}),n)};if("production"!==process.env.NODE_ENV){var i=t.map(UK);r.displayName="nest("+i.join(", ")+")"}return r},bK.hoistStatics=function(e){return function(t){var n=e(t);return IK(n,t),n}},bK.componentFromStream=function(e){return cZ(lZ)(e)},bK.componentFromStreamWithConfig=cZ,bK.mapPropsStream=function(e){var t=pZ(lZ)(e);return"production"!==process.env.NODE_ENV?function(e){return WK(HK(e,"mapPropsStream"))(t(e))}:t},bK.mapPropsStreamWithConfig=pZ,bK.createEventHandler=fZ,bK.createEventHandlerWithConfig=dZ,bK.setObservableConfig=function(e){sZ=e};var hZ,mZ={exports:{}};
|
256
256
|
/*!
|
257
257
|
* $script.js JS loader & dependency manager
|
258
258
|
* https://github.com/ded/script.js
|
259
259
|
* (c) Dustin Diaz 2014 | License MIT
|
260
|
-
*/Object.defineProperty(AV,"__esModule",{value:!0});var fZ=DZ(NV),hZ=DZ(PV.exports),mZ=DZ(IW),vZ=DZ($W),gZ=DZ(qW),xZ=DZ(CX),bZ=DZ(dK);AV.withScriptjs=SZ;var yZ=DZ(hK),wZ=DZ(mK),CZ=vK,EZ=DZ(xe.exports),OZ=DZ(u.default);function DZ(e){return e&&e.__esModule?e:{default:e}}function SZ(e){var t=OZ.default.createFactory(e),n=function(e){function n(){var e,t,o,r;(0,mZ.default)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=o=(0,gZ.default)(this,(e=n.__proto__||(0,hZ.default)(n)).call.apply(e,[this].concat(a))),o.state={loadingState:"NONE"},o.isUnmounted=!1,o.handleLoaded=(0,bZ.default)(o.handleLoaded,o),r=t,(0,gZ.default)(o,r)}return(0,xZ.default)(n,e),(0,vZ.default)(n,[{key:"handleLoaded",value:function(){this.isUnmounted||this.setState({loadingState:"LOADED"})}},{key:"componentWillMount",value:function(){var e=this.props,t=e.loadingElement,n=e.googleMapURL;(0,yZ.default)(!!t&&!!n,"Required props loadingElement or googleMapURL is missing. You need to provide both of them.")}},{key:"componentDidMount",value:function(){if("NONE"===this.state.loadingState&&wZ.default){this.setState({loadingState:"BEGIN"});var e=(pZ||(pZ=1,function(e){!function(t,n){e.exports?e.exports=n():this.$script=n()}(0,(function(){var e,t,n=document,o=n.getElementsByTagName("head")[0],r={},i={},a={};function s(e,t){for(var n=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return 1}function l(e,t){s(e,(function(e){return t(e),1}))}function c(t,n,o){t=t.push?t:[t];var p=n&&n.call,d=p?n:o,f=p?t.join(""):n,h=t.length;function m(e){return e.call?e():r[e]}function v(){if(!--h)for(var e in r[f]=1,d&&d(),i)s(e.split("|"),m)&&!l(i[e],m)&&(i[e]=[])}return setTimeout((function(){l(t,(function t(n,o){return null===n?v():(o||/^https?:\/\//.test(n)||!e||(n=-1===n.indexOf(".js")?e+n+".js":e+n),a[n]?2==a[n]?v():setTimeout((function(){t(n,!0)}),0):(a[n]=1,void u(n,v)))}))}),0),c}function u(e,r){var i,s=n.createElement("script");s.onload=s.onerror=s.onreadystatechange=function(){s.readyState&&!/^c|loade/.test(s.readyState)||i||(s.onload=s.onreadystatechange=null,i=1,a[e]=2,r())},s.async=1,s.src=t?e+(-1===e.indexOf("?")?"?":"&")+t:e,o.insertBefore(s,o.lastChild)}return c.get=u,c.order=function(e,t,n){!function o(r){r=e.shift(),e.length?c(r,o):c(r,t,n)}()},c.path=function(t){e=t},c.urlArgs=function(e){t=e},c.ready=function(e,t,n){e=e.push?e:[e];var o,a=[];return!l(e,(function(e){r[e]||a.push(e)}))&&s(e,(function(e){return r[e]}))?t():(o=e.join("|"),i[o]=i[o]||[],i[o].push(t),n&&n(a)),c},c.done=function(e){c([null],e)},c}))}(dZ)),dZ.exports);e(this.props.googleMapURL,this.handleLoaded)}}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0}},{key:"render",value:function(){var e=this.props,n=e.loadingElement;e.googleMapURL;var o=(0,fZ.default)(e,["loadingElement","googleMapURL"]);return"LOADED"===this.state.loadingState?t(o):n}}]),n}(OZ.default.PureComponent);return n.displayName="withScriptjs("+(0,CZ.getDisplayName)(e)+")",n.propTypes={loadingElement:EZ.default.node.isRequired,googleMapURL:EZ.default.string.isRequired},n}AV.default=SZ;var kZ={},TZ={__esModule:!0},jZ=function(e){return e&&e.__esModule?e:{default:e}}(zW.exports);TZ.default=function(e,t,n){return t in e?(0,jZ.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};var MZ=function(){};"production"!==process.env.NODE_ENV&&(MZ=function(e,t,n){var o=arguments.length;n=new Array(o>2?o-2:0);for(var r=2;r<o;r++)n[r-2]=arguments[r];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}});var AZ=MZ,NZ={};Object.defineProperty(NZ,"__esModule",{value:!0}),NZ.MAP="__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.MARKER="__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.MARKER_WITH_LABEL="__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.RECTANGLE="__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.POLYLINE="__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.POLYGON="__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.CIRCLE="__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.KML_LAYER="__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.DIRECTIONS_RENDERER="__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.HEATMAP_LAYER="__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.FUSION_TABLES_LAYER="__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.ANCHOR="__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.INFO_WINDOW="__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.OVERLAY_VIEW="__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.GROUND_LAYER="__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.DRAWING_MANAGER="__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.SEARCH_BOX="__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.MARKER_CLUSTERER="__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.INFO_BOX="__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.TRAFFIC_LAYER="__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.STREET_VIEW_PANORAMA="__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",NZ.BICYCLING_LAYER="__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",Object.defineProperty(kZ,"__esModule",{value:!0});var PZ=XZ(NV),RZ=XZ(TZ),BZ=XZ(PV.exports),FZ=XZ(IW),_Z=XZ($W),LZ=XZ(qW),IZ=XZ(CX),$Z=XZ(dK);kZ.withGoogleMap=GZ;var zZ=XZ(AZ),VZ=XZ(hK),WZ=vK,UZ=XZ(xe.exports),HZ=XZ(u.default),qZ=NZ;function XZ(e){return e&&e.__esModule?e:{default:e}}function GZ(e){var t=HZ.default.createFactory(e),n=function(e){function n(){var e,t,o,r;(0,FZ.default)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=o=(0,LZ.default)(this,(e=n.__proto__||(0,BZ.default)(n)).call.apply(e,[this].concat(a))),o.state={map:null},o.handleComponentMount=(0,$Z.default)(o.handleComponentMount,o),r=t,(0,LZ.default)(o,r)}return(0,IZ.default)(n,e),(0,_Z.default)(n,[{key:"getChildContext",value:function(){return(0,RZ.default)({},qZ.MAP,this.state.map)}},{key:"componentWillMount",value:function(){var e=this.props,t=e.containerElement,n=e.mapElement;(0,VZ.default)(!!t&&!!n,"Required props containerElement or mapElement is missing. You need to provide both of them.\n The `google.maps.Map` instance will be initialized on mapElement and it's wrapped by containerElement.\nYou need to provide both of them since Google Map requires the DOM to have height when initialized.")}},{key:"handleComponentMount",value:function(e){if(!this.state.map&&null!==e){(0,zZ.default)("undefined"!=typeof google,"Make sure you've put a <script> tag in your <head> element to load Google Maps JavaScript API v3.\n If you're looking for built-in support to load it for you, use the \"async/ScriptjsLoader\" instead.\n See https://github.com/tomchentw/react-google-maps/pull/168");var t=new google.maps.Map(e);this.setState({map:t})}}},{key:"render",value:function(){var e=this.props,n=e.containerElement,o=e.mapElement,r=(0,PZ.default)(e,["containerElement","mapElement"]);return this.state.map?HZ.default.cloneElement(n,{},HZ.default.cloneElement(o,{ref:this.handleComponentMount}),HZ.default.createElement("div",null,t(r))):HZ.default.cloneElement(n,{},HZ.default.cloneElement(o,{ref:this.handleComponentMount}),HZ.default.createElement("div",null))}}]),n}(HZ.default.PureComponent);return n.displayName="withGoogleMap("+(0,WZ.getDisplayName)(e)+")",n.propTypes={containerElement:UZ.default.node.isRequired,mapElement:UZ.default.node.isRequired},n.childContextTypes=(0,RZ.default)({},qZ.MAP,UZ.default.object),n}kZ.default=GZ;var YZ,KZ,ZZ={},JZ={},QZ={exports:{}},eJ=pW,tJ=rU,nJ=zU.exports("iterator"),oJ=Array.prototype,rJ=lW,iJ=CW,aJ=aU,sJ=zU.exports("toStringTag"),lJ="Arguments"==aJ(function(){return arguments}()),cJ=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),sJ))?n:lJ?aJ(t):"Object"==(o=aJ(t))&&"function"==typeof t.callee?"Arguments":o},uJ=zU.exports("iterator"),pJ=rU,dJ=$V.exports.getIteratorMethod=function(e){if(null!=e)return e[uJ]||e["@@iterator"]||pJ[cJ(e)]};var fJ=sW,hJ=NW,mJ=FV,vJ=function(e,t,n,o){try{return o?t(eJ(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&eJ(r.call(e)),t}},gJ=function(e){return void 0!==e&&(tJ.Array===e||oJ[nJ]===e)},xJ=hU,bJ=function(e,t,n){t in e?rJ.f(e,t,iJ(0,n)):e[t]=n},yJ=dJ;hJ(hJ.S+hJ.F*!function(){if(KZ)return YZ;KZ=1;var e=zU.exports("iterator"),t=!1;try{var n=[7][e]();n.return=function(){t=!0},Array.from(n,(function(){throw 2}))}catch(e){}return YZ=function(n,o){if(!o&&!t)return!1;var r=!1;try{var i=[7],a=i[e]();a.next=function(){return{done:r=!0}},i[e]=function(){return a},n(i)}catch(e){}return r}}()((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,r,i=mJ(e),a="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,c=void 0!==l,u=0,p=yJ(i);if(c&&(l=fJ(l,s>2?arguments[2]:void 0,2)),null==p||a==Array&&gJ(p))for(n=new a(t=xJ(i.length));t>u;u++)bJ(n,u,c?l(i[u],u):i[u]);else for(r=p.call(i),n=new a;!(o=r.next()).done;u++)bJ(n,u,c?vJ(r,l,[o.value,u],!0):o.value);return n.length=u,n}});var wJ=$V.exports.Array.from;QZ.exports={default:wJ,__esModule:!0},JZ.__esModule=!0;var CJ=function(e){return e&&e.__esModule?e:{default:e}}(QZ.exports);JZ.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,CJ.default)(e)};var EJ={};var OJ=function(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n};var DJ=function(e){return function(t,n,o){for(var r=-1,i=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(i[l],l,i))break}return t}},SJ=DJ(),kJ=$I;var TJ=FI;var jJ=function(e,t){return function(n,o){if(null==n)return n;if(!TJ(n))return e(n,o);for(var r=n.length,i=t?r:-1,a=Object(n);(t?i--:++i<r)&&!1!==o(a[i],i,a););return n}},MJ=jJ((function(e,t){return e&&SJ(e,t,kJ)})),AJ=mL,NJ=C$;var PJ=function(e,t,n,o){var r=n.length,i=r,a=!o;if(null==e)return!i;for(e=Object(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<i;){var l=(s=n[r])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new AJ;if(o)var d=o(c,u,l,e,t,p);if(!(void 0===d?NJ(u,c,3,o,p):d))return!1}}return!0},RJ=ST;var BJ=function(e){return e==e&&!RJ(e)},FJ=BJ,_J=$I;var LJ=function(e){for(var t=_J(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,FJ(r)]}return t};var IJ=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},$J=PJ,zJ=LJ,VJ=IJ;var WJ=function(e){var t=zJ(e);return 1==t.length&&t[0][2]?VJ(t[0][0],t[0][1]):function(n){return n===e||$J(n,e,t)}},UJ=FL,HJ=QT,qJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XJ=/^\w*$/;var GJ=function(e,t){if(UJ(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!HJ(e))||(XJ.test(e)||!qJ.test(e)||null!=t&&e in Object(t))},YJ=rL;function KJ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(KJ.Cache||YJ),n}KJ.Cache=YJ;var ZJ=KJ;var JJ=function(e){var t=ZJ(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},QJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eQ=/\\(\\)?/g,tQ=JJ((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(QJ,(function(e,n,o,r){t.push(o?r.replace(eQ,"$1"):n||e)})),t})),nQ=tQ;var oQ=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r},rQ=oQ,iQ=FL,aQ=QT,sQ=LT?LT.prototype:void 0,lQ=sQ?sQ.toString:void 0;var cQ=function e(t){if("string"==typeof t)return t;if(iQ(t))return rQ(t,e)+"";if(aQ(t))return lQ?lQ.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},uQ=cQ;var pQ=function(e){return null==e?"":uQ(e)},dQ=FL,fQ=GJ,hQ=nQ,mQ=pQ;var vQ=function(e,t){return dQ(e)?e:fQ(e,t)?[e]:hQ(mQ(e))},gQ=QT;var xQ=function(e){if("string"==typeof e||gQ(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},bQ=vQ,yQ=xQ;var wQ=function(e,t){for(var n=0,o=(t=bQ(t,e)).length;null!=e&&n<o;)e=e[yQ(t[n++])];return n&&n==o?e:void 0},CQ=wQ;var EQ=function(e,t,n){var o=null==e?void 0:CQ(e,t);return void 0===o?n:o};var OQ=vQ,DQ=tI,SQ=FL,kQ=iI,TQ=aI,jQ=xQ;var MQ=function(e,t,n){for(var o=-1,r=(t=OQ(t,e)).length,i=!1;++o<r;){var a=jQ(t[o]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&TQ(r)&&kQ(a,r)&&(SQ(e)||DQ(e))},AQ=function(e,t){return null!=e&&t in Object(e)},NQ=MQ;var PQ=C$,RQ=EQ,BQ=function(e,t){return null!=e&&NQ(e,t,AQ)},FQ=GJ,_Q=BJ,LQ=IJ,IQ=xQ;var $Q=wQ;var zQ=function(e){return function(t){return null==t?void 0:t[e]}},VQ=function(e){return function(t){return $Q(t,e)}},WQ=GJ,UQ=xQ;var HQ=WJ,qQ=function(e,t){return FQ(e)&&_Q(t)?LQ(IQ(e),t):function(n){var o=RQ(n,e);return void 0===o&&o===t?BQ(n,e):PQ(t,o,3)}},XQ=NX,GQ=FL,YQ=function(e){return WQ(e)?zQ(UQ(e)):VQ(e)};var KQ=function(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n},ZQ=OJ,JQ=MJ,QQ=function(e){return"function"==typeof e?e:null==e?XQ:"object"==typeof e?GQ(e)?qQ(e[0],e[1]):HQ(e):YQ(e)},e0=KQ,t0=FL;var n0=function(e,t,n){var o=t0(e)?ZQ:e0,r=arguments.length<3;return o(e,QQ(t),n,r,JQ)},o0=NX;var r0=KG,i0=MJ,a0=function(e){return"function"==typeof e?e:o0},s0=FL;var l0=function(e,t){return(s0(e)?r0:i0)(e,a0(t))};var c0=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i},u0=c0;var p0=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:u0(e,t,n)},d0=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var f0=function(e){return d0.test(e)};var h0=function(e){return e.split("")},m0="[\\ud800-\\udfff]",v0="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",g0="\\ud83c[\\udffb-\\udfff]",x0="[^\\ud800-\\udfff]",b0="(?:\\ud83c[\\udde6-\\uddff]){2}",y0="[\\ud800-\\udbff][\\udc00-\\udfff]",w0="(?:"+v0+"|"+g0+")"+"?",C0="[\\ufe0e\\ufe0f]?"+w0+("(?:\\u200d(?:"+[x0,b0,y0].join("|")+")[\\ufe0e\\ufe0f]?"+w0+")*"),E0="(?:"+[x0+v0+"?",v0,b0,y0,m0].join("|")+")",O0=RegExp(g0+"(?="+g0+")|"+E0+C0,"g");var D0=h0,S0=f0,k0=function(e){return e.match(O0)||[]};var T0=p0,j0=f0,M0=function(e){return S0(e)?k0(e):D0(e)},A0=pQ;var N0=function(e){return function(t){t=A0(t);var n=j0(t)?M0(t):void 0,o=n?n[0]:t.charAt(0),r=n?T0(n,1).join(""):t.slice(1);return o[e]()+r}}("toLowerCase"),P0=Object.prototype.hasOwnProperty;var R0=function(e,t){return null!=e&&P0.call(e,t)},B0=MQ;var F0=function(e,t){return null!=e&&B0(e,t,R0)};Object.defineProperty(EJ,"__esModule",{value:!0});var _0=W0(dK),L0=W0(a_),I0=W0(n0),$0=W0(l0),z0=W0(N0),V0=W0(F0);function W0(e){return e&&e.__esModule?e:{default:e}}function U0(e,t,n){if((0,V0.default)(e.prevProps,n)){var o=n.match(/^default(\S+)/);if(o){var r=(0,z0.default)(o[1]);(0,V0.default)(e.nextProps,r)||(e.nextProps[r]=e.prevProps[n])}else e.nextProps[n]=e.prevProps[n]}return e}function H0(e,t,n,o){(0,$0.default)(e,(function(e,r){var i=n[r];i!==t[r]&&e(o,i)}))}function q0(e,t,n){var o=(0,I0.default)(n,(function(n,o,r){return(0,L0.default)(e.props[r])&&n.push(google.maps.event.addListener(t,o,e.props[r])),n}),[]);e.unregisterAllEvents=(0,_0.default)($0.default,null,o,X0)}function X0(e){google.maps.event.removeListener(e)}EJ.construct=function(e,t,n,o){var r=(0,I0.default)(e,U0,{nextProps:{},prevProps:n}).nextProps;H0(t,{},r,o)},EJ.componentDidMount=function(e,t,n){q0(e,t,n)},EJ.componentDidUpdate=function(e,t,n,o,r){e.unregisterAllEvents(),H0(o,r,e.props,t),q0(e,t,n)},EJ.componentWillUnmount=function(e){e.unregisterAllEvents()},Object.defineProperty(ZZ,"__esModule",{value:!0}),ZZ.GoogleMap=ZZ.Map=void 0;var G0=a1(TZ),Y0=a1(JZ),K0=a1(PV.exports),Z0=a1(IW),J0=a1(qW),Q0=a1($W),e1=a1(CX),t1=a1(hK),n1=a1(u.default),o1=a1(xe.exports),r1=EJ,i1=NZ;function a1(e){return e&&e.__esModule?e:{default:e}}var s1=ZZ.Map=function(e){function t(e,n){(0,Z0.default)(this,t);var o=(0,J0.default)(this,(t.__proto__||(0,K0.default)(t)).call(this,e,n));return(0,t1.default)(!!o.context[i1.MAP],"Did you wrap <GoogleMap> component with withGoogleMap() HOC?"),(0,r1.construct)(l1.propTypes,u1,o.props,o.context[i1.MAP]),o}return(0,e1.default)(t,e),(0,Q0.default)(t,[{key:"fitBounds",value:function(){var e;return(e=this.context[i1.MAP]).fitBounds.apply(e,arguments)}},{key:"panBy",value:function(){var e;return(e=this.context[i1.MAP]).panBy.apply(e,arguments)}},{key:"panTo",value:function(){var e;return(e=this.context[i1.MAP]).panTo.apply(e,arguments)}},{key:"panToBounds",value:function(){var e;return(e=this.context[i1.MAP]).panToBounds.apply(e,arguments)}}]),(0,Q0.default)(t,[{key:"componentDidMount",value:function(){(0,r1.componentDidMount)(this,this.context[i1.MAP],c1)}},{key:"componentDidUpdate",value:function(e){(0,r1.componentDidUpdate)(this,this.context[i1.MAP],c1,u1,e)}},{key:"componentWillUnmount",value:function(){(0,r1.componentWillUnmount)(this)}},{key:"render",value:function(){var e=this.props.children;return n1.default.createElement("div",null,e)}},{key:"getBounds",value:function(){return this.context[i1.MAP].getBounds()}},{key:"getCenter",value:function(){return this.context[i1.MAP].getCenter()}},{key:"getClickableIcons",value:function(){return this.context[i1.MAP].getClickableIcons()}},{key:"getDiv",value:function(){return this.context[i1.MAP].getDiv()}},{key:"getHeading",value:function(){return this.context[i1.MAP].getHeading()}},{key:"getMapTypeId",value:function(){return this.context[i1.MAP].getMapTypeId()}},{key:"getProjection",value:function(){return this.context[i1.MAP].getProjection()}},{key:"getStreetView",value:function(){return this.context[i1.MAP].getStreetView()}},{key:"getTilt",value:function(){return this.context[i1.MAP].getTilt()}},{key:"getZoom",value:function(){return this.context[i1.MAP].getZoom()}}]),t}(n1.default.PureComponent);s1.displayName="GoogleMap",s1.propTypes={defaultExtraMapTypes:o1.default.arrayOf(o1.default.arrayOf(o1.default.any)),defaultCenter:o1.default.any,defaultClickableIcons:o1.default.bool,defaultHeading:o1.default.number,defaultMapTypeId:o1.default.any,defaultOptions:o1.default.any,defaultStreetView:o1.default.any,defaultTilt:o1.default.number,defaultZoom:o1.default.number,center:o1.default.any,clickableIcons:o1.default.bool,heading:o1.default.number,mapTypeId:o1.default.any,options:o1.default.any,streetView:o1.default.any,tilt:o1.default.number,zoom:o1.default.number,onDblClick:o1.default.func,onDragEnd:o1.default.func,onDragStart:o1.default.func,onMapTypeIdChanged:o1.default.func,onMouseMove:o1.default.func,onMouseOut:o1.default.func,onMouseOver:o1.default.func,onRightClick:o1.default.func,onTilesLoaded:o1.default.func,onBoundsChanged:o1.default.func,onCenterChanged:o1.default.func,onClick:o1.default.func,onDrag:o1.default.func,onHeadingChanged:o1.default.func,onIdle:o1.default.func,onProjectionChanged:o1.default.func,onResize:o1.default.func,onTiltChanged:o1.default.func,onZoomChanged:o1.default.func},s1.contextTypes=(0,G0.default)({},i1.MAP,o1.default.object);var l1=ZZ.GoogleMap=s1;ZZ.default=s1;var c1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},u1={extraMapTypes:function(e,t){t.forEach((function(t){var n;return(n=e.mapTypes).set.apply(n,(0,Y0.default)(t))}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}},p1={};Object.defineProperty(p1,"__esModule",{value:!0}),p1.Circle=void 0;var d1=C1(TZ),f1=C1(PV.exports),h1=C1(IW),m1=C1($W),v1=C1(qW),g1=C1(CX),x1=C1(u.default),b1=C1(xe.exports),y1=EJ,w1=NZ;function C1(e){return e&&e.__esModule?e:{default:e}}var E1=p1.Circle=function(e){function t(e,n){(0,h1.default)(this,t);var o=(0,v1.default)(this,(t.__proto__||(0,f1.default)(t)).call(this,e,n)),r=new google.maps.Circle;return(0,y1.construct)(t.propTypes,D1,o.props,r),r.setMap(o.context[w1.MAP]),o.state=(0,d1.default)({},w1.CIRCLE,r),o}return(0,g1.default)(t,e),(0,m1.default)(t,[{key:"componentDidMount",value:function(){(0,y1.componentDidMount)(this,this.state[w1.CIRCLE],O1)}},{key:"componentDidUpdate",value:function(e){(0,y1.componentDidUpdate)(this,this.state[w1.CIRCLE],O1,D1,e)}},{key:"componentWillUnmount",value:function(){(0,y1.componentWillUnmount)(this);var e=this.state[w1.CIRCLE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[w1.CIRCLE].getBounds()}},{key:"getCenter",value:function(){return this.state[w1.CIRCLE].getCenter()}},{key:"getDraggable",value:function(){return this.state[w1.CIRCLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[w1.CIRCLE].getEditable()}},{key:"getRadius",value:function(){return this.state[w1.CIRCLE].getRadius()}},{key:"getVisible",value:function(){return this.state[w1.CIRCLE].getVisible()}}]),t}(x1.default.PureComponent);E1.propTypes={defaultCenter:b1.default.any,defaultDraggable:b1.default.bool,defaultEditable:b1.default.bool,defaultOptions:b1.default.any,defaultRadius:b1.default.number,defaultVisible:b1.default.bool,center:b1.default.any,draggable:b1.default.bool,editable:b1.default.bool,options:b1.default.any,radius:b1.default.number,visible:b1.default.bool,onDblClick:b1.default.func,onDragEnd:b1.default.func,onDragStart:b1.default.func,onMouseDown:b1.default.func,onMouseMove:b1.default.func,onMouseOut:b1.default.func,onMouseOver:b1.default.func,onMouseUp:b1.default.func,onRightClick:b1.default.func,onCenterChanged:b1.default.func,onClick:b1.default.func,onDrag:b1.default.func,onRadiusChanged:b1.default.func},E1.contextTypes=(0,d1.default)({},w1.MAP,b1.default.object),p1.default=E1;var O1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onRadiusChanged:"radius_changed"},D1={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},S1={};Object.defineProperty(S1,"__esModule",{value:!0}),S1.Marker=void 0;var k1,T1=L1(TZ),j1=L1(PV.exports),M1=L1(IW),A1=L1($W),N1=L1(qW),P1=L1(CX),R1=L1(u.default),B1=L1(xe.exports),F1=EJ,_1=NZ;function L1(e){return e&&e.__esModule?e:{default:e}}var I1=S1.Marker=function(e){function t(e,n){(0,M1.default)(this,t);var o=(0,N1.default)(this,(t.__proto__||(0,j1.default)(t)).call(this,e,n)),r=new google.maps.Marker;(0,F1.construct)(t.propTypes,z1,o.props,r);var i=o.context[_1.MARKER_CLUSTERER];return i?i.addMarker(r,!!o.props.noRedraw):r.setMap(o.context[_1.MAP]),o.state=(0,T1.default)({},_1.MARKER,r),o}return(0,P1.default)(t,e),(0,A1.default)(t,[{key:"getChildContext",value:function(){return(0,T1.default)({},_1.ANCHOR,this.context[_1.ANCHOR]||this.state[_1.MARKER])}},{key:"componentDidMount",value:function(){(0,F1.componentDidMount)(this,this.state[_1.MARKER],$1)}},{key:"componentDidUpdate",value:function(e){(0,F1.componentDidUpdate)(this,this.state[_1.MARKER],$1,z1,e)}},{key:"componentWillUnmount",value:function(){(0,F1.componentWillUnmount)(this);var e=this.state[_1.MARKER];if(e){var t=this.context[_1.MARKER_CLUSTERER];t&&t.removeMarker(e,!!this.props.noRedraw),e.setMap(null)}}},{key:"render",value:function(){var e=this.props.children;return R1.default.createElement("div",null,e)}},{key:"getAnimation",value:function(){return this.state[_1.MARKER].getAnimation()}},{key:"getClickable",value:function(){return this.state[_1.MARKER].getClickable()}},{key:"getCursor",value:function(){return this.state[_1.MARKER].getCursor()}},{key:"getDraggable",value:function(){return this.state[_1.MARKER].getDraggable()}},{key:"getIcon",value:function(){return this.state[_1.MARKER].getIcon()}},{key:"getLabel",value:function(){return this.state[_1.MARKER].getLabel()}},{key:"getOpacity",value:function(){return this.state[_1.MARKER].getOpacity()}},{key:"getPlace",value:function(){return this.state[_1.MARKER].getPlace()}},{key:"getPosition",value:function(){return this.state[_1.MARKER].getPosition()}},{key:"getShape",value:function(){return this.state[_1.MARKER].getShape()}},{key:"getTitle",value:function(){return this.state[_1.MARKER].getTitle()}},{key:"getVisible",value:function(){return this.state[_1.MARKER].getVisible()}},{key:"getZIndex",value:function(){return this.state[_1.MARKER].getZIndex()}}]),t}(R1.default.PureComponent);I1.propTypes={noRedraw:B1.default.bool,defaultAnimation:B1.default.any,defaultClickable:B1.default.bool,defaultCursor:B1.default.string,defaultDraggable:B1.default.bool,defaultIcon:B1.default.any,defaultLabel:B1.default.any,defaultOpacity:B1.default.number,defaultOptions:B1.default.any,defaultPlace:B1.default.any,defaultPosition:B1.default.any,defaultShape:B1.default.any,defaultTitle:B1.default.string,defaultVisible:B1.default.bool,defaultZIndex:B1.default.number,animation:B1.default.any,clickable:B1.default.bool,cursor:B1.default.string,draggable:B1.default.bool,icon:B1.default.any,label:B1.default.any,opacity:B1.default.number,options:B1.default.any,place:B1.default.any,position:B1.default.any,shape:B1.default.any,title:B1.default.string,visible:B1.default.bool,zIndex:B1.default.number,onDblClick:B1.default.func,onDragEnd:B1.default.func,onDragStart:B1.default.func,onMouseDown:B1.default.func,onMouseOut:B1.default.func,onMouseOver:B1.default.func,onMouseUp:B1.default.func,onRightClick:B1.default.func,onAnimationChanged:B1.default.func,onClick:B1.default.func,onClickableChanged:B1.default.func,onCursorChanged:B1.default.func,onDrag:B1.default.func,onDraggableChanged:B1.default.func,onFlatChanged:B1.default.func,onIconChanged:B1.default.func,onPositionChanged:B1.default.func,onShapeChanged:B1.default.func,onTitleChanged:B1.default.func,onVisibleChanged:B1.default.func,onZindexChanged:B1.default.func},I1.contextTypes=(k1={},(0,T1.default)(k1,_1.MAP,B1.default.object),(0,T1.default)(k1,_1.MARKER_CLUSTERER,B1.default.object),k1),I1.childContextTypes=(0,T1.default)({},_1.ANCHOR,B1.default.object),S1.default=I1;var $1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDrag:"drag",onDraggableChanged:"draggable_changed",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onPositionChanged:"position_changed",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},z1={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},place:function(e,t){e.setPlace(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},V1={};Object.defineProperty(V1,"__esModule",{value:!0}),V1.Polyline=void 0;var W1=Q1(TZ),U1=Q1(PV.exports),H1=Q1(IW),q1=Q1($W),X1=Q1(qW),G1=Q1(CX),Y1=Q1(u.default),K1=Q1(xe.exports),Z1=EJ,J1=NZ;function Q1(e){return e&&e.__esModule?e:{default:e}}var e2=V1.Polyline=function(e){function t(e,n){(0,H1.default)(this,t);var o=(0,X1.default)(this,(t.__proto__||(0,U1.default)(t)).call(this,e,n)),r=new google.maps.Polyline;return(0,Z1.construct)(t.propTypes,n2,o.props,r),r.setMap(o.context[J1.MAP]),o.state=(0,W1.default)({},J1.POLYLINE,r),o}return(0,G1.default)(t,e),(0,q1.default)(t,[{key:"componentDidMount",value:function(){(0,Z1.componentDidMount)(this,this.state[J1.POLYLINE],t2)}},{key:"componentDidUpdate",value:function(e){(0,Z1.componentDidUpdate)(this,this.state[J1.POLYLINE],t2,n2,e)}},{key:"componentWillUnmount",value:function(){(0,Z1.componentWillUnmount)(this);var e=this.state[J1.POLYLINE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[J1.POLYLINE].getDraggable()}},{key:"getEditable",value:function(){return this.state[J1.POLYLINE].getEditable()}},{key:"getPath",value:function(){return this.state[J1.POLYLINE].getPath()}},{key:"getVisible",value:function(){return this.state[J1.POLYLINE].getVisible()}}]),t}(Y1.default.PureComponent);e2.propTypes={defaultDraggable:K1.default.bool,defaultEditable:K1.default.bool,defaultOptions:K1.default.any,defaultPath:K1.default.any,defaultVisible:K1.default.bool,draggable:K1.default.bool,editable:K1.default.bool,options:K1.default.any,path:K1.default.any,visible:K1.default.bool,onDblClick:K1.default.func,onDragEnd:K1.default.func,onDragStart:K1.default.func,onMouseDown:K1.default.func,onMouseMove:K1.default.func,onMouseOut:K1.default.func,onMouseOver:K1.default.func,onMouseUp:K1.default.func,onRightClick:K1.default.func,onClick:K1.default.func,onDrag:K1.default.func},e2.contextTypes=(0,W1.default)({},J1.MAP,K1.default.object),V1.default=e2;var t2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},n2={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},o2={};Object.defineProperty(o2,"__esModule",{value:!0}),o2.Polygon=void 0;var r2=h2(TZ),i2=h2(PV.exports),a2=h2(IW),s2=h2($W),l2=h2(qW),c2=h2(CX),u2=h2(u.default),p2=h2(xe.exports),d2=EJ,f2=NZ;function h2(e){return e&&e.__esModule?e:{default:e}}var m2=o2.Polygon=function(e){function t(e,n){(0,a2.default)(this,t);var o=(0,l2.default)(this,(t.__proto__||(0,i2.default)(t)).call(this,e,n)),r=new google.maps.Polygon;return(0,d2.construct)(t.propTypes,g2,o.props,r),r.setMap(o.context[f2.MAP]),o.state=(0,r2.default)({},f2.POLYGON,r),o}return(0,c2.default)(t,e),(0,s2.default)(t,[{key:"componentDidMount",value:function(){(0,d2.componentDidMount)(this,this.state[f2.POLYGON],v2)}},{key:"componentDidUpdate",value:function(e){(0,d2.componentDidUpdate)(this,this.state[f2.POLYGON],v2,g2,e)}},{key:"componentWillUnmount",value:function(){(0,d2.componentWillUnmount)(this);var e=this.state[f2.POLYGON];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[f2.POLYGON].getDraggable()}},{key:"getEditable",value:function(){return this.state[f2.POLYGON].getEditable()}},{key:"getPath",value:function(){return this.state[f2.POLYGON].getPath()}},{key:"getPaths",value:function(){return this.state[f2.POLYGON].getPaths()}},{key:"getVisible",value:function(){return this.state[f2.POLYGON].getVisible()}}]),t}(u2.default.PureComponent);m2.propTypes={defaultDraggable:p2.default.bool,defaultEditable:p2.default.bool,defaultOptions:p2.default.any,defaultPath:p2.default.any,defaultPaths:p2.default.any,defaultVisible:p2.default.bool,draggable:p2.default.bool,editable:p2.default.bool,options:p2.default.any,path:p2.default.any,paths:p2.default.any,visible:p2.default.bool,onDblClick:p2.default.func,onDragEnd:p2.default.func,onDragStart:p2.default.func,onMouseDown:p2.default.func,onMouseMove:p2.default.func,onMouseOut:p2.default.func,onMouseOver:p2.default.func,onMouseUp:p2.default.func,onRightClick:p2.default.func,onClick:p2.default.func,onDrag:p2.default.func},m2.contextTypes=(0,r2.default)({},f2.MAP,p2.default.object),o2.default=m2;var v2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},g2={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}},x2={};Object.defineProperty(x2,"__esModule",{value:!0}),x2.Rectangle=void 0;var b2=j2(TZ),y2=j2(PV.exports),w2=j2(IW),C2=j2($W),E2=j2(qW),O2=j2(CX),D2=j2(u.default),S2=j2(xe.exports),k2=EJ,T2=NZ;function j2(e){return e&&e.__esModule?e:{default:e}}var M2=x2.Rectangle=function(e){function t(e,n){(0,w2.default)(this,t);var o=(0,E2.default)(this,(t.__proto__||(0,y2.default)(t)).call(this,e,n)),r=new google.maps.Rectangle;return(0,k2.construct)(t.propTypes,N2,o.props,r),r.setMap(o.context[T2.MAP]),o.state=(0,b2.default)({},T2.RECTANGLE,r),o}return(0,O2.default)(t,e),(0,C2.default)(t,[{key:"componentDidMount",value:function(){(0,k2.componentDidMount)(this,this.state[T2.RECTANGLE],A2)}},{key:"componentDidUpdate",value:function(e){(0,k2.componentDidUpdate)(this,this.state[T2.RECTANGLE],A2,N2,e)}},{key:"componentWillUnmount",value:function(){(0,k2.componentWillUnmount)(this);var e=this.state[T2.RECTANGLE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[T2.RECTANGLE].getBounds()}},{key:"getDraggable",value:function(){return this.state[T2.RECTANGLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[T2.RECTANGLE].getEditable()}},{key:"getVisible",value:function(){return this.state[T2.RECTANGLE].getVisible()}}]),t}(D2.default.PureComponent);M2.propTypes={defaultBounds:S2.default.any,defaultDraggable:S2.default.bool,defaultEditable:S2.default.bool,defaultOptions:S2.default.any,defaultVisible:S2.default.bool,bounds:S2.default.any,draggable:S2.default.bool,editable:S2.default.bool,options:S2.default.any,visible:S2.default.bool,onDblClick:S2.default.func,onDragEnd:S2.default.func,onDragStart:S2.default.func,onMouseDown:S2.default.func,onMouseMove:S2.default.func,onMouseOut:S2.default.func,onMouseOver:S2.default.func,onMouseUp:S2.default.func,onRightClick:S2.default.func,onBoundsChanged:S2.default.func,onClick:S2.default.func,onDrag:S2.default.func},M2.contextTypes=(0,b2.default)({},T2.MAP,S2.default.object),x2.default=M2;var A2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onBoundsChanged:"bounds_changed",onClick:"click",onDrag:"drag"},N2={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}},P2={};Object.defineProperty(P2,"__esModule",{value:!0}),P2.InfoWindow=void 0;var R2,B2=G2(TZ),F2=G2(PV.exports),_2=G2(IW),L2=G2($W),I2=G2(qW),$2=G2(CX),z2=G2(hK),V2=G2(mK),W2=G2(u.default),U2=G2(d.default),H2=G2(xe.exports),q2=EJ,X2=NZ;function G2(e){return e&&e.__esModule?e:{default:e}}var Y2=P2.InfoWindow=function(e){function t(e,n){(0,_2.default)(this,t);var o=(0,I2.default)(this,(t.__proto__||(0,F2.default)(t)).call(this,e,n)),r=new google.maps.InfoWindow;return(0,q2.construct)(t.propTypes,e3,o.props,r),r.setMap(o.context[X2.MAP]),o.state=(0,B2.default)({},X2.INFO_WINDOW,r),o}return(0,$2.default)(t,e),(0,L2.default)(t,[{key:"componentWillMount",value:function(){V2.default&&!this.containerElement&&W2.default.version.match(/^16/)&&(this.containerElement=document.createElement("div"))}},{key:"componentDidMount",value:function(){if((0,q2.componentDidMount)(this,this.state[X2.INFO_WINDOW],Q2),W2.default.version.match(/^16/))return this.state[X2.INFO_WINDOW].setContent(this.containerElement),void J2(this.state[X2.INFO_WINDOW],this.context[X2.ANCHOR]);var e=document.createElement("div");U2.default.unstable_renderSubtreeIntoContainer(this,W2.default.Children.only(this.props.children),e),this.state[X2.INFO_WINDOW].setContent(e),J2(this.state[X2.INFO_WINDOW],this.context[X2.ANCHOR])}},{key:"componentDidUpdate",value:function(e){(0,q2.componentDidUpdate)(this,this.state[X2.INFO_WINDOW],Q2,e3,e),W2.default.version.match(/^16/)||this.props.children!==e.children&&U2.default.unstable_renderSubtreeIntoContainer(this,W2.default.Children.only(this.props.children),this.state[X2.INFO_WINDOW].getContent())}},{key:"componentWillUnmount",value:function(){(0,q2.componentWillUnmount)(this);var e=this.state[X2.INFO_WINDOW];e&&(!W2.default.version.match(/^16/)&&e.getContent()&&U2.default.unmountComponentAtNode(e.getContent()),e.setMap(null))}},{key:"render",value:function(){return!!W2.default.version.match(/^16/)&&U2.default.createPortal(W2.default.Children.only(this.props.children),this.containerElement)}},{key:"getPosition",value:function(){return this.state[X2.INFO_WINDOW].getPosition()}},{key:"getZIndex",value:function(){return this.state[X2.INFO_WINDOW].getZIndex()}}]),t}(W2.default.PureComponent);Y2.propTypes={defaultOptions:H2.default.any,defaultPosition:H2.default.any,defaultZIndex:H2.default.number,options:H2.default.any,position:H2.default.any,zIndex:H2.default.number,onCloseClick:H2.default.func,onDomReady:H2.default.func,onContentChanged:H2.default.func,onPositionChanged:H2.default.func,onZindexChanged:H2.default.func},Y2.contextTypes=(R2={},(0,B2.default)(R2,X2.MAP,H2.default.object),(0,B2.default)(R2,X2.ANCHOR,H2.default.object),R2),P2.default=Y2;var K2,Z2,J2=function(e,t){t?e.open(e.getMap(),t):e.getPosition()?e.open(e.getMap()):(0,z2.default)(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},Q2={onCloseClick:"closeclick",onDomReady:"domready",onContentChanged:"content_changed",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},e3={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}},t3={},n3={},o3={exports:{}};var r3=NW;r3(r3.S+r3.F,"Object",{assign:function(){if(Z2)return K2;Z2=1;var e=fW,t=jU,n=VH,o=WH,r=FV,i=lU,a=Object.assign;return K2=!a||dW((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=o}))?function(a,s){for(var l=r(a),c=arguments.length,u=1,p=n.f,d=o.f;c>u;)for(var f,h=i(arguments[u++]),m=p?t(h).concat(p(h)):t(h),v=m.length,g=0;v>g;)f=m[g++],e&&!d.call(h,f)||(l[f]=h[f]);return l}:a,K2}()});var i3=$V.exports.Object.assign;o3.exports={default:i3,__esModule:!0},n3.__esModule=!0;var a3=function(e){return e&&e.__esModule?e:{default:e}}(o3.exports);n3.default=a3.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var s3=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)},l3=s3,c3=sj,u3=YX((function(e,t,n){return l3(e,c3(t)||0,n)})),p3=u3,d3=IX;var f3=function(e,t,n){"__proto__"==t&&d3?d3(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},h3=f3,m3=BF,v3=Object.prototype.hasOwnProperty;var g3=function(e,t,n){var o=e[t];v3.call(e,t)&&m3(o,n)&&(void 0!==n||t in e)||h3(e,t,n)},x3=g3,b3=f3;var y3=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?b3(n,s,l):x3(n,s,l)}return n},w3=BF,C3=FI,E3=iI,O3=ST;var D3=function(e,t,n){if(!O3(n))return!1;var o=typeof t;return!!("number"==o?C3(n)&&E3(t,n.length):"string"==o&&t in n)&&w3(n[t],e)},S3=YX,k3=D3;var T3=function(e){return S3((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&k3(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o<r;){var s=n[o];s&&e(t,s,o,i)}return t}))},j3=g3,M3=y3,A3=T3,N3=FI,P3=TI,R3=$I,B3=Object.prototype.hasOwnProperty,F3=A3((function(e,t){if(P3(t)||N3(t))M3(t,R3(t),e);else for(var n in t)B3.call(t,n)&&j3(e,n,t[n])})),_3={};Object.defineProperty(_3,"__esModule",{value:!0});var L3=function(e){return e&&e.__esModule?e:{default:e}}(a_);function I3(e,t){return new t(e.lat,e.lng)}function $3(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function z3(e,t,n){return e instanceof t?e:n(e,t)}_3.getOffsetOverride=function(e,t){var n=t.getPixelPositionOffset;return(0,L3.default)(n)?n(e.offsetWidth,e.offsetHeight):{}},_3.getLayoutStyles=function(e,t,n){if(n.bounds){var o=z3(n.bounds,google.maps.LatLngBounds,$3);return function(e,t,n){var o=e.fromLatLngToDivPixel(n.getNorthEast()),r=e.fromLatLngToDivPixel(n.getSouthWest());if(o&&r)return{left:r.x+t.x+"px",top:o.y+t.y+"px",width:o.x-r.x-t.x+"px",height:r.y-o.y-t.y+"px"};return{left:"-9999px",top:"-9999px"}}(e,t,o)}var r=z3(n.position,google.maps.LatLng,I3);return function(e,t,n){var o=e.fromLatLngToDivPixel(n);if(o){var r=o.x,i=o.y;return{left:r+t.x+"px",top:i+t.y+"px"}}return{left:"-9999px",top:"-9999px"}}(e,t,r)},Object.defineProperty(t3,"__esModule",{value:!0}),t3.OverlayView=void 0;var V3,W3=a5(n3),U3=a5(TZ),H3=a5(PV.exports),q3=a5(IW),X3=a5($W),G3=a5(qW),Y3=a5(CX),K3=a5(p3),Z3=a5(F3),J3=a5(dK),Q3=a5(hK),e5=a5(u.default),t5=a5(d.default),n5=a5(xe.exports),o5=EJ,r5=_3,i5=NZ;function a5(e){return e&&e.__esModule?e:{default:e}}var s5=t3.OverlayView=function(e){function t(e,n){(0,q3.default)(this,t);var o=(0,G3.default)(this,(t.__proto__||(0,H3.default)(t)).call(this,e,n)),r=new google.maps.OverlayView;return r.onAdd=(0,J3.default)(o.onAdd,o),r.draw=(0,J3.default)(o.draw,o),r.onRemove=(0,J3.default)(o.onRemove,o),o.onPositionElement=(0,J3.default)(o.onPositionElement,o),r.setMap(o.context[i5.MAP]),o.state=(0,U3.default)({},i5.OVERLAY_VIEW,r),o}return(0,Y3.default)(t,e),(0,X3.default)(t,[{key:"onAdd",value:function(){this.containerElement=document.createElement("div"),this.containerElement.style.position="absolute"}},{key:"draw",value:function(){var e=this.props.mapPaneName;(0,Q3.default)(!!e,"OverlayView requires either props.mapPaneName or props.defaultMapPaneName but got %s",e),this.state[i5.OVERLAY_VIEW].getPanes()[e].appendChild(this.containerElement),t5.default.unstable_renderSubtreeIntoContainer(this,e5.default.Children.only(this.props.children),this.containerElement,this.onPositionElement)}},{key:"onPositionElement",value:function(){var e=this.state[i5.OVERLAY_VIEW].getProjection(),t=(0,W3.default)({x:0,y:0},(0,r5.getOffsetOverride)(this.containerElement,this.props)),n=(0,r5.getLayoutStyles)(e,t,this.props);(0,Z3.default)(this.containerElement.style,n)}},{key:"onRemove",value:function(){this.containerElement.parentNode.removeChild(this.containerElement),t5.default.unmountComponentAtNode(this.containerElement),this.containerElement=null}},{key:"componentDidMount",value:function(){(0,o5.componentDidMount)(this,this.state[i5.OVERLAY_VIEW],l5)}},{key:"componentDidUpdate",value:function(e){(0,o5.componentDidUpdate)(this,this.state[i5.OVERLAY_VIEW],l5,c5,e),(0,K3.default)(this.state[i5.OVERLAY_VIEW].draw)}},{key:"componentWillUnmount",value:function(){(0,o5.componentWillUnmount)(this);var e=this.state[i5.OVERLAY_VIEW];e&&(e.setMap(null),e.onAdd=null,e.draw=null,e.onRemove=null)}},{key:"render",value:function(){return!1}},{key:"getPanes",value:function(){return this.state[i5.OVERLAY_VIEW].getPanes()}},{key:"getProjection",value:function(){return this.state[i5.OVERLAY_VIEW].getProjection()}}]),t}(e5.default.PureComponent);s5.FLOAT_PANE="floatPane",s5.MAP_PANE="mapPane",s5.MARKER_LAYER="markerLayer",s5.OVERLAY_LAYER="overlayLayer",s5.OVERLAY_MOUSE_TARGET="overlayMouseTarget",s5.propTypes={mapPaneName:n5.default.string,position:n5.default.object,bounds:n5.default.object,children:n5.default.node.isRequired,getPixelPositionOffset:n5.default.func},s5.contextTypes=(V3={},(0,U3.default)(V3,i5.MAP,n5.default.object),(0,U3.default)(V3,i5.ANCHOR,n5.default.object),V3),t3.default=s5;var l5={},c5={},u5={};Object.defineProperty(u5,"__esModule",{value:!0}),u5.GroundOverlay=void 0;var p5=C5(TZ),d5=C5(PV.exports),f5=C5(IW),h5=C5($W),m5=C5(qW),v5=C5(CX),g5=C5(AZ),x5=C5(u.default),b5=C5(xe.exports),y5=EJ,w5=NZ;function C5(e){return e&&e.__esModule?e:{default:e}}var E5=u5.GroundOverlay=function(e){function t(e,n){(0,f5.default)(this,t);var o=(0,m5.default)(this,(t.__proto__||(0,d5.default)(t)).call(this,e,n));(0,g5.default)(!e.url||!e.bounds,"\nFor GroundOveray, url and bounds are passed in to constructor and are immutable\n after iinstantiated. This is the behavior of Google Maps JavaScript API v3 (\n See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay)\n Hence, use the corresponding two props provided by `react-google-maps`.\n They're prefixed with _default_ (defaultUrl, defaultBounds).\n\n In some cases, you'll need the GroundOverlay component to reflect the changes\n of url and bounds. You can leverage the React's key property to remount the\n component. Typically, just `key={url}` would serve your need.\n See https://github.com/tomchentw/react-google-maps/issues/655\n");var r=new google.maps.GroundOverlay(e.defaultUrl||e.url,e.defaultBounds||e.bounds);return(0,y5.construct)(t.propTypes,D5,o.props,r),r.setMap(o.context[w5.MAP]),o.state=(0,p5.default)({},w5.GROUND_LAYER,r),o}return(0,v5.default)(t,e),(0,h5.default)(t,[{key:"componentDidMount",value:function(){(0,y5.componentDidMount)(this,this.state[w5.GROUND_LAYER],O5)}},{key:"componentDidUpdate",value:function(e){(0,y5.componentDidUpdate)(this,this.state[w5.GROUND_LAYER],O5,D5,e)}},{key:"componentWillUnmount",value:function(){(0,y5.componentWillUnmount)(this);var e=this.state[w5.GROUND_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[w5.GROUND_LAYER].getBounds()}},{key:"getOpacity",value:function(){return this.state[w5.GROUND_LAYER].getOpacity()}},{key:"getUrl",value:function(){return this.state[w5.GROUND_LAYER].getUrl()}}]),t}(x5.default.PureComponent);E5.propTypes={defaultUrl:b5.default.string,defaultBounds:b5.default.object,url:b5.default.string,bounds:b5.default.object,defaultOpacity:b5.default.number,opacity:b5.default.number,onDblClick:b5.default.func,onClick:b5.default.func},E5.contextTypes=(0,p5.default)({},w5.MAP,b5.default.object),u5.default=E5;var O5={onDblClick:"dblclick",onClick:"click"},D5={opacity:function(e,t){e.setOpacity(t)}},S5={};Object.defineProperty(S5,"__esModule",{value:!0}),S5.DirectionsRenderer=void 0;var k5=_5(TZ),T5=_5(PV.exports),j5=_5(IW),M5=_5($W),A5=_5(qW),N5=_5(CX),P5=_5(u.default),R5=_5(xe.exports),B5=EJ,F5=NZ;function _5(e){return e&&e.__esModule?e:{default:e}}var L5=S5.DirectionsRenderer=function(e){function t(e,n){(0,j5.default)(this,t);var o=(0,A5.default)(this,(t.__proto__||(0,T5.default)(t)).call(this,e,n)),r=new google.maps.DirectionsRenderer;return(0,B5.construct)(t.propTypes,$5,o.props,r),r.setMap(o.context[F5.MAP]),o.state=(0,k5.default)({},F5.DIRECTIONS_RENDERER,r),o}return(0,N5.default)(t,e),(0,M5.default)(t,[{key:"componentDidMount",value:function(){(0,B5.componentDidMount)(this,this.state[F5.DIRECTIONS_RENDERER],I5)}},{key:"componentDidUpdate",value:function(e){(0,B5.componentDidUpdate)(this,this.state[F5.DIRECTIONS_RENDERER],I5,$5,e)}},{key:"componentWillUnmount",value:function(){(0,B5.componentWillUnmount)(this);var e=this.state[F5.DIRECTIONS_RENDERER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDirections",value:function(){return this.state[F5.DIRECTIONS_RENDERER].getDirections()}},{key:"getPanel",value:function(){return this.state[F5.DIRECTIONS_RENDERER].getPanel()}},{key:"getRouteIndex",value:function(){return this.state[F5.DIRECTIONS_RENDERER].getRouteIndex()}}]),t}(P5.default.PureComponent);L5.propTypes={defaultDirections:R5.default.any,defaultOptions:R5.default.any,defaultPanel:R5.default.any,defaultRouteIndex:R5.default.number,directions:R5.default.any,options:R5.default.any,panel:R5.default.any,routeIndex:R5.default.number,onDirectionsChanged:R5.default.func},L5.contextTypes=(0,k5.default)({},F5.MAP,R5.default.object),S5.default=L5;var I5={onDirectionsChanged:"directions_changed"},$5={directions:function(e,t){e.setDirections(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}},z5={};Object.defineProperty(z5,"__esModule",{value:!0}),z5.FusionTablesLayer=void 0;var V5=J5(TZ),W5=J5(PV.exports),U5=J5(IW),H5=J5($W),q5=J5(qW),X5=J5(CX),G5=J5(u.default),Y5=J5(xe.exports),K5=EJ,Z5=NZ;function J5(e){return e&&e.__esModule?e:{default:e}}var Q5=z5.FusionTablesLayer=function(e){function t(e,n){(0,U5.default)(this,t);var o=(0,q5.default)(this,(t.__proto__||(0,W5.default)(t)).call(this,e,n)),r=new google.maps.FusionTablesLayer;return(0,K5.construct)(t.propTypes,t4,o.props,r),r.setMap(o.context[Z5.MAP]),o.state=(0,V5.default)({},Z5.FUSION_TABLES_LAYER,r),o}return(0,X5.default)(t,e),(0,H5.default)(t,[{key:"componentDidMount",value:function(){(0,K5.componentDidMount)(this,this.state[Z5.FUSION_TABLES_LAYER],e4)}},{key:"componentDidUpdate",value:function(e){(0,K5.componentDidUpdate)(this,this.state[Z5.FUSION_TABLES_LAYER],e4,t4,e)}},{key:"componentWillUnmount",value:function(){(0,K5.componentWillUnmount)(this);var e=this.state[Z5.FUSION_TABLES_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(G5.default.PureComponent);Q5.propTypes={defaultOptions:Y5.default.any,options:Y5.default.any,onClick:Y5.default.func},Q5.contextTypes=(0,V5.default)({},Z5.MAP,Y5.default.object),z5.default=Q5;var e4={onClick:"click"},t4={options:function(e,t){e.setOptions(t)}},n4={};Object.defineProperty(n4,"__esModule",{value:!0}),n4.KmlLayer=void 0;var o4=f4(TZ),r4=f4(PV.exports),i4=f4(IW),a4=f4($W),s4=f4(qW),l4=f4(CX),c4=f4(u.default),u4=f4(xe.exports),p4=EJ,d4=NZ;function f4(e){return e&&e.__esModule?e:{default:e}}var h4=n4.KmlLayer=function(e){function t(e,n){(0,i4.default)(this,t);var o=(0,s4.default)(this,(t.__proto__||(0,r4.default)(t)).call(this,e,n)),r=new google.maps.KmlLayer;return(0,p4.construct)(t.propTypes,v4,o.props,r),r.setMap(o.context[d4.MAP]),o.state=(0,o4.default)({},d4.KML_LAYER,r),o}return(0,l4.default)(t,e),(0,a4.default)(t,[{key:"componentDidMount",value:function(){(0,p4.componentDidMount)(this,this.state[d4.KML_LAYER],m4)}},{key:"componentDidUpdate",value:function(e){(0,p4.componentDidUpdate)(this,this.state[d4.KML_LAYER],m4,v4,e)}},{key:"componentWillUnmount",value:function(){(0,p4.componentWillUnmount)(this);var e=this.state[d4.KML_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDefaultViewport",value:function(){return this.state[d4.KML_LAYER].getDefaultViewport()}},{key:"getMetadata",value:function(){return this.state[d4.KML_LAYER].getMetadata()}},{key:"getStatus",value:function(){return this.state[d4.KML_LAYER].getStatus()}},{key:"getUrl",value:function(){return this.state[d4.KML_LAYER].getUrl()}},{key:"getZIndex",value:function(){return this.state[d4.KML_LAYER].getZIndex()}}]),t}(c4.default.PureComponent);h4.propTypes={defaultOptions:u4.default.any,defaultUrl:u4.default.string,defaultZIndex:u4.default.number,options:u4.default.any,url:u4.default.string,zIndex:u4.default.number,onDefaultViewportChanged:u4.default.func,onClick:u4.default.func,onStatusChanged:u4.default.func},h4.contextTypes=(0,o4.default)({},d4.MAP,u4.default.object),n4.default=h4;var m4={onDefaultViewportChanged:"defaultviewport_changed",onClick:"click",onStatusChanged:"status_changed"},v4={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}},g4={};Object.defineProperty(g4,"__esModule",{value:!0}),g4.TrafficLayer=void 0;var x4=T4(TZ),b4=T4(PV.exports),y4=T4(IW),w4=T4($W),C4=T4(qW),E4=T4(CX),O4=T4(u.default),D4=T4(xe.exports),S4=EJ,k4=NZ;function T4(e){return e&&e.__esModule?e:{default:e}}var j4=g4.TrafficLayer=function(e){function t(e,n){(0,y4.default)(this,t);var o=(0,C4.default)(this,(t.__proto__||(0,b4.default)(t)).call(this,e,n)),r=new google.maps.TrafficLayer;return(0,S4.construct)(t.propTypes,A4,o.props,r),r.setMap(o.context[k4.MAP]),o.state=(0,x4.default)({},k4.TRAFFIC_LAYER,r),o}return(0,E4.default)(t,e),(0,w4.default)(t,[{key:"componentDidMount",value:function(){(0,S4.componentDidMount)(this,this.state[k4.TRAFFIC_LAYER],M4)}},{key:"componentDidUpdate",value:function(e){(0,S4.componentDidUpdate)(this,this.state[k4.TRAFFIC_LAYER],M4,A4,e)}},{key:"componentWillUnmount",value:function(){(0,S4.componentWillUnmount)(this);var e=this.state[k4.TRAFFIC_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(O4.default.PureComponent);j4.propTypes={defaultOptions:D4.default.any,options:D4.default.any},j4.contextTypes=(0,x4.default)({},k4.MAP,D4.default.object),g4.default=j4;var M4={},A4={options:function(e,t){e.setOptions(t)}},N4={};Object.defineProperty(N4,"__esModule",{value:!0}),N4.StreetViewPanorama=void 0;var P4=U4(TZ),R4=U4(PV.exports),B4=U4(IW),F4=U4($W),_4=U4(qW),L4=U4(CX),I4=U4(hK),$4=U4(u.default),z4=U4(xe.exports),V4=EJ,W4=NZ;function U4(e){return e&&e.__esModule?e:{default:e}}var H4=N4.StreetViewPanorama=function(e){function t(e,n){(0,B4.default)(this,t);var o=(0,_4.default)(this,(t.__proto__||(0,R4.default)(t)).call(this,e,n));return(0,I4.default)(!!o.context[W4.MAP],"Did you render <StreetViewPanorama> as a child of <GoogleMap> with withGoogleMap() HOC?"),(0,V4.construct)(t.propTypes,X4,o.props,o.context[W4.MAP].getStreetView()),o}return(0,L4.default)(t,e),(0,F4.default)(t,[{key:"getChildContext",value:function(){return(0,P4.default)({},W4.MAP,this.context[W4.MAP].getStreetView())}},{key:"componentDidMount",value:function(){(0,V4.componentDidMount)(this,this.context[W4.MAP].getStreetView(),q4)}},{key:"componentDidUpdate",value:function(e){(0,V4.componentDidUpdate)(this,this.context[W4.MAP].getStreetView(),q4,X4,e)}},{key:"componentWillUnmount",value:function(){(0,V4.componentWillUnmount)(this);var e=this.context[W4.MAP].getStreetView();e&&e.setVisible(!1)}},{key:"render",value:function(){var e=this.props.children;return $4.default.createElement("div",null,e)}},{key:"getLinks",value:function(){return this.context[W4.MAP].getLinks()}},{key:"getLocation",value:function(){return this.context[W4.MAP].getLocation()}},{key:"getMotionTracking",value:function(){return this.context[W4.MAP].getMotionTracking()}},{key:"getPano",value:function(){return this.context[W4.MAP].getPano()}},{key:"getPhotographerPov",value:function(){return this.context[W4.MAP].getPhotographerPov()}},{key:"getPosition",value:function(){return this.context[W4.MAP].getPosition()}},{key:"getPov",value:function(){return this.context[W4.MAP].getPov()}},{key:"getStatus",value:function(){return this.context[W4.MAP].getStatus()}},{key:"getVisible",value:function(){return this.context[W4.MAP].getVisible()}},{key:"getZoom",value:function(){return this.context[W4.MAP].getZoom()}}]),t}($4.default.PureComponent);H4.propTypes={defaultLinks:z4.default.any,defaultMotionTracking:z4.default.bool,defaultOptions:z4.default.any,defaultPano:z4.default.string,defaultPosition:z4.default.any,defaultPov:z4.default.any,defaultVisible:z4.default.bool,defaultZoom:z4.default.number,links:z4.default.any,motionTracking:z4.default.bool,options:z4.default.any,pano:z4.default.string,position:z4.default.any,pov:z4.default.any,visible:z4.default.bool,zoom:z4.default.number,onCloseClick:z4.default.func,onPanoChanged:z4.default.func,onPositionChanged:z4.default.func,onPovChanged:z4.default.func,onResize:z4.default.func,onStatusChanged:z4.default.func,onVisibleChanged:z4.default.func,onZoomChanged:z4.default.func},H4.contextTypes=(0,P4.default)({},W4.MAP,z4.default.object),H4.childContextTypes=(0,P4.default)({},W4.MAP,z4.default.object),N4.default=H4;var q4={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},X4={links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}},G4={};Object.defineProperty(G4,"__esModule",{value:!0}),G4.BicyclingLayer=void 0;var Y4=i6(TZ),K4=i6(PV.exports),Z4=i6(IW),J4=i6($W),Q4=i6(qW),e6=i6(CX),t6=i6(u.default),n6=i6(xe.exports),o6=EJ,r6=NZ;function i6(e){return e&&e.__esModule?e:{default:e}}var a6=G4.BicyclingLayer=function(e){function t(e,n){(0,Z4.default)(this,t);var o=(0,Q4.default)(this,(t.__proto__||(0,K4.default)(t)).call(this,e,n)),r=new google.maps.BicyclingLayer;return(0,o6.construct)(t.propTypes,l6,o.props,r),r.setMap(o.context[r6.MAP]),o.state=(0,Y4.default)({},r6.BICYCLING_LAYER,r),o}return(0,e6.default)(t,e),(0,J4.default)(t,[{key:"componentDidMount",value:function(){(0,o6.componentDidMount)(this,this.state[r6.BICYCLING_LAYER],s6)}},{key:"componentDidUpdate",value:function(e){(0,o6.componentDidUpdate)(this,this.state[r6.BICYCLING_LAYER],s6,l6,e)}},{key:"componentWillUnmount",value:function(){(0,o6.componentWillUnmount)(this);var e=this.state[r6.BICYCLING_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(t6.default.PureComponent);a6.propTypes={},a6.contextTypes=(0,Y4.default)({},r6.MAP,n6.default.object),G4.default=a6;var s6={},l6={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=AV;Object.defineProperty(e,"withScriptjs",{enumerable:!0,get:function(){return x(t).default}});var n=kZ;Object.defineProperty(e,"withGoogleMap",{enumerable:!0,get:function(){return x(n).default}});var o=ZZ;Object.defineProperty(e,"GoogleMap",{enumerable:!0,get:function(){return x(o).default}});var r=p1;Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return x(r).default}});var i=S1;Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return x(i).default}});var a=V1;Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return x(a).default}});var s=o2;Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return x(s).default}});var l=x2;Object.defineProperty(e,"Rectangle",{enumerable:!0,get:function(){return x(l).default}});var c=P2;Object.defineProperty(e,"InfoWindow",{enumerable:!0,get:function(){return x(c).default}});var u=t3;Object.defineProperty(e,"OverlayView",{enumerable:!0,get:function(){return x(u).default}});var p=u5;Object.defineProperty(e,"GroundOverlay",{enumerable:!0,get:function(){return x(p).default}});var d=S5;Object.defineProperty(e,"DirectionsRenderer",{enumerable:!0,get:function(){return x(d).default}});var f=z5;Object.defineProperty(e,"FusionTablesLayer",{enumerable:!0,get:function(){return x(f).default}});var h=n4;Object.defineProperty(e,"KmlLayer",{enumerable:!0,get:function(){return x(h).default}});var m=g4;Object.defineProperty(e,"TrafficLayer",{enumerable:!0,get:function(){return x(m).default}});var v=N4;Object.defineProperty(e,"StreetViewPanorama",{enumerable:!0,get:function(){return x(v).default}});var g=G4;function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"BicyclingLayer",{enumerable:!0,get:function(){return x(g).default}})}(MV);var c6,u6,p6,d6,f6,h6,m6,v6,g6,x6,b6,y6,w6,C6,E6,O6,D6,S6,k6,T6,j6,M6,A6,N6,P6,R6,B6,F6,_6,L6,I6,$6,z6,V6,W6,U6,H6,q6,X6,G6=MV.withScriptjs(MV.withGoogleMap((function(e){var n=e.position;return t.jsx(t.Fragment,{children:t.jsx(MV.GoogleMap,{defaultZoom:8,defaultCenter:n})})}))),Y6=function(t){var n=t.isError,o=t.disabled,r=t.internalConfig||{},i=r.selectedRadioOptionBackgroundColor,a=void 0===i?"transparent":i,s=r.selectedRadioOptionIndicatorColor,l=void 0===s?"primary":s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=r.buttonPadding,f=void 0===d?0:d,h=r.radioGroupWrapperStyles,m=r.buttonOptionSpacing,v=void 0===m?"XS":m,g=e.css(u6||(u6=x(["\n ","\n\n ","\n "],["\n ","\n\n ","\n "])),p&&e.css(c6||(c6=x(["\n padding: ","px;\n "],["\n padding: ","px;\n "])),p),c),b=e.css(d6||(d6=x(["\n ","\n ","\n "],["\n ","\n ","\n "])),(function(t){var n=t.theme.colors;return e.css(p6||(p6=x(["\n &.Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n "],["\n &.Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n "])),n[l]||l,n[a]||a)}),c),y=e.css(f6||(f6=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),f,c,u),w=e.css(m6||(m6=x(["\n ","\n ","\n "],["\n ","\n ","\n "])),(function(t){var n=t.theme.sizes;return e.css(h6||(h6=x(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n[v])}),h);return{textStyles:g,groupWrapperStyles:w,radioIconWrapperStyles:b,radioLabelWrapperStyles:y,textColor:n?"red":o?"gray3":"gray1"}},K6=l.default(vm)(g6||(g6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.$isError,r=t.$styles;return e.css(v6||(v6=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o?n.red:n.gray1,r)})),Z6=l.default(jb)(C6||(C6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.$disabled,r=t.$isError,i=t.$styles,a=t.$isEditMode;return e.css(w6||(w6=x(["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "],["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "])),n.gray3,a?"pointer":"default",a?n.gray2:n.gray3,!a&&e.css(x6||(x6=x(["\n background-color: transparent;\n "],["\n background-color: transparent;\n "]))),n.gray3,o&&e.css(b6||(b6=x(["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "],["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "])),n.gray4,n.gray4),r&&e.css(y6||(y6=x(["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "],["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "])),n.red,n.red),i)})),J6=function(e){var n=e.option,o=e.isError,r=void 0!==o&&o,i=e.disabled,a=void 0!==i&&i,s=e.isEditMode,l=e.isRichText,c=void 0===l||l,u=e.internalConfig,p=Y6({isError:r,disabled:a,internalConfig:u}),d=p.textStyles,h=p.radioIconWrapperStyles,m=p.radioLabelWrapperStyles,v=p.textColor,g=n.id,x=n.label;return t.jsx(t.Fragment,{children:t.jsx(K6,{value:g,$isError:r,$styles:m,label:c?t.jsx(AP,{extraTextProps:{behaveAs:a?"text":"button"},textStyles:d,color:v,value:x,font:"M"}):t.jsx(RP,f({styles:d,behaveAs:a?"text":"button",color:v,variant:"M"},{children:x})),control:t.jsx(Z6,{disableRipple:!s,$disabled:a,$isError:r,$isEditMode:s,$styles:h})})})},Q6=function(e){var n=e.ref,o=e.name,r=e.value,i=e.options,a=e.onBlur,s=e.onChange,l=e.isRow,c=void 0!==l&&l,u=e.isError,p=void 0!==u&&u,d=e.disabled,h=void 0!==d&&d,m=e.isEditMode,v=void 0===m||m,g=e.isRichText,x=void 0===g||g,b=e.internalConfig,y=Y6({internalConfig:b}).groupWrapperStyles;return t.jsx(e8,f({ref:n,row:c,$isRow:c,name:o,value:r,onBlur:a,onChange:function(e){v&&(null==s||s(e.target.value))},$styles:y},{children:null==i?void 0:i.map((function(e){return t.jsx(J6,{option:e,isError:p,disabled:h,isRichText:x,isEditMode:v,internalConfig:b},e.id)}))}))},e8=l.default(Ab)(O6||(O6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.$styles,o=t.$isRow;return e.css(E6||(E6=x(["\n justify-content: ",";\n ",";\n "],["\n justify-content: ",";\n ",";\n "])),o?"space-between":"flex-start",n)})),t8={link:{fontColor:S.colors.blueShade,backgroundColor:S.colors.blueTint},message:{fontColor:S.colors.yellowShade,backgroundColor:S.colors.yellowTint}},n8=e.css(D6||(D6=x(["\n text-decoration-line: none;\n"],["\n text-decoration-line: none;\n"]))),o8=function(e){var n=e.index,o=e.type;return t.jsx(r8,f({component:"span",backgroundColor:t8[o].backgroundColor},{children:t.jsx(RP,f({styles:n8,variant:"M",color:t8[o].fontColor},{children:n}))}))},r8=l.default(bd)(k6||(k6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.backgroundColor;return e.css(S6||(S6=x(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "],["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "])),o,n.L,n.L)})),i8=l.default.span(T6||(T6=x(["\n display: inline-flex;\n gap: 2px;\n"],["\n display: inline-flex;\n gap: 2px;\n"]))),a8=function(n){var o=n.activeColor,r=n.inactiveColor,i=h(n,["activeColor","inactiveColor"]),a=(e.useTheme()||S).colors;return t.jsx(s8,f({},i,{activeColor:a[o]||o,inactiveColor:a[r]||r}))},s8=l.default.span(M6||(M6=x(["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"],["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.active,a=t.activeColor,s=t.inactiveColor;return e.css(j6||(j6=x(["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "],["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "])),r.XS,i?"1px solid ".concat(a||o.white):"none",i?a||o.white:s||o.gray3,i?"inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(0, 0, 0, 0.05)":"unset")})),l8={ArrowRight:FD,Bell:kD,Bookmark:hD,CaretDown:mD,CaretLeft:gD,CaretRight:xD,CaretUp:vD,Check:bD,Close:CD,Edit:AD,Filter:wD,Hide:OD,Info:yD,InfoBoxIcon:DD,Mail:MD,Menu:PD,Minus:SD,Mobile:jD,Play:RD,Save:ND,Search:BD,View:ED,Warning:TD},c8=function(n){var o=n.name,r=n.color,i=n.onClick,a=n.disabled,s=n.activeOpacity,l=n.withoutOpacityEffect,c=h(n,["name","color","onClick","disabled","activeOpacity","withoutOpacityEffect"]),u=(e.useTheme()||S).colors,p=l8[o];return t.jsx(w,f({onClick:i,disabled:a,activeOpacity:s,withoutOpacityEffect:l},{children:t.jsx(p,f({},c,{color:u[r]||r}))}))},u8=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="light");var o=S.colors;return t&&e?o[e]||e:t?"dark"===n?o.gray2:o.gray4:"transparent"},p8=l.default(RP)(P6||(P6=x(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.tabTheme,s=t.textSize,l=t.defaultTabTextColor,c=void 0===l?"gray2":l,u=t.tabPadding,p=void 0===u?0:u,d=t.tabFont,f=void 0===d?"L":d,h=o[c]||c;return e.css(N6||(N6=x(["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "])),h||("dark"===a?o.gray3:o.gray2),r[p]||p,s?e.css(A6||(A6=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),s):i[f],h||("dark"===a?o.white:o.gray1))})),d8=l.default.div(_6||(_6=x(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"])),(function(t){var n=t.theme.colors,o=t.isActive,r=t.disabled,i=t.tabTheme,a=t.selectedTabTextColor,s=t.styles;if(r)return e.css(R6||(R6=x(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),p8,"dark"===i?n.gray2:n.gray3);if(o){var l=n[a]||a;return e.css(B6||(B6=x(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),p8,l||("dark"===i?n.white:n.gray1))}return e.css(F6||(F6=x(["\n ","\n "],["\n ","\n "])),s)})),f8=l.default.div(I6||(I6=x(["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(t){var n=t.isActive,o=t.disabled,r=t.tabTheme,i=t.defaultTabTextColor,a=void 0===i?"gray2":i;return e.css(L6||(L6=x(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),n?"rotate(180deg)":"rotate(0deg)",function(e,t,n){void 0===e&&(e="gray1"),void 0===t&&(t="light"),void 0===n&&(n=!1);var o=S.colors;return"dark"===t?n?o.gray2:o.gray3:n?o.gray3:o[e]||e}(a,r,o))})),h8=function(n){var o=n.isRichText,r=void 0!==o&&o,i=n.variant,a=void 0===i?"base":i,s=n.text,l=void 0===s?"":s,c=n.seoTag,u=void 0===c?"h6":c,p=n.fontVariant,d=void 0===p?"L":p,m=n.textColor,v=n.textSize,g=n.fontWeight,b=n.lineHeight,y=n.letterSpacing,w=n.styles,C=n.textAlign,E=n.htmlElementId,O=h(n,["isRichText","variant","text","seoTag","fontVariant","textColor","textSize","fontWeight","lineHeight","letterSpacing","styles","textAlign","htmlElementId"]),D=e.css($6||($6=x(["\n ",";\n ",";\n ",";\n ",";\n ","\n "],["\n ",";\n ",";\n ",";\n ",";\n ","\n "])),v?"font-size: ".concat(v,"px;"):"",g?"font-weight: ".concat(g,";"):"",b?"line-height: ".concat(b,"px;"):"",y?"letter-spacing: ".concat(y,"px;"):"",w),S=f({variant:d,color:m,styles:"custom"===a?D:void 0,seoTag:u,textAlign:C},O);return r?t.jsx(AP,{htmlElementId:E,value:l,extraTextProps:S}):t.jsx(RP,f({},S,{htmlElementId:E},{children:l}))},m8={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"red"}},v8=function(n){var o=n.label,r=void 0===o?"":o,i=n.isTooltipVisible,a=n.isError,s=n.ruleLabel,l=n.tooltipText,c=n.labelInternalConfig,u=n.ruleLabelInternalConfig,p=n.tooltipInternalConfig,d=n.isRichText,h=void 0!==d&&d,m=e.useTheme().colors,v=c||{},g=v.color,b=v.fontSize,y=v.fontVariant,w=void 0===y?"S":y,C=v.fontWeight,E=v.padding,O=v.styles,D=v.wrapperStyles,S=e.css(W6||(W6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),E?"padding: ".concat(E,";"):"",O),k=m[g]||g,T=u||{},j=T.fontSize,M=T.optionalTextColor,A=T.padding,N=T.requiredTextColor,P=T.styles,R=e.css(U6||(U6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),A?"padding: ".concat(A,";"):"",P),B=s?m8[s]:void 0,F="OPTIONAL"===s?M:N,_=m[F]||F||B&&m[B.color],L=function(t){var n=t||{},o=n.backgroundColor,r=n.color,i=n.fontSize,a=n.fontVariant,s=n.fontWeight,l=n.padding,c=n.styles,u=n.wrapperStyles,p=n.iconColor,d=e.css(z6||(z6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme,n=t.colors,c=t.fonts;return"\n ".concat(o?"background-color: ".concat(n[o]||o,";"):"",";\n ").concat(r?"color: ".concat(n[r]||r,";"):"",";\n ").concat(i?"font-size: ".concat(i,"px;"):"",";\n ").concat(a?c[a]:"",";\n ").concat(s?"font-weight: ".concat(s,";"):"",";\n ").concat(l?"padding: ".concat(l,";"):"",";\n ")}),c),f=e.css(V6||(V6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme.colors;return"\n svg path {\n stroke: ".concat(t[p]||p,";\n }\n ")}),u);return{tooltipStyles:d,tooltipWrapperStyles:f}}(p),I=L.tooltipStyles,$=L.tooltipWrapperStyles;return t.jsxs(g8,f({$styles:D},{children:[t.jsxs(x8,f({$styles:S},{children:[t.jsx(h8,{fontVariant:w,textSize:b,fontWeight:C,textColor:a?m.red:k||m.gray2,text:r,variant:"custom",isRichText:h}),!!l&&t.jsx(Ez,f({},i&&{visible:!0},{overlay:l,styles:I},{children:t.jsx(b8,f({$styles:$},{children:t.jsx(LD,{color:a?m.red:m.gray2,name:"Info"})}))}))]})),!!B&&t.jsx(h8,{fontVariant:"XS",textColor:_,textSize:j,text:B.text,styles:R,variant:"custom"})]}))},g8=l.default.div(H6||(H6=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),x8=l.default.div(q6||(q6=x(["\n display: flex;\n align-items: center;\n ",";\n"],["\n display: flex;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),b8=l.default.div(X6||(X6=x(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"])),(function(e){return e.$styles})),y8=e=>"checkbox"===e.type,w8=e=>e instanceof Date,C8=e=>null==e;const E8=e=>"object"==typeof e;var O8=e=>!C8(e)&&!Array.isArray(e)&&E8(e)&&!w8(e),D8=e=>O8(e)&&e.target?y8(e.target)?e.target.checked:e.target.value:e,S8=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),k8=e=>Array.isArray(e)?e.filter(Boolean):[],T8=e=>void 0===e,j8=(e,t,n)=>{if(!t||!O8(e))return n;const o=k8(t.split(/[,[\].]+?/)).reduce(((e,t)=>C8(e)?e:e[t]),e);return T8(o)||o===e?T8(e[t])?n:e[t]:o};const M8="blur",A8="focusout",N8="change",P8="onBlur",R8="onChange",B8="onSubmit",F8="onTouched",_8="all",L8="max",I8="min",$8="maxLength",z8="minLength",V8="pattern",W8="required",U8="validate",H8=u.default.createContext(null),q8=()=>u.default.useContext(H8),X8=e=>{const{children:t,...n}=e;return u.default.createElement(H8.Provider,{value:n},t)};var G8=(e,t,n,o=!0)=>{const r={};for(const i in e)Object.defineProperty(r,i,{get:()=>{const r=i;return t[r]!==_8&&(t[r]=!o||_8),n&&(n[r]=!0),e[r]}});return r},Y8=e=>O8(e)&&!Object.keys(e).length,K8=(e,t,n)=>{const{name:o,...r}=e;return Y8(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!n||_8)))},Z8=e=>Array.isArray(e)?e:[e],J8=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Z8(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function Q8(e){const t=u.default.useRef(e);t.current=e,u.default.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(n)}),[e.disabled])}var e9=e=>"string"==typeof e,t9=(e,t,n,o)=>{const r=Array.isArray(e);return e9(e)?(o&&t.watch.add(e),j8(n,e)):r?e.map((e=>(o&&t.watch.add(e),j8(n,e)))):(o&&(t.watchAll=!0),n)},n9=e=>"function"==typeof e,o9=e=>{for(const t in e)if(n9(e[t]))return!0;return!1};function r9(e){const t=q8(),{name:n,control:o=t.control,shouldUnregister:r}=e,i=S8(o._names.array,n),a=function(e){const t=q8(),{control:n=t.control,name:o,defaultValue:r,disabled:i,exact:a}=e||{},s=u.default.useRef(o);s.current=o;const l=u.default.useCallback((e=>{if(J8(s.current,e.name,a)){const t=t9(s.current,n._names,e.values||n._formValues);p(T8(s.current)||O8(t)&&!o9(t)?{...t}:Array.isArray(t)?[...t]:T8(t)?r:t)}}),[n,a,r]);Q8({disabled:i,subject:n._subjects.watch,callback:l});const[c,p]=u.default.useState(T8(r)?n._getWatch(o):r);return u.default.useEffect((()=>{n._removeUnmounted()})),c}({control:o,name:n,defaultValue:j8(o._formValues,n,j8(o._defaultValues,n,e.defaultValue)),exact:!0}),s=function(e){const t=q8(),{control:n=t.control,disabled:o,name:r,exact:i}=e||{},[a,s]=u.default.useState(n._formState),l=u.default.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=u.default.useRef(r),p=u.default.useRef(!0);return c.current=r,Q8({disabled:o,callback:u.default.useCallback((e=>p.current&&J8(c.current,e.name,i)&&K8(e,l.current)&&s({...n._formState,...e})),[n,i]),subject:n._subjects.state}),u.default.useEffect((()=>(p.current=!0,()=>{p.current=!1})),[]),G8(a,n._proxyFormState,l.current,!1)}({control:o,name:n}),l=u.default.useRef(o.register(n,{...e.rules,value:a}));return u.default.useEffect((()=>{const e=(e,t)=>{const n=j8(o._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=o._options.shouldUnregister||r;(i?t&&!o._stateFlags.action:t)?o.unregister(n):e(n,!1)}}),[n,o,i,r]),{field:{name:n,value:a,onChange:u.default.useCallback((e=>{l.current.onChange({target:{value:D8(e),name:n},type:N8})}),[n]),onBlur:u.default.useCallback((()=>{l.current.onBlur({target:{value:j8(o._formValues,n),name:n},type:M8})}),[n,o]),ref:u.default.useCallback((e=>{const t=j8(o._fields,n);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[n,o._fields])},formState:s,fieldState:Object.defineProperties({},{invalid:{get:()=>!!j8(s.errors,n)},isDirty:{get:()=>!!j8(s.dirtyFields,n)},isTouched:{get:()=>!!j8(s.touchedFields,n)},error:{get:()=>j8(s.errors,n)}})}}const i9=e=>e.render(r9(e));var a9=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},s9=e=>/^\w*$/.test(e),l9=e=>k8(e.replace(/["|']|\]/g,"").split(/\.|\[/));function c9(e,t,n){let o=-1;const r=s9(t)?[t]:l9(t),i=r.length,a=i-1;for(;++o<i;){const t=r[o];let i=n;if(o!==a){const n=e[t];i=O8(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}e[t]=i,e=e[t]}return e}const u9=(e,t,n)=>{for(const o of n||Object.keys(e)){const n=j8(e,o);if(n){const{_f:e,...o}=n;if(e&&t(e.name)){if(e.ref.focus&&T8(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else O8(o)&&u9(o,t)}}};var p9=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),d9=(e,t,n)=>{const o=k8(j8(e,n));return c9(o,"root",t[n]),c9(e,n,o),e},f9=e=>"boolean"==typeof e,h9=e=>"file"===e.type,m9=e=>e9(e)||u.default.isValidElement(e),v9=e=>"radio"===e.type,g9=e=>e instanceof RegExp;const x9={value:!1,isValid:!1},b9={value:!0,isValid:!0};var y9=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!T8(e[0].attributes.value)?T8(e[0].value)||""===e[0].value?b9:{value:e[0].value,isValid:!0}:b9:x9}return x9};const w9={isValid:!1,value:null};var C9=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),w9):w9;function E9(e,t,n="validate"){if(m9(e)||Array.isArray(e)&&e.every(m9)||f9(e)&&!e)return{type:n,message:m9(e)?e:"",ref:t}}var O9=e=>O8(e)&&!g9(e)?e:{value:e,message:""},D9=async(e,t,n,o,r)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:u,max:p,pattern:d,validate:f,name:h,valueAsNumber:m,mount:v,disabled:g}=e._f;if(!v||g)return{};const x=a?a[0]:i,b=e=>{o&&x.reportValidity&&(x.setCustomValidity(f9(e)?"":e||" "),x.reportValidity())},y={},w=v9(i),C=y8(i),E=w||C,O=(m||h9(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,D=a9.bind(null,h,n,y),S=(e,t,n,o=$8,r=z8)=>{const a=e?t:n;y[h]={type:e?o:r,message:a,ref:i,...D(e?o:r,a)}};if(r?!Array.isArray(t)||!t.length:s&&(!E&&(O||C8(t))||f9(t)&&!t||C&&!y9(a).isValid||w&&!C9(a).isValid)){const{value:e,message:t}=m9(s)?{value:!!s,message:s}:O9(s);if(e&&(y[h]={type:W8,message:t,ref:x,...D(W8,t)},!n))return b(t),y}if(!(O||C8(u)&&C8(p))){let e,o;const r=O9(p),a=O9(u);if(C8(t)||isNaN(t)){const n=i.valueAsDate||new Date(t);e9(r.value)&&(e=n>new Date(r.value)),e9(a.value)&&(o=n<new Date(a.value))}else{const n=i.valueAsNumber||+t;C8(r.value)||(e=n>r.value),C8(a.value)||(o=n<a.value)}if((e||o)&&(S(!!e,r.message,a.message,L8,I8),!n))return b(y[h].message),y}if((l||c)&&!O&&(e9(t)||r&&Array.isArray(t))){const e=O9(l),o=O9(c),r=!C8(e.value)&&t.length>e.value,i=!C8(o.value)&&t.length<o.value;if((r||i)&&(S(r,e.message,o.message),!n))return b(y[h].message),y}if(d&&!O&&e9(t)){const{value:e,message:o}=O9(d);if(g9(e)&&!t.match(e)&&(y[h]={type:V8,message:o,ref:i,...D(V8,o)},!n))return b(o),y}if(f)if(n9(f)){const e=E9(await f(t),x);if(e&&(y[h]={...e,...D(U8,e.message)},!n))return b(e.message),y}else if(O8(f)){let e={};for(const o in f){if(!Y8(e)&&!n)break;const r=E9(await f[o](t),x,o);r&&(e={...r,...D(o,r.message)},b(r.message),n&&(y[h]=e))}if(!Y8(e)&&(y[h]={ref:x,...e},!n))return y}return b(!0),y},S9="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function k9(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(S9&&(e instanceof Blob||e instanceof FileList)||!n&&!O8(e))return e;t=n?[]:{};for(const n in e){if(n9(e[n])){t=e;break}t[n]=k9(e[n])}}return t}var T9=e=>({isOnSubmit:!e||e===B8,isOnBlur:e===P8,isOnChange:e===R8,isOnAll:e===_8,isOnTouch:e===F8});function j9(e){for(const t in e)if(!T8(e[t]))return!1;return!0}function M9(e,t){const n=s9(t)?[t]:l9(t),o=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let o=0;for(;o<n;)e=T8(e)?o++:e[t[o++]];return e}(e,n),r=n[n.length-1];let i;o&&delete o[r];for(let t=0;t<n.slice(0,-1).length;t++){let o,r=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++r<a.length;){const t=a[r];o=o?o[t]:e[t],s===r&&(O8(o)&&Y8(o)||Array.isArray(o)&&j9(o))&&(i?delete i[t]:delete e[t]),i=o}}return e}function A9(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var N9=e=>C8(e)||!E8(e);function P9(e,t){if(N9(e)||N9(t))return e===t;if(w8(e)&&w8(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const n=e[r];if(!o.includes(r))return!1;if("ref"!==r){const e=t[r];if(w8(n)&&w8(e)||O8(n)&&O8(e)||Array.isArray(n)&&Array.isArray(e)?!P9(n,e):n!==e)return!1}}return!0}var R9=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},B9=e=>"select-multiple"===e.type,F9=e=>R9(e)&&e.isConnected;function _9(e,t={}){const n=Array.isArray(e);if(O8(e)||n)for(const n in e)Array.isArray(e[n])||O8(e[n])&&!o9(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_9(e[n],t[n])):C8(e[n])||(t[n]=!0);return t}function L9(e,t,n){const o=Array.isArray(e);if(O8(e)||o)for(const o in e)Array.isArray(e[o])||O8(e[o])&&!o9(e[o])?T8(t)||N9(n[o])?n[o]=Array.isArray(e[o])?_9(e[o],[]):{..._9(e[o])}:L9(e[o],C8(t)?{}:t[o],n[o]):n[o]=!P9(e[o],t[o]);return n}var I9=(e,t)=>L9(e,t,_9(t)),$9=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>T8(e)?e:t?""===e||C8(e)?NaN:+e:n&&e9(e)?new Date(e):o?o(e):e;function z9(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return h9(t)?t.files:v9(t)?C9(e.refs).value:B9(t)?[...t.selectedOptions].map((({value:e})=>e)):y8(t)?y9(e.refs).value:$9(T8(t.value)?e.ref.value:t.value,e)}var V9=e=>T8(e)?void 0:g9(e)?e.source:O8(e)?g9(e.value)?e.value.source:e.value:e;function W9(e,t,n){const o=j8(e,n);if(o||s9(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),i=j8(t,o),a=j8(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};r.pop()}return{name:n}}const U9={mode:B8,reValidateMode:R8,shouldFocusError:!0};function H9(e={}){let t,n={...U9,...e},o={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},r={},i=k9(n.defaultValues)||{},a=n.shouldUnregister?{}:k9(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,u={};const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:A9(),array:A9(),state:A9()},f=T9(n.mode),h=T9(n.reValidateMode),m=n.criteriaMode===_8,v=async e=>{let t=!1;return p.isValid&&(t=n.resolver?Y8((await y()).errors):await w(r,!0),e||t===o.isValid||(o.isValid=t,d.state.next({isValid:t}))),t},g=(e,t,n,o)=>{const l=j8(r,e);if(l){const r=j8(a,e,T8(n)?j8(i,e):n);T8(r)||o&&o.defaultChecked||t?c9(a,e,t?r:z9(l._f)):O(e,r),s.mount&&v()}},x=(e,t,n,r,a)=>{let s=!1;const l={name:e},c=j8(o.touchedFields,e);if(p.isDirty){const e=o.isDirty;o.isDirty=l.isDirty=C(),s=e!==l.isDirty}if(p.dirtyFields&&(!n||r)){const n=j8(o.dirtyFields,e);P9(j8(i,e),t)?M9(o.dirtyFields,e):c9(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,s=s||n!==j8(o.dirtyFields,e)}return n&&!c&&(c9(o.touchedFields,e,n),l.touchedFields=o.touchedFields,s=s||p.touchedFields&&c!==n),s&&a&&d.state.next(l),s?l:{}},b=async(n,r,i,a)=>{const s=j8(o.errors,n),l=p.isValid&&o.isValid!==r;var f;if(e.delayError&&i?(f=()=>((e,t)=>{c9(o.errors,e,t),d.state.next({errors:o.errors})})(n,i),t=e=>{clearTimeout(c),c=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,i?c9(o.errors,n,i):M9(o.errors,n)),(i?!P9(s,i):s)||!Y8(a)||l){const e={...a,...l?{isValid:r}:{},errors:o.errors,name:n};o={...o,...e},d.state.next(e)}u[n]--,p.isValidating&&!Object.values(u).some((e=>e))&&(d.state.next({isValidating:!1}),u={})},y=async e=>n.resolver?await n.resolver({...a},n.context,((e,t,n,o)=>{const r={};for(const n of e){const e=j8(t,n);e&&c9(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}})(e||l.mount,r,n.criteriaMode,n.shouldUseNativeValidation)):{},w=async(e,t,r={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),c=await D9(s,j8(a,e.name),m,n.shouldUseNativeValidation,i);if(c[e.name]&&(r.valid=!1,t))break;!t&&(j8(c,e.name)?i?d9(o.errors,c,e.name):c9(o.errors,e.name,c[e.name]):M9(o.errors,e.name))}i&&await w(i,t,r)}}return r.valid},C=(e,t)=>(e&&t&&c9(a,e,t),!P9(j(),i)),E=(e,t,n)=>{const o={...s.mount?a:T8(t)?i:e9(e)?{[e]:t}:t};return t9(e,l,o,n)},O=(e,t,n={})=>{const o=j8(r,e);let i=t;if(o){const n=o._f;n&&(!n.disabled&&c9(a,e,$9(t,n)),i=S9&&R9(n.ref)&&C8(t)?"":t,B9(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?y8(n.ref)?n.refs.length>1?n.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):h9(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&x(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&T(e)},D=(e,t,n)=>{for(const o in t){const i=t[o],a=`${e}.${o}`,s=j8(r,a);!l.array.has(e)&&N9(i)&&(!s||s._f)||w8(i)?O(a,i,n):D(a,i,n)}},S=(e,t,n={})=>{const s=j8(r,e),c=l.array.has(e),u=k9(t);c9(a,e,u),c?(d.array.next({name:e,values:a}),(p.isDirty||p.dirtyFields)&&n.shouldDirty&&(o.dirtyFields=I9(i,a),d.state.next({name:e,dirtyFields:o.dirtyFields,isDirty:C(e,u)}))):!s||s._f||C8(u)?O(e,u,n):D(e,u,n),p9(e,l)&&d.state.next({}),d.watch.next({name:e})},k=async e=>{const i=e.target;let s=i.name;const c=j8(r,s);if(c){let g,w;const C=i.type?z9(c._f):D8(e),E=e.type===M8||e.type===A8,O=!((p=c._f).mount&&(p.required||p.min||p.max||p.maxLength||p.minLength||p.pattern||p.validate)||n.resolver||j8(o.errors,s)||c._f.deps)||((e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e))(E,j8(o.touchedFields,s),o.isSubmitted,h,f),D=p9(s,l,E);c9(a,s,C),E?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);const S=x(s,C,E,!1),k=!Y8(S)||D;if(!E&&d.watch.next({name:s,type:e.type}),O)return k&&d.state.next({name:s,...D?{}:S});if(!E&&D&&d.state.next({}),u[s]=(u[s],1),d.state.next({isValidating:!0}),n.resolver){const{errors:e}=await y([s]),t=W9(o.errors,r,s),n=W9(e,r,t.name||s);g=n.error,s=n.name,w=Y8(e)}else g=(await D9(c,j8(a,s),m,n.shouldUseNativeValidation))[s],w=await v(!0);c._f.deps&&T(c._f.deps),b(s,w,g,S)}var p},T=async(e,t={})=>{let i,a;const s=Z8(e);if(d.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await y();if(e)for(const n of e){const e=j8(t,n);e?c9(o.errors,n,e):M9(o.errors,n)}else o.errors=t;return t})(T8(e)?e:s);i=Y8(t),a=e?!s.some((e=>j8(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=j8(r,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||o.isValid)&&v()):a=i=await w(r);return d.state.next({...!e9(e)||p.isValid&&i!==o.isValid?{}:{name:e},...n.resolver?{isValid:i}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!a&&u9(r,(e=>j8(o.errors,e)),e?s:l.mount),a},j=e=>{const t={...i,...s.mount?a:{}};return T8(e)?t:e9(e)?j8(t,e):e.map((e=>j8(t,e)))},M=(e,t)=>({invalid:!!j8((t||o).errors,e),isDirty:!!j8((t||o).dirtyFields,e),isTouched:!!j8((t||o).touchedFields,e),error:j8((t||o).errors,e)}),A=(e,t={})=>{for(const s of e?Z8(e):l.mount)l.mount.delete(s),l.array.delete(s),j8(r,s)&&(t.keepValue||(M9(r,s),M9(a,s)),!t.keepError&&M9(o.errors,s),!t.keepDirty&&M9(o.dirtyFields,s),!t.keepTouched&&M9(o.touchedFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&M9(i,s));d.watch.next({}),d.state.next({...o,...t.keepDirty?{isDirty:C()}:{}}),!t.keepIsValid&&v()},N=(e,t={})=>{let o=j8(r,e);const c=f9(t.disabled);return c9(r,e,{_f:{...o&&o._f?o._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),o?c&&c9(a,e,t.disabled?void 0:j8(a,e,z9(o._f))):g(e,!0,t.value),{...c?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:V9(t.min),max:V9(t.max),minLength:V9(t.minLength),maxLength:V9(t.maxLength),pattern:V9(t.pattern)}:{},name:e,onChange:k,onBlur:k,ref:a=>{if(a){N(e,t),o=j8(r,e);const n=T8(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>v9(e)||y8(e))(n),l=o._f.refs||[];if(s?l.find((e=>e===n)):n===o._f.ref)return;c9(r,e,{_f:{...o._f,...s?{refs:[...l.filter(F9),n,...Array.isArray(j8(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else o=j8(r,e,{}),o._f&&(o._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!S8(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:N,unregister:A,getFieldState:M,_executeSchema:y,_getWatch:E,_getDirty:C,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=j8(r,e);t&&(t._f.refs?t._f.refs.every((e=>!F9(e))):!F9(t._f.ref))&&A(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,u=!0)=>{if(l&&n){if(s.action=!0,u&&Array.isArray(j8(r,e))){const t=n(j8(r,e),l.argA,l.argB);c&&c9(r,e,t)}if(p.errors&&u&&Array.isArray(j8(o.errors,e))){const t=n(j8(o.errors,e),l.argA,l.argB);c&&c9(o.errors,e,t),((e,t)=>{!k8(j8(e,t)).length&&M9(e,t)})(o.errors,e)}if(p.touchedFields&&u&&Array.isArray(j8(o.touchedFields,e))){const t=n(j8(o.touchedFields,e),l.argA,l.argB);c&&c9(o.touchedFields,e,t)}p.dirtyFields&&(o.dirtyFields=I9(i,a)),d.state.next({isDirty:C(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else c9(a,e,t)},_getFieldArray:t=>k8(j8(s.mount?a:i,t,e.shouldUnregister?j8(i,t,[]):[])),_subjects:d,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:T,register:N,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,c=k9(a);d.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await y();o.errors=e,c=t}else await w(r);Y8(o.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(c,i)):(t&&await t({...o.errors},i),n.shouldFocusError&&u9(r,(e=>j8(o.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{o.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Y8(o.errors)&&s,submitCount:o.submitCount+1,errors:o.errors})}},watch:(e,t)=>n9(e)?d.watch.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:S,getValues:j,reset:(t,n={})=>{const c=t||i,u=k9(c),f=t&&!Y8(t)?u:i;if(n.keepDefaultValues||(i=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)j8(o.dirtyFields,e)?c9(f,e,j8(a,e)):S(e,j8(f,e));else{if(S9&&T8(t))for(const e of l.mount){const t=j8(r,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(R9(e)){e.closest("form").reset();break}}catch(e){}}}r={}}a=e.shouldUnregister?n.keepDefaultValues?k9(i):{}:u,d.array.next({values:f}),d.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!n.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?o.isDirty:!(!n.keepDefaultValues||P9(t,i)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?o.dirtyFields:n.keepDefaultValues&&t?I9(i,t):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{j8(r,e)&&(T8(t.defaultValue)?S(e,j8(i,e)):(S(e,t.defaultValue),c9(i,e,t.defaultValue)),t.keepTouched||M9(o.touchedFields,e),t.keepDirty||(M9(o.dirtyFields,e),o.isDirty=t.defaultValue?C(e,j8(i,e)):C()),t.keepError||(M9(o.errors,e),p.isValid&&v()),d.state.next({...o}))},clearErrors:e=>{e?Z8(e).forEach((e=>M9(o.errors,e))):o.errors={},d.state.next({errors:o.errors})},unregister:A,setError:(e,t,n)=>{const i=(j8(r,e,{_f:{}})._f||{}).ref;c9(o.errors,e,{...t,ref:i}),d.state.next({name:e,errors:o.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const n=j8(r,e)._f,o=n.refs?n.refs[0]:n.ref;o.focus(),t.shouldSelect&&o.select()},getFieldState:M}}function q9(e={}){const t=u.default.useRef(),[n,o]=u.default.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...H9(e),formState:n};const r=t.current.control,i=u.default.useCallback((e=>{K8(e,r._proxyFormState,!0)&&(r._formState={...r._formState,...e},o({...r._formState}))}),[r]);return Q8({subject:r._subjects.state,callback:i}),u.default.useEffect((()=>{r._stateFlags.mount||(r._proxyFormState.isValid&&r._updateValid(),r._stateFlags.mount=!0),r._stateFlags.watch&&(r._stateFlags.watch=!1,r._subjects.state.next({})),r._removeUnmounted()})),t.current.formState=G8(n,r._proxyFormState),t.current}var X9,G9,Y9,K9,Z9,J9,Q9,e7,t7,n7,o7,r7,i7,a7,s7,l7,c7,u7,p7,d7,f7,h7,m7,v7,g7,x7,b7,y7,w7,C7,E7,O7,D7,S7,k7,T7,j7,M7,A7=function(e,t){var o,r=q8(),i=e||{},a=i.criteriaList,s=void 0===a?[]:a,l=i.segmentationType;if(!s.length)return!0;var c=null!==(o=null==r?void 0:r.watch())&&void 0!==o?o:t,u=n.useCallback(N7({criteriaList:s,data:c}),[s,c]);return"simple"!==l||(null==s?void 0:s.every((function(e){return u(e)})))},N7=function(e){var t=e.criteriaList,n=void 0===t?[]:t,o=e.data,r=void 0===o?{}:o,i=function(e){if(!e)return!0;if("condition"===e.type){var t=r[e.dataFieldName||""];if(!t||!(null==t?void 0:t.length)||!e.dataValue)return!1;switch(e.operator){case"is":return Array.isArray(t)?t.includes(e.dataValue):t===e.dataValue;case"is_not":return Array.isArray(t)?!t.includes(e.dataValue):t!==e.dataValue;default:return!0}}else if("operator"===e.type){var o=n.find((function(t){return t.id===e.connectedTo})),a=n.find((function(t){return t.connectedTo===e.id}));if(o&&a)switch(e.operator){case"and":return i(a)&&i(o);case"or":return i(a)||i(o);case"not":return i(a)!==i(o);default:return!1}}return!1};return i},P7=n.createContext({steps:0,currentStep:0,canGoToNextStep:!1,canGoToPrevStep:!1,goToNextStep:function(){return null},goToPrevStep:function(){return null},reset:function(){return null},setStep:function(){return null},setInitSteps:function(){return null}}),R7=n.createContext({actionContent:void 0,setActionContent:function(){return null},isModalVisible:!1,setModalVisible:function(){return null},isDrawerVisible:!1,setDrawerVisible:function(){return null}}),B7=function(){return n.useContext(R7)},F7=n.createContext({items:[],groupStepItemsByStepContainer:function(){return new Map},dateFields:[],setDateFields:function(){return null},formId:"",submitHandler:function(){return null},validations:[],editable:!0,isFormInEditMode:!0}),_7=function(){return n.useContext(F7)},L7=n.createContext({stateConfig:{},stateHandler:function(){return null}}),I7=function(){return n.useContext(L7)},$7=n.createContext({userInitials:"",logOutHandler:function(){return null},goToAccountInfo:function(){return null},username:""}),z7=function(e){var t=e.setFormData,o=e.defaultValue,r=e.dataModelField,i=I7().stateConfig,a=_7().editable;n.useEffect((function(){var e;if(r&&i){var n=null==r?void 0:r.dataModelFieldId,s=null==r?void 0:r.entitySubtypeId,l=null==r?void 0:r.format,c=i[n],u=s?null===(e=null==c?void 0:c[s])||void 0===e?void 0:e.value:null==c?void 0:c.value,p=a?"":"-";null==t||t((function(e){var t,r,i;return f(f({},e),((t={})[n]=null!==(i=null!==(r=function(e,t){if(!t||!e||"number"==typeof e)return e;var n=e.split("-"),o=n[0],r=n[1],i=n[2];switch(t){case"day_month_year_date":return"".concat(i,"/").concat(r,"/").concat(o);case"month_year_date":return"".concat(r,"/").concat(o);case"month_day_year_date":return"".concat(r,"/").concat(i,"/").concat(o);default:return e}}(u,null==l?void 0:l.value))&&void 0!==r?r:o)&&void 0!==i?i:p,t))}))}}),[r,i]),n.useEffect((function(){var e,n;if(o&&r){var i=null===(n=null==r?void 0:r.dataFieldName)||void 0===n?void 0:n.toLowerCase().replace(/\p{Zs}/gu,"_");null==t||t(((e={})[i]=o,e))}return function(){return null==t?void 0:t({})}}),[r,o])},V7=function(e){var t=e.item,o=e.activeChildrenIds,r=n.useState(),i=r[0],a=r[1],s=n.useMemo((function(){return o.map((function(e){var n=t.items.find((function(t){return t.id===e}));return n?function(e){var t,n,o,r=(null===(n=null===(t=e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||{};return f(f({},e),{config:f(f({},e.config),{props:f(f({},null===(o=e.config)||void 0===o?void 0:o.props),{formStepProps:f(f({},r),{order:0})})})})}(n):void 0})).filter(Boolean)}),[o,t]);return n.useEffect((function(){a((function(){return f(f({},t),{items:s})}))}),[t]),i},W7=["day_month_year_date","month_day_year_date","month_year_date"],U7=function(e){var o,r,i=e.control,a=e.name,s=void 0===a?"":a,l=e.inputProps,c=e.styles,u=e.labelsProps,p=e.defaultValue,d=void 0===p?"":p,h=e.displayOnlyInputDefaultValue,m=void 0===h?"":h,v=e.optional,x=e.required,b=e.rules,y=e.conditionConfig,w=e.state,C=e.formData,E=e.htmlElementId,O="password"===(null==l?void 0:l.type),D=n.useState(O),S=D[0],k=D[1],T=q8(),j=_7(),M=j.setDateFields,A=j.isFormInEditMode,N="format_error"===w||"field_error"===w||"match_error"===w,P=A7(y,C),R="";try{R=(null==u?void 0:u.label)&&(null===(r=null===(o=JSON.parse(null==u?void 0:u.label)[0])||void 0===o?void 0:o.children[0])||void 0===r?void 0:r.text)}catch(e){R="",console.error(e,"Toopltip text was parsed incorrectly")}if(n.useEffect((function(){(null==y?void 0:y.criteriaList.length)&&P&&T&&T.setValue(s,"")}),[y,P]),n.useEffect((function(){w&&N&&T&&T.trigger(s)}),[w,T,N]),n.useEffect((function(){C&&T&&T.reset(C)}),[C]),n.useEffect((function(){(null==l?void 0:l.type)&&W7.includes(l.type)&&M((function(e){return g(g([],e,!0),[{id:s,dateType:l.type}],!1)}))}),[null==l?void 0:l.type]),!P)return null;var B=(null==l?void 0:l.rightIcon)||O?{name:S?"View":"Hide",onClick:function(){return k((function(e){return!e}))}}:void 0,F=O?S?"password":"text":null==l?void 0:l.type;return i?t.jsx(i9,{name:s,control:i,rules:f({required:{value:!!x,message:"This field is required"},pattern:lP(null==l?void 0:l.type)},b),defaultValue:d,render:function(e){var n,o=e.field,r=e.fieldState.error,i=(l||{}).isEditMode,a="format_error"===w&&"any"!==F||(void 0===i||i)&&!!r,s=O&&"match_error"===w&&"Your passwords do not match each other"||("format_error"===w?null===(n=lP(F))||void 0===n?void 0:n.message:a?null==r?void 0:r.message:void 0),p=null===(null==u?void 0:u.ruleLabel)?u.ruleLabel:x?"REQUIRED":v?"OPTIONAL":void 0;return t.jsxs(H7,f({id:E,$styles:c},{children:[(null==u?void 0:u.label)&&t.jsxs(t.Fragment,{children:[t.jsx(v8,f({},u,{ruleLabel:A?p:void 0,isError:a,tooltipText:R})),t.jsx(PP,{height:12})]}),A&&t.jsx(oR,f({},l,o,{onChange:function(e){return"phone_number"===F?o.onChange(e.replace(/[()\s-]/g,"")):o.onChange(e)},isError:a,rightIcon:B,type:F,state:w})),!A&&t.jsx(h8,{text:(null==o?void 0:o.value)||m}),!!s&&t.jsx(FP,{text:s})]}))}}):t.jsxs(H7,f({id:E,$styles:c},{children:[u&&t.jsxs(t.Fragment,{children:[t.jsx(v8,f({},u,{tooltipText:R})),t.jsx(PP,{height:12})]}),t.jsx(oR,f({},l,{rightIcon:B,type:F,state:w}))]}))},H7=l.default.div(X9||(X9=x(["\n ",";\n"],["\n ",";\n"])),(function(e){return e.$styles})),q7=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},X7=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},G7=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},Y7=[{name:"firstName",label:"First Name",type:"input",placeholder:"First name",inputType:"text",required:!0,value:"Brandon"},{name:"lastName",label:"Last Name",type:"input",placeholder:"Last name",inputType:"text",required:!0,value:"Stambaugh"}],K7=[{label:"Basic Information",fields:Y7},{label:"Contact Information",fields:[{name:"email",label:"Email Address",type:"input",placeholder:"Email Address",inputType:"email",required:!0,value:"brandon.stambaugh@domain.com"},{name:"phoneNumber",label:"Phone Number",type:"input",placeholder:"Phone Number",inputType:"number",value:"(000) 000-0000"},{name:"streetAddress",label:"Street Address",type:"input",placeholder:"Street Address",inputType:"text",value:"0000 Road Name Street, Raleigh..."}]}],Z7=function(e){var n=e.field,o=e.isEditMode,r=void 0===o||o,i=e.spacer,a=void 0===i?0:i,s=e.control,l=e.isTooltipVisible,c=e.optionsPresentation,u=e.styles;if(!s)return null;var p=null,d=n.type,h=n.name,m=void 0===h?"":h,v=n.placeholder,g=n.tooltip,x=n.label,b=void 0===x?"":x,y=n.required,w=n.rules;switch(n.type){case"input":var C=n.inputType,E=n.maxLength,O=n.onKeyDown,D=n.inputProps,S=n.labelsProps;p=t.jsx(U7,f({},n,{name:m.toString(),control:s,inputProps:f({placeholder:v||q7(d,b),type:C,maxLength:E,isEditMode:r,onKeyDown:O},D),labelsProps:f({label:b,tooltipText:g,isTooltipVisible:l},S),required:y,optional:!y,rules:w,styles:u}));break;case"select":var k=n.options;p=t.jsx(nee,{selectProps:{placeholder:v||q7(d,b),options:k,isEditMode:r,optionsPresentation:c},name:m.toString(),control:s,labelsProps:{label:b,tooltipText:g,isTooltipVisible:l},required:y,optional:!y,rules:w,styles:u});break;case"checkbox":var T=n.checkboxLabel;p=t.jsxs(t.Fragment,{children:[!!b&&t.jsxs(t.Fragment,{children:[t.jsx(RP,f({variant:"L"},{children:b})),t.jsx(PP,{height:20})]}),t.jsx(eee,{name:m.toString(),control:s,checkboxProps:{label:T}})]})}return t.jsxs(t.Fragment,{children:[!!a&&t.jsx(PP,{height:a}),p]})},J7=l.default.div(G9||(G9=x([""],[""]))),Q7=l.default.div(K9||(K9=x(["\n display: flex;\n flex-direction: column;\n ","\n"],["\n display: flex;\n flex-direction: column;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$spacing,r=void 0===o?"S":o,i=t.$styles;return e.css(Y9||(Y9=x(["\n gap: ","px;\n ",";\n "],["\n gap: ","px;\n ",";\n "])),n[r],i)})),eee=function(o){var r,i=o.checkboxesProps,a=o.name,s=void 0===a?"":a,l=o.rules,c=o.control,u=o.optional,p=o.required,d=o.labelsProps,h=o.wrapperStyles,m=o.conditionConfig,v=o.defaultValue,g=o.formData,x=o.htmlElementId,b=o.state,y=e.useTheme().sizes,w=q8(),C=A7(m,g);return n.useEffect((function(){g&&w&&w.reset(g)}),[g]),n.useEffect((function(){b&&"field_error"===b&&w&&w.trigger(s)}),[b,w]),C?c?t.jsx(i9,{name:s,control:c,defaultValue:null!==(r=null==i?void 0:i.selectedIds)&&void 0!==r?r:v,rules:f({required:{value:!!p,message:"This field is required"}},l),render:function(e){var n=e.field,o=e.fieldState.error,r=!!o,a=r?null==o?void 0:o.message:void 0,s=p?"REQUIRED":u?"OPTIONAL":void 0;return t.jsxs(J7,f({id:x,$styles:h},{children:[(null==d?void 0:d.label)&&t.jsx(v8,f({},d,{ruleLabel:s,isError:r})),t.jsx(PP,{height:y.S+y.XS}),t.jsx(tee,f({checkboxesProps:f(f({},i),{selectedIds:n.value,isError:r})},n)),!!a&&t.jsx(FP,{text:a})]}))}}):t.jsxs(J7,f({id:x,$styles:h},{children:[d&&t.jsx(v8,f({},d)),t.jsx(PP,{height:y.S+y.XS}),t.jsx(tee,{checkboxesProps:i})]})):null},tee=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.checkboxesProps||{},s=a.options,l=a.isError,c=a.disabled,u=a.isRichText,p=void 0===u||u,d=a.isEditMode,m=a.internalConfig,v=a.selectedIds,x=void 0===v?[]:v,b=a.checkboxGroupWrapperStyles,y=n.useState(x),w=y[0],C=y[1];n.useEffect((function(){return C(x)}),[x]);var E=m||{},O=E.buttonOptionSpacing,D=h(E,["buttonOptionSpacing"]),S=function(e){C((function(t){var n=t.includes(e)?t.filter((function(t){return t!==e})):g(g([],t,!0),[e],!1);return null==i||i(n),n}))};return t.jsx(Q7,f({ref:o,tabIndex:0,onBlur:r,$styles:b,$spacing:O},{children:null==s?void 0:s.map((function(e){var n=w.includes(e.id);return t.jsx(zP,f({},e,{isError:l,disabled:c,isEditMode:d,isSelected:n,isRichText:p,onClick:S,internalConfig:D}),e.id)}))}))},nee=function(e){var o=e.selectProps,r=e.name,i=void 0===r?"":r,a=e.defaultValue,s=void 0===a?"":a,l=e.optional,c=e.required,u=e.control,p=e.styles,d=e.labelsProps,h=e.rules,m=e.conditionConfig,v=e.formData,g=e.state,x=e.htmlElementId,b=A7(m,v),y=q8();return n.useEffect((function(){(null==m?void 0:m.criteriaList.length)&&b&&y&&y.setValue(i,"")}),[m,b]),n.useEffect((function(){g&&"field_error"===g&&y&&y.trigger(i)}),[g,y]),n.useEffect((function(){v&&y&&y.reset(v)}),[v]),b?u?t.jsx(i9,{name:i,control:u,rules:f({required:{value:!!c,message:"This field is required"}},h),defaultValue:s,render:function(e){var n=e.field,r=e.fieldState.error,i=!!r,a=i?null==r?void 0:r.message:void 0,s=c?"REQUIRED":l?"OPTIONAL":void 0;return t.jsxs(oee,f({id:x,$styles:p},{children:[(null==d?void 0:d.label)&&t.jsx(v8,f({},d,{ruleLabel:s,isError:i})),t.jsx(PP,{height:12}),t.jsx(KP,f({},o,n,{isError:i})),!!a&&t.jsx(FP,{text:a})]}))}}):t.jsxs(oee,f({id:x,$styles:p},{children:[d&&t.jsx(v8,f({},d)),t.jsx(PP,{height:12}),t.jsx(KP,f({},o))]})):null},oee=l.default.div(Z9||(Z9=x(["\n ",";\n"],["\n ",";\n"])),(function(e){return e.$styles})),ree=function(e){switch(e){case"error":return"ERROR";case"success":return"SUCCESS";default:return"DEFAULT"}},iee=function(e){var n=e.rules,o=e.value,r=e.isSubmitted,i=void 0===r||r,a=e.label,s=e.spacer,l=e.validationState;return t.jsxs(t.Fragment,{children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(see,f({variant:"S"},{children:a})),s&&t.jsx(PP,{height:s})]}),t.jsx(aee,{children:n.map((function(e,n){return t.jsx(mR,{status:l?ree(l):i?e.validate(o)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},n)}))})]})},aee=l.default.div(J9||(J9=x(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),see=l.default(RP)(Q9||(Q9=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),lee=l.default(RP).attrs({variant:"M"})(e7||(e7=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),cee=e.css(t7||(t7=x(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),lee,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),uee=e.css(n7||(n7=x(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),lee,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),pee=l.default.div(r7||(r7=x(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isActive;return e.css(o7||(o7=x(["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.L,r.M,r.S,o.gray4,o.gray2,i?cee:uee)})),dee=l.default.div(a7||(a7=x(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(t){var n=t.theme.sizes,o=t.spacing;return e.css(i7||(i7=x(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),n[o])})),fee=function(e){var n=e.iconName,o=e.infoText,r=e.isActive,i=e.onClick,a=e.value;return t.jsxs(pee,f({onClick:function(){return null==i?void 0:i(a)},isActive:r},{children:[t.jsx(LD,{name:n}),t.jsx(PP,{height:12}),t.jsx(lee,{children:o})]}))},hee=function(e){var o=e.cards,r=e.handleChange,i=e.spacing,a=void 0===i?"L":i,s=e.initialValue,l=n.useState(s),c=l[0],u=l[1],p=function(e){var t=e===c?void 0:e;null==r||r(t),u(t)};return t.jsx(dee,f({spacing:a},{children:o.map((function(e){return t.jsx(fee,f({},e,{isActive:c===e.value,onClick:p}),e.value)}))}))},mee=e.css(s7||(s7=x(["\n text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n"],["\n text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n"]))),vee=function(e){var n=e.backgroundImage,o=e.button,r=e.contentAlignment,i=e.mainHeading,a=e.horizontalPaddings,s=e.subHeading,l=e.template,c=void 0===l?"full_width":l,u=e.isMobile,p=void 0!==u&&u,d=e.height,h=void 0===d?420:d;return t.jsx(xee,f({height:h,template:c,isMobile:p},{children:t.jsxs(bee,f({template:c},{children:[t.jsx(Cee,{template:c}),t.jsx(wee,f({},n,{template:c})),t.jsxs(yee,f({contentAlignment:r,horizontalPaddings:a},{children:[t.jsx(AP,{numberOfLines:2,textStyles:mee,color:"white",font:"3XL",value:i}),!!s&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:6}),t.jsx(AP,{numberOfLines:5,textStyles:mee,color:"white",value:s,font:"M"})]}),!!o&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:22}),t.jsx(Ire,f({},o,{isRichText:!0,fullWidth:!!o.fullWidth}))]})]}))]}))}))},gee=function(t){var n=t.theme,o=t.template;return e.css(l7||(l7=x(["\n border-radius: ","px;\n "],["\n border-radius: ","px;\n "])),"card"===o?null==n?void 0:n.sizes.M:0)},xee=l.default.div(u7||(u7=x(["\n width: 100%;\n justify-content: center;\n ","\n"],["\n width: 100%;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.template,r=t.height,i=t.isMobile;return e.css(c7||(c7=x(["\n height: ","px;\n padding: ","px;\n "],["\n height: ","px;\n padding: ","px;\n "])),r,"card"===o?i?n.L:n.XL:0)})),bee=l.default.div(p7||(p7=x(["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n width: 100%;\n ",";\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n width: 100%;\n ",";\n"])),gee),yee=l.default.div(f7||(f7=x(["\n display: flex;\n height: 100%;\n z-index: 2;\n flex-direction: column;\n justify-content: center;\n ","\n"],["\n display: flex;\n height: 100%;\n z-index: 2;\n flex-direction: column;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.contentAlignment,r=t.horizontalPaddings;return e.css(d7||(d7=x(["\n align-items: ",";\n padding: ","px ","px;\n "],["\n align-items: ",";\n padding: ","px ","px;\n "])),"left_aligned"===o?"flex-start":"center",n["4XL"],null!=r?r:n["5XL"])})),wee=l.default(dR)(h7||(h7=x(["\n ",";\n"],["\n ",";\n"])),gee),Cee=l.default.div(m7||(m7=x(["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n ",";\n background-color: rgba(0, 0, 0, 0.3);\n"],["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n ",";\n background-color: rgba(0, 0, 0, 0.3);\n"])),gee),Eee=S.sizes.L,Oee={top:{borderBottomLeftRadius:Eee,borderBottomRightRadius:Eee},bottom:{borderTopRightRadius:Eee,borderTopLeftRadius:Eee},left:{borderBottomRightRadius:Eee,borderTopRightRadius:Eee},right:{borderTopLeftRadius:Eee,borderBottomLeftRadius:Eee}},Dee=l.default(Jh)(g7||(g7=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.anchor,r=t.padding,i=void 0===r?"4XL":r,a=t.height,s=t.width,l="".concat("number"==typeof i?i:n[i],"px"),c=a?"number"==typeof a?"".concat(a,"px"):a:"auto",u=s?"number"==typeof s?"".concat(s,"px"):s:"auto";return e.css(v7||(v7=x(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),Oee[o],l,c,u)})),See=l.default(w)(b7||(b7=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme.sizes;return e.css(x7||(x7=x(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),C(n.L),n["4XL"],n["4XL"])})),kee=function(n){var o=n.children,r=n.closeIconColor,i=h(n,["children","closeIconColor"]),a=e.useTheme().colors;return t.jsx(Dee,f({},i,{children:t.jsxs(t.Fragment,{children:[o,t.jsx(See,f({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:t.jsx(LD,{size:32,name:"Close",color:a[r]||r})}))]})}))},Tee=l.default.div(y7||(y7=x(["\n display: flex;\n flex: 1;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex: 1;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"])),(function(e){var t=e.theme.sizes;return e.isMobile?t.XL:t.M})),jee=l.default.div(w7||(w7=x(["\n display: flex;\n flex-direction: column;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex-direction: column;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"])),(function(e){return e.theme.sizes.M})),Mee=l.default(fR)(C7||(C7=x(["\n text-decoration-line: underline;\n"],["\n text-decoration-line: underline;\n"]))),Aee=l.default(Tee)(O7||(O7=x(["\n flex-direction: column;\n ","\n"],["\n flex-direction: column;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(E7||(E7=x(["\n gap: ","px;\n padding: ","px;\n border: 1px solid ",";\n border-radius: ","px;\n "],["\n gap: ","px;\n padding: ","px;\n border: 1px solid ",";\n border-radius: ","px;\n "])),r.XL,r["3XL"],o.gray3,r.M)})),Nee=l.default.div(S7||(S7=x(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: ","px;\n flex: 1;\n ","\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: ","px;\n flex: 1;\n ","\n"])),(function(e){return e.isMobile?350:420}),(function(t){var n=t.theme.sizes,o=t.isMobile;return e.css(D7||(D7=x(["\n min-height: ","px;\n padding: ","px;\n gap: ","px;\n "],["\n min-height: ","px;\n padding: ","px;\n gap: ","px;\n "])),o?350:420,n.XL,n.L)})),Pee=l.default(dR)(k7||(k7=x(["\n z-index: -1;\n border-radius: ","px;\n"],["\n z-index: -1;\n border-radius: ","px;\n"])),(function(e){return e.theme.sizes.M})),Ree=l.default.div(T7||(T7=x(["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: ","px;\n background-color: rgba(0, 0, 0, 0.3);\n"],["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: ","px;\n background-color: rgba(0, 0, 0, 0.3);\n"])),(function(e){return e.theme.sizes.M})),Bee=function(e){var t=I7(),n=t.stateConfig,o=t.stateHandler;return function(){var t;if(null==e?void 0:e.length){var r=e.find((function(e){return e.stateKey in n&&"stateModifier"===e.role}));r&&(n[r.stateKey]||null==o||o(f(f({},n),((t={})[r.stateKey]=!0,t))))}}},Fee=function(e){var t,n,o,r,i,a=I7().stateConfig,s=!0,l=!1;if(null===(t=null==e?void 0:e.stateConfig)||void 0===t?void 0:t.length){var c=e.stateConfig.find((function(e){return a[e.stateKey]&&"stateListener"===e.role}));s=!("visible"in((null==c?void 0:c.defaultState)||{}))||((null==c?void 0:c.stateValue)===a[null==c?void 0:c.stateKey]?null===(n=null==c?void 0:c.action)||void 0===n?void 0:n.visible:null===(o=null==c?void 0:c.defaultState)||void 0===o?void 0:o.visible),l="disabled"in((null==c?void 0:c.defaultState)||{})&&((null==c?void 0:c.stateValue)===a[null==c?void 0:c.stateKey]?null===(r=null==c?void 0:c.action)||void 0===r?void 0:r.disabled:null===(i=null==c?void 0:c.defaultState)||void 0===i?void 0:i.disabled)}return{isStateDisabled:l,isStateVisible:s}},_ee=function(e,t){return e&&t[e]?"".concat(t[e],"px"):e},Lee=function(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},Iee=function(e){var t=n.useState(),o=t[0],r=t[1],i=n.useState(!1),a=i[0],s=i[1],l=n.useState(0),c=l[0],u=l[1],p=n.useState(!1),d=p[0],h=p[1],m=I7(),v=m.stateConfig,g=m.stateHandler;return n.useEffect((function(){if(null==e?void 0:e.length){var t=e.find((function(e){return"stateModifier"===e.role&&"view"===e.event}));r(null==t?void 0:t.stateKey)}}),[e]),n.useEffect((function(){var e=function(){u(document.documentElement.scrollTop),h(document.documentElement.scrollTop>c)};return o&&window.addEventListener("scroll",e),function(){o&&window.removeEventListener("scroll",e)}}),[c,o]),n.useEffect((function(){var e;if(o&&!a){var t=document.getElementById(o),n=Lee(t);n&&(s(n),null==g||g(f(f({},v),((e={})[o]=!v[o],e))))}}),[o,a,Lee,d,c]),o},$ee=function(e){var t=n.useState(1),o=t[0],r=t[1],i=o+1<=e,a=o-1>=1,s=n.useCallback((function(t){var n=t instanceof Function?t(o):t;if(!(n>=1&&n<=e))throw new Error("Step not valid");r(n)}),[e,o]);return[o,{goToNextStep:function(){return i&&r((function(e){return e+1}))},goToPrevStep:function(){return a&&r((function(e){return e-1}))},canGoToNextStep:i,canGoToPrevStep:a,setStep:s,reset:function(){return r(1)}}]},zee=function(e){return n.useMemo((function(){return e.filter((function(e){return e.isRequired})).every((function(e){switch(e.consentCaptureProps.type){case"radioButton":return e.consentCaptureProps.value===e.consentCaptureProps.acceptValue;case"checkbox":return e.consentCaptureProps.value;default:return!0}}))}),[e])},Vee=function(e){var o,r=e.initialStepsCount,i=void 0===r?0:r,a=e.children,s=_7(),l=s.items,c=s.groupStepItemsByStepContainer,u=q8(),p=null==u?void 0:u.watch(),d=c(),h=n.useState(null!==(o=d.size)&&void 0!==o?o:i),m=h[0],v=h[1],g=$ee(m),x=g[0],b=g[1],y=b.reset,w=b.setStep,C=b.canGoToPrevStep,E=n.useMemo((function(){return function(e){return e.map((function(e){var t=[],n=function(e){"container"===e.instance&&"form_step"===e.type?t.push(e):"container"===e.instance&&e.items.forEach(n)};return n(e),t})).flat()}(l)}),[l]),O=n.useCallback((function(e){var t,n,o,r,i,a=null==u?void 0:u.getValues(),s=null!==(i=null===(r=null===(o=null===(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||void 0===o?void 0:o.conditionConfig)||void 0===r?void 0:r.criteriaList)&&void 0!==i?i:[],l=N7({criteriaList:s,data:a}),c=s.some((function(e){return l(e)}));return!s.length||c}),[u]),D=n.useMemo((function(){var e=x,t=function(n){var o=O(n),r=E[e++];return!(!o||x===E.length)||(x+1===E.length?o:r?t(r):e+1<=E.length)},n=E[e];return t(n)}),[x,E,O,JSON.stringify(p)]),S=n.useCallback((function(){if(D)for(var e=x+1;e<=E.length;){var t=E[e-1];if(O(t))return void w(e);e++}}),[D,x,E]),k=n.useCallback((function(){if(C)for(var e=x-1;e>=1;){var t=E[e-1];if(O(t))return void w(e);e--}}),[C,x,E,O]),T=n.useMemo((function(){return{canGoToNextStep:D,canGoToPrevStep:C,goToNextStep:S,goToPrevStep:k,currentStep:x,reset:y,setStep:w,steps:m,setInitSteps:v}}),[x,m,D]);return t.jsx(P7.Provider,f({value:T},{children:a}))},Wee=function(e){var n=e.mode,o=void 0===n?"onChange":n,r=e.children,i=q9({mode:o});return t.jsx(X8,f({},i,{children:t.jsx(Vee,{children:r})}))},Uee=function(e,t){switch(t){case"month_year_date":case"day_month_year_date":return e.split("/").reverse().join("-");case"month_day_year_date":var n=e.split("/"),o=n[0],r=n[1],i=n[2];return"".concat(i,"-").concat(o,"-").concat(r);default:return e}},Hee=function(e){var o=e.order,r=void 0===o?0:o,i=e.id,a=e.metadata,s=e.formStepStyles,l=q8(),c=n.useState({}),u=c[0],p=c[1],d=_7(),h=d.formId,g=d.submitHandler,x=d.dateFields,b=d.isFormInEditMode,y=_7().groupStepItemsByStepContainer,w=n.useContext(P7),C=w.currentStep,E=w.canGoToNextStep,O=w.canGoToPrevStep,D=w.goToNextStep,S=w.goToPrevStep,k=w.reset,T=w.setStep,j=r+1,M=y().get(i)||[];return C!==j?null:t.jsxs("div",f({style:f({display:"flex",flexDirection:"column",width:"100%",gap:"16px"},s)},{children:[M.map((function(e){return t.jsx(ute,{item:e,setFormData:p,formData:u},e.id)})),!(null==a?void 0:a.hasOwnButton)&&b&&t.jsxs("div",f({style:{display:"flex",gap:"16px"}},{children:[t.jsx(Ire,{fullWidth:!1,text:O?"Back":"Cancel",variant:"secondary",onClick:function(){if(O)return S(),void gV({message:"Moved to back (previous) step",type:"success"});k(),T(1)}}),t.jsx(Ire,{fullWidth:!1,text:E?"Next":"Submit",variant:"primary",onClick:function(){return m(void 0,void 0,void 0,(function(){var e,t;return v(this,(function(n){switch(n.label){case 0:return[4,l.trigger()];case 1:return(e=n.sent())?E?(D(),gV({message:"Moved to next step successfully",type:"success"}),[2]):(t=l.getValues(),x.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=Uee(n,e.dateType)}})),e&&h&&(null==g||g({formId:h,data:t})),[2]):(gV({message:"Please fill all required fields",type:"error"}),[2])}}))}))}})]}))]}))},qee=function(e){var n=e.children,o=e.wide,r=e.compact,i=e.type,a=e.props,s=e.id,l=e.metadata,c=e.isMobile||fD("xs"),u=o||{},p=u.containerProps,d=void 0===p?{}:p,h=u.containerStyle,m=void 0===h?{}:h,v=r||{},g=v.containerProps,x=void 0===g?{}:g,b=v.containerStyle,y=void 0===b?{}:b,w=c?x:d,C=f(f({},a),w),E=c?y:m,O={slider:t.jsx(Tre,f({},null==C?void 0:C.sliderProps,{children:n})),form:t.jsx(Wee,f({},null==a?void 0:a.formProps,{children:n})),form_step:t.jsx(Hee,f({id:s},null==a?void 0:a.formStepProps,{metadata:l}))},D=Fee(l).isStateVisible,S=Bee(null==l?void 0:l.stateConfig),k=Iee(null==l?void 0:l.stateConfig);return D?t.jsx(Yee,f({containerProps:C,metadata:l,style:E,onClick:S,id:k,type:i},{children:(null==O?void 0:O[i])||n})):null},Xee=function(e){var n=e.config,o=e.tabsProps,r=e.id,i=e.type,a=e.items,s=e.metadata,l=e.formData,c=e.setFormData,u=e.isMobile;return a&&a.length?t.jsx(hte,f({userInitials:"UN",logOutHandler:function(){return console.log("log out")},goToAccountInfo:function(){return console.log("account info page")}},{children:t.jsx(fte,f({initItems:a},{children:t.jsx(qee,f({id:r,type:i,metadata:s,isMobile:u},n,{children:a.map((function(e){return t.jsx(ute,{item:e,tabsProps:o,formData:l,setFormData:c,isMobile:u},e.id)}))}))}))})):null},Gee=["slider","form"],Yee=l.default.div(M7||(M7=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.type,o=void 0===n?"row":n,r=t.containerProps,i=t.metadata,a=t.theme,s=a.sizes,l=a.colors,c=r||{},u=c.border,p=void 0===u?"":u,d=c.position,f=void 0===d?"static":d,h=c.gap,m=c.cornerRadius,v=void 0===m?0:m,g=c.padding,b=c.scrollBehaviour,y=c.styles,w=p.split(" "),C=w[0],E=w[1],O=w[2],D=void 0===O?l.gray3:O,S=l[D]||D,k=(null==i?void 0:i.repeater)&&(null==i?void 0:i.childrenAmount)&&(null==i?void 0:i.childrenAmount)>1?"space-between":"center";return e.css(j7||(j7=x(["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n max-width: 1440px;\n ",";\n ",";\n "],["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n max-width: 1440px;\n ",";\n ",";\n "])),"row"===o?"start":"stretch","column"===o?"column":"row",f,h&&s[h],C,E,S,s[v]||v,k,g?function(e,t){return"string"==typeof e?t[e]?"".concat(t[e],"px"):e:["top","right","bottom","left"].map((function(n){return _ee(e[n]||"",t)})).join(" ")}(g,s):"0px",function(e){return"vertical"===e?"overflow-y: scroll":"horizontal"===e?"overflow-x: scroll":"none"===e?"overflow: visible":"overflow: unset"}(Gee.includes(o)?"none":b),y)})),Kee=function(e){var o=e.attributes,r=e.formData,i=e.config,a=e.htmlElementId,s=o||{},l=s.consent,c=s.conditionConfig,u=(i||{}).props,p=null==l?void 0:l.consent,d=(null==p?void 0:p.defaultSelection)||"confirmation",h=n.useState(""),m=h[0],v=h[1],g=n.useState(d),x=g[0],b=g[1],y=function(e){return v((function(t){return t?"":e}))},w=function(e){return b(e)},C=A7(null==c?void 0:c.conditionConfig,r),E=n.useMemo((function(){switch(null==p?void 0:p.methodOfCapture){case"button":return{type:"button",acceptButton:{text:null==p?void 0:p.confirmationButtonText,onClick:function(){return alert("Accepted")}},denyButton:{text:null==p?void 0:p.rejectionButtonText,onClick:function(){return alert("Denied")}}};case"checkbox":return{id:null==p?void 0:p.id,type:"checkbox",label:JSON.stringify(null==p?void 0:p.acknowledgment),value:!!m,onChange:y};default:return{type:"radioButton",acceptValue:"confirmation",value:x,onChange:w,isRow:!0,items:[{id:"confirmation",label:null==p?void 0:p.confirmationButtonText},{id:"rejection",label:null==p?void 0:p.rejectionButtonText}],name:"consent_confirmation"}}}),[l,m,x]);return p&&C?t.jsxs("div",f({id:a},{children:[t.jsx(Hre,{text:JSON.stringify(p.language),consentCaptureProps:E,clearStyles:!0}),"field_error"===(null==u?void 0:u.state)&&t.jsx(FP,{text:"This field is required"})]})):null},Zee=function(e){var t={text:e.label,validate:function(){return!0}},n=e.rule,o=Jee(n);if(o||Qee(n)){var r=function(e,t){return function(n){return void 0===n&&(n=0),e?n<=t:n>=t}}(o,o?n.MAX:n.MIN);switch(n.type){case"COUNT":t.validate=function(e){return r(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return r(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return r(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return r(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)};break;case"LOWER_CASE_COUNT":t.validate=function(e){return r(((null==e?void 0:e.match(/[a-z]/g))||[]).length)}}}return t},Jee=function(e){return!!(null==e?void 0:e.MAX)},Qee=function(e){return!!(null==e?void 0:e.MIN)},ete=function(e){var n=e.fields,o=e.validations,r=e.form,i=e.validationLabel,a=e.validationState,s=o.map(Zee),l=null==r?void 0:r.watch("password");return t.jsxs(t.Fragment,{children:[n.map((function(e){return t.jsx(Z7,{control:null==r?void 0:r.control,field:e},e.name.toString())})),t.jsx(iee,{value:l,isSubmitted:null==r?void 0:r.formState.isDirty,rules:s,label:i,validationState:a})]})},tte={id:"331258c2-da09-46e2-b79b-1e1dec021837",instance:"container",type:"form",config:{props:{formProps:{mode:"onTouched"},styles:{display:"flex",flexDirection:"column",gap:"24px",padding:"16px"}}},items:[{instance:"molecule",type:"select_field",metadata:{stateConfig:[{role:"stateListener",stateKey:"isFormSubmitted",stateValue:!0,defaultState:{disabled:!1},action:{disabled:!0}},{role:"stateModifier",stateKey:"isFormSubmittedModifier",event:"view"}]},attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Select Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"label-3",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_select",code:"test_select"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[]}}},config:{props:{state:"success",name:"selectField",labelsProps:{tooltipText:"Tooltip text"}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",instance:"molecule",type:"input_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Input Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},inputType:{attributeType:"select",options:[{id:"any",label:"Any"},{id:"numerical",label:"Numerical"},{id:"text",label:"Text"},{id:"email",label:"Email"},{id:"phone_number",label:"Phone Number"}],value:"email"},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_input",code:"test_input"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-1",connectedTo:null}]}}},config:{props:{state:"success",name:"inputField",labelsProps:{tooltipText:"Tooltip text"}}}},{instance:"molecule",type:"radio_button_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Radio Button Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-12",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-22",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_radio",code:"test_radio"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-2",connectedTo:null}]}}},config:{props:{state:"success",name:"radioButtonField",labelsProps:{tooltipText:"Tooltip text"},radioButtonsProps:{internalConfig:{buttonOptionSpacing:"XS"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"checkbox_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Checkbox Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"checkbox_1",label:'[{"type":"paragraph","children":[{"text":"Default checkbox option"}]}]'},{id:"checkbox_2",label:'[{"type":"paragraph","children":[{"text":"Error checkbox option"}]}]'},{id:"checkbox_3",label:'[{"type":"paragraph","children":[{"text":"Disable checkbox option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_checkbox",code:"test_checkbox"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-3",connectedTo:null}]}}},config:{props:{state:"success",name:"checkboxField",labelsProps:{tooltipText:"Checkbox tooltip text"},checkboxesProps:{isRichText:!0,internalConfig:{buttonOptionSpacing:"M"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea09"},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eab",instance:"molecule",metadata:{},type:"button",attributes:{title:{id:"test",isRichText:!0,attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Submit"}]}]'},action:{attributeType:"action",action:{type:"submit"}}},config:{props:{type:"submit",fullWidth:!1}}},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eaa",instance:"molecule",type:"text",attributes:{text:{isRichText:!0,text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Hello World \\"}]}]',attributeType:"text"},seoStyle:{attributeType:"select",value:"h1",options:[{id:"h1",label:"H1"}]},fontVariant:{attributeType:"select",value:"M",options:[{id:"M",label:"M"}]},textColor:{attributeType:"color",color:"purple"}},config:{props:{variant:"custom",styles:{color:"red","font-size":"32px"}}}},{type:"link",id:"e940fff4-fb98-4262-b8bf-b10f23ba9err",instance:"molecule",attributes:{text:{text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Link Here\\"}]}]',isRichText:!0,attributeType:"text"},link:{attributeType:"link",externalLink:"www.google.com",type:"externalLink",name:"link"}},config:{props:{}}}]};JSON.parse('[{"type":"paragraph","children":[{"text":"Accept the consent"}]}]'),JSON.parse('[{"type":"paragraph","children":[{"text":"Test Consent"}]}]');var nte,ote,rte,ite,ate,ste,lte,cte=function(e){var o,r,a,s,l,c,u,p,d,g,x,b,y,w,C,E,O=e.type,D=e.config,S=e.attributes,k=e.tabsProps,T=e.form,j=e.id,M=e.formData,A=e.setFormData,N=e.isMobile,P=e.metadata,R=B7(),B=R.setModalVisible,F=R.setDrawerVisible,_=R.setActionContent,L=_7(),I=L.formId,$=L.submitHandler,z=L.validations,V=L.dateFields,W=n.useContext($7),U=W.userInitials,H=W.logOutHandler,q=W.goToAccountInfo,X=W.username,G=i.useSearchParams(),Y=G[0],K=G[1],Z=(null==S?void 0:S.link)||(null===(r=null===(o=null==S?void 0:S.action)||void 0===o?void 0:o.action)||void 0===r?void 0:r.link),J=n.useCallback((function(e){if(Z){var t=xP(Y,e);K(t)}}),[Y,K,Z]),Q=Fee(P),ee=Q.isStateDisabled,te=Q.isStateVisible,ne=Iee(null==P?void 0:P.stateConfig);if(!te)return null;switch(O){case"text":var oe=S||{},re=oe.text,ie=oe.seoStyle,ae=oe.fontVariant,se=oe.color,le=D.props,ce=null==ie?void 0:ie.value,ue=null==ae?void 0:ae.value,pe=null!==(a=null==se?void 0:se.color)&&void 0!==a?a:null==le?void 0:le.textColor;return t.jsx(h8,f({},re,le,{seoTag:ce,fontVariant:ue,textColor:pe,htmlElementId:ne}));case"button":var de=S||{},fe=de.title,he=de.action,me=(D||{}).props,ve=void 0===me?{}:me,ge=ve.variant,xe=void 0===ge?"primary":ge,be=h(ve,["variant"]),ye=(null==he?void 0:he.action)||{},we=ye.link;ye.popup,ye.drawer;var Ce=ye.download,Ee="text"===xe,Oe={link:function(){return yP(we)?J(null==we?void 0:we.internalLink):bP(null==we?void 0:we.externalLink)},popup:function(){B(!0),_(tte)},drawer:function(){F(!0),_(tte)},download:function(){return Ce?(e=Ce.url,t=Ce.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),m(void 0,void 0,void 0,(function(){var n,o,r,i;return v(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),o=URL.createObjectURL(n),(r=document.createElement("a")).href=o,r.download=t,r.click(),URL.revokeObjectURL(o),[3,4];case 3:return i=a.sent(),gV({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):gV({message:"File not found to download",type:"warning"});var e,t},submit:function(){return m(void 0,void 0,void 0,(function(){var e,t;return v(this,(function(n){switch(n.label){case 0:return[4,null==T?void 0:T.trigger()];case 1:return e=n.sent(),t=null==T?void 0:T.getValues(),V.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=Uee(n,e.dateType)}})),e&&I&&(null==$||$({formId:I,data:null==T?void 0:T.getValues()})),[2]}}))}))},reset:function(){return gV({message:"Reset action triggerred",type:"warning"})},destroy:function(){return gV({message:"Destroy action triggerred",type:"warning"})}};return t.jsx(Ire,f({text:null==fe?void 0:fe.text,isRichText:!0},be,{variant:xe,elementId:j,link:CP(we),onClick:Ee?void 0:Oe[(null===(s=null==he?void 0:he.action)||void 0===s?void 0:s.type)||"link"],href:Ee?CP(we):void 0,disabled:ee,stateConfig:null==P?void 0:P.stateConfig,htmlElementId:ne}));case"image":var De=S||{},Se=De.image,ke=De.link,Te=De.altText,je=(le=D.props,(null==Se?void 0:Se.imageSource)||""),Me=ee?void 0:function(){return yP(ke)?J(null==ke?void 0:ke.internalLink):bP(null==ke?void 0:ke.externalLink)};return t.jsx(kre,f({id:j,src:je,onClick:Me,link:ee?void 0:CP(ke),altText:null==Te?void 0:Te.text},le,{htmlElementId:ne}));case"video":var Ae=S||{},Ne=Ae.video,Pe=Ae.enableCoverImage,Re=Ae.autoPlayVideo,Be=Ae.coverImage,Fe=(le=D.props,(null==Ne?void 0:Ne.videoSource)||"");je=(null==Be?void 0:Be.imageSource)||"";return t.jsx(Ere,f({src:Fe,enableCoverImage:null==Pe?void 0:Pe.value,autoplay:null==Re?void 0:Re.value,coverImageSrc:je},le,{htmlElementId:ne}));case"header_tab_group":var _e=k||{},Le=_e.tabs,Ie=_e.onTabChange,$e=_e.activeTabKey,ze=(le=D.props,D.wide),Ve=D.compact;return t.jsx(Nne,f({},le,{wide:ze,compact:Ve,tabs:Le||[],activeTabKey:$e||"",onTabChange:Ie,isMobile:N,htmlElementId:ne}));case"input_field":var We=D.props,Ue=void 0===We?{}:We,He=Ue.inputProps,qe=void 0===He?{}:He,Xe=Ue.labelsProps,Ge=void 0===Xe?{}:Xe,Ye=Ue.name,Ke=void 0===Ye?"":Ye,Ze=Ue.state,Je=h(Ue,["inputProps","labelsProps","name","state"]),Qe=S||{},et=Qe.label,tt=Qe.required,nt=Qe.conditionConfig,ot=null==(bt=((xt=Qe.dataModelField)||{}).dataModelField)?void 0:bt.defaultValue,rt=(re=(null==et?void 0:et.text)||"placeholder",(null===(l=null==bt?void 0:bt.format)||void 0===l?void 0:l.value)||"text"),it=null===(c=null==bt?void 0:bt.format)||void 0===c?void 0:c.config,at=qe.placeholder||"Enter ".concat(re),st=(yt=!!(null==tt?void 0:tt.value))?"REQUIRED":"OPTIONAL",lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||Ke||j;return z7({dataModelField:bt,setFormData:A}),t.jsx(U7,f({},Je,{name:lt,required:yt,optional:!yt,inputProps:f(f({},qe),{type:rt,config:it,placeholder:at,disabled:ee}),labelsProps:f({label:re,isRichText:!0,ruleLabel:st},Ge),conditionConfig:null==nt?void 0:nt.conditionConfig,control:null==T?void 0:T.control,state:Ze,formData:M,htmlElementId:ne,displayOnlyInputDefaultValue:ot}));case"select_field":var ct=(D||{}).props,ut=void 0===ct?{}:ct,pt=ut.selectProps,dt=void 0===pt?{}:pt,ft=ut.labelsProps,ht=(Ge=void 0===ft?{}:ft,ut.name),mt=void 0===ht?"":ht,vt=(Je=h(ut,["selectProps","labelsProps","name"]),S||{}),gt=(et=vt.label,tt=vt.required,vt.options),xt=vt.dataModelField,bt=(nt=vt.conditionConfig,(xt||{}).dataModelField),yt=(re=null==et?void 0:et.text,null==tt?void 0:tt.value),wt=(lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||mt||j,(null==gt?void 0:gt.options)||[]);ot=(null==dt?void 0:dt.value)||("success"===(null==Je?void 0:Je.state)?null===(u=null==wt?void 0:wt[0])||void 0===u?void 0:u.id:void 0);z7({defaultValue:ot,dataModelField:bt,setFormData:A});at=re?HP(JSON.parse(re)):"placeholder";return t.jsx(nee,f({},Je,{name:lt,control:null==T?void 0:T.control,selectProps:f(f({},dt),{optionsPresentation:"open_dropdown"===(null==Je?void 0:Je.state),options:wt,isRichText:!0,placeholder:(null==dt?void 0:dt.placeholder)||"Select ".concat(at),disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({},Ge),{label:re,isRichText:!0,ruleLabel:yt?"REQUIRED":"OPTIONAL"}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"radio_button_field":var Ct=(D||{}).props,Et=void 0===Ct?{}:Ct,Ot=Et.radioButtonsProps,Dt=void 0===Ot?{}:Ot,St=Et.labelsProps,kt=(Ge=void 0===St?{}:St,Et.name),Tt=void 0===kt?"":kt,jt=(Je=h(Et,["radioButtonsProps","labelsProps","name"]),S||{}),Mt=(et=jt.label,tt=jt.required,gt=jt.options,xt=jt.dataModelField,nt=jt.conditionConfig,bt=(xt||{}).dataModelField,re=null==et?void 0:et.text,yt=null==tt?void 0:tt.value,lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||Tt||j,(null==gt?void 0:gt.options)||[]);ot=(null==Dt?void 0:Dt.value)||("success"===(null==Je?void 0:Je.state)?null===(p=null==Mt?void 0:Mt[0])||void 0===p?void 0:p.id:void 0);return z7({defaultValue:ot,dataModelField:bt,setFormData:A}),t.jsx(_ne,f({},Je,{name:lt,control:null==T?void 0:T.control,radioButtonsProps:f(f({},Dt),{options:Mt,disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({},Ge),{label:re,isRichText:!0,ruleLabel:yt?"REQUIRED":"OPTIONAL"}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"checkbox_field":var At=(D||{}).props,Nt=void 0===At?{}:At,Pt=Nt.checkboxesProps,Rt=void 0===Pt?{}:Pt,Bt=Nt.labelsProps,Ft=(Ge=void 0===Bt?{}:Bt,Nt.name),_t=void 0===Ft?"":Ft,Lt=(Je=h(Nt,["checkboxesProps","labelsProps","name"]),S||{}),It=(et=Lt.label,tt=Lt.required,gt=Lt.options,xt=Lt.dataModelField,nt=Lt.conditionConfig,bt=(xt||{}).dataModelField,re=null==et?void 0:et.text,yt=null==tt?void 0:tt.value,lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||_t||j,(null==gt?void 0:gt.options)||[]);ot=(null==Rt?void 0:Rt.selectedIds)||("success"===(null==Je?void 0:Je.state)?[null===(d=null==It?void 0:It[0])||void 0===d?void 0:d.id]:void 0);return z7({defaultValue:ot,dataModelField:bt,setFormData:A}),t.jsx(eee,f({},Je,{name:lt,control:null==T?void 0:T.control,checkboxesProps:f(f({},Rt),{options:It,disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({ruleLabel:yt?"REQUIRED":"OPTIONAL"},Ge),{label:re,isRichText:!0}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"consent":return t.jsx(Kee,{attributes:S,formData:M,config:D,htmlElementId:ne});case"link":le=D.props,re=S.text;var $t=S.link;return t.jsx(Xre,f({},le,{$variant:null==le?void 0:le.variant,$styles:null==le?void 0:le.styles,text:re.text,isRichText:re.isRichText,disabled:ee,href:ee?void 0:CP($t),htmlElementId:ne}));case"password_setup_field":var zt=S.passwordFieldLabel,Vt=S.reenteredPasswordFieldLabel,Wt=D.props,Ut=Wt.validationLabel,Ht=Wt.passwordInputProps,qt=Wt.reenteredPasswordInputProps,Xt=(Ze=Wt.state,[f(f({},Ht),{name:"password",type:"input",inputType:"password",placeholder:null!==(x=null===(g=null==Ht?void 0:Ht.inputProps)||void 0===g?void 0:g.placeholder)&&void 0!==x?x:"Enter Your Password",label:null!==(b=null==zt?void 0:zt.text)&&void 0!==b?b:"Password",required:!0,rules:{required:"Password is required"},labelsProps:f(f({},zt),{ruleLabel:null}),state:Ze}),f(f({},qt),{name:"reenteredPassword",type:"input",inputType:"password",placeholder:null!==(w=null===(y=null==qt?void 0:qt.inputProps)||void 0===y?void 0:y.placeholder)&&void 0!==w?w:"Re-Enter Your Password",label:null!==(C=null==Vt?void 0:Vt.text)&&void 0!==C?C:"Re-Enter Your Password",required:!0,labelsProps:f(f({},Vt),{ruleLabel:null}),rules:{validate:{passwordMatch:function(e){return e===(null==T?void 0:T.getValues("password"))||"Your passwords do not match each other"}}},state:Ze})]);return t.jsx(ete,{fields:Xt,validations:z||[],form:T,validationState:Ze,validationLabel:(null==z?void 0:z.length)?Ut:void 0});case"account_button":var Gt=D.props,Yt=Gt.avatarProps,Kt=Gt.menuConfig,Zt=f(f({},Yt),{content:f(f({},null==Yt?void 0:Yt.content),{initials:U})}),Jt=f(f({},Kt),{title:X||(null==Kt?void 0:Kt.title),options:null===(E=Kt.options)||void 0===E?void 0:E.map((function(e){switch(e.id){case"log-out":return f(f({},e),{onClick:H});case"account-information":return f(f({},e),{onClick:q});default:return e}}))});return t.jsx(Sne,{avatarProps:Zt,menuConfig:Jt});default:return t.jsx(t.Fragment,{children:"There is no such type of molecule yet."})}},ute=function(e){var n,o=e.item,r=e.tabsProps,i=e.formData,a=e.setFormData,s=e.isMobile,l=q8();if("molecule"===o.instance)return t.jsx(cte,f({},o,{tabsProps:r,form:l,formData:i,setFormData:a,isMobile:s}));if(!o.items||!o.items.length)return null;var c="form"===o.type&&(null===(n=o.config.props)||void 0===n?void 0:n.activeChildrenIds)||[];return c.length?t.jsx(pte,{item:o,activeChildrenIds:c,formData:i,setFormData:a,isMobile:s}):t.jsx(qee,f({id:o.id,type:o.type,isMobile:s},o.config,{metadata:o.metadata},{children:o.items.map((function(e){return t.jsx(ute,{item:e,tabsProps:r,formData:i,setFormData:a,isMobile:s},e.id)}))}))},pte=function(e){var n=e.formData,o=e.setFormData,r=e.isMobile,i=h(e,["formData","setFormData","isMobile"]),a=V7(i);return a?t.jsx(Xee,f({},a,{isMobile:r,formData:n,setFormData:o})):null},dte=function(e){var t=new Map;return e.forEach((function(e){var n,o;"container"===e.instance&&(o="","form_step"===(n=e).type&&(o=n.id),n.items.forEach((function(e){var n;o&&(t.has(o)||t.set(o,[]),null===(n=t.get(o))||void 0===n||n.push(e))})))})),t},fte=function(e){var o=e.initItems,r=void 0===o?[]:o,i=e.children,a=e.submitHandler,s=e.formId,l=e.validations,c=e.editable,u=void 0===c||c,p=e.isFormInEditMode,d=void 0===p||p,h=n.useState([]),m=h[0],v=h[1],g=n.useMemo((function(){return{dateFields:m,setDateFields:v,items:r,groupStepItemsByStepContainer:function(){return dte(r)},submitHandler:a,formId:s,validations:l,editable:u,isFormInEditMode:d}}),[r,s,l,u,m,v,d]);return t.jsx(F7.Provider,f({value:g},{children:i}))},hte=function(e){var o=e.children,r=e.goToAccountInfo,i=e.userInitials,a=e.logOutHandler,s=e.username,l=n.useMemo((function(){return{logOutHandler:a,goToAccountInfo:r,userInitials:i,username:s}}),[a,r,i,s]);return t.jsx($7.Provider,f({value:l},{children:o}))},mte=function(e){var n=iN(),o=n.showAnnotations,r=n.annotationsList,i=n.isMLRReview,a=r.links.findIndex((function(t){return(null==e?void 0:e.elementId)===t.id||(null==e?void 0:e.buttonLink)===t.url}))+1;return{circleJSX:i&&o&&!!a&&t.jsx(bd,f({component:"span",sx:{position:"absolute",bottom:-2,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(o8,{index:a,type:"link"})}))}},vte=e.css(nte||(nte=x(["\n font-weight: 500;\n"],["\n font-weight: 500;\n"]))),gte=function(e){var n=e.item,o=mte().circleJSX;return t.jsxs(t.Fragment,{children:[t.jsx(xte,{children:t.jsx(bte,{src:n.icon,alt:n.icon})}),t.jsxs(jee,{children:[!!n.title&&t.jsx(AP,{font:"XL",value:n.title}),!!n.mainContent&&t.jsx(AP,{font:"M",color:"gray2",value:n.mainContent}),!!n.button&&t.jsxs(Bw,f({display:"inline-flex",position:"relative"},{children:[t.jsx(Mee,f({},n.button,{children:t.jsx(AP,{font:"XL",value:n.button.children,textStyles:vte,color:"blue"})})),o]}))]})]})},xte=l.default.div(ote||(ote=x(["\n width: 56px;\n height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n width: 56px;\n height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),bte=l.default(pR)(rte||(rte=x(["\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n user-select: none;\n -webkit-user-drag: none;\n"],["\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n user-select: none;\n -webkit-user-drag: none;\n"]))),yte=function(e){var n=e.item,o=e.isMobile,r=mte().circleJSX;return t.jsxs(Nee,f({isMobile:o},{children:[t.jsx(Pee,{src:n.icon,alt:n.icon}),t.jsx(Ree,{}),t.jsxs(jee,{children:[!!n.title&&t.jsx(AP,{value:n.title,font:"2XL",color:"white"}),!!n.mainContent&&t.jsx(AP,{font:"M",color:"gray5",value:n.mainContent})]}),!!n.button&&t.jsxs(Bw,f({display:"inline-flex",position:"relative"},{children:[t.jsx(Mee,f({},n.button,{children:t.jsx(LD,{name:"ArrowRight",color:"white"})})),r]}))]}))},wte=function(e){var n=e.columns,o=e.containerStyles,r=e.template,i=void 0===r?"horizontal":r,a=fD("xs");return t.jsx(Cte,f({template:i,style:o},{children:n.map((function(e,n){switch(i){case"card":return t.jsx(Aee,f({isMobile:a},{children:t.jsx(gte,{item:e})}),n);case"with_image":return t.jsx(yte,{item:e,isMobile:a},n);default:return t.jsx(Tee,f({isMobile:a},{children:t.jsx(gte,{item:e})}),n)}}))}))},Cte=l.default.div(ite||(ite=x(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){var t=e.theme.sizes;return"horizontal"!==e.template?t.L:t["3XL"]})),Ete=function(e){var n=e.title,o=e.onItemPress,r=e.options;return t.jsxs(Ote,{children:[!!n&&t.jsxs(t.Fragment,{children:[t.jsx(kV,f({padding:"M"},{children:t.jsx(RP,f({variant:"XL"},{children:n}))})),t.jsx(jV,{marginVertical:"M"})]}),t.jsx(kV,f({padding:"M"},{children:t.jsx(Dte,{children:null==r?void 0:r.map((function(e){var n=e.id,r=e.title,i=e.onClick;return t.jsx(w,f({activeOpacity:.3,onClick:function(){null==o||o(n),null==i||i(n)}},{children:t.jsx(RP,f({behaveAs:"button",variant:"M",color:"gray2"},{children:r}))}),n)}))})}))]})},Ote=l.default.div(ste||(ste=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors;return e.css(ate||(ate=x(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,o.XL,o.M,o.XL,o.S)})),Dte=l.default.div(lte||(lte=x(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),Ste={adjustX:1,adjustY:1},kte=[0,0],Tte={topLeft:{points:["bl","tl"],overflow:Ste,offset:[0,-4],targetOffset:kte},topCenter:{points:["bc","tc"],overflow:Ste,offset:[0,-4],targetOffset:kte},topRight:{points:["br","tr"],overflow:Ste,offset:[0,-4],targetOffset:kte},bottomLeft:{points:["tl","bl"],overflow:Ste,offset:[0,4],targetOffset:kte},bottomCenter:{points:["tc","bc"],overflow:Ste,offset:[0,4],targetOffset:kte},bottomRight:{points:["tr","br"],overflow:Ste,offset:[0,4],targetOffset:kte}},jte={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=jte.F1&&t<=jte.F12)return!1;switch(t){case jte.ALT:case jte.CAPS_LOCK:case jte.CONTEXT_MENU:case jte.CTRL:case jte.DOWN:case jte.END:case jte.ESC:case jte.HOME:case jte.INSERT:case jte.LEFT:case jte.MAC_FF_META:case jte.META:case jte.NUMLOCK:case jte.NUM_CENTER:case jte.PAGE_DOWN:case jte.PAGE_UP:case jte.PAUSE:case jte.PRINT_SCREEN:case jte.RIGHT:case jte.SHIFT:case jte.UP:case jte.WIN_KEY:case jte.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=jte.ZERO&&e<=jte.NINE)return!0;if(e>=jte.NUM_ZERO&&e<=jte.NUM_MULTIPLY)return!0;if(e>=jte.A&&e<=jte.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case jte.SPACE:case jte.QUESTION_MARK:case jte.NUM_PLUS:case jte.NUM_MINUS:case jte.NUM_PERIOD:case jte.NUM_DIVISION:case jte.SEMICOLON:case jte.DASH:case jte.EQUALS:case jte.COMMA:case jte.PERIOD:case jte.SLASH:case jte.APOSTROPHE:case jte.SINGLE_QUOTE:case jte.OPEN_SQUARE_BRACKET:case jte.BACKSLASH:case jte.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Mte(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(RB(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Ate=jte.ESC,Nte=jte.TAB;function Pte(e){var t=e.visible,n=e.setTriggerVisible,o=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=c.useRef(!1),s=function(){var e,i,a,s;t&&o.current&&(null===(e=o.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),n(!1),"function"==typeof r&&r(!1))},l=function(){var e,t,n,r,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fz(e.querySelectorAll("*")).filter((function(e){return Mte(e,t)}));return Mte(e,t)&&n.unshift(e),n}(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),s=i[0];return!!(null==s?void 0:s.focus)&&(s.focus(),a.current=!0,!0)},u=function(e){switch(e.keyCode){case Ate:s();break;case Nte:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};c.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&BR(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}var Rte=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Bte(e,t){var n=e.arrow,o=void 0!==n&&n,r=e.prefixCls,i=void 0===r?"rc-dropdown":r,a=e.transitionName,s=e.animation,l=e.align,u=e.placement,p=void 0===u?"bottomLeft":u,d=e.placements,f=void 0===d?Tte:d,h=e.getPopupContainer,m=e.showAction,v=e.hideAction,g=e.overlayClassName,x=e.overlayStyle,b=e.visible,y=e.trigger,w=void 0===y?["hover"]:y,C=e.autoFocus,E=CR(e,Rte),O=eB(c.useState(),2),D=O[0],S=O[1],k="visible"in e?b:D,T=c.useRef(null);c.useImperativeHandle(t,(function(){return T.current})),Pte({visible:k,setTriggerVisible:S,triggerRef:T,onVisibleChange:e.onVisibleChange,autoFocus:C});var j,M,A,N,P=function(){var t,n="function"==typeof(t=e.overlay)?t():t;return c.createElement(c.Fragment,null,o&&c.createElement("div",{className:"".concat(i,"-arrow")}),n)},R=v;return R||-1===w.indexOf("contextMenu")||(R=["click"]),c.createElement(dz,wR(wR({builtinPlacements:f},E),{},{prefixCls:i,ref:T,popupClassName:KR(g,bR({},"".concat(i,"-show-arrow"),o)),popupStyle:x,action:w,showAction:m,hideAction:R||[],popupPlacement:p,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:k,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"==typeof e.overlay?P:P(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;S(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;S(!1),n&&n(t)},getPopupContainer:h}),(M=e.children,A=M.props?M.props:{},N=KR(A.className,void 0!==(j=e.openClassName)?j:"".concat(i,"-open")),k&&M?c.cloneElement(M,{className:N}):M))}var Fte,_te,Lte,Ite,$te,zte,Vte,Wte,Ute,Hte,qte,Xte,Gte,Yte,Kte,Zte,Jte,Qte,ene,tne,nne,one,rne,ine,ane,sne,lne,cne,une,pne,dne,fne,hne,mne,vne,gne,xne,bne,yne,wne,Cne,Ene,One,Dne=c.forwardRef(Bte),Sne=function(e){var o=e.avatarProps,r=e.menuConfig,i=n.useState(!1),a=i[0],s=i[1],l=t.jsx(Ete,f({},r,{onItemPress:function(){return s(!1)}}));return t.jsx(Dne,f({overlay:l,onVisibleChange:s,visible:a,trigger:"click",animation:"slide-up"},{children:t.jsxs(kne,{children:[t.jsx(wV,f({},o)),t.jsx(PP,{width:12}),t.jsx(Tne,f({isOpen:a},{children:t.jsx(LD,{size:16,name:"CaretDown"})}))]})}))},kne=l.default(w)(Fte||(Fte=x(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),Tne=l.default.div(Lte||(Lte=x(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(t){var n=t.isOpen,o=t.theme,r=o.colors,i=o.sizes;return n&&e.css(_te||(_te=x(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),i.XS,r.gray4)})),jne=l.default.div($te||($te=x(["\n display: flex;\n align-items: flex-start;\n width: fit-content;\n position: relative;\n ","\n"],["\n display: flex;\n align-items: flex-start;\n width: fit-content;\n position: relative;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$vertical,r=t.$spacing,i=t.$styles;return e.css(Ite||(Ite=x(["\n flex-direction: ",";\n gap: ","px;\n ",";\n "],["\n flex-direction: ",";\n gap: ","px;\n ",";\n "])),o?"column":"row",n[r],i)})),Mne=l.default.div(Vte||(Vte=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.width,r=t.left,i=t.isActiveTab,a=t.tabTheme,s=t.selectedTabIndicatorColor;return e.css(zte||(zte=x(["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),r,o,n.XS,u8(s,i,a),n.XS)})),Ane=l.default(w).attrs({withoutOpacityEffect:!0})(qte||(qte=x(["\n position: relative;\n &:hover {\n ","\n }\n"],["\n position: relative;\n &:hover {\n ","\n }\n"])),(function(t){var n=t.theme.colors,o=t.disabled,r=t.tabTheme,i=t.selectedTabTextColor,a=t.isActiveTab,s=t.selectedTabIndicatorColor;if(o)return e.css(Wte||(Wte=x(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),p8,"dark"===r?n.gray2:n.gray3);if(a)return e.css(Ute||(Ute=x(["\n "," {\n background-color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "])),Mne,u8(s,a,r));var l=n[i]||i;return e.css(Hte||(Hte=x(["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "])),Mne,"dark"===r?n.gray1:n.gray5,p8,l||("dark"===r?n.white:n.gray1))})),Nne=function(o){var r,i=o.tabs,a=o.vertical,s=void 0!==a&&a,l=o.activeTabKey,c=void 0===l?null===(r=i[0])||void 0===r?void 0:r.tabKey:l,u=o.onTabChange,p=o.tabTheme,d=void 0===p?"light":p,m=o.wide,v=o.compact,g=o.tabSpacing,x=void 0===g?"XL":g,b=o.isMobile,y=o.htmlElementId,w=h(o,["tabs","vertical","activeTabKey","onTabChange","tabTheme","wide","compact","tabSpacing","isMobile","htmlElementId"]),C=n.useState(c),E=C[0],O=C[1],D=function(e){var t=n.useState([]),o=t[0],r=t[1],i=n.useState([]),a=i[0],s=i[1],l=n.useRef([]);return n.useEffect((function(){var e=function(){var e,t;r(null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.map((function(e){var t;return null!==(t=null==e?void 0:e.clientWidth)&&void 0!==t?t:0}))),s(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.map((function(e){var t;return null!==(t=null==e?void 0:e.offsetLeft)&&void 0!==t?t:0})))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{tabsUnderlineLeft:a,tabsUnderlineWidth:o,tabsRef:l}}(E),S=D.tabsRef,k=D.tabsUnderlineLeft,T=D.tabsUnderlineWidth,j=e.useTheme(),M=j.colors,A=j.sizes,N=b||fD("xs"),P=m||{},R=P.containerProps,B=void 0===R?{}:R,F=P.containerStyle,_=void 0===F?{}:F,L=v||{},I=L.containerProps,$=void 0===I?{}:I,z=L.containerStyle,V=N?$:B,W=N?void 0===z?{}:z:_;return t.jsx(jne,f({id:y,$vertical:s,$spacing:x},V,{$styles:f(f({},V),W)},{children:i.map((function(e,o){return t.jsxs(n.Fragment,{children:[t.jsxs(Ane,f({onClick:function(){var t;e.disabled||(t=null==e?void 0:e.tabKey,null==u||u(t),O(t))},disabled:e.disabled,tabTheme:d,selectedTabTextColor:w.selectedTabTextColor,isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor},{children:[t.jsx(Gre,f({ref:function(e){return S.current[o]=e},vertical:s},e,{isActive:e.tabKey===E,tabTheme:d},w)),t.jsx(PP,{height:"S"}),t.jsx(Mne,{left:k[o],width:T[o],isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor,tabTheme:d})]})),e.divider&&t.jsx(jV,{type:"vertical",color:"dark"===d?M.gray2:M.gray4,style:{height:A.XL+A.S}})]},e.tabKey)}))}))},Pne=l.default(w)(Xte||(Xte=x(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),Rne=l.default.div(Yte||(Yte=x(["\n display: flex;\n cursor: pointer;\n ","\n"],["\n display: flex;\n cursor: pointer;\n ","\n"])),(function(t){var n=t.isOpen,o=t.theme,r=o.colors,i=o.sizes;return n&&e.css(Gte||(Gte=x(["\n border-radius: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n background-color: ",";\n "])),i.XS,r.gray4)})),Bne=function(e){var n=e.textContent,o=e.invertColors;return t.jsx(Fne,f({invertColors:o},{children:t.jsx(AP,{color:o?"white":"primary",font:"XL",value:n})}))},Fne=l.default.div(Zte||(Zte=x(["\n width: 100%;\n text-align: center;\n ","\n"],["\n width: 100%;\n text-align: center;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.invertColors;return e.css(Kte||(Kte=x(["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "])),o.S,o.L,i?r.primary:r.gray5)})),_ne=function(o){var r=o.name,i=void 0===r?"":r,a=o.rules,s=o.styles,l=o.control,c=o.optional,u=o.required,p=o.labelsProps,d=o.defaultValue,h=void 0===d?"":d,m=o.radioButtonsProps,v=o.conditionConfig,g=o.formData,x=o.htmlElementId,b=o.state,y=e.useTheme().sizes,w=q8(),C=A7(v,g);return n.useEffect((function(){g&&w&&w.reset(g)}),[g]),n.useEffect((function(){b&&"field_error"===b&&w&&w.trigger(i)}),[b,w]),C?l?t.jsx(i9,{name:i,control:l,rules:f({required:{value:!!u,message:"This field is required"}},a),defaultValue:h,render:function(e){var n=e.field,o=e.fieldState.error,r=!!o,i=r?null==o?void 0:o.message:void 0,a=u?"REQUIRED":c?"OPTIONAL":void 0;return t.jsxs(Lne,f({id:x,$styles:s},{children:[(null==p?void 0:p.label)&&t.jsx(v8,f({},p,{ruleLabel:a,isError:r})),t.jsx(PP,{height:y.S+y.XS}),t.jsx(Q6,f({},f(f({},m),{isError:r}),n)),!!i&&t.jsx(FP,{text:i})]}))}}):t.jsxs(Lne,f({id:x,$styles:s},{children:[p&&t.jsx(v8,f({},p)),t.jsx(PP,{height:y.S+y.XS}),t.jsx(Q6,f({},m))]})):null},Lne=l.default.div(Jte||(Jte=x(["\n ","\n"],["\n ","\n"])),(function(e){return e.$styles})),Ine=function(e){var n=e.logo,o=e.title,r=e.withCloseIcon,i=e.description,a=e.style,s=e.fontColor,l=e.containerStyles,c=e.isMobile,u=h(e,["logo","title","withCloseIcon","description","style","fontColor","containerStyles","isMobile"]);return t.jsx($ne,f({},u,{style:l},{children:t.jsxs(zne,f({},u,{isMobile:c,style:a},{children:[t.jsxs(Vne,f({withCloseIcon:r},{children:[!!n&&t.jsx(Wne,{src:n,alt:"Alert Logo"}),t.jsxs("div",{children:[t.jsx(AP,{font:"XL",color:null!=s?s:"gray1",value:o}),t.jsx(PP,{height:6}),t.jsx(AP,{font:"M",color:null!=s?s:"gray1",value:i})]})]})),t.jsx(Une,f({},u,{withCloseIcon:r,onClick:function(e){e.stopPropagation(),null==r||r.onClose()}},{children:t.jsx(LD,{size:S.sizes.L,name:"Close"})}))]}))}))},$ne=l.default.div(tne||(tne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.fullWidth,o=t.color,r=void 0===o?"#dad9e2":o;return e.css(ene||(ene=x(["\n min-width: 390px;\n\n ","}\n "],["\n min-width: 390px;\n\n ","}\n "])),n&&e.css(Qte||(Qte=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r))})),zne=l.default.div(one||(one=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.color,o=void 0===n?"linear-gradient(0deg, rgba(11, 0, 61, 0.15), rgba(11, 0, 61, 0.15)), ".concat(S.colors.white):n,r=t.isMobile,i=t.fullWidth;return e.css(nne||(nne=x(["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "],["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "])),o,S.sizes.XL,r?S.sizes.XL:S.sizes["2XL"],i?"none":"0 2px 5px rgba(0, 0, 0, 0.25)",S.sizes.M)})),Vne=l.default.div(ine||(ine=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.withCloseIcon;return e.css(rne||(rne=x(["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "],["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "])),S.sizes.M,n?S.sizes["2XL"]:0)})),Wne=l.default(pR)(ane||(ane=x(["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"],["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"])),S.sizes.XL,S.sizes["3XL"]),Une=l.default(w)(lne||(lne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.withCloseIcon;return e.css(sne||(sne=x(["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "])),n?"block":"none",S.sizes.L,S.sizes.XL)})),Hne=l.default.ul(une||(une=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n;return e.css(cne||(cne=x(["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "],["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "])),"horizontal"===o?"row":"column")})),qne=l.default.li(fne||(fne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n;return e.css(dne||(dne=x(["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "],["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "])),"horizontal"===o&&e.css(pne||(pne=x(["\n width: 100%;\n position: relative;\n flex: 1;\n "],["\n width: 100%;\n position: relative;\n flex: 1;\n "]))))})),Xne=l.default.div(hne||(hne=x(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),Gne=l.default.div(vne||(vne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n,r=t.isLastChild;return"vertical"===o&&e.css(mne||(mne=x(["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "],["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "])),r?"100%":"58px")})),Yne=l.default.span(yne||(yne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isComplete,a=t.isProgress,s=t.orientation;return e.css(bne||(bne=x(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "],["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "])),"horizontal"===s?r.M:r.S,"horizontal"===s?r.M:r.S,i?o.green:o.gray4,"horizontal"===s?0:r.L,r.S,a&&e.css(gne||(gne=x(["\n border: ","px solid ",";\n background-color: ",";\n "],["\n border: ","px solid ",";\n background-color: ",";\n "])),"horizontal"===s?r.XS:2,o.green,o.white),i&&e.css(xne||(xne=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),o.green))})),Kne=l.default.div(One||(One=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n,r=t.isComplete,i=t.theme,a=i.colors,s=i.sizes;return e.css(Ene||(Ene=x(["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "],["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "])),r?a.green:a.gray4,"horizontal"===o&&e.css(wne||(wne=x(["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "],["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "])),s.XS),"vertical"===o&&e.css(Cne||(Cne=x(["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "],["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "])),s.M))})),Zne=function(e){var n=e.stepsNumber,o=e.step,r=o.title,i=o.description,a=o.status,s=e.orientation,l=e.order,c="complete"===a,u="in_progress"===a,p="incomplete"===a;return t.jsx(qne,f({orientation:s},{children:t.jsxs(Gne,f({isLastChild:l===n,orientation:s},{children:[t.jsxs(Xne,{children:[t.jsx(Yne,{orientation:s,isComplete:c,isProgress:u}),"vertical"===s&&t.jsxs(Bw,f({ml:2,gap:.5},{children:[t.jsx(RP,f({variant:"S",color:p?"gray3":"gray1"},{children:r})),t.jsx(RP,f({variant:"XS",color:p?"gray4":"gray3"},{children:i}))]}))]}),l!==n&&t.jsx(Kne,{isComplete:c,orientation:s})]}))}))},Jne=function(e){var n=e.steps,o=e.orientation,r=void 0===o?"horizontal":o,i=e.currentStep;n.length<2&&n.push({title:"",description:""});var a=n[i]||{},s=a.title,l=void 0===s?"":s,c=a.description,u=void 0===c?"":c,p=a.status;return t.jsxs(t.Fragment,{children:[t.jsx(Hne,f({orientation:r},{children:n.map((function(e,o){return t.jsx(Zne,{step:e,stepsNumber:n.length-1,order:o,orientation:r},o)}))})),"horizontal"===r&&t.jsxs(Bw,f({gap:.5},{children:[t.jsx(RP,f({variant:"S",color:"incomplete"===p?"gray3":"gray1"},{children:l})),t.jsx(RP,f({variant:"XS",color:"incomplete"===p?"gray4":"gray3"},{children:u}))]}))]})};r.pdfjs.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(r.pdfjs.version,"/pdf.worker.min.js");var Qne,eoe,toe,noe,ooe,roe,ioe,aoe,soe,loe,coe,uoe,poe,doe,foe,hoe,moe,voe,goe,xoe,boe,yoe,woe,Coe,Eoe,Ooe,Doe,Soe,koe,Toe,joe,Moe,Aoe,Noe,Poe,Roe,Boe,Foe,_oe,Loe,Ioe,$oe,zoe,Voe,Woe,Uoe,Hoe,qoe,Xoe,Goe,Yoe,Koe,Zoe,Joe,Qoe,ere,tre,nre,ore,rre,ire,are,sre,lre,cre,ure,pre=function(e){var o=e.source,i=e.isMobile,a=void 0!==i&&i,s=e.customDocumentStyles,l=n.useState(0),c=l[0],u=l[1],p=n.useState(1),d=p[0],h=p[1],m=n.useState(null),v=m[0],g=m[1],x=s||{},b=x.pageWidth,y=void 0===b?a?342:856:b,w=x.pageHeight,C=void 0===w?a?442:1108:w,E=v!==d;return t.jsx(dre,f({pageWidth:y,pageHeight:C},{children:t.jsxs(fre,f({customDocumentStyles:s},{children:[t.jsxs(r.Document,f({file:o,renderMode:"canvas",className:"document",onLoadSuccess:function(e){var t=e.numPages;u(t)},loading:t.jsx(eh,{size:60})},{children:[E&&v?t.jsx(r.Page,{pageNumber:v,renderTextLayer:!1,className:"custom-pdf"},v):null,t.jsx(r.Page,{pageNumber:d,renderTextLayer:!1,className:"".concat(E?"loadingPage":"custom-pdf"),onRenderSuccess:function(){return g(d)}},d)]})),t.jsxs(hre,{children:[t.jsx(mre,f({disable:d<=1,onClick:function(){return h((function(e){return e+(e<=1?0:-1)}))},customDocumentStyles:s},{children:t.jsx(LD,{name:"CaretLeft",size:33})})),t.jsx(vre,{type:"number",size:"small",customDocumentStyles:s,onChange:function(e){var t=e.target.value,n=e.nativeEvent;return function(e,t){if(!Number.isNaN(e)){var n=Math.round(e);n>c?!Number.isNaN(t)&&t>0&&t<=c&&h(t):n<1||h(n)}}(+t,+((null==n?void 0:n.data)||""))},value:d}),t.jsx(mre,f({disabled:!0},{children:t.jsx(gre,{})})),t.jsx(RP,f({variant:"S",color:(null==s?void 0:s.pageNumberColor)||"white"},{children:c})),t.jsx(mre,f({disable:d>=c,onClick:function(){return h((function(e){return e+(e>=c?0:1)}))},customDocumentStyles:s},{children:t.jsx(LD,{name:"CaretRight"})}))]})]}))}))},dre=l.default.div(eoe||(eoe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.pageWidth,o=t.pageHeight;return e.css(Qne||(Qne=x(["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "],["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "])),o,n,o,n)})),fre=l.default.div(toe||(toe=x(["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"],["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"])),(function(e){var t=e.theme.colors,n=e.customDocumentStyles,o=(void 0===n?{}:n).wrapperBackgroundColor,r=void 0===o?"gray1":o;return t[r]||r})),hre=l.default.div(ooe||(ooe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(noe||(noe=x(["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "],["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])),o.gray4,r.S,r.S)})),mre=l.default(w)(ioe||(ioe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.disable,a=t.active,s=t.customDocumentStyles,l=void 0===s?{}:s,c=l.paginationArrowColor,u=void 0===c?"gray4":c,p=l.disabledPaginationArrowColor,d=void 0===p?"gray2":p;return e.css(roe||(roe=x(["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "],["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "])),r.XL,r.XL,r.XS,a?o.gray2:"transparent",i?o[d]||d:o[u]||u)})),vre=l.default(GO)(soe||(soe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=n.sizes,a=t.customDocumentStyles,s=(void 0===a?{}:a).pageNumberColor,l=void 0===s?"white":s;return e.css(aoe||(aoe=x(["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "],["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "])),i["2XL"],o.gray3,i.XS,i.XS,i.S,o[l]||l,r.S)})),gre=l.default(_h)(coe||(coe=x(["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"],["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(loe||(loe=x(["\n height: ","px;\n background-color: ",";\n "],["\n height: ","px;\n background-color: ",";\n "])),r.L,o.gray2)})),xre=function(o){var r=o.templateType,i=o.title,a=o.name,s=o.inputProps,l=o.isMobile,c=o.menuConfig,u=h(o,["templateType","title","name","inputProps","isMobile","menuConfig"]),p=n.useState(!1),d=p[0],m=p[1],v=t.jsx(Ete,f({},c,{onItemPress:function(){return m(!1)}})),g=e.css(uoe||(uoe=x(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),l?275:330);return t.jsxs(bre,f({isMobile:l},{children:[t.jsx(AP,{value:i,font:"2XL",color:"black"}),"feed_b"===r&&t.jsxs(Bw,f({direction:"row",gap:2,alignItems:"center",justifyContent:"center"},{children:[t.jsx(U7,f({name:null!=a?a:"",inputProps:f(f({},s),{leftIcon:{name:"Search"},placeholder:"Search"}),styles:g},u)),t.jsx(Dne,f({overlay:v,onVisibleChange:m,visible:d,trigger:"click",animation:"slide-up"},{children:t.jsx(yre,{children:t.jsx(LD,{name:"Filter"})})}))]}))]}))},bre=l.default(Bw)(foe||(foe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.isMobile,o=t.theme.sizes;return e.css(doe||(doe=x(["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "],["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "])),o.S,n&&e.css(poe||(poe=x(["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "],["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "]))))})),yre=l.default(w)(moe||(moe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(hoe||(hoe=x(["\n border-radius: ","px;\n border: 1.5px solid ",";\n "],["\n border-radius: ","px;\n border: 1.5px solid ",";\n "])),r.S,o.gray2)})),wre=function(e){var n=e.name,o=e.icon,r=e.active,i=e.activeColor,a=e.onNavigate;return t.jsxs(Cre,f({activeOpacity:.9,onClick:a},{children:[t.jsx(TV,f({padding:S.sizes.XS},{children:t.jsx(o,{size:32,color:r?i:S.colors.gray3})})),t.jsx(RP,f({color:r?i:S.colors.gray3,variant:"S"},{children:n}))]}))},Cre=l.default(w)(voe||(voe=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),Ere=function(o){var r=o.style,i=o.src,a=o.width,s=o.height,l=o.template,c=o.autoplay,u=o.enableCoverImage,p=o.coverImageSrc,d=o.styles,h=o.htmlElementId,m=n.useRef(null),v="auto_play"===l||c,g=n.useState(!1),b=g[0],y=g[1],w=function(){m.current&&(m.current.pause(),m.current.muted=!1,y(!1))},C=function(){var e;return null===(e=m.current)||void 0===e?void 0:e.play().then((function(){return y(!0)}))};if(n.useEffect((function(){v&&m.current?(m.current.muted=!0,C()):w()}),[v]),!i)return null;var E=e.css(goe||(goe=x(["\n ","\n "],["\n ","\n "])),d);return t.jsxs(Ore,f({id:h,width:a,height:s,style:r,$styles:E},{children:[t.jsx(Sre,f({muted:!0,ref:m,width:a,style:r,onClick:w,autoPlay:v,$styles:E,poster:u?p:void 0},{children:t.jsx("source",{width:"100%",height:"100%",src:i})})),!b&&t.jsx(Dre,f({onClick:C,$styles:E},{children:t.jsx(LD,{name:"Play"})}))]}))},Ore=l.default.div(boe||(boe=x(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(t){var n=t.width,o=t.height,r=t.$styles;return e.css(xoe||(xoe=x(["\n width: ",";\n height: ",";\n ",";\n "],["\n width: ",";\n height: ",";\n ",";\n "])),n?"".concat(n,"px"):"auto",o?"".concat(o,"px"):"100%",r)})),Dre=l.default(w)(woe||(woe=x(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"],["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"])),(function(t){var n=t.$styles;return e.css(yoe||(yoe=x(["\n ","\n "],["\n ","\n "])),n)})),Sre=l.default.video(Eoe||(Eoe=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(t){var n=t.$styles;return e.css(Coe||(Coe=x(["\n ","\n "],["\n ","\n "])),n)})),kre=function(e){var n,o=e.src,r=e.onClick,i=e.link,a=void 0===i?"":i,s=e.altText,l=void 0===s?"":s,c=e.styles,u=e.width,p=e.height,d=e.id,h=e.behaveAs,m=void 0===h?"regular":h,v=e.cornerRadius,g=void 0===v?0:v,x=e.stateConfig,b=e.htmlElementId,y=Bee(x),w={src:o,width:u,$styles:c,height:p,alt:l,cornerRadius:g,onClick:function(){null==r||r(),y()}},C=iN(),E=C.showAnnotations,O=C.annotationsList,D=C.isMLRReview,S=O.links.findIndex((function(e){return d===e.moleculeId||a===e.url}))+1,k=null!==(n=O.tags.map((function(e,t){var n;return(null===(n=e.moleculeIds)||void 0===n?void 0:n.some((function(e){return e===d})))?t:-1})))&&void 0!==n?n:[],T=k.length>0?k.filter((function(e){return-1!==e})):[];if(!o)return null;var j={background:t.jsx(dR,f({},w)),regular:t.jsx(pR,f({},w))};return t.jsxs("div",f({id:b,style:{position:"regular"===m?"relative":"static"}},{children:[j[m],D&&E&&t.jsx("span",f({style:{position:"absolute",bottom:-3,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsxs(i8,{children:[!!S&&t.jsx(o8,{index:S,type:"link"}),T.length>0&&T.map((function(e){return t.jsx(o8,{index:e+1,type:"message"})}))]})}))]}))},Tre=function(e){var o=e.children,r=e.autoplay,i=void 0===r||r,a=e.autoplayDuration,s=void 0===a?5e3:a,l=n.useRef(null),c=n.useRef(null),u=n.useState(1),p=u[0],d=u[1],h=n.useState(0),m=h[0],v=h[1],x=s<100?1e3*s:s,b=n.useCallback((function(e){null!==c.current&&"400ms"!==c.current.style.transitionDuration&&(c.current.style.transitionDuration="400ms","prev"===e?p<=1?(v(0),d(null==o?void 0:o.length)):(v(c.current.clientWidth*(p-1)),d((function(e){return e-1}))):"next"===e&&(p>=o.length?(v(c.current.clientWidth*(o.length+1)),d(1)):(v(c.current.clientWidth*(p+1)),d((function(e){return e+1})))))}),[p,o]);n.useEffect((function(){var e=function(){null!==c.current&&(p<=1&&(c.current.style.transitionDuration="10ms",v(c.current.clientWidth*p)),p>=o.length&&(c.current.style.transitionDuration="10ms",v(c.current.clientWidth*o.length)),c.current.style.transitionDuration="10ms")};return document.addEventListener("transitionend",e),function(){document.removeEventListener("transitionend",e)}}),[p,o]),n.useEffect((function(){var e=function(){l.current&&clearInterval(l.current),c.current&&v(p>1?c.current.clientWidth*p:c.current.clientWidth),i&&(l.current=setInterval((function(){b("next")}),x))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[p,i,x,o]),n.useEffect((function(){return i&&(l.current&&clearInterval(l.current),l.current=setInterval((function(){b("next")}),x)),function(){l.current&&clearInterval(l.current)}}),[b,i,x]);var y=n.useMemo((function(){if(o.length>1){var e=n.Children.map(o,(function(e,n){return t.jsx(Are,{children:e},n)}));return g(g([t.jsx(Are,{children:o[o.length-1]},o.length+1)],e,!0),[t.jsx(Are,{children:o[0]},o.length+2)],!1)}return t.jsx(Are,{children:o[0]})}),[o]);n.useLayoutEffect((function(){null!==c.current&&v(c.current.clientWidth*p)}),[]);return t.jsxs(jre,{children:[t.jsx(Mre,f({ref:c,translateX:m},{children:y})),t.jsxs(Nre,{children:[t.jsx(Pre,f({arrowSide:"left"},{children:t.jsx(c8,{size:32,color:"white",name:"CaretLeft",withoutOpacityEffect:!0,onClick:function(){return b("prev")}})})),t.jsx(Rre,{children:n.Children.map(o,(function(e,n){return t.jsx(w,f({onClick:function(){return e=n,void(c.current&&(c.current.style.transitionDuration="400ms",d(e+1),v(c.current.clientWidth*(e+1))));var e}},{children:t.jsx(a8,{active:n===p-1,activeColor:"white",inactiveColor:"gray3"})}),n)}))}),t.jsx(Pre,f({arrowSide:"right"},{children:t.jsx(c8,{size:32,color:"white",name:"CaretRight",withoutOpacityEffect:!0,onClick:function(){return b("next")}})}))]})]})},jre=l.default.section(Ooe||(Ooe=x(["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"],["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"])),(function(e){return e.theme.colors.white})),Mre=l.default.ul(Soe||(Soe=x(["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"],["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"])),(function(t){var n=t.translateX;return e.css(Doe||(Doe=x(["\n transform: translate3d(","px, 0, 0);\n "],["\n transform: translate3d(","px, 0, 0);\n "])),-n)})),Are=l.default.li(koe||(koe=x(["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"],["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"]))),Nre=l.default.div(joe||(joe=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Toe||(Toe=x(["\n margin: ","px 100px;\n "],["\n margin: ","px 100px;\n "])),n.XL)})),Pre=l.default.div(Moe||(Moe=x(["\n filter: ",";\n"],["\n filter: ",";\n"])),(function(e){var t=e.theme.colors,n=e.arrowSide;return n?"drop-shadow(".concat("left"===n?"1px":"-1px"," 0 2px ").concat(t.gray1,")"):"unset"})),Rre=l.default.div(Aoe||(Aoe=x(["\n display: flex;\n"],["\n display: flex;\n"]))),Bre=l.default.button(Roe||(Roe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.fullWidth,l=t.variant,c=void 0===l?"primary":l,u=t.size,p=void 0===u?"medium":u,d="primary"===c?r.primary:"transparent",f="primary"===c?r.white:r.gray2,h="medium"===p?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px");return e.css(Poe||(Poe=x(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),h,"medium"===p?51:33,d,"medium"===p?i.XL:i.L,f,o.S,s?"100%":"auto","primary"===c?D(r.primary,-.38):r.gray2,a&&e.css(Noe||(Noe=x(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),O(r.primary)))})),Fre=l.default(Bre).attrs({variant:"secondary"})(_oe||(_oe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.disabled;return e.css(Foe||(Foe=x(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),n.gray2,n.gray2,n.gray2,n.gray2,o&&e.css(Boe||(Boe=x(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),n.gray3,n.gray3))})),_re=l.default(Bre).attrs({variant:"custom"})(Woe||(Woe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.size,l=void 0===s?"medium":s,c=t.hoverButtonColor,u=t.hoverStrokeColor,p=void 0===u?"#00000040":u,d=t.buttonFont,f=void 0===d?"XL":d,h=t.textColor,m=void 0===h?"white":h,v=t.textSize,g=void 0===v?16:v,b=t.verticalPadding,y=t.horizontalPadding,w=t.buttonColor,C=void 0===w?"primary":w,E=t.buttonStroke,S=void 0===E?"primary":E,k=t.cornerRadius,T=void 0===k?"S":k,j=t.inactiveButtonColor,M=t.inactiveStrokeColor,A=t.inactiveTextColor,N=t.styles,P=r[C]||C,R="medium"===l?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px"),B="medium"===l?i.XL:i.L,F=C?r[C]||C:r[p]||p;return e.css(Voe||(Voe=x(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),y||b?"".concat(o[b||"M"],"px ").concat(o[y||"M"],"px"):R,r[S]||S,P,g,f?i[f]:B,r[m]||m,"number"==typeof T?T:o[T],D(F,-.33),r[p]||p,c&&e.css(Loe||(Loe=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[c]||c),a&&e.css(zoe||(zoe=x(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),O(P||r.primary),r[A]||A,j&&e.css(Ioe||(Ioe=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[j]||j),M&&e.css($oe||($oe=x(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[M]||M)),N)})),Lre=l.default.div(Hoe||(Hoe=x(["\n display: inline-flex;\n ","\n"],["\n display: inline-flex;\n ","\n"])),(function(t){var n=t.$fullWidth,o=t.$styles;return e.css(Uoe||(Uoe=x(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),n?"100%":"auto",o)})),Ire=function(n){var o,r=n.text,i=n.onClick,a=n.loading,s=n.disabled,l=n.variant,c=void 0===l?"primary":l,u=n.isRichText,p=n.fullWidth,d=void 0===p||p,m=n.elementId,v=n.link,g=n.containerStyle,b=n.children,y=n.buttonStyle,w=n.size,C=n.textColor,E=void 0===C?"gray2":C,O=n.inactiveTextColor,D=void 0===O?"gray3":O,S=n.state,k=void 0===S?"enabled":S,T=n.href,j=n.stateConfig,M=n.htmlElementId,A=h(n,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href","stateConfig","htmlElementId"]),N={primary:Bre,secondary:Fre,custom:_re,text:fR}[c],P=s||"disabled"===k,R=e.useTheme().colors,B=iN(),F=B.showAnnotations,_=B.annotationsList,L=B.isMLRReview,I=_.links.findIndex((function(e){return m===e.moleculeId||v===e.url}))+1,$=Bee(j);if(!r&&!b)return null;var z={primary:"white",secondary:R[E],custom:R[E]||E,text:"blue"},V={primary:"white",secondary:R[D],custom:R[D]||D,text:R[D]},W=e.css(Xoe||(Xoe=x(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==A?void 0:A.textSize)&&e.css(qoe||(qoe=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),A.textSize),y,A.styles),U=u?t.jsx(AP,{color:P?V[c]:z[c],font:"custom"===c&&A.buttonFont?A.buttonFont:"XL",value:r,extraTextProps:{behaveAs:"button",variant:"custom"===c&&A.buttonFont?A.buttonFont:"XL",styles:W}}):r;return t.jsx(Lre,f({},I&&((o={id:kP})["data-".concat(jP)]=v,o["data-".concat(MP)]=m,o),{id:I?"annotation-link":M,"data-link-url":v,"data-link-text":m,className:"z-button-container",$fullWidth:d,$styles:g},{children:t.jsxs(N,f({fullWidth:d,variant:c,disabled:a||P,onClick:function(){null==i||i(),$()},style:f(f({},y),null==A?void 0:A.styles),size:w,textColor:E,inactiveTextColor:D,href:"text"===c?T:void 0},A,{children:[U||b,a&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{width:6}),t.jsx(uR,{color:"gray1"})]}),L&&F&&!!I&&t.jsx("span",f({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(o8,{index:I,type:"link"})}))]}))}))},$re=function(e){var n=e.children,o=e.wrapperStyles,r=e.padding,i=void 0===r?64:r,a=e.onKeyDown,s=e.modalStyles,l=h(e,["children","wrapperStyles","padding","onKeyDown","modalStyles"]);return t.jsx(ih,f({},l,{style:s,onKeyDown:a},{children:t.jsxs(zre,f({style:f({padding:i},o)},{children:[n,t.jsx(Vre,f({onClick:null==l?void 0:l.onClose},{children:t.jsx(LD,{size:32,name:"Close",color:S.colors.gray1})}))]}))}))},zre=l.default.div(Yoe||(Yoe=x(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.$styles;return e.css(Goe||(Goe=x(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,o.background,i)})),Vre=l.default(w)(Zoe||(Zoe=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme.sizes;return e.css(Koe||(Koe=x(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),C(n.L),n["4XL"],n["4XL"])})),Wre=function(e){var n;switch(e.type){case"checkbox":n=t.jsx(zP,{id:e.id,isSelected:e.value,onClick:e.onChange,label:e.label,isRichText:!0});break;case"button":n=t.jsxs(Bw,f({direction:"row",gap:2},{children:[t.jsx(Ire,f({fullWidth:!1},e.acceptButton)),t.jsx(Ire,f({variant:"secondary",fullWidth:!1},e.denyButton))]}));break;case"radioButton":n=t.jsx(Q6,f({},e));break;default:n=null}return t.jsx(Ure,{children:n})},Ure=l.default.div(Joe||(Joe=x(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),Hre=function(e){var n=e.text,o=e.consentCaptureProps,r=e.containerStyles,i=e.clearStyles,a=void 0!==i&&i;return t.jsxs(qre,f({clearStyles:a,style:r},{children:[t.jsx(AP,{value:n,font:"M"}),t.jsx(Wre,f({},o))]}))},qre=l.default.div(ere||(ere=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return!t.clearStyles&&e.css(Qoe||(Qoe=x(["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "],["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "])),o.white,r["3XL"],r.XS,r.M)})),Xre=function(e){var n=e.text,o=e.isRichText,r=e.htmlElementId,i=h(e,["text","isRichText","htmlElementId"]);return n?o?t.jsx(AP,{htmlElementId:r,value:n,renderElementWrapperProps:i,renderElementWrapperComponent:fR}):t.jsx(fR,f({},i,{id:r},{children:n})):null},Gre=u.default.forwardRef((function(o,r){var i,a,s=o.options,l=o.onClick,c=o.text,u=o.tabKey,p=o.vertical,d=o.onOptionClick,m=o.tabTheme,v=void 0===m?"light":m,g=o.tabFont,x=void 0===g?"L":g,b=o.tabPadding,y=o.selectedTabIndicatorColor,w=o.textSize,C=o.defaultTabTextColor,E=h(o,["options","onClick","text","tabKey","vertical","onOptionClick","tabTheme","tabFont","tabPadding","selectedTabIndicatorColor","textSize","defaultTabTextColor"]),O=n.useState(!1),D=O[0],S=O[1],k=n.useRef(null),T=e.useTheme().sizes;n.useImperativeHandle(r,(function(){return k.current}));var j=!!(null==s?void 0:s.length),M=t.jsx(Ete,{options:s,onItemPress:function(e){null==d||d(e),S(!1)}});return t.jsx(Dne,f({overlay:M,onVisibleChange:j?S:void 0,visible:D,overlayStyle:{zIndex:5e3,paddingTop:T.M},trigger:"click",animation:"slide-up"},{children:t.jsxs(d8,f({ref:k},E,{tabTheme:v,onClick:function(){null==l||l(u),j&&S(!0)}},{children:[t.jsx(p8,f({behaveAs:"button",textSize:w,variant:x,tabFont:x,tabPadding:b,tabTheme:v,defaultTabTextColor:C},{children:c})),j&&t.jsx(f8,f({disabled:E.disabled,tabTheme:v,isActive:D,defaultTabTextColor:C},{children:t.jsx(LD,{name:"CaretDown",size:T.L})})),p&&t.jsx(Mne,{style:{bottom:-T.S},left:0,width:E.isActive&&null!==(a=null===(i=k.current)||void 0===i?void 0:i.clientWidth)&&void 0!==a?a:0,tabTheme:v,selectedTabIndicatorColor:y})]}))}))})),Yre=l.default(RP).attrs({variant:"M"})(tre||(tre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Kre=l.default(RP).attrs({variant:"2XL"})(nre||(nre=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.indigo})),Zre=l.default.div(ore||(ore=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n column-gap: ","px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),Jre=function(){return gV({type:"error",message:"You need to accept the consents to do that"})},Qre=l.default(RP)(rre||(rre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),eie=l.default(fR)(ire||(ire=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),tie=l.default(bd)(sre||(sre=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(are||(are=x(["\n padding: ","px;\n text-align: center;\n background: ",";\n border: 1px dashed ",";\n border-radius: ","px;\n "],["\n padding: ","px;\n text-align: center;\n background: ",";\n border: 1px dashed ",";\n border-radius: ","px;\n "])),r.L,o.gray5,o.gray3,r.M)})),nie=[{iconName:"Mobile",infoText:"Text Message",isActive:!1,value:"sms"},{iconName:"Mail",infoText:"Email",isActive:!1,value:"email"}],oie={name:"code",options:[],label:"Code",type:"input",placeholder:"Enter Six Digit Code",required:!0,tooltip:"Enter the code that was sent to you in the box below.",inputType:"number",maxLength:6},rie=l.default.div(lre||(lre=x(["\n display: flex;\n column-gap: ","px;\n"],["\n display: flex;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),iie=function(e){var o=e.logoUrl,r=e.onSubmit,i=e.onBack,a=e.onNext,s=n.useState(),l=s[0],c=s[1],u=n.useState(""),p=u[0],d=u[1],h=q9({defaultValues:{code:p},mode:"onChange"}),g=h.control,x=h.formState,b=h.getValues,y=$ee(2),w=y[0],C=y[1],E=C.canGoToNextStep,O=C.canGoToPrevStep,D=C.goToNextStep,k=C.goToPrevStep,T=[t.jsx(hee,{handleChange:c,cards:nie,initialValue:l}),t.jsx(Z7,{control:g,field:oie})],j=1===w?!l:!x.isDirty||!x.isValid;return t.jsxs(t.Fragment,{children:[t.jsx(pR,{height:S.sizes["2XL"],src:o,alt:"App Logo"}),t.jsx(PP,{height:"3XL"}),t.jsx(RP,f({variant:"2XL",color:"indigo"},{children:"Two factor authentication."})),t.jsx(PP,{height:14}),t.jsx(RP,f({variant:"M"},{children:"How would you like to receive your code that will be used to authenticate your account?"})),t.jsx(PP,{height:"XL"}),T[w-1],t.jsx(PP,{height:"XL"}),t.jsxs(rie,{children:[t.jsx(Ire,{disabled:j,onClick:function(){return m(void 0,void 0,void 0,(function(){var e;return v(this,(function(t){return E&&l?(null==a||a(l).then(D),[2]):(e=b(),d(e.code),null==r||r(e),[2])}))}))},text:"Next",variant:"primary"}),t.jsx(Ire,{onClick:function(){O?k():null==i||i()},text:"Back",variant:"secondary"})]})]})},aie=l.default(RP)(cre||(cre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),sie=l.default(fR)(ure||(ure=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S}));function lie(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function cie(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function uie(e){return uie="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},uie(e)}function pie(e){cie(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===uie(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function die(e,t){cie(2,arguments);var n=pie(e).getTime(),o=lie(t);return new Date(n+o)}var fie={};function hie(){return fie}function mie(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function vie(e){return vie="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},vie(e)}function gie(e){return cie(1,arguments),e instanceof Date||"object"===vie(e)&&"[object Date]"===Object.prototype.toString.call(e)}function xie(e){if(cie(1,arguments),!gie(e)&&"number"!=typeof e)return!1;var t=pie(e);return!isNaN(Number(t))}function bie(e,t){cie(2,arguments);var n=lie(t);return die(e,-n)}function yie(e){cie(1,arguments);var t=1,n=pie(e),o=n.getUTCDay(),r=(o<t?7:0)+o-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function wie(e){cie(1,arguments);var t=pie(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=yie(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=yie(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Cie(e){cie(1,arguments);var t=wie(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=yie(n);return o}function Eie(e,t){var n,o,r,i,a,s,l,c;cie(1,arguments);var u=hie(),p=lie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=pie(e),f=d.getUTCDay(),h=(f<p?7:0)+f-p;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function Oie(e,t){var n,o,r,i,a,s,l,c;cie(1,arguments);var u=pie(e),p=u.getUTCFullYear(),d=hie(),f=lie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:d.firstWeekContainsDate)&&void 0!==o?o:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,f),h.setUTCHours(0,0,0,0);var m=Eie(h,t),v=new Date(0);v.setUTCFullYear(p,0,f),v.setUTCHours(0,0,0,0);var g=Eie(v,t);return u.getTime()>=m.getTime()?p+1:u.getTime()>=g.getTime()?p:p-1}function Die(e,t){var n,o,r,i,a,s,l,c;cie(1,arguments);var u=hie(),p=lie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=Oie(e,t),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var h=Eie(f,t);return h}function Sie(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var kie=function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return Sie("yy"===t?o%100:o,t.length)},Tie=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Sie(n+1,2)},jie=function(e,t){return Sie(e.getUTCDate(),t.length)},Mie=function(e,t){return Sie(e.getUTCHours()%12||12,t.length)},Aie=function(e,t){return Sie(e.getUTCHours(),t.length)},Nie=function(e,t){return Sie(e.getUTCMinutes(),t.length)},Pie=function(e,t){return Sie(e.getUTCSeconds(),t.length)},Rie=function(e,t){var n=t.length,o=e.getUTCMilliseconds();return Sie(Math.floor(o*Math.pow(10,n-3)),t.length)},Bie="midnight",Fie="noon",_ie="morning",Lie="afternoon",Iie="evening",$ie="night",zie={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return kie(e,t)},Y:function(e,t,n,o){var r=Oie(e,o),i=r>0?r:1-r;return"YY"===t?Sie(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Sie(i,t.length)},R:function(e,t){return Sie(wie(e),t.length)},u:function(e,t){return Sie(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Sie(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Sie(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Tie(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return Sie(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=function(e,t){cie(1,arguments);var n=pie(e),o=Eie(n,t).getTime()-Die(n,t).getTime();return Math.round(o/6048e5)+1}(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Sie(r,t.length)},I:function(e,t,n){var o=function(e){cie(1,arguments);var t=pie(e),n=yie(t).getTime()-Cie(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):Sie(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):jie(e,t)},D:function(e,t,n){var o=function(e){cie(1,arguments);var t=pie(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),r=n-o;return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):Sie(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Sie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Sie(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return Sie(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Fie:0===r?Bie:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Iie:r>=12?Lie:r>=4?_ie:$ie,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Mie(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Aie(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):Sie(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):Sie(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Nie(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Pie(e,t)},S:function(e,t){return Rie(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Wie(r);case"XXXX":case"XX":return Uie(r);default:return Uie(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Wie(r);case"xxxx":case"xx":return Uie(r);default:return Uie(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Vie(r,":");default:return"GMT"+Uie(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Vie(r,":");default:return"GMT"+Uie(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return Sie(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return Sie((o._originalDate||e).getTime(),t.length)}};function Vie(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+Sie(i,2)}function Wie(e,t){return e%60==0?(e>0?"-":"+")+Sie(Math.abs(e)/60,2):Uie(e,t)}function Uie(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+Sie(Math.floor(r/60),2)+n+Sie(r%60,2)}var Hie=zie,qie=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Xie=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Gie={p:Xie,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return qie(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",qie(r,t)).replace("{{time}}",Xie(i,t))}},Yie=Gie,Kie=["D","DD"],Zie=["YY","YYYY"];function Jie(e){return-1!==Kie.indexOf(e)}function Qie(e){return-1!==Zie.indexOf(e)}function eae(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var tae={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function nae(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var oae={date:nae({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:nae({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:nae({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function iae(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var aae={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:iae({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:iae({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:iae({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:iae({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:iae({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function sae(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,s=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?cae(l,(function(e){return e.test(s)})):lae(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function lae(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function cae(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var uae,pae={ordinalNumber:(uae={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(uae.matchPattern);if(!n)return null;var o=n[0],r=e.match(uae.parsePattern);if(!r)return null;var i=uae.valueCallback?uae.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(o.length);return{value:i,rest:a}}),era:sae({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:sae({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:sae({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:sae({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:sae({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},dae={code:"en-US",formatDistance:function(e,t,n){var o,r=tae[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:oae,formatRelative:function(e,t,n,o){return rae[e]},localize:aae,match:pae,options:{weekStartsOn:0,firstWeekContainsDate:1}},fae=dae,hae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vae=/^'([^]*?)'?$/,gae=/''/g,xae=/[a-zA-Z]/;function bae(e){var t=e.match(vae);return t?t[1].replace(gae,"'"):e}var yae,wae,Cae,Eae,Oae,Dae,Sae,kae,Tae,jae,Mae,Aae,Nae,Pae,Rae,Bae,Fae,_ae,Lae,Iae,$ae,zae,Vae,Wae,Uae,Hae,qae,Xae,Gae,Yae,Kae,Zae,Jae,Qae,ese,tse,nse,ose,rse,ise,ase,sse,lse,cse,use,pse,dse,fse,hse,mse,vse,gse,xse,bse,yse,wse,Cse,Ese,Ose,Dse,Sse,kse,Tse,jse,Mse,Ase,Nse,Pse,Rse,Bse,Fse,_se,Lse,Ise=function(e,t,n){void 0===n&&(n=new Date);var o=e instanceof Date?e:function(e,t){return void 0===t&&(t=new Date),e&&"Invalid Date"!==new Date(e).toString()?new Date(e):t}(e,n);return o instanceof Date?function(e,t,n){var o,r,i,a,s,l,c,u,p,d,f,h,m,v,g,x,b,y;cie(2,arguments);var w=String(t),C=hie(),E=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==o?o:fae,O=lie(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(p=C.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=lie(null!==(f=null!==(h=null!==(m=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(x=g.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==h?h:null===(b=C.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var S=pie(e);if(!xie(S))throw new RangeError("Invalid time value");var k=mie(S),T=bie(S,k),j={firstWeekContainsDate:O,weekStartsOn:D,locale:E,_originalDate:S};return w.match(mae).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Yie[t])(e,E.formatLong):e})).join("").match(hae).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return bae(o);var i=Hie[r];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!Qie(o)||eae(o,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Jie(o)||eae(o,t,String(e)),i(T,o,E.localize,j);if(r.match(xae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("")}(o,"'Last Updated' MMMM dd, yyyy"):o},$se=l.default.footer(wae||(wae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isMobile;return e.css(yae||(yae=x(["\n display: flex;\n flex-direction: ",";\n background-color: ",";\n padding: ",";\n width: 100%;\n "],["\n display: flex;\n flex-direction: ",";\n background-color: ",";\n padding: ",";\n width: 100%;\n "])),i?"column":"row",o.gray5,i?"".concat(r.L,"px"):"".concat(r["3XL"],"px ").concat(r["5XL"],"px"))})),zse=l.default(pR)(Cae||(Cae=x(["\n width: 100%;\n height: auto;\n max-width: 264px;\n max-height: 124px;\n"],["\n width: 100%;\n height: auto;\n max-width: 264px;\n max-height: 124px;\n"]))),Vse=l.default.div(Eae||(Eae=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes["4XL"]})),Wse=l.default.div(Dae||(Dae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.isMobile;return e.css(Oae||(Oae=x(["\n display: flex;\n width: 100%;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n margin-top: ","px;\n ",": 1.5px solid ",";\n "],["\n display: flex;\n width: 100%;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n margin-top: ","px;\n ",": 1.5px solid ",";\n "])),o?"".concat(n["3XL"],"px 0 0 0"):"0 0 0 ".concat(n["3XL"],"px"),o?n["3XL"]:0,o?"border-top":"border-left",(function(e){return e.theme.colors.gray4}))})),Use=l.default.div(Sae||(Sae=x(["\n display: flex;\n align-items: center;\n margin-top: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),Hse=l.default.div(Tae||(Tae=x(["\n width: 100%;\n height: 1px;\n transform: rotate(-90deg);\n ","\n"],["\n width: 100%;\n height: 1px;\n transform: rotate(-90deg);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(kae||(kae=x(["\n margin: 0 ","px;\n max-width: ","px;\n background-color: ",";\n "],["\n margin: 0 ","px;\n max-width: ","px;\n background-color: ",";\n "])),r.S,r.S,o.gray2)})),qse=function(e){var n=e.contactInfo,o=e.footerLogoSrc;return t.jsxs(Vse,{children:[t.jsx(zse,{src:o}),t.jsx(PP,{height:S.sizes.L}),t.jsx(RP,f({variant:"XS",color:"gray1"},{children:"Contact Us"})),t.jsx(PP,{height:S.sizes.M}),t.jsx(RP,f({variant:"XS",color:"gray2"},{children:n.addressLine1})),!!n.addressLine2&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:S.sizes.S}),t.jsx(RP,f({variant:"XS",color:"gray2"},{children:n.addressLine2}))]}),!!n.phoneNumber&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:S.sizes.M}),t.jsx(RP,f({variant:"XS",color:"gray2"},{children:n.phoneNumber}))]})]})},Xse=function(e){var o=e.footerContent,r=e.companyInfo,i=e.footerLogo,a=e.footerLinks,s=e.lastUpdated,l=e.contactInfo,c=e.isMobile;return t.jsxs($se,f({isMobile:c},{children:[t.jsx(qse,{contactInfo:l,footerLogoSrc:i}),t.jsxs(Wse,f({isMobile:c},{children:[t.jsxs("div",{children:[t.jsx(RP,f({variant:"XS"},{children:r})),t.jsx(PP,{height:S.sizes.M}),t.jsx(AP,{value:o}),t.jsx(Use,{children:a.map((function(e,o){return t.jsxs(n.Fragment,{children:[0!==o&&t.jsx(Hse,{}),t.jsx(Ire,f({variant:"text",onClick:function(){return window.open(e.location,"_blank")}},{children:t.jsx(RP,f({color:"blue",variant:"S"},{children:e.name}))}))]},e.id)}))})]}),t.jsxs("div",{children:[t.jsx(PP,{height:S.sizes.L}),t.jsx(RP,f({variant:"XS"},{children:Ise(s)}))]})]}))]}))},Gse=function(e){var o=e.companyInfo,r=e.isMobile,i=e.footerLogo,a=e.footerLinks,s=e.lastUpdated;return t.jsxs($se,f({isMobile:r},{children:[t.jsx(Vse,{children:t.jsx(zse,{src:i})}),t.jsxs(Wse,f({isMobile:r},{children:[t.jsxs("div",{children:[t.jsx(RP,f({variant:"XS"},{children:o})),t.jsx(Use,{children:a.map((function(e,o){return t.jsxs(n.Fragment,{children:[0!==o&&t.jsx(Hse,{}),t.jsx(Ire,f({variant:"text",onClick:function(){return window.open(e.location,"_blank")}},{children:t.jsx(RP,f({color:"blue",variant:"S"},{children:e.name}))}))]},e.id)}))})]}),t.jsxs("div",{children:[t.jsx(PP,{height:S.sizes.L}),t.jsx(RP,f({variant:"XS"},{children:Ise(s)}))]})]}))]}))},Yse=function(e){var n=e.companyInfo;return t.jsx(Kse,{children:t.jsx(RP,f({color:"gray3",variant:"XS"},{children:n}))})},Kse=l.default($se)(jae||(jae=x(["\n justify-content: center;\n align-items: center;\n padding: ","px;\n"],["\n justify-content: center;\n align-items: center;\n padding: ","px;\n"])),(function(e){return e.theme.sizes.S})),Zse={name:"email",type:"input",label:"Email Address",placeholder:"Enter Email Address",required:!0,inputType:"email"},Jse=f(f({},Zse),{label:"",placeholder:"Enter Your Email Address"}),Qse=l.default.div(Mae||(Mae=x(["\n display: flex;\n flex-direction: column;\n gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.S})),ele=l.default(Qse)(Aae||(Aae=x(["\n text-align: center;\n"],["\n text-align: center;\n"]))),tle=l.default.div(Pae||(Pae=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.isMobile,o=t.theme.sizes;return e.css(Nae||(Nae=x(["\n display: flex;\n flex-direction: ",";\n width: 100%;\n gap: ","px;\n align-items: flex-start;\n "],["\n display: flex;\n flex-direction: ",";\n width: 100%;\n gap: ","px;\n align-items: flex-start;\n "])),n?"column":"row",o.S)})),nle=l.default(tle)(Bae||(Bae=x(["\n ","\n"],["\n ","\n"])),(function(t){return t.isMobile&&e.css(Rae||(Rae=x(["\n .z-button-container {\n align-self: center;\n }\n "],["\n .z-button-container {\n align-self: center;\n }\n "])))})),ole=l.default.div(_ae||(_ae=x(["\n display: flex;\n align-items: flex-start;\n width: 100%;\n ",";\n"],["\n display: flex;\n align-items: flex-start;\n width: 100%;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isMobile;return e.css(Fae||(Fae=x(["\n padding: ",";\n background-color: ",";\n gap: ","px;\n flex-direction: ",";\n "],["\n padding: ",";\n background-color: ",";\n gap: ","px;\n flex-direction: ",";\n "])),i?"".concat(o.XL,"px"):"".concat(o.XL,"px ").concat(o["5XL"],"px"),r.gray5,i?o.S:o.XL,i?"column":"row")})),rle=l.default(ole)(Lae||(Lae=x(["\n align-items: center;\n flex-direction: column;\n"],["\n align-items: center;\n flex-direction: column;\n"]))),ile=l.default.div($ae||($ae=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isMobile;return e.css(Iae||(Iae=x(["\n width: 100%;\n padding: ",";\n background-color: ",";\n "],["\n width: 100%;\n padding: ",";\n background-color: ",";\n "])),i?"".concat(o.L,"px"):"".concat(o.XL,"px ").concat(o["5XL"],"px"),r.white)})),ale=function(e,t){var o=e.control,r=e.trigger,i=e.reset,a=e.getValues;return{subscribeHandler:n.useCallback((function(){return m(void 0,void 0,void 0,(function(){var e;return v(this,(function(n){switch(n.label){case 0:return[4,r()];case 1:return n.sent()?(e=a().email,null==t||t(e),setTimeout((function(){i()}),450),[2]):[2]}}))}))}),[o,r,i,a,t])}},sle=function(n){var o=n.title,r=n.description,i=n.footerLogo,a=n.lastUpdated,s=n.contactInfo,l=n.isMobile,c=void 0!==l&&l,u=n.onSubscribe,p=n.isSubscribing,d=n.companyInfo,h=n.buttonText,m=void 0===h?'[{"type":"paragraph","children":[{"text":"Subscribe"}]}]':h,v=q9({mode:"onBlur"}),g=ale(v,u).subscribeHandler,b=e.css(zae||(zae=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsxs($se,f({isMobile:c},{children:[t.jsx(qse,{contactInfo:s,footerLogoSrc:i}),t.jsxs(Wse,f({isMobile:c},{children:[t.jsxs(cle,{children:[t.jsxs(Qse,{children:[t.jsx(AP,{color:"gray1",font:"XL",value:o}),t.jsx(AP,{color:"gray2",font:"M",value:r})]}),t.jsxs(lle,f({isMobile:c},{children:[t.jsx(Z7,{control:v.control,field:f(f({},Jse),{onKeyDown:function(e){"Enter"===e.key&&(null==g||g())}}),styles:b}),t.jsx(Ire,{loading:p,variant:"secondary",text:m,onClick:g,disabled:!v.formState.isValid,isRichText:!0})]}))]}),t.jsx(RP,f({variant:"XS"},{children:d})),t.jsx(PP,{height:S.sizes.L}),t.jsx(RP,f({variant:"XS"},{children:Ise(a)}))]}))]}))},lle=l.default(tle)(Wae||(Wae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Vae||(Vae=x(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n.M)})),cle=l.default(ole).attrs({isMobile:!0})(Hae||(Hae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Uae||(Uae=x(["\n gap: ","px;\n padding: 0;\n padding-bottom: ","px;\n "],["\n gap: ","px;\n padding: 0;\n padding-bottom: ","px;\n "])),n.M,n.M)})),ule=function(e){var n=e.buttonConfig;return t.jsxs(Ire,f({variant:"text",disabled:null==n?void 0:n.disabled,onClick:function(){var e;return!(null==n?void 0:n.disabled)&&(null===(e=null==n?void 0:n.onClick)||void 0===e?void 0:e.call(n))},buttonStyle:{display:"flex"}},{children:[t.jsx(gD,{}),t.jsx(PP,{width:S.sizes.S}),t.jsx(RP,f({variant:"L",color:"blue"},{children:"Back to Feed"}))]}))},ple='[{"type":"paragraph","children":[{"text":""}]}]',dle='[{"type":"paragraph","children":[{"text":""}]}]',fle=l.default.div(Xae||(Xae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.isMobile;return e.css(qae||(qae=x(["\n background-color: ",";\n width: 100%;\n min-width: 342px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n "],["\n background-color: ",";\n width: 100%;\n min-width: 342px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n "])),n.white,o?0:"12px")})),hle=l.default.div(Gae||(Gae=x(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),mle=l.default.div(Kae||(Kae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.src,o=t.theme.sizes;return e.css(Yae||(Yae=x(["\n background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(",");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: ","px;\n padding: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n min-width: 342px;\n position: relative;\n "],["\n background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(",");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: ","px;\n padding: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n min-width: 342px;\n position: relative;\n "])),n,o.M,o.XL)})),vle=l.default.div(Zae||(Zae=x(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n"]))),gle=l.default.div(Jae||(Jae=x(["\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"],["\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"]))),xle=l.default(w)(tse||(tse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.withCloseIcon,o=t.feedContentTemplate,r=t.theme,i=r.colors,a=r.sizes;return e.css(ese||(ese=x(["\n display: ",";\n\n svg path {\n filter: drop-shadow(-1px -3px 2px ",");\n }\n\n ","\n "],["\n display: ",";\n\n svg path {\n filter: drop-shadow(-1px -3px 2px ",");\n }\n\n ","\n "])),n?"block":"none",i.black,"full_width_content"!==o&&e.css(Qae||(Qae=x(["\n position: absolute;\n top: ","px;\n right: ","px;\n "],["\n position: absolute;\n top: ","px;\n right: ","px;\n "])),a.L,a.XL))})),ble=l.default.div(rse||(rse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.showDefaultDocumentStyles;return e.css(ose||(ose=x(["\n width: 100%;\n overflow-x: auto;\n display: flex;\n justify-content: ",";\n\n ","\n "],["\n width: 100%;\n overflow-x: auto;\n display: flex;\n justify-content: ",";\n\n ","\n "])),n?"flex-start":"center",!n&&e.css(nse||(nse=x(["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n "],["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n "]))))})),yle=function(n){var o=n.document,r=n.lastUpdated,i=n.description,a=n.title,s=n.image,l=n.video,c=n.isMobile,u=n.buttonConfig,p=n.feedContentTemplate,d=n.feedContentType,h=n.imageStyles,m=n.videoStyles,v=n.isEnabledFavoriting,g=n.showDefaultDocumentStyles,x=void 0===g||g,b=n.isFavorite,y=n.onFavoriteClickHandler,C=fD("xs")||c,E=e.useTheme(),O=E.sizes,D=E.colors;return t.jsx(fle,f({isMobile:C},{children:t.jsxs(Bw,f({width:C?"100%":"80%",gap:3},{children:[t.jsx(ule,{buttonConfig:u}),s&&"article_content"===d&&t.jsx(pR,{src:s,alt:s,cornerRadius:O.M,$styles:h}),l&&t.jsx(Ere,{coverImageSrc:s,src:l,template:p,style:m}),t.jsxs(hle,{children:[t.jsxs(Bw,f({gap:1},{children:[t.jsx(AP,{font:"2XL",value:a||ple}),t.jsx(RP,f({variant:"S",color:"gray3"},{children:r}))]})),v?t.jsx(w,f({style:{width:33,height:33},onClick:function(){var e;(null==u?void 0:u.disabled)||null==y||y(),null===(e=n.onFavoriteIconClick)||void 0===e||e.call(n,n)}},{children:t.jsx(hD,{fill:b?D.gray3:D.gray5})})):null]}),o?t.jsx(ble,f({showDefaultDocumentStyles:x},{children:t.jsx(pre,{customDocumentStyles:x?{wrapperBackgroundColor:"gray1",pageNumberColor:"white",paginationArrowColor:"gray4",disabledPaginationArrowColor:"gray2",pageHeight:C?442:576,pageWidth:C?341:445}:{wrapperBackgroundColor:"white",pageNumberColor:"gray1",paginationArrowColor:"gray2",disabledPaginationArrowColor:"gray4",pageHeight:C?442:1108,pageWidth:C?341:856},isMobile:C,source:o})})):t.jsx(AP,{font:"M",value:i||dle})]}))}))},wle=function(e){var n=e.isExpanded,o=e.isMobile,r=e.buttonConfig,i=e.image,a=e.lastUpdated,s=e.description,l=e.title,c=e.isEnabledFavoriting,u=e.isFavorite,p=e.onFavoriteClickHandler,d=e.withCloseIcon,h=e.fullWidthTemplateContainerStyles;return n?t.jsx(yle,f({},e)):t.jsx(mle,f({src:i,style:h},{children:t.jsxs(Bw,f({width:"100%",gap:2},{children:[t.jsxs(vle,{children:[t.jsxs(Bw,f({gap:2},{children:[t.jsx(gle,{children:t.jsx(AP,{font:o?"XL":"2XL",color:"white",value:l||ple})}),t.jsx(RP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsxs(Bw,f({direction:"row"},{children:[c?t.jsx(w,f({onClick:function(){var t;(null==r?void 0:r.disabled)||null==p||p(),null===(t=e.onFavoriteIconClick)||void 0===t||t.call(e,e)}},{children:t.jsx(hD,{color:u?S.colors.white:S.colors.gray3,fill:u?S.colors.white:"transparent"})})):null,t.jsx(xle,f({feedContentTemplate:"full_width_content",withCloseIcon:d,onClick:function(e){e.stopPropagation(),null==d||d.onClose()}},{children:t.jsx(LD,{size:32,name:"Close",color:"white"})}))]}))]}),t.jsx(gle,{children:t.jsx(AP,{font:"M",color:"gray4",value:s||dle})}),t.jsx(Ire,f({variant:"text",buttonStyle:{textDecoration:"underline",maxWidth:20},onClick:function(){var e;return!(null==r?void 0:r.disabled)&&(null===(e=null==r?void 0:r.onClick)||void 0===e?void 0:e.call(r))},disabled:null==r?void 0:r.disabled},{children:"View"}))]}))}))},Cle=function(n){var o=n.isExpanded,r=n.isMobile,i=n.buttonConfig,a=n.image,s=n.video,l=n.lastUpdated,c=n.description,u=n.title,p=n.feedContentTemplate,d=n.imageStyles,h=n.videoStyles,m=n.feedContentType,v=n.isEnabledFavoriting,g=n.isFavorite,x=n.onFavoriteClickHandler,b=n.withCloseIcon,y=e.useTheme(),C=y.sizes,E=y.colors;return o?t.jsx(yle,f({},n)):t.jsxs(Bw,f({position:"relative",width:"100%",minWidth:342},{children:[a&&("article_content"===m||"document_content"===m)&&t.jsx(pR,{src:a,alt:a,cornerRadius:C.M,$styles:d}),s&&t.jsx(Ere,{src:s,coverImageSrc:a,template:p,style:h}),t.jsx(PP,{height:C.L}),t.jsxs(Bw,f({gap:2},{children:[t.jsxs(vle,{children:[t.jsxs(Bw,f({gap:2},{children:[t.jsx(gle,{children:t.jsx(AP,{font:r?"XL":"2XL",value:u||ple})}),t.jsx(RP,f({variant:"S",color:"gray3"},{children:l}))]})),v?t.jsx(w,f({onClick:function(){var e;(null==i?void 0:i.disabled)||null==x||x(),null===(e=n.onFavoriteIconClick)||void 0===e||e.call(n,n)}},{children:t.jsx(hD,{fill:g?E.gray3:E.gray5})})):null]}),t.jsx(gle,{children:t.jsx(AP,{font:"M",color:"gray2",value:c||dle})}),t.jsx(Ire,f({variant:"text",buttonStyle:{textDecoration:"underline",maxWidth:20},onClick:function(){var e;return!(null==i?void 0:i.disabled)&&(null===(e=null==i?void 0:i.onClick)||void 0===e?void 0:e.call(i))},disabled:null==i?void 0:i.disabled},{children:"View"}))]})),t.jsx(xle,f({feedContentTemplate:p,withCloseIcon:b,onClick:function(e){e.stopPropagation(),null==b||b.onClose()}},{children:t.jsx(LD,{size:32,name:"Close",color:"white"})}))]}))},Ele=function(e){var o,r,i=e.feedContentTemplate,a=h(e,["feedContentTemplate"]),s=function(e){var t=e.isFavorite,o=void 0!==t&&t,r=e.isExpanded,i=void 0!==r&&r,a=n.useState(i),s=a[0],l=a[1],c=n.useState(o),u=c[0],p=c[1];return n.useEffect((function(){return p(o)}),[o]),n.useEffect((function(){return l(i)}),[i]),{isExpandedContent:s,isFavoriteState:u,onFavoriteClickHandler:function(){return p((function(e){return!e}))},onExpandedClickHandler:function(){return l((function(e){return!e}))}}}({isFavorite:a.isFavorite,isExpanded:a.isExpanded}),l=s.onExpandedClickHandler,c=s.isExpandedContent,u=s.isFavoriteState,p=s.onFavoriteClickHandler,d=f(f({},a),{isExpanded:c,buttonConfig:!(null===(o=a.buttonConfig)||void 0===o?void 0:o.disabled)&&(null===(r=a.buttonConfig)||void 0===r?void 0:r.onClick)?a.buttonConfig:f(f({},a.buttonConfig),{onClick:l}),isFavorite:u,onFavoriteClickHandler:p}),m=a.fullWidth||"full_width_content"===i||c||a.isMobile;return t.jsx("div",f({style:{width:m?"100%":"50%",display:"flex"}},{children:"full_width_content"===i?t.jsx(wle,f({feedContentTemplate:i},d)):t.jsx(Cle,f({feedContentTemplate:i},d))}))},Ole=l.default.div(ise||(ise=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Dle=l.default.div(ase||(ase=x(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Sle=l.default.div(sse||(sse=x(["\n transform: translateY(-50%);\n margin-left: ","px; // 48px\n"],["\n transform: translateY(-50%);\n margin-left: ","px; // 48px\n"])),(function(e){return e.theme.sizes.XL+e.theme.sizes.M})),kle=l.default.div(lse||(lse=x(["\n display: flex;\n align-items: center;\n column-gap: ","px;\n"],["\n display: flex;\n align-items: center;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),Tle=function(o){var r=o.feedHeader,i=o.feedContent,a=void 0===i?[]:i,s=o.isMobile,l=e.useTheme().sizes,c=n.useState("all"),u=c[0],p=c[1],d=n.useState([]),h=d[0],m=d[1],v=function(e){m((function(t){return t.some((function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)}))?t.filter((function(t){return(null==t?void 0:t.id)!==(null==e?void 0:e.id)})):g(g([],t,!0),[f(f({},e),{isFavorite:!0})],!1)}))},x=function(e){return function(){return p(e)}},b={options:[{id:"all",title:"All",onClick:x("all")},{id:"favourite",title:"Favourite",onClick:x("favourite")}]},y="all"===u?a:h;return t.jsxs(t.Fragment,{children:[!(null==y?void 0:y.filter((function(e){return e.isExpanded})).length)&&t.jsx(xre,f({},r,{menuConfig:b,isMobile:s})),y.map((function(e){return t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:l.L}),t.jsx(Ele,f({},e,{isEnabledFavoriting:r.enableFavoriting,isMobile:s,onFavoriteIconClick:v}))]})}))]})},jle=function(n){var o=n.element,r=n.horizontalPaddings,i=fD("xs"),a=e.useTheme().sizes;switch(o.type){case"columns":var s=i?a.L:a["5XL"];return t.jsx(Ale,f({padding:s},{children:t.jsx(wte,f({},o))}));case"emphasized_text":var l=i?a["3XL"]:a["5XL"];return t.jsx(Ale,f({padding:l},{children:t.jsx(Bne,f({},o))}));case"hero_image":return t.jsx(vee,f({horizontalPaddings:r},o));case"hero_slides":return t.jsx(ece,f({},o));case"feed":return t.jsx(Ale,f({padding:r},{children:t.jsx(Tle,f({},o))}));case"subscribe_panel":return t.jsx(rce,f({},o));default:return t.jsxs(RP,f({variant:"XL"},{children:["You need to create this(",o.type,") element to support it"]}))}},Mle=l.default.div(cse||(cse=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"])),(function(e){var t=e.spacer;return void 0===t?36:t})),Ale=l.default(kV)(use||(use=x(["\n width: 100%;\n"],["\n width: 100%;\n"]))),Nle=function(e){var n=e.isiContent,o=e.isMobile;return t.jsx(Ple,f({isMobile:o},{children:t.jsx(AP,{value:n})}))},Ple=l.default.div(pse||(pse=x([""],[""]))),Rle=S.sizes["3XL"],Ble=l.default.div(dse||(dse=x(["\n position: sticky;\n top: 0;\n width: 100%;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n z-index: 10;\n background-color: ",";\n"],["\n position: sticky;\n top: 0;\n width: 100%;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n z-index: 10;\n background-color: ",";\n"])),S.colors.white),Fle=l.default(RP).attrs({variant:"XS"})(hse||(hse=x(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),(function(t){var n=t.theme.colors;return e.css(fse||(fse=x(["\n color: ",";\n :hover {\n color: ",";\n }\n "],["\n color: ",";\n :hover {\n color: ",";\n }\n "])),n.gray2,n.gray1)})),_le=l.default.div(vse||(vse=x(["\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n ","\n"],["\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.devices;return e.css(mse||(mse=x(["\n padding: ","px 0;\n column-gap: ","px;\n @media only screen and (min-width: ",") {\n white-space: normal;\n padding: 0;\n }\n "],["\n padding: ","px 0;\n column-gap: ","px;\n @media only screen and (min-width: ",") {\n white-space: normal;\n padding: 0;\n }\n "])),o.S,o.M,r.md)})),Lle=l.default.div(xse||(xse=x(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"])),Rle,(function(t){var n=t.theme.colors;return e.css(gse||(gse=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),n.gray5)})),Ile=l.default.div(yse||(yse=x(["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n ","\n"])),Rle,(function(t){var n=t.theme.sizes;return e.css(bse||(bse=x(["\n img {\n height: ","px;\n width: auto;\n }\n "],["\n img {\n height: ","px;\n width: auto;\n }\n "])),n.XL)})),$le=l.default.div(Cse||(Cse=x(["\n display: flex;\n align-items: center;\n ","\n"],["\n display: flex;\n align-items: center;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(wse||(wse=x(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),n.L)})),zle=function(o){var r=o.tabsProps,i=o.logoUrl,a=n.useState(!1),s=a[0],l=a[1],c=e.useTheme().sizes;return t.jsxs(t.Fragment,{children:[t.jsx(Rne,f({onClick:function(){return l(!0)},isOpen:s},{children:t.jsx(LD,{size:c.M,name:"Menu"})})),t.jsxs(kee,f({anchor:"bottom",open:s,onClose:function(){return l(!1)}},{children:[t.jsx(pR,{height:c["2XL"],src:i,alt:"Header Logo"}),t.jsx(PP,{height:c.XL}),t.jsx(Nne,f({vertical:!0,wide:{containerStyle:{marginTop:c.M}},compact:{containerStyle:{marginTop:c.M}}},r))]}))]})},Vle=function(n){var o=n.logoUrl,r=n.links,i=n.onActionButtonClick,a=n.tabsProps,s=n.buttonText,l=n.isMobile,c=n.className,u=n.buttonLink,p=e.useTheme().sizes;return t.jsxs(Ble,f({className:c},{children:[!!(null==r?void 0:r.length)&&t.jsx(Lle,{children:t.jsx(_le,{children:r.map((function(e,n){var o=e.text,r=e.href;return t.jsx(fR,f({onClick:function(){return function(e){return window.open(e,"_blank")}(r)}},{children:t.jsx(Fle,f({behaveAs:"button"},{children:o}))}),n)}))})}),t.jsxs(Ile,{children:[t.jsx("img",{style:{height:42,width:"auto"},src:o,alt:"Header Logo"}),l?t.jsx(zle,{logoUrl:o,tabsProps:a}):t.jsxs($le,{children:[t.jsx(Nne,f({wide:{containerStyle:{marginTop:p.M}},compact:{containerStyle:{marginTop:p.M}}},a)),t.jsx(Ire,{onClick:i,link:u,isRichText:!0,fullWidth:!1,text:s})]})]})]}))},Wle=function(n){var o=n.logoUrl,r=n.onActionButtonClick,i=n.buttonText,a=n.isMobile,s=n.tabsProps,l=n.className,c=n.buttonLink,u=e.useTheme().sizes;return t.jsx(Ble,f({className:l},{children:t.jsxs(Ile,{children:[t.jsx("img",{height:42,width:"auto",src:o,alt:"Header Logo"}),a?t.jsx(zle,{logoUrl:o,tabsProps:s}):t.jsxs(t.Fragment,{children:[t.jsx(Nne,f({wide:{containerStyle:{marginTop:u.M}},compact:{containerStyle:{marginTop:u.M}}},s)),t.jsx(Ire,{link:c,isRichText:!0,onClick:r,fullWidth:!1,text:i})]})]})}))},Ule=function(e){var n=e.logoUrl,o=e.tabsProps,r=e.isMobile,i=e.className;return t.jsx(Ble,f({className:i},{children:t.jsxs(Ile,{children:[t.jsx("img",{height:42,width:"auto",src:n,alt:"Header Logo"}),r?t.jsx(zle,{logoUrl:n,tabsProps:o}):t.jsx(Nne,f({wide:{containerStyle:{marginTop:S.sizes.M}},compact:{containerStyle:{marginTop:S.sizes.M}}},o))]})}))},Hle=function(n){var o=n.tabsProps,r=n.logoUrl,i=n.links,a=n.withAvatar,s=n.isMobile,l=n.className,c=e.useTheme().sizes;return t.jsxs(Ble,f({className:l},{children:[!!(null==i?void 0:i.length)&&t.jsx(Lle,{children:t.jsx(_le,{children:i.map((function(e,n){var o=e.text,r=e.href;return t.jsx(fR,f({onClick:function(){return function(e){return window.open(e,"_blank")}(r)}},{children:t.jsx(Fle,f({behaveAs:"button"},{children:o}))}),n)}))})}),t.jsxs(Ile,{children:[t.jsx("img",{height:42,width:"auto",src:r,alt:"Header Logo"}),s?t.jsx(Sne,f({},a)):t.jsxs($le,{children:[t.jsx(Nne,f({wide:{containerStyle:{marginTop:c.M}},compact:{containerStyle:{marginTop:c.M}}},o)),t.jsx(Sne,f({},a))]})]})]}))},qle=function(e){var n=e.title,o=void 0===n?"State Title":n,r=e.statuses,i=void 0===r?[]:r,a=e.isMobile,s=e.description,l=void 0===s?"State Description":s,c=e.currentStep,u=void 0===c?0:c,p=e.style,d=e.withCloseIcon;return t.jsxs(Xle,f({style:p},{children:[t.jsxs(Yle,f({withCloseIcon:d},{children:[(o||l)&&t.jsxs(Bw,f({gap:1},{children:[o&&t.jsx(AP,{value:o,font:"XL"}),l&&t.jsx(AP,{value:l,font:"M"})]})),t.jsx(Jne,{orientation:a?"vertical":"horizontal",steps:i,currentStep:u})]})),t.jsx(Gle,f({withCloseIcon:d,onClick:function(e){e.stopPropagation(),null==d||d.onClose()}},{children:t.jsx(LD,{size:32,name:"Close"})}))]}))},Xle=l.default.div(Ose||(Ose=x(["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n position: relative;\n width: auto;\n min-width: 342px;\n ","\n"],["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n position: relative;\n width: auto;\n min-width: 342px;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Ese||(Ese=x(["\n padding: ","px ","px;\n border-radius: ","px;\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n "])),n.XL,n["2XL"],n.M)})),Gle=l.default(w)(Sse||(Sse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.withCloseIcon;return e.css(Dse||(Dse=x(["\n display: ",";\n position: absolute;\n top: ","px;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","px;\n right: ","px;\n "])),o?"block":"none",n.L,n.XL)})),Yle=l.default(Bw)(Tse||(Tse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.withCloseIcon;return e.css(kse||(kse=x(["\n display: flex;\n gap: 22px;\n width: calc(100% - ","px); // 32px - width of close button\n "],["\n display: flex;\n gap: 22px;\n width: calc(100% - ","px); // 32px - width of close button\n "])),o?n.L:0)})),Kle=function(n){var o=n.element,r=n.horizontalPaddings,i=n.elementsLength,a=e.useTheme().sizes;switch(o.elementType){case"alert":return t.jsx(Jle,f({padding:r},{children:t.jsx(Ine,f({},o,{containerStyles:{padding:"".concat(o.fullWidth||i>1?0:a.M,"px ").concat(o.isMobile?a.L:a.XL,"px")}}))}));case"process_tracker":return t.jsx(Jle,f({padding:r},{children:t.jsx(qle,f({},o,{style:{margin:"".concat(i>1?0:a.M,"px ").concat(o.isMobile?a.L:a.XL,"px")}}))}));case"feed_content":return t.jsx(Jle,f({padding:r},{children:t.jsx(Ele,f({},o))}));default:return t.jsxs(RP,f({variant:"XL"},{children:["You need to create this(",o.type,") element to support it"]}))}},Zle=l.default.div(jse||(jse=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"])),(function(e){var t=e.spacer,n=void 0===t?"M":t,o=e.theme.sizes;return"number"==typeof n?n:o[n]})),Jle=l.default(kV)(Mse||(Mse=x(["\n width: 100%;\n"],["\n width: 100%;\n"]))),Qle=l.default(w)(Pse||(Pse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.disabled;return e.css(Nse||(Nse=x(["\n width: 100%;\n ",";\n "],["\n width: 100%;\n ",";\n "])),n&&e.css(Ase||(Ase=x(["\n cursor: unset;\n "],["\n cursor: unset;\n "]))))})),ece=function(e){var n=e.heroSlides,o=void 0===n?[]:n;return o.length?t.jsx(tce,{children:o.length>1?t.jsx(Tre,{children:o.map((function(e,n){return t.jsx(vee,f({type:"hero_image"},e),n)}))}):t.jsx(vee,f({type:"hero_image"},o[0]))}):null},tce=l.default.div(Rse||(Rse=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n width: 100%;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n width: 100%;\n"]))),nce=function(n){var o=n.title,r=n.description,i=n.subscribeHandler,a=n.isSubscribing,s=n.control,l=n.isMobile,c=e.css(Bse||(Bse=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsxs(ole,f({isMobile:l},{children:[t.jsxs(Qse,{children:[t.jsx(AP,{color:"gray1",font:"XL",value:o}),t.jsx(AP,{color:"gray2",font:"M",value:r})]}),t.jsxs(tle,f({isMobile:l},{children:[t.jsx(Z7,{control:s,field:f(f({},Jse),{onKeyDown:function(e){"Enter"===e.key&&i()}}),styles:c}),t.jsx(Ire,{fullWidth:!1,loading:a,text:"Subscribe",onClick:i})]}))]}))},oce=function(n){var o=n.title,r=n.description,i=n.subscribeHandler,a=n.isSubscribing,s=n.control,l=n.isMobile,c=e.css(Fse||(Fse=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsx(ile,f({isMobile:l},{children:t.jsxs(rle,f({isMobile:l},{children:[t.jsxs(ele,{children:[t.jsx(AP,{color:"gray1",font:"2XL",value:o}),t.jsx(AP,{color:"gray2",font:"M",value:r})]}),t.jsxs(nle,f({isMobile:l},{children:[t.jsx(Z7,{control:s,field:f(f({},Jse),{onKeyDown:function(e){"Enter"===e.key&&i()}}),styles:c}),t.jsx(Ire,{fullWidth:!1,loading:a,text:"Subscribe",onClick:i})]}))]}))}))},rce=function(e){var n=e.template,o=e.onSubscribe,r=h(e,["template","onSubscribe"]),i=q9(),a=fD("xs"),s=ale(i,o).subscribeHandler,l=f(f({},r),{control:i.control,isMobile:a,subscribeHandler:s});switch(n){case"subscribe_template_a":return t.jsx(nce,f({},l));case"subscribe_template_b":return t.jsx(oce,f({},l));default:return t.jsx(t.Fragment,{children:"No such subscribe panel."})}},ice=l.default.div(Lse||(Lse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(_se||(_se=x(["\n margin-top: ","px;\n padding: 0 ","px;\n "],["\n margin-top: ","px;\n padding: 0 ","px;\n "])),n.L,n["3XL"])}));exports.AccountButtonContext=$7,exports.AccountButtonProvider=hte,exports.AcquisitionForm=function(o){var r=o.logoUrl,i=o.title,a=o.description,s=o.buttonText,l=void 0===s?"Sing Up":s,c=o.fields,u=o.optionsPresentation,p=o.onSubmit,d=o.showConsentLabel,h=void 0===d||d,m=o.onLinkButtonClick,v=o.isSubmitDisabled,g=void 0!==v&&v,x=o.consents,b=void 0===x?[]:x,y=o.isLoading,w=o.triggerFormInitially,C=o.isTooltipVisible,E=e.useTheme(),O=E.colors,D=E.sizes,S=q9({defaultValues:X7(c),mode:"onChange"}),k=S.control,T=S.handleSubmit,j=S.trigger,M=S.formState;n.useEffect((function(){w&&j()}),[w,T]);var A=zee(b);return t.jsxs(t.Fragment,{children:[t.jsx(pR,{height:D.XL,src:r,alt:"App Logo"}),t.jsx(PP,{height:D["3XL"]}),t.jsx(RP,f({variant:"2XL",color:O.indigo},{children:i})),t.jsx(PP,{height:D.M}),a&&t.jsxs(t.Fragment,{children:[t.jsx(RP,f({variant:"M",color:"gray2"},{children:a})),t.jsx(PP,{height:D.M})]}),t.jsxs(Qre,f({variant:"M"},{children:["Already have an account?",t.jsx(eie,f({onClick:m},{children:"Log in"}))]})),c.map((function(e){return t.jsx(Z7,{isTooltipVisible:C,optionsPresentation:u,control:k,field:e,spacer:D.L},e.name.toString())})),b.map((function(e,n){return t.jsx(Hre,f({},e),n)})),h&&t.jsxs(t.Fragment,{children:[t.jsx(PP,{height:D.L}),t.jsx(tie,{children:t.jsx(RP,f({variant:"XL"},{children:"Consent Zone"}))})]}),t.jsx(PP,{height:D["2XL"]}),t.jsx(Ire,{onClick:A?T(p):Jre,text:l,variant:"primary",disabled:!G7(M)||g,loading:y})]})},exports.Alert=Ine,exports.ArrowIconWrapper=Pre,exports.Avatar=wV,exports.AvatarDropdown=Sne,exports.BackgroundImage=dR,exports.Body=function(e){var n=e.elements,o=e.horizontalPaddings,r=void 0===o?S.sizes["5XL"]:o,i=e.containerStyles;return t.jsx(Mle,f({spacer:n.spacer,style:i},{children:n.data.map((function(e,n){return t.jsx(jle,{horizontalPaddings:r,element:e},n)}))}))},exports.BottomNavBarItem=wre,exports.BottomNavBarNavigation=function(o){var r=o.navbarItems,i=void 0===r?[]:r,a=e.useTheme().sizes,s=n.useState(""),l=s[0],c=s[1];return t.jsxs(t.Fragment,{children:[t.jsx(Bw,f({gap:6,bgcolor:"white",flexDirection:"row",justifyContent:"center"},{children:i.map((function(e,t){return n.createElement(wre,f({},e,{key:t,active:e.active||e.name===l,onNavigate:function(){e.onNavigate(),c(e.name)}}))}))})),t.jsx(PP,{height:a.L}),t.jsx(jV,{color:"gray1",style:{margin:"0 auto",width:140,height:a.XS,borderRadius:6}})]})},exports.Button=Ire,exports.ButtonActionsContext=R7,exports.ButtonActionsProvider=function(e){var o=e.children,r=n.useState(tte),i=r[0],a=r[1],s=n.useState(!1),l=s[0],c=s[1],u=n.useState(!1),p=u[0],d=u[1],h=n.useMemo((function(){return{actionContent:i,setActionContent:a,isModalVisible:l,setModalVisible:c,isDrawerVisible:p,setDrawerVisible:d}}),[i,l,p]),m=function(){c(!1),d(!1)},v=t.jsx(ute,{item:i});return t.jsxs(R7.Provider,f({value:h},{children:[t.jsx($re,f({open:l,onClose:m},{children:v})),t.jsx(kee,f({open:p,onClose:m,anchor:"right"},{children:v})),o]}))},exports.ButtonsWrapper=Nre,exports.COMMUNICATION_LINK_DATA_TEXT=MP,exports.COMMUNICATION_LINK_DATA_URL=jP,exports.COMMUNICATION_LINK_ELEMENT_ID=kP,exports.CaretIconWrapper=Rne,exports.Carousel=Tre,exports.Checkbox=zP,exports.CheckboxField=eee,exports.CheckboxGroup=tee,exports.Circle=o8,exports.CirclesWrapper=i8,exports.CircularIndicator=a8,exports.CircularIndicatorStyledComponent=s8,exports.Columns=wte,exports.Consent=Hre,exports.Container=qee,exports.ContainerComponent=Xee,exports.ContainerWrapper=Yee,exports.CustomValidation=iee,exports.DefaultTemplate=function(e){var n=e.header,o=e.banner,r=e.content,i=e.alerts,a=e.processTracker,s=e.feedContent;return t.jsxs(t.Fragment,{children:[n,null==i?void 0:i.map((function(e,n){return t.jsx(Ine,f({},e),n)})),a&&t.jsx(Bw,f({width:"100%",alignItems:"center"},{children:t.jsx(qle,f({},a))})),o,s,t.jsx(ice,{children:r})]})},exports.Divider=jV,exports.Drawer=kee,exports.DynamicContentZone=function(e){var n=e.elements,o=e.horizontalPaddings,r=void 0===o?"XL":o,i=e.containerStyles;return t.jsx(Zle,f({spacer:n.spacer,style:i},{children:n.data.map((function(e,o){return t.jsx(Qle,f({disabled:!(null==e?void 0:e.destinationLink),onClick:function(){var t;return null===(t=null==e?void 0:e.onDestinationHandler)||void 0===t?void 0:t.call(e)},withoutOpacityEffect:!0},{children:t.jsx(Kle,{horizontalPaddings:r,element:e,elementsLength:n.data.length})}),o)}))}))},exports.EmphasizedText=Bne,exports.ErrorText=FP,exports.FeedContent=Ele,exports.FeedContentContainer=Tle,exports.FeedContentHeader=xre,exports.FieldLabels=v8,exports.FieldMapper=Z7,exports.FieldSection=function(n){var o=n.fields,r=n.label,i=n.isEditMode,a=n.control,s=e.useTheme().sizes,l=i?20:s.XL;return t.jsxs(t.Fragment,{children:[t.jsx(RP,f({variant:"L",color:"gray2"},{children:r})),t.jsx(PP,{height:20}),o.map((function(e,n){return t.jsx(Z7,{isEditMode:i,field:e,control:a,spacer:n?l:0},n)}))]})},exports.Footer=function(e){var n=fD("xs");switch(e.type){case"footer_a":return t.jsx(Xse,f({isMobile:n},e));case"footer_b":return t.jsx(Gse,f({isMobile:n},e));case"footer_c":return t.jsx(Yse,f({isMobile:n},e));case"footer_d":return t.jsx(sle,f({isMobile:n},e));default:return t.jsxs(RP,f({variant:"2XL",type:"error"},{children:["We don't know how to parse this footer(",e.type,")"]}))}},exports.ForgotPasswordForm=function(e){var n=e.logoUrl,o=e.onBack,r=e.onSubmit,i=e.isLoading,a=q9({defaultValues:{email:""},mode:"onChange"}),s=a.control,l=a.reset,c=a.handleSubmit,u=a.formState;return t.jsxs(t.Fragment,{children:[t.jsx(pR,{src:n,alt:"App logo"}),t.jsx(PP,{height:"3XL"}),t.jsx(RP,f({variant:"2XL",color:"indigo"},{children:"Forgot your password?"})),t.jsx(PP,{height:14}),t.jsx(RP,f({variant:"M",color:"gray2"},{children:"Enter your email address below. If there is an account in our system associated with that email address, you’ll get an email with password reset instructions."})),t.jsx(PP,{height:"XL"}),t.jsx(Z7,{control:s,field:Zse}),t.jsx(PP,{height:"XL"}),t.jsxs(kle,{children:[t.jsx(Ire,{variant:"primary",text:"Send Email",loading:i,onClick:r?c(r):void 0,disabled:!u.isValid||!G7(u)}),t.jsx(Ire,{onClick:function(){null==o||o(),l()},text:"Back",variant:"secondary"})]})]})},exports.FormOrganismItem=pte,exports.GoogleMap=G6,exports.Header=function(e){switch(e.type){case"header_a":return t.jsx(Vle,f({},e));case"header_b":return t.jsx(Wle,f({},e));case"header_c":return t.jsx(Ule,f({},e));case"header_d":return t.jsx(Hle,f({},e));default:return t.jsx(t.Fragment,{children:"No such header."})}},exports.HeroImage=vee,exports.HeroSlider=ece,exports.HeroSliderWrapper=tce,exports.HorizontalButtons=xV,exports.HorizontalButtonsField=function(e){var o=e.name,r=e.title,i=e.control,a=e.description,s=e.horizontalButtonsProps,l=n.useState(s.selectedButtonId),c=l[0],u=l[1];return i?t.jsx(i9,{name:o,control:i,defaultValue:s.selectedButtonId,render:function(e){var n=e.field,o=n.onChange,i=n.value;return t.jsx(kV,f({padding:"M"},{children:t.jsxs(Bw,f({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[t.jsxs(Bw,f({gap:.2,flexDirection:"column"},{children:[t.jsx(RP,f({variant:"XL"},{children:r})),a&&t.jsx(RP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsx(xV,f({},s,{selectedButtonId:i,onClick:o}))]}))}))}}):t.jsx(kV,f({padding:"M"},{children:t.jsxs(Bw,f({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[t.jsxs(Bw,f({gap:.2,flexDirection:"column"},{children:[t.jsx(RP,f({variant:"XL"},{children:r})),a&&t.jsx(RP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsx(xV,f({},s,{selectedButtonId:c,onClick:function(e){return u(e)}}))]}))}))},exports.HorizontalPadding=kV,exports.ISI=function(e){return"isi_a"===e.type?t.jsx(Nle,f({},e)):t.jsxs(RP,f({variant:"2XL",type:"error"},{children:["We don't know how to parse this isi template(",e.type,")"]}))},exports.Icon=LD,exports.IconButton=c8,exports.IconWrapper=Vre,exports.Image=kre,exports.Input=oR,exports.InputField=U7,exports.Link=Xre,exports.LoginForm=function(n){var o=n.logoUrl,r=n.fields,i=n.isTooltipVisible,a=n.onSubmit,s=n.optionsPresentation,l=n.onSignUpButtonClick,c=n.isLoading,u=n.twoFactorAuthConfig,p=n.consents,d=void 0===p?[]:p,h=n.onForgotPasswordButtonClick,m=e.useTheme(),v=m.colors,g=m.sizes,x=q9({defaultValues:X7(r),mode:"onChange"}),b=x.control,y=x.handleSubmit,w=x.formState,C=zee(d);return(null==u?void 0:u.twoFactorShow)?t.jsx(iie,f({},u.twoFactorAuthProps)):t.jsxs(t.Fragment,{children:[t.jsx(pR,{height:g["2XL"],src:o,alt:"App Logo"}),t.jsx(PP,{height:"3XL"}),t.jsx(RP,f({variant:"2XL",color:v.indigo},{children:"Log in."})),t.jsx(PP,{height:14}),t.jsxs(aie,f({variant:"M"},{children:["Don’t have an account?",t.jsx(sie,f({onClick:l},{children:"Sign up"}))]})),r.map((function(e){return t.jsx(Z7,{control:b,optionsPresentation:s,isTooltipVisible:i,field:e,spacer:g.L},e.name.toString())})),t.jsx(PP,{height:"L"}),d.map((function(e,n){return t.jsx(Hre,f({},e),n)})),t.jsx(Ire,f({variant:"text",onClick:h},{children:"Forgot your password?"})),t.jsx(PP,{height:"XL"}),t.jsx(Ire,{onClick:C?y(a):Jre,text:"Log in",variant:"primary",disabled:!G7(w),loading:c})]})},exports.MATRIX_MESSAGE_DATA_ID=TP,exports.MATRIX_MESSAGE_ELEMENT_ID=SP,exports.MenuItems=Ete,exports.MenuNavigation=function(e){var o=e.menuConfig,r=n.useState(!1),i=r[0],a=r[1],s=t.jsx(Ete,f({},o,{onItemPress:function(e){var t;a(!1),null===(t=o.onItemPress)||void 0===t||t.call(o,e)}}));return t.jsx(Dne,f({overlay:s,onVisibleChange:a,visible:i,trigger:"click",animation:"slide-up"},{children:t.jsx(Pne,{children:t.jsx(Rne,f({isOpen:i},{children:t.jsx(LD,{size:16,name:"Menu"})}))})}))},exports.MlrRichTextViewerContext=rN,exports.MlrRichTextViewerProvider=function(e){var n=e.children,o=e.isMLRReview,r=e.showAnnotations,i=e.annotationsList;return t.jsx(rN.Provider,f({value:{isMLRReview:o,annotationsList:i,showAnnotations:r}},{children:n}))},exports.ModalWrapper=zre,exports.NavigationDotsWrapper=Rre,exports.OrganismContext=F7,exports.OrganismContextProvider=fte,exports.OrganismItem=ute,exports.PdfDocument=pre,exports.ProcessTracker=qle,exports.ProfileInformation=function(o){var r=o.avatarProps,i=o.backgroundImageUrl,a=o.initialTabKey,s=o.tabs,l=o.title,c=o.editIcons,u=o.tabContents,p=n.useState(a),d=p[0],h=p[1],m=e.useTheme().sizes;return t.jsxs(t.Fragment,{children:[t.jsx(pR,{src:i,alt:"background-image"}),t.jsx(Sle,{children:t.jsx(wV,f({withShadow:!0,size:80},r))}),t.jsxs(kV,f({padding:m.XL+m.M},{children:[t.jsxs(Ole,{children:[t.jsx(RP,f({variant:"2XL",color:"gray1"},{children:l})),c&&t.jsx(t.Fragment,{children:c.isEditMode?t.jsxs(Dle,{children:[t.jsx(w,f({onClick:c.onSave},{children:t.jsx(ND,{})})),t.jsx(PP,{width:"M"}),t.jsx(w,f({onClick:c.onClose},{children:t.jsx(CD,{size:32})}))]}):t.jsx(w,f({onClick:c.onEdit},{children:t.jsx(AD,{})}))})]}),t.jsx(PP,{height:"XL"}),t.jsx(Nne,{activeTabKey:d,onTabChange:function(e){h(e),null==c||c.onClose()},tabs:s})]})),u[d]()]})},exports.RadioButtonField=_ne,exports.RadioButtons=Q6,exports.RadioGroupWrapper=e8,exports.RegularImage=pR,exports.RichTextViewer=AP,exports.Select=KP,exports.SelectField=nee,exports.SelectableCardGroup=hee,exports.SetPasswordForm=function(o){var r=o.logoUrl,i=o.fields,a=o.validations,s=o.onBack,l=o.onSubmit,c=o.isLoading,u=e.useTheme().sizes,p=a.map(Zee),d=q9({defaultValues:X7(i),mode:"onChange"}),f=d.control,h=d.reset,m=d.handleSubmit,v=d.formState,g=d.getValues,x=(0,d.watch)("password"),b=n.useMemo((function(){var e=p.every((function(e){return e.validate(x)}));return v.isSubmitted?e&&G7(v):G7(v)}),[a,v]);return t.jsxs(t.Fragment,{children:[t.jsx(pR,{height:u["2XL"],src:r,alt:"App Logo"}),t.jsx(PP,{height:"3XL"}),t.jsx(Kre,{children:"Set your account password."}),t.jsx(PP,{height:14}),t.jsx(Yre,{children:"Set the password for your account in the Zeal Design System."}),i.map((function(e){return t.jsx(Z7,{control:f,field:e,spacer:u.L},e.name.toString())})),t.jsx(PP,{height:"2XL"}),t.jsx(iee,{value:x,isSubmitted:v.isSubmitted,rules:p}),t.jsx(PP,{height:"2XL"}),t.jsxs(Zre,{children:[t.jsx(Ire,{onClick:m((function(){if(G7(v)&&p.every((function(e){return e.validate(x)}))){var e=g();e.password===e.confirmPassword?l(e):gV({message:"Passwords are not match",duration:1,type:"error"})}})),text:"Create password",variant:"primary",disabled:!v.isValid||!b,loading:c}),t.jsx(Ire,{onClick:function(){s(),h()},text:"Back",variant:"secondary"})]})]})},exports.Slide=Are,exports.SlidesWrapper=Mre,exports.Spacer=PP,exports.Spinner=uR,exports.StateContext=L7,exports.StateContextProvider=function(e){var o=e.initStateConfig,r=e.children,i=e.stateHandler,a=n.useMemo((function(){return{stateConfig:o,stateHandler:i}}),[o,i]);return t.jsx(L7.Provider,f({value:a},{children:r}))},exports.Stepper=Jne,exports.StyleWrapper=Cz,exports.SubscribePanel=rce,exports.Tab=Gre,exports.TabGroup=Nne,exports.TextButton=fR,exports.TextMolecule=h8,exports.TextWrapper=RP,exports.Tooltip=Ez,exports.TouchableOpacity=w,exports.TwoFactorAuth=iie,exports.ValidationTag=mR,exports.VerticalPadding=TV,exports.Video=Ere,exports.Wrapper=jre,exports.ZealThemeProvider=function(n){return t.jsx(hr,f({theme:dD},{children:t.jsxs(e.ThemeProvider,f({theme:f(f({},S),n.theme)},{children:[t.jsx(pD,{}),n.children]}))}))},exports.ZealUIModal=$re,exports.acquisitionFormMockFields=[{name:"firstName",type:"input",label:"First Name",required:!0,value:"Initial First Name"},{name:"lastName",type:"input",label:"Last Name",required:!0},{name:"email",type:"input",inputType:"email",label:"Email Address"},{name:"number",type:"input",inputType:"number",label:"Phone Number"},{name:"addressLine1",type:"input",label:"Address Line 1"},{name:"addressLine2",type:"input",label:"Address Line 2",tooltip:"This is address line 2"},{name:"city",type:"input",label:"City"},{name:"state",type:"select",label:"State",options:[{id:"USA",label:"USA"},{id:"UKRAINE",label:"Ukraine"}]},{name:"zip",type:"input",label:"Zip Code"}],exports.defaultTheme=S,exports.defaultValue=DP,exports.fontWeight=[100,200,300,400,500,600,700,800,900],exports.fonts=["3XL","2XL","XL","L","M","S","XS"],exports.getFieldPlaceholder=q7,exports.getFieldsFromFieldSections=function(e){var t=[];return e.forEach((function(e){return t=t.concat.apply(t,e.fields)})),t},exports.getInitialValuesFromFields=X7,exports.isFormValid=G7,exports.loginMockFields=[{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"password",type:"input",inputType:"password",label:"Password",required:!0},{name:"rememberMe",type:"checkbox",checkboxLabel:"Remember me"}],exports.passwordMockFields=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0,rules:{required:"Password is required"}},{name:"reenteredPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],exports.profileInformationMockForm=K7,exports.sectionMockFields=Y7,exports.seoTags=["h1","h2","h3","h4","h5","h6"],exports.setPasswordMockFields=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0,rules:{required:"Password is required"}},{name:"confirmPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],exports.showAcceptToastMessage=Jre,exports.sizings=["5XL","4XL","3XL","2XL","XL","L","M","S","XS",0],exports.toast=gV,exports.toastStyles=uD,exports.useButtonActionsContext=B7,exports.useMediaQuery=fD,exports.useMlrRichTextViewerContext=iN,exports.useRequiredConsentsAcceptedValues=zee,exports.useStep=$ee;
|
260
|
+
*/Object.defineProperty(NV,"__esModule",{value:!0});var vZ=TZ(PV),gZ=TZ(RV.exports),xZ=TZ(VW),bZ=TZ(WW),yZ=TZ(YW),wZ=TZ(DX),CZ=TZ(mK);NV.withScriptjs=jZ;var EZ=TZ(gK),OZ=TZ(xK),DZ=bK,SZ=TZ(xe.exports),kZ=TZ(u.default);function TZ(e){return e&&e.__esModule?e:{default:e}}function jZ(e){var t=kZ.default.createFactory(e),n=function(e){function n(){var e,t,o,r;(0,xZ.default)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=o=(0,yZ.default)(this,(e=n.__proto__||(0,gZ.default)(n)).call.apply(e,[this].concat(a))),o.state={loadingState:"NONE"},o.isUnmounted=!1,o.handleLoaded=(0,CZ.default)(o.handleLoaded,o),r=t,(0,yZ.default)(o,r)}return(0,wZ.default)(n,e),(0,bZ.default)(n,[{key:"handleLoaded",value:function(){this.isUnmounted||this.setState({loadingState:"LOADED"})}},{key:"componentWillMount",value:function(){var e=this.props,t=e.loadingElement,n=e.googleMapURL;(0,EZ.default)(!!t&&!!n,"Required props loadingElement or googleMapURL is missing. You need to provide both of them.")}},{key:"componentDidMount",value:function(){if("NONE"===this.state.loadingState&&OZ.default){this.setState({loadingState:"BEGIN"});var e=(hZ||(hZ=1,function(e){!function(t,n){e.exports?e.exports=n():this.$script=n()}(0,(function(){var e,t,n=document,o=n.getElementsByTagName("head")[0],r={},i={},a={};function s(e,t){for(var n=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return 1}function l(e,t){s(e,(function(e){return t(e),1}))}function c(t,n,o){t=t.push?t:[t];var p=n&&n.call,d=p?n:o,f=p?t.join(""):n,h=t.length;function m(e){return e.call?e():r[e]}function v(){if(!--h)for(var e in r[f]=1,d&&d(),i)s(e.split("|"),m)&&!l(i[e],m)&&(i[e]=[])}return setTimeout((function(){l(t,(function t(n,o){return null===n?v():(o||/^https?:\/\//.test(n)||!e||(n=-1===n.indexOf(".js")?e+n+".js":e+n),a[n]?2==a[n]?v():setTimeout((function(){t(n,!0)}),0):(a[n]=1,void u(n,v)))}))}),0),c}function u(e,r){var i,s=n.createElement("script");s.onload=s.onerror=s.onreadystatechange=function(){s.readyState&&!/^c|loade/.test(s.readyState)||i||(s.onload=s.onreadystatechange=null,i=1,a[e]=2,r())},s.async=1,s.src=t?e+(-1===e.indexOf("?")?"?":"&")+t:e,o.insertBefore(s,o.lastChild)}return c.get=u,c.order=function(e,t,n){!function o(r){r=e.shift(),e.length?c(r,o):c(r,t,n)}()},c.path=function(t){e=t},c.urlArgs=function(e){t=e},c.ready=function(e,t,n){e=e.push?e:[e];var o,a=[];return!l(e,(function(e){r[e]||a.push(e)}))&&s(e,(function(e){return r[e]}))?t():(o=e.join("|"),i[o]=i[o]||[],i[o].push(t),n&&n(a)),c},c.done=function(e){c([null],e)},c}))}(mZ)),mZ.exports);e(this.props.googleMapURL,this.handleLoaded)}}},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0}},{key:"render",value:function(){var e=this.props,n=e.loadingElement;e.googleMapURL;var o=(0,vZ.default)(e,["loadingElement","googleMapURL"]);return"LOADED"===this.state.loadingState?t(o):n}}]),n}(kZ.default.PureComponent);return n.displayName="withScriptjs("+(0,DZ.getDisplayName)(e)+")",n.propTypes={loadingElement:SZ.default.node.isRequired,googleMapURL:SZ.default.string.isRequired},n}NV.default=jZ;var MZ={},AZ={__esModule:!0},NZ=function(e){return e&&e.__esModule?e:{default:e}}(UW.exports);AZ.default=function(e,t,n){return t in e?(0,NZ.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};var PZ=function(){};"production"!==process.env.NODE_ENV&&(PZ=function(e,t,n){var o=arguments.length;n=new Array(o>2?o-2:0);for(var r=2;r<o;r++)n[r-2]=arguments[r];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}});var RZ=PZ,BZ={};Object.defineProperty(BZ,"__esModule",{value:!0}),BZ.MAP="__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.MARKER="__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.MARKER_WITH_LABEL="__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.RECTANGLE="__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.POLYLINE="__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.POLYGON="__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.CIRCLE="__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.KML_LAYER="__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.DIRECTIONS_RENDERER="__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.HEATMAP_LAYER="__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.FUSION_TABLES_LAYER="__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.ANCHOR="__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.INFO_WINDOW="__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.OVERLAY_VIEW="__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.GROUND_LAYER="__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.DRAWING_MANAGER="__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.SEARCH_BOX="__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.MARKER_CLUSTERER="__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.INFO_BOX="__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.TRAFFIC_LAYER="__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.STREET_VIEW_PANORAMA="__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",BZ.BICYCLING_LAYER="__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",Object.defineProperty(MZ,"__esModule",{value:!0});var FZ=KZ(PV),_Z=KZ(AZ),LZ=KZ(RV.exports),IZ=KZ(VW),$Z=KZ(WW),zZ=KZ(YW),VZ=KZ(DX),WZ=KZ(mK);MZ.withGoogleMap=ZZ;var UZ=KZ(RZ),HZ=KZ(gK),qZ=bK,XZ=KZ(xe.exports),GZ=KZ(u.default),YZ=BZ;function KZ(e){return e&&e.__esModule?e:{default:e}}function ZZ(e){var t=GZ.default.createFactory(e),n=function(e){function n(){var e,t,o,r;(0,IZ.default)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=o=(0,zZ.default)(this,(e=n.__proto__||(0,LZ.default)(n)).call.apply(e,[this].concat(a))),o.state={map:null},o.handleComponentMount=(0,WZ.default)(o.handleComponentMount,o),r=t,(0,zZ.default)(o,r)}return(0,VZ.default)(n,e),(0,$Z.default)(n,[{key:"getChildContext",value:function(){return(0,_Z.default)({},YZ.MAP,this.state.map)}},{key:"componentWillMount",value:function(){var e=this.props,t=e.containerElement,n=e.mapElement;(0,HZ.default)(!!t&&!!n,"Required props containerElement or mapElement is missing. You need to provide both of them.\n The `google.maps.Map` instance will be initialized on mapElement and it's wrapped by containerElement.\nYou need to provide both of them since Google Map requires the DOM to have height when initialized.")}},{key:"handleComponentMount",value:function(e){if(!this.state.map&&null!==e){(0,UZ.default)("undefined"!=typeof google,"Make sure you've put a <script> tag in your <head> element to load Google Maps JavaScript API v3.\n If you're looking for built-in support to load it for you, use the \"async/ScriptjsLoader\" instead.\n See https://github.com/tomchentw/react-google-maps/pull/168");var t=new google.maps.Map(e);this.setState({map:t})}}},{key:"render",value:function(){var e=this.props,n=e.containerElement,o=e.mapElement,r=(0,FZ.default)(e,["containerElement","mapElement"]);return this.state.map?GZ.default.cloneElement(n,{},GZ.default.cloneElement(o,{ref:this.handleComponentMount}),GZ.default.createElement("div",null,t(r))):GZ.default.cloneElement(n,{},GZ.default.cloneElement(o,{ref:this.handleComponentMount}),GZ.default.createElement("div",null))}}]),n}(GZ.default.PureComponent);return n.displayName="withGoogleMap("+(0,qZ.getDisplayName)(e)+")",n.propTypes={containerElement:XZ.default.node.isRequired,mapElement:XZ.default.node.isRequired},n.childContextTypes=(0,_Z.default)({},YZ.MAP,XZ.default.object),n}MZ.default=ZZ;var JZ,QZ,eJ={},tJ={},nJ={exports:{}},oJ=vW,rJ=sU,iJ=UU.exports("iterator"),aJ=Array.prototype,sJ=OW(),lJ=DW,cJ=cU,uJ=UU.exports("toStringTag"),pJ="Arguments"==cJ(function(){return arguments}()),dJ=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),uJ))?n:pJ?cJ(t):"Object"==(o=cJ(t))&&"function"==typeof t.callee?"Arguments":o},fJ=UU.exports("iterator"),hJ=sU,mJ=zV.exports.getIteratorMethod=function(e){if(null!=e)return e[fJ]||e["@@iterator"]||hJ[dJ(e)]};var vJ=dW,gJ=BW,xJ=_V,bJ=function(e,t,n,o){try{return o?t(oJ(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&oJ(r.call(e)),t}},yJ=function(e){return void 0!==e&&(rJ.Array===e||aJ[iJ]===e)},wJ=gU,CJ=function(e,t,n){t in e?sJ.f(e,t,lJ(0,n)):e[t]=n},EJ=mJ;gJ(gJ.S+gJ.F*!function(){if(QZ)return JZ;QZ=1;var e=UU.exports("iterator"),t=!1;try{var n=[7][e]();n.return=function(){t=!0},Array.from(n,(function(){throw 2}))}catch(e){}return JZ=function(n,o){if(!o&&!t)return!1;var r=!1;try{var i=[7],a=i[e]();a.next=function(){return{done:r=!0}},i[e]=function(){return a},n(i)}catch(e){}return r}}()((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,r,i=xJ(e),a="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,c=void 0!==l,u=0,p=EJ(i);if(c&&(l=vJ(l,s>2?arguments[2]:void 0,2)),null==p||a==Array&&yJ(p))for(n=new a(t=wJ(i.length));t>u;u++)CJ(n,u,c?l(i[u],u):i[u]);else for(r=p.call(i),n=new a;!(o=r.next()).done;u++)CJ(n,u,c?bJ(r,l,[o.value,u],!0):o.value);return n.length=u,n}});var OJ=zV.exports.Array.from;nJ.exports={default:OJ,__esModule:!0},tJ.__esModule=!0;var DJ=function(e){return e&&e.__esModule?e:{default:e}}(nJ.exports);tJ.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,DJ.default)(e)};var SJ={};var kJ=function(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n};var TJ=function(e){return function(t,n,o){for(var r=-1,i=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(i[l],l,i))break}return t}},jJ=TJ(),MJ=zI;var AJ=_I;var NJ=function(e,t){return function(n,o){if(null==n)return n;if(!AJ(n))return e(n,o);for(var r=n.length,i=t?r:-1,a=Object(n);(t?i--:++i<r)&&!1!==o(a[i],i,a););return n}},PJ=NJ((function(e,t){return e&&jJ(e,t,MJ)})),RJ=vL,BJ=E$;var FJ=function(e,t,n,o){var r=n.length,i=r,a=!o;if(null==e)return!i;for(e=Object(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<i;){var l=(s=n[r])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new RJ;if(o)var d=o(c,u,l,e,t,p);if(!(void 0===d?BJ(u,c,3,o,p):d))return!1}}return!0},_J=ST;var LJ=function(e){return e==e&&!_J(e)},IJ=LJ,$J=zI;var zJ=function(e){for(var t=$J(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,IJ(r)]}return t};var VJ=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},WJ=FJ,UJ=zJ,HJ=VJ;var qJ=function(e){var t=UJ(e);return 1==t.length&&t[0][2]?HJ(t[0][0],t[0][1]):function(n){return n===e||WJ(n,e,t)}},XJ=_L,GJ=QT,YJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KJ=/^\w*$/;var ZJ=function(e,t){if(XJ(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!GJ(e))||(KJ.test(e)||!YJ.test(e)||null!=t&&e in Object(t))},JJ=iL;function QJ(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(QJ.Cache||JJ),n}QJ.Cache=JJ;var eQ=QJ;var tQ=function(e){var t=eQ(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},nQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oQ=/\\(\\)?/g,rQ=tQ((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nQ,(function(e,n,o,r){t.push(o?r.replace(oQ,"$1"):n||e)})),t})),iQ=rQ;var aQ=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r},sQ=aQ,lQ=_L,cQ=QT,uQ=LT?LT.prototype:void 0,pQ=uQ?uQ.toString:void 0;var dQ=function e(t){if("string"==typeof t)return t;if(lQ(t))return sQ(t,e)+"";if(cQ(t))return pQ?pQ.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},fQ=dQ;var hQ=function(e){return null==e?"":fQ(e)},mQ=_L,vQ=ZJ,gQ=iQ,xQ=hQ;var bQ=function(e,t){return mQ(e)?e:vQ(e,t)?[e]:gQ(xQ(e))},yQ=QT;var wQ=function(e){if("string"==typeof e||yQ(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},CQ=bQ,EQ=wQ;var OQ=function(e,t){for(var n=0,o=(t=CQ(t,e)).length;null!=e&&n<o;)e=e[EQ(t[n++])];return n&&n==o?e:void 0},DQ=OQ;var SQ=function(e,t,n){var o=null==e?void 0:DQ(e,t);return void 0===o?n:o};var kQ=bQ,TQ=nI,jQ=_L,MQ=aI,AQ=sI,NQ=wQ;var PQ=function(e,t,n){for(var o=-1,r=(t=kQ(t,e)).length,i=!1;++o<r;){var a=NQ(t[o]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&AQ(r)&&MQ(a,r)&&(jQ(e)||TQ(e))},RQ=function(e,t){return null!=e&&t in Object(e)},BQ=PQ;var FQ=E$,_Q=SQ,LQ=function(e,t){return null!=e&&BQ(e,t,RQ)},IQ=ZJ,$Q=LJ,zQ=VJ,VQ=wQ;var WQ=OQ;var UQ=function(e){return function(t){return null==t?void 0:t[e]}},HQ=function(e){return function(t){return WQ(t,e)}},qQ=ZJ,XQ=wQ;var GQ=qJ,YQ=function(e,t){return IQ(e)&&$Q(t)?zQ(VQ(e),t):function(n){var o=_Q(n,e);return void 0===o&&o===t?LQ(n,e):FQ(t,o,3)}},KQ=BX,ZQ=_L,JQ=function(e){return qQ(e)?UQ(XQ(e)):HQ(e)};var QQ=function(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n},e0=kJ,t0=PJ,n0=function(e){return"function"==typeof e?e:null==e?KQ:"object"==typeof e?ZQ(e)?YQ(e[0],e[1]):GQ(e):JQ(e)},o0=QQ,r0=_L;var i0=function(e,t,n){var o=r0(e)?e0:o0,r=arguments.length<3;return o(e,n0(t),n,r,t0)},a0=BX;var s0=QG,l0=PJ,c0=function(e){return"function"==typeof e?e:a0},u0=_L;var p0=function(e,t){return(u0(e)?s0:l0)(e,c0(t))};var d0=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i},f0=d0;var h0=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:f0(e,t,n)},m0=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var v0=function(e){return m0.test(e)};var g0=function(e){return e.split("")},x0="[\\ud800-\\udfff]",b0="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",y0="\\ud83c[\\udffb-\\udfff]",w0="[^\\ud800-\\udfff]",C0="(?:\\ud83c[\\udde6-\\uddff]){2}",E0="[\\ud800-\\udbff][\\udc00-\\udfff]",O0="(?:"+b0+"|"+y0+")"+"?",D0="[\\ufe0e\\ufe0f]?"+O0+("(?:\\u200d(?:"+[w0,C0,E0].join("|")+")[\\ufe0e\\ufe0f]?"+O0+")*"),S0="(?:"+[w0+b0+"?",b0,C0,E0,x0].join("|")+")",k0=RegExp(y0+"(?="+y0+")|"+S0+D0,"g");var T0=g0,j0=v0,M0=function(e){return e.match(k0)||[]};var A0=h0,N0=v0,P0=function(e){return j0(e)?M0(e):T0(e)},R0=hQ;var B0=function(e){return function(t){t=R0(t);var n=N0(t)?P0(t):void 0,o=n?n[0]:t.charAt(0),r=n?A0(n,1).join(""):t.slice(1);return o[e]()+r}}("toLowerCase"),F0=Object.prototype.hasOwnProperty;var _0=function(e,t){return null!=e&&F0.call(e,t)},L0=PQ;var I0=function(e,t){return null!=e&&L0(e,t,_0)};Object.defineProperty(SJ,"__esModule",{value:!0});var $0=q0(mK),z0=q0(s_),V0=q0(i0),W0=q0(p0),U0=q0(B0),H0=q0(I0);function q0(e){return e&&e.__esModule?e:{default:e}}function X0(e,t,n){if((0,H0.default)(e.prevProps,n)){var o=n.match(/^default(\S+)/);if(o){var r=(0,U0.default)(o[1]);(0,H0.default)(e.nextProps,r)||(e.nextProps[r]=e.prevProps[n])}else e.nextProps[n]=e.prevProps[n]}return e}function G0(e,t,n,o){(0,W0.default)(e,(function(e,r){var i=n[r];i!==t[r]&&e(o,i)}))}function Y0(e,t,n){var o=(0,V0.default)(n,(function(n,o,r){return(0,z0.default)(e.props[r])&&n.push(google.maps.event.addListener(t,o,e.props[r])),n}),[]);e.unregisterAllEvents=(0,$0.default)(W0.default,null,o,K0)}function K0(e){google.maps.event.removeListener(e)}SJ.construct=function(e,t,n,o){var r=(0,V0.default)(e,X0,{nextProps:{},prevProps:n}).nextProps;G0(t,{},r,o)},SJ.componentDidMount=function(e,t,n){Y0(e,t,n)},SJ.componentDidUpdate=function(e,t,n,o,r){e.unregisterAllEvents(),G0(o,r,e.props,t),Y0(e,t,n)},SJ.componentWillUnmount=function(e){e.unregisterAllEvents()},Object.defineProperty(eJ,"__esModule",{value:!0}),eJ.GoogleMap=eJ.Map=void 0;var Z0=c1(AZ),J0=c1(tJ),Q0=c1(RV.exports),e1=c1(VW),t1=c1(YW),n1=c1(WW),o1=c1(DX),r1=c1(gK),i1=c1(u.default),a1=c1(xe.exports),s1=SJ,l1=BZ;function c1(e){return e&&e.__esModule?e:{default:e}}var u1=eJ.Map=function(e){function t(e,n){(0,e1.default)(this,t);var o=(0,t1.default)(this,(t.__proto__||(0,Q0.default)(t)).call(this,e,n));return(0,r1.default)(!!o.context[l1.MAP],"Did you wrap <GoogleMap> component with withGoogleMap() HOC?"),(0,s1.construct)(p1.propTypes,f1,o.props,o.context[l1.MAP]),o}return(0,o1.default)(t,e),(0,n1.default)(t,[{key:"fitBounds",value:function(){var e;return(e=this.context[l1.MAP]).fitBounds.apply(e,arguments)}},{key:"panBy",value:function(){var e;return(e=this.context[l1.MAP]).panBy.apply(e,arguments)}},{key:"panTo",value:function(){var e;return(e=this.context[l1.MAP]).panTo.apply(e,arguments)}},{key:"panToBounds",value:function(){var e;return(e=this.context[l1.MAP]).panToBounds.apply(e,arguments)}}]),(0,n1.default)(t,[{key:"componentDidMount",value:function(){(0,s1.componentDidMount)(this,this.context[l1.MAP],d1)}},{key:"componentDidUpdate",value:function(e){(0,s1.componentDidUpdate)(this,this.context[l1.MAP],d1,f1,e)}},{key:"componentWillUnmount",value:function(){(0,s1.componentWillUnmount)(this)}},{key:"render",value:function(){var e=this.props.children;return i1.default.createElement("div",null,e)}},{key:"getBounds",value:function(){return this.context[l1.MAP].getBounds()}},{key:"getCenter",value:function(){return this.context[l1.MAP].getCenter()}},{key:"getClickableIcons",value:function(){return this.context[l1.MAP].getClickableIcons()}},{key:"getDiv",value:function(){return this.context[l1.MAP].getDiv()}},{key:"getHeading",value:function(){return this.context[l1.MAP].getHeading()}},{key:"getMapTypeId",value:function(){return this.context[l1.MAP].getMapTypeId()}},{key:"getProjection",value:function(){return this.context[l1.MAP].getProjection()}},{key:"getStreetView",value:function(){return this.context[l1.MAP].getStreetView()}},{key:"getTilt",value:function(){return this.context[l1.MAP].getTilt()}},{key:"getZoom",value:function(){return this.context[l1.MAP].getZoom()}}]),t}(i1.default.PureComponent);u1.displayName="GoogleMap",u1.propTypes={defaultExtraMapTypes:a1.default.arrayOf(a1.default.arrayOf(a1.default.any)),defaultCenter:a1.default.any,defaultClickableIcons:a1.default.bool,defaultHeading:a1.default.number,defaultMapTypeId:a1.default.any,defaultOptions:a1.default.any,defaultStreetView:a1.default.any,defaultTilt:a1.default.number,defaultZoom:a1.default.number,center:a1.default.any,clickableIcons:a1.default.bool,heading:a1.default.number,mapTypeId:a1.default.any,options:a1.default.any,streetView:a1.default.any,tilt:a1.default.number,zoom:a1.default.number,onDblClick:a1.default.func,onDragEnd:a1.default.func,onDragStart:a1.default.func,onMapTypeIdChanged:a1.default.func,onMouseMove:a1.default.func,onMouseOut:a1.default.func,onMouseOver:a1.default.func,onRightClick:a1.default.func,onTilesLoaded:a1.default.func,onBoundsChanged:a1.default.func,onCenterChanged:a1.default.func,onClick:a1.default.func,onDrag:a1.default.func,onHeadingChanged:a1.default.func,onIdle:a1.default.func,onProjectionChanged:a1.default.func,onResize:a1.default.func,onTiltChanged:a1.default.func,onZoomChanged:a1.default.func},u1.contextTypes=(0,Z0.default)({},l1.MAP,a1.default.object);var p1=eJ.GoogleMap=u1;eJ.default=u1;var d1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},f1={extraMapTypes:function(e,t){t.forEach((function(t){var n;return(n=e.mapTypes).set.apply(n,(0,J0.default)(t))}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.Circle=void 0;var m1=D1(AZ),v1=D1(RV.exports),g1=D1(VW),x1=D1(WW),b1=D1(YW),y1=D1(DX),w1=D1(u.default),C1=D1(xe.exports),E1=SJ,O1=BZ;function D1(e){return e&&e.__esModule?e:{default:e}}var S1=h1.Circle=function(e){function t(e,n){(0,g1.default)(this,t);var o=(0,b1.default)(this,(t.__proto__||(0,v1.default)(t)).call(this,e,n)),r=new google.maps.Circle;return(0,E1.construct)(t.propTypes,T1,o.props,r),r.setMap(o.context[O1.MAP]),o.state=(0,m1.default)({},O1.CIRCLE,r),o}return(0,y1.default)(t,e),(0,x1.default)(t,[{key:"componentDidMount",value:function(){(0,E1.componentDidMount)(this,this.state[O1.CIRCLE],k1)}},{key:"componentDidUpdate",value:function(e){(0,E1.componentDidUpdate)(this,this.state[O1.CIRCLE],k1,T1,e)}},{key:"componentWillUnmount",value:function(){(0,E1.componentWillUnmount)(this);var e=this.state[O1.CIRCLE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[O1.CIRCLE].getBounds()}},{key:"getCenter",value:function(){return this.state[O1.CIRCLE].getCenter()}},{key:"getDraggable",value:function(){return this.state[O1.CIRCLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[O1.CIRCLE].getEditable()}},{key:"getRadius",value:function(){return this.state[O1.CIRCLE].getRadius()}},{key:"getVisible",value:function(){return this.state[O1.CIRCLE].getVisible()}}]),t}(w1.default.PureComponent);S1.propTypes={defaultCenter:C1.default.any,defaultDraggable:C1.default.bool,defaultEditable:C1.default.bool,defaultOptions:C1.default.any,defaultRadius:C1.default.number,defaultVisible:C1.default.bool,center:C1.default.any,draggable:C1.default.bool,editable:C1.default.bool,options:C1.default.any,radius:C1.default.number,visible:C1.default.bool,onDblClick:C1.default.func,onDragEnd:C1.default.func,onDragStart:C1.default.func,onMouseDown:C1.default.func,onMouseMove:C1.default.func,onMouseOut:C1.default.func,onMouseOver:C1.default.func,onMouseUp:C1.default.func,onRightClick:C1.default.func,onCenterChanged:C1.default.func,onClick:C1.default.func,onDrag:C1.default.func,onRadiusChanged:C1.default.func},S1.contextTypes=(0,m1.default)({},O1.MAP,C1.default.object),h1.default=S1;var k1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onRadiusChanged:"radius_changed"},T1={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},j1={};Object.defineProperty(j1,"__esModule",{value:!0}),j1.Marker=void 0;var M1,A1=z1(AZ),N1=z1(RV.exports),P1=z1(VW),R1=z1(WW),B1=z1(YW),F1=z1(DX),_1=z1(u.default),L1=z1(xe.exports),I1=SJ,$1=BZ;function z1(e){return e&&e.__esModule?e:{default:e}}var V1=j1.Marker=function(e){function t(e,n){(0,P1.default)(this,t);var o=(0,B1.default)(this,(t.__proto__||(0,N1.default)(t)).call(this,e,n)),r=new google.maps.Marker;(0,I1.construct)(t.propTypes,U1,o.props,r);var i=o.context[$1.MARKER_CLUSTERER];return i?i.addMarker(r,!!o.props.noRedraw):r.setMap(o.context[$1.MAP]),o.state=(0,A1.default)({},$1.MARKER,r),o}return(0,F1.default)(t,e),(0,R1.default)(t,[{key:"getChildContext",value:function(){return(0,A1.default)({},$1.ANCHOR,this.context[$1.ANCHOR]||this.state[$1.MARKER])}},{key:"componentDidMount",value:function(){(0,I1.componentDidMount)(this,this.state[$1.MARKER],W1)}},{key:"componentDidUpdate",value:function(e){(0,I1.componentDidUpdate)(this,this.state[$1.MARKER],W1,U1,e)}},{key:"componentWillUnmount",value:function(){(0,I1.componentWillUnmount)(this);var e=this.state[$1.MARKER];if(e){var t=this.context[$1.MARKER_CLUSTERER];t&&t.removeMarker(e,!!this.props.noRedraw),e.setMap(null)}}},{key:"render",value:function(){var e=this.props.children;return _1.default.createElement("div",null,e)}},{key:"getAnimation",value:function(){return this.state[$1.MARKER].getAnimation()}},{key:"getClickable",value:function(){return this.state[$1.MARKER].getClickable()}},{key:"getCursor",value:function(){return this.state[$1.MARKER].getCursor()}},{key:"getDraggable",value:function(){return this.state[$1.MARKER].getDraggable()}},{key:"getIcon",value:function(){return this.state[$1.MARKER].getIcon()}},{key:"getLabel",value:function(){return this.state[$1.MARKER].getLabel()}},{key:"getOpacity",value:function(){return this.state[$1.MARKER].getOpacity()}},{key:"getPlace",value:function(){return this.state[$1.MARKER].getPlace()}},{key:"getPosition",value:function(){return this.state[$1.MARKER].getPosition()}},{key:"getShape",value:function(){return this.state[$1.MARKER].getShape()}},{key:"getTitle",value:function(){return this.state[$1.MARKER].getTitle()}},{key:"getVisible",value:function(){return this.state[$1.MARKER].getVisible()}},{key:"getZIndex",value:function(){return this.state[$1.MARKER].getZIndex()}}]),t}(_1.default.PureComponent);V1.propTypes={noRedraw:L1.default.bool,defaultAnimation:L1.default.any,defaultClickable:L1.default.bool,defaultCursor:L1.default.string,defaultDraggable:L1.default.bool,defaultIcon:L1.default.any,defaultLabel:L1.default.any,defaultOpacity:L1.default.number,defaultOptions:L1.default.any,defaultPlace:L1.default.any,defaultPosition:L1.default.any,defaultShape:L1.default.any,defaultTitle:L1.default.string,defaultVisible:L1.default.bool,defaultZIndex:L1.default.number,animation:L1.default.any,clickable:L1.default.bool,cursor:L1.default.string,draggable:L1.default.bool,icon:L1.default.any,label:L1.default.any,opacity:L1.default.number,options:L1.default.any,place:L1.default.any,position:L1.default.any,shape:L1.default.any,title:L1.default.string,visible:L1.default.bool,zIndex:L1.default.number,onDblClick:L1.default.func,onDragEnd:L1.default.func,onDragStart:L1.default.func,onMouseDown:L1.default.func,onMouseOut:L1.default.func,onMouseOver:L1.default.func,onMouseUp:L1.default.func,onRightClick:L1.default.func,onAnimationChanged:L1.default.func,onClick:L1.default.func,onClickableChanged:L1.default.func,onCursorChanged:L1.default.func,onDrag:L1.default.func,onDraggableChanged:L1.default.func,onFlatChanged:L1.default.func,onIconChanged:L1.default.func,onPositionChanged:L1.default.func,onShapeChanged:L1.default.func,onTitleChanged:L1.default.func,onVisibleChanged:L1.default.func,onZindexChanged:L1.default.func},V1.contextTypes=(M1={},(0,A1.default)(M1,$1.MAP,L1.default.object),(0,A1.default)(M1,$1.MARKER_CLUSTERER,L1.default.object),M1),V1.childContextTypes=(0,A1.default)({},$1.ANCHOR,L1.default.object),j1.default=V1;var W1={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDrag:"drag",onDraggableChanged:"draggable_changed",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onPositionChanged:"position_changed",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},U1={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},place:function(e,t){e.setPlace(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},H1={};Object.defineProperty(H1,"__esModule",{value:!0}),H1.Polyline=void 0;var q1=n2(AZ),X1=n2(RV.exports),G1=n2(VW),Y1=n2(WW),K1=n2(YW),Z1=n2(DX),J1=n2(u.default),Q1=n2(xe.exports),e2=SJ,t2=BZ;function n2(e){return e&&e.__esModule?e:{default:e}}var o2=H1.Polyline=function(e){function t(e,n){(0,G1.default)(this,t);var o=(0,K1.default)(this,(t.__proto__||(0,X1.default)(t)).call(this,e,n)),r=new google.maps.Polyline;return(0,e2.construct)(t.propTypes,i2,o.props,r),r.setMap(o.context[t2.MAP]),o.state=(0,q1.default)({},t2.POLYLINE,r),o}return(0,Z1.default)(t,e),(0,Y1.default)(t,[{key:"componentDidMount",value:function(){(0,e2.componentDidMount)(this,this.state[t2.POLYLINE],r2)}},{key:"componentDidUpdate",value:function(e){(0,e2.componentDidUpdate)(this,this.state[t2.POLYLINE],r2,i2,e)}},{key:"componentWillUnmount",value:function(){(0,e2.componentWillUnmount)(this);var e=this.state[t2.POLYLINE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[t2.POLYLINE].getDraggable()}},{key:"getEditable",value:function(){return this.state[t2.POLYLINE].getEditable()}},{key:"getPath",value:function(){return this.state[t2.POLYLINE].getPath()}},{key:"getVisible",value:function(){return this.state[t2.POLYLINE].getVisible()}}]),t}(J1.default.PureComponent);o2.propTypes={defaultDraggable:Q1.default.bool,defaultEditable:Q1.default.bool,defaultOptions:Q1.default.any,defaultPath:Q1.default.any,defaultVisible:Q1.default.bool,draggable:Q1.default.bool,editable:Q1.default.bool,options:Q1.default.any,path:Q1.default.any,visible:Q1.default.bool,onDblClick:Q1.default.func,onDragEnd:Q1.default.func,onDragStart:Q1.default.func,onMouseDown:Q1.default.func,onMouseMove:Q1.default.func,onMouseOut:Q1.default.func,onMouseOver:Q1.default.func,onMouseUp:Q1.default.func,onRightClick:Q1.default.func,onClick:Q1.default.func,onDrag:Q1.default.func},o2.contextTypes=(0,q1.default)({},t2.MAP,Q1.default.object),H1.default=o2;var r2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},i2={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},a2={};Object.defineProperty(a2,"__esModule",{value:!0}),a2.Polygon=void 0;var s2=g2(AZ),l2=g2(RV.exports),c2=g2(VW),u2=g2(WW),p2=g2(YW),d2=g2(DX),f2=g2(u.default),h2=g2(xe.exports),m2=SJ,v2=BZ;function g2(e){return e&&e.__esModule?e:{default:e}}var x2=a2.Polygon=function(e){function t(e,n){(0,c2.default)(this,t);var o=(0,p2.default)(this,(t.__proto__||(0,l2.default)(t)).call(this,e,n)),r=new google.maps.Polygon;return(0,m2.construct)(t.propTypes,y2,o.props,r),r.setMap(o.context[v2.MAP]),o.state=(0,s2.default)({},v2.POLYGON,r),o}return(0,d2.default)(t,e),(0,u2.default)(t,[{key:"componentDidMount",value:function(){(0,m2.componentDidMount)(this,this.state[v2.POLYGON],b2)}},{key:"componentDidUpdate",value:function(e){(0,m2.componentDidUpdate)(this,this.state[v2.POLYGON],b2,y2,e)}},{key:"componentWillUnmount",value:function(){(0,m2.componentWillUnmount)(this);var e=this.state[v2.POLYGON];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDraggable",value:function(){return this.state[v2.POLYGON].getDraggable()}},{key:"getEditable",value:function(){return this.state[v2.POLYGON].getEditable()}},{key:"getPath",value:function(){return this.state[v2.POLYGON].getPath()}},{key:"getPaths",value:function(){return this.state[v2.POLYGON].getPaths()}},{key:"getVisible",value:function(){return this.state[v2.POLYGON].getVisible()}}]),t}(f2.default.PureComponent);x2.propTypes={defaultDraggable:h2.default.bool,defaultEditable:h2.default.bool,defaultOptions:h2.default.any,defaultPath:h2.default.any,defaultPaths:h2.default.any,defaultVisible:h2.default.bool,draggable:h2.default.bool,editable:h2.default.bool,options:h2.default.any,path:h2.default.any,paths:h2.default.any,visible:h2.default.bool,onDblClick:h2.default.func,onDragEnd:h2.default.func,onDragStart:h2.default.func,onMouseDown:h2.default.func,onMouseMove:h2.default.func,onMouseOut:h2.default.func,onMouseOver:h2.default.func,onMouseUp:h2.default.func,onRightClick:h2.default.func,onClick:h2.default.func,onDrag:h2.default.func},x2.contextTypes=(0,s2.default)({},v2.MAP,h2.default.object),a2.default=x2;var b2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onClick:"click",onDrag:"drag"},y2={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}},w2={};Object.defineProperty(w2,"__esModule",{value:!0}),w2.Rectangle=void 0;var C2=N2(AZ),E2=N2(RV.exports),O2=N2(VW),D2=N2(WW),S2=N2(YW),k2=N2(DX),T2=N2(u.default),j2=N2(xe.exports),M2=SJ,A2=BZ;function N2(e){return e&&e.__esModule?e:{default:e}}var P2=w2.Rectangle=function(e){function t(e,n){(0,O2.default)(this,t);var o=(0,S2.default)(this,(t.__proto__||(0,E2.default)(t)).call(this,e,n)),r=new google.maps.Rectangle;return(0,M2.construct)(t.propTypes,B2,o.props,r),r.setMap(o.context[A2.MAP]),o.state=(0,C2.default)({},A2.RECTANGLE,r),o}return(0,k2.default)(t,e),(0,D2.default)(t,[{key:"componentDidMount",value:function(){(0,M2.componentDidMount)(this,this.state[A2.RECTANGLE],R2)}},{key:"componentDidUpdate",value:function(e){(0,M2.componentDidUpdate)(this,this.state[A2.RECTANGLE],R2,B2,e)}},{key:"componentWillUnmount",value:function(){(0,M2.componentWillUnmount)(this);var e=this.state[A2.RECTANGLE];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[A2.RECTANGLE].getBounds()}},{key:"getDraggable",value:function(){return this.state[A2.RECTANGLE].getDraggable()}},{key:"getEditable",value:function(){return this.state[A2.RECTANGLE].getEditable()}},{key:"getVisible",value:function(){return this.state[A2.RECTANGLE].getVisible()}}]),t}(T2.default.PureComponent);P2.propTypes={defaultBounds:j2.default.any,defaultDraggable:j2.default.bool,defaultEditable:j2.default.bool,defaultOptions:j2.default.any,defaultVisible:j2.default.bool,bounds:j2.default.any,draggable:j2.default.bool,editable:j2.default.bool,options:j2.default.any,visible:j2.default.bool,onDblClick:j2.default.func,onDragEnd:j2.default.func,onDragStart:j2.default.func,onMouseDown:j2.default.func,onMouseMove:j2.default.func,onMouseOut:j2.default.func,onMouseOver:j2.default.func,onMouseUp:j2.default.func,onRightClick:j2.default.func,onBoundsChanged:j2.default.func,onClick:j2.default.func,onDrag:j2.default.func},P2.contextTypes=(0,C2.default)({},A2.MAP,j2.default.object),w2.default=P2;var R2={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onBoundsChanged:"bounds_changed",onClick:"click",onDrag:"drag"},B2={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}},F2={};Object.defineProperty(F2,"__esModule",{value:!0}),F2.InfoWindow=void 0;var _2,L2=Z2(AZ),I2=Z2(RV.exports),$2=Z2(VW),z2=Z2(WW),V2=Z2(YW),W2=Z2(DX),U2=Z2(gK),H2=Z2(xK),q2=Z2(u.default),X2=Z2(d.default),G2=Z2(xe.exports),Y2=SJ,K2=BZ;function Z2(e){return e&&e.__esModule?e:{default:e}}var J2=F2.InfoWindow=function(e){function t(e,n){(0,$2.default)(this,t);var o=(0,V2.default)(this,(t.__proto__||(0,I2.default)(t)).call(this,e,n)),r=new google.maps.InfoWindow;return(0,Y2.construct)(t.propTypes,o3,o.props,r),r.setMap(o.context[K2.MAP]),o.state=(0,L2.default)({},K2.INFO_WINDOW,r),o}return(0,W2.default)(t,e),(0,z2.default)(t,[{key:"componentWillMount",value:function(){H2.default&&!this.containerElement&&q2.default.version.match(/^16/)&&(this.containerElement=document.createElement("div"))}},{key:"componentDidMount",value:function(){if((0,Y2.componentDidMount)(this,this.state[K2.INFO_WINDOW],n3),q2.default.version.match(/^16/))return this.state[K2.INFO_WINDOW].setContent(this.containerElement),void t3(this.state[K2.INFO_WINDOW],this.context[K2.ANCHOR]);var e=document.createElement("div");X2.default.unstable_renderSubtreeIntoContainer(this,q2.default.Children.only(this.props.children),e),this.state[K2.INFO_WINDOW].setContent(e),t3(this.state[K2.INFO_WINDOW],this.context[K2.ANCHOR])}},{key:"componentDidUpdate",value:function(e){(0,Y2.componentDidUpdate)(this,this.state[K2.INFO_WINDOW],n3,o3,e),q2.default.version.match(/^16/)||this.props.children!==e.children&&X2.default.unstable_renderSubtreeIntoContainer(this,q2.default.Children.only(this.props.children),this.state[K2.INFO_WINDOW].getContent())}},{key:"componentWillUnmount",value:function(){(0,Y2.componentWillUnmount)(this);var e=this.state[K2.INFO_WINDOW];e&&(!q2.default.version.match(/^16/)&&e.getContent()&&X2.default.unmountComponentAtNode(e.getContent()),e.setMap(null))}},{key:"render",value:function(){return!!q2.default.version.match(/^16/)&&X2.default.createPortal(q2.default.Children.only(this.props.children),this.containerElement)}},{key:"getPosition",value:function(){return this.state[K2.INFO_WINDOW].getPosition()}},{key:"getZIndex",value:function(){return this.state[K2.INFO_WINDOW].getZIndex()}}]),t}(q2.default.PureComponent);J2.propTypes={defaultOptions:G2.default.any,defaultPosition:G2.default.any,defaultZIndex:G2.default.number,options:G2.default.any,position:G2.default.any,zIndex:G2.default.number,onCloseClick:G2.default.func,onDomReady:G2.default.func,onContentChanged:G2.default.func,onPositionChanged:G2.default.func,onZindexChanged:G2.default.func},J2.contextTypes=(_2={},(0,L2.default)(_2,K2.MAP,G2.default.object),(0,L2.default)(_2,K2.ANCHOR,G2.default.object),_2),F2.default=J2;var Q2,e3,t3=function(e,t){t?e.open(e.getMap(),t):e.getPosition()?e.open(e.getMap()):(0,U2.default)(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},n3={onCloseClick:"closeclick",onDomReady:"domready",onContentChanged:"content_changed",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},o3={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}},r3={},i3={},a3={exports:{}};var s3=BW;s3(s3.S+s3.F,"Object",{assign:function(){if(e3)return Q2;e3=1;var e=xW(),t=NU,n=HH,o=qH,r=_V,i=pU,a=Object.assign;return Q2=!a||gW((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=a({},e)[n]||Object.keys(a({},t)).join("")!=o}))?function(a,s){for(var l=r(a),c=arguments.length,u=1,p=n.f,d=o.f;c>u;)for(var f,h=i(arguments[u++]),m=p?t(h).concat(p(h)):t(h),v=m.length,g=0;v>g;)f=m[g++],e&&!d.call(h,f)||(l[f]=h[f]);return l}:a,Q2}()});var l3=zV.exports.Object.assign;a3.exports={default:l3,__esModule:!0},i3.__esModule=!0;var c3=function(e){return e&&e.__esModule?e:{default:e}}(a3.exports);i3.default=c3.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var u3=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)},p3=u3,d3=sj,f3=JX((function(e,t,n){return p3(e,d3(t)||0,n)})),h3=f3,m3=VX;var v3=function(e,t,n){"__proto__"==t&&m3?m3(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g3=v3,x3=FF,b3=Object.prototype.hasOwnProperty;var y3=function(e,t,n){var o=e[t];b3.call(e,t)&&x3(o,n)&&(void 0!==n||t in e)||g3(e,t,n)},w3=y3,C3=v3;var E3=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?C3(n,s,l):w3(n,s,l)}return n},O3=FF,D3=_I,S3=aI,k3=ST;var T3=function(e,t,n){if(!k3(n))return!1;var o=typeof t;return!!("number"==o?D3(n)&&S3(t,n.length):"string"==o&&t in n)&&O3(n[t],e)},j3=JX,M3=T3;var A3=function(e){return j3((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&M3(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o<r;){var s=n[o];s&&e(t,s,o,i)}return t}))},N3=y3,P3=E3,R3=A3,B3=_I,F3=jI,_3=zI,L3=Object.prototype.hasOwnProperty,I3=R3((function(e,t){if(F3(t)||B3(t))P3(t,_3(t),e);else for(var n in t)L3.call(t,n)&&N3(e,n,t[n])})),$3={};Object.defineProperty($3,"__esModule",{value:!0});var z3=function(e){return e&&e.__esModule?e:{default:e}}(s_);function V3(e,t){return new t(e.lat,e.lng)}function W3(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function U3(e,t,n){return e instanceof t?e:n(e,t)}$3.getOffsetOverride=function(e,t){var n=t.getPixelPositionOffset;return(0,z3.default)(n)?n(e.offsetWidth,e.offsetHeight):{}},$3.getLayoutStyles=function(e,t,n){if(n.bounds){var o=U3(n.bounds,google.maps.LatLngBounds,W3);return function(e,t,n){var o=e.fromLatLngToDivPixel(n.getNorthEast()),r=e.fromLatLngToDivPixel(n.getSouthWest());if(o&&r)return{left:r.x+t.x+"px",top:o.y+t.y+"px",width:o.x-r.x-t.x+"px",height:r.y-o.y-t.y+"px"};return{left:"-9999px",top:"-9999px"}}(e,t,o)}var r=U3(n.position,google.maps.LatLng,V3);return function(e,t,n){var o=e.fromLatLngToDivPixel(n);if(o){var r=o.x,i=o.y;return{left:r+t.x+"px",top:i+t.y+"px"}}return{left:"-9999px",top:"-9999px"}}(e,t,r)},Object.defineProperty(r3,"__esModule",{value:!0}),r3.OverlayView=void 0;var H3,q3=c5(i3),X3=c5(AZ),G3=c5(RV.exports),Y3=c5(VW),K3=c5(WW),Z3=c5(YW),J3=c5(DX),Q3=c5(h3),e5=c5(I3),t5=c5(mK),n5=c5(gK),o5=c5(u.default),r5=c5(d.default),i5=c5(xe.exports),a5=SJ,s5=$3,l5=BZ;function c5(e){return e&&e.__esModule?e:{default:e}}var u5=r3.OverlayView=function(e){function t(e,n){(0,Y3.default)(this,t);var o=(0,Z3.default)(this,(t.__proto__||(0,G3.default)(t)).call(this,e,n)),r=new google.maps.OverlayView;return r.onAdd=(0,t5.default)(o.onAdd,o),r.draw=(0,t5.default)(o.draw,o),r.onRemove=(0,t5.default)(o.onRemove,o),o.onPositionElement=(0,t5.default)(o.onPositionElement,o),r.setMap(o.context[l5.MAP]),o.state=(0,X3.default)({},l5.OVERLAY_VIEW,r),o}return(0,J3.default)(t,e),(0,K3.default)(t,[{key:"onAdd",value:function(){this.containerElement=document.createElement("div"),this.containerElement.style.position="absolute"}},{key:"draw",value:function(){var e=this.props.mapPaneName;(0,n5.default)(!!e,"OverlayView requires either props.mapPaneName or props.defaultMapPaneName but got %s",e),this.state[l5.OVERLAY_VIEW].getPanes()[e].appendChild(this.containerElement),r5.default.unstable_renderSubtreeIntoContainer(this,o5.default.Children.only(this.props.children),this.containerElement,this.onPositionElement)}},{key:"onPositionElement",value:function(){var e=this.state[l5.OVERLAY_VIEW].getProjection(),t=(0,q3.default)({x:0,y:0},(0,s5.getOffsetOverride)(this.containerElement,this.props)),n=(0,s5.getLayoutStyles)(e,t,this.props);(0,e5.default)(this.containerElement.style,n)}},{key:"onRemove",value:function(){this.containerElement.parentNode.removeChild(this.containerElement),r5.default.unmountComponentAtNode(this.containerElement),this.containerElement=null}},{key:"componentDidMount",value:function(){(0,a5.componentDidMount)(this,this.state[l5.OVERLAY_VIEW],p5)}},{key:"componentDidUpdate",value:function(e){(0,a5.componentDidUpdate)(this,this.state[l5.OVERLAY_VIEW],p5,d5,e),(0,Q3.default)(this.state[l5.OVERLAY_VIEW].draw)}},{key:"componentWillUnmount",value:function(){(0,a5.componentWillUnmount)(this);var e=this.state[l5.OVERLAY_VIEW];e&&(e.setMap(null),e.onAdd=null,e.draw=null,e.onRemove=null)}},{key:"render",value:function(){return!1}},{key:"getPanes",value:function(){return this.state[l5.OVERLAY_VIEW].getPanes()}},{key:"getProjection",value:function(){return this.state[l5.OVERLAY_VIEW].getProjection()}}]),t}(o5.default.PureComponent);u5.FLOAT_PANE="floatPane",u5.MAP_PANE="mapPane",u5.MARKER_LAYER="markerLayer",u5.OVERLAY_LAYER="overlayLayer",u5.OVERLAY_MOUSE_TARGET="overlayMouseTarget",u5.propTypes={mapPaneName:i5.default.string,position:i5.default.object,bounds:i5.default.object,children:i5.default.node.isRequired,getPixelPositionOffset:i5.default.func},u5.contextTypes=(H3={},(0,X3.default)(H3,l5.MAP,i5.default.object),(0,X3.default)(H3,l5.ANCHOR,i5.default.object),H3),r3.default=u5;var p5={},d5={},f5={};Object.defineProperty(f5,"__esModule",{value:!0}),f5.GroundOverlay=void 0;var h5=D5(AZ),m5=D5(RV.exports),v5=D5(VW),g5=D5(WW),x5=D5(YW),b5=D5(DX),y5=D5(RZ),w5=D5(u.default),C5=D5(xe.exports),E5=SJ,O5=BZ;function D5(e){return e&&e.__esModule?e:{default:e}}var S5=f5.GroundOverlay=function(e){function t(e,n){(0,v5.default)(this,t);var o=(0,x5.default)(this,(t.__proto__||(0,m5.default)(t)).call(this,e,n));(0,y5.default)(!e.url||!e.bounds,"\nFor GroundOveray, url and bounds are passed in to constructor and are immutable\n after iinstantiated. This is the behavior of Google Maps JavaScript API v3 (\n See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay)\n Hence, use the corresponding two props provided by `react-google-maps`.\n They're prefixed with _default_ (defaultUrl, defaultBounds).\n\n In some cases, you'll need the GroundOverlay component to reflect the changes\n of url and bounds. You can leverage the React's key property to remount the\n component. Typically, just `key={url}` would serve your need.\n See https://github.com/tomchentw/react-google-maps/issues/655\n");var r=new google.maps.GroundOverlay(e.defaultUrl||e.url,e.defaultBounds||e.bounds);return(0,E5.construct)(t.propTypes,T5,o.props,r),r.setMap(o.context[O5.MAP]),o.state=(0,h5.default)({},O5.GROUND_LAYER,r),o}return(0,b5.default)(t,e),(0,g5.default)(t,[{key:"componentDidMount",value:function(){(0,E5.componentDidMount)(this,this.state[O5.GROUND_LAYER],k5)}},{key:"componentDidUpdate",value:function(e){(0,E5.componentDidUpdate)(this,this.state[O5.GROUND_LAYER],k5,T5,e)}},{key:"componentWillUnmount",value:function(){(0,E5.componentWillUnmount)(this);var e=this.state[O5.GROUND_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getBounds",value:function(){return this.state[O5.GROUND_LAYER].getBounds()}},{key:"getOpacity",value:function(){return this.state[O5.GROUND_LAYER].getOpacity()}},{key:"getUrl",value:function(){return this.state[O5.GROUND_LAYER].getUrl()}}]),t}(w5.default.PureComponent);S5.propTypes={defaultUrl:C5.default.string,defaultBounds:C5.default.object,url:C5.default.string,bounds:C5.default.object,defaultOpacity:C5.default.number,opacity:C5.default.number,onDblClick:C5.default.func,onClick:C5.default.func},S5.contextTypes=(0,h5.default)({},O5.MAP,C5.default.object),f5.default=S5;var k5={onDblClick:"dblclick",onClick:"click"},T5={opacity:function(e,t){e.setOpacity(t)}},j5={};Object.defineProperty(j5,"__esModule",{value:!0}),j5.DirectionsRenderer=void 0;var M5=$5(AZ),A5=$5(RV.exports),N5=$5(VW),P5=$5(WW),R5=$5(YW),B5=$5(DX),F5=$5(u.default),_5=$5(xe.exports),L5=SJ,I5=BZ;function $5(e){return e&&e.__esModule?e:{default:e}}var z5=j5.DirectionsRenderer=function(e){function t(e,n){(0,N5.default)(this,t);var o=(0,R5.default)(this,(t.__proto__||(0,A5.default)(t)).call(this,e,n)),r=new google.maps.DirectionsRenderer;return(0,L5.construct)(t.propTypes,W5,o.props,r),r.setMap(o.context[I5.MAP]),o.state=(0,M5.default)({},I5.DIRECTIONS_RENDERER,r),o}return(0,B5.default)(t,e),(0,P5.default)(t,[{key:"componentDidMount",value:function(){(0,L5.componentDidMount)(this,this.state[I5.DIRECTIONS_RENDERER],V5)}},{key:"componentDidUpdate",value:function(e){(0,L5.componentDidUpdate)(this,this.state[I5.DIRECTIONS_RENDERER],V5,W5,e)}},{key:"componentWillUnmount",value:function(){(0,L5.componentWillUnmount)(this);var e=this.state[I5.DIRECTIONS_RENDERER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDirections",value:function(){return this.state[I5.DIRECTIONS_RENDERER].getDirections()}},{key:"getPanel",value:function(){return this.state[I5.DIRECTIONS_RENDERER].getPanel()}},{key:"getRouteIndex",value:function(){return this.state[I5.DIRECTIONS_RENDERER].getRouteIndex()}}]),t}(F5.default.PureComponent);z5.propTypes={defaultDirections:_5.default.any,defaultOptions:_5.default.any,defaultPanel:_5.default.any,defaultRouteIndex:_5.default.number,directions:_5.default.any,options:_5.default.any,panel:_5.default.any,routeIndex:_5.default.number,onDirectionsChanged:_5.default.func},z5.contextTypes=(0,M5.default)({},I5.MAP,_5.default.object),j5.default=z5;var V5={onDirectionsChanged:"directions_changed"},W5={directions:function(e,t){e.setDirections(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}},U5={};Object.defineProperty(U5,"__esModule",{value:!0}),U5.FusionTablesLayer=void 0;var H5=t4(AZ),q5=t4(RV.exports),X5=t4(VW),G5=t4(WW),Y5=t4(YW),K5=t4(DX),Z5=t4(u.default),J5=t4(xe.exports),Q5=SJ,e4=BZ;function t4(e){return e&&e.__esModule?e:{default:e}}var n4=U5.FusionTablesLayer=function(e){function t(e,n){(0,X5.default)(this,t);var o=(0,Y5.default)(this,(t.__proto__||(0,q5.default)(t)).call(this,e,n)),r=new google.maps.FusionTablesLayer;return(0,Q5.construct)(t.propTypes,r4,o.props,r),r.setMap(o.context[e4.MAP]),o.state=(0,H5.default)({},e4.FUSION_TABLES_LAYER,r),o}return(0,K5.default)(t,e),(0,G5.default)(t,[{key:"componentDidMount",value:function(){(0,Q5.componentDidMount)(this,this.state[e4.FUSION_TABLES_LAYER],o4)}},{key:"componentDidUpdate",value:function(e){(0,Q5.componentDidUpdate)(this,this.state[e4.FUSION_TABLES_LAYER],o4,r4,e)}},{key:"componentWillUnmount",value:function(){(0,Q5.componentWillUnmount)(this);var e=this.state[e4.FUSION_TABLES_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(Z5.default.PureComponent);n4.propTypes={defaultOptions:J5.default.any,options:J5.default.any,onClick:J5.default.func},n4.contextTypes=(0,H5.default)({},e4.MAP,J5.default.object),U5.default=n4;var o4={onClick:"click"},r4={options:function(e,t){e.setOptions(t)}},i4={};Object.defineProperty(i4,"__esModule",{value:!0}),i4.KmlLayer=void 0;var a4=v4(AZ),s4=v4(RV.exports),l4=v4(VW),c4=v4(WW),u4=v4(YW),p4=v4(DX),d4=v4(u.default),f4=v4(xe.exports),h4=SJ,m4=BZ;function v4(e){return e&&e.__esModule?e:{default:e}}var g4=i4.KmlLayer=function(e){function t(e,n){(0,l4.default)(this,t);var o=(0,u4.default)(this,(t.__proto__||(0,s4.default)(t)).call(this,e,n)),r=new google.maps.KmlLayer;return(0,h4.construct)(t.propTypes,b4,o.props,r),r.setMap(o.context[m4.MAP]),o.state=(0,a4.default)({},m4.KML_LAYER,r),o}return(0,p4.default)(t,e),(0,c4.default)(t,[{key:"componentDidMount",value:function(){(0,h4.componentDidMount)(this,this.state[m4.KML_LAYER],x4)}},{key:"componentDidUpdate",value:function(e){(0,h4.componentDidUpdate)(this,this.state[m4.KML_LAYER],x4,b4,e)}},{key:"componentWillUnmount",value:function(){(0,h4.componentWillUnmount)(this);var e=this.state[m4.KML_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}},{key:"getDefaultViewport",value:function(){return this.state[m4.KML_LAYER].getDefaultViewport()}},{key:"getMetadata",value:function(){return this.state[m4.KML_LAYER].getMetadata()}},{key:"getStatus",value:function(){return this.state[m4.KML_LAYER].getStatus()}},{key:"getUrl",value:function(){return this.state[m4.KML_LAYER].getUrl()}},{key:"getZIndex",value:function(){return this.state[m4.KML_LAYER].getZIndex()}}]),t}(d4.default.PureComponent);g4.propTypes={defaultOptions:f4.default.any,defaultUrl:f4.default.string,defaultZIndex:f4.default.number,options:f4.default.any,url:f4.default.string,zIndex:f4.default.number,onDefaultViewportChanged:f4.default.func,onClick:f4.default.func,onStatusChanged:f4.default.func},g4.contextTypes=(0,a4.default)({},m4.MAP,f4.default.object),i4.default=g4;var x4={onDefaultViewportChanged:"defaultviewport_changed",onClick:"click",onStatusChanged:"status_changed"},b4={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}},y4={};Object.defineProperty(y4,"__esModule",{value:!0}),y4.TrafficLayer=void 0;var w4=A4(AZ),C4=A4(RV.exports),E4=A4(VW),O4=A4(WW),D4=A4(YW),S4=A4(DX),k4=A4(u.default),T4=A4(xe.exports),j4=SJ,M4=BZ;function A4(e){return e&&e.__esModule?e:{default:e}}var N4=y4.TrafficLayer=function(e){function t(e,n){(0,E4.default)(this,t);var o=(0,D4.default)(this,(t.__proto__||(0,C4.default)(t)).call(this,e,n)),r=new google.maps.TrafficLayer;return(0,j4.construct)(t.propTypes,R4,o.props,r),r.setMap(o.context[M4.MAP]),o.state=(0,w4.default)({},M4.TRAFFIC_LAYER,r),o}return(0,S4.default)(t,e),(0,O4.default)(t,[{key:"componentDidMount",value:function(){(0,j4.componentDidMount)(this,this.state[M4.TRAFFIC_LAYER],P4)}},{key:"componentDidUpdate",value:function(e){(0,j4.componentDidUpdate)(this,this.state[M4.TRAFFIC_LAYER],P4,R4,e)}},{key:"componentWillUnmount",value:function(){(0,j4.componentWillUnmount)(this);var e=this.state[M4.TRAFFIC_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(k4.default.PureComponent);N4.propTypes={defaultOptions:T4.default.any,options:T4.default.any},N4.contextTypes=(0,w4.default)({},M4.MAP,T4.default.object),y4.default=N4;var P4={},R4={options:function(e,t){e.setOptions(t)}},B4={};Object.defineProperty(B4,"__esModule",{value:!0}),B4.StreetViewPanorama=void 0;var F4=X4(AZ),_4=X4(RV.exports),L4=X4(VW),I4=X4(WW),$4=X4(YW),z4=X4(DX),V4=X4(gK),W4=X4(u.default),U4=X4(xe.exports),H4=SJ,q4=BZ;function X4(e){return e&&e.__esModule?e:{default:e}}var G4=B4.StreetViewPanorama=function(e){function t(e,n){(0,L4.default)(this,t);var o=(0,$4.default)(this,(t.__proto__||(0,_4.default)(t)).call(this,e,n));return(0,V4.default)(!!o.context[q4.MAP],"Did you render <StreetViewPanorama> as a child of <GoogleMap> with withGoogleMap() HOC?"),(0,H4.construct)(t.propTypes,K4,o.props,o.context[q4.MAP].getStreetView()),o}return(0,z4.default)(t,e),(0,I4.default)(t,[{key:"getChildContext",value:function(){return(0,F4.default)({},q4.MAP,this.context[q4.MAP].getStreetView())}},{key:"componentDidMount",value:function(){(0,H4.componentDidMount)(this,this.context[q4.MAP].getStreetView(),Y4)}},{key:"componentDidUpdate",value:function(e){(0,H4.componentDidUpdate)(this,this.context[q4.MAP].getStreetView(),Y4,K4,e)}},{key:"componentWillUnmount",value:function(){(0,H4.componentWillUnmount)(this);var e=this.context[q4.MAP].getStreetView();e&&e.setVisible(!1)}},{key:"render",value:function(){var e=this.props.children;return W4.default.createElement("div",null,e)}},{key:"getLinks",value:function(){return this.context[q4.MAP].getLinks()}},{key:"getLocation",value:function(){return this.context[q4.MAP].getLocation()}},{key:"getMotionTracking",value:function(){return this.context[q4.MAP].getMotionTracking()}},{key:"getPano",value:function(){return this.context[q4.MAP].getPano()}},{key:"getPhotographerPov",value:function(){return this.context[q4.MAP].getPhotographerPov()}},{key:"getPosition",value:function(){return this.context[q4.MAP].getPosition()}},{key:"getPov",value:function(){return this.context[q4.MAP].getPov()}},{key:"getStatus",value:function(){return this.context[q4.MAP].getStatus()}},{key:"getVisible",value:function(){return this.context[q4.MAP].getVisible()}},{key:"getZoom",value:function(){return this.context[q4.MAP].getZoom()}}]),t}(W4.default.PureComponent);G4.propTypes={defaultLinks:U4.default.any,defaultMotionTracking:U4.default.bool,defaultOptions:U4.default.any,defaultPano:U4.default.string,defaultPosition:U4.default.any,defaultPov:U4.default.any,defaultVisible:U4.default.bool,defaultZoom:U4.default.number,links:U4.default.any,motionTracking:U4.default.bool,options:U4.default.any,pano:U4.default.string,position:U4.default.any,pov:U4.default.any,visible:U4.default.bool,zoom:U4.default.number,onCloseClick:U4.default.func,onPanoChanged:U4.default.func,onPositionChanged:U4.default.func,onPovChanged:U4.default.func,onResize:U4.default.func,onStatusChanged:U4.default.func,onVisibleChanged:U4.default.func,onZoomChanged:U4.default.func},G4.contextTypes=(0,F4.default)({},q4.MAP,U4.default.object),G4.childContextTypes=(0,F4.default)({},q4.MAP,U4.default.object),B4.default=G4;var Y4={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},K4={links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}},Z4={};Object.defineProperty(Z4,"__esModule",{value:!0}),Z4.BicyclingLayer=void 0;var J4=l6(AZ),Q4=l6(RV.exports),e6=l6(VW),t6=l6(WW),n6=l6(YW),o6=l6(DX),r6=l6(u.default),i6=l6(xe.exports),a6=SJ,s6=BZ;function l6(e){return e&&e.__esModule?e:{default:e}}var c6=Z4.BicyclingLayer=function(e){function t(e,n){(0,e6.default)(this,t);var o=(0,n6.default)(this,(t.__proto__||(0,Q4.default)(t)).call(this,e,n)),r=new google.maps.BicyclingLayer;return(0,a6.construct)(t.propTypes,p6,o.props,r),r.setMap(o.context[s6.MAP]),o.state=(0,J4.default)({},s6.BICYCLING_LAYER,r),o}return(0,o6.default)(t,e),(0,t6.default)(t,[{key:"componentDidMount",value:function(){(0,a6.componentDidMount)(this,this.state[s6.BICYCLING_LAYER],u6)}},{key:"componentDidUpdate",value:function(e){(0,a6.componentDidUpdate)(this,this.state[s6.BICYCLING_LAYER],u6,p6,e)}},{key:"componentWillUnmount",value:function(){(0,a6.componentWillUnmount)(this);var e=this.state[s6.BICYCLING_LAYER];e&&e.setMap(null)}},{key:"render",value:function(){return!1}}]),t}(r6.default.PureComponent);c6.propTypes={},c6.contextTypes=(0,J4.default)({},s6.MAP,i6.default.object),Z4.default=c6;var u6={},p6={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=NV;Object.defineProperty(e,"withScriptjs",{enumerable:!0,get:function(){return x(t).default}});var n=MZ;Object.defineProperty(e,"withGoogleMap",{enumerable:!0,get:function(){return x(n).default}});var o=eJ;Object.defineProperty(e,"GoogleMap",{enumerable:!0,get:function(){return x(o).default}});var r=h1;Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return x(r).default}});var i=j1;Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return x(i).default}});var a=H1;Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return x(a).default}});var s=a2;Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return x(s).default}});var l=w2;Object.defineProperty(e,"Rectangle",{enumerable:!0,get:function(){return x(l).default}});var c=F2;Object.defineProperty(e,"InfoWindow",{enumerable:!0,get:function(){return x(c).default}});var u=r3;Object.defineProperty(e,"OverlayView",{enumerable:!0,get:function(){return x(u).default}});var p=f5;Object.defineProperty(e,"GroundOverlay",{enumerable:!0,get:function(){return x(p).default}});var d=j5;Object.defineProperty(e,"DirectionsRenderer",{enumerable:!0,get:function(){return x(d).default}});var f=U5;Object.defineProperty(e,"FusionTablesLayer",{enumerable:!0,get:function(){return x(f).default}});var h=i4;Object.defineProperty(e,"KmlLayer",{enumerable:!0,get:function(){return x(h).default}});var m=y4;Object.defineProperty(e,"TrafficLayer",{enumerable:!0,get:function(){return x(m).default}});var v=B4;Object.defineProperty(e,"StreetViewPanorama",{enumerable:!0,get:function(){return x(v).default}});var g=Z4;function x(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"BicyclingLayer",{enumerable:!0,get:function(){return x(g).default}})}(AV);var d6,f6,h6,m6,v6,g6,x6,b6,y6,w6,C6,E6,O6,D6,S6,k6,T6,j6,M6,A6,N6,P6,R6,B6,F6,_6,L6,I6,$6,z6,V6,W6,U6,H6,q6,X6,G6,Y6,K6,Z6=AV.withScriptjs(AV.withGoogleMap((function(e){var n=e.position;return t.jsx(t.Fragment,{children:t.jsx(AV.GoogleMap,{defaultZoom:8,defaultCenter:n})})}))),J6=function(t){var n=t.isError,o=t.disabled,r=t.internalConfig||{},i=r.selectedRadioOptionBackgroundColor,a=void 0===i?"transparent":i,s=r.selectedRadioOptionIndicatorColor,l=void 0===s?"primary":s,c=r.styles,u=r.wrapperStyles,p=r.textPadding,d=r.buttonPadding,f=void 0===d?0:d,h=r.radioGroupWrapperStyles,m=r.buttonOptionSpacing,v=void 0===m?"XS":m,g=e.css(f6||(f6=x(["\n ","\n\n ","\n "],["\n ","\n\n ","\n "])),p&&e.css(d6||(d6=x(["\n padding: ","px;\n "],["\n padding: ","px;\n "])),p),c),b=e.css(m6||(m6=x(["\n ","\n ","\n "],["\n ","\n ","\n "])),(function(t){var n=t.theme.colors;return e.css(h6||(h6=x(["\n &.Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n "],["\n &.Mui-checked {\n color: ",";\n svg:nth-child(1) {\n background-color: ",";\n }\n }\n "])),n[l]||l,n[a]||a)}),c),y=e.css(v6||(v6=x(["\n padding: ","px;\n ","\n ","\n "],["\n padding: ","px;\n ","\n ","\n "])),f,c,u),w=e.css(x6||(x6=x(["\n ","\n ","\n "],["\n ","\n ","\n "])),(function(t){var n=t.theme.sizes;return e.css(g6||(g6=x(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n[v])}),h);return{textStyles:g,groupWrapperStyles:w,radioIconWrapperStyles:b,radioLabelWrapperStyles:y,textColor:n?"red":o?"gray3":"gray1"}},Q6=l.default(vm)(y6||(y6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.$isError,r=t.$styles;return e.css(b6||(b6=x(["\n color: ",";\n ","\n "],["\n color: ",";\n ","\n "])),o?n.red:n.gray1,r)})),e8=l.default(jb)(D6||(D6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.$disabled,r=t.$isError,i=t.$styles,a=t.$isEditMode;return e.css(O6||(O6=x(["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "],["\n color: ",";\n cursor: ",";\n\n & .MuiSvgIcon-root {\n font-size: 16px;\n }\n\n &:hover {\n color: ",";\n ","\n }\n\n &.Mui-checked {\n svg:nth-child(1) {\n color: ",";\n border-radius: 50%;\n }\n }\n ","\n\n ","\n \n ","\n "])),n.gray3,a?"pointer":"default",a?n.gray2:n.gray3,!a&&e.css(w6||(w6=x(["\n background-color: transparent;\n "],["\n background-color: transparent;\n "]))),n.gray3,o&&e.css(C6||(C6=x(["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "],["\n & .MuiSvgIcon-root {\n color: ",";\n background-color: ",";\n border-radius: 50%;\n }\n "])),n.gray4,n.gray4),r&&e.css(E6||(E6=x(["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "],["\n color: ",";\n &.Mui-checked {\n color: ",";\n }\n "])),n.red,n.red),i)})),t8=function(e){var n=e.option,o=e.isError,r=void 0!==o&&o,i=e.disabled,a=void 0!==i&&i,s=e.isEditMode,l=e.isRichText,c=void 0===l||l,u=e.internalConfig,p=J6({isError:r,disabled:a,internalConfig:u}),d=p.textStyles,h=p.radioIconWrapperStyles,m=p.radioLabelWrapperStyles,v=p.textColor,g=n.id,x=n.label;return t.jsx(t.Fragment,{children:t.jsx(Q6,{value:g,$isError:r,$styles:m,label:c?t.jsx(NP,{extraTextProps:{behaveAs:a?"text":"button"},textStyles:d,color:v,value:x,font:"M"}):t.jsx(BP,f({styles:d,behaveAs:a?"text":"button",color:v,variant:"M"},{children:x})),control:t.jsx(e8,{disableRipple:!s,$disabled:a,$isError:r,$isEditMode:s,$styles:h})})})},n8=function(e){var n=e.ref,o=e.name,r=e.value,i=e.options,a=e.onBlur,s=e.onChange,l=e.isRow,c=void 0!==l&&l,u=e.isError,p=void 0!==u&&u,d=e.disabled,h=void 0!==d&&d,m=e.isEditMode,v=void 0===m||m,g=e.isRichText,x=void 0===g||g,b=e.internalConfig,y=J6({internalConfig:b}).groupWrapperStyles;return t.jsx(o8,f({ref:n,row:c,$isRow:c,name:o,value:r,onBlur:a,onChange:function(e){v&&(null==s||s(e.target.value))},$styles:y},{children:null==i?void 0:i.map((function(e){return t.jsx(t8,{option:e,isError:p,disabled:h,isRichText:x,isEditMode:v,internalConfig:b},e.id)}))}))},o8=l.default(Ab)(k6||(k6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.$styles,o=t.$isRow;return e.css(S6||(S6=x(["\n justify-content: ",";\n ",";\n "],["\n justify-content: ",";\n ",";\n "])),o?"space-between":"flex-start",n)})),r8={link:{fontColor:S.colors.blueShade,backgroundColor:S.colors.blueTint},message:{fontColor:S.colors.yellowShade,backgroundColor:S.colors.yellowTint}},i8=e.css(T6||(T6=x(["\n text-decoration-line: none;\n"],["\n text-decoration-line: none;\n"]))),a8=function(e){var n=e.index,o=e.type;return t.jsx(s8,f({component:"span",backgroundColor:r8[o].backgroundColor},{children:t.jsx(BP,f({styles:i8,variant:"M",color:r8[o].fontColor},{children:n}))}))},s8=l.default(bd)(M6||(M6=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.backgroundColor;return e.css(j6||(j6=x(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "],["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: ","px;\n height: ","px;\n "])),o,n.L,n.L)})),l8=l.default.span(A6||(A6=x(["\n display: inline-flex;\n gap: 2px;\n"],["\n display: inline-flex;\n gap: 2px;\n"]))),c8=function(n){var o=n.activeColor,r=n.inactiveColor,i=h(n,["activeColor","inactiveColor"]),a=(e.useTheme()||S).colors;return t.jsx(u8,f({},i,{activeColor:a[o]||o,inactiveColor:a[r]||r}))},u8=l.default.span(P6||(P6=x(["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"],["\n display: block;\n width: 20px;\n height: 20px;\n margin: 5px;\n border-radius: 100%;\n background-clip: content-box;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.active,a=t.activeColor,s=t.inactiveColor;return e.css(N6||(N6=x(["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "],["\n padding: ","px;\n border: ",";\n background-color: ",";\n box-shadow: ",";\n "])),r.XS,i?"1px solid ".concat(a||o.white):"none",i?a||o.white:s||o.gray3,i?"inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 4px rgba(0, 0, 0, 0.05)":"unset")})),p8={ArrowRight:FD,Bell:kD,Bookmark:hD,CaretDown:mD,CaretLeft:gD,CaretRight:xD,CaretUp:vD,Check:bD,Close:CD,Edit:AD,Filter:wD,Hide:OD,Info:yD,InfoBoxIcon:DD,Mail:MD,Menu:PD,Minus:SD,Mobile:jD,Play:RD,Save:ND,Search:BD,View:ED,Warning:TD},d8=function(n){var o=n.name,r=n.color,i=n.onClick,a=n.disabled,s=n.activeOpacity,l=n.withoutOpacityEffect,c=h(n,["name","color","onClick","disabled","activeOpacity","withoutOpacityEffect"]),u=(e.useTheme()||S).colors,p=p8[o];return t.jsx(w,f({onClick:i,disabled:a,activeOpacity:s,withoutOpacityEffect:l},{children:t.jsx(p,f({},c,{color:u[r]||r}))}))},f8=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="light");var o=S.colors;return t&&e?o[e]||e:t?"dark"===n?o.gray2:o.gray4:"transparent"},h8=l.default(BP)(F6||(F6=x(["\n width: max-content;\n ","\n"],["\n width: max-content;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=n.fonts,a=t.tabTheme,s=t.textSize,l=t.defaultTabTextColor,c=void 0===l?"gray2":l,u=t.tabPadding,p=void 0===u?0:u,d=t.tabFont,f=void 0===d?"L":d,h=o[c]||c;return e.css(B6||(B6=x(["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "],["\n color: ",";\n padding: ","px;\n ",";\n &:hover {\n color: ",";\n }\n "])),h||("dark"===a?o.gray3:o.gray2),r[p]||p,s?e.css(R6||(R6=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),s):i[f],h||("dark"===a?o.white:o.gray1))})),m8=l.default.div($6||($6=x(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n ",";\n"])),(function(t){var n=t.theme.colors,o=t.isActive,r=t.disabled,i=t.tabTheme,a=t.selectedTabTextColor,s=t.styles;if(r)return e.css(_6||(_6=x(["\n pointer-events: none;\n "," {\n color: ",";\n }\n "],["\n pointer-events: none;\n "," {\n color: ",";\n }\n "])),h8,"dark"===i?n.gray2:n.gray3);if(o){var l=n[a]||a;return e.css(L6||(L6=x(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),h8,l||("dark"===i?n.white:n.gray1))}return e.css(I6||(I6=x(["\n ","\n "],["\n ","\n "])),s)})),v8=l.default.div(V6||(V6=x(["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"],["\n transition: 0.25s;\n margin-left: 10px;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n transform: scale(0.8);\n }\n ",";\n"])),(function(t){var n=t.isActive,o=t.disabled,r=t.tabTheme,i=t.defaultTabTextColor,a=void 0===i?"gray2":i;return e.css(z6||(z6=x(["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "],["\n transform: ",";\n svg path {\n stroke: ",";\n }\n "])),n?"rotate(180deg)":"rotate(0deg)",function(e,t,n){void 0===e&&(e="gray1"),void 0===t&&(t="light"),void 0===n&&(n=!1);var o=S.colors;return"dark"===t?n?o.gray2:o.gray3:n?o.gray3:o[e]||e}(a,r,o))})),g8=function(n){var o=n.isRichText,r=void 0!==o&&o,i=n.variant,a=void 0===i?"base":i,s=n.text,l=void 0===s?"":s,c=n.seoTag,u=void 0===c?"h6":c,p=n.fontVariant,d=void 0===p?"L":p,m=n.textColor,v=n.textSize,g=n.fontWeight,b=n.lineHeight,y=n.letterSpacing,w=n.styles,C=n.textAlign,E=n.htmlElementId,O=h(n,["isRichText","variant","text","seoTag","fontVariant","textColor","textSize","fontWeight","lineHeight","letterSpacing","styles","textAlign","htmlElementId"]),D=e.css(W6||(W6=x(["\n ",";\n ",";\n ",";\n ",";\n ","\n "],["\n ",";\n ",";\n ",";\n ",";\n ","\n "])),v?"font-size: ".concat(v,"px;"):"",g?"font-weight: ".concat(g,";"):"",b?"line-height: ".concat(b,"px;"):"",y?"letter-spacing: ".concat(y,"px;"):"",w),S=f({variant:d,color:m,styles:"custom"===a?D:void 0,seoTag:u,textAlign:C},O);return r?t.jsx(NP,{htmlElementId:E,value:l,extraTextProps:S}):t.jsx(BP,f({},S,{htmlElementId:E},{children:l}))},x8={OPTIONAL:{text:"Optional",color:"gray3"},REQUIRED:{text:"Required",color:"red"}},b8=function(n){var o=n.label,r=void 0===o?"":o,i=n.isTooltipVisible,a=n.isError,s=n.ruleLabel,l=n.tooltipText,c=n.labelInternalConfig,u=n.ruleLabelInternalConfig,p=n.tooltipInternalConfig,d=n.isRichText,h=void 0!==d&&d,m=e.useTheme().colors,v=c||{},g=v.color,b=v.fontSize,y=v.fontVariant,w=void 0===y?"S":y,C=v.fontWeight,E=v.padding,O=v.styles,D=v.wrapperStyles,S=e.css(q6||(q6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),E?"padding: ".concat(E,";"):"",O),k=m[g]||g,T=u||{},j=T.fontSize,M=T.optionalTextColor,A=T.padding,N=T.requiredTextColor,P=T.styles,R=e.css(X6||(X6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),A?"padding: ".concat(A,";"):"",P),B=s?x8[s]:void 0,F="OPTIONAL"===s?M:N,_=m[F]||F||B&&m[B.color],L=function(t){var n=t||{},o=n.backgroundColor,r=n.color,i=n.fontSize,a=n.fontVariant,s=n.fontWeight,l=n.padding,c=n.styles,u=n.wrapperStyles,p=n.iconColor,d=e.css(U6||(U6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme,n=t.colors,c=t.fonts;return"\n ".concat(o?"background-color: ".concat(n[o]||o,";"):"",";\n ").concat(r?"color: ".concat(n[r]||r,";"):"",";\n ").concat(i?"font-size: ".concat(i,"px;"):"",";\n ").concat(a?c[a]:"",";\n ").concat(s?"font-weight: ".concat(s,";"):"",";\n ").concat(l?"padding: ".concat(l,";"):"",";\n ")}),c),f=e.css(H6||(H6=x(["\n ",";\n ",";\n "],["\n ",";\n ",";\n "])),(function(e){var t=e.theme.colors;return"\n svg path {\n stroke: ".concat(t[p]||p,";\n }\n ")}),u);return{tooltipStyles:d,tooltipWrapperStyles:f}}(p),I=L.tooltipStyles,$=L.tooltipWrapperStyles;return t.jsxs(y8,f({$styles:D},{children:[t.jsxs(w8,f({$styles:S},{children:[t.jsx(g8,{fontVariant:w,textSize:b,fontWeight:C,textColor:a?m.red:k||m.gray2,text:r,variant:"custom",isRichText:h}),!!l&&t.jsx(Oz,f({},i&&{visible:!0},{overlay:l,styles:I},{children:t.jsx(C8,f({$styles:$},{children:t.jsx(LD,{color:a?m.red:m.gray2,name:"Info"})}))}))]})),!!B&&t.jsx(g8,{fontVariant:"XS",textColor:_,textSize:j,text:B.text,styles:R,variant:"custom"})]}))},y8=l.default.div(G6||(G6=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),w8=l.default.div(Y6||(Y6=x(["\n display: flex;\n align-items: center;\n ",";\n"],["\n display: flex;\n align-items: center;\n ",";\n"])),(function(e){return e.$styles})),C8=l.default.div(K6||(K6=x(["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"],["\n margin-left: 6px;\n display: flex;\n cursor: pointer;\n ",";\n"])),(function(e){return e.$styles})),E8=e=>"checkbox"===e.type,O8=e=>e instanceof Date,D8=e=>null==e;const S8=e=>"object"==typeof e;var k8=e=>!D8(e)&&!Array.isArray(e)&&S8(e)&&!O8(e),T8=e=>k8(e)&&e.target?E8(e.target)?e.target.checked:e.target.value:e,j8=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),M8=e=>Array.isArray(e)?e.filter(Boolean):[],A8=e=>void 0===e,N8=(e,t,n)=>{if(!t||!k8(e))return n;const o=M8(t.split(/[,[\].]+?/)).reduce(((e,t)=>D8(e)?e:e[t]),e);return A8(o)||o===e?A8(e[t])?n:e[t]:o};const P8="blur",R8="focusout",B8="change",F8="onBlur",_8="onChange",L8="onSubmit",I8="onTouched",$8="all",z8="max",V8="min",W8="maxLength",U8="minLength",H8="pattern",q8="required",X8="validate",G8=u.default.createContext(null),Y8=()=>u.default.useContext(G8),K8=e=>{const{children:t,...n}=e;return u.default.createElement(G8.Provider,{value:n},t)};var Z8=(e,t,n,o=!0)=>{const r={};for(const i in e)Object.defineProperty(r,i,{get:()=>{const r=i;return t[r]!==$8&&(t[r]=!o||$8),n&&(n[r]=!0),e[r]}});return r},J8=e=>k8(e)&&!Object.keys(e).length,Q8=(e,t,n)=>{const{name:o,...r}=e;return J8(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!n||$8)))},e9=e=>Array.isArray(e)?e:[e],t9=(e,t,n)=>n&&t?e===t:!e||!t||e===t||e9(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function n9(e){const t=u.default.useRef(e);t.current=e,u.default.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(n)}),[e.disabled])}var o9=e=>"string"==typeof e,r9=(e,t,n,o)=>{const r=Array.isArray(e);return o9(e)?(o&&t.watch.add(e),N8(n,e)):r?e.map((e=>(o&&t.watch.add(e),N8(n,e)))):(o&&(t.watchAll=!0),n)},i9=e=>"function"==typeof e,a9=e=>{for(const t in e)if(i9(e[t]))return!0;return!1};function s9(e){const t=Y8(),{name:n,control:o=t.control,shouldUnregister:r}=e,i=j8(o._names.array,n),a=function(e){const t=Y8(),{control:n=t.control,name:o,defaultValue:r,disabled:i,exact:a}=e||{},s=u.default.useRef(o);s.current=o;const l=u.default.useCallback((e=>{if(t9(s.current,e.name,a)){const t=r9(s.current,n._names,e.values||n._formValues);p(A8(s.current)||k8(t)&&!a9(t)?{...t}:Array.isArray(t)?[...t]:A8(t)?r:t)}}),[n,a,r]);n9({disabled:i,subject:n._subjects.watch,callback:l});const[c,p]=u.default.useState(A8(r)?n._getWatch(o):r);return u.default.useEffect((()=>{n._removeUnmounted()})),c}({control:o,name:n,defaultValue:N8(o._formValues,n,N8(o._defaultValues,n,e.defaultValue)),exact:!0}),s=function(e){const t=Y8(),{control:n=t.control,disabled:o,name:r,exact:i}=e||{},[a,s]=u.default.useState(n._formState),l=u.default.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=u.default.useRef(r),p=u.default.useRef(!0);return c.current=r,n9({disabled:o,callback:u.default.useCallback((e=>p.current&&t9(c.current,e.name,i)&&Q8(e,l.current)&&s({...n._formState,...e})),[n,i]),subject:n._subjects.state}),u.default.useEffect((()=>(p.current=!0,()=>{p.current=!1})),[]),Z8(a,n._proxyFormState,l.current,!1)}({control:o,name:n}),l=u.default.useRef(o.register(n,{...e.rules,value:a}));return u.default.useEffect((()=>{const e=(e,t)=>{const n=N8(o._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=o._options.shouldUnregister||r;(i?t&&!o._stateFlags.action:t)?o.unregister(n):e(n,!1)}}),[n,o,i,r]),{field:{name:n,value:a,onChange:u.default.useCallback((e=>{l.current.onChange({target:{value:T8(e),name:n},type:B8})}),[n]),onBlur:u.default.useCallback((()=>{l.current.onBlur({target:{value:N8(o._formValues,n),name:n},type:P8})}),[n,o]),ref:u.default.useCallback((e=>{const t=N8(o._fields,n);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[n,o._fields])},formState:s,fieldState:Object.defineProperties({},{invalid:{get:()=>!!N8(s.errors,n)},isDirty:{get:()=>!!N8(s.dirtyFields,n)},isTouched:{get:()=>!!N8(s.touchedFields,n)},error:{get:()=>N8(s.errors,n)}})}}const l9=e=>e.render(s9(e));var c9=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},u9=e=>/^\w*$/.test(e),p9=e=>M8(e.replace(/["|']|\]/g,"").split(/\.|\[/));function d9(e,t,n){let o=-1;const r=u9(t)?[t]:p9(t),i=r.length,a=i-1;for(;++o<i;){const t=r[o];let i=n;if(o!==a){const n=e[t];i=k8(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}e[t]=i,e=e[t]}return e}const f9=(e,t,n)=>{for(const o of n||Object.keys(e)){const n=N8(e,o);if(n){const{_f:e,...o}=n;if(e&&t(e.name)){if(e.ref.focus&&A8(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else k8(o)&&f9(o,t)}}};var h9=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),m9=(e,t,n)=>{const o=M8(N8(e,n));return d9(o,"root",t[n]),d9(e,n,o),e},v9=e=>"boolean"==typeof e,g9=e=>"file"===e.type,x9=e=>o9(e)||u.default.isValidElement(e),b9=e=>"radio"===e.type,y9=e=>e instanceof RegExp;const w9={value:!1,isValid:!1},C9={value:!0,isValid:!0};var E9=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!A8(e[0].attributes.value)?A8(e[0].value)||""===e[0].value?C9:{value:e[0].value,isValid:!0}:C9:w9}return w9};const O9={isValid:!1,value:null};var D9=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),O9):O9;function S9(e,t,n="validate"){if(x9(e)||Array.isArray(e)&&e.every(x9)||v9(e)&&!e)return{type:n,message:x9(e)?e:"",ref:t}}var k9=e=>k8(e)&&!y9(e)?e:{value:e,message:""},T9=async(e,t,n,o,r)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:u,max:p,pattern:d,validate:f,name:h,valueAsNumber:m,mount:v,disabled:g}=e._f;if(!v||g)return{};const x=a?a[0]:i,b=e=>{o&&x.reportValidity&&(x.setCustomValidity(v9(e)?"":e||" "),x.reportValidity())},y={},w=b9(i),C=E8(i),E=w||C,O=(m||g9(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,D=c9.bind(null,h,n,y),S=(e,t,n,o=W8,r=U8)=>{const a=e?t:n;y[h]={type:e?o:r,message:a,ref:i,...D(e?o:r,a)}};if(r?!Array.isArray(t)||!t.length:s&&(!E&&(O||D8(t))||v9(t)&&!t||C&&!E9(a).isValid||w&&!D9(a).isValid)){const{value:e,message:t}=x9(s)?{value:!!s,message:s}:k9(s);if(e&&(y[h]={type:q8,message:t,ref:x,...D(q8,t)},!n))return b(t),y}if(!(O||D8(u)&&D8(p))){let e,o;const r=k9(p),a=k9(u);if(D8(t)||isNaN(t)){const n=i.valueAsDate||new Date(t);o9(r.value)&&(e=n>new Date(r.value)),o9(a.value)&&(o=n<new Date(a.value))}else{const n=i.valueAsNumber||+t;D8(r.value)||(e=n>r.value),D8(a.value)||(o=n<a.value)}if((e||o)&&(S(!!e,r.message,a.message,z8,V8),!n))return b(y[h].message),y}if((l||c)&&!O&&(o9(t)||r&&Array.isArray(t))){const e=k9(l),o=k9(c),r=!D8(e.value)&&t.length>e.value,i=!D8(o.value)&&t.length<o.value;if((r||i)&&(S(r,e.message,o.message),!n))return b(y[h].message),y}if(d&&!O&&o9(t)){const{value:e,message:o}=k9(d);if(y9(e)&&!t.match(e)&&(y[h]={type:H8,message:o,ref:i,...D(H8,o)},!n))return b(o),y}if(f)if(i9(f)){const e=S9(await f(t),x);if(e&&(y[h]={...e,...D(X8,e.message)},!n))return b(e.message),y}else if(k8(f)){let e={};for(const o in f){if(!J8(e)&&!n)break;const r=S9(await f[o](t),x,o);r&&(e={...r,...D(o,r.message)},b(r.message),n&&(y[h]=e))}if(!J8(e)&&(y[h]={ref:x,...e},!n))return y}return b(!0),y},j9="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function M9(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(j9&&(e instanceof Blob||e instanceof FileList)||!n&&!k8(e))return e;t=n?[]:{};for(const n in e){if(i9(e[n])){t=e;break}t[n]=M9(e[n])}}return t}var A9=e=>({isOnSubmit:!e||e===L8,isOnBlur:e===F8,isOnChange:e===_8,isOnAll:e===$8,isOnTouch:e===I8});function N9(e){for(const t in e)if(!A8(e[t]))return!1;return!0}function P9(e,t){const n=u9(t)?[t]:p9(t),o=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let o=0;for(;o<n;)e=A8(e)?o++:e[t[o++]];return e}(e,n),r=n[n.length-1];let i;o&&delete o[r];for(let t=0;t<n.slice(0,-1).length;t++){let o,r=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++r<a.length;){const t=a[r];o=o?o[t]:e[t],s===r&&(k8(o)&&J8(o)||Array.isArray(o)&&N9(o))&&(i?delete i[t]:delete e[t]),i=o}}return e}function R9(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var B9=e=>D8(e)||!S8(e);function F9(e,t){if(B9(e)||B9(t))return e===t;if(O8(e)&&O8(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const n=e[r];if(!o.includes(r))return!1;if("ref"!==r){const e=t[r];if(O8(n)&&O8(e)||k8(n)&&k8(e)||Array.isArray(n)&&Array.isArray(e)?!F9(n,e):n!==e)return!1}}return!0}var _9=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},L9=e=>"select-multiple"===e.type,I9=e=>_9(e)&&e.isConnected;function $9(e,t={}){const n=Array.isArray(e);if(k8(e)||n)for(const n in e)Array.isArray(e[n])||k8(e[n])&&!a9(e[n])?(t[n]=Array.isArray(e[n])?[]:{},$9(e[n],t[n])):D8(e[n])||(t[n]=!0);return t}function z9(e,t,n){const o=Array.isArray(e);if(k8(e)||o)for(const o in e)Array.isArray(e[o])||k8(e[o])&&!a9(e[o])?A8(t)||B9(n[o])?n[o]=Array.isArray(e[o])?$9(e[o],[]):{...$9(e[o])}:z9(e[o],D8(t)?{}:t[o],n[o]):n[o]=!F9(e[o],t[o]);return n}var V9=(e,t)=>z9(e,t,$9(t)),W9=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>A8(e)?e:t?""===e||D8(e)?NaN:+e:n&&o9(e)?new Date(e):o?o(e):e;function U9(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return g9(t)?t.files:b9(t)?D9(e.refs).value:L9(t)?[...t.selectedOptions].map((({value:e})=>e)):E8(t)?E9(e.refs).value:W9(A8(t.value)?e.ref.value:t.value,e)}var H9=e=>A8(e)?void 0:y9(e)?e.source:k8(e)?y9(e.value)?e.value.source:e.value:e;function q9(e,t,n){const o=N8(e,n);if(o||u9(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),i=N8(t,o),a=N8(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};r.pop()}return{name:n}}const X9={mode:L8,reValidateMode:_8,shouldFocusError:!0};function G9(e={}){let t,n={...X9,...e},o={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},r={},i=M9(n.defaultValues)||{},a=n.shouldUnregister?{}:M9(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,u={};const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:R9(),array:R9(),state:R9()},f=A9(n.mode),h=A9(n.reValidateMode),m=n.criteriaMode===$8,v=async e=>{let t=!1;return p.isValid&&(t=n.resolver?J8((await y()).errors):await w(r,!0),e||t===o.isValid||(o.isValid=t,d.state.next({isValid:t}))),t},g=(e,t,n,o)=>{const l=N8(r,e);if(l){const r=N8(a,e,A8(n)?N8(i,e):n);A8(r)||o&&o.defaultChecked||t?d9(a,e,t?r:U9(l._f)):O(e,r),s.mount&&v()}},x=(e,t,n,r,a)=>{let s=!1;const l={name:e},c=N8(o.touchedFields,e);if(p.isDirty){const e=o.isDirty;o.isDirty=l.isDirty=C(),s=e!==l.isDirty}if(p.dirtyFields&&(!n||r)){const n=N8(o.dirtyFields,e);F9(N8(i,e),t)?P9(o.dirtyFields,e):d9(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,s=s||n!==N8(o.dirtyFields,e)}return n&&!c&&(d9(o.touchedFields,e,n),l.touchedFields=o.touchedFields,s=s||p.touchedFields&&c!==n),s&&a&&d.state.next(l),s?l:{}},b=async(n,r,i,a)=>{const s=N8(o.errors,n),l=p.isValid&&o.isValid!==r;var f;if(e.delayError&&i?(f=()=>((e,t)=>{d9(o.errors,e,t),d.state.next({errors:o.errors})})(n,i),t=e=>{clearTimeout(c),c=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,i?d9(o.errors,n,i):P9(o.errors,n)),(i?!F9(s,i):s)||!J8(a)||l){const e={...a,...l?{isValid:r}:{},errors:o.errors,name:n};o={...o,...e},d.state.next(e)}u[n]--,p.isValidating&&!Object.values(u).some((e=>e))&&(d.state.next({isValidating:!1}),u={})},y=async e=>n.resolver?await n.resolver({...a},n.context,((e,t,n,o)=>{const r={};for(const n of e){const e=N8(t,n);e&&d9(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}})(e||l.mount,r,n.criteriaMode,n.shouldUseNativeValidation)):{},w=async(e,t,r={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),c=await T9(s,N8(a,e.name),m,n.shouldUseNativeValidation,i);if(c[e.name]&&(r.valid=!1,t))break;!t&&(N8(c,e.name)?i?m9(o.errors,c,e.name):d9(o.errors,e.name,c[e.name]):P9(o.errors,e.name))}i&&await w(i,t,r)}}return r.valid},C=(e,t)=>(e&&t&&d9(a,e,t),!F9(j(),i)),E=(e,t,n)=>{const o={...s.mount?a:A8(t)?i:o9(e)?{[e]:t}:t};return r9(e,l,o,n)},O=(e,t,n={})=>{const o=N8(r,e);let i=t;if(o){const n=o._f;n&&(!n.disabled&&d9(a,e,W9(t,n)),i=j9&&_9(n.ref)&&D8(t)?"":t,L9(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?E8(n.ref)?n.refs.length>1?n.refs.forEach((e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):g9(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&x(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&T(e)},D=(e,t,n)=>{for(const o in t){const i=t[o],a=`${e}.${o}`,s=N8(r,a);!l.array.has(e)&&B9(i)&&(!s||s._f)||O8(i)?O(a,i,n):D(a,i,n)}},S=(e,t,n={})=>{const s=N8(r,e),c=l.array.has(e),u=M9(t);d9(a,e,u),c?(d.array.next({name:e,values:a}),(p.isDirty||p.dirtyFields)&&n.shouldDirty&&(o.dirtyFields=V9(i,a),d.state.next({name:e,dirtyFields:o.dirtyFields,isDirty:C(e,u)}))):!s||s._f||D8(u)?O(e,u,n):D(e,u,n),h9(e,l)&&d.state.next({}),d.watch.next({name:e})},k=async e=>{const i=e.target;let s=i.name;const c=N8(r,s);if(c){let g,w;const C=i.type?U9(c._f):T8(e),E=e.type===P8||e.type===R8,O=!((p=c._f).mount&&(p.required||p.min||p.max||p.maxLength||p.minLength||p.pattern||p.validate)||n.resolver||N8(o.errors,s)||c._f.deps)||((e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e))(E,N8(o.touchedFields,s),o.isSubmitted,h,f),D=h9(s,l,E);d9(a,s,C),E?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);const S=x(s,C,E,!1),k=!J8(S)||D;if(!E&&d.watch.next({name:s,type:e.type}),O)return k&&d.state.next({name:s,...D?{}:S});if(!E&&D&&d.state.next({}),u[s]=(u[s],1),d.state.next({isValidating:!0}),n.resolver){const{errors:e}=await y([s]),t=q9(o.errors,r,s),n=q9(e,r,t.name||s);g=n.error,s=n.name,w=J8(e)}else g=(await T9(c,N8(a,s),m,n.shouldUseNativeValidation))[s],w=await v(!0);c._f.deps&&T(c._f.deps),b(s,w,g,S)}var p},T=async(e,t={})=>{let i,a;const s=e9(e);if(d.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await y();if(e)for(const n of e){const e=N8(t,n);e?d9(o.errors,n,e):P9(o.errors,n)}else o.errors=t;return t})(A8(e)?e:s);i=J8(t),a=e?!s.some((e=>N8(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=N8(r,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||o.isValid)&&v()):a=i=await w(r);return d.state.next({...!o9(e)||p.isValid&&i!==o.isValid?{}:{name:e},...n.resolver?{isValid:i}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!a&&f9(r,(e=>N8(o.errors,e)),e?s:l.mount),a},j=e=>{const t={...i,...s.mount?a:{}};return A8(e)?t:o9(e)?N8(t,e):e.map((e=>N8(t,e)))},M=(e,t)=>({invalid:!!N8((t||o).errors,e),isDirty:!!N8((t||o).dirtyFields,e),isTouched:!!N8((t||o).touchedFields,e),error:N8((t||o).errors,e)}),A=(e,t={})=>{for(const s of e?e9(e):l.mount)l.mount.delete(s),l.array.delete(s),N8(r,s)&&(t.keepValue||(P9(r,s),P9(a,s)),!t.keepError&&P9(o.errors,s),!t.keepDirty&&P9(o.dirtyFields,s),!t.keepTouched&&P9(o.touchedFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&P9(i,s));d.watch.next({}),d.state.next({...o,...t.keepDirty?{isDirty:C()}:{}}),!t.keepIsValid&&v()},N=(e,t={})=>{let o=N8(r,e);const c=v9(t.disabled);return d9(r,e,{_f:{...o&&o._f?o._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),o?c&&d9(a,e,t.disabled?void 0:N8(a,e,U9(o._f))):g(e,!0,t.value),{...c?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:H9(t.min),max:H9(t.max),minLength:H9(t.minLength),maxLength:H9(t.maxLength),pattern:H9(t.pattern)}:{},name:e,onChange:k,onBlur:k,ref:a=>{if(a){N(e,t),o=N8(r,e);const n=A8(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>b9(e)||E8(e))(n),l=o._f.refs||[];if(s?l.find((e=>e===n)):n===o._f.ref)return;d9(r,e,{_f:{...o._f,...s?{refs:[...l.filter(I9),n,...Array.isArray(N8(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else o=N8(r,e,{}),o._f&&(o._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!j8(l.array,e)||!s.action)&&l.unMount.add(e)}}};return{control:{register:N,unregister:A,getFieldState:M,_executeSchema:y,_getWatch:E,_getDirty:C,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=N8(r,e);t&&(t._f.refs?t._f.refs.every((e=>!I9(e))):!I9(t._f.ref))&&A(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,u=!0)=>{if(l&&n){if(s.action=!0,u&&Array.isArray(N8(r,e))){const t=n(N8(r,e),l.argA,l.argB);c&&d9(r,e,t)}if(p.errors&&u&&Array.isArray(N8(o.errors,e))){const t=n(N8(o.errors,e),l.argA,l.argB);c&&d9(o.errors,e,t),((e,t)=>{!M8(N8(e,t)).length&&P9(e,t)})(o.errors,e)}if(p.touchedFields&&u&&Array.isArray(N8(o.touchedFields,e))){const t=n(N8(o.touchedFields,e),l.argA,l.argB);c&&d9(o.touchedFields,e,t)}p.dirtyFields&&(o.dirtyFields=V9(i,a)),d.state.next({isDirty:C(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else d9(a,e,t)},_getFieldArray:t=>M8(N8(s.mount?a:i,t,e.shouldUnregister?N8(i,t,[]):[])),_subjects:d,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:T,register:N,handleSubmit:(e,t)=>async i=>{i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=!0,c=M9(a);d.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await y();o.errors=e,c=t}else await w(r);J8(o.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(c,i)):(t&&await t({...o.errors},i),n.shouldFocusError&&f9(r,(e=>N8(o.errors,e)),l.mount))}catch(e){throw s=!1,e}finally{o.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:J8(o.errors)&&s,submitCount:o.submitCount+1,errors:o.errors})}},watch:(e,t)=>i9(e)?d.watch.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:S,getValues:j,reset:(t,n={})=>{const c=t||i,u=M9(c),f=t&&!J8(t)?u:i;if(n.keepDefaultValues||(i=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)N8(o.dirtyFields,e)?d9(f,e,N8(a,e)):S(e,N8(f,e));else{if(j9&&A8(t))for(const e of l.mount){const t=N8(r,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(_9(e)){e.closest("form").reset();break}}catch(e){}}}r={}}a=e.shouldUnregister?n.keepDefaultValues?M9(i):{}:u,d.array.next({values:f}),d.watch.next({values:f})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!n.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?o.isDirty:!(!n.keepDefaultValues||F9(t,i)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?o.dirtyFields:n.keepDefaultValues&&t?V9(i,t):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{N8(r,e)&&(A8(t.defaultValue)?S(e,N8(i,e)):(S(e,t.defaultValue),d9(i,e,t.defaultValue)),t.keepTouched||P9(o.touchedFields,e),t.keepDirty||(P9(o.dirtyFields,e),o.isDirty=t.defaultValue?C(e,N8(i,e)):C()),t.keepError||(P9(o.errors,e),p.isValid&&v()),d.state.next({...o}))},clearErrors:e=>{e?e9(e).forEach((e=>P9(o.errors,e))):o.errors={},d.state.next({errors:o.errors})},unregister:A,setError:(e,t,n)=>{const i=(N8(r,e,{_f:{}})._f||{}).ref;d9(o.errors,e,{...t,ref:i}),d.state.next({name:e,errors:o.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},setFocus:(e,t={})=>{const n=N8(r,e)._f,o=n.refs?n.refs[0]:n.ref;o.focus(),t.shouldSelect&&o.select()},getFieldState:M}}function Y9(e={}){const t=u.default.useRef(),[n,o]=u.default.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...G9(e),formState:n};const r=t.current.control,i=u.default.useCallback((e=>{Q8(e,r._proxyFormState,!0)&&(r._formState={...r._formState,...e},o({...r._formState}))}),[r]);return n9({subject:r._subjects.state,callback:i}),u.default.useEffect((()=>{r._stateFlags.mount||(r._proxyFormState.isValid&&r._updateValid(),r._stateFlags.mount=!0),r._stateFlags.watch&&(r._stateFlags.watch=!1,r._subjects.state.next({})),r._removeUnmounted()})),t.current.formState=Z8(n,r._proxyFormState),t.current}var K9,Z9,J9,Q9,e7,t7,n7,o7,r7,i7,a7,s7,l7,c7,u7,p7,d7,f7,h7,m7,v7,g7,x7,b7,y7,w7,C7,E7,O7,D7,S7,k7,T7,j7,M7,A7,N7,P7,R7=function(e,t){var o,r=Y8(),i=e||{},a=i.criteriaList,s=void 0===a?[]:a,l=i.segmentationType;if(!s.length)return!0;var c=null!==(o=null==r?void 0:r.watch())&&void 0!==o?o:t,u=n.useCallback(B7({criteriaList:s,data:c}),[s,c]);return"simple"!==l||(null==s?void 0:s.every((function(e){return u(e)})))},B7=function(e){var t=e.criteriaList,n=void 0===t?[]:t,o=e.data,r=void 0===o?{}:o,i=function(e){if(!e)return!0;if("condition"===e.type){var t=r[e.dataFieldName||""];if(!t||!(null==t?void 0:t.length)||!e.dataValue)return!1;switch(e.operator){case"is":return Array.isArray(t)?t.includes(e.dataValue):t===e.dataValue;case"is_not":return Array.isArray(t)?!t.includes(e.dataValue):t!==e.dataValue;default:return!0}}else if("operator"===e.type){var o=n.find((function(t){return t.id===e.connectedTo})),a=n.find((function(t){return t.connectedTo===e.id}));if(o&&a)switch(e.operator){case"and":return i(a)&&i(o);case"or":return i(a)||i(o);case"not":return i(a)!==i(o);default:return!1}}return!1};return i},F7=n.createContext({steps:0,currentStep:0,canGoToNextStep:!1,canGoToPrevStep:!1,goToNextStep:function(){return null},goToPrevStep:function(){return null},reset:function(){return null},setStep:function(){return null},setInitSteps:function(){return null}}),_7=n.createContext({actionContent:void 0,setActionContent:function(){return null},isModalVisible:!1,setModalVisible:function(){return null},isDrawerVisible:!1,setDrawerVisible:function(){return null}}),L7=function(){return n.useContext(_7)},I7=n.createContext({items:[],groupStepItemsByStepContainer:function(){return new Map},dateFields:[],setDateFields:function(){return null},formId:"",submitHandler:function(){return null},validations:[],editable:!0,isFormInEditMode:!0}),$7=function(){return n.useContext(I7)},z7=n.createContext({stateConfig:{},stateHandler:function(){return null}}),V7=function(){return n.useContext(z7)},W7=n.createContext({userInitials:"",logOutHandler:function(){return null},goToAccountInfo:function(){return null},username:""}),U7=function(e){var t=e.setFormData,o=e.defaultValue,r=e.dataModelField,i=V7().stateConfig,a=$7().editable;n.useEffect((function(){var e;if(r&&i){var n=null==r?void 0:r.dataModelFieldId,s=null==r?void 0:r.entitySubtypeId,l=null==r?void 0:r.format,c=i[n],u=s?null===(e=null==c?void 0:c[s])||void 0===e?void 0:e.value:null==c?void 0:c.value,p=a?"":"-";null==t||t((function(e){var t,r,i;return f(f({},e),((t={})[n]=null!==(i=null!==(r=function(e,t){if(!t||!e||"number"==typeof e)return e;var n=e.split("-"),o=n[0],r=n[1],i=n[2];switch(t){case"day_month_year_date":return"".concat(i,"/").concat(r,"/").concat(o);case"month_year_date":return"".concat(r,"/").concat(o);case"month_day_year_date":return"".concat(r,"/").concat(i,"/").concat(o);default:return e}}(u,null==l?void 0:l.value))&&void 0!==r?r:o)&&void 0!==i?i:p,t))}))}}),[r,i]),n.useEffect((function(){var e,n;if(o&&r){var i=null===(n=null==r?void 0:r.dataFieldName)||void 0===n?void 0:n.toLowerCase().replace(/\p{Zs}/gu,"_");null==t||t(((e={})[i]=o,e))}return function(){return null==t?void 0:t({})}}),[r,o])},H7=function(e){var t=e.item,o=e.activeChildrenIds,r=n.useState(),i=r[0],a=r[1],s=n.useMemo((function(){return o.map((function(e){var n=t.items.find((function(t){return t.id===e}));return n?function(e){var t,n,o,r=(null===(n=null===(t=e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||{};return f(f({},e),{config:f(f({},e.config),{props:f(f({},null===(o=e.config)||void 0===o?void 0:o.props),{formStepProps:f(f({},r),{order:0})})})})}(n):void 0})).filter(Boolean)}),[o,t]);return n.useEffect((function(){a((function(){return f(f({},t),{items:s})}))}),[t]),i},q7=["day_month_year_date","month_day_year_date","month_year_date"],X7=function(e){var o,r,i=e.control,a=e.name,s=void 0===a?"":a,l=e.inputProps,c=e.styles,u=e.labelsProps,p=e.defaultValue,d=void 0===p?"":p,h=e.displayOnlyInputDefaultValue,m=void 0===h?"":h,v=e.optional,x=e.required,b=e.rules,y=e.conditionConfig,w=e.state,C=e.formData,E=e.htmlElementId,O="password"===(null==l?void 0:l.type),D=n.useState(O),S=D[0],k=D[1],T=Y8(),j=$7(),M=j.setDateFields,A=j.isFormInEditMode,N="format_error"===w||"field_error"===w||"match_error"===w,P=R7(y,C),R="";try{R=(null==u?void 0:u.label)&&(null===(r=null===(o=JSON.parse(null==u?void 0:u.label)[0])||void 0===o?void 0:o.children[0])||void 0===r?void 0:r.text)}catch(e){R="",console.error(e,"Toopltip text was parsed incorrectly")}if(n.useEffect((function(){(null==y?void 0:y.criteriaList.length)&&P&&T&&T.setValue(s,"")}),[y,P]),n.useEffect((function(){w&&N&&T&&T.trigger(s)}),[w,T,N]),n.useEffect((function(){C&&T&&T.reset(C)}),[C]),n.useEffect((function(){(null==l?void 0:l.type)&&q7.includes(l.type)&&M((function(e){return g(g([],e,!0),[{id:s,dateType:l.type}],!1)}))}),[null==l?void 0:l.type]),!P)return null;var B=(null==l?void 0:l.rightIcon)||O?{name:S?"View":"Hide",onClick:function(){return k((function(e){return!e}))}}:void 0,F=O?S?"password":"text":null==l?void 0:l.type;return i?t.jsx(l9,{name:s,control:i,rules:f({required:{value:!!x,message:"This field is required"},pattern:lP(null==l?void 0:l.type)},b),defaultValue:d,render:function(e){var n,o=e.field,r=e.fieldState.error,i=(l||{}).isEditMode,a="format_error"===w&&"any"!==F||(void 0===i||i)&&!!r,s=O&&"match_error"===w&&"Your passwords do not match each other"||("format_error"===w?null===(n=lP(F))||void 0===n?void 0:n.message:a?null==r?void 0:r.message:void 0),p=null===(null==u?void 0:u.ruleLabel)?u.ruleLabel:x?"REQUIRED":v?"OPTIONAL":void 0;return t.jsxs(G7,f({id:E,$styles:c},{children:[(null==u?void 0:u.label)&&t.jsxs(t.Fragment,{children:[t.jsx(b8,f({},u,{ruleLabel:A?p:void 0,isError:a,tooltipText:R})),t.jsx(RP,{height:12})]}),A&&t.jsx(rR,f({},l,o,{onChange:function(e){return"phone_number"===F?o.onChange(e.replace(/[()\s-]/g,"")):o.onChange(e)},isError:a,rightIcon:B,type:F,state:w})),!A&&t.jsx(g8,{text:(null==o?void 0:o.value)||m}),!!s&&t.jsx(_P,{text:s})]}))}}):t.jsxs(G7,f({id:E,$styles:c},{children:[u&&t.jsxs(t.Fragment,{children:[t.jsx(b8,f({},u,{tooltipText:R})),t.jsx(RP,{height:12})]}),t.jsx(rR,f({},l,{rightIcon:B,type:F,state:w}))]}))},G7=l.default.div(K9||(K9=x(["\n ",";\n"],["\n ",";\n"])),(function(e){return e.$styles})),Y7=function(e,t){switch(void 0===t&&(t=""),e){case"input":return"Enter ".concat(t);case"select":return"Select ".concat(t);default:return t}},K7=function(e){var t={};return e.forEach((function(e){return t[e.name]=e.value})),t},Z7=function(e){var t;return!(null===(t=Object.values(e.errors))||void 0===t?void 0:t.length)},J7=[{name:"firstName",label:"First Name",type:"input",placeholder:"First name",inputType:"text",required:!0,value:"Brandon"},{name:"lastName",label:"Last Name",type:"input",placeholder:"Last name",inputType:"text",required:!0,value:"Stambaugh"}],Q7=[{label:"Basic Information",fields:J7},{label:"Contact Information",fields:[{name:"email",label:"Email Address",type:"input",placeholder:"Email Address",inputType:"email",required:!0,value:"brandon.stambaugh@domain.com"},{name:"phoneNumber",label:"Phone Number",type:"input",placeholder:"Phone Number",inputType:"number",value:"(000) 000-0000"},{name:"streetAddress",label:"Street Address",type:"input",placeholder:"Street Address",inputType:"text",value:"0000 Road Name Street, Raleigh..."}]}],eee=function(e){var n=e.field,o=e.isEditMode,r=void 0===o||o,i=e.spacer,a=void 0===i?0:i,s=e.control,l=e.isTooltipVisible,c=e.optionsPresentation,u=e.styles;if(!s)return null;var p=null,d=n.type,h=n.name,m=void 0===h?"":h,v=n.placeholder,g=n.tooltip,x=n.label,b=void 0===x?"":x,y=n.required,w=n.rules;switch(n.type){case"input":var C=n.inputType,E=n.maxLength,O=n.onKeyDown,D=n.inputProps,S=n.labelsProps;p=t.jsx(X7,f({},n,{name:m.toString(),control:s,inputProps:f({placeholder:v||Y7(d,b),type:C,maxLength:E,isEditMode:r,onKeyDown:O},D),labelsProps:f({label:b,tooltipText:g,isTooltipVisible:l},S),required:y,optional:!y,rules:w,styles:u}));break;case"select":var k=n.options;p=t.jsx(iee,{selectProps:{placeholder:v||Y7(d,b),options:k,isEditMode:r,optionsPresentation:c},name:m.toString(),control:s,labelsProps:{label:b,tooltipText:g,isTooltipVisible:l},required:y,optional:!y,rules:w,styles:u});break;case"checkbox":var T=n.checkboxLabel;p=t.jsxs(t.Fragment,{children:[!!b&&t.jsxs(t.Fragment,{children:[t.jsx(BP,f({variant:"L"},{children:b})),t.jsx(RP,{height:20})]}),t.jsx(oee,{name:m.toString(),control:s,checkboxProps:{label:T}})]})}return t.jsxs(t.Fragment,{children:[!!a&&t.jsx(RP,{height:a}),p]})},tee=l.default.div(Z9||(Z9=x([""],[""]))),nee=l.default.div(Q9||(Q9=x(["\n display: flex;\n flex-direction: column;\n ","\n"],["\n display: flex;\n flex-direction: column;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$spacing,r=void 0===o?"S":o,i=t.$styles;return e.css(J9||(J9=x(["\n gap: ","px;\n ",";\n "],["\n gap: ","px;\n ",";\n "])),n[r],i)})),oee=function(o){var r,i=o.checkboxesProps,a=o.name,s=void 0===a?"":a,l=o.rules,c=o.control,u=o.optional,p=o.required,d=o.labelsProps,h=o.wrapperStyles,m=o.conditionConfig,v=o.defaultValue,g=o.formData,x=o.htmlElementId,b=o.state,y=e.useTheme().sizes,w=Y8(),C=R7(m,g);return n.useEffect((function(){g&&w&&w.reset(g)}),[g]),n.useEffect((function(){b&&"field_error"===b&&w&&w.trigger(s)}),[b,w]),C?c?t.jsx(l9,{name:s,control:c,defaultValue:null!==(r=null==i?void 0:i.selectedIds)&&void 0!==r?r:v,rules:f({required:{value:!!p,message:"This field is required"}},l),render:function(e){var n=e.field,o=e.fieldState.error,r=!!o,a=r?null==o?void 0:o.message:void 0,s=p?"REQUIRED":u?"OPTIONAL":void 0;return t.jsxs(tee,f({id:x,$styles:h},{children:[(null==d?void 0:d.label)&&t.jsx(b8,f({},d,{ruleLabel:s,isError:r})),t.jsx(RP,{height:y.S+y.XS}),t.jsx(ree,f({checkboxesProps:f(f({},i),{selectedIds:n.value,isError:r})},n)),!!a&&t.jsx(_P,{text:a})]}))}}):t.jsxs(tee,f({id:x,$styles:h},{children:[d&&t.jsx(b8,f({},d)),t.jsx(RP,{height:y.S+y.XS}),t.jsx(ree,{checkboxesProps:i})]})):null},ree=function(e){var o=e.ref,r=e.onBlur,i=e.onChange,a=e.checkboxesProps||{},s=a.options,l=a.isError,c=a.disabled,u=a.isRichText,p=void 0===u||u,d=a.isEditMode,m=a.internalConfig,v=a.selectedIds,x=void 0===v?[]:v,b=a.checkboxGroupWrapperStyles,y=n.useState(x),w=y[0],C=y[1];n.useEffect((function(){return C(x)}),[x]);var E=m||{},O=E.buttonOptionSpacing,D=h(E,["buttonOptionSpacing"]),S=function(e){C((function(t){var n=t.includes(e)?t.filter((function(t){return t!==e})):g(g([],t,!0),[e],!1);return null==i||i(n),n}))};return t.jsx(nee,f({ref:o,tabIndex:0,onBlur:r,$styles:b,$spacing:O},{children:null==s?void 0:s.map((function(e){var n=w.includes(e.id);return t.jsx(VP,f({},e,{isError:l,disabled:c,isEditMode:d,isSelected:n,isRichText:p,onClick:S,internalConfig:D}),e.id)}))}))},iee=function(e){var o=e.selectProps,r=e.name,i=void 0===r?"":r,a=e.defaultValue,s=void 0===a?"":a,l=e.optional,c=e.required,u=e.control,p=e.styles,d=e.labelsProps,h=e.rules,m=e.conditionConfig,v=e.formData,g=e.state,x=e.htmlElementId,b=R7(m,v),y=Y8();return n.useEffect((function(){(null==m?void 0:m.criteriaList.length)&&b&&y&&y.setValue(i,"")}),[m,b]),n.useEffect((function(){g&&"field_error"===g&&y&&y.trigger(i)}),[g,y]),n.useEffect((function(){v&&y&&y.reset(v)}),[v]),b?u?t.jsx(l9,{name:i,control:u,rules:f({required:{value:!!c,message:"This field is required"}},h),defaultValue:s,render:function(e){var n=e.field,r=e.fieldState.error,i=!!r,a=i?null==r?void 0:r.message:void 0,s=c?"REQUIRED":l?"OPTIONAL":void 0;return t.jsxs(aee,f({id:x,$styles:p},{children:[(null==d?void 0:d.label)&&t.jsx(b8,f({},d,{ruleLabel:s,isError:i})),t.jsx(RP,{height:12}),t.jsx(ZP,f({},o,n,{isError:i})),!!a&&t.jsx(_P,{text:a})]}))}}):t.jsxs(aee,f({id:x,$styles:p},{children:[d&&t.jsx(b8,f({},d)),t.jsx(RP,{height:12}),t.jsx(ZP,f({},o))]})):null},aee=l.default.div(e7||(e7=x(["\n ",";\n"],["\n ",";\n"])),(function(e){return e.$styles})),see=function(e){switch(e){case"error":return"ERROR";case"success":return"SUCCESS";default:return"DEFAULT"}},lee=function(e){var n=e.rules,o=e.value,r=e.isSubmitted,i=void 0===r||r,a=e.label,s=e.spacer,l=e.validationState;return t.jsxs(t.Fragment,{children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(uee,f({variant:"S"},{children:a})),s&&t.jsx(RP,{height:s})]}),t.jsx(cee,{children:n.map((function(e,n){return t.jsx(vR,{status:l?see(l):i?e.validate(o)?"SUCCESS":"ERROR":"DEFAULT",text:e.text},n)}))})]})},cee=l.default.div(t7||(t7=x(["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),uee=l.default(BP)(n7||(n7=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),pee=l.default(BP).attrs({variant:"M"})(o7||(o7=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),dee=e.css(r7||(r7=x(["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"],["\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary}),pee,(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary})),fee=e.css(i7||(i7=x(["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"],["\n &:hover {\n border-color: ",";\n ",",\n svg path {\n stroke: ",";\n color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray1}),pee,(function(e){return e.theme.colors.gray1}),(function(e){return e.theme.colors.gray1})),hee=l.default.div(s7||(s7=x(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"],["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.25s all;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isActive;return e.css(a7||(a7=x(["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n border: 1.5px solid ",";\n svg path {\n stroke: ",";\n }\n ",";\n "])),r.L,r.M,r.S,o.gray4,o.gray2,i?dee:fee)})),mee=l.default.div(c7||(c7=x(["\n display: flex;\n ",";\n"],["\n display: flex;\n ",";\n"])),(function(t){var n=t.theme.sizes,o=t.spacing;return e.css(l7||(l7=x(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),n[o])})),vee=function(e){var n=e.iconName,o=e.infoText,r=e.isActive,i=e.onClick,a=e.value;return t.jsxs(hee,f({onClick:function(){return null==i?void 0:i(a)},isActive:r},{children:[t.jsx(LD,{name:n}),t.jsx(RP,{height:12}),t.jsx(pee,{children:o})]}))},gee=function(e){var o=e.cards,r=e.handleChange,i=e.spacing,a=void 0===i?"L":i,s=e.initialValue,l=n.useState(s),c=l[0],u=l[1],p=function(e){var t=e===c?void 0:e;null==r||r(t),u(t)};return t.jsx(mee,f({spacing:a},{children:o.map((function(e){return t.jsx(vee,f({},e,{isActive:c===e.value,onClick:p}),e.value)}))}))},xee=e.css(u7||(u7=x(["\n text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n"],["\n text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n"]))),bee=function(e){var n=e.backgroundImage,o=e.button,r=e.contentAlignment,i=e.mainHeading,a=e.horizontalPaddings,s=e.subHeading,l=e.template,c=void 0===l?"full_width":l,u=e.isMobile,p=void 0!==u&&u,d=e.height,h=void 0===d?420:d;return t.jsx(wee,f({height:h,template:c,isMobile:p},{children:t.jsxs(Cee,f({template:c},{children:[t.jsx(Dee,{template:c}),t.jsx(Oee,f({},n,{template:c})),t.jsxs(Eee,f({contentAlignment:r,horizontalPaddings:a},{children:[t.jsx(NP,{numberOfLines:2,textStyles:xee,color:"white",font:"3XL",value:i}),!!s&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:6}),t.jsx(NP,{numberOfLines:5,textStyles:xee,color:"white",value:s,font:"M"})]}),!!o&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:22}),t.jsx(Vre,f({},o,{isRichText:!0,fullWidth:!!o.fullWidth}))]})]}))]}))}))},yee=function(t){var n=t.theme,o=t.template;return e.css(p7||(p7=x(["\n border-radius: ","px;\n "],["\n border-radius: ","px;\n "])),"card"===o?null==n?void 0:n.sizes.M:0)},wee=l.default.div(f7||(f7=x(["\n width: 100%;\n justify-content: center;\n ","\n"],["\n width: 100%;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.template,r=t.height,i=t.isMobile;return e.css(d7||(d7=x(["\n height: ","px;\n padding: ","px;\n "],["\n height: ","px;\n padding: ","px;\n "])),r,"card"===o?i?n.L:n.XL:0)})),Cee=l.default.div(h7||(h7=x(["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n width: 100%;\n ",";\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n width: 100%;\n ",";\n"])),yee),Eee=l.default.div(v7||(v7=x(["\n display: flex;\n height: 100%;\n z-index: 2;\n flex-direction: column;\n justify-content: center;\n ","\n"],["\n display: flex;\n height: 100%;\n z-index: 2;\n flex-direction: column;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.contentAlignment,r=t.horizontalPaddings;return e.css(m7||(m7=x(["\n align-items: ",";\n padding: ","px ","px;\n "],["\n align-items: ",";\n padding: ","px ","px;\n "])),"left_aligned"===o?"flex-start":"center",n["4XL"],null!=r?r:n["5XL"])})),Oee=l.default(fR)(g7||(g7=x(["\n ",";\n"],["\n ",";\n"])),yee),Dee=l.default.div(x7||(x7=x(["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n ",";\n background-color: rgba(0, 0, 0, 0.3);\n"],["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n ",";\n background-color: rgba(0, 0, 0, 0.3);\n"])),yee),See=S.sizes.L,kee={top:{borderBottomLeftRadius:See,borderBottomRightRadius:See},bottom:{borderTopRightRadius:See,borderTopLeftRadius:See},left:{borderBottomRightRadius:See,borderTopRightRadius:See},right:{borderTopLeftRadius:See,borderBottomLeftRadius:See}},Tee=l.default(Jh)(y7||(y7=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.anchor,r=t.padding,i=void 0===r?"4XL":r,a=t.height,s=t.width,l="".concat("number"==typeof i?i:n[i],"px"),c=a?"number"==typeof a?"".concat(a,"px"):a:"auto",u=s?"number"==typeof s?"".concat(s,"px"):s:"auto";return e.css(b7||(b7=x(["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "],["\n .MuiDrawer-paper {\n max-height: -webkit-fill-available;\n ",";\n padding: ",";\n height: ",";\n width: ",";\n }\n .MuiBackdrop-root {\n background-color: rgba(0, 0, 0, 0.3);\n }\n "])),kee[o],l,c,u)})),jee=l.default(w)(C7||(C7=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme.sizes;return e.css(w7||(w7=x(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),C(n.L),n["4XL"],n["4XL"])})),Mee=function(n){var o=n.children,r=n.closeIconColor,i=h(n,["children","closeIconColor"]),a=e.useTheme().colors;return t.jsx(Tee,f({},i,{children:t.jsxs(t.Fragment,{children:[o,t.jsx(jee,f({onClick:function(e){var t;return null===(t=i.onClose)||void 0===t?void 0:t.call(i,e,"escapeKeyDown")}},{children:t.jsx(LD,{size:32,name:"Close",color:a[r]||r})}))]})}))},Aee=l.default.div(E7||(E7=x(["\n display: flex;\n flex: 1;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex: 1;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"])),(function(e){var t=e.theme.sizes;return e.isMobile?t.XL:t.M})),Nee=l.default.div(O7||(O7=x(["\n display: flex;\n flex-direction: column;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"],["\n display: flex;\n flex-direction: column;\n gap: ","px;\n justify-content: flex-start;\n align-items: flex-start;\n"])),(function(e){return e.theme.sizes.M})),Pee=l.default(hR)(D7||(D7=x(["\n text-decoration-line: underline;\n"],["\n text-decoration-line: underline;\n"]))),Ree=l.default(Aee)(k7||(k7=x(["\n flex-direction: column;\n ","\n"],["\n flex-direction: column;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(S7||(S7=x(["\n gap: ","px;\n padding: ","px;\n border: 1px solid ",";\n border-radius: ","px;\n "],["\n gap: ","px;\n padding: ","px;\n border: 1px solid ",";\n border-radius: ","px;\n "])),r.XL,r["3XL"],o.gray3,r.M)})),Bee=l.default.div(j7||(j7=x(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: ","px;\n flex: 1;\n ","\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: ","px;\n flex: 1;\n ","\n"])),(function(e){return e.isMobile?350:420}),(function(t){var n=t.theme.sizes,o=t.isMobile;return e.css(T7||(T7=x(["\n min-height: ","px;\n padding: ","px;\n gap: ","px;\n "],["\n min-height: ","px;\n padding: ","px;\n gap: ","px;\n "])),o?350:420,n.XL,n.L)})),Fee=l.default(fR)(M7||(M7=x(["\n z-index: -1;\n border-radius: ","px;\n"],["\n z-index: -1;\n border-radius: ","px;\n"])),(function(e){return e.theme.sizes.M})),_ee=l.default.div(A7||(A7=x(["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: ","px;\n background-color: rgba(0, 0, 0, 0.3);\n"],["\n position: absolute;\n justify-content: center;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: ","px;\n background-color: rgba(0, 0, 0, 0.3);\n"])),(function(e){return e.theme.sizes.M})),Lee=function(e){var t=V7(),n=t.stateConfig,o=t.stateHandler;return function(){var t;if(null==e?void 0:e.length){var r=e.find((function(e){return e.stateKey in n&&"stateModifier"===e.role}));r&&(n[r.stateKey]||null==o||o(f(f({},n),((t={})[r.stateKey]=!0,t))))}}},Iee=function(e){var t,n,o,r,i,a=V7().stateConfig,s=!0,l=!1;if(null===(t=null==e?void 0:e.stateConfig)||void 0===t?void 0:t.length){var c=e.stateConfig.find((function(e){return a[e.stateKey]&&"stateListener"===e.role}));s=!("visible"in((null==c?void 0:c.defaultState)||{}))||((null==c?void 0:c.stateValue)===a[null==c?void 0:c.stateKey]?null===(n=null==c?void 0:c.action)||void 0===n?void 0:n.visible:null===(o=null==c?void 0:c.defaultState)||void 0===o?void 0:o.visible),l="disabled"in((null==c?void 0:c.defaultState)||{})&&((null==c?void 0:c.stateValue)===a[null==c?void 0:c.stateKey]?null===(r=null==c?void 0:c.action)||void 0===r?void 0:r.disabled:null===(i=null==c?void 0:c.defaultState)||void 0===i?void 0:i.disabled)}return{isStateDisabled:l,isStateVisible:s}},$ee=function(e,t){return e&&t[e]?"".concat(t[e],"px"):e},zee=function(e){if(!e)return!1;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},Vee=function(e){var t=n.useState(),o=t[0],r=t[1],i=n.useState(!1),a=i[0],s=i[1],l=n.useState(0),c=l[0],u=l[1],p=n.useState(!1),d=p[0],h=p[1],m=V7(),v=m.stateConfig,g=m.stateHandler;return n.useEffect((function(){if(null==e?void 0:e.length){var t=e.find((function(e){return"stateModifier"===e.role&&"view"===e.event}));r(null==t?void 0:t.stateKey)}}),[e]),n.useEffect((function(){var e=function(){u(document.documentElement.scrollTop),h(document.documentElement.scrollTop>c)};return o&&window.addEventListener("scroll",e),function(){o&&window.removeEventListener("scroll",e)}}),[c,o]),n.useEffect((function(){var e;if(o&&!a){var t=document.getElementById(o),n=zee(t);n&&(s(n),null==g||g(f(f({},v),((e={})[o]=!v[o],e))))}}),[o,a,zee,d,c]),o},Wee=function(e){var t=n.useState(1),o=t[0],r=t[1],i=o+1<=e,a=o-1>=1,s=n.useCallback((function(t){var n=t instanceof Function?t(o):t;if(!(n>=1&&n<=e))throw new Error("Step not valid");r(n)}),[e,o]);return[o,{goToNextStep:function(){return i&&r((function(e){return e+1}))},goToPrevStep:function(){return a&&r((function(e){return e-1}))},canGoToNextStep:i,canGoToPrevStep:a,setStep:s,reset:function(){return r(1)}}]},Uee=function(e){return n.useMemo((function(){return e.filter((function(e){return e.isRequired})).every((function(e){switch(e.consentCaptureProps.type){case"radioButton":return e.consentCaptureProps.value===e.consentCaptureProps.acceptValue;case"checkbox":return e.consentCaptureProps.value;default:return!0}}))}),[e])},Hee=function(e){var o,r=e.initialStepsCount,i=void 0===r?0:r,a=e.children,s=$7(),l=s.items,c=s.groupStepItemsByStepContainer,u=Y8(),p=null==u?void 0:u.watch(),d=c(),h=n.useState(null!==(o=d.size)&&void 0!==o?o:i),m=h[0],v=h[1],g=Wee(m),x=g[0],b=g[1],y=b.reset,w=b.setStep,C=b.canGoToPrevStep,E=n.useMemo((function(){return function(e){return e.map((function(e){var t=[],n=function(e){"container"===e.instance&&"form_step"===e.type?t.push(e):"container"===e.instance&&e.items.forEach(n)};return n(e),t})).flat()}(l)}),[l]),O=n.useCallback((function(e){var t,n,o,r,i,a=null==u?void 0:u.getValues(),s=null!==(i=null===(r=null===(o=null===(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.props)||void 0===n?void 0:n.formStepProps)||void 0===o?void 0:o.conditionConfig)||void 0===r?void 0:r.criteriaList)&&void 0!==i?i:[],l=B7({criteriaList:s,data:a}),c=s.some((function(e){return l(e)}));return!s.length||c}),[u]),D=n.useMemo((function(){var e=x,t=function(n){var o=O(n),r=E[e++];return!(!o||x===E.length)||(x+1===E.length?o:r?t(r):e+1<=E.length)},n=E[e];return t(n)}),[x,E,O,JSON.stringify(p)]),S=n.useCallback((function(){if(D)for(var e=x+1;e<=E.length;){var t=E[e-1];if(O(t))return void w(e);e++}}),[D,x,E]),k=n.useCallback((function(){if(C)for(var e=x-1;e>=1;){var t=E[e-1];if(O(t))return void w(e);e--}}),[C,x,E,O]),T=n.useMemo((function(){return{canGoToNextStep:D,canGoToPrevStep:C,goToNextStep:S,goToPrevStep:k,currentStep:x,reset:y,setStep:w,steps:m,setInitSteps:v}}),[x,m,D]);return t.jsx(F7.Provider,f({value:T},{children:a}))},qee=function(e){var n=e.mode,o=void 0===n?"onChange":n,r=e.children,i=Y9({mode:o});return t.jsx(K8,f({},i,{children:t.jsx(Hee,{children:r})}))},Xee=function(e,t){switch(t){case"month_year_date":case"day_month_year_date":return e.split("/").reverse().join("-");case"month_day_year_date":var n=e.split("/"),o=n[0],r=n[1],i=n[2];return"".concat(i,"-").concat(o,"-").concat(r);default:return e}},Gee=function(e){var o=e.order,r=void 0===o?0:o,i=e.id,a=e.metadata,s=e.formStepStyles,l=Y8(),c=n.useState({}),u=c[0],p=c[1],d=$7(),h=d.formId,g=d.submitHandler,x=d.dateFields,b=d.isFormInEditMode,y=$7().groupStepItemsByStepContainer,w=n.useContext(F7),C=w.currentStep,E=w.canGoToNextStep,O=w.canGoToPrevStep,D=w.goToNextStep,S=w.goToPrevStep,k=w.reset,T=w.setStep,j=r+1,M=y().get(i)||[];return C!==j?null:t.jsxs("div",f({style:f({display:"flex",flexDirection:"column",width:"100%",gap:"16px"},s)},{children:[M.map((function(e){return t.jsx(fte,{item:e,setFormData:p,formData:u},e.id)})),!(null==a?void 0:a.hasOwnButton)&&b&&t.jsxs("div",f({style:{display:"flex",gap:"16px"}},{children:[t.jsx(Vre,{fullWidth:!1,text:O?"Back":"Cancel",variant:"secondary",onClick:function(){if(O)return S(),void xV({message:"Moved to back (previous) step",type:"success"});k(),T(1)}}),t.jsx(Vre,{fullWidth:!1,text:E?"Next":"Submit",variant:"primary",onClick:function(){return m(void 0,void 0,void 0,(function(){var e,t;return v(this,(function(n){switch(n.label){case 0:return[4,l.trigger()];case 1:return(e=n.sent())?E?(D(),xV({message:"Moved to next step successfully",type:"success"}),[2]):(t=l.getValues(),x.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=Xee(n,e.dateType)}})),e&&h&&(null==g||g({formId:h,data:t})),[2]):(xV({message:"Please fill all required fields",type:"error"}),[2])}}))}))}})]}))]}))},Yee=function(e){var n=e.children,o=e.wide,r=e.compact,i=e.type,a=e.props,s=e.id,l=e.metadata,c=e.isMobile||fD("xs"),u=o||{},p=u.containerProps,d=void 0===p?{}:p,h=u.containerStyle,m=void 0===h?{}:h,v=r||{},g=v.containerProps,x=void 0===g?{}:g,b=v.containerStyle,y=void 0===b?{}:b,w=c?x:d,C=f(f({},a),w),E=c?y:m,O={slider:t.jsx(Are,f({},null==C?void 0:C.sliderProps,{children:n})),form:t.jsx(qee,f({},null==a?void 0:a.formProps,{children:n})),form_step:t.jsx(Gee,f({id:s},null==a?void 0:a.formStepProps,{metadata:l}))},D=Iee(l).isStateVisible,S=Lee(null==l?void 0:l.stateConfig),k=Vee(null==l?void 0:l.stateConfig);return D?t.jsx(Jee,f({containerProps:C,metadata:l,style:E,onClick:S,id:k,type:i},{children:(null==O?void 0:O[i])||n})):null},Kee=function(e){var n=e.config,o=e.tabsProps,r=e.id,i=e.type,a=e.items,s=e.metadata,l=e.formData,c=e.setFormData,u=e.isMobile;return a&&a.length?t.jsx(gte,f({userInitials:"UN",logOutHandler:function(){return console.log("log out")},goToAccountInfo:function(){return console.log("account info page")}},{children:t.jsx(vte,f({initItems:a},{children:t.jsx(Yee,f({id:r,type:i,metadata:s,isMobile:u},n,{children:a.map((function(e){return t.jsx(fte,{item:e,tabsProps:o,formData:l,setFormData:c,isMobile:u},e.id)}))}))}))})):null},Zee=["slider","form"],Jee=l.default.div(P7||(P7=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.type,o=void 0===n?"row":n,r=t.containerProps,i=t.metadata,a=t.theme,s=a.sizes,l=a.colors,c=r||{},u=c.border,p=void 0===u?"":u,d=c.position,f=void 0===d?"static":d,h=c.gap,m=c.cornerRadius,v=void 0===m?0:m,g=c.padding,b=c.scrollBehaviour,y=c.styles,w=p.split(" "),C=w[0],E=w[1],O=w[2],D=void 0===O?l.gray3:O,S=l[D]||D,k=(null==i?void 0:i.repeater)&&(null==i?void 0:i.childrenAmount)&&(null==i?void 0:i.childrenAmount)>1?"space-between":"center";return e.css(N7||(N7=x(["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n max-width: 1440px;\n ",";\n ",";\n "],["\n display: flex;\n align-items: ",";\n flex-direction: ",";\n position: ",";\n gap: ","px;\n border: "," "," ",";\n border-radius: ","px;\n justify-content: ",";\n padding: ",";\n max-width: 1440px;\n ",";\n ",";\n "])),"row"===o?"start":"stretch","column"===o?"column":"row",f,h&&s[h],C,E,S,s[v]||v,k,g?function(e,t){return"string"==typeof e?t[e]?"".concat(t[e],"px"):e:["top","right","bottom","left"].map((function(n){return $ee(e[n]||"",t)})).join(" ")}(g,s):"0px",function(e){return"vertical"===e?"overflow-y: scroll":"horizontal"===e?"overflow-x: scroll":"none"===e?"overflow: visible":"overflow: unset"}(Zee.includes(o)?"none":b),y)})),Qee=function(e){var o=e.attributes,r=e.formData,i=e.config,a=e.htmlElementId,s=o||{},l=s.consent,c=s.conditionConfig,u=(i||{}).props,p=null==l?void 0:l.consent,d=(null==p?void 0:p.defaultSelection)||"confirmation",h=n.useState(""),m=h[0],v=h[1],g=n.useState(d),x=g[0],b=g[1],y=function(e){return v((function(t){return t?"":e}))},w=function(e){return b(e)},C=R7(null==c?void 0:c.conditionConfig,r),E=n.useMemo((function(){switch(null==p?void 0:p.methodOfCapture){case"button":return{type:"button",acceptButton:{text:null==p?void 0:p.confirmationButtonText,onClick:function(){return alert("Accepted")}},denyButton:{text:null==p?void 0:p.rejectionButtonText,onClick:function(){return alert("Denied")}}};case"checkbox":return{id:null==p?void 0:p.id,type:"checkbox",label:JSON.stringify(null==p?void 0:p.acknowledgment),value:!!m,onChange:y};default:return{type:"radioButton",acceptValue:"confirmation",value:x,onChange:w,isRow:!0,items:[{id:"confirmation",label:null==p?void 0:p.confirmationButtonText},{id:"rejection",label:null==p?void 0:p.rejectionButtonText}],name:"consent_confirmation"}}}),[l,m,x]);return p&&C?t.jsxs("div",f({id:a},{children:[t.jsx(Gre,{text:JSON.stringify(p.language),consentCaptureProps:E,clearStyles:!0}),"field_error"===(null==u?void 0:u.state)&&t.jsx(_P,{text:"This field is required"})]})):null},ete=function(e){var t={text:e.label,validate:function(){return!0}},n=e.rule,o=tte(n);if(o||nte(n)){var r=function(e,t){return function(n){return void 0===n&&(n=0),e?n<=t:n>=t}}(o,o?n.MAX:n.MIN);switch(n.type){case"COUNT":t.validate=function(e){return r(null==e?void 0:e.length)};break;case"NUMBER_COUNT":t.validate=function(e){return r(null==e?void 0:e.replace(/\D/g,"").length)};break;case"CAPITAL_COUNT":t.validate=function(e){return r(((null==e?void 0:e.match(/[A-Z]/g))||[]).length)};break;case"SPECIAL_CHARACTERS_COUNT":t.validate=function(e){return r(null==e?void 0:e.replace(/[a-z]|\d|\s/gi,"").length)};break;case"LOWER_CASE_COUNT":t.validate=function(e){return r(((null==e?void 0:e.match(/[a-z]/g))||[]).length)}}}return t},tte=function(e){return!!(null==e?void 0:e.MAX)},nte=function(e){return!!(null==e?void 0:e.MIN)},ote=function(e){var n=e.fields,o=e.validations,r=e.form,i=e.validationLabel,a=e.validationState,s=o.map(ete),l=null==r?void 0:r.watch("password");return t.jsxs(t.Fragment,{children:[n.map((function(e){return t.jsx(eee,{control:null==r?void 0:r.control,field:e},e.name.toString())})),t.jsx(lee,{value:l,isSubmitted:null==r?void 0:r.formState.isDirty,rules:s,label:i,validationState:a})]})},rte={id:"331258c2-da09-46e2-b79b-1e1dec021837",instance:"container",type:"form",config:{props:{formProps:{mode:"onTouched"},styles:{display:"flex",flexDirection:"column",gap:"24px",padding:"16px"}}},items:[{instance:"molecule",type:"select_field",metadata:{stateConfig:[{role:"stateListener",stateKey:"isFormSubmitted",stateValue:!0,defaultState:{disabled:!1},action:{disabled:!0}},{role:"stateModifier",stateKey:"isFormSubmittedModifier",event:"view"}]},attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Select Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-1",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-2",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"label-3",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_select",code:"test_select"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[]}}},config:{props:{state:"success",name:"selectField",labelsProps:{tooltipText:"Tooltip text"}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",instance:"molecule",type:"input_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Input Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},inputType:{attributeType:"select",options:[{id:"any",label:"Any"},{id:"numerical",label:"Numerical"},{id:"text",label:"Text"},{id:"email",label:"Email"},{id:"phone_number",label:"Phone Number"}],value:"email"},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_input",code:"test_input"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-1",connectedTo:null}]}}},config:{props:{state:"success",name:"inputField",labelsProps:{tooltipText:"Tooltip text"}}}},{instance:"molecule",type:"radio_button_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Radio Button Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"label-12",label:'[{"type":"paragraph","children":[{"text":"First Option"}]}]'},{id:"label-22",label:'[{"type":"paragraph","children":[{"text":"Second Option"}]}]'},{id:"1689153736917",label:'[{"type":"paragraph","children":[{"text":"3rd Option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_radio",code:"test_radio"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-2",connectedTo:null}]}}},config:{props:{state:"success",name:"radioButtonField",labelsProps:{tooltipText:"Tooltip text"},radioButtonsProps:{internalConfig:{buttonOptionSpacing:"XS"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea05"},{instance:"molecule",type:"checkbox_field",attributes:{label:{attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Checkbox Field Title"}]}]',isRichText:!0},required:{attributeType:"boolean",value:!0},options:{attributeType:"iterable",options:[{id:"checkbox_1",label:'[{"type":"paragraph","children":[{"text":"Default checkbox option"}]}]'},{id:"checkbox_2",label:'[{"type":"paragraph","children":[{"text":"Error checkbox option"}]}]'},{id:"checkbox_3",label:'[{"type":"paragraph","children":[{"text":"Disable checkbox option"}]}]'}]},dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",attributeType:"data_model_field",dataModelField:{id:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",fieldName:"test_checkbox",code:"test_checkbox"}},conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",attributeType:"condition_config",conditionConfig:{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",segmentationType:"simple",criteriaList:[{id:"5609bb9c-600f-41cd-b878-4f4946e79d52",type:"condition",dataFieldId:"5e1fd6fc-35dd-4520-8c6a-78eae633f4ed",dataFieldName:"test_select",operator:"is",dataValue:"label-3",connectedTo:null}]}}},config:{props:{state:"success",name:"checkboxField",labelsProps:{tooltipText:"Checkbox tooltip text"},checkboxesProps:{isRichText:!0,internalConfig:{buttonOptionSpacing:"M"}}}},id:"9b2f7c20-8884-473b-ba5f-edb69cbeea09"},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eab",instance:"molecule",metadata:{},type:"button",attributes:{title:{id:"test",isRichText:!0,attributeType:"text",text:'[{"type":"paragraph","children":[{"text":"Submit"}]}]'},action:{attributeType:"action",action:{type:"submit"}}},config:{props:{type:"submit",fullWidth:!1}}},{id:"e940fff4-fb98-4262-b8bf-b10f23ba9eaa",instance:"molecule",type:"text",attributes:{text:{isRichText:!0,text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Hello World \\"}]}]',attributeType:"text"},seoStyle:{attributeType:"select",value:"h1",options:[{id:"h1",label:"H1"}]},fontVariant:{attributeType:"select",value:"M",options:[{id:"M",label:"M"}]},textColor:{attributeType:"color",color:"purple"}},config:{props:{variant:"custom",styles:{color:"red","font-size":"32px"}}}},{type:"link",id:"e940fff4-fb98-4262-b8bf-b10f23ba9err",instance:"molecule",attributes:{text:{text:'[{\\"type\\":\\"paragraph\\",\\"children\\":[{\\"text\\":\\"Link Here\\"}]}]',isRichText:!0,attributeType:"text"},link:{attributeType:"link",externalLink:"www.google.com",type:"externalLink",name:"link"}},config:{props:{}}}]};JSON.parse('[{"type":"paragraph","children":[{"text":"Accept the consent"}]}]'),JSON.parse('[{"type":"paragraph","children":[{"text":"Test Consent"}]}]');var ite,ate,ste,lte,cte,ute,pte,dte=function(e){var o,r,a,s,l,c,u,p,d,g,x,b,y,w,C,E,O=e.type,D=e.config,S=e.attributes,k=e.tabsProps,T=e.form,j=e.id,M=e.formData,A=e.setFormData,N=e.isMobile,P=e.metadata,R=L7(),B=R.setModalVisible,F=R.setDrawerVisible,_=R.setActionContent,L=$7(),I=L.formId,$=L.submitHandler,z=L.validations,V=L.dateFields,W=n.useContext(W7),U=W.userInitials,H=W.logOutHandler,q=W.goToAccountInfo,X=W.username,G=i.useSearchParams(),Y=G[0],K=G[1],Z=(null==S?void 0:S.link)||(null===(r=null===(o=null==S?void 0:S.action)||void 0===o?void 0:o.action)||void 0===r?void 0:r.link),J=n.useCallback((function(e){if(Z){var t=xP(Y,e);K(t)}}),[Y,K,Z]),Q=Iee(P),ee=Q.isStateDisabled,te=Q.isStateVisible,ne=Vee(null==P?void 0:P.stateConfig);if(!te)return null;switch(O){case"text":var oe=S||{},re=oe.text,ie=oe.seoStyle,ae=oe.fontVariant,se=oe.color,le=D.props,ce=null==ie?void 0:ie.value,ue=null==ae?void 0:ae.value,pe=null!==(a=null==se?void 0:se.color)&&void 0!==a?a:null==le?void 0:le.textColor;return t.jsx(g8,f({},re,le,{seoTag:ce,fontVariant:ue,textColor:pe,htmlElementId:ne}));case"button":var de=S||{},fe=de.title,he=de.action,me=(D||{}).props,ve=void 0===me?{}:me,ge=ve.variant,xe=void 0===ge?"primary":ge,be=h(ve,["variant"]),ye=(null==he?void 0:he.action)||{},we=ye.link;ye.popup,ye.drawer;var Ce=ye.download,Ee="text"===xe,Oe={link:function(){return yP(we)?J(null==we?void 0:we.internalLink):bP(null==we?void 0:we.externalLink)},popup:function(){B(!0),_(rte)},drawer:function(){F(!0),_(rte)},download:function(){return Ce?(e=Ce.url,t=Ce.name,void 0===e&&(e=""),void 0===t&&(t="Downloaded file"),m(void 0,void 0,void 0,(function(){var n,o,r,i;return v(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,a.sent().blob()];case 2:return n=a.sent(),o=URL.createObjectURL(n),(r=document.createElement("a")).href=o,r.download=t,r.click(),URL.revokeObjectURL(o),[3,4];case 3:return i=a.sent(),xV({message:"Failed to download the file: ".concat(i),type:"error"}),[3,4];case 4:return[2]}}))}))):xV({message:"File not found to download",type:"warning"});var e,t},submit:function(){return m(void 0,void 0,void 0,(function(){var e,t;return v(this,(function(n){switch(n.label){case 0:return[4,null==T?void 0:T.trigger()];case 1:return e=n.sent(),t=null==T?void 0:T.getValues(),V.forEach((function(e){if(e.id in t){var n=t[e.id];t[e.id]=Xee(n,e.dateType)}})),e&&I&&(null==$||$({formId:I,data:null==T?void 0:T.getValues()})),[2]}}))}))},reset:function(){return xV({message:"Reset action triggerred",type:"warning"})},destroy:function(){return xV({message:"Destroy action triggerred",type:"warning"})}};return t.jsx(Vre,f({text:null==fe?void 0:fe.text,isRichText:!0},be,{variant:xe,elementId:j,link:CP(we),onClick:Ee?void 0:Oe[(null===(s=null==he?void 0:he.action)||void 0===s?void 0:s.type)||"link"],href:Ee?CP(we):void 0,disabled:ee,stateConfig:null==P?void 0:P.stateConfig,htmlElementId:ne}));case"image":var De=S||{},Se=De.image,ke=De.link,Te=De.altText,je=(le=D.props,(null==Se?void 0:Se.imageSource)||""),Me=ee?void 0:function(){return yP(ke)?J(null==ke?void 0:ke.internalLink):bP(null==ke?void 0:ke.externalLink)};return t.jsx(Mre,f({id:j,src:je,onClick:Me,link:ee?void 0:CP(ke),altText:null==Te?void 0:Te.text},le,{htmlElementId:ne}));case"video":var Ae=S||{},Ne=Ae.video,Pe=Ae.enableCoverImage,Re=Ae.autoPlayVideo,Be=Ae.coverImage,Fe=(le=D.props,(null==Ne?void 0:Ne.videoSource)||"");je=(null==Be?void 0:Be.imageSource)||"";return t.jsx(Sre,f({src:Fe,enableCoverImage:null==Pe?void 0:Pe.value,autoplay:null==Re?void 0:Re.value,coverImageSrc:je},le,{htmlElementId:ne}));case"header_tab_group":var _e=k||{},Le=_e.tabs,Ie=_e.onTabChange,$e=_e.activeTabKey,ze=(le=D.props,D.wide),Ve=D.compact;return t.jsx(Bne,f({},le,{wide:ze,compact:Ve,tabs:Le||[],activeTabKey:$e||"",onTabChange:Ie,isMobile:N,htmlElementId:ne}));case"input_field":var We=D.props,Ue=void 0===We?{}:We,He=Ue.inputProps,qe=void 0===He?{}:He,Xe=Ue.labelsProps,Ge=void 0===Xe?{}:Xe,Ye=Ue.name,Ke=void 0===Ye?"":Ye,Ze=Ue.state,Je=h(Ue,["inputProps","labelsProps","name","state"]),Qe=S||{},et=Qe.label,tt=Qe.required,nt=Qe.conditionConfig,ot=null==(bt=((xt=Qe.dataModelField)||{}).dataModelField)?void 0:bt.defaultValue,rt=(re=null==et?void 0:et.text,(null===(l=null==bt?void 0:bt.format)||void 0===l?void 0:l.value)||"text"),it=null===(c=null==bt?void 0:bt.format)||void 0===c?void 0:c.config,at=(yt=!!(null==tt?void 0:tt.value))?"REQUIRED":"OPTIONAL",st=(null==qe?void 0:qe.placeholder)||"Enter ".concat(re?qP(EP(re)):"placeholder"),lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||Ke||j;return U7({dataModelField:bt,setFormData:A}),t.jsx(X7,f({},Je,{name:lt,required:yt,optional:!yt,inputProps:f(f({},qe),{type:rt,config:it,placeholder:st,disabled:ee}),labelsProps:f({label:re,isRichText:!0,ruleLabel:at},Ge),conditionConfig:null==nt?void 0:nt.conditionConfig,control:null==T?void 0:T.control,state:Ze,formData:M,htmlElementId:ne,displayOnlyInputDefaultValue:ot}));case"select_field":var ct=(D||{}).props,ut=void 0===ct?{}:ct,pt=ut.selectProps,dt=void 0===pt?{}:pt,ft=ut.labelsProps,ht=(Ge=void 0===ft?{}:ft,ut.name),mt=void 0===ht?"":ht,vt=(Je=h(ut,["selectProps","labelsProps","name"]),S||{}),gt=(et=vt.label,tt=vt.required,vt.options),xt=vt.dataModelField,bt=(nt=vt.conditionConfig,(xt||{}).dataModelField),yt=(re=null==et?void 0:et.text,null==tt?void 0:tt.value),wt=(lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||mt||j,(null==gt?void 0:gt.options)||[]);ot=(null==dt?void 0:dt.value)||("success"===(null==Je?void 0:Je.state)?null===(u=null==wt?void 0:wt[0])||void 0===u?void 0:u.id:void 0);U7({defaultValue:ot,dataModelField:bt,setFormData:A});st=re?qP(JSON.parse(re)):"placeholder";return t.jsx(iee,f({},Je,{name:lt,control:null==T?void 0:T.control,selectProps:f(f({},dt),{optionsPresentation:"open_dropdown"===(null==Je?void 0:Je.state),options:wt,isRichText:!0,placeholder:(null==dt?void 0:dt.placeholder)||"Select ".concat(st),disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({},Ge),{label:re,isRichText:!0,ruleLabel:yt?"REQUIRED":"OPTIONAL"}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"radio_button_field":var Ct=(D||{}).props,Et=void 0===Ct?{}:Ct,Ot=Et.radioButtonsProps,Dt=void 0===Ot?{}:Ot,St=Et.labelsProps,kt=(Ge=void 0===St?{}:St,Et.name),Tt=void 0===kt?"":kt,jt=(Je=h(Et,["radioButtonsProps","labelsProps","name"]),S||{}),Mt=(et=jt.label,tt=jt.required,gt=jt.options,xt=jt.dataModelField,nt=jt.conditionConfig,bt=(xt||{}).dataModelField,re=null==et?void 0:et.text,yt=null==tt?void 0:tt.value,lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||Tt||j,(null==gt?void 0:gt.options)||[]);ot=(null==Dt?void 0:Dt.value)||("success"===(null==Je?void 0:Je.state)?null===(p=null==Mt?void 0:Mt[0])||void 0===p?void 0:p.id:void 0);return U7({defaultValue:ot,dataModelField:bt,setFormData:A}),t.jsx($ne,f({},Je,{name:lt,control:null==T?void 0:T.control,radioButtonsProps:f(f({},Dt),{options:Mt,disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({},Ge),{label:re,isRichText:!0,ruleLabel:yt?"REQUIRED":"OPTIONAL"}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"checkbox_field":var At=(D||{}).props,Nt=void 0===At?{}:At,Pt=Nt.checkboxesProps,Rt=void 0===Pt?{}:Pt,Bt=Nt.labelsProps,Ft=(Ge=void 0===Bt?{}:Bt,Nt.name),_t=void 0===Ft?"":Ft,Lt=(Je=h(Nt,["checkboxesProps","labelsProps","name"]),S||{}),It=(et=Lt.label,tt=Lt.required,gt=Lt.options,xt=Lt.dataModelField,nt=Lt.conditionConfig,bt=(xt||{}).dataModelField,re=null==et?void 0:et.text,yt=null==tt?void 0:tt.value,lt=(null==bt?void 0:bt.entitySubtypeId)||(null==bt?void 0:bt.dataModelFieldId)||_t||j,(null==gt?void 0:gt.options)||[]);ot=(null==Rt?void 0:Rt.selectedIds)||("success"===(null==Je?void 0:Je.state)?[null===(d=null==It?void 0:It[0])||void 0===d?void 0:d.id]:void 0);return U7({defaultValue:ot,dataModelField:bt,setFormData:A}),t.jsx(oee,f({},Je,{name:lt,control:null==T?void 0:T.control,checkboxesProps:f(f({},Rt),{options:It,disabled:ee}),defaultValue:ot,required:yt,optional:!yt,labelsProps:f(f({ruleLabel:yt?"REQUIRED":"OPTIONAL"},Ge),{label:re,isRichText:!0}),conditionConfig:null==nt?void 0:nt.conditionConfig,formData:M,htmlElementId:ne}));case"consent":return t.jsx(Qee,{attributes:S,formData:M,config:D,htmlElementId:ne});case"link":le=D.props,re=S.text;var $t=S.link;return t.jsx(Kre,f({},le,{$variant:null==le?void 0:le.variant,$styles:null==le?void 0:le.styles,text:re.text,isRichText:re.isRichText,disabled:ee,href:ee?void 0:CP($t),htmlElementId:ne}));case"password_setup_field":var zt=S.passwordFieldLabel,Vt=S.reenteredPasswordFieldLabel,Wt=D.props,Ut=Wt.validationLabel,Ht=Wt.passwordInputProps,qt=Wt.reenteredPasswordInputProps,Xt=(Ze=Wt.state,[f(f({},Ht),{name:"password",type:"input",inputType:"password",placeholder:null!==(x=null===(g=null==Ht?void 0:Ht.inputProps)||void 0===g?void 0:g.placeholder)&&void 0!==x?x:"Enter Your Password",label:null!==(b=null==zt?void 0:zt.text)&&void 0!==b?b:"Password",required:!0,rules:{required:"Password is required"},labelsProps:f(f({},zt),{ruleLabel:null}),state:Ze}),f(f({},qt),{name:"reenteredPassword",type:"input",inputType:"password",placeholder:null!==(w=null===(y=null==qt?void 0:qt.inputProps)||void 0===y?void 0:y.placeholder)&&void 0!==w?w:"Re-Enter Your Password",label:null!==(C=null==Vt?void 0:Vt.text)&&void 0!==C?C:"Re-Enter Your Password",required:!0,labelsProps:f(f({},Vt),{ruleLabel:null}),rules:{validate:{passwordMatch:function(e){return e===(null==T?void 0:T.getValues("password"))||"Your passwords do not match each other"}}},state:Ze})]);return t.jsx(ote,{fields:Xt,validations:z||[],form:T,validationState:Ze,validationLabel:(null==z?void 0:z.length)?Ut:void 0});case"account_button":var Gt=D.props,Yt=Gt.avatarProps,Kt=Gt.menuConfig,Zt=f(f({},Yt),{content:f(f({},null==Yt?void 0:Yt.content),{initials:U})}),Jt=f(f({},Kt),{title:X||(null==Kt?void 0:Kt.title),options:null===(E=Kt.options)||void 0===E?void 0:E.map((function(e){switch(e.id){case"log-out":return f(f({},e),{onClick:H});case"account-information":return f(f({},e),{onClick:q});default:return e}}))});return t.jsx(jne,{avatarProps:Zt,menuConfig:Jt});default:return t.jsx(t.Fragment,{children:"There is no such type of molecule yet."})}},fte=function(e){var n,o=e.item,r=e.tabsProps,i=e.formData,a=e.setFormData,s=e.isMobile,l=Y8();if("molecule"===o.instance)return t.jsx(dte,f({},o,{tabsProps:r,form:l,formData:i,setFormData:a,isMobile:s}));if(!o.items||!o.items.length)return null;var c="form"===o.type&&(null===(n=o.config.props)||void 0===n?void 0:n.activeChildrenIds)||[];return c.length?t.jsx(hte,{item:o,activeChildrenIds:c,formData:i,setFormData:a,isMobile:s}):t.jsx(Yee,f({id:o.id,type:o.type,isMobile:s},o.config,{metadata:o.metadata},{children:o.items.map((function(e){return t.jsx(fte,{item:e,tabsProps:r,formData:i,setFormData:a,isMobile:s},e.id)}))}))},hte=function(e){var n=e.formData,o=e.setFormData,r=e.isMobile,i=h(e,["formData","setFormData","isMobile"]),a=H7(i);return a?t.jsx(Kee,f({},a,{isMobile:r,formData:n,setFormData:o})):null},mte=function(e){var t=new Map;return e.forEach((function(e){var n,o;"container"===e.instance&&(o="","form_step"===(n=e).type&&(o=n.id),n.items.forEach((function(e){var n;o&&(t.has(o)||t.set(o,[]),null===(n=t.get(o))||void 0===n||n.push(e))})))})),t},vte=function(e){var o=e.initItems,r=void 0===o?[]:o,i=e.children,a=e.submitHandler,s=e.formId,l=e.validations,c=e.editable,u=void 0===c||c,p=e.isFormInEditMode,d=void 0===p||p,h=n.useState([]),m=h[0],v=h[1],g=n.useMemo((function(){return{dateFields:m,setDateFields:v,items:r,groupStepItemsByStepContainer:function(){return mte(r)},submitHandler:a,formId:s,validations:l,editable:u,isFormInEditMode:d}}),[r,s,l,u,m,v,d]);return t.jsx(I7.Provider,f({value:g},{children:i}))},gte=function(e){var o=e.children,r=e.goToAccountInfo,i=e.userInitials,a=e.logOutHandler,s=e.username,l=n.useMemo((function(){return{logOutHandler:a,goToAccountInfo:r,userInitials:i,username:s}}),[a,r,i,s]);return t.jsx(W7.Provider,f({value:l},{children:o}))},xte=function(e){var n=iN(),o=n.showAnnotations,r=n.annotationsList,i=n.isMLRReview,a=r.links.findIndex((function(t){return(null==e?void 0:e.elementId)===t.id||(null==e?void 0:e.buttonLink)===t.url}))+1;return{circleJSX:i&&o&&!!a&&t.jsx(bd,f({component:"span",sx:{position:"absolute",bottom:-2,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(a8,{index:a,type:"link"})}))}},bte=e.css(ite||(ite=x(["\n font-weight: 500;\n"],["\n font-weight: 500;\n"]))),yte=function(e){var n=e.item,o=xte().circleJSX;return t.jsxs(t.Fragment,{children:[t.jsx(wte,{children:t.jsx(Cte,{src:n.icon,alt:n.icon})}),t.jsxs(Nee,{children:[!!n.title&&t.jsx(NP,{font:"XL",value:n.title}),!!n.mainContent&&t.jsx(NP,{font:"M",color:"gray2",value:n.mainContent}),!!n.button&&t.jsxs(Bw,f({display:"inline-flex",position:"relative"},{children:[t.jsx(Pee,f({},n.button,{children:t.jsx(NP,{font:"XL",value:n.button.children,textStyles:bte,color:"blue"})})),o]}))]})]})},wte=l.default.div(ate||(ate=x(["\n width: 56px;\n height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n width: 56px;\n height: 56px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),Cte=l.default(dR)(ste||(ste=x(["\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n user-select: none;\n -webkit-user-drag: none;\n"],["\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n user-select: none;\n -webkit-user-drag: none;\n"]))),Ete=function(e){var n=e.item,o=e.isMobile,r=xte().circleJSX;return t.jsxs(Bee,f({isMobile:o},{children:[t.jsx(Fee,{src:n.icon,alt:n.icon}),t.jsx(_ee,{}),t.jsxs(Nee,{children:[!!n.title&&t.jsx(NP,{value:n.title,font:"2XL",color:"white"}),!!n.mainContent&&t.jsx(NP,{font:"M",color:"gray5",value:n.mainContent})]}),!!n.button&&t.jsxs(Bw,f({display:"inline-flex",position:"relative"},{children:[t.jsx(Pee,f({},n.button,{children:t.jsx(LD,{name:"ArrowRight",color:"white"})})),r]}))]}))},Ote=function(e){var n=e.columns,o=e.containerStyles,r=e.template,i=void 0===r?"horizontal":r,a=fD("xs");return t.jsx(Dte,f({template:i,style:o},{children:n.map((function(e,n){switch(i){case"card":return t.jsx(Ree,f({isMobile:a},{children:t.jsx(yte,{item:e})}),n);case"with_image":return t.jsx(Ete,{item:e,isMobile:a},n);default:return t.jsx(Aee,f({isMobile:a},{children:t.jsx(yte,{item:e})}),n)}}))}))},Dte=l.default.div(lte||(lte=x(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n gap: ","px;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n gap: ","px;\n"])),(function(e){var t=e.theme.sizes;return"horizontal"!==e.template?t.L:t["3XL"]})),Ste=function(e){var n=e.title,o=e.onItemPress,r=e.options;return t.jsxs(kte,{children:[!!n&&t.jsxs(t.Fragment,{children:[t.jsx(TV,f({padding:"M"},{children:t.jsx(BP,f({variant:"XL"},{children:n}))})),t.jsx(MV,{marginVertical:"M"})]}),t.jsx(TV,f({padding:"M"},{children:t.jsx(Tte,{children:null==r?void 0:r.map((function(e){var n=e.id,r=e.title,i=e.onClick;return t.jsx(w,f({activeOpacity:.3,onClick:function(){null==o||o(n),null==i||i(n)}},{children:t.jsx(BP,f({behaveAs:"button",variant:"M",color:"gray2"},{children:r}))}),n)}))})}))]})},kte=l.default.div(ute||(ute=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors;return e.css(cte||(cte=x(["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "],["\n background-color: ",";\n padding: ","px ","px;\n box-shadow: 0 0 ","px rgba(0, 0, 0, 0.1);\n border-radius: ","px;\n "])),r,o.XL,o.M,o.XL,o.S)})),Tte=l.default.div(pte||(pte=x(["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"],["\n display: flex;\n flex-direction: column;\n row-gap: 14px;\n"]))),jte={adjustX:1,adjustY:1},Mte=[0,0],Ate={topLeft:{points:["bl","tl"],overflow:jte,offset:[0,-4],targetOffset:Mte},topCenter:{points:["bc","tc"],overflow:jte,offset:[0,-4],targetOffset:Mte},topRight:{points:["br","tr"],overflow:jte,offset:[0,-4],targetOffset:Mte},bottomLeft:{points:["tl","bl"],overflow:jte,offset:[0,4],targetOffset:Mte},bottomCenter:{points:["tc","bc"],overflow:jte,offset:[0,4],targetOffset:Mte},bottomRight:{points:["tr","br"],overflow:jte,offset:[0,4],targetOffset:Mte}},Nte={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Nte.F1&&t<=Nte.F12)return!1;switch(t){case Nte.ALT:case Nte.CAPS_LOCK:case Nte.CONTEXT_MENU:case Nte.CTRL:case Nte.DOWN:case Nte.END:case Nte.ESC:case Nte.HOME:case Nte.INSERT:case Nte.LEFT:case Nte.MAC_FF_META:case Nte.META:case Nte.NUMLOCK:case Nte.NUM_CENTER:case Nte.PAGE_DOWN:case Nte.PAGE_UP:case Nte.PAUSE:case Nte.PRINT_SCREEN:case Nte.RIGHT:case Nte.SHIFT:case Nte.UP:case Nte.WIN_KEY:case Nte.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Nte.ZERO&&e<=Nte.NINE)return!0;if(e>=Nte.NUM_ZERO&&e<=Nte.NUM_MULTIPLY)return!0;if(e>=Nte.A&&e<=Nte.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Nte.SPACE:case Nte.QUESTION_MARK:case Nte.NUM_PLUS:case Nte.NUM_MINUS:case Nte.NUM_PERIOD:case Nte.NUM_DIVISION:case Nte.SEMICOLON:case Nte.DASH:case Nte.EQUALS:case Nte.COMMA:case Nte.PERIOD:case Nte.SLASH:case Nte.APOSTROPHE:case Nte.SINGLE_QUOTE:case Nte.OPEN_SQUARE_BRACKET:case Nte.BACKSLASH:case Nte.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Pte(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(BB(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Rte=Nte.ESC,Bte=Nte.TAB;function Fte(e){var t=e.visible,n=e.setTriggerVisible,o=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=c.useRef(!1),s=function(){var e,i,a,s;t&&o.current&&(null===(e=o.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),n(!1),"function"==typeof r&&r(!1))},l=function(){var e,t,n,r,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_z(e.querySelectorAll("*")).filter((function(e){return Pte(e,t)}));return Pte(e,t)&&n.unshift(e),n}(null===(e=o.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),s=i[0];return!!(null==s?void 0:s.focus)&&(s.focus(),a.current=!0,!0)},u=function(e){switch(e.keyCode){case Rte:s();break;case Bte:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};c.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&FR(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}var _te=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Lte(e,t){var n=e.arrow,o=void 0!==n&&n,r=e.prefixCls,i=void 0===r?"rc-dropdown":r,a=e.transitionName,s=e.animation,l=e.align,u=e.placement,p=void 0===u?"bottomLeft":u,d=e.placements,f=void 0===d?Ate:d,h=e.getPopupContainer,m=e.showAction,v=e.hideAction,g=e.overlayClassName,x=e.overlayStyle,b=e.visible,y=e.trigger,w=void 0===y?["hover"]:y,C=e.autoFocus,E=ER(e,_te),O=tB(c.useState(),2),D=O[0],S=O[1],k="visible"in e?b:D,T=c.useRef(null);c.useImperativeHandle(t,(function(){return T.current})),Fte({visible:k,setTriggerVisible:S,triggerRef:T,onVisibleChange:e.onVisibleChange,autoFocus:C});var j,M,A,N,P=function(){var t,n="function"==typeof(t=e.overlay)?t():t;return c.createElement(c.Fragment,null,o&&c.createElement("div",{className:"".concat(i,"-arrow")}),n)},R=v;return R||-1===w.indexOf("contextMenu")||(R=["click"]),c.createElement(fz,CR(CR({builtinPlacements:f},E),{},{prefixCls:i,ref:T,popupClassName:ZR(g,yR({},"".concat(i,"-show-arrow"),o)),popupStyle:x,action:w,showAction:m,hideAction:R||[],popupPlacement:p,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:k,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"==typeof e.overlay?P:P(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;S(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;S(!1),n&&n(t)},getPopupContainer:h}),(M=e.children,A=M.props?M.props:{},N=ZR(A.className,void 0!==(j=e.openClassName)?j:"".concat(i,"-open")),k&&M?c.cloneElement(M,{className:N}):M))}var Ite,$te,zte,Vte,Wte,Ute,Hte,qte,Xte,Gte,Yte,Kte,Zte,Jte,Qte,ene,tne,nne,one,rne,ine,ane,sne,lne,cne,une,pne,dne,fne,hne,mne,vne,gne,xne,bne,yne,wne,Cne,Ene,One,Dne,Sne,kne,Tne=c.forwardRef(Lte),jne=function(e){var o=e.avatarProps,r=e.menuConfig,i=n.useState(!1),a=i[0],s=i[1],l=t.jsx(Ste,f({},r,{onItemPress:function(){return s(!1)}}));return t.jsx(Tne,f({overlay:l,onVisibleChange:s,visible:a,trigger:"click",animation:"slide-up"},{children:t.jsxs(Mne,{children:[t.jsx(CV,f({},o)),t.jsx(RP,{width:12}),t.jsx(Ane,f({isOpen:a},{children:t.jsx(LD,{size:16,name:"CaretDown"})}))]})}))},Mne=l.default(w)(Ite||(Ite=x(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),Ane=l.default.div(zte||(zte=x(["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"],["\n display: flex;\n transition: transform, background-color, 0.2s ease-in-out;\n transform: rotate(0deg);\n ","\n"])),(function(t){var n=t.isOpen,o=t.theme,r=o.colors,i=o.sizes;return n&&e.css($te||($te=x(["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "],["\n border-radius: ","px;\n background-color: ",";\n transform: rotate(180deg);\n "])),i.XS,r.gray4)})),Nne=l.default.div(Wte||(Wte=x(["\n display: flex;\n align-items: flex-start;\n width: fit-content;\n position: relative;\n ","\n"],["\n display: flex;\n align-items: flex-start;\n width: fit-content;\n position: relative;\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.$vertical,r=t.$spacing,i=t.$styles;return e.css(Vte||(Vte=x(["\n flex-direction: ",";\n gap: ","px;\n ",";\n "],["\n flex-direction: ",";\n gap: ","px;\n ",";\n "])),o?"column":"row",n[r],i)})),Pne=l.default.div(Hte||(Hte=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.width,r=t.left,i=t.isActiveTab,a=t.tabTheme,s=t.selectedTabIndicatorColor;return e.css(Ute||(Ute=x(["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "],["\n position: absolute;\n bottom: -4px;\n left: ","px;\n width: ","px;\n height: ","px;\n background-color: ",";\n border-radius: ","px;\n transition: 0.4s;\n "])),r,o,n.XS,f8(s,i,a),n.XS)})),Rne=l.default(w).attrs({withoutOpacityEffect:!0})(Yte||(Yte=x(["\n position: relative;\n &:hover {\n ","\n }\n"],["\n position: relative;\n &:hover {\n ","\n }\n"])),(function(t){var n=t.theme.colors,o=t.disabled,r=t.tabTheme,i=t.selectedTabTextColor,a=t.isActiveTab,s=t.selectedTabIndicatorColor;if(o)return e.css(qte||(qte=x(["\n "," {\n color: ",";\n }\n "],["\n "," {\n color: ",";\n }\n "])),h8,"dark"===r?n.gray2:n.gray3);if(a)return e.css(Xte||(Xte=x(["\n "," {\n background-color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "])),Pne,f8(s,a,r));var l=n[i]||i;return e.css(Gte||(Gte=x(["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "],["\n "," {\n background-color: ",";\n }\n "," {\n color: ",";\n }\n "])),Pne,"dark"===r?n.gray1:n.gray5,h8,l||("dark"===r?n.white:n.gray1))})),Bne=function(o){var r,i=o.tabs,a=o.vertical,s=void 0!==a&&a,l=o.activeTabKey,c=void 0===l?null===(r=i[0])||void 0===r?void 0:r.tabKey:l,u=o.onTabChange,p=o.tabTheme,d=void 0===p?"light":p,m=o.wide,v=o.compact,g=o.tabSpacing,x=void 0===g?"XL":g,b=o.isMobile,y=o.htmlElementId,w=h(o,["tabs","vertical","activeTabKey","onTabChange","tabTheme","wide","compact","tabSpacing","isMobile","htmlElementId"]),C=n.useState(c),E=C[0],O=C[1],D=function(e){var t=n.useState([]),o=t[0],r=t[1],i=n.useState([]),a=i[0],s=i[1],l=n.useRef([]);return n.useEffect((function(){var e=function(){var e,t;r(null===(e=null==l?void 0:l.current)||void 0===e?void 0:e.map((function(e){var t;return null!==(t=null==e?void 0:e.clientWidth)&&void 0!==t?t:0}))),s(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.map((function(e){var t;return null!==(t=null==e?void 0:e.offsetLeft)&&void 0!==t?t:0})))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[e]),{tabsUnderlineLeft:a,tabsUnderlineWidth:o,tabsRef:l}}(E),S=D.tabsRef,k=D.tabsUnderlineLeft,T=D.tabsUnderlineWidth,j=e.useTheme(),M=j.colors,A=j.sizes,N=b||fD("xs"),P=m||{},R=P.containerProps,B=void 0===R?{}:R,F=P.containerStyle,_=void 0===F?{}:F,L=v||{},I=L.containerProps,$=void 0===I?{}:I,z=L.containerStyle,V=N?$:B,W=N?void 0===z?{}:z:_;return t.jsx(Nne,f({id:y,$vertical:s,$spacing:x},V,{$styles:f(f({},V),W)},{children:i.map((function(e,o){return t.jsxs(n.Fragment,{children:[t.jsxs(Rne,f({onClick:function(){var t;e.disabled||(t=null==e?void 0:e.tabKey,null==u||u(t),O(t))},disabled:e.disabled,tabTheme:d,selectedTabTextColor:w.selectedTabTextColor,isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor},{children:[t.jsx(Zre,f({ref:function(e){return S.current[o]=e},vertical:s},e,{isActive:e.tabKey===E,tabTheme:d},w)),t.jsx(RP,{height:"S"}),t.jsx(Pne,{left:k[o],width:T[o],isActiveTab:e.tabKey===E,selectedTabIndicatorColor:w.selectedTabIndicatorColor,tabTheme:d})]})),e.divider&&t.jsx(MV,{type:"vertical",color:"dark"===d?M.gray2:M.gray4,style:{height:A.XL+A.S}})]},e.tabKey)}))}))},Fne=l.default(w)(Kte||(Kte=x(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"],["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: fit-content;\n"]))),_ne=l.default.div(Jte||(Jte=x(["\n display: flex;\n cursor: pointer;\n ","\n"],["\n display: flex;\n cursor: pointer;\n ","\n"])),(function(t){var n=t.isOpen,o=t.theme,r=o.colors,i=o.sizes;return n&&e.css(Zte||(Zte=x(["\n border-radius: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n background-color: ",";\n "])),i.XS,r.gray4)})),Lne=function(e){var n=e.textContent,o=e.invertColors;return t.jsx(Ine,f({invertColors:o},{children:t.jsx(NP,{color:o?"white":"primary",font:"XL",value:n})}))},Ine=l.default.div(ene||(ene=x(["\n width: 100%;\n text-align: center;\n ","\n"],["\n width: 100%;\n text-align: center;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.invertColors;return e.css(Qte||(Qte=x(["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "],["\n border-radius: ","px;\n padding: ","px;\n background-color: ",";\n "])),o.S,o.L,i?r.primary:r.gray5)})),$ne=function(o){var r=o.name,i=void 0===r?"":r,a=o.rules,s=o.styles,l=o.control,c=o.optional,u=o.required,p=o.labelsProps,d=o.defaultValue,h=void 0===d?"":d,m=o.radioButtonsProps,v=o.conditionConfig,g=o.formData,x=o.htmlElementId,b=o.state,y=e.useTheme().sizes,w=Y8(),C=R7(v,g);return n.useEffect((function(){g&&w&&w.reset(g)}),[g]),n.useEffect((function(){b&&"field_error"===b&&w&&w.trigger(i)}),[b,w]),C?l?t.jsx(l9,{name:i,control:l,rules:f({required:{value:!!u,message:"This field is required"}},a),defaultValue:h,render:function(e){var n=e.field,o=e.fieldState.error,r=!!o,i=r?null==o?void 0:o.message:void 0,a=u?"REQUIRED":c?"OPTIONAL":void 0;return t.jsxs(zne,f({id:x,$styles:s},{children:[(null==p?void 0:p.label)&&t.jsx(b8,f({},p,{ruleLabel:a,isError:r})),t.jsx(RP,{height:y.S+y.XS}),t.jsx(n8,f({},f(f({},m),{isError:r}),n)),!!i&&t.jsx(_P,{text:i})]}))}}):t.jsxs(zne,f({id:x,$styles:s},{children:[p&&t.jsx(b8,f({},p)),t.jsx(RP,{height:y.S+y.XS}),t.jsx(n8,f({},m))]})):null},zne=l.default.div(tne||(tne=x(["\n ","\n"],["\n ","\n"])),(function(e){return e.$styles})),Vne=function(e){var n=e.logo,o=e.title,r=e.withCloseIcon,i=e.description,a=e.style,s=e.fontColor,l=e.containerStyles,c=e.isMobile,u=h(e,["logo","title","withCloseIcon","description","style","fontColor","containerStyles","isMobile"]);return t.jsx(Wne,f({},u,{style:l},{children:t.jsxs(Une,f({},u,{isMobile:c,style:a},{children:[t.jsxs(Hne,f({withCloseIcon:r},{children:[!!n&&t.jsx(qne,{src:n,alt:"Alert Logo"}),t.jsxs("div",{children:[t.jsx(NP,{font:"XL",color:null!=s?s:"gray1",value:o}),t.jsx(RP,{height:6}),t.jsx(NP,{font:"M",color:null!=s?s:"gray1",value:i})]})]})),t.jsx(Xne,f({},u,{withCloseIcon:r,onClick:function(e){e.stopPropagation(),null==r||r.onClose()}},{children:t.jsx(LD,{size:S.sizes.L,name:"Close"})}))]}))}))},Wne=l.default.div(rne||(rne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.fullWidth,o=t.color,r=void 0===o?"#dad9e2":o;return e.css(one||(one=x(["\n min-width: 390px;\n\n ","}\n "],["\n min-width: 390px;\n\n ","}\n "])),n&&e.css(nne||(nne=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r))})),Une=l.default.div(ane||(ane=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.color,o=void 0===n?"linear-gradient(0deg, rgba(11, 0, 61, 0.15), rgba(11, 0, 61, 0.15)), ".concat(S.colors.white):n,r=t.isMobile,i=t.fullWidth;return e.css(ine||(ine=x(["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "],["\n position: relative;\n background: ",";\n padding: ","px\n ","px;\n box-shadow: ",";\n border-radius: ","px;\n "])),o,S.sizes.XL,r?S.sizes.XL:S.sizes["2XL"],i?"none":"0 2px 5px rgba(0, 0, 0, 0.25)",S.sizes.M)})),Hne=l.default.div(lne||(lne=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.withCloseIcon;return e.css(sne||(sne=x(["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "],["\n display: flex;\n column-gap: ","px;\n width: calc(100% - ","px);\n "])),S.sizes.M,n?S.sizes["2XL"]:0)})),qne=l.default(dR)(cne||(cne=x(["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"],["\n object-fit: contain;\n width: ","px;\n max-height: ","px;\n"])),S.sizes.XL,S.sizes["3XL"]),Xne=l.default(w)(pne||(pne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.withCloseIcon;return e.css(une||(une=x(["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","zpx;\n right: ","px;\n "])),n?"block":"none",S.sizes.L,S.sizes.XL)})),Gne=l.default.ul(fne||(fne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n;return e.css(dne||(dne=x(["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "],["\n display: flex;\n flex-flow: nowrap ",";\n justify-content: space-between;\n width: 100%;\n height: 100%;\n "])),"horizontal"===o?"row":"column")})),Yne=l.default.li(vne||(vne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n;return e.css(mne||(mne=x(["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "],["\n height: 100%;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n\n :last-child {\n flex: 0;\n }\n\n ","\n "])),"horizontal"===o&&e.css(hne||(hne=x(["\n width: 100%;\n position: relative;\n flex: 1;\n "],["\n width: 100%;\n position: relative;\n flex: 1;\n "]))))})),Kne=l.default.div(gne||(gne=x(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),Zne=l.default.div(bne||(bne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n,r=t.isLastChild;return"vertical"===o&&e.css(xne||(xne=x(["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "],["\n min-height: ",";\n height: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n "])),r?"100%":"58px")})),Jne=l.default.span(Ene||(Ene=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isComplete,a=t.isProgress,s=t.orientation;return e.css(Cne||(Cne=x(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "],["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background-color: ",";\n margin-bottom: ","px;\n margin-right: ","px;\n\n ","\n\n ","\n "])),"horizontal"===s?r.M:r.S,"horizontal"===s?r.M:r.S,i?o.green:o.gray4,"horizontal"===s?0:r.L,r.S,a&&e.css(yne||(yne=x(["\n border: ","px solid ",";\n background-color: ",";\n "],["\n border: ","px solid ",";\n background-color: ",";\n "])),"horizontal"===s?r.XS:2,o.green,o.white),i&&e.css(wne||(wne=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),o.green))})),Qne=l.default.div(kne||(kne=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.orientation,o=void 0===n?"horizontal":n,r=t.isComplete,i=t.theme,a=i.colors,s=i.sizes;return e.css(Sne||(Sne=x(["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "],["\n position: absolute;\n background-color: ",";\n\n ","\n\n ","\n "])),r?a.green:a.gray4,"horizontal"===o&&e.css(One||(One=x(["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "],["\n height: 2px;\n top: 7px;\n left: 20px;\n right: ","px;\n "])),s.XS),"vertical"===o&&e.css(Dne||(Dne=x(["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "],["\n width: 1px;\n height: calc(100% - ","px);\n top: 12px;\n left: 3px;\n "])),s.M))})),eoe=function(e){var n=e.stepsNumber,o=e.step,r=o.title,i=o.description,a=o.status,s=e.orientation,l=e.order,c="complete"===a,u="in_progress"===a,p="incomplete"===a;return t.jsx(Yne,f({orientation:s},{children:t.jsxs(Zne,f({isLastChild:l===n,orientation:s},{children:[t.jsxs(Kne,{children:[t.jsx(Jne,{orientation:s,isComplete:c,isProgress:u}),"vertical"===s&&t.jsxs(Bw,f({ml:2,gap:.5},{children:[t.jsx(BP,f({variant:"S",color:p?"gray3":"gray1"},{children:r})),t.jsx(BP,f({variant:"XS",color:p?"gray4":"gray3"},{children:i}))]}))]}),l!==n&&t.jsx(Qne,{isComplete:c,orientation:s})]}))}))},toe=function(e){var n=e.steps,o=e.orientation,r=void 0===o?"horizontal":o,i=e.currentStep;n.length<2&&n.push({title:"",description:""});var a=n[i]||{},s=a.title,l=void 0===s?"":s,c=a.description,u=void 0===c?"":c,p=a.status;return t.jsxs(t.Fragment,{children:[t.jsx(Gne,f({orientation:r},{children:n.map((function(e,o){return t.jsx(eoe,{step:e,stepsNumber:n.length-1,order:o,orientation:r},o)}))})),"horizontal"===r&&t.jsxs(Bw,f({gap:.5},{children:[t.jsx(BP,f({variant:"S",color:"incomplete"===p?"gray3":"gray1"},{children:l})),t.jsx(BP,f({variant:"XS",color:"incomplete"===p?"gray4":"gray3"},{children:u}))]}))]})};r.pdfjs.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(r.pdfjs.version,"/pdf.worker.min.js");var noe,ooe,roe,ioe,aoe,soe,loe,coe,uoe,poe,doe,foe,hoe,moe,voe,goe,xoe,boe,yoe,woe,Coe,Eoe,Ooe,Doe,Soe,koe,Toe,joe,Moe,Aoe,Noe,Poe,Roe,Boe,Foe,_oe,Loe,Ioe,$oe,zoe,Voe,Woe,Uoe,Hoe,qoe,Xoe,Goe,Yoe,Koe,Zoe,Joe,Qoe,ere,tre,nre,ore,rre,ire,are,sre,lre,cre,ure,pre,dre,fre,hre=function(e){var o=e.source,i=e.isMobile,a=void 0!==i&&i,s=e.customDocumentStyles,l=n.useState(0),c=l[0],u=l[1],p=n.useState(1),d=p[0],h=p[1],m=n.useState(null),v=m[0],g=m[1],x=s||{},b=x.pageWidth,y=void 0===b?a?342:856:b,w=x.pageHeight,C=void 0===w?a?442:1108:w,E=v!==d;return t.jsx(mre,f({pageWidth:y,pageHeight:C},{children:t.jsxs(vre,f({customDocumentStyles:s},{children:[t.jsxs(r.Document,f({file:o,renderMode:"canvas",className:"document",onLoadSuccess:function(e){var t=e.numPages;u(t)},loading:t.jsx(eh,{size:60})},{children:[E&&v?t.jsx(r.Page,{pageNumber:v,renderTextLayer:!1,className:"custom-pdf"},v):null,t.jsx(r.Page,{pageNumber:d,renderTextLayer:!1,className:"".concat(E?"loadingPage":"custom-pdf"),onRenderSuccess:function(){return g(d)}},d)]})),t.jsxs(gre,{children:[t.jsx(xre,f({disable:d<=1,onClick:function(){return h((function(e){return e+(e<=1?0:-1)}))},customDocumentStyles:s},{children:t.jsx(LD,{name:"CaretLeft",size:33})})),t.jsx(bre,{type:"number",size:"small",customDocumentStyles:s,onChange:function(e){var t=e.target.value,n=e.nativeEvent;return function(e,t){if(!Number.isNaN(e)){var n=Math.round(e);n>c?!Number.isNaN(t)&&t>0&&t<=c&&h(t):n<1||h(n)}}(+t,+((null==n?void 0:n.data)||""))},value:d}),t.jsx(xre,f({disabled:!0},{children:t.jsx(yre,{})})),t.jsx(BP,f({variant:"S",color:(null==s?void 0:s.pageNumberColor)||"white"},{children:c})),t.jsx(xre,f({disable:d>=c,onClick:function(){return h((function(e){return e+(e>=c?0:1)}))},customDocumentStyles:s},{children:t.jsx(LD,{name:"CaretRight"})}))]})]}))}))},mre=l.default.div(ooe||(ooe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.pageWidth,o=t.pageHeight;return e.css(noe||(noe=x(["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "],["\n height: 100%;\n .document {\n display: flex;\n justify-content: center;\n align-items: center;\n height: ","px;\n width: ","px;\n }\n .react-pdf__Page__canvas {\n height: ","px !important;\n width: ","px !important;\n }\n .react-pdf__Page.loadingPage {\n display: none;\n }\n .custom-pdf {\n .annotationLayer {\n height: 0 !important;\n }\n }\n "])),o,n,o,n)})),vre=l.default.div(roe||(roe=x(["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"],["\n height: 100%;\n padding: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: relative;\n background-color: ",";\n"])),(function(e){var t=e.theme.colors,n=e.customDocumentStyles,o=(void 0===n?{}:n).wrapperBackgroundColor,r=void 0===o?"gray1":o;return t[r]||r})),gre=l.default.div(aoe||(aoe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(ioe||(ioe=x(["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "],["\n color: ",";\n padding: ","px;\n border-radius: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "])),o.gray4,r.S,r.S)})),xre=l.default(w)(loe||(loe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.disable,a=t.active,s=t.customDocumentStyles,l=void 0===s?{}:s,c=l.paginationArrowColor,u=void 0===c?"gray4":c,p=l.disabledPaginationArrowColor,d=void 0===p?"gray2":p;return e.css(soe||(soe=x(["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "],["\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: ",";\n path,\n line {\n stroke: ",";\n }\n "])),r.XL,r.XL,r.XS,a?o.gray2:"transparent",i?o[d]||d:o[u]||u)})),bre=l.default(GO)(uoe||(uoe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.fonts,i=n.sizes,a=t.customDocumentStyles,s=(void 0===a?{}:a).pageNumberColor,l=void 0===s?"white":s;return e.css(coe||(coe=x(["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "],["\n width: ","px;\n fieldset {\n border: 1px solid "," !important;\n border-radius: ","px;\n }\n input {\n padding: ","px ","px;\n color: ",";\n text-align: right;\n\n ",";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // Firefox\n &[type='number'] {\n -moz-appearance: textfield;\n }\n }\n "])),i["2XL"],o.gray3,i.XS,i.XS,i.S,o[l]||l,r.S)})),yre=l.default(_h)(doe||(doe=x(["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"],["\n transform: rotate(30deg);\n width: 2px;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(poe||(poe=x(["\n height: ","px;\n background-color: ",";\n "],["\n height: ","px;\n background-color: ",";\n "])),r.L,o.gray2)})),wre=function(o){var r=o.templateType,i=o.title,a=o.name,s=o.inputProps,l=o.isMobile,c=o.menuConfig,u=h(o,["templateType","title","name","inputProps","isMobile","menuConfig"]),p=n.useState(!1),d=p[0],m=p[1],v=t.jsx(Ste,f({},c,{onItemPress:function(){return m(!1)}})),g=e.css(foe||(foe=x(["\n min-width: ","px;\n "],["\n min-width: ","px;\n "])),l?275:330);return t.jsxs(Cre,f({isMobile:l},{children:[t.jsx(NP,{value:i,font:"2XL",color:"black"}),"feed_b"===r&&t.jsxs(Bw,f({direction:"row",gap:2,alignItems:"center",justifyContent:"center"},{children:[t.jsx(X7,f({name:null!=a?a:"",inputProps:f(f({},s),{leftIcon:{name:"Search"},placeholder:"Search"}),styles:g},u)),t.jsx(Tne,f({overlay:v,onVisibleChange:m,visible:d,trigger:"click",animation:"slide-up"},{children:t.jsx(Ere,{children:t.jsx(LD,{name:"Filter"})})}))]}))]}))},Cre=l.default(Bw)(voe||(voe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.isMobile,o=t.theme.sizes;return e.css(moe||(moe=x(["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "],["\n margin-top: ","px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n ","\n "])),o.S,n&&e.css(hoe||(hoe=x(["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "],["\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n "]))))})),Ere=l.default(w)(xoe||(xoe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 51px;\n height: 51px;\n ",";\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(goe||(goe=x(["\n border-radius: ","px;\n border: 1.5px solid ",";\n "],["\n border-radius: ","px;\n border: 1.5px solid ",";\n "])),r.S,o.gray2)})),Ore=function(e){var n=e.name,o=e.icon,r=e.active,i=e.activeColor,a=e.onNavigate;return t.jsxs(Dre,f({activeOpacity:.9,onClick:a},{children:[t.jsx(jV,f({padding:S.sizes.XS},{children:t.jsx(o,{size:32,color:r?i:S.colors.gray3})})),t.jsx(BP,f({color:r?i:S.colors.gray3,variant:"S"},{children:n}))]}))},Dre=l.default(w)(boe||(boe=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),Sre=function(o){var r=o.style,i=o.src,a=o.width,s=o.height,l=o.template,c=o.autoplay,u=o.enableCoverImage,p=o.coverImageSrc,d=o.styles,h=o.htmlElementId,m=n.useRef(null),v="auto_play"===l||c,g=n.useState(!1),b=g[0],y=g[1],w=function(){m.current&&(m.current.pause(),m.current.muted=!1,y(!1))},C=function(){var e;return null===(e=m.current)||void 0===e?void 0:e.play().then((function(){return y(!0)}))};if(n.useEffect((function(){v&&m.current?(m.current.muted=!0,C()):w()}),[v]),!i)return null;var E=e.css(yoe||(yoe=x(["\n ","\n "],["\n ","\n "])),d);return t.jsxs(kre,f({id:h,width:a,height:s,style:r,$styles:E},{children:[t.jsx(jre,f({muted:!0,ref:m,width:a,style:r,onClick:w,autoPlay:v,$styles:E,poster:u?p:void 0},{children:t.jsx("source",{width:"100%",height:"100%",src:i})})),!b&&t.jsx(Tre,f({onClick:C,$styles:E},{children:t.jsx(LD,{name:"Play"})}))]}))},kre=l.default.div(Coe||(Coe=x(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(t){var n=t.width,o=t.height,r=t.$styles;return e.css(woe||(woe=x(["\n width: ",";\n height: ",";\n ",";\n "],["\n width: ",";\n height: ",";\n ",";\n "])),n?"".concat(n,"px"):"auto",o?"".concat(o,"px"):"100%",r)})),Tre=l.default(w)(Ooe||(Ooe=x(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"],["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n right: 0;\n bottom: 5px;\n background-color: rgba(29, 36, 45, 0.7);\n ",";\n"])),(function(t){var n=t.$styles;return e.css(Eoe||(Eoe=x(["\n ","\n "],["\n ","\n "])),n)})),jre=l.default.video(Soe||(Soe=x(["\n width: 100%;\n cursor: pointer;\n ",";\n"],["\n width: 100%;\n cursor: pointer;\n ",";\n"])),(function(t){var n=t.$styles;return e.css(Doe||(Doe=x(["\n ","\n "],["\n ","\n "])),n)})),Mre=function(e){var n,o=e.src,r=e.onClick,i=e.link,a=void 0===i?"":i,s=e.altText,l=void 0===s?"":s,c=e.styles,u=e.width,p=e.height,d=e.id,h=e.behaveAs,m=void 0===h?"regular":h,v=e.cornerRadius,g=void 0===v?0:v,x=e.stateConfig,b=e.htmlElementId,y=Lee(x),w={src:o,width:u,$styles:c,height:p,alt:l,cornerRadius:g,onClick:function(){null==r||r(),y()}},C=iN(),E=C.showAnnotations,O=C.annotationsList,D=C.isMLRReview,S=O.links.findIndex((function(e){return d===e.moleculeId||a===e.url}))+1,k=null!==(n=O.tags.map((function(e,t){var n;return(null===(n=e.moleculeIds)||void 0===n?void 0:n.some((function(e){return e===d})))?t:-1})))&&void 0!==n?n:[],T=k.length>0?k.filter((function(e){return-1!==e})):[];if(!o)return null;var j={background:t.jsx(fR,f({},w)),regular:t.jsx(dR,f({},w))};return t.jsxs("div",f({id:b,style:{position:"regular"===m?"relative":"static"}},{children:[j[m],D&&E&&t.jsx("span",f({style:{position:"absolute",bottom:-3,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsxs(l8,{children:[!!S&&t.jsx(a8,{index:S,type:"link"}),T.length>0&&T.map((function(e){return t.jsx(a8,{index:e+1,type:"message"})}))]})}))]}))},Are=function(e){var o=e.children,r=e.autoplay,i=void 0===r||r,a=e.autoplayDuration,s=void 0===a?5e3:a,l=n.useRef(null),c=n.useRef(null),u=n.useState(1),p=u[0],d=u[1],h=n.useState(0),m=h[0],v=h[1],x=s<100?1e3*s:s,b=n.useCallback((function(e){null!==c.current&&"400ms"!==c.current.style.transitionDuration&&(c.current.style.transitionDuration="400ms","prev"===e?p<=1?(v(0),d(null==o?void 0:o.length)):(v(c.current.clientWidth*(p-1)),d((function(e){return e-1}))):"next"===e&&(p>=o.length?(v(c.current.clientWidth*(o.length+1)),d(1)):(v(c.current.clientWidth*(p+1)),d((function(e){return e+1})))))}),[p,o]);n.useEffect((function(){var e=function(){null!==c.current&&(p<=1&&(c.current.style.transitionDuration="10ms",v(c.current.clientWidth*p)),p>=o.length&&(c.current.style.transitionDuration="10ms",v(c.current.clientWidth*o.length)),c.current.style.transitionDuration="10ms")};return document.addEventListener("transitionend",e),function(){document.removeEventListener("transitionend",e)}}),[p,o]),n.useEffect((function(){var e=function(){l.current&&clearInterval(l.current),c.current&&v(p>1?c.current.clientWidth*p:c.current.clientWidth),i&&(l.current=setInterval((function(){b("next")}),x))};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[p,i,x,o]),n.useEffect((function(){return i&&(l.current&&clearInterval(l.current),l.current=setInterval((function(){b("next")}),x)),function(){l.current&&clearInterval(l.current)}}),[b,i,x]);var y=n.useMemo((function(){if(o.length>1){var e=n.Children.map(o,(function(e,n){return t.jsx(Rre,{children:e},n)}));return g(g([t.jsx(Rre,{children:o[o.length-1]},o.length+1)],e,!0),[t.jsx(Rre,{children:o[0]},o.length+2)],!1)}return t.jsx(Rre,{children:o[0]})}),[o]);n.useLayoutEffect((function(){null!==c.current&&v(c.current.clientWidth*p)}),[]);return t.jsxs(Nre,{children:[t.jsx(Pre,f({ref:c,translateX:m},{children:y})),t.jsxs(Bre,{children:[t.jsx(Fre,f({arrowSide:"left"},{children:t.jsx(d8,{size:32,color:"white",name:"CaretLeft",withoutOpacityEffect:!0,onClick:function(){return b("prev")}})})),t.jsx(_re,{children:n.Children.map(o,(function(e,n){return t.jsx(w,f({onClick:function(){return e=n,void(c.current&&(c.current.style.transitionDuration="400ms",d(e+1),v(c.current.clientWidth*(e+1))));var e}},{children:t.jsx(c8,{active:n===p-1,activeColor:"white",inactiveColor:"gray3"})}),n)}))}),t.jsx(Fre,f({arrowSide:"right"},{children:t.jsx(d8,{size:32,color:"white",name:"CaretRight",withoutOpacityEffect:!0,onClick:function(){return b("next")}})}))]})]})},Nre=l.default.section(koe||(koe=x(["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"],["\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-color: ",";\n"])),(function(e){return e.theme.colors.white})),Pre=l.default.ul(joe||(joe=x(["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"],["\n display: flex;\n width: 100%;\n height: 100%;\n list-style: none;\n padding: 0;\n margin: 0;\n transition: transform 0.4s ease-in-out;\n ",";\n"])),(function(t){var n=t.translateX;return e.css(Toe||(Toe=x(["\n transform: translate3d(","px, 0, 0);\n "],["\n transform: translate3d(","px, 0, 0);\n "])),-n)})),Rre=l.default.li(Moe||(Moe=x(["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"],["\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n"]))),Bre=l.default.div(Noe||(Noe=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Aoe||(Aoe=x(["\n margin: ","px 100px;\n "],["\n margin: ","px 100px;\n "])),n.XL)})),Fre=l.default.div(Poe||(Poe=x(["\n filter: ",";\n"],["\n filter: ",";\n"])),(function(e){var t=e.theme.colors,n=e.arrowSide;return n?"drop-shadow(".concat("left"===n?"1px":"-1px"," 0 2px ").concat(t.gray1,")"):"unset"})),_re=l.default.div(Roe||(Roe=x(["\n display: flex;\n"],["\n display: flex;\n"]))),Lre=l.default.button(_oe||(_oe=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n user-select: none;\n outline: none;\n height: 51px;\n position: relative;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.fullWidth,l=t.variant,c=void 0===l?"primary":l,u=t.size,p=void 0===u?"medium":u,d="primary"===c?r.primary:"transparent",f="primary"===c?r.white:r.gray2,h="medium"===p?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px");return e.css(Foe||(Foe=x(["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "],["\n padding: ",";\n height: ","px;\n border: 2.5px solid transparent;\n background-color: ",";\n ",";\n color: ",";\n border-radius: ","px;\n background-position: center;\n transition: box-shadow 0.25s ease-in-out;\n width: ",";\n &:hover {\n box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);\n }\n &:focus {\n border: 2.5px solid\n ",";\n box-shadow: none;\n }\n\n ","\n "])),h,"medium"===p?51:33,d,"medium"===p?i.XL:i.L,f,o.S,s?"100%":"auto","primary"===c?D(r.primary,-.38):r.gray2,a&&e.css(Boe||(Boe=x(["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "],["\n cursor: unset;\n pointer-events: none;\n background-color: ",";\n box-shadow: none;\n "])),O(r.primary)))})),Ire=l.default(Lre).attrs({variant:"secondary"})($oe||($oe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.disabled;return e.css(Ioe||(Ioe=x(["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "],["\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px transparent inset;\n &:focus {\n border: 1.5px solid ",";\n box-shadow: 0 0 0 1.5px "," inset;\n }\n &:hover {\n box-shadow: 0 0 0 1.5px "," inset;\n }\n\n ","\n "])),n.gray2,n.gray2,n.gray2,n.gray2,o&&e.css(Loe||(Loe=x(["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "],["\n box-shadow: 0 0 0 1.5px ",";\n color: ",";\n background-color: transparent;\n "])),n.gray3,n.gray3))})),$re=l.default(Lre).attrs({variant:"custom"})(qoe||(qoe=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=n.fonts,a=t.disabled,s=t.size,l=void 0===s?"medium":s,c=t.hoverButtonColor,u=t.hoverStrokeColor,p=void 0===u?"#00000040":u,d=t.buttonFont,f=void 0===d?"XL":d,h=t.textColor,m=void 0===h?"white":h,v=t.textSize,g=void 0===v?16:v,b=t.verticalPadding,y=t.horizontalPadding,w=t.buttonColor,C=void 0===w?"primary":w,E=t.buttonStroke,S=void 0===E?"primary":E,k=t.cornerRadius,T=void 0===k?"S":k,j=t.inactiveButtonColor,M=t.inactiveStrokeColor,A=t.inactiveTextColor,N=t.styles,P=r[C]||C,R="medium"===l?"".concat(o.M,"px"):"".concat(o.S,"px ").concat(o.M,"px"),B="medium"===l?i.XL:i.L,F=C?r[C]||C:r[p]||p;return e.css(Hoe||(Hoe=x(["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "],["\n padding: ",";\n border-color: ",";\n background-color: ",";\n font-size: ","px;\n ",";\n color: ",";\n border-radius: ","px;\n box-shadow: none;\n transition: border 0.2s ease-in-out;\n &:focus {\n border: 2.5px solid ",";\n }\n &:hover {\n border: 2.5px solid ",";\n ","\n }\n\n ","\n\n ","\n "])),y||b?"".concat(o[b||"M"],"px ").concat(o[y||"M"],"px"):R,r[S]||S,P,g,f?i[f]:B,r[m]||m,"number"==typeof T?T:o[T],D(F,-.33),r[p]||p,c&&e.css(zoe||(zoe=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[c]||c),a&&e.css(Uoe||(Uoe=x(["\n background-color: ",";\n color: ","\n ","\n ",";\n "],["\n background-color: ",";\n color: ","\n ","\n ",";\n "])),O(P||r.primary),r[A]||A,j&&e.css(Voe||(Voe=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),r[j]||j),M&&e.css(Woe||(Woe=x(["\n border: 2.5px solid ",";\n "],["\n border: 2.5px solid ",";\n "])),r[M]||M)),N)})),zre=l.default.div(Goe||(Goe=x(["\n display: inline-flex;\n ","\n"],["\n display: inline-flex;\n ","\n"])),(function(t){var n=t.$fullWidth,o=t.$styles;return e.css(Xoe||(Xoe=x(["\n width: ",";\n ","\n "],["\n width: ",";\n ","\n "])),n?"100%":"auto",o)})),Vre=function(n){var o,r=n.text,i=n.onClick,a=n.loading,s=n.disabled,l=n.variant,c=void 0===l?"primary":l,u=n.isRichText,p=n.fullWidth,d=void 0===p||p,m=n.elementId,v=n.link,g=n.containerStyle,b=n.children,y=n.buttonStyle,w=n.size,C=n.textColor,E=void 0===C?"gray2":C,O=n.inactiveTextColor,D=void 0===O?"gray3":O,S=n.state,k=void 0===S?"enabled":S,T=n.href,j=n.stateConfig,M=n.htmlElementId,A=h(n,["text","onClick","loading","disabled","variant","isRichText","fullWidth","elementId","link","containerStyle","children","buttonStyle","size","textColor","inactiveTextColor","state","href","stateConfig","htmlElementId"]),N={primary:Lre,secondary:Ire,custom:$re,text:hR}[c],P=s||"disabled"===k,R=e.useTheme().colors,B=iN(),F=B.showAnnotations,_=B.annotationsList,L=B.isMLRReview,I=_.links.findIndex((function(e){return m===e.moleculeId||v===e.url}))+1,$=Lee(j);if(!r&&!b)return null;var z={primary:"white",secondary:R[E],custom:R[E]||E,text:"blue"},V={primary:"white",secondary:R[D],custom:R[D]||D,text:R[D]},W=e.css(Koe||(Koe=x(["\n ","\n ","\n ","\n "],["\n ","\n ","\n ","\n "])),(null==A?void 0:A.textSize)&&e.css(Yoe||(Yoe=x(["\n font-size: ","px;\n "],["\n font-size: ","px;\n "])),A.textSize),y,A.styles),U=u?t.jsx(NP,{color:P?V[c]:z[c],font:"custom"===c&&A.buttonFont?A.buttonFont:"XL",value:r,extraTextProps:{behaveAs:"button",variant:"custom"===c&&A.buttonFont?A.buttonFont:"XL",styles:W}}):r;return t.jsx(zre,f({},I&&((o={id:TP})["data-".concat(MP)]=v,o["data-".concat(AP)]=m,o),{id:I?"annotation-link":M,"data-link-url":v,"data-link-text":m,className:"z-button-container",$fullWidth:d,$styles:g},{children:t.jsxs(N,f({fullWidth:d,variant:c,disabled:a||P,onClick:function(){null==i||i(),$()},style:f(f({},y),null==A?void 0:A.styles),size:w,textColor:E,inactiveTextColor:D,href:"text"===c?T:void 0},A,{children:[U||b,a&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{width:6}),t.jsx(pR,{color:"gray1"})]}),L&&F&&!!I&&t.jsx("span",f({style:{position:"absolute",bottom:-6,left:"50%",zIndex:1,transform:"translate(-50%, 100%)"}},{children:t.jsx(a8,{index:I,type:"link"})}))]}))}))},Wre=function(e){var n=e.children,o=e.wrapperStyles,r=e.padding,i=void 0===r?64:r,a=e.onKeyDown,s=e.modalStyles,l=h(e,["children","wrapperStyles","padding","onKeyDown","modalStyles"]);return t.jsx(ih,f({},l,{style:s,onKeyDown:a},{children:t.jsxs(Ure,f({style:f({padding:i},o)},{children:[n,t.jsx(Hre,f({onClick:null==l?void 0:l.onClose},{children:t.jsx(LD,{size:32,name:"Close",color:S.colors.gray1})}))]}))}))},Ure=l.default.div(Joe||(Joe=x(["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"],["\n position: absolute;\n left: 50%;\n outline: none;\n min-width: 510px;\n max-height: 90vh;\n overflow-y: auto;\n transform: translate(-50%);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.$styles;return e.css(Zoe||(Zoe=x(["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "],["\n top: ","px;\n box-shadow: ","px;\n border-radius: ","px;\n background-color: ",";\n ","\n "])),r.XL,r.L,r.M,o.background,i)})),Hre=l.default(w)(ere||(ere=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme.sizes;return e.css(Qoe||(Qoe=x(["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "],["\n display: flex;\n ",";\n justify-content: center;\n align-items: center;\n position: absolute;\n top: ","px;\n right: ","px;\n cursor: pointer;\n "])),C(n.L),n["4XL"],n["4XL"])})),qre=function(e){var n;switch(e.type){case"checkbox":n=t.jsx(VP,{id:e.id,isSelected:e.value,onClick:e.onChange,label:e.label,isRichText:!0});break;case"button":n=t.jsxs(Bw,f({direction:"row",gap:2},{children:[t.jsx(Vre,f({fullWidth:!1},e.acceptButton)),t.jsx(Vre,f({variant:"secondary",fullWidth:!1},e.denyButton))]}));break;case"radioButton":n=t.jsx(n8,f({},e));break;default:n=null}return t.jsx(Xre,{children:n})},Xre=l.default.div(tre||(tre=x(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),Gre=function(e){var n=e.text,o=e.consentCaptureProps,r=e.containerStyles,i=e.clearStyles,a=void 0!==i&&i;return t.jsxs(Yre,f({clearStyles:a,style:r},{children:[t.jsx(NP,{value:n,font:"M"}),t.jsx(qre,f({},o))]}))},Yre=l.default.div(ore||(ore=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return!t.clearStyles&&e.css(nre||(nre=x(["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "],["\n background: ",";\n padding: ","px;\n box-shadow: 0 ","px 10px rgba(0, 0, 0, 0.25);\n border-radius: ","px;\n "])),o.white,r["3XL"],r.XS,r.M)})),Kre=function(e){var n=e.text,o=e.isRichText,r=e.htmlElementId,i=h(e,["text","isRichText","htmlElementId"]);return n?o?t.jsx(NP,{htmlElementId:r,value:n,renderElementWrapperProps:i,renderElementWrapperComponent:hR}):t.jsx(hR,f({},i,{id:r},{children:n})):null},Zre=u.default.forwardRef((function(o,r){var i,a,s=o.options,l=o.onClick,c=o.text,u=o.tabKey,p=o.vertical,d=o.onOptionClick,m=o.tabTheme,v=void 0===m?"light":m,g=o.tabFont,x=void 0===g?"L":g,b=o.tabPadding,y=o.selectedTabIndicatorColor,w=o.textSize,C=o.defaultTabTextColor,E=h(o,["options","onClick","text","tabKey","vertical","onOptionClick","tabTheme","tabFont","tabPadding","selectedTabIndicatorColor","textSize","defaultTabTextColor"]),O=n.useState(!1),D=O[0],S=O[1],k=n.useRef(null),T=e.useTheme().sizes;n.useImperativeHandle(r,(function(){return k.current}));var j=!!(null==s?void 0:s.length),M=t.jsx(Ste,{options:s,onItemPress:function(e){null==d||d(e),S(!1)}});return t.jsx(Tne,f({overlay:M,onVisibleChange:j?S:void 0,visible:D,overlayStyle:{zIndex:5e3,paddingTop:T.M},trigger:"click",animation:"slide-up"},{children:t.jsxs(m8,f({ref:k},E,{tabTheme:v,onClick:function(){null==l||l(u),j&&S(!0)}},{children:[t.jsx(h8,f({behaveAs:"button",textSize:w,variant:x,tabFont:x,tabPadding:b,tabTheme:v,defaultTabTextColor:C},{children:c})),j&&t.jsx(v8,f({disabled:E.disabled,tabTheme:v,isActive:D,defaultTabTextColor:C},{children:t.jsx(LD,{name:"CaretDown",size:T.L})})),p&&t.jsx(Pne,{style:{bottom:-T.S},left:0,width:E.isActive&&null!==(a=null===(i=k.current)||void 0===i?void 0:i.clientWidth)&&void 0!==a?a:0,tabTheme:v,selectedTabIndicatorColor:y})]}))}))})),Jre=l.default(BP).attrs({variant:"M"})(rre||(rre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),Qre=l.default(BP).attrs({variant:"2XL"})(ire||(ire=x(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.indigo})),eie=l.default.div(are||(are=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n column-gap: ","px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),tie=function(){return xV({type:"error",message:"You need to accept the consents to do that"})},nie=l.default(BP)(sre||(sre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),oie=l.default(hR)(lre||(lre=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S})),rie=l.default(bd)(ure||(ure=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(cre||(cre=x(["\n padding: ","px;\n text-align: center;\n background: ",";\n border: 1px dashed ",";\n border-radius: ","px;\n "],["\n padding: ","px;\n text-align: center;\n background: ",";\n border: 1px dashed ",";\n border-radius: ","px;\n "])),r.L,o.gray5,o.gray3,r.M)})),iie=[{iconName:"Mobile",infoText:"Text Message",isActive:!1,value:"sms"},{iconName:"Mail",infoText:"Email",isActive:!1,value:"email"}],aie={name:"code",options:[],label:"Code",type:"input",placeholder:"Enter Six Digit Code",required:!0,tooltip:"Enter the code that was sent to you in the box below.",inputType:"number",maxLength:6},sie=l.default.div(pre||(pre=x(["\n display: flex;\n column-gap: ","px;\n"],["\n display: flex;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),lie=function(e){var o=e.logoUrl,r=e.onSubmit,i=e.onBack,a=e.onNext,s=n.useState(),l=s[0],c=s[1],u=n.useState(""),p=u[0],d=u[1],h=Y9({defaultValues:{code:p},mode:"onChange"}),g=h.control,x=h.formState,b=h.getValues,y=Wee(2),w=y[0],C=y[1],E=C.canGoToNextStep,O=C.canGoToPrevStep,D=C.goToNextStep,k=C.goToPrevStep,T=[t.jsx(gee,{handleChange:c,cards:iie,initialValue:l}),t.jsx(eee,{control:g,field:aie})],j=1===w?!l:!x.isDirty||!x.isValid;return t.jsxs(t.Fragment,{children:[t.jsx(dR,{height:S.sizes["2XL"],src:o,alt:"App Logo"}),t.jsx(RP,{height:"3XL"}),t.jsx(BP,f({variant:"2XL",color:"indigo"},{children:"Two factor authentication."})),t.jsx(RP,{height:14}),t.jsx(BP,f({variant:"M"},{children:"How would you like to receive your code that will be used to authenticate your account?"})),t.jsx(RP,{height:"XL"}),T[w-1],t.jsx(RP,{height:"XL"}),t.jsxs(sie,{children:[t.jsx(Vre,{disabled:j,onClick:function(){return m(void 0,void 0,void 0,(function(){var e;return v(this,(function(t){return E&&l?(null==a||a(l).then(D),[2]):(e=b(),d(e.code),null==r||r(e),[2])}))}))},text:"Next",variant:"primary"}),t.jsx(Vre,{onClick:function(){O?k():null==i||i()},text:"Back",variant:"secondary"})]})]})},cie=l.default(BP)(dre||(dre=x(["\n display: flex;\n color: ",";\n"],["\n display: flex;\n color: ",";\n"])),(function(e){return e.theme.colors.gray2})),uie=l.default(hR)(fre||(fre=x(["\n margin-left: ","px;\n"],["\n margin-left: ","px;\n"])),(function(e){return e.theme.sizes.S}));function pie(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function die(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function fie(e){return fie="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},fie(e)}function hie(e){die(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===fie(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function mie(e,t){die(2,arguments);var n=hie(e).getTime(),o=pie(t);return new Date(n+o)}var vie={};function gie(){return vie}function xie(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function bie(e){return bie="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},bie(e)}function yie(e){return die(1,arguments),e instanceof Date||"object"===bie(e)&&"[object Date]"===Object.prototype.toString.call(e)}function wie(e){if(die(1,arguments),!yie(e)&&"number"!=typeof e)return!1;var t=hie(e);return!isNaN(Number(t))}function Cie(e,t){die(2,arguments);var n=pie(t);return mie(e,-n)}function Eie(e){die(1,arguments);var t=1,n=hie(e),o=n.getUTCDay(),r=(o<t?7:0)+o-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Oie(e){die(1,arguments);var t=hie(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Eie(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Eie(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Die(e){die(1,arguments);var t=Oie(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=Eie(n);return o}function Sie(e,t){var n,o,r,i,a,s,l,c;die(1,arguments);var u=gie(),p=pie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hie(e),f=d.getUTCDay(),h=(f<p?7:0)+f-p;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function kie(e,t){var n,o,r,i,a,s,l,c;die(1,arguments);var u=hie(e),p=u.getUTCFullYear(),d=gie(),f=pie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:d.firstWeekContainsDate)&&void 0!==o?o:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,f),h.setUTCHours(0,0,0,0);var m=Sie(h,t),v=new Date(0);v.setUTCFullYear(p,0,f),v.setUTCHours(0,0,0,0);var g=Sie(v,t);return u.getTime()>=m.getTime()?p+1:u.getTime()>=g.getTime()?p:p-1}function Tie(e,t){var n,o,r,i,a,s,l,c;die(1,arguments);var u=gie(),p=pie(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==o?o:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=kie(e,t),f=new Date(0);f.setUTCFullYear(d,0,p),f.setUTCHours(0,0,0,0);var h=Sie(f,t);return h}function jie(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var Mie=function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return jie("yy"===t?o%100:o,t.length)},Aie=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):jie(n+1,2)},Nie=function(e,t){return jie(e.getUTCDate(),t.length)},Pie=function(e,t){return jie(e.getUTCHours()%12||12,t.length)},Rie=function(e,t){return jie(e.getUTCHours(),t.length)},Bie=function(e,t){return jie(e.getUTCMinutes(),t.length)},Fie=function(e,t){return jie(e.getUTCSeconds(),t.length)},_ie=function(e,t){var n=t.length,o=e.getUTCMilliseconds();return jie(Math.floor(o*Math.pow(10,n-3)),t.length)},Lie="midnight",Iie="noon",$ie="morning",zie="afternoon",Vie="evening",Wie="night",Uie={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Mie(e,t)},Y:function(e,t,n,o){var r=kie(e,o),i=r>0?r:1-r;return"YY"===t?jie(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):jie(i,t.length)},R:function(e,t){return jie(Oie(e),t.length)},u:function(e,t){return jie(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return jie(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return jie(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Aie(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return jie(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=function(e,t){die(1,arguments);var n=hie(e),o=Sie(n,t).getTime()-Tie(n,t).getTime();return Math.round(o/6048e5)+1}(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):jie(r,t.length)},I:function(e,t,n){var o=function(e){die(1,arguments);var t=hie(e),n=Eie(t).getTime()-Die(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):jie(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Nie(e,t)},D:function(e,t,n){var o=function(e){die(1,arguments);var t=hie(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),r=n-o;return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):jie(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return jie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return jie(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return jie(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Iie:0===r?Lie:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Vie:r>=12?zie:r>=4?$ie:Wie,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Pie(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Rie(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):jie(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):jie(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Bie(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fie(e,t)},S:function(e,t){return _ie(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return qie(r);case"XXXX":case"XX":return Xie(r);default:return Xie(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return qie(r);case"xxxx":case"xx":return Xie(r);default:return Xie(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Hie(r,":");default:return"GMT"+Xie(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Hie(r,":");default:return"GMT"+Xie(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return jie(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return jie((o._originalDate||e).getTime(),t.length)}};function Hie(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+jie(i,2)}function qie(e,t){return e%60==0?(e>0?"-":"+")+jie(Math.abs(e)/60,2):Xie(e,t)}function Xie(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+jie(Math.floor(r/60),2)+n+jie(r%60,2)}var Gie=Uie,Yie=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Kie=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Zie={p:Kie,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return Yie(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Yie(r,t)).replace("{{time}}",Kie(i,t))}},Jie=Zie,Qie=["D","DD"],eae=["YY","YYYY"];function tae(e){return-1!==Qie.indexOf(e)}function nae(e){return-1!==eae.indexOf(e)}function oae(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rae={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function iae(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var aae={date:iae({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:iae({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:iae({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function lae(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var cae={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:lae({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:lae({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:lae({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:lae({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:lae({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function uae(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,s=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?dae(l,(function(e){return e.test(s)})):pae(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function pae(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function dae(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var fae,hae={ordinalNumber:(fae={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(fae.matchPattern);if(!n)return null;var o=n[0],r=e.match(fae.parsePattern);if(!r)return null;var i=fae.valueCallback?fae.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(o.length);return{value:i,rest:a}}),era:uae({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:uae({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:uae({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:uae({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:uae({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},mae={code:"en-US",formatDistance:function(e,t,n){var o,r=rae[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:aae,formatRelative:function(e,t,n,o){return sae[e]},localize:cae,match:hae,options:{weekStartsOn:0,firstWeekContainsDate:1}},vae=mae,gae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bae=/^'([^]*?)'?$/,yae=/''/g,wae=/[a-zA-Z]/;function Cae(e){var t=e.match(bae);return t?t[1].replace(yae,"'"):e}var Eae,Oae,Dae,Sae,kae,Tae,jae,Mae,Aae,Nae,Pae,Rae,Bae,Fae,_ae,Lae,Iae,$ae,zae,Vae,Wae,Uae,Hae,qae,Xae,Gae,Yae,Kae,Zae,Jae,Qae,ese,tse,nse,ose,rse,ise,ase,sse,lse,cse,use,pse,dse,fse,hse,mse,vse,gse,xse,bse,yse,wse,Cse,Ese,Ose,Dse,Sse,kse,Tse,jse,Mse,Ase,Nse,Pse,Rse,Bse,Fse,_se,Lse,Ise,$se,zse,Vse=function(e,t,n){void 0===n&&(n=new Date);var o=e instanceof Date?e:function(e,t){return void 0===t&&(t=new Date),e&&"Invalid Date"!==new Date(e).toString()?new Date(e):t}(e,n);return o instanceof Date?function(e,t,n){var o,r,i,a,s,l,c,u,p,d,f,h,m,v,g,x,b,y;die(2,arguments);var w=String(t),C=gie(),E=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==o?o:vae,O=pie(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(p=C.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=pie(null!==(f=null!==(h=null!==(m=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(x=g.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==h?h:null===(b=C.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var S=hie(e);if(!wie(S))throw new RangeError("Invalid time value");var k=xie(S),T=Cie(S,k),j={firstWeekContainsDate:O,weekStartsOn:D,locale:E,_originalDate:S};return w.match(xae).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Jie[t])(e,E.formatLong):e})).join("").match(gae).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return Cae(o);var i=Gie[r];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!nae(o)||oae(o,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!tae(o)||oae(o,t,String(e)),i(T,o,E.localize,j);if(r.match(wae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("")}(o,"'Last Updated' MMMM dd, yyyy"):o},Wse=l.default.footer(Oae||(Oae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes,i=t.isMobile;return e.css(Eae||(Eae=x(["\n display: flex;\n flex-direction: ",";\n background-color: ",";\n padding: ",";\n width: 100%;\n "],["\n display: flex;\n flex-direction: ",";\n background-color: ",";\n padding: ",";\n width: 100%;\n "])),i?"column":"row",o.gray5,i?"".concat(r.L,"px"):"".concat(r["3XL"],"px ").concat(r["5XL"],"px"))})),Use=l.default(dR)(Dae||(Dae=x(["\n width: 100%;\n height: auto;\n max-width: 264px;\n max-height: 124px;\n"],["\n width: 100%;\n height: auto;\n max-width: 264px;\n max-height: 124px;\n"]))),Hse=l.default.div(Sae||(Sae=x(["\n margin-right: ","px;\n"],["\n margin-right: ","px;\n"])),(function(e){return e.theme.sizes["4XL"]})),qse=l.default.div(Tae||(Tae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.isMobile;return e.css(kae||(kae=x(["\n display: flex;\n width: 100%;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n margin-top: ","px;\n ",": 1.5px solid ",";\n "],["\n display: flex;\n width: 100%;\n flex-direction: column;\n justify-content: space-between;\n padding: ",";\n margin-top: ","px;\n ",": 1.5px solid ",";\n "])),o?"".concat(n["3XL"],"px 0 0 0"):"0 0 0 ".concat(n["3XL"],"px"),o?n["3XL"]:0,o?"border-top":"border-left",(function(e){return e.theme.colors.gray4}))})),Xse=l.default.div(jae||(jae=x(["\n display: flex;\n align-items: center;\n margin-top: ","px;\n"],["\n display: flex;\n align-items: center;\n margin-top: ","px;\n"])),(function(e){return e.theme.sizes.L})),Gse=l.default.div(Aae||(Aae=x(["\n width: 100%;\n height: 1px;\n transform: rotate(-90deg);\n ","\n"],["\n width: 100%;\n height: 1px;\n transform: rotate(-90deg);\n ","\n"])),(function(t){var n=t.theme,o=n.colors,r=n.sizes;return e.css(Mae||(Mae=x(["\n margin: 0 ","px;\n max-width: ","px;\n background-color: ",";\n "],["\n margin: 0 ","px;\n max-width: ","px;\n background-color: ",";\n "])),r.S,r.S,o.gray2)})),Yse=function(e){var n=e.contactInfo,o=e.footerLogoSrc;return t.jsxs(Hse,{children:[t.jsx(Use,{src:o}),t.jsx(RP,{height:S.sizes.L}),t.jsx(BP,f({variant:"XS",color:"gray1"},{children:"Contact Us"})),t.jsx(RP,{height:S.sizes.M}),t.jsx(BP,f({variant:"XS",color:"gray2"},{children:n.addressLine1})),!!n.addressLine2&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:S.sizes.S}),t.jsx(BP,f({variant:"XS",color:"gray2"},{children:n.addressLine2}))]}),!!n.phoneNumber&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:S.sizes.M}),t.jsx(BP,f({variant:"XS",color:"gray2"},{children:n.phoneNumber}))]})]})},Kse=function(e){var o=e.footerContent,r=e.companyInfo,i=e.footerLogo,a=e.footerLinks,s=e.lastUpdated,l=e.contactInfo,c=e.isMobile;return t.jsxs(Wse,f({isMobile:c},{children:[t.jsx(Yse,{contactInfo:l,footerLogoSrc:i}),t.jsxs(qse,f({isMobile:c},{children:[t.jsxs("div",{children:[t.jsx(BP,f({variant:"XS"},{children:r})),t.jsx(RP,{height:S.sizes.M}),t.jsx(NP,{value:o}),t.jsx(Xse,{children:a.map((function(e,o){return t.jsxs(n.Fragment,{children:[0!==o&&t.jsx(Gse,{}),t.jsx(Vre,f({variant:"text",onClick:function(){return window.open(e.location,"_blank")}},{children:t.jsx(BP,f({color:"blue",variant:"S"},{children:e.name}))}))]},e.id)}))})]}),t.jsxs("div",{children:[t.jsx(RP,{height:S.sizes.L}),t.jsx(BP,f({variant:"XS"},{children:Vse(s)}))]})]}))]}))},Zse=function(e){var o=e.companyInfo,r=e.isMobile,i=e.footerLogo,a=e.footerLinks,s=e.lastUpdated;return t.jsxs(Wse,f({isMobile:r},{children:[t.jsx(Hse,{children:t.jsx(Use,{src:i})}),t.jsxs(qse,f({isMobile:r},{children:[t.jsxs("div",{children:[t.jsx(BP,f({variant:"XS"},{children:o})),t.jsx(Xse,{children:a.map((function(e,o){return t.jsxs(n.Fragment,{children:[0!==o&&t.jsx(Gse,{}),t.jsx(Vre,f({variant:"text",onClick:function(){return window.open(e.location,"_blank")}},{children:t.jsx(BP,f({color:"blue",variant:"S"},{children:e.name}))}))]},e.id)}))})]}),t.jsxs("div",{children:[t.jsx(RP,{height:S.sizes.L}),t.jsx(BP,f({variant:"XS"},{children:Vse(s)}))]})]}))]}))},Jse=function(e){var n=e.companyInfo;return t.jsx(Qse,{children:t.jsx(BP,f({color:"gray3",variant:"XS"},{children:n}))})},Qse=l.default(Wse)(Nae||(Nae=x(["\n justify-content: center;\n align-items: center;\n padding: ","px;\n"],["\n justify-content: center;\n align-items: center;\n padding: ","px;\n"])),(function(e){return e.theme.sizes.S})),ele={name:"email",type:"input",label:"Email Address",placeholder:"Enter Email Address",required:!0,inputType:"email"},tle=f(f({},ele),{label:"",placeholder:"Enter Your Email Address"}),nle=l.default.div(Pae||(Pae=x(["\n display: flex;\n flex-direction: column;\n gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n gap: ","px;\n"])),(function(e){return e.theme.sizes.S})),ole=l.default(nle)(Rae||(Rae=x(["\n text-align: center;\n"],["\n text-align: center;\n"]))),rle=l.default.div(Fae||(Fae=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.isMobile,o=t.theme.sizes;return e.css(Bae||(Bae=x(["\n display: flex;\n flex-direction: ",";\n width: 100%;\n gap: ","px;\n align-items: flex-start;\n "],["\n display: flex;\n flex-direction: ",";\n width: 100%;\n gap: ","px;\n align-items: flex-start;\n "])),n?"column":"row",o.S)})),ile=l.default(rle)(Lae||(Lae=x(["\n ","\n"],["\n ","\n"])),(function(t){return t.isMobile&&e.css(_ae||(_ae=x(["\n .z-button-container {\n align-self: center;\n }\n "],["\n .z-button-container {\n align-self: center;\n }\n "])))})),ale=l.default.div($ae||($ae=x(["\n display: flex;\n align-items: flex-start;\n width: 100%;\n ",";\n"],["\n display: flex;\n align-items: flex-start;\n width: 100%;\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isMobile;return e.css(Iae||(Iae=x(["\n padding: ",";\n background-color: ",";\n gap: ","px;\n flex-direction: ",";\n "],["\n padding: ",";\n background-color: ",";\n gap: ","px;\n flex-direction: ",";\n "])),i?"".concat(o.XL,"px"):"".concat(o.XL,"px ").concat(o["5XL"],"px"),r.gray5,i?o.S:o.XL,i?"column":"row")})),sle=l.default(ale)(zae||(zae=x(["\n align-items: center;\n flex-direction: column;\n"],["\n align-items: center;\n flex-direction: column;\n"]))),lle=l.default.div(Wae||(Wae=x(["\n ",";\n"],["\n ",";\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.colors,i=t.isMobile;return e.css(Vae||(Vae=x(["\n width: 100%;\n padding: ",";\n background-color: ",";\n "],["\n width: 100%;\n padding: ",";\n background-color: ",";\n "])),i?"".concat(o.L,"px"):"".concat(o.XL,"px ").concat(o["5XL"],"px"),r.white)})),cle=function(e,t){var o=e.control,r=e.trigger,i=e.reset,a=e.getValues;return{subscribeHandler:n.useCallback((function(){return m(void 0,void 0,void 0,(function(){var e;return v(this,(function(n){switch(n.label){case 0:return[4,r()];case 1:return n.sent()?(e=a().email,null==t||t(e),setTimeout((function(){i()}),450),[2]):[2]}}))}))}),[o,r,i,a,t])}},ule=function(n){var o=n.title,r=n.description,i=n.footerLogo,a=n.lastUpdated,s=n.contactInfo,l=n.isMobile,c=void 0!==l&&l,u=n.onSubscribe,p=n.isSubscribing,d=n.companyInfo,h=n.buttonText,m=void 0===h?'[{"type":"paragraph","children":[{"text":"Subscribe"}]}]':h,v=Y9({mode:"onBlur"}),g=cle(v,u).subscribeHandler,b=e.css(Uae||(Uae=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsxs(Wse,f({isMobile:c},{children:[t.jsx(Yse,{contactInfo:s,footerLogoSrc:i}),t.jsxs(qse,f({isMobile:c},{children:[t.jsxs(dle,{children:[t.jsxs(nle,{children:[t.jsx(NP,{color:"gray1",font:"XL",value:o}),t.jsx(NP,{color:"gray2",font:"M",value:r})]}),t.jsxs(ple,f({isMobile:c},{children:[t.jsx(eee,{control:v.control,field:f(f({},tle),{onKeyDown:function(e){"Enter"===e.key&&(null==g||g())}}),styles:b}),t.jsx(Vre,{loading:p,variant:"secondary",text:m,onClick:g,disabled:!v.formState.isValid,isRichText:!0})]}))]}),t.jsx(BP,f({variant:"XS"},{children:d})),t.jsx(RP,{height:S.sizes.L}),t.jsx(BP,f({variant:"XS"},{children:Vse(a)}))]}))]}))},ple=l.default(rle)(qae||(qae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Hae||(Hae=x(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n.M)})),dle=l.default(ale).attrs({isMobile:!0})(Gae||(Gae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Xae||(Xae=x(["\n gap: ","px;\n padding: 0;\n padding-bottom: ","px;\n "],["\n gap: ","px;\n padding: 0;\n padding-bottom: ","px;\n "])),n.M,n.M)})),fle=function(e){var n=e.buttonConfig;return t.jsxs(Vre,f({variant:"text",disabled:null==n?void 0:n.disabled,onClick:function(){var e;return!(null==n?void 0:n.disabled)&&(null===(e=null==n?void 0:n.onClick)||void 0===e?void 0:e.call(n))},buttonStyle:{display:"flex"}},{children:[t.jsx(gD,{}),t.jsx(RP,{width:S.sizes.S}),t.jsx(BP,f({variant:"L",color:"blue"},{children:"Back to Feed"}))]}))},hle='[{"type":"paragraph","children":[{"text":""}]}]',mle='[{"type":"paragraph","children":[{"text":""}]}]',vle=l.default.div(Kae||(Kae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.colors,o=t.isMobile;return e.css(Yae||(Yae=x(["\n background-color: ",";\n width: 100%;\n min-width: 342px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n "],["\n background-color: ",";\n width: 100%;\n min-width: 342px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ",";\n "])),n.white,o?0:"12px")})),gle=l.default.div(Zae||(Zae=x(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n"]))),xle=l.default.div(Qae||(Qae=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.src,o=t.theme.sizes;return e.css(Jae||(Jae=x(["\n background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(",");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: ","px;\n padding: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n min-width: 342px;\n position: relative;\n "],["\n background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(",");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: ","px;\n padding: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n min-width: 342px;\n position: relative;\n "])),n,o.M,o.XL)})),ble=l.default.div(ese||(ese=x(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n"]))),yle=l.default.div(tse||(tse=x(["\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"],["\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"]))),wle=l.default(w)(rse||(rse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.withCloseIcon,o=t.feedContentTemplate,r=t.theme,i=r.colors,a=r.sizes;return e.css(ose||(ose=x(["\n display: ",";\n\n svg path {\n filter: drop-shadow(-1px -3px 2px ",");\n }\n\n ","\n "],["\n display: ",";\n\n svg path {\n filter: drop-shadow(-1px -3px 2px ",");\n }\n\n ","\n "])),n?"block":"none",i.black,"full_width_content"!==o&&e.css(nse||(nse=x(["\n position: absolute;\n top: ","px;\n right: ","px;\n "],["\n position: absolute;\n top: ","px;\n right: ","px;\n "])),a.L,a.XL))})),Cle=l.default.div(sse||(sse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.showDefaultDocumentStyles;return e.css(ase||(ase=x(["\n width: 100%;\n overflow-x: auto;\n display: flex;\n justify-content: ",";\n\n ","\n "],["\n width: 100%;\n overflow-x: auto;\n display: flex;\n justify-content: ",";\n\n ","\n "])),n?"flex-start":"center",!n&&e.css(ise||(ise=x(["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n "],["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n "]))))})),Ele=function(n){var o=n.document,r=n.lastUpdated,i=n.description,a=n.title,s=n.image,l=n.video,c=n.isMobile,u=n.buttonConfig,p=n.feedContentTemplate,d=n.feedContentType,h=n.imageStyles,m=n.videoStyles,v=n.isEnabledFavoriting,g=n.showDefaultDocumentStyles,x=void 0===g||g,b=n.isFavorite,y=n.onFavoriteClickHandler,C=fD("xs")||c,E=e.useTheme(),O=E.sizes,D=E.colors;return t.jsx(vle,f({isMobile:C},{children:t.jsxs(Bw,f({width:C?"100%":"80%",gap:3},{children:[t.jsx(fle,{buttonConfig:u}),s&&"article_content"===d&&t.jsx(dR,{src:s,alt:s,cornerRadius:O.M,$styles:h}),l&&t.jsx(Sre,{coverImageSrc:s,src:l,template:p,style:m}),t.jsxs(gle,{children:[t.jsxs(Bw,f({gap:1},{children:[t.jsx(NP,{font:"2XL",value:a||hle}),t.jsx(BP,f({variant:"S",color:"gray3"},{children:r}))]})),v?t.jsx(w,f({style:{width:33,height:33},onClick:function(){var e;(null==u?void 0:u.disabled)||null==y||y(),null===(e=n.onFavoriteIconClick)||void 0===e||e.call(n,n)}},{children:t.jsx(hD,{fill:b?D.gray3:D.gray5})})):null]}),o?t.jsx(Cle,f({showDefaultDocumentStyles:x},{children:t.jsx(hre,{customDocumentStyles:x?{wrapperBackgroundColor:"gray1",pageNumberColor:"white",paginationArrowColor:"gray4",disabledPaginationArrowColor:"gray2",pageHeight:C?442:576,pageWidth:C?341:445}:{wrapperBackgroundColor:"white",pageNumberColor:"gray1",paginationArrowColor:"gray2",disabledPaginationArrowColor:"gray4",pageHeight:C?442:1108,pageWidth:C?341:856},isMobile:C,source:o})})):t.jsx(NP,{font:"M",value:i||mle})]}))}))},Ole=function(e){var n=e.isExpanded,o=e.isMobile,r=e.buttonConfig,i=e.image,a=e.lastUpdated,s=e.description,l=e.title,c=e.isEnabledFavoriting,u=e.isFavorite,p=e.onFavoriteClickHandler,d=e.withCloseIcon,h=e.fullWidthTemplateContainerStyles;return n?t.jsx(Ele,f({},e)):t.jsx(xle,f({src:i,style:h},{children:t.jsxs(Bw,f({width:"100%",gap:2},{children:[t.jsxs(ble,{children:[t.jsxs(Bw,f({gap:2},{children:[t.jsx(yle,{children:t.jsx(NP,{font:o?"XL":"2XL",color:"white",value:l||hle})}),t.jsx(BP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsxs(Bw,f({direction:"row"},{children:[c?t.jsx(w,f({onClick:function(){var t;(null==r?void 0:r.disabled)||null==p||p(),null===(t=e.onFavoriteIconClick)||void 0===t||t.call(e,e)}},{children:t.jsx(hD,{color:u?S.colors.white:S.colors.gray3,fill:u?S.colors.white:"transparent"})})):null,t.jsx(wle,f({feedContentTemplate:"full_width_content",withCloseIcon:d,onClick:function(e){e.stopPropagation(),null==d||d.onClose()}},{children:t.jsx(LD,{size:32,name:"Close",color:"white"})}))]}))]}),t.jsx(yle,{children:t.jsx(NP,{font:"M",color:"gray4",value:s||mle})}),t.jsx(Vre,f({variant:"text",buttonStyle:{textDecoration:"underline",maxWidth:20},onClick:function(){var e;return!(null==r?void 0:r.disabled)&&(null===(e=null==r?void 0:r.onClick)||void 0===e?void 0:e.call(r))},disabled:null==r?void 0:r.disabled},{children:"View"}))]}))}))},Dle=function(n){var o=n.isExpanded,r=n.isMobile,i=n.buttonConfig,a=n.image,s=n.video,l=n.lastUpdated,c=n.description,u=n.title,p=n.feedContentTemplate,d=n.imageStyles,h=n.videoStyles,m=n.feedContentType,v=n.isEnabledFavoriting,g=n.isFavorite,x=n.onFavoriteClickHandler,b=n.withCloseIcon,y=e.useTheme(),C=y.sizes,E=y.colors;return o?t.jsx(Ele,f({},n)):t.jsxs(Bw,f({position:"relative",width:"100%",minWidth:342},{children:[a&&("article_content"===m||"document_content"===m)&&t.jsx(dR,{src:a,alt:a,cornerRadius:C.M,$styles:d}),s&&t.jsx(Sre,{src:s,coverImageSrc:a,template:p,style:h}),t.jsx(RP,{height:C.L}),t.jsxs(Bw,f({gap:2},{children:[t.jsxs(ble,{children:[t.jsxs(Bw,f({gap:2},{children:[t.jsx(yle,{children:t.jsx(NP,{font:r?"XL":"2XL",value:u||hle})}),t.jsx(BP,f({variant:"S",color:"gray3"},{children:l}))]})),v?t.jsx(w,f({onClick:function(){var e;(null==i?void 0:i.disabled)||null==x||x(),null===(e=n.onFavoriteIconClick)||void 0===e||e.call(n,n)}},{children:t.jsx(hD,{fill:g?E.gray3:E.gray5})})):null]}),t.jsx(yle,{children:t.jsx(NP,{font:"M",color:"gray2",value:c||mle})}),t.jsx(Vre,f({variant:"text",buttonStyle:{textDecoration:"underline",maxWidth:20},onClick:function(){var e;return!(null==i?void 0:i.disabled)&&(null===(e=null==i?void 0:i.onClick)||void 0===e?void 0:e.call(i))},disabled:null==i?void 0:i.disabled},{children:"View"}))]})),t.jsx(wle,f({feedContentTemplate:p,withCloseIcon:b,onClick:function(e){e.stopPropagation(),null==b||b.onClose()}},{children:t.jsx(LD,{size:32,name:"Close",color:"white"})}))]}))},Sle=function(e){var o,r,i=e.feedContentTemplate,a=h(e,["feedContentTemplate"]),s=function(e){var t=e.isFavorite,o=void 0!==t&&t,r=e.isExpanded,i=void 0!==r&&r,a=n.useState(i),s=a[0],l=a[1],c=n.useState(o),u=c[0],p=c[1];return n.useEffect((function(){return p(o)}),[o]),n.useEffect((function(){return l(i)}),[i]),{isExpandedContent:s,isFavoriteState:u,onFavoriteClickHandler:function(){return p((function(e){return!e}))},onExpandedClickHandler:function(){return l((function(e){return!e}))}}}({isFavorite:a.isFavorite,isExpanded:a.isExpanded}),l=s.onExpandedClickHandler,c=s.isExpandedContent,u=s.isFavoriteState,p=s.onFavoriteClickHandler,d=f(f({},a),{isExpanded:c,buttonConfig:!(null===(o=a.buttonConfig)||void 0===o?void 0:o.disabled)&&(null===(r=a.buttonConfig)||void 0===r?void 0:r.onClick)?a.buttonConfig:f(f({},a.buttonConfig),{onClick:l}),isFavorite:u,onFavoriteClickHandler:p}),m=a.fullWidth||"full_width_content"===i||c||a.isMobile;return t.jsx("div",f({style:{width:m?"100%":"50%",display:"flex"}},{children:"full_width_content"===i?t.jsx(Ole,f({feedContentTemplate:i},d)):t.jsx(Dle,f({feedContentTemplate:i},d))}))},kle=l.default.div(lse||(lse=x(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Tle=l.default.div(cse||(cse=x(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),jle=l.default.div(use||(use=x(["\n transform: translateY(-50%);\n margin-left: ","px; // 48px\n"],["\n transform: translateY(-50%);\n margin-left: ","px; // 48px\n"])),(function(e){return e.theme.sizes.XL+e.theme.sizes.M})),Mle=l.default.div(pse||(pse=x(["\n display: flex;\n align-items: center;\n column-gap: ","px;\n"],["\n display: flex;\n align-items: center;\n column-gap: ","px;\n"])),(function(e){return e.theme.sizes.M})),Ale=function(o){var r=o.feedHeader,i=o.feedContent,a=void 0===i?[]:i,s=o.isMobile,l=e.useTheme().sizes,c=n.useState("all"),u=c[0],p=c[1],d=n.useState([]),h=d[0],m=d[1],v=function(e){m((function(t){return t.some((function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)}))?t.filter((function(t){return(null==t?void 0:t.id)!==(null==e?void 0:e.id)})):g(g([],t,!0),[f(f({},e),{isFavorite:!0})],!1)}))},x=function(e){return function(){return p(e)}},b={options:[{id:"all",title:"All",onClick:x("all")},{id:"favourite",title:"Favourite",onClick:x("favourite")}]},y="all"===u?a:h;return t.jsxs(t.Fragment,{children:[!(null==y?void 0:y.filter((function(e){return e.isExpanded})).length)&&t.jsx(wre,f({},r,{menuConfig:b,isMobile:s})),y.map((function(e){return t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:l.L}),t.jsx(Sle,f({},e,{isEnabledFavoriting:r.enableFavoriting,isMobile:s,onFavoriteIconClick:v}))]})}))]})},Nle=function(n){var o=n.element,r=n.horizontalPaddings,i=fD("xs"),a=e.useTheme().sizes;switch(o.type){case"columns":var s=i?a.L:a["5XL"];return t.jsx(Rle,f({padding:s},{children:t.jsx(Ote,f({},o))}));case"emphasized_text":var l=i?a["3XL"]:a["5XL"];return t.jsx(Rle,f({padding:l},{children:t.jsx(Lne,f({},o))}));case"hero_image":return t.jsx(bee,f({horizontalPaddings:r},o));case"hero_slides":return t.jsx(oce,f({},o));case"feed":return t.jsx(Rle,f({padding:r},{children:t.jsx(Ale,f({},o))}));case"subscribe_panel":return t.jsx(sce,f({},o));default:return t.jsxs(BP,f({variant:"XL"},{children:["You need to create this(",o.type,") element to support it"]}))}},Ple=l.default.div(dse||(dse=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"])),(function(e){var t=e.spacer;return void 0===t?36:t})),Rle=l.default(TV)(fse||(fse=x(["\n width: 100%;\n"],["\n width: 100%;\n"]))),Ble=function(e){var n=e.isiContent,o=e.isMobile;return t.jsx(Fle,f({isMobile:o},{children:t.jsx(NP,{value:n})}))},Fle=l.default.div(hse||(hse=x([""],[""]))),_le=S.sizes["3XL"],Lle=l.default.div(mse||(mse=x(["\n position: sticky;\n top: 0;\n width: 100%;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n z-index: 10;\n background-color: ",";\n"],["\n position: sticky;\n top: 0;\n width: 100%;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);\n z-index: 10;\n background-color: ",";\n"])),S.colors.white),Ile=l.default(BP).attrs({variant:"XS"})(gse||(gse=x(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),(function(t){var n=t.theme.colors;return e.css(vse||(vse=x(["\n color: ",";\n :hover {\n color: ",";\n }\n "],["\n color: ",";\n :hover {\n color: ",";\n }\n "])),n.gray2,n.gray1)})),$le=l.default.div(bse||(bse=x(["\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n ","\n"],["\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n ","\n"])),(function(t){var n=t.theme,o=n.sizes,r=n.devices;return e.css(xse||(xse=x(["\n padding: ","px 0;\n column-gap: ","px;\n @media only screen and (min-width: ",") {\n white-space: normal;\n padding: 0;\n }\n "],["\n padding: ","px 0;\n column-gap: ","px;\n @media only screen and (min-width: ",") {\n white-space: normal;\n padding: 0;\n }\n "])),o.S,o.M,r.md)})),zle=l.default.div(wse||(wse=x(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n height: 30px;\n padding: 0 ","px;\n ","\n"])),_le,(function(t){var n=t.theme.colors;return e.css(yse||(yse=x(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),n.gray5)})),Vle=l.default.div(Ese||(Ese=x(["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n ","\n"],["\n display: flex;\n height: 88px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 0 ","px;\n ","\n"])),_le,(function(t){var n=t.theme.sizes;return e.css(Cse||(Cse=x(["\n img {\n height: ","px;\n width: auto;\n }\n "],["\n img {\n height: ","px;\n width: auto;\n }\n "])),n.XL)})),Wle=l.default.div(Dse||(Dse=x(["\n display: flex;\n align-items: center;\n ","\n"],["\n display: flex;\n align-items: center;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Ose||(Ose=x(["\n column-gap: ","px;\n "],["\n column-gap: ","px;\n "])),n.L)})),Ule=function(o){var r=o.tabsProps,i=o.logoUrl,a=n.useState(!1),s=a[0],l=a[1],c=e.useTheme().sizes;return t.jsxs(t.Fragment,{children:[t.jsx(_ne,f({onClick:function(){return l(!0)},isOpen:s},{children:t.jsx(LD,{size:c.M,name:"Menu"})})),t.jsxs(Mee,f({anchor:"bottom",open:s,onClose:function(){return l(!1)}},{children:[t.jsx(dR,{height:c["2XL"],src:i,alt:"Header Logo"}),t.jsx(RP,{height:c.XL}),t.jsx(Bne,f({vertical:!0,wide:{containerStyle:{marginTop:c.M}},compact:{containerStyle:{marginTop:c.M}}},r))]}))]})},Hle=function(n){var o=n.logoUrl,r=n.links,i=n.onActionButtonClick,a=n.tabsProps,s=n.buttonText,l=n.isMobile,c=n.className,u=n.buttonLink,p=e.useTheme().sizes;return t.jsxs(Lle,f({className:c},{children:[!!(null==r?void 0:r.length)&&t.jsx(zle,{children:t.jsx($le,{children:r.map((function(e,n){var o=e.text,r=e.href;return t.jsx(hR,f({onClick:function(){return function(e){return window.open(e,"_blank")}(r)}},{children:t.jsx(Ile,f({behaveAs:"button"},{children:o}))}),n)}))})}),t.jsxs(Vle,{children:[t.jsx("img",{style:{height:42,width:"auto"},src:o,alt:"Header Logo"}),l?t.jsx(Ule,{logoUrl:o,tabsProps:a}):t.jsxs(Wle,{children:[t.jsx(Bne,f({wide:{containerStyle:{marginTop:p.M}},compact:{containerStyle:{marginTop:p.M}}},a)),t.jsx(Vre,{onClick:i,link:u,isRichText:!0,fullWidth:!1,text:s})]})]})]}))},qle=function(n){var o=n.logoUrl,r=n.onActionButtonClick,i=n.buttonText,a=n.isMobile,s=n.tabsProps,l=n.className,c=n.buttonLink,u=e.useTheme().sizes;return t.jsx(Lle,f({className:l},{children:t.jsxs(Vle,{children:[t.jsx("img",{height:42,width:"auto",src:o,alt:"Header Logo"}),a?t.jsx(Ule,{logoUrl:o,tabsProps:s}):t.jsxs(t.Fragment,{children:[t.jsx(Bne,f({wide:{containerStyle:{marginTop:u.M}},compact:{containerStyle:{marginTop:u.M}}},s)),t.jsx(Vre,{link:c,isRichText:!0,onClick:r,fullWidth:!1,text:i})]})]})}))},Xle=function(e){var n=e.logoUrl,o=e.tabsProps,r=e.isMobile,i=e.className;return t.jsx(Lle,f({className:i},{children:t.jsxs(Vle,{children:[t.jsx("img",{height:42,width:"auto",src:n,alt:"Header Logo"}),r?t.jsx(Ule,{logoUrl:n,tabsProps:o}):t.jsx(Bne,f({wide:{containerStyle:{marginTop:S.sizes.M}},compact:{containerStyle:{marginTop:S.sizes.M}}},o))]})}))},Gle=function(n){var o=n.tabsProps,r=n.logoUrl,i=n.links,a=n.withAvatar,s=n.isMobile,l=n.className,c=e.useTheme().sizes;return t.jsxs(Lle,f({className:l},{children:[!!(null==i?void 0:i.length)&&t.jsx(zle,{children:t.jsx($le,{children:i.map((function(e,n){var o=e.text,r=e.href;return t.jsx(hR,f({onClick:function(){return function(e){return window.open(e,"_blank")}(r)}},{children:t.jsx(Ile,f({behaveAs:"button"},{children:o}))}),n)}))})}),t.jsxs(Vle,{children:[t.jsx("img",{height:42,width:"auto",src:r,alt:"Header Logo"}),s?t.jsx(jne,f({},a)):t.jsxs(Wle,{children:[t.jsx(Bne,f({wide:{containerStyle:{marginTop:c.M}},compact:{containerStyle:{marginTop:c.M}}},o)),t.jsx(jne,f({},a))]})]})]}))},Yle=function(e){var n=e.title,o=void 0===n?"State Title":n,r=e.statuses,i=void 0===r?[]:r,a=e.isMobile,s=e.description,l=void 0===s?"State Description":s,c=e.currentStep,u=void 0===c?0:c,p=e.style,d=e.withCloseIcon;return t.jsxs(Kle,f({style:p},{children:[t.jsxs(Jle,f({withCloseIcon:d},{children:[(o||l)&&t.jsxs(Bw,f({gap:1},{children:[o&&t.jsx(NP,{value:o,font:"XL"}),l&&t.jsx(NP,{value:l,font:"M"})]})),t.jsx(toe,{orientation:a?"vertical":"horizontal",steps:i,currentStep:u})]})),t.jsx(Zle,f({withCloseIcon:d,onClick:function(e){e.stopPropagation(),null==d||d.onClose()}},{children:t.jsx(LD,{size:32,name:"Close"})}))]}))},Kle=l.default.div(kse||(kse=x(["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n position: relative;\n width: auto;\n min-width: 342px;\n ","\n"],["\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n position: relative;\n width: auto;\n min-width: 342px;\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css(Sse||(Sse=x(["\n padding: ","px ","px;\n border-radius: ","px;\n "],["\n padding: ","px ","px;\n border-radius: ","px;\n "])),n.XL,n["2XL"],n.M)})),Zle=l.default(w)(jse||(jse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.withCloseIcon;return e.css(Tse||(Tse=x(["\n display: ",";\n position: absolute;\n top: ","px;\n right: ","px;\n "],["\n display: ",";\n position: absolute;\n top: ","px;\n right: ","px;\n "])),o?"block":"none",n.L,n.XL)})),Jle=l.default(Bw)(Ase||(Ase=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes,o=t.withCloseIcon;return e.css(Mse||(Mse=x(["\n display: flex;\n gap: 22px;\n width: calc(100% - ","px); // 32px - width of close button\n "],["\n display: flex;\n gap: 22px;\n width: calc(100% - ","px); // 32px - width of close button\n "])),o?n.L:0)})),Qle=function(n){var o=n.element,r=n.horizontalPaddings,i=n.elementsLength,a=e.useTheme().sizes;switch(o.elementType){case"alert":return t.jsx(tce,f({padding:r},{children:t.jsx(Vne,f({},o,{containerStyles:{padding:"".concat(o.fullWidth||i>1?0:a.M,"px ").concat(o.isMobile?a.L:a.XL,"px")}}))}));case"process_tracker":return t.jsx(tce,f({padding:r},{children:t.jsx(Yle,f({},o,{style:{margin:"".concat(i>1?0:a.M,"px ").concat(o.isMobile?a.L:a.XL,"px")}}))}));case"feed_content":return t.jsx(tce,f({padding:r},{children:t.jsx(Sle,f({},o))}));default:return t.jsxs(BP,f({variant:"XL"},{children:["You need to create this(",o.type,") element to support it"]}))}},ece=l.default.div(Nse||(Nse=x(["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n row-gap: ","px;\n"])),(function(e){var t=e.spacer,n=void 0===t?"M":t,o=e.theme.sizes;return"number"==typeof n?n:o[n]})),tce=l.default(TV)(Pse||(Pse=x(["\n width: 100%;\n"],["\n width: 100%;\n"]))),nce=l.default(w)(Fse||(Fse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.disabled;return e.css(Bse||(Bse=x(["\n width: 100%;\n ",";\n "],["\n width: 100%;\n ",";\n "])),n&&e.css(Rse||(Rse=x(["\n cursor: unset;\n "],["\n cursor: unset;\n "]))))})),oce=function(e){var n=e.heroSlides,o=void 0===n?[]:n;return o.length?t.jsx(rce,{children:o.length>1?t.jsx(Are,{children:o.map((function(e,n){return t.jsx(bee,f({type:"hero_image"},e),n)}))}):t.jsx(bee,f({type:"hero_image"},o[0]))}):null},rce=l.default.div(_se||(_se=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n width: 100%;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n width: 100%;\n"]))),ice=function(n){var o=n.title,r=n.description,i=n.subscribeHandler,a=n.isSubscribing,s=n.control,l=n.isMobile,c=e.css(Lse||(Lse=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsxs(ale,f({isMobile:l},{children:[t.jsxs(nle,{children:[t.jsx(NP,{color:"gray1",font:"XL",value:o}),t.jsx(NP,{color:"gray2",font:"M",value:r})]}),t.jsxs(rle,f({isMobile:l},{children:[t.jsx(eee,{control:s,field:f(f({},tle),{onKeyDown:function(e){"Enter"===e.key&&i()}}),styles:c}),t.jsx(Vre,{fullWidth:!1,loading:a,text:"Subscribe",onClick:i})]}))]}))},ace=function(n){var o=n.title,r=n.description,i=n.subscribeHandler,a=n.isSubscribing,s=n.control,l=n.isMobile,c=e.css(Ise||(Ise=x(["\n width: 100%;\n "],["\n width: 100%;\n "])));return t.jsx(lle,f({isMobile:l},{children:t.jsxs(sle,f({isMobile:l},{children:[t.jsxs(ole,{children:[t.jsx(NP,{color:"gray1",font:"2XL",value:o}),t.jsx(NP,{color:"gray2",font:"M",value:r})]}),t.jsxs(ile,f({isMobile:l},{children:[t.jsx(eee,{control:s,field:f(f({},tle),{onKeyDown:function(e){"Enter"===e.key&&i()}}),styles:c}),t.jsx(Vre,{fullWidth:!1,loading:a,text:"Subscribe",onClick:i})]}))]}))}))},sce=function(e){var n=e.template,o=e.onSubscribe,r=h(e,["template","onSubscribe"]),i=Y9(),a=fD("xs"),s=cle(i,o).subscribeHandler,l=f(f({},r),{control:i.control,isMobile:a,subscribeHandler:s});switch(n){case"subscribe_template_a":return t.jsx(ice,f({},l));case"subscribe_template_b":return t.jsx(ace,f({},l));default:return t.jsx(t.Fragment,{children:"No such subscribe panel."})}},lce=l.default.div(zse||(zse=x(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme.sizes;return e.css($se||($se=x(["\n margin-top: ","px;\n padding: 0 ","px;\n "],["\n margin-top: ","px;\n padding: 0 ","px;\n "])),n.L,n["3XL"])}));exports.AccountButtonContext=W7,exports.AccountButtonProvider=gte,exports.AcquisitionForm=function(o){var r=o.logoUrl,i=o.title,a=o.description,s=o.buttonText,l=void 0===s?"Sing Up":s,c=o.fields,u=o.optionsPresentation,p=o.onSubmit,d=o.showConsentLabel,h=void 0===d||d,m=o.onLinkButtonClick,v=o.isSubmitDisabled,g=void 0!==v&&v,x=o.consents,b=void 0===x?[]:x,y=o.isLoading,w=o.triggerFormInitially,C=o.isTooltipVisible,E=e.useTheme(),O=E.colors,D=E.sizes,S=Y9({defaultValues:K7(c),mode:"onChange"}),k=S.control,T=S.handleSubmit,j=S.trigger,M=S.formState;n.useEffect((function(){w&&j()}),[w,T]);var A=Uee(b);return t.jsxs(t.Fragment,{children:[t.jsx(dR,{height:D.XL,src:r,alt:"App Logo"}),t.jsx(RP,{height:D["3XL"]}),t.jsx(BP,f({variant:"2XL",color:O.indigo},{children:i})),t.jsx(RP,{height:D.M}),a&&t.jsxs(t.Fragment,{children:[t.jsx(BP,f({variant:"M",color:"gray2"},{children:a})),t.jsx(RP,{height:D.M})]}),t.jsxs(nie,f({variant:"M"},{children:["Already have an account?",t.jsx(oie,f({onClick:m},{children:"Log in"}))]})),c.map((function(e){return t.jsx(eee,{isTooltipVisible:C,optionsPresentation:u,control:k,field:e,spacer:D.L},e.name.toString())})),b.map((function(e,n){return t.jsx(Gre,f({},e),n)})),h&&t.jsxs(t.Fragment,{children:[t.jsx(RP,{height:D.L}),t.jsx(rie,{children:t.jsx(BP,f({variant:"XL"},{children:"Consent Zone"}))})]}),t.jsx(RP,{height:D["2XL"]}),t.jsx(Vre,{onClick:A?T(p):tie,text:l,variant:"primary",disabled:!Z7(M)||g,loading:y})]})},exports.Alert=Vne,exports.ArrowIconWrapper=Fre,exports.Avatar=CV,exports.AvatarDropdown=jne,exports.BackgroundImage=fR,exports.Body=function(e){var n=e.elements,o=e.horizontalPaddings,r=void 0===o?S.sizes["5XL"]:o,i=e.containerStyles;return t.jsx(Ple,f({spacer:n.spacer,style:i},{children:n.data.map((function(e,n){return t.jsx(Nle,{horizontalPaddings:r,element:e},n)}))}))},exports.BottomNavBarItem=Ore,exports.BottomNavBarNavigation=function(o){var r=o.navbarItems,i=void 0===r?[]:r,a=e.useTheme().sizes,s=n.useState(""),l=s[0],c=s[1];return t.jsxs(t.Fragment,{children:[t.jsx(Bw,f({gap:6,bgcolor:"white",flexDirection:"row",justifyContent:"center"},{children:i.map((function(e,t){return n.createElement(Ore,f({},e,{key:t,active:e.active||e.name===l,onNavigate:function(){e.onNavigate(),c(e.name)}}))}))})),t.jsx(RP,{height:a.L}),t.jsx(MV,{color:"gray1",style:{margin:"0 auto",width:140,height:a.XS,borderRadius:6}})]})},exports.Button=Vre,exports.ButtonActionsContext=_7,exports.ButtonActionsProvider=function(e){var o=e.children,r=n.useState(rte),i=r[0],a=r[1],s=n.useState(!1),l=s[0],c=s[1],u=n.useState(!1),p=u[0],d=u[1],h=n.useMemo((function(){return{actionContent:i,setActionContent:a,isModalVisible:l,setModalVisible:c,isDrawerVisible:p,setDrawerVisible:d}}),[i,l,p]),m=function(){c(!1),d(!1)},v=t.jsx(fte,{item:i});return t.jsxs(_7.Provider,f({value:h},{children:[t.jsx(Wre,f({open:l,onClose:m},{children:v})),t.jsx(Mee,f({open:p,onClose:m,anchor:"right"},{children:v})),o]}))},exports.ButtonsWrapper=Bre,exports.COMMUNICATION_LINK_DATA_TEXT=AP,exports.COMMUNICATION_LINK_DATA_URL=MP,exports.COMMUNICATION_LINK_ELEMENT_ID=TP,exports.CaretIconWrapper=_ne,exports.Carousel=Are,exports.Checkbox=VP,exports.CheckboxField=oee,exports.CheckboxGroup=ree,exports.Circle=a8,exports.CirclesWrapper=l8,exports.CircularIndicator=c8,exports.CircularIndicatorStyledComponent=u8,exports.Columns=Ote,exports.Consent=Gre,exports.Container=Yee,exports.ContainerComponent=Kee,exports.ContainerWrapper=Jee,exports.CustomValidation=lee,exports.DefaultTemplate=function(e){var n=e.header,o=e.banner,r=e.content,i=e.alerts,a=e.processTracker,s=e.feedContent;return t.jsxs(t.Fragment,{children:[n,null==i?void 0:i.map((function(e,n){return t.jsx(Vne,f({},e),n)})),a&&t.jsx(Bw,f({width:"100%",alignItems:"center"},{children:t.jsx(Yle,f({},a))})),o,s,t.jsx(lce,{children:r})]})},exports.Divider=MV,exports.Drawer=Mee,exports.DynamicContentZone=function(e){var n=e.elements,o=e.horizontalPaddings,r=void 0===o?"XL":o,i=e.containerStyles;return t.jsx(ece,f({spacer:n.spacer,style:i},{children:n.data.map((function(e,o){return t.jsx(nce,f({disabled:!(null==e?void 0:e.destinationLink),onClick:function(){var t;return null===(t=null==e?void 0:e.onDestinationHandler)||void 0===t?void 0:t.call(e)},withoutOpacityEffect:!0},{children:t.jsx(Qle,{horizontalPaddings:r,element:e,elementsLength:n.data.length})}),o)}))}))},exports.EmphasizedText=Lne,exports.ErrorText=_P,exports.FeedContent=Sle,exports.FeedContentContainer=Ale,exports.FeedContentHeader=wre,exports.FieldLabels=b8,exports.FieldMapper=eee,exports.FieldSection=function(n){var o=n.fields,r=n.label,i=n.isEditMode,a=n.control,s=e.useTheme().sizes,l=i?20:s.XL;return t.jsxs(t.Fragment,{children:[t.jsx(BP,f({variant:"L",color:"gray2"},{children:r})),t.jsx(RP,{height:20}),o.map((function(e,n){return t.jsx(eee,{isEditMode:i,field:e,control:a,spacer:n?l:0},n)}))]})},exports.Footer=function(e){var n=fD("xs");switch(e.type){case"footer_a":return t.jsx(Kse,f({isMobile:n},e));case"footer_b":return t.jsx(Zse,f({isMobile:n},e));case"footer_c":return t.jsx(Jse,f({isMobile:n},e));case"footer_d":return t.jsx(ule,f({isMobile:n},e));default:return t.jsxs(BP,f({variant:"2XL",type:"error"},{children:["We don't know how to parse this footer(",e.type,")"]}))}},exports.ForgotPasswordForm=function(e){var n=e.logoUrl,o=e.onBack,r=e.onSubmit,i=e.isLoading,a=Y9({defaultValues:{email:""},mode:"onChange"}),s=a.control,l=a.reset,c=a.handleSubmit,u=a.formState;return t.jsxs(t.Fragment,{children:[t.jsx(dR,{src:n,alt:"App logo"}),t.jsx(RP,{height:"3XL"}),t.jsx(BP,f({variant:"2XL",color:"indigo"},{children:"Forgot your password?"})),t.jsx(RP,{height:14}),t.jsx(BP,f({variant:"M",color:"gray2"},{children:"Enter your email address below. If there is an account in our system associated with that email address, you’ll get an email with password reset instructions."})),t.jsx(RP,{height:"XL"}),t.jsx(eee,{control:s,field:ele}),t.jsx(RP,{height:"XL"}),t.jsxs(Mle,{children:[t.jsx(Vre,{variant:"primary",text:"Send Email",loading:i,onClick:r?c(r):void 0,disabled:!u.isValid||!Z7(u)}),t.jsx(Vre,{onClick:function(){null==o||o(),l()},text:"Back",variant:"secondary"})]})]})},exports.FormOrganismItem=hte,exports.GoogleMap=Z6,exports.Header=function(e){switch(e.type){case"header_a":return t.jsx(Hle,f({},e));case"header_b":return t.jsx(qle,f({},e));case"header_c":return t.jsx(Xle,f({},e));case"header_d":return t.jsx(Gle,f({},e));default:return t.jsx(t.Fragment,{children:"No such header."})}},exports.HeroImage=bee,exports.HeroSlider=oce,exports.HeroSliderWrapper=rce,exports.HorizontalButtons=bV,exports.HorizontalButtonsField=function(e){var o=e.name,r=e.title,i=e.control,a=e.description,s=e.horizontalButtonsProps,l=n.useState(s.selectedButtonId),c=l[0],u=l[1];return i?t.jsx(l9,{name:o,control:i,defaultValue:s.selectedButtonId,render:function(e){var n=e.field,o=n.onChange,i=n.value;return t.jsx(TV,f({padding:"M"},{children:t.jsxs(Bw,f({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[t.jsxs(Bw,f({gap:.2,flexDirection:"column"},{children:[t.jsx(BP,f({variant:"XL"},{children:r})),a&&t.jsx(BP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsx(bV,f({},s,{selectedButtonId:i,onClick:o}))]}))}))}}):t.jsx(TV,f({padding:"M"},{children:t.jsxs(Bw,f({gap:2,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},{children:[t.jsxs(Bw,f({gap:.2,flexDirection:"column"},{children:[t.jsx(BP,f({variant:"XL"},{children:r})),a&&t.jsx(BP,f({variant:"S",color:"gray3"},{children:a}))]})),t.jsx(bV,f({},s,{selectedButtonId:c,onClick:function(e){return u(e)}}))]}))}))},exports.HorizontalPadding=TV,exports.ISI=function(e){return"isi_a"===e.type?t.jsx(Ble,f({},e)):t.jsxs(BP,f({variant:"2XL",type:"error"},{children:["We don't know how to parse this isi template(",e.type,")"]}))},exports.Icon=LD,exports.IconButton=d8,exports.IconWrapper=Hre,exports.Image=Mre,exports.Input=rR,exports.InputField=X7,exports.Link=Kre,exports.LoginForm=function(n){var o=n.logoUrl,r=n.fields,i=n.isTooltipVisible,a=n.onSubmit,s=n.optionsPresentation,l=n.onSignUpButtonClick,c=n.isLoading,u=n.twoFactorAuthConfig,p=n.consents,d=void 0===p?[]:p,h=n.onForgotPasswordButtonClick,m=e.useTheme(),v=m.colors,g=m.sizes,x=Y9({defaultValues:K7(r),mode:"onChange"}),b=x.control,y=x.handleSubmit,w=x.formState,C=Uee(d);return(null==u?void 0:u.twoFactorShow)?t.jsx(lie,f({},u.twoFactorAuthProps)):t.jsxs(t.Fragment,{children:[t.jsx(dR,{height:g["2XL"],src:o,alt:"App Logo"}),t.jsx(RP,{height:"3XL"}),t.jsx(BP,f({variant:"2XL",color:v.indigo},{children:"Log in."})),t.jsx(RP,{height:14}),t.jsxs(cie,f({variant:"M"},{children:["Don’t have an account?",t.jsx(uie,f({onClick:l},{children:"Sign up"}))]})),r.map((function(e){return t.jsx(eee,{control:b,optionsPresentation:s,isTooltipVisible:i,field:e,spacer:g.L},e.name.toString())})),t.jsx(RP,{height:"L"}),d.map((function(e,n){return t.jsx(Gre,f({},e),n)})),t.jsx(Vre,f({variant:"text",onClick:h},{children:"Forgot your password?"})),t.jsx(RP,{height:"XL"}),t.jsx(Vre,{onClick:C?y(a):tie,text:"Log in",variant:"primary",disabled:!Z7(w),loading:c})]})},exports.MATRIX_MESSAGE_DATA_ID=jP,exports.MATRIX_MESSAGE_ELEMENT_ID=kP,exports.MenuItems=Ste,exports.MenuNavigation=function(e){var o=e.menuConfig,r=n.useState(!1),i=r[0],a=r[1],s=t.jsx(Ste,f({},o,{onItemPress:function(e){var t;a(!1),null===(t=o.onItemPress)||void 0===t||t.call(o,e)}}));return t.jsx(Tne,f({overlay:s,onVisibleChange:a,visible:i,trigger:"click",animation:"slide-up"},{children:t.jsx(Fne,{children:t.jsx(_ne,f({isOpen:i},{children:t.jsx(LD,{size:16,name:"Menu"})}))})}))},exports.MlrRichTextViewerContext=rN,exports.MlrRichTextViewerProvider=function(e){var n=e.children,o=e.isMLRReview,r=e.showAnnotations,i=e.annotationsList;return t.jsx(rN.Provider,f({value:{isMLRReview:o,annotationsList:i,showAnnotations:r}},{children:n}))},exports.ModalWrapper=Ure,exports.NavigationDotsWrapper=_re,exports.OrganismContext=I7,exports.OrganismContextProvider=vte,exports.OrganismItem=fte,exports.PdfDocument=hre,exports.ProcessTracker=Yle,exports.ProfileInformation=function(o){var r=o.avatarProps,i=o.backgroundImageUrl,a=o.initialTabKey,s=o.tabs,l=o.title,c=o.editIcons,u=o.tabContents,p=n.useState(a),d=p[0],h=p[1],m=e.useTheme().sizes;return t.jsxs(t.Fragment,{children:[t.jsx(dR,{src:i,alt:"background-image"}),t.jsx(jle,{children:t.jsx(CV,f({withShadow:!0,size:80},r))}),t.jsxs(TV,f({padding:m.XL+m.M},{children:[t.jsxs(kle,{children:[t.jsx(BP,f({variant:"2XL",color:"gray1"},{children:l})),c&&t.jsx(t.Fragment,{children:c.isEditMode?t.jsxs(Tle,{children:[t.jsx(w,f({onClick:c.onSave},{children:t.jsx(ND,{})})),t.jsx(RP,{width:"M"}),t.jsx(w,f({onClick:c.onClose},{children:t.jsx(CD,{size:32})}))]}):t.jsx(w,f({onClick:c.onEdit},{children:t.jsx(AD,{})}))})]}),t.jsx(RP,{height:"XL"}),t.jsx(Bne,{activeTabKey:d,onTabChange:function(e){h(e),null==c||c.onClose()},tabs:s})]})),u[d]()]})},exports.RadioButtonField=$ne,exports.RadioButtons=n8,exports.RadioGroupWrapper=o8,exports.RegularImage=dR,exports.RichTextViewer=NP,exports.Select=ZP,exports.SelectField=iee,exports.SelectableCardGroup=gee,exports.SetPasswordForm=function(o){var r=o.logoUrl,i=o.fields,a=o.validations,s=o.onBack,l=o.onSubmit,c=o.isLoading,u=e.useTheme().sizes,p=a.map(ete),d=Y9({defaultValues:K7(i),mode:"onChange"}),f=d.control,h=d.reset,m=d.handleSubmit,v=d.formState,g=d.getValues,x=(0,d.watch)("password"),b=n.useMemo((function(){var e=p.every((function(e){return e.validate(x)}));return v.isSubmitted?e&&Z7(v):Z7(v)}),[a,v]);return t.jsxs(t.Fragment,{children:[t.jsx(dR,{height:u["2XL"],src:r,alt:"App Logo"}),t.jsx(RP,{height:"3XL"}),t.jsx(Qre,{children:"Set your account password."}),t.jsx(RP,{height:14}),t.jsx(Jre,{children:"Set the password for your account in the Zeal Design System."}),i.map((function(e){return t.jsx(eee,{control:f,field:e,spacer:u.L},e.name.toString())})),t.jsx(RP,{height:"2XL"}),t.jsx(lee,{value:x,isSubmitted:v.isSubmitted,rules:p}),t.jsx(RP,{height:"2XL"}),t.jsxs(eie,{children:[t.jsx(Vre,{onClick:m((function(){if(Z7(v)&&p.every((function(e){return e.validate(x)}))){var e=g();e.password===e.confirmPassword?l(e):xV({message:"Passwords are not match",duration:1,type:"error"})}})),text:"Create password",variant:"primary",disabled:!v.isValid||!b,loading:c}),t.jsx(Vre,{onClick:function(){s(),h()},text:"Back",variant:"secondary"})]})]})},exports.Slide=Rre,exports.SlidesWrapper=Pre,exports.Spacer=RP,exports.Spinner=pR,exports.StateContext=z7,exports.StateContextProvider=function(e){var o=e.initStateConfig,r=e.children,i=e.stateHandler,a=n.useMemo((function(){return{stateConfig:o,stateHandler:i}}),[o,i]);return t.jsx(z7.Provider,f({value:a},{children:r}))},exports.Stepper=toe,exports.StyleWrapper=Ez,exports.SubscribePanel=sce,exports.Tab=Zre,exports.TabGroup=Bne,exports.TextButton=hR,exports.TextMolecule=g8,exports.TextWrapper=BP,exports.Tooltip=Oz,exports.TouchableOpacity=w,exports.TwoFactorAuth=lie,exports.ValidationTag=vR,exports.VerticalPadding=jV,exports.Video=Sre,exports.Wrapper=Nre,exports.ZealThemeProvider=function(n){return t.jsx(hr,f({theme:dD},{children:t.jsxs(e.ThemeProvider,f({theme:f(f({},S),n.theme)},{children:[t.jsx(pD,{}),n.children]}))}))},exports.ZealUIModal=Wre,exports.acquisitionFormMockFields=[{name:"firstName",type:"input",label:"First Name",required:!0,value:"Initial First Name"},{name:"lastName",type:"input",label:"Last Name",required:!0},{name:"email",type:"input",inputType:"email",label:"Email Address"},{name:"number",type:"input",inputType:"number",label:"Phone Number"},{name:"addressLine1",type:"input",label:"Address Line 1"},{name:"addressLine2",type:"input",label:"Address Line 2",tooltip:"This is address line 2"},{name:"city",type:"input",label:"City"},{name:"state",type:"select",label:"State",options:[{id:"USA",label:"USA"},{id:"UKRAINE",label:"Ukraine"}]},{name:"zip",type:"input",label:"Zip Code"}],exports.defaultTheme=S,exports.defaultValue=SP,exports.fontWeight=[100,200,300,400,500,600,700,800,900],exports.fonts=["3XL","2XL","XL","L","M","S","XS"],exports.getFieldPlaceholder=Y7,exports.getFieldsFromFieldSections=function(e){var t=[];return e.forEach((function(e){return t=t.concat.apply(t,e.fields)})),t},exports.getInitialValuesFromFields=K7,exports.isFormValid=Z7,exports.loginMockFields=[{name:"email",type:"input",inputType:"email",label:"Email Address",required:!0},{name:"password",type:"input",inputType:"password",label:"Password",required:!0},{name:"rememberMe",type:"checkbox",checkboxLabel:"Remember me"}],exports.passwordMockFields=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0,rules:{required:"Password is required"}},{name:"reenteredPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],exports.profileInformationMockForm=Q7,exports.sectionMockFields=J7,exports.seoTags=["h1","h2","h3","h4","h5","h6"],exports.setPasswordMockFields=[{name:"password",type:"input",inputType:"password",placeholder:"Enter Your Password",label:"Password",required:!0,rules:{required:"Password is required"}},{name:"confirmPassword",type:"input",inputType:"password",placeholder:"Re-Enter Your Password",label:"Re-Enter Your Password",required:!0}],exports.showAcceptToastMessage=tie,exports.sizings=["5XL","4XL","3XL","2XL","XL","L","M","S","XS",0],exports.toast=xV,exports.toastStyles=uD,exports.useButtonActionsContext=L7,exports.useMediaQuery=fD,exports.useMlrRichTextViewerContext=iN,exports.useRequiredConsentsAcceptedValues=Uee,exports.useStep=Wee;
|
261
261
|
//# sourceMappingURL=index.js.map
|